操作(operations)
slot
属性可以指定operation所在插槽,如list支持 searchs
和 multipleSelect
定制搜索操作和多选操作
以下用list内的配置为例
edit
没有配置slot,会存在默认的每一行数据后面(默认slot)
、testNewInput
、 search
、 reset
的 slot 为 search,控制的是搜索区域的操作
field operation 0.5.0+
0.5.0 - 0.5.21 默认slot暂不支持field operation,在0.5.22+ 支持
field operation可以生成任意field的edit态操作
可以通过处理 fieldChange
事件来捕获field operation的状态变更,通过判断 path
来响应对应的 field operation。当前值可以通过args.value获取,同时也可以通过 this.data.searchs.testSelect
获取路径和所配置的slot有关(如searchs 和 multipleSelect)
默认值可以在block的初始data内指定,如
常规的按钮操作
配置:icon 图标
icon operation可以配置图标,配置label 会显示为tooltip
field operation可以生成任意field的edit态操作,参考上面的说明
配置:reset 重置
配置一个reset operation 会重置当前slot内的全部field operaiont状态为默认值,reset operation的其它配置参数同button