diff --git a/ui/packages/tidb-dashboard-lib/src/components/BinaryPlanTable/index.module.less b/ui/packages/tidb-dashboard-lib/src/components/BinaryPlanTable/index.module.less new file mode 100644 index 0000000000..03334ad7aa --- /dev/null +++ b/ui/packages/tidb-dashboard-lib/src/components/BinaryPlanTable/index.module.less @@ -0,0 +1,10 @@ +.colHeader { + span { + opacity: 0; + } + &:hover { + span { + opacity: 1; + } + } +} diff --git a/ui/packages/tidb-dashboard-lib/src/components/BinaryPlanTable/index.tsx b/ui/packages/tidb-dashboard-lib/src/components/BinaryPlanTable/index.tsx index 005e26db7e..d4de7dbbb1 100644 --- a/ui/packages/tidb-dashboard-lib/src/components/BinaryPlanTable/index.tsx +++ b/ui/packages/tidb-dashboard-lib/src/components/BinaryPlanTable/index.tsx @@ -6,6 +6,8 @@ import { CopyLink, TxtDownloadLink } from '@lib/components' import { BinaryPlanColsSelector } from './BinaryPlanColsSelector' import { EyeOutlined } from '@ant-design/icons' +import styles from './index.module.less' + const COLUM_KEYS = [ 'id', 'estRows', @@ -213,13 +215,13 @@ export const BinaryPlanTable: React.FC = ({ return [ { name: ( -
+
id hideColumn('id')} />
) as any, extra: 'id', key: 'id', - minWidth: 100, + minWidth: 200, maxWidth: 600, onRender: (row: BinaryPlanItem) => { return ( @@ -233,7 +235,7 @@ export const BinaryPlanTable: React.FC = ({ }, { name: ( -
+
estRows hideColumn('estRows')} />
) as any, @@ -247,7 +249,7 @@ export const BinaryPlanTable: React.FC = ({ }, { name: ( -
+
estCost hideColumn('estCost')} />
) as any, @@ -261,7 +263,7 @@ export const BinaryPlanTable: React.FC = ({ }, { name: ( -
+
actRows hideColumn('actRows')} />
) as any, @@ -275,7 +277,7 @@ export const BinaryPlanTable: React.FC = ({ }, { name: ( -
+
task hideColumn('task')} />
) as any, @@ -289,7 +291,7 @@ export const BinaryPlanTable: React.FC = ({ }, { name: ( -
+
access object{' '} hideColumn('accessObject')} />
@@ -304,7 +306,7 @@ export const BinaryPlanTable: React.FC = ({ }, { name: ( -
+
execution info{' '} hideColumn('executionInfo')} />
@@ -321,7 +323,7 @@ export const BinaryPlanTable: React.FC = ({ }, { name: ( -
+
operator info{' '} hideColumn('operatorInfo')} />
@@ -350,7 +352,7 @@ export const BinaryPlanTable: React.FC = ({ }, { name: ( -
+
memory hideColumn('memory')} />
) as any, @@ -364,7 +366,7 @@ export const BinaryPlanTable: React.FC = ({ }, { name: ( -
+
disk hideColumn('disk')} />
) as any,