fix: bug#16434

This commit is contained in:
XieYongHong 2023-07-15 19:58:41 +08:00
parent 6b9bf45825
commit bd6f422610
1 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,9 @@
<script setup lang="ts" name="Rule"> <script setup lang="ts" name="Rule">
import FRuleEditor from '@/components/FRuleEditor/index.vue'; import FRuleEditor from '@/components/FRuleEditor/index.vue';
import {Form} from "jetlinks-ui-components";
const formItemContext = Form.useInjectFormItemContext();
interface Emits { interface Emits {
(e: 'update:value', data: string | undefined): void; (e: 'update:value', data: string | undefined): void;
@ -26,6 +29,7 @@ const visible = ref<boolean>(false);
const onChange = (val: string | undefined) => { const onChange = (val: string | undefined) => {
emit('change', val) emit('change', val)
emit('update:value', val) emit('update:value', val)
formItemContext.onFieldChange()
onClose() onClose()
} }