We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
当 select 组件使用表格模式展示时,change 事件无 selectedItems 数据
以表格模式展示时 以非表格模式展示时
amis schema
{ type: "select", selectMode: "table", searchable: true, multiple: false, checkAll: true, clearable: true, with: 200, size: "md", joinValues: false, extractValue: true, columns: [ { name: "identity_title", label: "身份", }, { name: "identity_id", label: "标识", }, ], name: "identity_id", label: "会员身份", source: api.identities(), onEvent: { change: { actions: [ { actionType: "setValue", componentId: "certification", args: { value: "${event.data.selectedItems}" } }, { actionType: "toast", args: { "msg": "${event.data.selectedItems|json}" } } ] } }, }
开启表格模式展示时 change 事件返回的 event.data:
event.data
{ "value": "698856511374311424", "options": [ { "identity_id": "digitalMem", "identity_title": "数字会员", "identity_icon": "", "certification": { "img": "http://www.test.com/19310.png", "name": "数字会员证书", "prod_name": "数字会员证 9", "creator": "数字会员证书 28", "issuer": "数字会员证书 37", "issuer_org": "数字会员证书 46" }, "label": "数字会员", "value": "digitalMem" }, { "identity_id": "698856511462391808", "identity_title": "普通会员", "identity_icon": "", "label": "普通会员", "value": "698856511462391808" } ], "items": [ { "identity_id": "digitalMem", "identity_title": "数字会员", "identity_icon": "", "certification": { "img": "http://www.test.com/19310.png", "name": "数字会员证书", "prod_name": "数字会员证 9", "creator": "数字会员证书 28", "issuer": "数字会员证书 37", "issuer_org": "数字会员证书 46" }, "label": "数字会员", "value": "digitalMem" }, { "identity_id": "698856511462391808", "identity_title": "普通会员", "identity_icon": "", "label": "普通会员", "value": "698856511462391808" } ], "identity_id": "698856511374311424", "__rendererData": { "certification": {}, "identity_id": "698856511374311424" } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
描述问题:
当 select 组件使用表格模式展示时,change 事件无 selectedItems 数据
截图或视频:
以表格模式展示时
以非表格模式展示时
如何复现(请务必完整填写下面内容):
sdk
6.10.0
amis schema
代码:开启表格模式展示时 change 事件返回的
event.data
:The text was updated successfully, but these errors were encountered: