fix: 修复basicform表单showAdvancedButton为false列表隐藏bug

This commit is contained in:
lizc 2023-10-18 10:48:48 +08:00
parent 7371ab7611
commit eb5b7f5101

View File

@ -8,7 +8,7 @@
{{ schema.label }}
<n-tooltip trigger="hover" :style="schema.labelMessageStyle">
<template #trigger>
<n-icon size="18" class="cursor-pointer text-gray-400">
<n-icon size="18" class="text-gray-400 cursor-pointer">
<QuestionCircleOutlined />
</n-icon>
</template>
@ -263,6 +263,17 @@
submit: handleSubmit,
};
// showAdvancedButtonfalse
watch(
() => getProps.value.showAdvancedButton,
(show) => {
if (!show) gridCollapsed.value = false;
},
{
immediate: true,
}
);
watch(
() => getSchema.value,
(schema) => {