import { DataViewControlInterface } from '@ibizstudio/runtime'; import { IPSDEDataView, IPSDEDataViewItem } from '@ibizstudio/runtime'; import { MDControlBase } from './md-control-base'; /** * 数据视图部件基类 * * @export * @class DataViewControlBase * @extends {MDControlBase} */ export declare class DataViewControlBase extends MDControlBase implements DataViewControlInterface { /** * 部件行为--submit * * @type {*} * @memberof DataViewControlBase */ WFSubmitAction?: any; /** * 部件行为--start * * @type {*} * @memberof DataViewControlBase */ WFStartAction?: any; /** * 是否单选 * * @type {boolean} * @memberof DataViewControlBase */ isSingleSelect?: boolean; /** * 数据视图模型实例 * * @type {*} * @memberof DataViewControlBase */ controlInstance: IPSDEDataView; /** * 分组属性 * * @type {string} * @memberof DataViewControlBase */ groupAppField: string; /** * 分组属性代码表标识 * * @type {string} * @memberof DataViewControlBase */ groupAppFieldCodelistTag: string; /** * 分组属性是否配置代码表 * * @type {string} * @memberof DataViewControlBase */ groupFieldCodelist: boolean; /** * 分组属性代码表类型 * * @type {string} * @memberof DataViewControlBase */ groupAppFieldCodelistType: string; /** * 分组代码表标识 * * @type {string} * @memberof DataViewControlBase */ codelistTag: string; /** * 分组代码表类型 * * @type {string} * @memberof DataViewControlBase */ codelistType: string; /** * 分组数据 * * @type {*} * @memberof DataViewControlBase */ groupData: Array; /** * 分组模式 * * @type {string} * @memberof DataViewControlBase */ groupMode: string; /** * 分组代码表 * * @type {string} * @memberof DataViewControlBase */ groupCodeListParams?: any; /** * 加载的数据是否附加在items之后 * * @type {boolean} * @memberof DataViewControlBase */ isAddBehind: boolean; /** * 是否启用分组 * * @type {boolean} * @memberof DataViewControlBase */ isEnableGroup: boolean; /** * 排序字段 * * @type {string} * @memberof DataViewControlBase */ sortField: string; /** * 排序模型数据集 * * @type {string} * @memberof DataViewControlBase */ sortModel: any[]; /** * 排序方向 * * @type {string} * @memberof DataViewControlBase */ sortDir: string; /** * 默认隐藏批量操作工具栏 * * @type {boolean} * @memberof DataViewControlBase */ flag: boolean; /** * 是否显示排序栏 * * @type {boolean} * @memberof DataViewControlBase */ hasSortBar: boolean; /** * this引用 * * @type {number} * @memberof DataViewControlBase */ thisRef: any; /** * 拖拽元素对象 * * @type {boolean} * @memberof DataViewControlBase */ dragEle: any; /** * 拖拽后位置left * * @type {boolean} * @memberof DataViewControlBase */ leftP: any; /** * 拖拽后位置top * * @type {boolean} * @memberof DataViewControlBase */ topP: any; /** * 拖拽标识 * * @type {boolean} * @memberof DataViewControlBase */ dragflag: boolean; /** * 为拖拽不是点击 * * @type {boolean} * @memberof DataViewControlBase */ moveflag: boolean; /** * 监听静态参数变化 * * @param {*} newVal * @param {*} oldVal * @memberof DataViewControlBase */ onStaticPropsChange(newVal: any, oldVal: any): void; /** * 部件模型初始化 * * @memberof DataViewControlBase */ ctrlModelInit(): Promise; /** * 初始化排序模型数据 * * @memberof DataViewControlBase */ initSortModel(): void; /** * 初始化数据映射 * * @memberof ListControlBase */ initDataMap(): void; /** * 数据视图部件初始化 * * @memberof DataViewControlBase */ ctrlInit(): void; viewStateAction(tag: string, action: string, data: any): void; /** * 初始化界面行为模型 * * @type {*} * @memberof DataViewControlBase */ initCtrlActionModel(): void; /** * 数据加载 * * @param {*} [opt={}] 额外参数 * @param {boolean} [isReset=false] 是否重置数据,默认加载到的数据附加在已有的之后 * @return {*} * @memberof DataViewControlBase */ load(opt?: any, isReset?: boolean): Promise; /** * 删除 * * @param {any[]} datas 删除数据 * @returns {Promise} * @memberof DataViewControlBase */ remove(datas: any[]): Promise; /** * 保存 * * @param {any[]} args 额外参数 * @return {*} * @memberof DataViewControlBase */ save(args: any): Promise; /** * 刷新 * * @param {*} [args={}] 额外参数 * @memberof DataViewControlBase */ refresh(args?: any): Promise; /** * 加载更多 * * @memberof DataViewControlBase */ loadMore(): Promise; /** * 单击事件 * * @param {*} args 数据 * @memberof DataViewControlBase */ handleClick(args: any): void; /** * 触发事件 * * @memberof DataViewControlBase */ selectchange(): void; /** * 面板数据变化处理事件 * @param {any} item 当前卡片数据 * @param {any} $event 面板事件数据 * * @memberof DataViewControlBase */ onPanelDataChange(item: any, $event: any): void; /** * 双击事件 * * @param {*} args 数据 * @memberof DataViewControlBase */ handleDblClick(args: any): void; /** * 处理操作列点击 * * @param {*} data 数据 * @param {*} event 事件源 * @param {*} item 数据视图项模型 * @param {*} detail 操作列模型 * @memberof DataViewControlBase */ handleActionClick(data: any, event: any, item: any, detail: any): void; /** * 排序点击事件 * @param {string} field 属性名 * * @memberof DataViewControlBase */ sortClick(field: string): void; /** * 分组方法 * * @memberof DataViewControlBase */ group(): void; /** * 部件事件 * * @param {string} controlname 部件名 * @param {string} action 事件名 * @param {*} data 数据 * @memberof DataViewControlBase */ onCtrlEvent(controlname: string, action: string, data: any): void; /** * 计算卡片视图部件所需参数 * * @param {*} controlInstance 部件模型对象 * @param {*} item 单条卡片数据 * @returns * @memberof DataViewControlBase */ computeTargetCtrlData(controlInstance: any, item?: any): { targetCtrlName: string; targetCtrlParam: any; targetCtrlEvent: any; }; /** * 绘制数据视图内容 * * @memberof DataViewControlBase */ renderDataViewContent(h: any): JSX.Element | JSX.Element[]; /** * 批操作工具栏 * * @memberof DataViewControlBase */ renderBatchToolbar(): JSX.Element | undefined; /** * 更改批量操作工具栏显示状态 * * @param $event 时间源 * @memberof DataViewControlBase */ onClick($event: any): void; /** * 绘制加载数据提示信息 * * @memberof DataViewControlBase */ renderLoadDataTip(): JSX.Element; /** * 绘制无数据提示信息 * * @memberof DataViewControlBase */ renderEmptyDataTip(): JSX.Element; /** * 分组 * */ renderGroup(h: any): JSX.Element[]; /** * 绘制有子成员的项 * */ hasChildrenRender(h: any, group: any, dataViewItem: IPSDEDataViewItem): any; /** * 绘制卡片 * * @memberof DataViewControlBase */ renderCard(h: any, args: any, dataViewItem: IPSDEDataViewItem): JSX.Element; /** * 绘制DataViewItem * * @memberof DataViewControlBase */ renderDataViewItem(h: any, item: any, dataViewItem: IPSDEDataViewItem): any; /** * 绘制卡片视图项布局面板部件 * * @returns {*} * @memberof DataViewControlBase */ renderItemPSLayoutPanel(item: any): import("vue").VNode; /** * 绘制列表项行为 * @param item * @param dataViewItem * @memberof DataViewControlBase */ renderDataViewItemAction(h: any, args: any, dataViewItem: IPSDEDataViewItem): (JSX.Element | undefined)[] | null; /** * 绘制排序栏 * * @memberof DataViewControlBase */ renderSortBar(h: any): JSX.Element | undefined; /** * 根据分组代码表绘制分组列表 * * @memberof DataViewControlBase */ drawCodeListGroup(): Promise; /** * 绘制分组列表 * * @memberof DataViewControlBase */ drawGroup(): Promise; /** * 排序class变更 * @param {string} field 属性名 * * @memberof DataViewControlBase */ getsortClass(field: string): "" | "sort-ascending" | "sort-descending" | undefined; /** * 鼠标移动+放下 * * @memberof DataViewControlBase */ mouseEvent(): void; /** * mousedown事件 * * @param e 事件源 * @memberof DataViewControlBase */ down(e: any): void; /** * 获取界面行为权限状态 * * @param {*} data 当前列表行数据 * @memberof DataViewControlBase */ getActionState(data: any): any; } //# sourceMappingURL=dataview-control-base.d.ts.map