import type { ActiveRecord, ActiveRecords, RuntimeAction } from '@oinone/kunlun-engine'; import type { ClickResult } from './action'; export interface PopupEventHandles { cancel: Function; ok: Function; } export type PopupEventHandle = Record; export interface PopupSubmitParameters { showRecords: ActiveRecord[]; submitRecords: ActiveRecords; } export interface PopupSubmitOptions { parameters?: PopupSubmitParameters; mapping?: Record; action?: RuntimeAction; } export type PopupSubmitFunction = (options?: PopupSubmitOptions) => ClickResult; export enum PopupSubmitType { current = 'current', all = 'all' } /** * PopupType扩展 * */ export enum PopupScene { dialog = 'dialog', drawer = 'drawer', inner = 'inner' }