Przeglądaj źródła

fix(table): fix index column style

修复序号列的样式问题
无木 3 lat temu
rodzic
commit
c7c0a7e4c8

+ 5 - 1
src/components/Table/src/components/ExpandIcon.tsx

@@ -3,7 +3,11 @@ import { BasicArrow } from '/@/components/Basic';
 export default () => {
   return (props: Recordable) => {
     if (!props.expandable) {
-      return <span class="ant-table-row-expand-icon ant-table-row-spaced" />;
+      if (props.expanded) {
+        return <span class="ant-table-row-expand-icon ant-table-row-spaced" />;
+      } else {
+        return <span />;
+      }
     }
     return (
       <BasicArrow