star-horse-lowcode
Version:
星马低代码核心库,提供了低代码平台的基础功能和组件库。此库可引用到您的项目中,快速构建表单和列表。
2,261 lines (2,102 loc) • 190 kB
TypeScript
import { App } from 'vue';
import { AxiosInstance } from 'axios';
import { AxiosResponse } from 'axios';
import { ComponentOptionsMixin } from 'vue';
import { ComponentProvideOptions } from 'vue';
import { ComputedRef } from 'vue';
import { CreateComponentPublicInstanceWithMixins } from 'vue';
import { CSSProperties } from 'vue';
import { DefineComponent } from 'vue';
import { ExtractPropTypes } from 'vue';
import { GlobalComponents } from 'vue';
import { GlobalDirectives } from 'vue';
import { JSONEditorSelection } from 'vanilla-jsoneditor';
import { JSONParser } from 'vanilla-jsoneditor';
import { JSONPathParser } from 'vanilla-jsoneditor';
import { OnClassName } from 'vanilla-jsoneditor';
import { OnRenderMenu } from 'vanilla-jsoneditor';
import { OnRenderValue } from 'vanilla-jsoneditor';
import { Pinia } from 'pinia';
import { PropType } from 'vue';
import { PublicProps } from 'vue';
import { QueryLanguageId } from 'vue3-ts-jsoneditor';
import { Reactive } from 'vue';
import { Ref } from 'vue';
import { RouteLocationNormalized } from 'vue-router';
import { Router } from 'vue-router';
import { StoreDefinition } from 'pinia';
import { Validator } from 'vanilla-jsoneditor';
import { WritableComputedRef } from 'vue';
declare const __VLS_component: DefineComponent<ExtractPropTypes< {
dialogVisible: {
type: BooleanConstructor;
default: boolean;
};
dialogProps: {
type: PropType<DialogProps>;
default: {};
};
isShowReset: {
type: BooleanConstructor;
default: boolean;
};
isShowSave: {
type: BooleanConstructor;
default: boolean;
};
isShowBtnContinue: {
type: BooleanConstructor;
default: boolean;
};
source: {
type: NumberConstructor;
default: number;
};
draggable: {
type: BooleanConstructor;
default: boolean;
};
boxHeight: {
type: StringConstructor;
default: string;
};
boxWidth: {
type: StringConstructor;
default: string;
};
isBatch: {
type: BooleanConstructor;
default: boolean;
};
fullScreen: {
type: BooleanConstructor;
default: boolean;
};
hideFullScreenIcon: {
type: BooleanConstructor;
default: boolean;
};
selfFunc: {
type: BooleanConstructor;
default: boolean;
};
selfClose: {
type: BooleanConstructor;
default: boolean;
};
btnText: {
type: StringConstructor;
};
userBtn: {
type: {
(arrayLength: number): UserFuncInfo[];
(...items: UserFuncInfo[]): UserFuncInfo[];
new (arrayLength: number): UserFuncInfo[];
new (...items: UserFuncInfo[]): UserFuncInfo[];
isArray(arg: any): arg is any[];
readonly prototype: any[];
from<T>(arrayLike: ArrayLike<T>): T[];
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
of<T>(...items: T[]): T[];
readonly [Symbol.species]: ArrayConstructor;
};
default: any[];
};
btnTextContinue: {
type: StringConstructor;
default: string;
};
title: {
type: StringConstructor;
default: string;
};
compSize: {
type: StringConstructor;
default: any;
};
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
merge: (...args: any[]) => void;
mergeDraft: (...args: any[]) => void;
resetForm: (...args: any[]) => void;
open: (...args: any[]) => void;
closeAction: (...args: any[]) => void;
}, string, PublicProps, Readonly<ExtractPropTypes< {
dialogVisible: {
type: BooleanConstructor;
default: boolean;
};
dialogProps: {
type: PropType<DialogProps>;
default: {};
};
isShowReset: {
type: BooleanConstructor;
default: boolean;
};
isShowSave: {
type: BooleanConstructor;
default: boolean;
};
isShowBtnContinue: {
type: BooleanConstructor;
default: boolean;
};
source: {
type: NumberConstructor;
default: number;
};
draggable: {
type: BooleanConstructor;
default: boolean;
};
boxHeight: {
type: StringConstructor;
default: string;
};
boxWidth: {
type: StringConstructor;
default: string;
};
isBatch: {
type: BooleanConstructor;
default: boolean;
};
fullScreen: {
type: BooleanConstructor;
default: boolean;
};
hideFullScreenIcon: {
type: BooleanConstructor;
default: boolean;
};
selfFunc: {
type: BooleanConstructor;
default: boolean;
};
selfClose: {
type: BooleanConstructor;
default: boolean;
};
btnText: {
type: StringConstructor;
};
userBtn: {
type: {
(arrayLength: number): UserFuncInfo[];
(...items: UserFuncInfo[]): UserFuncInfo[];
new (arrayLength: number): UserFuncInfo[];
new (...items: UserFuncInfo[]): UserFuncInfo[];
isArray(arg: any): arg is any[];
readonly prototype: any[];
from<T>(arrayLike: ArrayLike<T>): T[];
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
of<T>(...items: T[]): T[];
readonly [Symbol.species]: ArrayConstructor;
};
default: any[];
};
btnTextContinue: {
type: StringConstructor;
default: string;
};
title: {
type: StringConstructor;
default: string;
};
compSize: {
type: StringConstructor;
default: any;
};
}>> & Readonly<{
onMerge?: (...args: any[]) => any;
onMergeDraft?: (...args: any[]) => any;
onResetForm?: (...args: any[]) => any;
onOpen?: (...args: any[]) => any;
onCloseAction?: (...args: any[]) => any;
}>, {
source: number;
title: string;
selfFunc: boolean;
dialogProps: DialogProps;
compSize: string;
dialogVisible: boolean;
isShowReset: boolean;
isShowSave: boolean;
isShowBtnContinue: boolean;
draggable: boolean;
boxHeight: string;
boxWidth: string;
isBatch: boolean;
fullScreen: boolean;
hideFullScreenIcon: boolean;
selfClose: boolean;
userBtn: UserFuncInfo[];
btnTextContinue: string;
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
declare const __VLS_component_2: DefineComponent<ExtractPropTypes< {
menuIcon: {
type: StringConstructor;
};
iconUrl: {
type: StringConstructor;
};
iconSize: {
type: NumberConstructor;
default: number;
};
icons: {
type: ArrayConstructor;
default: () => any[];
};
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
selectIcon: (...args: any[]) => void;
}, string, PublicProps, Readonly<ExtractPropTypes< {
menuIcon: {
type: StringConstructor;
};
iconUrl: {
type: StringConstructor;
};
iconSize: {
type: NumberConstructor;
default: number;
};
icons: {
type: ArrayConstructor;
default: () => any[];
};
}>> & Readonly<{
onSelectIcon?: (...args: any[]) => any;
}>, {
iconSize: number;
icons: unknown[];
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
declare const __VLS_component_3: DefineComponent<ExtractPropTypes< {
needScroller: {
type: BooleanConstructor;
default: boolean;
};
dataForm: {
type: PropType<any>;
};
}>, {
getFields: () => any;
validate: () => Promise<any>;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
"update:dataForm": (value: any) => any;
}, string, PublicProps, Readonly<ExtractPropTypes< {
needScroller: {
type: BooleanConstructor;
default: boolean;
};
dataForm: {
type: PropType<any>;
};
}>> & Readonly<{
"onUpdate:dataForm"?: (value: any) => any;
}>, {
needScroller: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, true, {
shFormRef: unknown;
}, any>;
declare const __VLS_component_4: DefineComponent<ExtractPropTypes< {
menuData: {
type: PropType<any>;
default: () => any[];
};
isSubMenu: {
type: BooleanConstructor;
default: boolean;
};
autoHide: {
type: BooleanConstructor;
default: boolean;
};
active: {
type: (NumberConstructor | StringConstructor)[];
default: string;
};
}>, {
menu: Ref<HTMLDivElement, HTMLDivElement>;
menuPosition: Ref< {
left: number;
top: number;
}, {
left: number;
top: number;
} | {
left: number;
top: number;
}>;
hide: () => void;
show: (e?: MouseEvent) => void;
contains: (el: HTMLElement) => any;
setPosition: (e: MouseEvent) => void;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
mouseenter: () => any;
show: () => any;
hide: () => any;
}, string, PublicProps, Readonly<ExtractPropTypes< {
menuData: {
type: PropType<any>;
default: () => any[];
};
isSubMenu: {
type: BooleanConstructor;
default: boolean;
};
autoHide: {
type: BooleanConstructor;
default: boolean;
};
active: {
type: (NumberConstructor | StringConstructor)[];
default: string;
};
}>> & Readonly<{
onMouseenter?: () => any;
onShow?: () => any;
onHide?: () => any;
}>, {
active: string | number;
menuData: any;
isSubMenu: boolean;
autoHide: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, true, {
menu: HTMLDivElement;
buttons: HTMLDivElement;
subMenu: unknown;
}, any>;
declare type __VLS_Props = ContainerPreps;
declare type __VLS_Props_10 = ItemPreps;
declare type __VLS_Props_11 = ItemPreps;
declare type __VLS_Props_12 = ItemPreps;
declare type __VLS_Props_13 = ItemPreps;
declare type __VLS_Props_14 = ItemPreps;
declare type __VLS_Props_15 = ItemPreps;
declare type __VLS_Props_16 = ItemPreps;
declare type __VLS_Props_17 = ItemPreps;
declare type __VLS_Props_18 = ItemPreps;
declare type __VLS_Props_19 = ItemPreps;
declare type __VLS_Props_2 = ItemPreps;
declare type __VLS_Props_20 = ItemPreps;
declare type __VLS_Props_21 = ItemPreps;
declare type __VLS_Props_22 = ItemPreps;
declare type __VLS_Props_23 = ItemPreps;
declare type __VLS_Props_24 = ItemPreps;
declare type __VLS_Props_25 = ItemPreps;
declare type __VLS_Props_26 = ItemPreps;
declare type __VLS_Props_27 = ItemPreps;
declare type __VLS_Props_28 = ItemPreps;
declare type __VLS_Props_29 = ItemPreps;
declare type __VLS_Props_3 = ItemPreps;
declare type __VLS_Props_30 = ItemPreps;
declare type __VLS_Props_31 = ItemPreps;
declare type __VLS_Props_32 = ItemPreps;
declare type __VLS_Props_33 = ItemPreps;
declare type __VLS_Props_34 = ItemPreps;
declare type __VLS_Props_35 = ItemPreps;
declare type __VLS_Props_36 = ItemPreps;
declare type __VLS_Props_37 = ItemPreps;
declare type __VLS_Props_38 = ItemPreps;
declare type __VLS_Props_39 = ItemPreps;
declare type __VLS_Props_4 = ItemPreps;
declare type __VLS_Props_40 = ItemPreps;
declare type __VLS_Props_41 = ItemPreps;
declare type __VLS_Props_5 = ItemPreps;
declare type __VLS_Props_6 = ItemPreps;
declare type __VLS_Props_7 = ItemPreps;
declare type __VLS_Props_8 = ItemPreps;
declare type __VLS_Props_9 = ItemPreps;
declare type __VLS_PublicProps = {
"dataForm"?: any;
} & __VLS_Props;
declare type __VLS_PublicProps_10 = {
"formData"?: any;
} & __VLS_Props_10;
declare type __VLS_PublicProps_11 = {
"formData"?: any;
} & __VLS_Props_11;
declare type __VLS_PublicProps_12 = {
"formData"?: any;
} & __VLS_Props_12;
declare type __VLS_PublicProps_13 = {
"formData"?: any;
} & __VLS_Props_13;
declare type __VLS_PublicProps_14 = {
"formData"?: any;
} & __VLS_Props_14;
declare type __VLS_PublicProps_15 = {
"formData"?: any;
} & __VLS_Props_15;
declare type __VLS_PublicProps_16 = {
"formData"?: any;
} & __VLS_Props_16;
declare type __VLS_PublicProps_17 = {
"formData"?: any;
} & __VLS_Props_17;
declare type __VLS_PublicProps_18 = {
"formData"?: any;
} & __VLS_Props_18;
declare type __VLS_PublicProps_19 = {
"formData"?: any;
} & __VLS_Props_19;
declare type __VLS_PublicProps_2 = {
"formData"?: any;
} & __VLS_Props_2;
declare type __VLS_PublicProps_20 = {
"formData"?: any;
} & __VLS_Props_20;
declare type __VLS_PublicProps_21 = {
"formData"?: any;
} & __VLS_Props_21;
declare type __VLS_PublicProps_22 = {
"formData"?: any;
} & __VLS_Props_22;
declare type __VLS_PublicProps_23 = {
"formData"?: any;
} & __VLS_Props_23;
declare type __VLS_PublicProps_24 = {
"formData"?: any;
} & __VLS_Props_24;
declare type __VLS_PublicProps_25 = {
"formData"?: any;
} & __VLS_Props_25;
declare type __VLS_PublicProps_26 = {
"formData"?: any;
} & __VLS_Props_26;
declare type __VLS_PublicProps_27 = {
"formData"?: any;
} & __VLS_Props_27;
declare type __VLS_PublicProps_28 = {
"formData"?: any;
} & __VLS_Props_28;
declare type __VLS_PublicProps_29 = {
"formData"?: any;
} & __VLS_Props_29;
declare type __VLS_PublicProps_3 = {
"formData"?: any;
} & __VLS_Props_3;
declare type __VLS_PublicProps_30 = {
"formData"?: any;
} & __VLS_Props_30;
declare type __VLS_PublicProps_31 = {
"formData"?: any;
} & __VLS_Props_31;
declare type __VLS_PublicProps_32 = {
"formData"?: any;
} & __VLS_Props_32;
declare type __VLS_PublicProps_33 = {
"formData"?: any;
} & __VLS_Props_33;
declare type __VLS_PublicProps_34 = {
"formData"?: any;
} & __VLS_Props_34;
declare type __VLS_PublicProps_35 = {
"formData"?: any;
} & __VLS_Props_35;
declare type __VLS_PublicProps_36 = {
"formData"?: any;
} & __VLS_Props_36;
declare type __VLS_PublicProps_37 = {
"formData"?: any;
} & __VLS_Props_37;
declare type __VLS_PublicProps_38 = {
"formData"?: any;
} & __VLS_Props_38;
declare type __VLS_PublicProps_39 = {
"formData"?: any;
} & __VLS_Props_39;
declare type __VLS_PublicProps_4 = {
"formData"?: any;
} & __VLS_Props_4;
declare type __VLS_PublicProps_40 = {
"formData"?: any;
} & __VLS_Props_40;
declare type __VLS_PublicProps_41 = {
"formData"?: any;
} & __VLS_Props_41;
declare type __VLS_PublicProps_5 = {
"formData"?: any;
} & __VLS_Props_5;
declare type __VLS_PublicProps_6 = {
"formData"?: any;
} & __VLS_Props_6;
declare type __VLS_PublicProps_7 = {
"formData"?: any;
} & __VLS_Props_7;
declare type __VLS_PublicProps_8 = {
"formData"?: any;
} & __VLS_Props_8;
declare type __VLS_PublicProps_9 = {
"formData"?: any;
} & __VLS_Props_9;
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
header?(_: {}): any;
default?(_: {}): any;
extend?(_: {}): any;
footer?(_: {}): any;
};
refs: {};
rootEl: any;
};
declare function __VLS_template_2(): {
attrs: Partial<{}>;
slots: {
default?(_: {}): any;
};
refs: {};
rootEl: any;
};
declare function __VLS_template_3(): {
attrs: Partial<{}>;
slots: {
header?(_: {}): any;
default?(_: {}): any;
default?(_: {}): any;
empty?(_: {}): any;
empty?(_: {}): any;
button?(_: {}): any;
};
refs: {
shFormRef: unknown;
};
rootEl: any;
};
declare function __VLS_template_4(): {
attrs: Partial<{}>;
slots: {
title?(_: {}): any;
};
refs: {
menu: HTMLDivElement;
buttons: HTMLDivElement;
subMenu: unknown;
};
rootEl: any;
};
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
declare type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
new (): {
$slots: S;
};
};
declare type __VLS_WithTemplateSlots_3<T, S> = T & {
new (): {
$slots: S;
};
};
declare type __VLS_WithTemplateSlots_4<T, S> = T & {
new (): {
$slots: S;
};
};
/**
* 公共Api接口
* @param appName 应用名称
* @param urlPrefix api接口前缀
* @param condition 条件
*/
export declare function apiInstance(appName: string, urlPrefix: string, condition?: Array<any>): ApiUrls;
/**
* 组件用到的属性
*/
export declare type ApiUrls = {
/**
* 分页接口
*/
pageListUrl: string;
/**
* merge接口
*/
mergeUrl: string;
/**
* merge暂存接口
*/
mergeDraftUrl: string;
/**
* 批量Merge接口
*/
batchMergeUrl: string;
/**
* 批量暂存接口
*/
batchMergeDraftUrl: string;
/**
* 根据Id获取数据接口
*/
loadByIdUrl: string;
/**
* 根据Id获取数据接口
*/
loadByIdForViewUrl: string;
/**
* 删除数据接口
*/
deleteUrl: string;
/**
* 根据条件删除数据
*/
deleteByConditionUrl?: string;
/**
* 导出数据接口
*/
exportAllUrl?: string;
/**
* 下载模板接口
*/
downloadTemplateUrl?: string;
/**
* 自定义查询接口 返回满足条件的所有数据
*/
listConditionUrl?: string;
/**
* 自定义查询接口 返回满足条件的一条数据
*/
oneConditionUrl?: string;
/**
* 上载接口
*/
uploadUrl?: string;
/**
* 导入数据接口
*/
importUrl?: string;
/**
* 执行接口
*/
executeUrl?: string;
/**
* 修改字段接口
*/
modifyColumnsUrl?: string;
/**
* 接口路径前缀
*/
basePrefix?: string;
/**
* 权限接口,此接口需要用户自己赋值,如果不赋值则使用系统默认接口
*/
permissionsUrl?: string;
/**
* 应用名称
*/
appName?: string;
/**
* 权限隔离属性字段,如果提供则所有Post请求都会带上该字段
* 接口过滤条件
*/
condition?: Array<SearchParams>;
/**
* 是否接口转发
*/
redirect?: boolean;
/**
* 接口请求方式
*/
httpMethod?: string;
/**
* 数据请求方式
*/
dataType?: string;
/**
* 分页接口
*/
pageAction?: Function;
/**
* 编辑接口
*/
mergeAction?: Function;
/**
* 编辑暂存接口
*/
mergeDraftAction?: Function;
/**
* 批量编辑接口
*/
batchMergeAction?: Function;
/**
* 批量编辑暂存接口
*/
batchMergeDraftAction?: Function;
/**
* 根据Id获取数据接口
*/
loadByIdAction?: Function;
/**
* 删除数据接口
*/
deleteAction?: Function;
/**
* 根据条件删除数据
*/
deleteByConditionAction?: Function;
/**
* 导出数据接口
*/
exportDataAction?: Function;
/**
* 下载模板接口
*/
downloadTemplateAction?: Function;
/**
* 自定义查询接口
*/
queryConditionAction?: Function;
/**
* 自定义查询接口
*/
queryOneByConditionAction?: Function;
/**
* 上载接口
*/
uploadAction?: Function;
/**
* 导入数据接口
*/
importAction?: Function;
/**
* 执行接口
*/
executeAction?: Function;
/**
* 修改字段接口,
* 接收的参数为:{
* columnsInfo:{},//要修改的字段及修改后的值
* conditions:[] //修改条件
* }
*/
modifyColumnsAction?: Function;
};
export declare const areaItem: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
selectItem: (...args: any[]) => void;
selfFunc: (...args: any[]) => void;
"update:formData": (value: any) => void;
}, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
onSelectItem?: (...args: any[]) => any;
onSelfFunc?: (...args: any[]) => any;
"onUpdate:formData"?: (value: any) => any;
}>, {
disabled: boolean;
bareFlag: boolean;
isSearch: boolean;
isDesign: boolean;
showFormItem: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
export declare const audioItem: DefineComponent<ItemPreps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
selectItem: (...args: any[]) => void;
selfFunc: (...args: any[]) => void;
}, string, PublicProps, Readonly<ItemPreps> & Readonly<{
onSelectItem?: (...args: any[]) => any;
onSelfFunc?: (...args: any[]) => any;
}>, {
disabled: boolean;
bareFlag: boolean;
isSearch: boolean;
isDesign: boolean;
showFormItem: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {
audio: HTMLAudioElement;
}, any>;
export declare const autocompleteItem: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
selectItem: (...args: any[]) => void;
selfFunc: (...args: any[]) => void;
"update:formData": (value: any) => void;
}, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
onSelectItem?: (...args: any[]) => any;
onSelfFunc?: (...args: any[]) => any;
"onUpdate:formData"?: (value: any) => any;
}>, {
disabled: boolean;
bareFlag: boolean;
isSearch: boolean;
isDesign: boolean;
showFormItem: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
export declare const barcodeItem: DefineComponent<__VLS_PublicProps_41, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
selectItem: (...args: any[]) => void;
selfFunc: (...args: any[]) => void;
"update:formData": (value: any) => void;
}, string, PublicProps, Readonly<__VLS_PublicProps_41> & Readonly<{
onSelectItem?: (...args: any[]) => any;
onSelfFunc?: (...args: any[]) => any;
"onUpdate:formData"?: (value: any) => any;
}>, {
disabled: boolean;
bareFlag: boolean;
isSearch: boolean;
isDesign: boolean;
showFormItem: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
/**
* base64转字符串
* @param param
*/
export declare function base64Decode(param: string): string;
/**
* 字符串转base64
* @param param
*/
export declare function base64Encode(param: string): string;
/**
* 批量列表数据默认值
* @param datas
* @param dataForm
*/
export declare function batchFieldDefaultValues(datas: BatchFieldInfo, dataForm: any): any;
/**
* 批量表单
*/
export declare interface BatchFieldInfo {
/**
* 对应后端dto 里的List属性名称
*/
batchName: string;
/**
* 是否禁用
*/
disabled?: string;
/**
* 禁止显示
*/
disVisible?: boolean;
/**
* 列表标题
*/
title?: string;
/**
* 帮助提示
*/
helpMsg?: string;
/**
* 默认初始化行数
*/
initRows?: number;
/**
* 主键名称,对应后端dto List泛型对象的主键名称
*/
primaryKey?: string;
/**
* 新增行时默认添加的属性
*/
batchDefaultData?: any;
/**
* 字段属性
*/
fieldList: Array<FieldInfo> | any;
/**
* 当前组件接口
*/
compUrl?: ApiUrls;
/**
* 导入数据
*/
importInfo?: ImportInfo;
/**
* 是否静态数据 Y 是 N 否
*/
staticData?: string;
/**
* batchFieldList 和fieldList 是否同一个表,组件会根据这个字段校验数据是一对多关系
* 还是单表的批量处理
*/
subFormFlag?: string | boolean;
/**
* 表单标识,如果需要作为form表单显示,则需要将该属性设置为Y
*/
formFlag?: string;
}
/**
* 批量修改公共属性
* @param items
* @param val
* @param fieldName
*/
export declare const batchModifyAction: (items: Array<any>, val: any, fieldName: string) => void;
/**
* 加载资源文件
* @param url
* @param method
*/
export declare function blobData(url: string, method?: string): Promise<any>;
export declare const boxContainer: DefineComponent<ExtractPropTypes< {
parentField: {
type: ObjectConstructor;
};
isDesign: {
type: BooleanConstructor;
default: boolean;
};
showFormItem: {
type: BooleanConstructor;
default: boolean;
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
formInfo: {
type: PropType<any>;
};
field: {
type: PropType<any>;
};
formData: {
type: PropType<any>;
};
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
"update:formData": (value: any) => any;
}, string, PublicProps, Readonly<ExtractPropTypes< {
parentField: {
type: ObjectConstructor;
};
isDesign: {
type: BooleanConstructor;
default: boolean;
};
showFormItem: {
type: BooleanConstructor;
default: boolean;
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
formInfo: {
type: PropType<any>;
};
field: {
type: PropType<any>;
};
formData: {
type: PropType<any>;
};
}>> & Readonly<{
"onUpdate:formData"?: (value: any) => any;
}>, {
disabled: boolean;
isDesign: boolean;
showFormItem: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
/**
* 按钮事件
*/
export declare interface BtnAction {
viewType: "inter" | "comp" | "code" | "method";
idDynamicForm?: string;
componentName?: string;
isDynamicParam?: string;
params?: SearchParams[] | DynamicParamField[];
url?: string;
method?: string;
needConfirm?: string;
confirmMsg?: string;
needRefresh?: string;
/**
* 接口执行完成后的动作,
* assignCurrentName 赋值当前名称
* assignForm 赋值给表单
*/
afterAction?: string;
/**
* 执行函数
*/
actions?: Function;
/**
* js代码块
*/
code?: string;
}
/**
* 按钮自定义方法跳转
*/
export declare interface BtnAuth {
/**
* 按钮名字
*/
btnName: string;
/**
* 图标
*/
icon?: string;
/**
* 标签名字
*/
labelName: string;
/**
* 自定义调用方法
*/
exec?: Function;
/**
* 是否禁用 Y 是 N否
*/
disabled?: string;
/**
* 子节点
*/
children?: BtnAuth[];
}
/**
* 列表按钮隐藏条件
*/
export declare interface BtnHideCondition {
/**
* 属性名
*/
fieldName: string;
/**
* 按钮
*/
btnName: Array<string> | string;
/**
* 值
*/
value: any;
}
export declare const buttonItem: DefineComponent<__VLS_PublicProps_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
selectItem: (...args: any[]) => void;
selfFunc: (...args: any[]) => void;
"update:formData": (value: any) => void;
}, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{
onSelectItem?: (...args: any[]) => any;
onSelfFunc?: (...args: any[]) => any;
"onUpdate:formData"?: (value: any) => any;
}>, {
disabled: boolean;
bareFlag: boolean;
isSearch: boolean;
isDesign: boolean;
showFormItem: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {
btnFormRef: unknown;
btnCompRef: unknown;
}, any>;
/**
* 驼峰转下划线
* @param str
*/
export declare function camelCaseToUnderline(str: string): string;
export declare const cardContainer: DefineComponent<ExtractPropTypes< {
parentField: {
type: StringConstructor;
};
isDesign: {
type: BooleanConstructor;
default: boolean;
};
showFormItem: {
type: BooleanConstructor;
default: boolean;
};
disabled: {
type: PropType<Boolean | String>;
};
formInfo: {
type: PropType<any>;
};
field: {
type: PropType<any>;
};
formData: {
type: PropType<any>;
};
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
"update:formData": (value: any) => any;
}, string, PublicProps, Readonly<ExtractPropTypes< {
parentField: {
type: StringConstructor;
};
isDesign: {
type: BooleanConstructor;
default: boolean;
};
showFormItem: {
type: BooleanConstructor;
default: boolean;
};
disabled: {
type: PropType<Boolean | String>;
};
formInfo: {
type: PropType<any>;
};
field: {
type: PropType<any>;
};
formData: {
type: PropType<any>;
};
}>> & Readonly<{
"onUpdate:formData"?: (value: any) => any;
}>, {
isDesign: boolean;
showFormItem: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
/**
* Card 容器信息
*/
export declare interface CardFieldInfo extends TabFieldInfo {
/**
* 头部右侧组件信息
*/
headerFieldList?: FieldInfo[];
}
export declare const cascadeItem: DefineComponent<__VLS_PublicProps_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
selectItem: (...args: any[]) => void;
selfFunc: (...args: any[]) => void;
"update:formData": (value: any) => void;
}, string, PublicProps, Readonly<__VLS_PublicProps_5> & Readonly<{
onSelectItem?: (...args: any[]) => any;
onSelfFunc?: (...args: any[]) => any;
"onUpdate:formData"?: (value: any) => any;
}>, {
disabled: boolean;
bareFlag: boolean;
isSearch: boolean;
isDesign: boolean;
showFormItem: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
export declare const checkboxItem: DefineComponent<__VLS_PublicProps_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
selectItem: (...args: any[]) => void;
selfFunc: (...args: any[]) => void;
"update:formData": (value: any) => void;
}, string, PublicProps, Readonly<__VLS_PublicProps_6> & Readonly<{
onSelectItem?: (...args: any[]) => any;
onSelfFunc?: (...args: any[]) => any;
"onUpdate:formData"?: (value: any) => any;
}>, {
disabled: boolean;
bareFlag: boolean;
isSearch: boolean;
isDesign: boolean;
showFormItem: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
/**
* 关闭加载框
*/
export declare function closeLoad(): void;
export declare const collapseContainer: DefineComponent<ExtractPropTypes< {
parentField: {
type: StringConstructor;
};
isDesign: {
type: BooleanConstructor;
default: boolean;
};
showFormItem: {
type: BooleanConstructor;
default: boolean;
};
disabled: {
type: PropType<Boolean | String>;
};
formInfo: {
type: PropType<any>;
};
field: {
type: PropType<any>;
};
formData: {
type: PropType<any>;
};
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
"update:formData": (value: any) => any;
}, string, PublicProps, Readonly<ExtractPropTypes< {
parentField: {
type: StringConstructor;
};
isDesign: {
type: BooleanConstructor;
default: boolean;
};
showFormItem: {
type: BooleanConstructor;
default: boolean;
};
disabled: {
type: PropType<Boolean | String>;
};
formInfo: {
type: PropType<any>;
};
field: {
type: PropType<any>;
};
formData: {
type: PropType<any>;
};
}>> & Readonly<{
"onUpdate:formData"?: (value: any) => any;
}>, {
isDesign: boolean;
showFormItem: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
/**
* Collapse 容器信息
*/
export declare interface CollapseList extends TabFieldInfo {
}
export declare const colorItem: DefineComponent<__VLS_PublicProps_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
selectItem: (...args: any[]) => void;
selfFunc: (...args: any[]) => void;
"update:formData": (value: any) => void;
}, string, PublicProps, Readonly<__VLS_PublicProps_7> & Readonly<{
onSelectItem?: (...args: any[]) => any;
onSelfFunc?: (...args: any[]) => any;
"onUpdate:formData"?: (value: any) => any;
}>, {
disabled: boolean;
bareFlag: boolean;
isSearch: boolean;
isDesign: boolean;
showFormItem: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
/**
* 数据格式化
* @param name
* @param cellValue
*/
export declare function commonParseCodeToName(name: string, cellValue: any): any;
/**
* 动态组件数据
* @param field 组件参数信息
*/
export declare function compDynamicData(field: any): Promise<any>;
/**
* 组件信息
*/
declare interface CompInfo {
id?: string;
name: string;
label: string;
disableDrag: boolean;
items?: Array<any>;
}
/**
* 组件key
* @param item
* @param key
* @param isComp 是否组件
* @param prefix 前缀
* @param suffix 后缀
*/
export declare function compKey(item: any, key: number | string, isComp?: boolean, prefix?: string, suffix?: string): string;
/**
* 动态组件的参数对象
*/
export declare interface CompParams {
/**
* 选中数据时需要的字段
*/
needField: Array<FieldMapping>;
/**
* 回调函数
*/
recall?: Function;
/**
* 主键名称
*/
primaryKey: string | Array<any>;
/**
* 接口地址
*/
dataUrl: ApiUrls;
/**
* 字段信息
*/
fieldList: Array<FieldInfo>;
/**
* 接口过滤条件
*/
condition?: Array<SearchParams>;
/**
* 列表数据排序
*/
orderBy?: Array<OrderByInfo>;
/**
* 格式化方法
*/
dataFormat?: Function;
/**
* 查询字段
*/
searchFieldList?: Array<SearchFields>;
/**
* 是否只读
*/
readonly?: string;
}
export declare interface ContainerPreps {
/**
* 组件url
*/
compUrl: ApiUrls;
/**
* 组件属性
*/
fieldList?: PageFieldInfo | any;
/**
* 组件属性
*/
item?: any;
/**
* 组件名称
*/
objectName?: string;
/**
* 数据索引
*/
dataIndex?: number;
propPrefix?: string;
/**
* 父组件属性
*/
parentPreps?: any;
/**
* 子表单标识
*/
subFormFlag?: string;
/**
* 批量操作名称
*/
batchName?: string;
/**
* 批量操作字段名称
*/
batchFieldName?: string;
/**
* 主键
*/
primaryKey: string | any;
/**
* 校验规则
*/
rules?: any;
/**
* 组件大小
*/
compSize: string;
/**
* 组件来源
*/
source: number;
}
export declare const ContentMenu: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
/**
* 下划线转驼峰
* @param str
*/
export declare function convertToCamelCase(str: string): string;
/**
* 复制数据
* @param msg
*/
export declare function copy(msg: string): void;
export declare function copyText(text: any): Promise<void>;
/**
* 动态创建组件
* @param compInfo 组件信息
*/
export declare function createComponent(compInfo: DyCompField): string;
/**
* 创建条件
*/
export declare function createCondition(name: string, val: any, matchType?: string): SearchParams;
/**
* 创建日期
* @param val
* @returns {string}
*/
export declare function createDate(val: any): string;
/**
* 创建年月日时分秒
* @param val
* @param isDateTime
* @param needSecond
* @param split
*/
export declare function createDatetime(val: any, isDateTime?: boolean, needSecond?: boolean, split?: string): any;
/**
* 创建过滤器
* @param queryString 查询参数
*/
export declare function createFilter(queryString: string): Promise<(data: SelectOption) => number>;
/**
* 构建菜单树
* @param data
* @param valField 字符串值
* @param name
* @param val 数字值
*/
export declare function createTree(data: any, valField: string, name: string, val: string): SelectOption[];
export declare const cronItem: DefineComponent<__VLS_PublicProps_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
selectItem: (...args: any[]) => void;
selfFunc: (...args: any[]) => void;
"update:formData": (value: any) => void;
}, string, PublicProps, Readonly<__VLS_PublicProps_8> & Readonly<{
onSelectItem?: (...args: any[]) => any;
onSelfFunc?: (...args: any[]) => any;
"onUpdate:formData"?: (value: any) => any;
}>, {
disabled: boolean;
bareFlag: boolean;
isSearch: boolean;
isDesign: boolean;
showFormItem: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {
cronTabRef: CreateComponentPublicInstanceWithMixins<Readonly<Crontab> & Readonly<{
"onUpdate:modelValue"?: (...args: any[]) => any;
}>, {
clearCron: () => void;
resolveExp: () => void;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
"update:modelValue": (...args: any[]) => void;
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
cronsecond: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
check: {
type: FunctionConstructor;
};
cron: {
type: PropType<String>;
};
radioParent: {};
}>> & Readonly<{
onUpdate?: (...args: any[]) => any;
}>, {
cycle01: Ref<number, number>;
cycle02: Ref<number, number>;
average01: Ref<number, number>;
average02: Ref<number, number>;
checkboxList: Ref<any[], any[]>;
radioValue: Ref<number, number>;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
update: (...args: any[]) => void;
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<ExtractPropTypes< {
check: {
type: FunctionConstructor;
};
cron: {
type: PropType<String>;
};
radioParent: {};
}>> & Readonly<{
onUpdate?: (...args: any[]) => any;
}>, {
cycle01: Ref<number, number>;
cycle02: Ref<number, number>;
average01: Ref<number, number>;
average02: Ref<number, number>;
checkboxList: Ref<any[], any[]>;
radioValue: Ref<number, number>;
}, {}, {}, {}, {}>;
cronmin: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
check: {
type: FunctionConstructor;
};
cron: {
type: ObjectConstructor;
};
}>> & Readonly<{
onUpdate?: (...args: any[]) => any;
}>, {
cycle01: Ref<number, number>;
cycle02: Ref<number, number>;
average01: Ref<number, number>;
average02: Ref<number, number>;
checkboxList: Ref<any[], any[]>;
radioValue: Ref<number, number>;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
update: (...args: any[]) => void;
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<ExtractPropTypes< {
check: {
type: FunctionConstructor;
};
cron: {
type: ObjectConstructor;
};
}>> & Readonly<{
onUpdate?: (...args: any[]) => any;
}>, {
cycle01: Ref<number, number>;
cycle02: Ref<number, number>;
average01: Ref<number, number>;
average02: Ref<number, number>;
checkboxList: Ref<any[], any[]>;
radioValue: Ref<number, number>;
}, {}, {}, {}, {}>;
cronhour: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
check: {
type: FunctionConstructor;
};
cron: {
type: ObjectConstructor;
};
}>> & Readonly<{
onUpdate?: (...args: any[]) => any;
}>, {
cycle01: Ref<number, number>;
cycle02: Ref<number, number>;
average01: Ref<number, number>;
average02: Ref<number, number>;
checkboxList: Ref<any[], any[]>;
radioValue: Ref<number, number>;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
update: (...args: any[]) => void;
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<ExtractPropTypes< {
check: {
type: FunctionConstructor;
};
cron: {
type: ObjectConstructor;
};
}>> & Readonly<{
onUpdate?: (...args: any[]) => any;
}>, {
cycle01: Ref<number, number>;
cycle02: Ref<number, number>;
average01: Ref<number, number>;
average02: Ref<number, number>;
checkboxList: Ref<any[], any[]>;
radioValue: Ref<number, number>;
}, {}, {}, {}, {}>;
cronday: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
check: {
type: FunctionConstructor;
};
cron: {
type: ObjectConstructor;
};
}>> & Readonly<{
onUpdate?: (...args: any[]) => any;
}>, {
cycle01: Ref<number, number>;
cycle02: Ref<number, number>;
average01: Ref<number, number>;
average02: Ref<number, number>;
checkboxList: Ref<any[], any[]>;
workday: Ref<number, number>;
radioValue: Ref<number, number>;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
update: (...args: any[]) => void;
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<ExtractPropTypes< {
check: {
type: FunctionConstructor;
};
cron: {
type: ObjectConstructor;
};
}>> & Readonly<{
onUpdate?: (...args: any[]) => any;
}>, {
cycle01: Ref<number, number>;
cycle02: Ref<number, number>;
average01: Ref<number, number>;
average02: Ref<number, number>;
checkboxList: Ref<any[], any[]>;
workday: Ref<number, number>;
radioValue: Ref<number, number>;
}, {}, {}, {}, {}>;
cronmonth: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
check: {
type: FunctionConstructor;
};
cron: {
type: ObjectConstructor;
};
}>> & Readonly<{
onUpdate?: (...args: any[]) => any;
}>, {
cycle01: Ref<number, number>;
cycle02: Ref<number, number>;
average01: Ref<number, number>;
average02: Ref<number, number>;
checkboxList: Ref<any[], any[]>;
radioValue: Ref<number, number>;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
update: (...args: any[]) => void;
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<ExtractPropTypes< {
check: {
type: FunctionConstructor;
};
cron: {
type: ObjectConstructor;
};
}>> & Readonly<{
onUpdate?: (...args: any[]) => any;
}>, {
cycle01: Ref<number, number>;
cycle02: Ref<number, number>;
average01: Ref<number, number>;
average02: Ref<number, number>;
checkboxList: Ref<any[], any[]>;
radioValue: Ref<number, number>;
}, {}, {}, {}, {}>;
cronweek: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
check: {
type: FunctionConstructor;
};
cron: {
type: ObjectConstructor;
};
}>> & Readonly<{
onUpdate?: (...args: any[]) => any;
}>, {
cycle01: Ref<number, number>;
cycle02: Ref<number, number>;
average01: Ref<number, number>;
average02: Ref<number, number>;
checkboxList: Ref<any[], any[]>;
weekday: Ref<number, number>;
radioValue: Ref<number, number>;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
update: (...args: any[]) => void;
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<ExtractPropTypes< {
check: {
type: FunctionConstructor;
};
cron: {
type: ObjectConstructor;
};
}>> & Readonly<{
onUpdate?: (...args: any[]) => any;
}>, {
cycle01: Ref<number, number>;
cycle02: Ref<number, number>;
average01: Ref<number, number>;
average02: Ref<number, number>;
checkboxList: Ref<any[], any[]>;
weekday: Ref<number, number>;
radioValue: Ref<number, number>;
}, {}, {}, {}, {}>;
cronyear: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
check: {
type: FunctionConstructor;
};
month: {};
cron: {
type: ObjectConstructor;
};
}>> & Readonly<{
onUpdate?: (...args: any[]) => any;
}>, {
cycle01: Ref<number, number>;
cycle02: Ref<number, number>;
average01: Ref<number, number>;
average02: Ref<number, number>;
checkboxList: Ref<any[], any[]>;
radioValue: Ref<number, number>;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
update: (...args: any[]) => void;
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<ExtractPropTypes< {
check: {
type: FunctionConstructor;
};
month: {};
cron: {
type: ObjectConstructor;
};
}>> & Readonly<{
onUpdate?: (...args: any[]) => any;
}>, {
cycle01: Ref<number, number>;
cycle02: Ref<number, number>;
average01: Ref<number, number>;
average02: Ref<number, number>;
checkboxList: Ref<any[], any[]>;
radioValue: Ref<number, number>;
}, {}, {}, {}, {}>;
}, HTMLDivElement, ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<Crontab> & Readonly<{
"onUpdate:modelValue"?: (...args: any[]) => any;
}>, {
clearCron: () => void;
resolveExp: () => void;
}, {}, {}, {}, {}>;
}, any>;
declare interface Crontab {
expression?: string;
modelValue: string;
hideComponent?: any;
}
/**
* 当前日期
* @param split
*/
export declare function currentDate(split?: string): string;
/**
* 获取当月的开始和结束时间
*/
export declare function currentMonthRange(): {
startDate?: undefined;
starDateStr?: undefined;
lastDate?: undefined;
lastDateStr?: undefined;
} | {
startDate: Date;
starDateStr: string;
lastDate: Date;
lastDateStr: string;
};
/**
* 定义折叠面板数据格式
*/
export declare interface CustomerItem {
name: string;
title: string;
compItems?: Array<CompInfo>;
}
declare interface DataDropdownProps {
/**
* 模型值
*/
modelValue: ModelValueType;
/**
* 接口地址
*/
dataUrl?: string;
/**
* 是否使用代理
*/
proxy?: boolean;
/**
* 代理地址
*/
proxyUrl?: string;
/**
* 接口参数
*/
params?: SearchParams[];
/**
* 页码
*/
pageSize?: number;
/**
* 数据
*/
datas?: Array<any>;
/**
* 标题
*/
title?: string;
/**
* 组件大小
*/
compSize?: string;
/**
* 显示名称
*/
displayName?: string;
/**
* 显示值
*/
displayValue?: string;
/**
* 是否多选
*/
multiple?: boolean;
/**
* 是否严格选择
*/
checkStrictly?: boolean;
/**
* 是否只选叶子节点
*/
selectLeaf?: boolean;
/**
* 自动关闭弹窗
*/
autoClose?: boolean;
}
export declare const DataPicker: DefineComponent<DataDropdownProps, {
open: () => void;
close: () => void;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
"update:modelValue": (modelValue: any) => any;
dataSubmit: (data: any[]) => any;
}, string, PublicProps, Readonly<DataDropdownProps> & Readonly<{
"onUpdate:modelValue"?: (modelValue: any) => any;
onDataSubmit?: (data: any[]) => any;
}>, {
displayName: string;
compSize: string;
pageSize: number;
displayValue: string;
multiple: boolean;
checkStrictly: boolean;
selectLeaf: boolean;
autoClose: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {
orgTreeRef: unknown;
}, any>;
declare interface DataSelectorProps {
/**
* 选中数据
*/
modelValue: ModelValueType;
/**
* 选中数据
*/
selectedData?: any;
/**
* 占位符
*/
placeholder?: string;
/**
* 接口地址
*/
dataUrl?: string;
/**
* 是否使用代理
*/
proxy?: boolean;
/**
* 代理地址
*/
proxyUrl?: string;
/**
* 接口参数
*/
params?: SearchParams[];
/**
* 数据
*/
datas?: Array<any>;
/**
* 页码
*/
pageSize?: number;
/**
* 标题
*/
title?: string;
/**
* 组件大小
*/
compSize?: string;
/**
* 显示名称
*/
displayName?: string;
/**
* 显示值
*/
displayValue?: string;
/**
* 是否多选
*/
multiple?: boolean;
/**
* 是否禁用
*/
disabled?: boolean;
/**
* 严格模式
*/
checkStrictly?: boolean;
/**
* 选择叶子节点
*/
selectLeaf?: boolean;
/**
* 显示标签长度
*/
showTagLength?: number;
/**
* 样式
*/
style?: CSSProperties;
}
/**
* 日期组件
* @returns
*/
export declare function dateCompList(): string[];
/**
* 将日期解析为字符串
* @param date
* @param needTime
* @param split
* @param needSecond
*/
export declare function dateParse(date: Date, needTime?: boolean, split?: string, needSecond?: boolean): string;
export declare const datetimeItem: DefineComponent<__VLS_PublicProps_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
selectItem: (...args: any[]) => void;
selfFunc: (...args: any[]) => void;
"update:formData": (value: any) => void;
}, string, PublicProps, Readonly<__VLS_PublicProps_9> & Readonly<{
onSelectItem?: (...args: any[]) => any;
onSelfFunc?: (...args: any[]) => any;
"onUpdate:formData"?: (value: any) => any;
}>, {
disabled: boolean;
bareFlag: boolean;
isSearch: boolean;
isDesign: boolean;
showFormItem: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
/**
* 日期类型
* @type {string[]}
*/
export declare const dateTypes: string[];
declare const _default: {
install: (app: App<Element>, options?: {
router?: Router;
axiosInstance?: AxiosInstance;
elementPlusOptions?: any;
}) => void;
piniaInstance: Pinia;
starHorseAxios: AxiosInstance;
};
export default _default;
export declare const DEFAULT_INITIAL_Z_INDEX = 2000;
/**
* 根据Id删除数据
* @param url
* @param ids
* @param msg 删除提示
*/
export declare function deleteByIds(url: string, ids: any, msg?: string): Promise<boolean>;
export declare const departItem: DefineComponent<ItemPreps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
selectItem: (...args: any[]) => void;
selfFunc: (...args: any[]) => void;
}, string, PublicProps, Readonly<ItemPreps> & Readonly<{
onSelectItem?: (...args: any[]) => any;
onSelfFunc?: (...args: any[]) => any;
}>, {
disabled: boolean;
bareFlag: boolean;
isSearch: boolean;
isDesign: boolean;
showFormItem: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
export declare const dialogInputItem: DefineComponent<__VLS_PublicProps_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
selectItem: (...args: any[]) => void;
selfFunc: (...args: any[]) => void;
"update:formData": (value: any) => void;
}, string, PublicProps, Readonly<__VLS_PublicProps_10> & Readonly<{
onSelectItem?: (...args: any[]) => any;
onSelfFunc?: (...args: any[]) => any;
"onUpdate:formData"?: (value: any) => any;
}>, {
disabled: boolean;
bareFlag: boolean;
isSearch: boolean;
isDesign: boolean;
showFormItem: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {
dialogInputTableRef: unknown;
}, any>;
/**
* 模态窗口相关属性
*/
export declare function dialogPreps(title?: string, batchTitle?: string): Reactive<DialogProps>;
/**
* 弹窗属性
*/
export declare type DialogProps = {
/**
* 批量编辑标题
*/
batchDialogTitle?: string;
/**
* 编辑标题
*/
dialogTitle?: string;
/**
* 批量编辑弹窗控制变量
*/
batchEditVisible?: boolean;
/**
* 编辑弹窗控制变量
*/
editVisible?: boolean;
/**
* 上传组件控制变量
*/
uploadVisible?: boolean;
/**
* 查看数据控制变量
*/
viewVisible?: boolean;
/**
* 弹窗显示/隐藏备用1
*/
bakeVisible1?: boolean;
/**
* 弹窗显示/隐藏备用2
*/
bakeVisible2?: boolean;
/**
* 弹窗显示/隐藏备用3
*/
bakeVisible3