outaozhen пре 5 година
родитељ
комит
8d49bc2d03

+ 2 - 0
src/components/EditableForm/editableFormItem.jsx

@@ -8,6 +8,8 @@ const EditableFormItem = ({ label, dataIndex, record, dataId, span, editCellType
   const [editing, setEditing] = useState(false)
   const inputRef = useRef(null)
   const [val, setVal] = useState(record)
+  // console.log(record)
+  // console.log(val)
   useEffect(() => {
     if (editing) {
       inputRef.current.focus()

+ 1 - 0
src/components/EditableForm/index.less

@@ -1,4 +1,5 @@
 .editable-cell-value-wrap {
+  height: 32px;
   padding: 5px 12px;
   cursor: pointer;
 }

+ 2 - 2
src/components/PopContent/Contacts/ContanctForm.jsx

@@ -11,7 +11,7 @@ const ContanctForm = props => {
   const record = {
     clientname: '啊实打实大',
     address: '珠海',
-    age: 16
+    telephone: "diodjioadhja念佛安徽佛安徽省"
   }
 
   const columns = [
@@ -113,7 +113,7 @@ const ContanctForm = props => {
   ]
 
   useEffect(() => {
-    console.log(client)
+    // console.log(client)
     // form.setFieldsValue(client)
   }, [client])
   const residences = [