Browse Source

优化联系人表单详情

outaozhen 5 năm trước cách đây
mục cha
commit
0ca13ade4e

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

@@ -106,8 +106,8 @@ const EditableFormItem = ({ label, dataIndex, record, dataId, span, editCellType
 
   return (
     <Col span={span}>
-      <Row wrap={false}>
-        <Col flex="100px" className="zh-text-right zh-mg-bottom-8">
+      <Row wrap={false} className="zh-border-top-1 zh-pd-top-8 zh-pd-bottom-8">
+        <Col flex="100px" className="zh-text-right">
           <span className="zh-lh-32 zh-mg-right-10">{label}:</span>
         </Col>
         <Col flex="auto">{cell}</Col>

+ 4 - 2
src/components/EditableForm/index.less

@@ -1,11 +1,13 @@
 .editable-cell-value-wrap {
-  height: 32px;
+  min-height: 32px;
   padding: 5px 12px;
+  background: #f7f7f7;
+  border: 1px solid #f7f7f7;
   cursor: pointer;
 }
 
 .editable-cell-value-wrap:hover {
-  padding: 4px 11px;
+  padding: 5px 12px;
   border: 1px solid #d9d9d9;
   border-radius: 4px;
 }

+ 1 - 1
src/components/PopContent/Contacts/ContanctLowerList.jsx

@@ -38,7 +38,7 @@ const ContanctLowerList = props => {
                 split={false}
                 renderItem={item => (
                   <List.Item>
-                    <Row>
+                    <Row className="zh-width-100P">
                       <Col span="8">
                         <a>@{item.staffName}</a> {item.status}上门服务
                         <List.Item.Meta

+ 1 - 0
src/components/PopContent/Contacts/ContanctTabList.jsx

@@ -80,6 +80,7 @@ const ContanctTabList = props => {
         <Button
           type="primary"
           ghost
+          size="small"
           onClick={() => setAddService({ ...setAddService, visible: true })}
         >
           <SvgIcon type="icon-plus" /> 添加服务记录