up. 配置更新
This commit is contained in:
parent
e0d483fedf
commit
bdff9fc088
@ -25,7 +25,7 @@
|
||||
</el-collapse>
|
||||
</template>
|
||||
<template v-else-if="config.type === 'tabs'">
|
||||
<el-tabs type="card" :model-value="defaultTabs(config)">
|
||||
<el-tabs type="card" v-model="config.value">
|
||||
<el-tab-pane
|
||||
v-for="tabPane in config.children"
|
||||
:label="tabPane.title"
|
||||
@ -97,13 +97,6 @@
|
||||
const props = defineProps<{
|
||||
configList: any;
|
||||
}>();
|
||||
const defaultTabs = (cfg: any) => {
|
||||
let keys = Object.keys(cfg.option);
|
||||
if (keys.length > 0) {
|
||||
return keys[0];
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
defineExpose({
|
||||
getFormData(){
|
||||
|
||||
@ -113,6 +113,7 @@ const reload = () => {
|
||||
idField: 'id',
|
||||
parentIdField: 'pid'
|
||||
});
|
||||
|
||||
configLoading.value = false;
|
||||
});
|
||||
};
|
||||
@ -141,7 +142,6 @@ const info = ()=>{
|
||||
table_version: data.table_version,
|
||||
cache_version: data.cache_version,
|
||||
cache_php: data.cache_php,
|
||||
|
||||
};
|
||||
})
|
||||
}
|
||||
|
||||
@ -105,7 +105,7 @@
|
||||
placeholder="请输入渲染框Style样式"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-card header="样式预览:" style="margin-bottom: 30px;" v-if="HIDE_FORM_ITEM_WHERE.preview()">
|
||||
<el-card header="样式预览:" style="margin-bottom: 30px;" v-if="form.type && HIDE_FORM_ITEM_WHERE.preview()">
|
||||
<config-form-item
|
||||
:name="preview.name"
|
||||
:title="preview.title"
|
||||
@ -356,7 +356,7 @@ watch(visible, () => {
|
||||
assignFields(data);
|
||||
}
|
||||
}
|
||||
if (form.type == 'tabs_item') {
|
||||
if (['tabs_item','tabs'].indexOf(form.type) != -1) {
|
||||
form._type_readonly = true;
|
||||
}
|
||||
form.group = props.group;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user