fix: bug#16434
This commit is contained in:
parent
6b9bf45825
commit
bd6f422610
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue