import * as purease from './purease.js'; export interface IControlVue extends purease.IVue { /** --- 获取 props 中的 boolean 类型的值 --- */ propBoolean: (name: string) => boolean; /** --- 获取 props 中的 number 类型的值 --- */ propNumber: (name: string) => number; /** --- 获取 props 中的 int 类型的值 --- */ propInt: (name: string) => number; /** --- 获取 props 中的 array 类型的值 --- */ propArray: (name: string) => any[]; /** --- 根据 control name 查询上层控件 --- */ parentByName: (controlName: string) => IControlVue | null; /** --- 获取语言包内容 --- */ l: (key: string, data?: string[]) => string; /** --- 获取 alignH 的 css 属性模式,请确保 $props.alignH 存在 --- */ alignHComp: string | undefined; /** --- 获取 alignH 的 css 属性模式,请确保 props.alignH 存在 --- */ alignVComp: string | undefined; /** --- 是否是 rtl 模式 --- */ isRtl: boolean; } /** --- 通用的一些方法和 computed --- */ export declare const common: { computed: { propBoolean: (this: purease.IVue) => (name: string) => boolean; propNumber: (this: purease.IVue) => (name: string) => number; propInt: (this: purease.IVue) => (name: string) => number; /** --- 获取 props 中的 array 类型的值 --- */ propArray: (this: purease.IVue) => (name: string) => any[]; /** --- 根据 control name 查询上层控件 --- */ parentByName: (this: purease.IVue) => (controlName: string) => (Record) | null; l: (this: purease.IVue) => (key: string, data?: string[]) => string; /** --- 获取 alignH 的 css 属性模式,请确保 $props.alignH 存在 --- */ alignHComp: (this: purease.IVue) => string | undefined; /** --- 获取 alignH 的 css 属性模式,请确保 props.alignH 存在 --- */ alignVComp: (this: purease.IVue) => string | undefined; /** --- 是否是 rtl 模式 --- */ isRtl: (this: purease.IVue) => boolean; }; }; export declare const list: Record; 'data'?: () => Record; 'computed'?: Record; [key: string]: any; }>; interface ICustomEvent { 'go': boolean; /** --- 阻止默认行为 --- */ preventDefault: () => void; } /** --- 移除事件 --- */ export interface IUploaderRemoveEvent { 'go': boolean; preventDefault: () => void; 'detail': { 'index': number; }; } export interface ICollapseChangeEvent { 'detail': { 'value': string | string[]; }; } export interface ITextBeforechangeEvent extends ICustomEvent { 'detail': { 'value': string; 'change'?: string; }; } export interface IDlistChangedEvent { 'detail': { 'value': string; 'index': number; 'label': string; }; } export type IDlistTapEvent = IDlistChangedEvent; export interface ISpaShowEvent { 'detail': { 'prev': string; 'path': string; 'query': Record; }; } export interface ISpaHideEvent { 'detail': { 'path': string; 'next': string; }; } export interface ISelectChangedEvent { 'detail': { 'value': string; 'index': number; 'label': string; }; } export interface ISwitchChangeEvent extends ICustomEvent { 'detail': { 'value': any; }; } export interface IDateChangedEvent { 'detail': { 'value'?: number; }; } export interface IDatepanelRangeEvent extends ICustomEvent { 'detail': { 'start': number; 'end': number; }; } export interface IDatepanelChangedEvent { 'detail': { 'value'?: number; }; } export interface IDatepanelSelectedEvent { 'detail': { 'time': number; 'date': number; 'month': number; 'year': number; 'day': number; 'str': string; }; } export interface ICaptchaResultEvent { 'detail': { 'result': number; 'token': string; }; } /** --- Cascader 数据项类型 --- */ export interface ICascaderOption { 'label'?: string; 'value'?: string; 'disabled'?: boolean; /** --- 是否为叶子节点,lazy 模式下用于判断是否需要加载子节点 --- */ 'leaf'?: boolean; 'children'?: ICascaderOption[]; } /** --- Cascader 选中项变更事件 --- */ export interface ICascaderChangedEvent { 'detail': { /** --- 选中值数组 --- */ 'value': string[]; /** --- 选中标签数组 --- */ 'labels': string[]; }; } export {};