|
@@ -40,9 +40,10 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { nextTick, onMounted, ref } from 'vue'
|
|
|
+import { onMounted, ref } from 'vue'
|
|
|
import treeInfoModal from './components/treeInfoModal.vue'
|
|
|
import tableInfoModal from './components/tableInfoModal.vue'
|
|
|
+import { setDomSplit } from '~uti/tools'
|
|
|
|
|
|
defineOptions({
|
|
|
name: 'AlterCollectionScan',
|
|
@@ -50,20 +51,13 @@ defineOptions({
|
|
|
|
|
|
//渲染完成
|
|
|
onMounted(() => {
|
|
|
- setSplitRef()
|
|
|
-})
|
|
|
-
|
|
|
-//初始化设置拖动分割线
|
|
|
-const setSplitRef = () => {
|
|
|
- //配置参考: https://split.js.org/#/?direction=vertical&snapOffset=0
|
|
|
- nextTick(() => {
|
|
|
- window.$split(['#hc_tree_card', '#hc_table_card'], {
|
|
|
- sizes: [20, 80],
|
|
|
- snapOffset: 0,
|
|
|
- minSize: [50, 500],
|
|
|
- })
|
|
|
+ //初始化设置拖动分割线
|
|
|
+ setDomSplit(['#hc_tree_card', '#hc_table_card'], {
|
|
|
+ sizes: [20, 80],
|
|
|
+ snapOffset: 0,
|
|
|
+ minSize: [50, 500],
|
|
|
})
|
|
|
-}
|
|
|
+})
|
|
|
|
|
|
//类型tab数据和相关处理
|
|
|
const tabKey = ref('key1')
|