mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix: Picker 组件 itemClick 事件改成驼峰式的命名 (#6453)
This commit is contained in:
parent
284dd97d2a
commit
c333aa8d43
@ -41,7 +41,7 @@ export default {
|
||||
}
|
||||
],
|
||||
onEvent: {
|
||||
itemclick: {
|
||||
itemClick: {
|
||||
actions: [
|
||||
{
|
||||
actionType: 'alert',
|
||||
@ -298,7 +298,7 @@ export default {
|
||||
]
|
||||
},
|
||||
onEvent: {
|
||||
itemclick: {
|
||||
itemClick: {
|
||||
actions: [
|
||||
{
|
||||
actionType: 'alert',
|
||||
|
@ -82,7 +82,7 @@ export class PickerControlPlugin extends BasePlugin {
|
||||
]
|
||||
},
|
||||
{
|
||||
eventName: 'itemclick',
|
||||
eventName: 'itemClick',
|
||||
eventLabel: '点击选项',
|
||||
description: '选项被点击时触发',
|
||||
dataSchema: [
|
||||
|
@ -763,12 +763,13 @@ test('Renderer:combo with addable & addattop & addBtn & addButtonText & addButto
|
||||
fireEvent.click(
|
||||
container.querySelector('.addAtTopClass .cxd-Combo-toolbar button')!
|
||||
);
|
||||
await wait(10);
|
||||
expect(
|
||||
(container.querySelector(
|
||||
'.addAtTopClass .cxd-Combo-item .cxd-TextControl-input input'
|
||||
) as HTMLInputElement)!.value
|
||||
).toBe('');
|
||||
await waitFor(() => {
|
||||
expect(
|
||||
(container.querySelector(
|
||||
'.addAtTopClass .cxd-Combo-item .cxd-TextControl-input input'
|
||||
) as HTMLInputElement)!.value
|
||||
).toBe('');
|
||||
});
|
||||
|
||||
expect(
|
||||
container.querySelector('.addableClass .cxd-Combo-toolbar button')!
|
||||
|
Loading…
Reference in New Issue
Block a user