fix: 组件调整

This commit is contained in:
xuziqiang
2024-07-04 11:19:38 +08:00
parent d294c3f07a
commit 4bbb5c5133
2 changed files with 13 additions and 9 deletions

View File

@@ -1,14 +1,15 @@
<template>
<div class="ns-tree-form">
<div v-show="header" class="ns-tree-title">
<ns-icon :name="header.icon" size="14" />
<span>{{ header.title }}</span>
</div>
<div v-show="!formConfig?.schema">
<ns-form ref="formElRef" v-bind="formConfig" :model="formModel" @finish="formFinish" />
</div>
</div>
<a-spin :spinning="treeState.loading">
<div class="ns-tree-form">
<div v-show="header" class="ns-tree-title">
<ns-icon :name="header.icon" size="14" />
<span>{{ header.title }}</span>
</div>
<div v-show="!formConfig?.schema">
<ns-form ref="formElRef" v-bind="formConfig" :model="formModel" @finish="formFinish" />
</div>
</div>
<div style="min-height: 300px">
<ns-tree v-if="treeData?.length" v-bind="getBindValue" v-model:selectedKeys="selectedKeys">
<template #[item]="data" v-for="(item, index) in Object.keys($slots)" :key="index">