Browse Source

feat:数据-样式

ananzhusen 3 months ago
parent
commit
5de93ed23e
1 changed files with 10 additions and 1 deletions
  1. 10 1
      src/views/components/DataSource.vue

+ 10 - 1
src/views/components/DataSource.vue

@@ -1020,7 +1020,7 @@
     v-if="iotDialog.show"
     :visible="true"
     width="472px"
-    class="data-dialog"
+    dialogClassName="iot-dialog"
     :header="iotDialog.header"
     @close="iotDialog.show = false"
     @confirm="onOkIot"
@@ -1251,6 +1251,7 @@ const onOkIot = () => {
       }
     }
   });
+  _iots.forEach((item)=>{item.checkable = false});
   data.iotTree = _iots;
   if (!meta2d.store.data.iot) {
     meta2d.store.data.iot = {};
@@ -2846,4 +2847,12 @@ const deleteMock = (index: number) => {
   height: 100%;
   padding: 0px;
 }
+
+.iot-dialog{
+  .t-tree--checkable{
+    .t-tree__item[data-level='1'] {
+      padding: 0 0 0 16px;
+    }
+  }
+}
 </style>