提交 ef58dd16 编写于 作者: Shine-zwj's avatar Shine-zwj

update:更新

上级 e78222e4
......@@ -24,10 +24,10 @@ const emit = defineEmits<FormGroupEmit>();
const handleGroupAction = (action: IParam) => {
emit('componentEvent', { tag: props.name, action: 'formGroupAction', data: action});
}
const handleMenuGroupAction = (uIActionTag: string) => {
const handleMenuGroupAction = ($event: IParam) => {
if (props.uIActionGroup && props.uIActionGroup.details?.length > 0) {
const details = props.uIActionGroup.details;
const detail = details.find((action: IParam) => Object.is(action.uIActionTag, uIActionTag));
const detail = details.find((action: IParam) => Object.is(action.uIActionTag, $event.key));
emit('componentEvent', { tag: props.name, action: 'formGroupAction', data: detail});
}
}
......@@ -35,7 +35,8 @@ const handleMenuGroupAction = (uIActionTag: string) => {
<template>
<a-card
:class="['app-form-group', `app-form-group-${name}`]"
:class="['app-form-group', `app-form-group-${name}`]"
:headStyle="titleStyle"
:bordered="false">
<template v-if="showCaption" #title>
<p :class="['app-form-group-title', `${titleStyle}`]">
......@@ -46,9 +47,9 @@ const handleMenuGroupAction = (uIActionTag: string) => {
<template v-if="uIActionGroup">
<template v-if="Object.is(uIActionGroup.extractMode, 'ITEMS')">
<a-dropdown>
<span class="group-action">
{{uIActionGroup.action}}
</span>
<a class="group-action" @click.prevent>
\{{uIActionGroup.caption}}
</a>
<template #overlay>
<a-menu @click="handleMenuGroupAction">
<template v-for="(item, index) in uIActionGroup.details" :key="index">
......
......@@ -674,6 +674,7 @@ export class FormControl extends MainControl {
load,
save,
handleEditorEvent: this.handleEditorEvent.bind(this),
handleComponentEvent: this.handleComponentEvent.bind(this),
};
}
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册