fix: 组件调整
This commit is contained in:
@@ -1,14 +1,15 @@
|
|||||||
<template>
|
<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">
|
<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">
|
<div style="min-height: 300px">
|
||||||
<ns-tree v-if="treeData?.length" v-bind="getBindValue" v-model:selectedKeys="selectedKeys">
|
<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">
|
<template #[item]="data" v-for="(item, index) in Object.keys($slots)" :key="index">
|
||||||
|
@@ -436,6 +436,9 @@
|
|||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
color: @primary-color;
|
color: @primary-color;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
overflow: hidden;
|
||||||
|
text-wrap: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
:deep(.header-menu .ant-menu-title-content) {
|
:deep(.header-menu .ant-menu-title-content) {
|
||||||
|
Reference in New Issue
Block a user