浏览代码

修改样式

Renxy 1 年之前
父节点
当前提交
f72f446793
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/pages/DeviceManager/index.js

+ 4 - 2
src/pages/DeviceManager/index.js

@@ -21,7 +21,7 @@ const spareIcon = require('@/assets/deviceManager/spareIcon.png');
 const DeviceManager = () => {
 const DeviceManager = () => {
   const { projectId } = useParams();
   const { projectId } = useParams();
   const [defaultActiveKey, setDefaultActiveKey] = useState(
   const [defaultActiveKey, setDefaultActiveKey] = useState(
-    localStorage.deviceTab || "1"
+    localStorage.deviceTab || '1',
   );
   );
 
 
   const onChange = (tab) => {
   const onChange = (tab) => {
@@ -165,7 +165,9 @@ const Device = ({ projectId }) => {
                   }`}
                   }`}
                   onClick={() => handleItemClick(cur.Code)}
                   onClick={() => handleItemClick(cur.Code)}
                 >
                 >
-                  <span style={{ marginRight: '166px' }}> {cur.Code} </span>
+                  <span style={{ width: '30%', textAlign: 'left' }}>
+                    {cur.Code}
+                  </span>
                   <span> {cur.Name} </span>
                   <span> {cur.Name} </span>
                 </List.Item>
                 </List.Item>
               )}
               )}