2022-10-12 15:09:03 +08:00
|
|
|
const change = name => ({
|
2022-02-15 16:15:19 +08:00
|
|
|
actions: [
|
|
|
|
{
|
2022-02-22 19:17:49 +08:00
|
|
|
actionType: 'toast',
|
2022-04-20 15:20:42 +08:00
|
|
|
args: {
|
|
|
|
msgType: 'info',
|
2022-10-12 15:09:03 +08:00
|
|
|
msg: `派发change事件\${${name}|json\}`
|
2022-05-31 15:05:54 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2022-10-12 15:09:03 +08:00
|
|
|
});
|
2022-05-31 15:05:54 +08:00
|
|
|
|
|
|
|
const add = {
|
|
|
|
actions: [
|
|
|
|
{
|
|
|
|
actionType: 'toast',
|
|
|
|
args: {
|
|
|
|
msgType: 'info',
|
2022-10-12 15:09:03 +08:00
|
|
|
msg: 'clear-select: ${clear-select|json},items: ${items|json}'
|
2022-05-31 15:05:54 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
|
|
|
|
|
|
|
const edit = {
|
|
|
|
actions: [
|
|
|
|
{
|
|
|
|
actionType: 'toast',
|
|
|
|
args: {
|
|
|
|
msgType: 'info',
|
2022-10-12 15:09:03 +08:00
|
|
|
msg: 'clear-select: ${clear-select|json},items: ${items|json}'
|
2022-05-31 15:05:54 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
|
|
|
|
|
|
|
const del = {
|
|
|
|
actions: [
|
|
|
|
{
|
|
|
|
actionType: 'toast',
|
|
|
|
args: {
|
|
|
|
msgType: 'info',
|
2022-10-12 15:09:03 +08:00
|
|
|
msg: 'clear-select: ${clear-select|json},items: ${items|json}'
|
2022-04-20 15:20:42 +08:00
|
|
|
}
|
2022-02-15 16:15:19 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
|
|
|
|
|
|
|
const blur = {
|
|
|
|
actions: [
|
|
|
|
{
|
|
|
|
actionType: 'toast',
|
2022-04-20 15:20:42 +08:00
|
|
|
args: {
|
|
|
|
msgType: 'info',
|
|
|
|
msg: '派发blur事件'
|
|
|
|
}
|
2022-02-15 16:15:19 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
|
|
|
|
|
|
|
const focus = {
|
|
|
|
actions: [
|
|
|
|
{
|
|
|
|
actionType: 'toast',
|
2022-04-20 15:20:42 +08:00
|
|
|
args: {
|
|
|
|
msgType: 'info',
|
|
|
|
msg: '派发focus事件'
|
|
|
|
}
|
2022-02-15 16:15:19 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
|
|
|
|
|
|
|
const options = [
|
|
|
|
{
|
|
|
|
label: '选项A',
|
|
|
|
value: 'A'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '选项B',
|
|
|
|
value: 'B'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '选项C',
|
|
|
|
value: 'C'
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2022-01-28 10:33:33 +08:00
|
|
|
export default {
|
|
|
|
type: 'page',
|
|
|
|
title: '下拉框组件事件',
|
|
|
|
regions: ['body', 'toolbar', 'header'],
|
|
|
|
body: [
|
|
|
|
{
|
|
|
|
type: 'tpl',
|
|
|
|
tpl: 'Select下拉框',
|
|
|
|
inline: false,
|
|
|
|
wrapperComponent: 'h2'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'form',
|
|
|
|
debug: true,
|
|
|
|
body: [
|
|
|
|
{
|
|
|
|
type: 'group',
|
|
|
|
body: [
|
|
|
|
{
|
|
|
|
name: 'trigger1',
|
|
|
|
id: 'trigger1',
|
|
|
|
type: 'action',
|
|
|
|
label: 'clear触发器',
|
|
|
|
level: 'primary',
|
|
|
|
onEvent: {
|
|
|
|
click: {
|
|
|
|
actions: [
|
|
|
|
{
|
|
|
|
actionType: 'clear',
|
|
|
|
componentId: 'clear-select',
|
|
|
|
description: '点击清空指定下拉框选中值'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'clear-select',
|
|
|
|
id: 'clear-select',
|
|
|
|
type: 'select',
|
|
|
|
label: 'clear动作测试',
|
|
|
|
mode: 'row',
|
|
|
|
value: 'A,B,C',
|
|
|
|
multiple: true,
|
|
|
|
checkAll: true,
|
2022-05-31 15:05:54 +08:00
|
|
|
creatable: true,
|
|
|
|
editable: true,
|
|
|
|
removable: true,
|
2022-02-15 16:15:19 +08:00
|
|
|
options,
|
|
|
|
onEvent: {
|
2022-10-12 15:09:03 +08:00
|
|
|
change: change('clear-select'),
|
2022-02-15 16:15:19 +08:00
|
|
|
blur,
|
2022-05-31 15:05:54 +08:00
|
|
|
focus,
|
|
|
|
add,
|
|
|
|
edit,
|
|
|
|
delete: del
|
2022-02-15 16:15:19 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'tpl',
|
|
|
|
tpl: 'inputTag标签选择器',
|
|
|
|
inline: false,
|
|
|
|
wrapperComponent: 'h2'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'form',
|
|
|
|
debug: true,
|
|
|
|
body: [
|
|
|
|
{
|
|
|
|
type: 'group',
|
|
|
|
body: [
|
|
|
|
{
|
|
|
|
name: 'trigger2',
|
|
|
|
id: 'trigger2',
|
|
|
|
type: 'action',
|
|
|
|
label: 'clear触发器',
|
|
|
|
level: 'primary',
|
|
|
|
onEvent: {
|
|
|
|
click: {
|
|
|
|
actions: [
|
|
|
|
{
|
|
|
|
actionType: 'clear',
|
|
|
|
componentId: 'clear-input-tag',
|
|
|
|
description: '点击清空指定下拉框选中值'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'clear-input-tag',
|
|
|
|
id: 'clear-input-tag',
|
|
|
|
type: 'input-tag',
|
|
|
|
label: 'clear动作测试',
|
|
|
|
mode: 'row',
|
|
|
|
value: 'A,B',
|
|
|
|
multiple: true,
|
|
|
|
options,
|
|
|
|
onEvent: {
|
2022-10-12 15:09:03 +08:00
|
|
|
change: change('clear-input-tag'),
|
2022-02-15 16:15:19 +08:00
|
|
|
blur,
|
|
|
|
focus
|
|
|
|
}
|
2022-04-18 19:49:59 +08:00
|
|
|
}
|
2022-02-15 16:15:19 +08:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'tpl',
|
|
|
|
tpl: 'matrix-checkboxes矩阵勾选',
|
|
|
|
inline: false,
|
|
|
|
wrapperComponent: 'h2'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'form',
|
|
|
|
debug: true,
|
|
|
|
body: [
|
|
|
|
{
|
|
|
|
type: 'group',
|
|
|
|
body: [
|
|
|
|
{
|
|
|
|
name: 'trigger3',
|
|
|
|
id: 'trigger3',
|
|
|
|
type: 'action',
|
|
|
|
label: 'clear触发器',
|
|
|
|
level: 'primary',
|
|
|
|
onEvent: {
|
|
|
|
click: {
|
|
|
|
actions: [
|
|
|
|
{
|
|
|
|
actionType: 'clear',
|
|
|
|
componentId: 'clear-matrix-checkboxes',
|
|
|
|
description: '点击清空指定下拉框选中值'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'clear-matrix-checkboxes',
|
|
|
|
id: 'clear-matrix-checkboxes',
|
|
|
|
type: 'matrix-checkboxes',
|
2022-04-18 19:49:59 +08:00
|
|
|
rowLabel: '行标题说明',
|
2022-02-15 16:15:19 +08:00
|
|
|
columns: [
|
2022-01-28 10:33:33 +08:00
|
|
|
{
|
2022-02-15 16:15:19 +08:00
|
|
|
label: '列1'
|
2022-01-28 10:33:33 +08:00
|
|
|
},
|
|
|
|
{
|
2022-02-15 16:15:19 +08:00
|
|
|
label: '列2'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
rows: [
|
|
|
|
{
|
|
|
|
label: '行1'
|
2022-01-28 10:33:33 +08:00
|
|
|
},
|
|
|
|
{
|
2022-02-15 16:15:19 +08:00
|
|
|
label: '行2'
|
2022-01-28 10:33:33 +08:00
|
|
|
}
|
2022-02-15 16:15:19 +08:00
|
|
|
],
|
|
|
|
onEvent: {
|
2022-10-12 15:09:03 +08:00
|
|
|
change: change('clear-matrix-checkboxes')
|
2022-02-15 16:15:19 +08:00
|
|
|
}
|
2022-04-18 19:49:59 +08:00
|
|
|
}
|
2022-01-28 10:33:33 +08:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2022-02-15 16:15:19 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'tpl',
|
|
|
|
tpl: 'radios单选框',
|
|
|
|
inline: false,
|
|
|
|
wrapperComponent: 'h2'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'form',
|
|
|
|
debug: true,
|
|
|
|
body: [
|
|
|
|
{
|
|
|
|
type: 'group',
|
|
|
|
body: [
|
|
|
|
{
|
|
|
|
name: 'trigger4',
|
|
|
|
id: 'trigger4',
|
|
|
|
type: 'action',
|
|
|
|
label: 'clear触发器',
|
|
|
|
level: 'primary',
|
|
|
|
onEvent: {
|
|
|
|
click: {
|
|
|
|
actions: [
|
|
|
|
{
|
|
|
|
actionType: 'clear',
|
|
|
|
componentId: 'clear-radios',
|
|
|
|
description: '点击清空指定下拉框选中值'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'clear-radios',
|
|
|
|
id: 'clear-radios',
|
2022-04-18 19:49:59 +08:00
|
|
|
type: 'radios',
|
2022-02-15 16:15:19 +08:00
|
|
|
options,
|
|
|
|
onEvent: {
|
2022-10-12 15:09:03 +08:00
|
|
|
change: change('clear-radios')
|
2022-02-15 16:15:19 +08:00
|
|
|
}
|
2022-04-18 19:49:59 +08:00
|
|
|
}
|
2022-02-15 16:15:19 +08:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2022-02-21 19:28:53 +08:00
|
|
|
{
|
|
|
|
type: 'tpl',
|
|
|
|
tpl: 'nested-select嵌套下拉框',
|
|
|
|
inline: false,
|
|
|
|
wrapperComponent: 'h2'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'form',
|
|
|
|
debug: true,
|
|
|
|
body: [
|
|
|
|
{
|
|
|
|
type: 'group',
|
|
|
|
body: [
|
|
|
|
{
|
|
|
|
name: 'trigger6',
|
|
|
|
id: 'trigger6',
|
|
|
|
type: 'action',
|
|
|
|
label: 'clear触发器',
|
|
|
|
level: 'primary',
|
|
|
|
onEvent: {
|
|
|
|
click: {
|
|
|
|
actions: [
|
|
|
|
{
|
|
|
|
actionType: 'clear',
|
|
|
|
componentId: 'clear-nested-select',
|
|
|
|
description: '点击清空指定嵌套下拉框选中值'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'clear-nested-select',
|
|
|
|
id: 'clear-nested-select',
|
|
|
|
type: 'nested-select',
|
|
|
|
label: 'clear动作测试',
|
|
|
|
mode: 'row',
|
|
|
|
options: [
|
|
|
|
{
|
2022-04-18 19:49:59 +08:00
|
|
|
label: '选项A',
|
|
|
|
value: 'A',
|
2022-02-21 19:28:53 +08:00
|
|
|
children: []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '选项B',
|
|
|
|
value: 'B',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
label: '选项C',
|
|
|
|
value: 'C'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '选项D',
|
|
|
|
value: 'D'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
multiple: false,
|
|
|
|
hideNodePathLabel: false,
|
|
|
|
onlyChildren: false,
|
|
|
|
joinValues: true,
|
|
|
|
delimiter: '。',
|
|
|
|
onEvent: {
|
2022-10-12 15:09:03 +08:00
|
|
|
change: change('clear-nested-select'),
|
2022-02-21 19:28:53 +08:00
|
|
|
blur,
|
|
|
|
focus
|
|
|
|
}
|
2022-04-18 19:49:59 +08:00
|
|
|
}
|
2022-02-21 19:28:53 +08:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2022-04-27 19:26:03 +08:00
|
|
|
{
|
|
|
|
type: 'tpl',
|
|
|
|
tpl: 'chained-select级联下拉框',
|
|
|
|
inline: false,
|
|
|
|
wrapperComponent: 'h2'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'form',
|
|
|
|
debug: true,
|
|
|
|
body: [
|
|
|
|
{
|
|
|
|
type: 'group',
|
|
|
|
body: [
|
|
|
|
{
|
|
|
|
name: 'trigger11',
|
|
|
|
id: 'trigger11',
|
|
|
|
type: 'action',
|
|
|
|
label: 'clear触发器',
|
|
|
|
level: 'primary',
|
|
|
|
onEvent: {
|
|
|
|
click: {
|
|
|
|
actions: [
|
|
|
|
{
|
|
|
|
actionType: 'clear',
|
|
|
|
componentId: 'clear-chained-select',
|
|
|
|
description: '点击清空指定级联下拉框选中值'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'clear-chained-select',
|
|
|
|
id: 'clear-chained-select',
|
|
|
|
label: 'clear动作测试',
|
|
|
|
mode: 'row',
|
|
|
|
type: 'chained-select',
|
2022-05-31 15:05:54 +08:00
|
|
|
source:
|
|
|
|
'/api/mock2/options/chainedOptions?waitSeconds=1&parentId=$parentId&level=$level&maxLevel=4',
|
2022-04-27 19:26:03 +08:00
|
|
|
value: 'a,b',
|
|
|
|
onEvent: {
|
2022-10-12 15:09:03 +08:00
|
|
|
change: change('clear-chained-select'),
|
2022-04-27 19:26:03 +08:00
|
|
|
blur,
|
|
|
|
focus
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2022-03-04 14:52:50 +08:00
|
|
|
{
|
|
|
|
type: 'tpl',
|
|
|
|
tpl: 'input-city城市选择器',
|
|
|
|
inline: false,
|
|
|
|
wrapperComponent: 'h2'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'form',
|
|
|
|
debug: true,
|
|
|
|
body: [
|
|
|
|
{
|
|
|
|
type: 'group',
|
|
|
|
body: [
|
|
|
|
{
|
|
|
|
name: 'trigger10',
|
|
|
|
id: 'trigger10',
|
|
|
|
type: 'action',
|
|
|
|
label: 'clear触发器',
|
|
|
|
level: 'primary',
|
|
|
|
onEvent: {
|
|
|
|
click: {
|
|
|
|
actions: [
|
|
|
|
{
|
|
|
|
actionType: 'clear',
|
|
|
|
componentId: 'clear-input-city',
|
|
|
|
description: '点击清空城市选择器选中值'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'clear-input-city',
|
|
|
|
id: 'clear-input-city',
|
|
|
|
type: 'input-city',
|
|
|
|
label: 'clear动作测试',
|
|
|
|
mode: 'row',
|
|
|
|
onEvent: {
|
2022-10-12 15:09:03 +08:00
|
|
|
change: change('clear-input-city')
|
2022-03-04 14:52:50 +08:00
|
|
|
}
|
2022-04-18 19:49:59 +08:00
|
|
|
}
|
2022-03-04 14:52:50 +08:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2022-02-21 19:28:53 +08:00
|
|
|
{
|
|
|
|
type: 'tpl',
|
2022-02-22 19:17:49 +08:00
|
|
|
tpl: '单选框/复选框',
|
2022-02-21 19:28:53 +08:00
|
|
|
inline: false,
|
|
|
|
wrapperComponent: 'h2'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'form',
|
|
|
|
debug: true,
|
|
|
|
body: [
|
|
|
|
{
|
|
|
|
type: 'group',
|
|
|
|
body: [
|
|
|
|
{
|
|
|
|
name: 'trigger8',
|
|
|
|
id: 'trigger8',
|
|
|
|
type: 'action',
|
|
|
|
label: 'clear触发器',
|
|
|
|
level: 'primary',
|
|
|
|
onEvent: {
|
|
|
|
click: {
|
|
|
|
actions: [
|
|
|
|
{
|
|
|
|
actionType: 'clear',
|
|
|
|
componentId: 'clear-checkbox',
|
|
|
|
description: '点击清空指定单选框选中值'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'clear-checkbox',
|
|
|
|
id: 'clear-checkbox',
|
2022-04-18 19:49:59 +08:00
|
|
|
type: 'checkbox',
|
2022-02-21 19:28:53 +08:00
|
|
|
label: 'clear动作测试',
|
|
|
|
mode: 'row',
|
|
|
|
option: '勾选框',
|
|
|
|
onEvent: {
|
2022-10-12 15:09:03 +08:00
|
|
|
change: change('clear-checkbox')
|
2022-04-18 19:49:59 +08:00
|
|
|
}
|
|
|
|
}
|
2022-02-21 19:28:53 +08:00
|
|
|
]
|
2022-02-22 19:17:49 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'group',
|
|
|
|
body: [
|
|
|
|
{
|
|
|
|
name: 'trigger9',
|
|
|
|
id: 'trigger9',
|
|
|
|
type: 'action',
|
|
|
|
mode: 'row',
|
|
|
|
label: 'clear触发器',
|
|
|
|
level: 'primary',
|
|
|
|
onEvent: {
|
|
|
|
click: {
|
|
|
|
actions: [
|
|
|
|
{
|
|
|
|
actionType: 'clear',
|
|
|
|
componentId: 'clear-checkboxes',
|
|
|
|
description: '点击清空指定浮选框选中值'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'clear-checkboxes',
|
|
|
|
id: 'clear-checkboxes',
|
|
|
|
type: 'checkboxes',
|
|
|
|
mode: 'row',
|
|
|
|
label: 'clear动作测试',
|
|
|
|
options,
|
|
|
|
onEvent: {
|
2022-10-12 15:09:03 +08:00
|
|
|
change: change('clear-checkboxes')
|
2022-02-22 19:17:49 +08:00
|
|
|
}
|
2022-04-18 19:49:59 +08:00
|
|
|
}
|
2022-02-22 19:17:49 +08:00
|
|
|
]
|
2022-02-21 19:28:53 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2022-02-15 16:15:19 +08:00
|
|
|
{
|
|
|
|
type: 'tpl',
|
|
|
|
tpl: 'options类',
|
|
|
|
inline: false,
|
|
|
|
wrapperComponent: 'h2'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'form',
|
|
|
|
debug: true,
|
|
|
|
body: [
|
2022-04-18 19:49:59 +08:00
|
|
|
{
|
|
|
|
type: 'group',
|
|
|
|
body: [
|
|
|
|
{
|
|
|
|
type: 'group',
|
|
|
|
body: [
|
|
|
|
{
|
|
|
|
name: 'trigger5',
|
|
|
|
id: 'trigger5',
|
|
|
|
type: 'action',
|
|
|
|
label: 'clear触发器',
|
|
|
|
level: 'primary',
|
|
|
|
onEvent: {
|
|
|
|
click: {
|
|
|
|
actions: [
|
|
|
|
{
|
|
|
|
actionType: 'clear',
|
|
|
|
componentId: 'clear-options_001',
|
|
|
|
description: '点击清空指定下拉框选中值'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'clear-options_001',
|
|
|
|
id: 'clear-options_001',
|
|
|
|
type: 'button-group-select',
|
|
|
|
options,
|
|
|
|
onEvent: {
|
2022-10-12 15:09:03 +08:00
|
|
|
change: change('clear-options_001')
|
2022-04-18 19:49:59 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2022-02-15 16:15:19 +08:00
|
|
|
{
|
|
|
|
type: 'group',
|
|
|
|
body: [
|
|
|
|
{
|
|
|
|
name: 'trigger5',
|
|
|
|
id: 'trigger5',
|
|
|
|
type: 'action',
|
|
|
|
label: 'clear触发器',
|
|
|
|
level: 'primary',
|
|
|
|
onEvent: {
|
|
|
|
click: {
|
|
|
|
actions: [
|
|
|
|
{
|
|
|
|
actionType: 'clear',
|
2022-04-18 19:49:59 +08:00
|
|
|
componentId: 'clear-options_002',
|
2022-02-15 16:15:19 +08:00
|
|
|
description: '点击清空指定下拉框选中值'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2022-04-18 19:49:59 +08:00
|
|
|
name: 'clear-options_002',
|
|
|
|
id: 'clear-options_002',
|
2022-02-15 16:15:19 +08:00
|
|
|
type: 'list-select',
|
|
|
|
options,
|
|
|
|
onEvent: {
|
2022-10-12 15:09:03 +08:00
|
|
|
change: change('clear-options_002')
|
2022-02-15 16:15:19 +08:00
|
|
|
}
|
2022-04-18 19:49:59 +08:00
|
|
|
}
|
2022-02-15 16:15:19 +08:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2022-04-18 19:49:59 +08:00
|
|
|
}
|
|
|
|
]
|
2022-01-28 10:33:33 +08:00
|
|
|
};
|