🔱: [client] sync upgrade with 2 commits [trident-sync]

fix: 修复dict-select多选情况下selected-change返回为空的bug
pull/91/head
GitHub Actions Bot 2024-11-15 19:25:37 +00:00
parent 49e65c611f
commit c66802af2d
1 changed files with 10 additions and 1 deletions

View File

@ -286,7 +286,16 @@ export default async function ({ crudExpose, context }: CreateCrudOptionsProps):
form: {
title: "多选本地",
component: {
mode: "multiple"
mode: "multiple",
on: {
selectedChange({ form, $event }) {
// $event就是原始的事件值也就是选中的 option对象
utils.logger.info("onSelectedChange", form, $event);
ui.message.info(`你选择了${JSON.stringify($event)}`);
// 你还可以将选中的label值赋值给表单里其他字段
// context.form.xxxLabel = context.$event.label
}
}
},
rules: [{ required: true, message: "请选择一个选项" }]
},