mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-24 14:30:11 +08:00
32 lines
823 B
TypeScript
32 lines
823 B
TypeScript
import { InteractEventOn, InteractActionsType } from '@/enums/eventEnum'
|
|
|
|
// 时间组件类型
|
|
export enum ComponentInteractEventEnum {
|
|
DATA = 'data'
|
|
}
|
|
|
|
// 联动参数
|
|
export enum ComponentInteractParamsEnum {
|
|
DATA = 'data',
|
|
DATA2 = 'data2'
|
|
}
|
|
|
|
// 定义组件触发回调事件
|
|
export const interactActions: InteractActionsType[] = [
|
|
{
|
|
interactType: InteractEventOn.CHANGE,
|
|
interactName: '选择完成',
|
|
componentEmitEvents: {
|
|
[ComponentInteractEventEnum.DATA]: [
|
|
{
|
|
value: ComponentInteractParamsEnum.DATA,
|
|
label: '页数'
|
|
},
|
|
{
|
|
value: ComponentInteractParamsEnum.DATA2,
|
|
label: '每页条数'
|
|
}
|
|
]
|
|
}
|
|
}
|
|
] |