Browse Source

宽度调整

蔡青松 7 tháng trước cách đây
mục cha
commit
c9942af168
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      src/pages/listnew/index.jsx

+ 4 - 4
src/pages/listnew/index.jsx

@@ -471,7 +471,7 @@ const List = (editType) => {
             },
             renderCell: (item, rowId, columnId) => {
               if (rowId == editRowId && editType.edit == "true" && editColumnId == columnId) {
-                return <Select style={{ width: "calc(100% - 70px)" }} appearance="underline" autoFocus onChange={(e) => {
+                return <Select style={{ width: "100%" }} appearance="underline" autoFocus onChange={(e) => {
                   item.性别.label = e.target.value;
                 }} onBlur={() => {
                   setEditRowId(-1);
@@ -527,7 +527,7 @@ const List = (editType) => {
             },
             renderCell: (item, rowId, columnId) => {
               if (rowId == editRowId && editType.edit == "true" && editColumnId == columnId) {
-                return <Input type="date" defaultValue={item.最后在线时间.label} appearance="underline" autoFocus onChange={(e) => {
+                return <Input type="date" defaultValue={item.最后在线时间.label}  appearance="underline" autoFocus onChange={(e) => {
                   item.最后在线时间.label = e.target.value;
                 }} onBlur={() => {
                   setEditRowId(-1);
@@ -556,8 +556,8 @@ const List = (editType) => {
               defaultWidth: 120,
             },
             性别: {
-              minWidth: 150,
-              defaultWidth: 150,
+              minWidth: 120,
+              defaultWidth: 120,
             },
             年龄: {
               minWidth: 120,