ソースを参照

2023-03-13 update

1. fix table expand  去除table的默认展开设置
moccus 1 年間 前
コミット
a793f7703f
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/components/setting.vue

+ 2 - 2
src/components/setting.vue

@@ -221,7 +221,7 @@
                   <div class="button" @click="toggleRowExpansionAll(false,'dataAutoResetList',alarminfos)">全部收回</div>
                 </div>
                 <!-- default-expand-all -->
-                <el-table :data="alarminfos" v-show="autoReset.enable" default-expand-all row-key="id" border ref="dataAutoResetList"
+                <el-table :data="alarminfos" v-show="autoReset.enable" row-key="id" border ref="dataAutoResetList"
                   :tree-props="{ children: 'children', hasChildren: false }" height="70vh"
                   style="background-color: #000000;border: 1px solid #000000;" :header-cell-style="{
                     background: 'rgb(30,30,30)',
@@ -355,7 +355,7 @@
                   <div class="button" v-show="earlyWarningStop.enable" @click="toggleRowExpansionAll(true,'dataEarlyWarningStopList',alertInfos)">全部展开</div>
                   <div class="button" v-show="earlyWarningStop.enable" @click="toggleRowExpansionAll(false,'dataEarlyWarningStopList',alertInfos)">全部收回</div>
                 </div>
-                <el-table :data="alertInfos" v-show="earlyWarningStop.enable" default-expand-all row-key="id" border ref="dataEarlyWarningStopList"
+                <el-table :data="alertInfos" v-show="earlyWarningStop.enable" row-key="id" border ref="dataEarlyWarningStopList"
                   :tree-props="{ children: 'children', hasChildren: false }" height="70vh"
                   style="background-color: #000000;border: 1px solid #000000;" :header-cell-style="{
                     background: 'rgb(30,30,30)',