Explorar el Código

修改输入框样式

蔡青松 hace 7 meses
padre
commit
a1ade28d91
Se han modificado 1 ficheros con 5 adiciones y 5 borrados
  1. 5 5
      src/pages/listnew/index.jsx

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

@@ -398,7 +398,7 @@ const List = (editType) => {
             },
             renderCell: (item, rowId, columnId) => {
               if (rowId == editRowId && editType.edit == "true" && editColumnId == columnId) {
-                return <Input type="text" defaultValue={item.姓名.label} style={{ width: "100%" }} autoFocus onChange={(e) => {
+                return <Input type="text" defaultValue={item.姓名.label} style={{ width: "100%" }} appearance="underline" autoFocus onChange={(e) => {
                   item.姓名.label = e.target.value;
                 }} onBlur={() => {
                   setEditRowId(-1);
@@ -425,7 +425,7 @@ const List = (editType) => {
             },
             renderCell: (item, rowId, columnId) => {
               if (rowId == editRowId && editType.edit == "true" && editColumnId == columnId) {
-                return <Input type="number" defaultValue={item.序号.label} style={{ width: "100%" }} autoFocus onChange={(e) => {
+                return <Input type="number" defaultValue={item.序号.label} style={{ width: "100%" }} appearance="underline" autoFocus onChange={(e) => {
                   item.序号.label = e.target.value;
                 }} onBlur={() => {
                   setEditRowId(-1);
@@ -452,7 +452,7 @@ const List = (editType) => {
             },
             renderCell: (item, rowId, columnId) => {
               if (rowId == editRowId && editType.edit == "true" && editColumnId == columnId) {
-                return <Select style={{ width: "calc(100% - 70px)" }} autoFocus onChange={(e) => {
+                return <Select style={{ width: "calc(100% - 70px)" }} appearance="underline" autoFocus onChange={(e) => {
                   item.性别.label = e.target.value;
                 }} onBlur={() => {
                   setEditRowId(-1);
@@ -482,7 +482,7 @@ const List = (editType) => {
 
             renderCell: (item, rowId, columnId) => {
               if (rowId == editRowId && editType.edit == "true" && editColumnId == columnId) {
-                return <Input type="text" defaultValue={item.年龄.label} style={{ width: "100%" }} autoFocus onChange={(e) => {
+                return <Input type="text" defaultValue={item.年龄.label} style={{ width: "100%" }} appearance="underline" autoFocus onChange={(e) => {
                   item.年龄.label = e.target.value;
                 }} onBlur={() => {
                   setEditRowId(-1);
@@ -508,7 +508,7 @@ const List = (editType) => {
             },
             renderCell: (item, rowId, columnId) => {
               if (rowId == editRowId && editType.edit == "true" && editColumnId == columnId) {
-                return <Input type="date" defaultValue={item.最后在线时间.label} autoFocus onChange={(e) => {
+                return <Input type="date" defaultValue={item.最后在线时间.label} appearance="underline" autoFocus onChange={(e) => {
                   item.最后在线时间.label = e.target.value;
                 }} onBlur={() => {
                   setEditRowId(-1);