star-horse-lowcode
Version:
星马低代码核心库,提供了低代码平台的基础功能和组件库。此库可引用到您的项目中,快速构建表单和列表。
2,089 lines (1,930 loc) • 253 kB
TypeScript
import { AllowedComponentProps } from 'vue';
import { App } from 'vue';
import { AxiosInstance } from 'axios';
import { AxiosResponse } from 'axios';
import { ComponentCustomProperties } from 'vue';
import { ComponentCustomProps } from 'vue';
import { ComponentInternalInstance } from 'vue';
import { ComponentOptionsBase } from 'vue';
import { ComponentOptionsMixin } from 'vue';
import { ComponentProvideOptions } from 'vue';
import { ComponentPublicInstance } from 'vue';
import { ComputedRef } from 'vue';
import { CreateComponentPublicInstanceWithMixins } from 'vue';
import { CSSProperties } from 'vue';
import { DebuggerEvent } from 'vue';
import { DefineComponent } from 'vue';
import { EditorView } from '@codemirror/view';
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 { nextTick } from 'vue';
import { OnClassName } from 'vanilla-jsoneditor';
import { OnCleanup } from '@vue/reactivity';
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 { ShallowRef } from 'vue';
import { ShallowUnwrapRef } from 'vue';
import { Slot } from 'vue';
import { StoreDefinition } from 'pinia';
import { Validator } from 'vanilla-jsoneditor';
import { VNodeProps } from 'vue';
import { WatchOptions } from 'vue';
import { WatchStopHandle } from 'vue';
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;
};
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: any;
};
title: {
type: StringConstructor;
default: string;
};
source: {
type: NumberConstructor;
default: number;
};
compSize: {
type: StringConstructor;
default: string;
};
}>, {}, {}, {}, {}, 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;
};
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: any;
};
title: {
type: StringConstructor;
default: string;
};
source: {
type: NumberConstructor;
default: number;
};
compSize: {
type: StringConstructor;
default: string;
};
}>> & 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< {
msg: {
type: StringConstructor;
};
node: {
type: PropType<DynamicNode>;
required: true;
};
isActive: {
type: BooleanConstructor;
default: boolean;
};
showLine: {
type: BooleanConstructor;
default: boolean;
};
/**
* 大小控制类型,percent:百分比,px:像素
*/
sizeControlType: {
type: StringConstructor;
default: string;
};
isDesign: {
type: BooleanConstructor;
default: boolean;
};
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
contextAction: (...args: any[]) => void;
selectNode: (...args: any[]) => void;
}, string, PublicProps, Readonly<ExtractPropTypes< {
msg: {
type: StringConstructor;
};
node: {
type: PropType<DynamicNode>;
required: true;
};
isActive: {
type: BooleanConstructor;
default: boolean;
};
showLine: {
type: BooleanConstructor;
default: boolean;
};
/**
* 大小控制类型,percent:百分比,px:像素
*/
sizeControlType: {
type: StringConstructor;
default: string;
};
isDesign: {
type: BooleanConstructor;
default: boolean;
};
}>> & Readonly<{
onContextAction?: (...args: any[]) => any;
onSelectNode?: (...args: any[]) => any;
}>, {
isActive: boolean;
showLine: boolean;
sizeControlType: string;
isDesign: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, true, {
nodeRef: HTMLDivElement;
contentMenuRef: unknown;
sizeInfoRef: HTMLDivElement;
}, any>;
declare const __VLS_component_3: 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_4: 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_5: 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: {
$: ComponentInternalInstance;
$data: {};
$props: Partial<{
active: string | number;
menuData: any;
isSubMenu: boolean;
autoHide: boolean;
}> & Omit<{
readonly active: string | number;
readonly menuData: any;
readonly isSubMenu: boolean;
readonly autoHide: boolean;
readonly onMouseenter?: () => any;
readonly onShow?: () => any;
readonly onHide?: () => any;
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "active" | "menuData" | "isSubMenu" | "autoHide">;
$attrs: {
[x: string]: unknown;
};
$refs: {
[x: string]: unknown;
};
$slots: Readonly<{
[name: string]: Slot<any>;
}>;
$root: ComponentPublicInstance | null;
$parent: ComponentPublicInstance | null;
$host: Element | null;
$emit: ((event: "mouseenter") => void) & ((event: "show") => void) & ((event: "hide") => void);
$el: any;
$options: ComponentOptionsBase<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;
}>, {
compKey: typeof compKey;
StarHorseIcon: typeof StarHorseIcon;
menu: typeof menu;
buttons: typeof buttons;
subMenu: typeof subMenu;
visible: typeof visible;
subMenuData: typeof subMenuData;
menuStyle: typeof menuStyle;
hide: typeof hide;
clickHandler: typeof clickHandler;
showSubMenu: typeof showSubMenu;
mouseenterHandler: typeof mouseenterHandler;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
mouseenter: () => any;
show: () => any;
hide: () => any;
}, string, {
active: string | number;
menuData: any;
isSubMenu: boolean;
autoHide: boolean;
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
beforeCreate?: (() => void) | (() => void)[];
created?: (() => void) | (() => void)[];
beforeMount?: (() => void) | (() => void)[];
mounted?: (() => void) | (() => void)[];
beforeUpdate?: (() => void) | (() => void)[];
updated?: (() => void) | (() => void)[];
activated?: (() => void) | (() => void)[];
deactivated?: (() => void) | (() => void)[];
beforeDestroy?: (() => void) | (() => void)[];
beforeUnmount?: (() => void) | (() => void)[];
destroyed?: (() => void) | (() => void)[];
unmounted?: (() => void) | (() => void)[];
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
};
$forceUpdate: () => void;
$nextTick: typeof nextTick;
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
} & Readonly<{
active: string | number;
menuData: any;
isSubMenu: boolean;
autoHide: boolean;
}> & Omit<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;
}>, "menu" | "visible" | "compKey" | "StarHorseIcon" | "hide" | "buttons" | "subMenu" | "subMenuData" | "menuStyle" | "clickHandler" | "showSubMenu" | "mouseenterHandler" | ("active" | "menuData" | "isSubMenu" | "autoHide")> & ShallowUnwrapRef< {
compKey: typeof compKey;
StarHorseIcon: typeof StarHorseIcon;
menu: typeof menu;
buttons: typeof buttons;
subMenu: typeof subMenu;
visible: typeof visible;
subMenuData: typeof subMenuData;
menuStyle: typeof menuStyle;
hide: typeof hide;
clickHandler: typeof clickHandler;
showSubMenu: typeof showSubMenu;
mouseenterHandler: typeof mouseenterHandler;
}> & {} & ComponentCustomProperties & {} & {
$slots: {
title?(_: {}): any;
};
};
}, any>;
declare const __VLS_component_6: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
declare const __VLS_component_7: DefineComponent<__VLS_Props_45, {
getConfigInfo: () => any;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
"update:modelValue": (...args: any[]) => void;
saveData: (...args: any[]) => void;
}, string, PublicProps, Readonly<__VLS_Props_45> & Readonly<{
"onUpdate:modelValue"?: (...args: any[]) => any;
onSaveData?: (...args: any[]) => any;
}>, {
title: string;
direction: string;
compSize: string;
modelValue: boolean;
hideDefaultConfig: boolean;
resizable: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, 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_42 = ItemPreps;
declare type __VLS_Props_43 = ItemPreps;
declare type __VLS_Props_44 = ItemPreps;
declare type __VLS_Props_45 = {
hideDefaultConfig?: boolean;
modelValue: boolean;
direction?: string;
resizable?: boolean;
title?: string;
compSize?: string;
};
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_42 = {
"formData"?: any;
} & __VLS_Props_42;
declare type __VLS_PublicProps_43 = {
"formData"?: any;
} & __VLS_Props_43;
declare type __VLS_PublicProps_44 = {
"formData"?: any;
} & __VLS_Props_44;
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;
default?(_: {}): any;
};
refs: {
nodeRef: HTMLDivElement;
contentMenuRef: unknown;
sizeInfoRef: HTMLDivElement;
};
rootEl: any;
};
declare function __VLS_template_3(): {
attrs: Partial<{}>;
slots: {
default?(_: {}): any;
};
refs: {};
rootEl: any;
};
declare function __VLS_template_4(): {
attrs: Partial<{}>;
slots: {
header?(_: {}): any;
default?(_: {
form: unknown;
}): any;
default?(_: {
form: unknown;
}): any;
empty?(_: {
form: unknown;
}): any;
empty?(_: {
form: unknown;
}): any;
button?(_: {
form: unknown;
}): any;
};
refs: {
shFormRef: unknown;
};
rootEl: any;
};
declare function __VLS_template_5(): {
attrs: Partial<{}>;
slots: {
title?(_: {}): any;
};
refs: {
menu: HTMLDivElement;
buttons: HTMLDivElement;
subMenu: {
$: ComponentInternalInstance;
$data: {};
$props: Partial<{
active: string | number;
menuData: any;
isSubMenu: boolean;
autoHide: boolean;
}> & Omit<{
readonly active: string | number;
readonly menuData: any;
readonly isSubMenu: boolean;
readonly autoHide: boolean;
readonly onMouseenter?: () => any;
readonly onShow?: () => any;
readonly onHide?: () => any;
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "active" | "menuData" | "isSubMenu" | "autoHide">;
$attrs: {
[x: string]: unknown;
};
$refs: {
[x: string]: unknown;
};
$slots: Readonly<{
[name: string]: Slot<any>;
}>;
$root: ComponentPublicInstance | null;
$parent: ComponentPublicInstance | null;
$host: Element | null;
$emit: ((event: "mouseenter") => void) & ((event: "show") => void) & ((event: "hide") => void);
$el: any;
$options: ComponentOptionsBase<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;
}>, {
compKey: typeof compKey;
StarHorseIcon: typeof StarHorseIcon;
menu: typeof menu;
buttons: typeof buttons;
subMenu: typeof subMenu;
visible: typeof visible;
subMenuData: typeof subMenuData;
menuStyle: typeof menuStyle;
hide: typeof hide;
clickHandler: typeof clickHandler;
showSubMenu: typeof showSubMenu;
mouseenterHandler: typeof mouseenterHandler;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
mouseenter: () => any;
show: () => any;
hide: () => any;
}, string, {
active: string | number;
menuData: any;
isSubMenu: boolean;
autoHide: boolean;
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
beforeCreate?: (() => void) | (() => void)[];
created?: (() => void) | (() => void)[];
beforeMount?: (() => void) | (() => void)[];
mounted?: (() => void) | (() => void)[];
beforeUpdate?: (() => void) | (() => void)[];
updated?: (() => void) | (() => void)[];
activated?: (() => void) | (() => void)[];
deactivated?: (() => void) | (() => void)[];
beforeDestroy?: (() => void) | (() => void)[];
beforeUnmount?: (() => void) | (() => void)[];
destroyed?: (() => void) | (() => void)[];
unmounted?: (() => void) | (() => void)[];
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
};
$forceUpdate: () => void;
$nextTick: typeof nextTick;
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
} & Readonly<{
active: string | number;
menuData: any;
isSubMenu: boolean;
autoHide: boolean;
}> & Omit<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;
}>, "menu" | "visible" | "compKey" | "StarHorseIcon" | "hide" | "buttons" | "subMenu" | "subMenuData" | "menuStyle" | "clickHandler" | "showSubMenu" | "mouseenterHandler" | ("active" | "menuData" | "isSubMenu" | "autoHide")> & ShallowUnwrapRef< {
compKey: typeof compKey;
StarHorseIcon: typeof StarHorseIcon;
menu: typeof menu;
buttons: typeof buttons;
subMenu: typeof subMenu;
visible: typeof visible;
subMenuData: typeof subMenuData;
menuStyle: typeof menuStyle;
hide: typeof hide;
clickHandler: typeof clickHandler;
showSubMenu: typeof showSubMenu;
mouseenterHandler: typeof mouseenterHandler;
}> & {} & ComponentCustomProperties & {} & {
$slots: {
title?(_: {}): any;
};
};
};
rootEl: any;
};
declare function __VLS_template_6(): {
attrs: Partial<{}>;
slots: {
default?(_: {}): any;
};
refs: {};
rootEl: HTMLDivElement;
};
declare function __VLS_template_7(): {
attrs: Partial<{}>;
slots: {
header?(_: {
form: any;
}): any;
header?(_: {
form: any;
}): any;
content?(_: {
form: any;
}): any;
content?(_: {
form: any;
}): any;
default?(_: {
form: any;
}): any;
default?(_: {
form: any;
}): any;
footer?(_: {
form: any;
}): any;
footer?(_: {
form: any;
}): any;
};
refs: {};
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_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
declare type __VLS_TemplateResult_6 = ReturnType<typeof __VLS_template_6>;
declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
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;
};
};
declare type __VLS_WithTemplateSlots_5<T, S> = T & {
new (): {
$slots: S;
};
};
declare type __VLS_WithTemplateSlots_6<T, S> = T & {
new (): {
$slots: S;
};
};
declare type __VLS_WithTemplateSlots_7<T, S> = T & {
new (): {
$slots: S;
};
};
/**
* 解析表单字段信息及层级
*/
export declare const analysisCompDatas: (dataList: any) => {
selectList: any[];
compListResult: Record<string, any>;
compFieldList: FieldInfo[];
fieldList?: undefined;
searchItemList?: undefined;
} | {
selectList: any[];
compListResult: Record<string, any>;
fieldList: FieldInfo[];
searchItemList: SearchProps[];
compFieldList?: undefined;
};
/**
* 解析已组装的条件
* @param conditions
* @param name
*/
export declare function analysisField(conditions: SearchParams[], name: string): SearchParams;
/**
* 公共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, {
selfFunc: (...args: any[]) => void;
selectItem: (...args: any[]) => void;
"update:formData": (value: any) => void;
}, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
onSelfFunc?: (...args: any[]) => any;
onSelectItem?: (...args: any[]) => any;
"onUpdate:formData"?: (value: any) => any;
}>, {
disabled: boolean;
isDesign: boolean;
bareFlag: boolean;
isSearch: boolean;
showFormItem: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
export declare const audioItem: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
selfFunc: (...args: any[]) => void;
selectItem: (...args: any[]) => void;
"update:formData": (value: any) => void;
}, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
onSelfFunc?: (...args: any[]) => any;
onSelectItem?: (...args: any[]) => any;
"onUpdate:formData"?: (value: any) => any;
}>, {
disabled: boolean;
isDesign: boolean;
bareFlag: boolean;
isSearch: boolean;
showFormItem: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {
audio: HTMLAudioElement;
}, any>;
export declare const autocompleteItem: DefineComponent<__VLS_PublicProps_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
selfFunc: (...args: any[]) => void;
selectItem: (...args: any[]) => void;
"update:formData": (value: any) => void;
}, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{
onSelfFunc?: (...args: any[]) => any;
onSelectItem?: (...args: any[]) => any;
"onUpdate:formData"?: (value: any) => any;
}>, {
disabled: boolean;
isDesign: boolean;
bareFlag: boolean;
isSearch: boolean;
showFormItem: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
export declare const barcodeItem: DefineComponent<__VLS_PublicProps_43, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
selfFunc: (...args: any[]) => void;
selectItem: (...args: any[]) => void;
"update:formData": (value: any) => void;
}, string, PublicProps, Readonly<__VLS_PublicProps_43> & Readonly<{
onSelfFunc?: (...args: any[]) => any;
onSelectItem?: (...args: any[]) => any;
"onUpdate:formData"?: (value: any) => any;
}>, {
disabled: boolean;
isDesign: boolean;
bareFlag: boolean;
isSearch: 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;
export declare const baseEvent: (eventName: string, recall?: Function) => (e: Event) => void;
export declare const baseRelationEvent: (props: any, relationDetails: RelationDetail[], actionName: string) => (e: Event) => void;
/**
* 批量列表数据默认值
* @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: PropType<any>;
};
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: PropType<any>;
};
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;
/**
* 是否可见
*/
visible: boolean;
}
export declare const buttonItem: DefineComponent<__VLS_PublicProps_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
selfFunc: (...args: any[]) => void;
selectItem: (...args: any[]) => void;
"update:formData": (value: any) => void;
}, string, PublicProps, Readonly<__VLS_PublicProps_5> & Readonly<{
onSelfFunc?: (...args: any[]) => any;
onSelectItem?: (...args: any[]) => any;
"onUpdate:formData"?: (value: any) => any;
}>, {
disabled: boolean;
isDesign: boolean;
bareFlag: boolean;
isSearch: boolean;
showFormItem: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {
btnFormRef: unknown;
btnCompRef: unknown;
}, any>;
declare const buttons: Ref<any[], any[]>;
/**
* 驼峰转下划线
* @param str
*/
export declare function camelCaseToUnderline(str: string): string;
export declare const cardContainer: DefineComponent<ExtractPropTypes< {
parentField: {
type: PropType<any>;
};
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: PropType<any>;
};
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>;
/**
* Card 容器信息
*/
export declare interface CardFieldInfo extends TabFieldInfo {
/**
* 头部右侧组件信息
*/
headerFieldList?: FieldInfo[];
}
export declare const cascadeItem: DefineComponent<__VLS_PublicProps_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
selfFunc: (...args: any[]) => void;
selectItem: (...args: any[]) => void;
"update:formData": (value: any) => void;
}, string, PublicProps, Readonly<__VLS_PublicProps_6> & Readonly<{
onSelfFunc?: (...args: any[]) => any;
onSelectItem?: (...args: any[]) => any;
"onUpdate:formData"?: (value: any) => any;
}>, {
disabled: boolean;
isDesign: boolean;
bareFlag: boolean;
isSearch: boolean;
showFormItem: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
export declare const checkboxItem: DefineComponent<__VLS_PublicProps_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
selfFunc: (...args: any[]) => void;
selectItem: (...args: any[]) => void;
"update:formData": (value: any) => void;
}, string, PublicProps, Readonly<__VLS_PublicProps_7> & Readonly<{
onSelfFunc?: (...args: any[]) => any;
onSelectItem?: (...args: any[]) => any;
"onUpdate:formData"?: (value: any) => any;
}>, {
disabled: boolean;
isDesign: boolean;
bareFlag: boolean;
isSearch: boolean;
showFormItem: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
/**
* 检查对象是否需要创建
* @param dataForm 数据对象
* @param item 表单属性
* @param index 索引
* @param parentIndex 父索引
* @param prefix 前缀
*/
export declare function checkObject(dataForm: any, item: any, index: number, parentIndex: number, prefix: string): number;
/**
* 检查是否可见
* @param item
* @param dataForm
*/
export declare function checkVisible(item: any, dataForm: any): any;
declare const clickHandler: (item: any) => void;
/**
* 关闭加载框
*/
export declare function closeLoad(): void;
export declare const collapseContainer: DefineComponent<ExtractPropTypes< {
parentField: {
type: PropType<any>;
};
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: PropType<any>;
};
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>;
/**
* Collapse 容器信息
*/
export declare interface CollapseList extends TabFieldInfo {
}
export declare const colorItem: DefineComponent<__VLS_PublicProps_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
selfFunc: (...args: any[]) => void;
selectItem: (...args: any[]) => void;
"update:formData": (value: any) => void;
}, string, PublicProps, Readonly<__VLS_PublicProps_8> & Readonly<{
onSelfFunc?: (...args: any[]) => any;
onSelectItem?: (...args: any[]) => any;
"onUpdate:formData"?: (value: any) => any;
}>, {
disabled: boolean;
isDesign: boolean;
bareFlag: boolean;
isSearch: boolean;
showFormItem: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
/**
* 公共字段
* @param formVisibleFields 表单可见字段
* @param tableVisibleFields 表格可见字段
*/
export declare function commonField(formVisibleFields?: Array<string>, tableVisibleFields?: Array<string>): FieldInfo[];
/**
* 数据格式化
* @param name
* @param cellValue
*/
export declare function commonParseCodeToName(name: string, cellValue: any): any;
/**
* 组件操作
*/
export declare interface CompAction {
/**
* 操作图标
*/
actionIcon?: string;
/**
* 事件名称
*/
label: string;
/**
* 事件编码
*/
actionName: string;
/**
* 组件类型
*/
fieldType: string;
funcCode?: Function | string;
}
/**
* 动态组件数据
* @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 CompType {
/**
* 组件名称
*/
itemName: string;
/**
* 组件类型
*/
itemType: string;
/**
* 组件图标
*/
itemIcon: string;
/**
* 组件分类
*/
category: number;
/**
* 组件备注
*/
remark?: string;
/**
* 基础属性
*/
fields: ItemType[];
/**
*