chore: init frontend with knowledge module
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
declare const _default: import('vue').DefineComponent<{}, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
declare const _default: import('vue').DefineComponent<{}, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {
|
||||
Search: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
import { PropType } from 'vue';
|
||||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
||||
items: {
|
||||
type: PropType<ClForm.Item[]>;
|
||||
default: () => any[];
|
||||
};
|
||||
title: StringConstructor;
|
||||
size: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: string;
|
||||
};
|
||||
op: {
|
||||
type: ArrayConstructor;
|
||||
default: () => string[];
|
||||
};
|
||||
onSearch: FunctionConstructor;
|
||||
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("clear" | "reset")[], "clear" | "reset", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
||||
items: {
|
||||
type: PropType<ClForm.Item[]>;
|
||||
default: () => any[];
|
||||
};
|
||||
title: StringConstructor;
|
||||
size: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: string;
|
||||
};
|
||||
op: {
|
||||
type: ArrayConstructor;
|
||||
default: () => string[];
|
||||
};
|
||||
onSearch: FunctionConstructor;
|
||||
}>> & Readonly<{
|
||||
onReset?: (...args: any[]) => any;
|
||||
onClear?: (...args: any[]) => any;
|
||||
}>, {
|
||||
size: string | number;
|
||||
items: ClForm.Item<any>[];
|
||||
op: unknown[];
|
||||
}, {}, {
|
||||
Close: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
@@ -0,0 +1,30 @@
|
||||
import { PropType } from 'vue';
|
||||
declare const ClContextMenu: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
||||
show: BooleanConstructor;
|
||||
options: {
|
||||
type: PropType<ClContextMenu.Options>;
|
||||
default: () => {};
|
||||
};
|
||||
event: {
|
||||
type: ObjectConstructor;
|
||||
default: () => {};
|
||||
};
|
||||
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
||||
show: BooleanConstructor;
|
||||
options: {
|
||||
type: PropType<ClContextMenu.Options>;
|
||||
default: () => {};
|
||||
};
|
||||
event: {
|
||||
type: ObjectConstructor;
|
||||
default: () => {};
|
||||
};
|
||||
}>> & Readonly<{}>, {
|
||||
options: ClContextMenu.Options;
|
||||
show: boolean;
|
||||
event: Record<string, any>;
|
||||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
export declare const ContextMenu: {
|
||||
open(event: any, options: ClContextMenu.Options): ClContextMenu.Exposed;
|
||||
};
|
||||
export default ClContextMenu;
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
import { Mitt } from '../../utils/mitt';
|
||||
interface Options {
|
||||
mitt: Mitt;
|
||||
config: ClCrud.Config;
|
||||
crud: ClCrud.Ref;
|
||||
}
|
||||
export declare function useHelper({ config, crud, mitt }: Options): {
|
||||
proxy: (name: string, data?: any[]) => void;
|
||||
set: (key: string, value: any) => boolean;
|
||||
on: (name: string, callback: fn) => void;
|
||||
rowInfo: (data: any) => void;
|
||||
rowAdd: () => void;
|
||||
rowEdit: (data: any) => void;
|
||||
rowAppend: (data: any) => void;
|
||||
rowDelete: (...selection: any[]) => void;
|
||||
rowClose: () => void;
|
||||
refresh: (params?: obj) => Promise<unknown>;
|
||||
getPermission: (key: "page" | "list" | "info" | "update" | "add" | "delete") => boolean;
|
||||
paramsReplace: (params: obj) => any;
|
||||
getParams: () => obj;
|
||||
setParams: (data: obj) => void;
|
||||
};
|
||||
export {};
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
||||
name: StringConstructor;
|
||||
border: BooleanConstructor;
|
||||
padding: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
||||
name: StringConstructor;
|
||||
border: BooleanConstructor;
|
||||
padding: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
}>> & Readonly<{}>, {
|
||||
border: boolean;
|
||||
padding: string;
|
||||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
@@ -0,0 +1,86 @@
|
||||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
||||
modelValue: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
props: ObjectConstructor;
|
||||
title: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
height: StringConstructor;
|
||||
width: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
padding: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
keepAlive: BooleanConstructor;
|
||||
fullscreen: BooleanConstructor;
|
||||
controls: {
|
||||
type: ArrayConstructor;
|
||||
default: () => string[];
|
||||
};
|
||||
hideHeader: BooleanConstructor;
|
||||
beforeClose: FunctionConstructor;
|
||||
scrollbar: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
transparent: BooleanConstructor;
|
||||
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
||||
[key: string]: any;
|
||||
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("update:modelValue" | "fullscreen-change")[], "update:modelValue" | "fullscreen-change", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
||||
modelValue: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
props: ObjectConstructor;
|
||||
title: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
height: StringConstructor;
|
||||
width: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
padding: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
keepAlive: BooleanConstructor;
|
||||
fullscreen: BooleanConstructor;
|
||||
controls: {
|
||||
type: ArrayConstructor;
|
||||
default: () => string[];
|
||||
};
|
||||
hideHeader: BooleanConstructor;
|
||||
beforeClose: FunctionConstructor;
|
||||
scrollbar: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
transparent: BooleanConstructor;
|
||||
}>> & Readonly<{
|
||||
"onUpdate:modelValue"?: (...args: any[]) => any;
|
||||
"onFullscreen-change"?: (...args: any[]) => any;
|
||||
}>, {
|
||||
title: string;
|
||||
padding: string;
|
||||
width: string;
|
||||
hideHeader: boolean;
|
||||
controls: unknown[];
|
||||
fullscreen: boolean;
|
||||
keepAlive: boolean;
|
||||
modelValue: boolean;
|
||||
transparent: boolean;
|
||||
scrollbar: boolean;
|
||||
}, {}, {
|
||||
Close: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
FullScreen: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
Minus: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
@@ -0,0 +1,6 @@
|
||||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
||||
title: StringConstructor;
|
||||
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
||||
title: StringConstructor;
|
||||
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
@@ -0,0 +1,6 @@
|
||||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
||||
label: StringConstructor;
|
||||
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
||||
label: StringConstructor;
|
||||
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
@@ -0,0 +1,2 @@
|
||||
declare const _default: import('vue').DefineComponent<{}, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
@@ -0,0 +1,28 @@
|
||||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
||||
label: StringConstructor;
|
||||
expand: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
isExpand: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
||||
label: StringConstructor;
|
||||
expand: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
isExpand: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
}>> & Readonly<{}>, {
|
||||
expand: boolean;
|
||||
isExpand: boolean;
|
||||
}, {}, {
|
||||
ArrowDown: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
ArrowUp: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
@@ -0,0 +1,38 @@
|
||||
import { PropType } from 'vue';
|
||||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
||||
modelValue: (NumberConstructor | StringConstructor)[];
|
||||
labels: {
|
||||
type: ArrayConstructor;
|
||||
default: () => any[];
|
||||
};
|
||||
justify: {
|
||||
type: PropType<"start" | "end" | "left" | "right" | "center" | "justify" | "match-parent">;
|
||||
default: string;
|
||||
};
|
||||
type: {
|
||||
type: PropType<"card" | "default">;
|
||||
default: string;
|
||||
};
|
||||
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
||||
modelValue: (NumberConstructor | StringConstructor)[];
|
||||
labels: {
|
||||
type: ArrayConstructor;
|
||||
default: () => any[];
|
||||
};
|
||||
justify: {
|
||||
type: PropType<"start" | "end" | "left" | "right" | "center" | "justify" | "match-parent">;
|
||||
default: string;
|
||||
};
|
||||
type: {
|
||||
type: PropType<"card" | "default">;
|
||||
default: string;
|
||||
};
|
||||
}>> & Readonly<{
|
||||
onChange?: (...args: any[]) => any;
|
||||
"onUpdate:modelValue"?: (...args: any[]) => any;
|
||||
}>, {
|
||||
type: "default" | "card";
|
||||
labels: unknown[];
|
||||
justify: "left" | "center" | "right" | "justify" | "start" | "end" | "match-parent";
|
||||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
@@ -0,0 +1,17 @@
|
||||
export declare function useAction({ config, form, Form }: {
|
||||
config: ClForm.Config;
|
||||
form: obj;
|
||||
Form: Vue.Ref<any>;
|
||||
}): {
|
||||
getForm: (prop: string) => any;
|
||||
setForm: (prop: string, value: any) => void;
|
||||
setData: (prop: string, value: any) => void;
|
||||
setConfig: (path: string, value: any) => void;
|
||||
setOptions: (prop: string, value: any[]) => void;
|
||||
setProps: (prop: string, value: any) => void;
|
||||
toggleItem: (prop: string, value?: boolean) => void;
|
||||
hideItem: (...props: string[]) => void;
|
||||
showItem: (...props: string[]) => void;
|
||||
setTitle: (value: string) => void;
|
||||
collapseItem: (e: any) => void;
|
||||
};
|
||||
@@ -0,0 +1,3 @@
|
||||
export declare function useApi({ Form }: {
|
||||
Form: Vue.Ref<any>;
|
||||
}): obj;
|
||||
@@ -0,0 +1,237 @@
|
||||
export declare function useForm(): {
|
||||
Form: import('vue').Ref<any, any>;
|
||||
config: {
|
||||
[x: string]: any;
|
||||
title?: any;
|
||||
height?: any;
|
||||
width?: any;
|
||||
props: {
|
||||
[x: string]: any;
|
||||
inline?: boolean;
|
||||
labelPosition?: "left" | "right" | "top";
|
||||
labelWidth?: string | number;
|
||||
labelSuffix?: string;
|
||||
hideRequiredAsterisk?: boolean;
|
||||
showMessage?: boolean;
|
||||
inlineMessage?: boolean;
|
||||
statusIcon?: boolean;
|
||||
validateOnRuleChange?: boolean;
|
||||
size?: ElementPlus.Size;
|
||||
disabled?: boolean;
|
||||
};
|
||||
items: {
|
||||
[x: string]: any;
|
||||
type?: "tabs";
|
||||
prop?: string & {};
|
||||
props?: {
|
||||
[x: string]: any;
|
||||
labels?: {
|
||||
[x: string]: any;
|
||||
label: string;
|
||||
value: string;
|
||||
name?: string;
|
||||
icon?: any;
|
||||
lazy?: boolean;
|
||||
}[];
|
||||
justify?: "left" | "center" | "right";
|
||||
color?: string;
|
||||
mergeProp?: boolean;
|
||||
labelWidth?: string;
|
||||
error?: string;
|
||||
showMessage?: boolean;
|
||||
inlineMessage?: boolean;
|
||||
size?: "medium" | "default" | "small";
|
||||
};
|
||||
span?: number;
|
||||
col?: {
|
||||
span: number;
|
||||
offset: number;
|
||||
push: number;
|
||||
pull: number;
|
||||
xs: any;
|
||||
sm: any;
|
||||
md: any;
|
||||
lg: any;
|
||||
xl: any;
|
||||
tag: string;
|
||||
};
|
||||
group?: string;
|
||||
collapse?: boolean;
|
||||
value?: any;
|
||||
label?: string;
|
||||
renderLabel?: any;
|
||||
flex?: boolean;
|
||||
hook?: "string" | "number" | "boolean" | "join" | "split" | AnyString | "empty" | "booleanNumber" | "datetimeRange" | "splitJoin" | "json" | {
|
||||
bind?: ClForm.Hook["Pipe"] | ClForm.Hook["Pipe"][];
|
||||
submit?: ClForm.Hook["Pipe"] | ClForm.Hook["Pipe"][];
|
||||
reset?: (prop: string) => string[];
|
||||
};
|
||||
hidden?: boolean | ((options: {
|
||||
scope: obj;
|
||||
}) => boolean);
|
||||
prepend?: {
|
||||
[x: string]: any;
|
||||
name?: string;
|
||||
options?: {
|
||||
[x: string]: any;
|
||||
label?: string;
|
||||
value?: any;
|
||||
color?: string;
|
||||
type?: string;
|
||||
}[] | {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
label?: string;
|
||||
value?: any;
|
||||
color?: string;
|
||||
type?: string;
|
||||
}[];
|
||||
};
|
||||
props?: {
|
||||
[x: string]: any;
|
||||
onChange?: (value: any) => void;
|
||||
} | {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
onChange?: (value: any) => void;
|
||||
};
|
||||
};
|
||||
style?: obj;
|
||||
slots?: {
|
||||
[key: string]: (data?: any) => any;
|
||||
};
|
||||
vm?: any;
|
||||
};
|
||||
component?: {
|
||||
[x: string]: any;
|
||||
name?: string;
|
||||
options?: {
|
||||
[x: string]: any;
|
||||
label?: string;
|
||||
value?: any;
|
||||
color?: string;
|
||||
type?: string;
|
||||
}[] | {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
label?: string;
|
||||
value?: any;
|
||||
color?: string;
|
||||
type?: string;
|
||||
}[];
|
||||
};
|
||||
props?: {
|
||||
[x: string]: any;
|
||||
onChange?: (value: any) => void;
|
||||
} | {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
onChange?: (value: any) => void;
|
||||
};
|
||||
};
|
||||
style?: obj;
|
||||
slots?: {
|
||||
[key: string]: (data?: any) => any;
|
||||
};
|
||||
vm?: any;
|
||||
};
|
||||
append?: {
|
||||
[x: string]: any;
|
||||
name?: string;
|
||||
options?: {
|
||||
[x: string]: any;
|
||||
label?: string;
|
||||
value?: any;
|
||||
color?: string;
|
||||
type?: string;
|
||||
}[] | {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
label?: string;
|
||||
value?: any;
|
||||
color?: string;
|
||||
type?: string;
|
||||
}[];
|
||||
};
|
||||
props?: {
|
||||
[x: string]: any;
|
||||
onChange?: (value: any) => void;
|
||||
} | {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
onChange?: (value: any) => void;
|
||||
};
|
||||
};
|
||||
style?: obj;
|
||||
slots?: {
|
||||
[key: string]: (data?: any) => any;
|
||||
};
|
||||
vm?: any;
|
||||
};
|
||||
rules?: {
|
||||
[x: string]: any;
|
||||
type?: "string" | "number" | "boolean" | "method" | "regexp" | "integer" | "float" | "array" | "object" | "enum" | "date" | "url" | "hex" | "email" | "any";
|
||||
required?: boolean;
|
||||
message?: string;
|
||||
min?: number;
|
||||
max?: number;
|
||||
trigger?: any;
|
||||
validator?: (rule: any, value: any, callback: (error?: Error) => void) => void;
|
||||
} | {
|
||||
[x: string]: any;
|
||||
type?: "string" | "number" | "boolean" | "method" | "regexp" | "integer" | "float" | "array" | "object" | "enum" | "date" | "url" | "hex" | "email" | "any";
|
||||
required?: boolean;
|
||||
message?: string;
|
||||
min?: number;
|
||||
max?: number;
|
||||
trigger?: any;
|
||||
validator?: (rule: any, value: any, callback: (error?: Error) => void) => void;
|
||||
}[];
|
||||
required?: boolean;
|
||||
children?: /*elided*/ any[];
|
||||
}[];
|
||||
form: obj;
|
||||
isReset?: boolean;
|
||||
on?: {
|
||||
open?: (data: any) => void;
|
||||
close?: (action: ClForm.CloseAction, done: fn) => void;
|
||||
submit?: (data: any, event: {
|
||||
close: fn;
|
||||
done: fn;
|
||||
}) => void;
|
||||
change?: (data: any, prop: string) => void;
|
||||
};
|
||||
op: {
|
||||
hidden?: boolean;
|
||||
saveButtonText?: string;
|
||||
closeButtonText?: string;
|
||||
justify?: "flex-start" | "center" | "flex-end";
|
||||
buttons?: (`slot-${string}` | ClForm.CloseAction | {
|
||||
[x: string]: any;
|
||||
label: string;
|
||||
type?: string;
|
||||
hidden?: boolean;
|
||||
onClick: (options: {
|
||||
scope: obj;
|
||||
}) => void;
|
||||
})[];
|
||||
};
|
||||
dialog: {
|
||||
[x: string]: any;
|
||||
title?: any;
|
||||
height?: string;
|
||||
width?: string;
|
||||
hideHeader?: boolean;
|
||||
controls?: Array<"fullscreen" | "close" | AnyString>;
|
||||
};
|
||||
};
|
||||
form: obj;
|
||||
visible: import('vue').Ref<boolean, boolean>;
|
||||
saving: import('vue').Ref<boolean, boolean>;
|
||||
loading: import('vue').Ref<boolean, boolean>;
|
||||
disabled: import('vue').Ref<boolean, boolean>;
|
||||
};
|
||||
export * from './action';
|
||||
export * from './api';
|
||||
export * from './plugins';
|
||||
export * from './tabs';
|
||||
@@ -0,0 +1,7 @@
|
||||
import { Ref } from 'vue';
|
||||
export declare function usePlugins(enable: boolean, { visible }: {
|
||||
visible: Ref<boolean>;
|
||||
}): {
|
||||
create: (plugins?: ClForm.Plugin[]) => boolean;
|
||||
submit: (data: any) => Promise<any>;
|
||||
};
|
||||
@@ -0,0 +1,19 @@
|
||||
export declare function useTabs({ config, Form }: {
|
||||
config: ClForm.Config;
|
||||
Form: Vue.Ref<any>;
|
||||
}): {
|
||||
active: import('vue').Ref<string, string>;
|
||||
list: import('vue').ComputedRef<ClFormTabs.labels>;
|
||||
isLoaded: (value: any) => any;
|
||||
onLoad: (value: any) => void;
|
||||
get: () => ClForm.Item<any>;
|
||||
set: (data: any) => void;
|
||||
change: (value: any, isValid?: boolean) => Promise<unknown>;
|
||||
clear: () => void;
|
||||
mergeProp: (item: ClForm.Item) => void;
|
||||
toGroup: (opts: {
|
||||
config: ClForm.Config;
|
||||
prop: string;
|
||||
refs: any;
|
||||
}) => void;
|
||||
};
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
||||
name: StringConstructor;
|
||||
inner: BooleanConstructor;
|
||||
inline: BooleanConstructor;
|
||||
enablePlugin: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
||||
name: StringConstructor;
|
||||
inner: BooleanConstructor;
|
||||
inline: BooleanConstructor;
|
||||
enablePlugin: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
}>> & Readonly<{}>, {
|
||||
inline: boolean;
|
||||
inner: boolean;
|
||||
enablePlugin: boolean;
|
||||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import { App } from 'vue';
|
||||
export declare const components: {
|
||||
[key: string]: any;
|
||||
};
|
||||
export declare function useComponent(app: App): void;
|
||||
@@ -0,0 +1,2 @@
|
||||
declare const _default: import('vue').DefineComponent<{}, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
@@ -0,0 +1,4 @@
|
||||
declare const _default: import('vue').DefineComponent<{}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
||||
[key: string]: any;
|
||||
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
@@ -0,0 +1,2 @@
|
||||
declare const _default: import('vue').DefineComponent<{}, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
@@ -0,0 +1,2 @@
|
||||
declare const _default: import('vue').DefineComponent<{}, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
@@ -0,0 +1,55 @@
|
||||
import { PropType } from 'vue';
|
||||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
||||
modelValue: StringConstructor;
|
||||
field: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
fieldList: {
|
||||
type: PropType<Array<{
|
||||
label: string;
|
||||
value: string;
|
||||
}>>;
|
||||
default: () => any[];
|
||||
};
|
||||
onSearch: FunctionConstructor;
|
||||
placeholder: StringConstructor;
|
||||
width: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: number;
|
||||
};
|
||||
refreshOnInput: BooleanConstructor;
|
||||
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("change" | "update:modelValue" | "field-change")[], "change" | "update:modelValue" | "field-change", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
||||
modelValue: StringConstructor;
|
||||
field: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
fieldList: {
|
||||
type: PropType<Array<{
|
||||
label: string;
|
||||
value: string;
|
||||
}>>;
|
||||
default: () => any[];
|
||||
};
|
||||
onSearch: FunctionConstructor;
|
||||
placeholder: StringConstructor;
|
||||
width: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: number;
|
||||
};
|
||||
refreshOnInput: BooleanConstructor;
|
||||
}>> & Readonly<{
|
||||
onChange?: (...args: any[]) => any;
|
||||
"onUpdate:modelValue"?: (...args: any[]) => any;
|
||||
"onField-change"?: (...args: any[]) => any;
|
||||
}>, {
|
||||
width: string | number;
|
||||
refreshOnInput: boolean;
|
||||
field: string;
|
||||
fieldList: {
|
||||
label: string;
|
||||
value: string;
|
||||
}[];
|
||||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
@@ -0,0 +1,3 @@
|
||||
export declare function usePlugins(): {
|
||||
create: (plugins?: ClSearch.Plugin[]) => void;
|
||||
};
|
||||
@@ -0,0 +1,66 @@
|
||||
import { PropType } from 'vue';
|
||||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
||||
inline: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
props: {
|
||||
type: ObjectConstructor;
|
||||
default: () => {};
|
||||
};
|
||||
data: {
|
||||
type: ObjectConstructor;
|
||||
default: () => {};
|
||||
};
|
||||
items: {
|
||||
type: PropType<ClForm.Item[]>;
|
||||
default: () => any[];
|
||||
};
|
||||
resetBtn: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
collapse: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
onLoad: FunctionConstructor;
|
||||
onSearch: FunctionConstructor;
|
||||
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "reset"[], "reset", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
||||
inline: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
props: {
|
||||
type: ObjectConstructor;
|
||||
default: () => {};
|
||||
};
|
||||
data: {
|
||||
type: ObjectConstructor;
|
||||
default: () => {};
|
||||
};
|
||||
items: {
|
||||
type: PropType<ClForm.Item[]>;
|
||||
default: () => any[];
|
||||
};
|
||||
resetBtn: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
collapse: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
onLoad: FunctionConstructor;
|
||||
onSearch: FunctionConstructor;
|
||||
}>> & Readonly<{
|
||||
onReset?: (...args: any[]) => any;
|
||||
}>, {
|
||||
data: Record<string, any>;
|
||||
props: Record<string, any>;
|
||||
items: ClForm.Item<any>[];
|
||||
inline: boolean;
|
||||
resetBtn: boolean;
|
||||
collapse: boolean;
|
||||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
@@ -0,0 +1,7 @@
|
||||
export declare function useData({ config, Table }: {
|
||||
config: ClTable.Config;
|
||||
Table: Vue.Ref<any>;
|
||||
}): {
|
||||
data: import('vue').Ref<obj[], obj[]>;
|
||||
setData: (list: obj[]) => void;
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
export declare function renderHeader(item: ClTable.Column, { scope, slots }: any): any;
|
||||
@@ -0,0 +1,7 @@
|
||||
export declare function useHeight({ config, Table }: {
|
||||
Table: Vue.Ref<any>;
|
||||
config: ClTable.Config;
|
||||
}): {
|
||||
maxHeight: import('vue').Ref<number, number>;
|
||||
calcMaxHeight: import('lodash').DebouncedFunc<() => Promise<void>>;
|
||||
};
|
||||
@@ -0,0 +1,191 @@
|
||||
import { TableInstance } from 'element-plus';
|
||||
export declare function useTable(props: any): {
|
||||
Table: import('vue').Ref<TableInstance, TableInstance>;
|
||||
config: {
|
||||
columns: {
|
||||
[x: string]: any;
|
||||
type: ClTable.ColumnType;
|
||||
hidden: boolean | {
|
||||
value: boolean;
|
||||
};
|
||||
component: {
|
||||
[x: string]: any;
|
||||
name?: string;
|
||||
options?: {
|
||||
[x: string]: any;
|
||||
label?: string;
|
||||
value?: any;
|
||||
color?: string;
|
||||
type?: string;
|
||||
}[] | {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
label?: string;
|
||||
value?: any;
|
||||
color?: string;
|
||||
type?: string;
|
||||
}[];
|
||||
};
|
||||
props?: {
|
||||
[x: string]: any;
|
||||
onChange?: (value: any) => void;
|
||||
} | {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
onChange?: (value: any) => void;
|
||||
};
|
||||
};
|
||||
style?: obj;
|
||||
slots?: {
|
||||
[key: string]: (data?: any) => any;
|
||||
};
|
||||
vm?: any;
|
||||
};
|
||||
search: {
|
||||
isInput: boolean;
|
||||
value: any;
|
||||
icon: () => any;
|
||||
refreshOnChange: boolean;
|
||||
component: {
|
||||
[x: string]: any;
|
||||
name?: string;
|
||||
options?: {
|
||||
[x: string]: any;
|
||||
label?: string;
|
||||
value?: any;
|
||||
color?: string;
|
||||
type?: string;
|
||||
}[] | {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
label?: string;
|
||||
value?: any;
|
||||
color?: string;
|
||||
type?: string;
|
||||
}[];
|
||||
};
|
||||
props?: {
|
||||
[x: string]: any;
|
||||
onChange?: (value: any) => void;
|
||||
} | {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
onChange?: (value: any) => void;
|
||||
};
|
||||
};
|
||||
style?: obj;
|
||||
slots?: {
|
||||
[key: string]: (data?: any) => any;
|
||||
};
|
||||
vm?: any;
|
||||
};
|
||||
};
|
||||
dict: {
|
||||
[x: string]: any;
|
||||
label?: string;
|
||||
value?: any;
|
||||
color?: string;
|
||||
type?: string;
|
||||
}[] | {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
label?: string;
|
||||
value?: any;
|
||||
color?: string;
|
||||
type?: string;
|
||||
}[];
|
||||
};
|
||||
dictFormatter: (values: DictOptions) => string;
|
||||
dictColor: boolean;
|
||||
dictSeparator: string;
|
||||
dictAllLevels: boolean;
|
||||
buttons: ((options: {
|
||||
scope: any;
|
||||
}) => ClTable.OpButton) | ("info" | "delete" | "edit" | AnyString | `slot-${string}` | {
|
||||
[x: string]: any;
|
||||
label: string;
|
||||
type?: string;
|
||||
hidden?: boolean;
|
||||
onClick: (options: {
|
||||
scope: obj;
|
||||
}) => void;
|
||||
})[];
|
||||
align: ElementPlus.Align;
|
||||
label: any;
|
||||
renderLabel: (options: {
|
||||
column: any;
|
||||
$index: number;
|
||||
}) => any;
|
||||
className: string;
|
||||
prop: string & {};
|
||||
orderNum: number;
|
||||
width: string | number | {
|
||||
value: string | number;
|
||||
};
|
||||
minWidth: string | number | {
|
||||
value: string | number;
|
||||
};
|
||||
renderHeader: (options: {
|
||||
column: any;
|
||||
$index: number;
|
||||
}) => any;
|
||||
sortable: boolean | "desc" | "descending" | "ascending" | "asc" | "custom";
|
||||
sortMethod: fn;
|
||||
sortBy: string | any[] | ((row: any, index: number) => any);
|
||||
resizable: boolean;
|
||||
columnKey: string;
|
||||
headerAlign: ElementPlus.Align;
|
||||
showOverflowTooltip: boolean;
|
||||
fixed: boolean | string;
|
||||
render: (row: any, column: any, value: any, index: number) => any;
|
||||
formatter: (row: any, column: any, value: any, index: number) => any;
|
||||
selectable: (row: any, index: number) => boolean;
|
||||
reserveSelection: boolean;
|
||||
filterMethod: fn;
|
||||
filteredValue: unknown[];
|
||||
filters: unknown[];
|
||||
filterPlacement: string;
|
||||
filterMultiple: boolean;
|
||||
index: ((index: number) => number) | number;
|
||||
sortOrders: unknown[];
|
||||
children: /*elided*/ any[];
|
||||
}[];
|
||||
autoHeight: boolean;
|
||||
height: any;
|
||||
contextMenu: ("info" | "update" | "delete" | "edit" | "refresh" | {
|
||||
[x: string]: any;
|
||||
label: string;
|
||||
prefixIcon?: any;
|
||||
suffixIcon?: any;
|
||||
ellipsis?: boolean;
|
||||
disabled?: boolean;
|
||||
hidden?: boolean;
|
||||
children?: /*elided*/ any[];
|
||||
showChildren?: boolean;
|
||||
callback?: (done: fn) => void;
|
||||
} | ((row: obj, column: obj, event: PointerEvent) => ClContextMenu.Item) | "check" | "order-desc" | "order-asc")[];
|
||||
defaultSort: {
|
||||
prop: string;
|
||||
order: "descending" | "ascending";
|
||||
};
|
||||
sortRefresh: boolean;
|
||||
emptyText: string;
|
||||
rowKey: string;
|
||||
on?: {
|
||||
[key: string]: (...args: any[]) => void;
|
||||
};
|
||||
props?: {
|
||||
[key: string]: any;
|
||||
};
|
||||
plugins?: ClTable.Plugin[];
|
||||
onRowContextmenu?: (row: any, column: any, event: any) => void;
|
||||
};
|
||||
};
|
||||
export * from './data';
|
||||
export * from './height';
|
||||
export * from './op';
|
||||
export * from './render';
|
||||
export * from './row';
|
||||
export * from './selection';
|
||||
export * from './sort';
|
||||
export * from './header';
|
||||
@@ -0,0 +1,9 @@
|
||||
export declare function useOp({ config }: {
|
||||
config: ClTable.Config;
|
||||
}): {
|
||||
visible: import('vue').Ref<boolean, boolean>;
|
||||
reBuild: (cb?: fn) => Promise<void>;
|
||||
showColumn: (prop: string | string[], status?: boolean) => void;
|
||||
hideColumn: (prop: string | string[]) => void;
|
||||
setColumns: (list: ClTable.Column[]) => void;
|
||||
};
|
||||
@@ -0,0 +1,3 @@
|
||||
export declare function usePlugins(): {
|
||||
create: (plugins?: ClTable.Plugin[]) => void;
|
||||
};
|
||||
@@ -0,0 +1,7 @@
|
||||
export declare function useRender(): {
|
||||
renderColumn: (columns: ClTable.Column[]) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
||||
[key: string]: any;
|
||||
}>[];
|
||||
renderEmpty: (emptyText: string) => any;
|
||||
renderAppend: () => any;
|
||||
};
|
||||
@@ -0,0 +1,13 @@
|
||||
export declare function useRow({ Table, config, Sort }: {
|
||||
Table: Vue.Ref<any>;
|
||||
config: ClTable.Config;
|
||||
Sort: {
|
||||
defaultSort: {
|
||||
prop?: string;
|
||||
order?: string;
|
||||
};
|
||||
changeSort(prop: string, order: string): void;
|
||||
};
|
||||
}): {
|
||||
onRowContextMenu: (row: obj, column: obj, event: PointerEvent) => void;
|
||||
};
|
||||
@@ -0,0 +1,6 @@
|
||||
export declare function useSelection({ emit }: {
|
||||
emit: Vue.Emit;
|
||||
}): {
|
||||
selection: obj[];
|
||||
onSelectionChange: (selection: any[]) => void;
|
||||
};
|
||||
@@ -0,0 +1,18 @@
|
||||
export declare function useSort({ config, Table, emit }: {
|
||||
config: ClTable.Config;
|
||||
Table: Vue.Ref<any>;
|
||||
emit: Vue.Emit;
|
||||
}): {
|
||||
defaultSort: {
|
||||
prop: string;
|
||||
order: "descending" | "ascending";
|
||||
} | {
|
||||
prop?: undefined;
|
||||
order?: undefined;
|
||||
};
|
||||
onSortChange: ({ prop, order }: {
|
||||
prop: string | undefined;
|
||||
order: string;
|
||||
}) => void;
|
||||
changeSort: (prop: string, order: string) => void;
|
||||
};
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
||||
columns: {
|
||||
type: ArrayConstructor;
|
||||
default: () => any[];
|
||||
};
|
||||
autoHeight: {
|
||||
type: BooleanConstructor;
|
||||
default: any;
|
||||
};
|
||||
height: any;
|
||||
contextMenu: {
|
||||
type: (ArrayConstructor | BooleanConstructor)[];
|
||||
default: any;
|
||||
};
|
||||
defaultSort: ObjectConstructor;
|
||||
sortRefresh: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
emptyText: StringConstructor;
|
||||
rowKey: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
||||
[key: string]: any;
|
||||
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("selection-change" | "sort-change")[], "selection-change" | "sort-change", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
||||
columns: {
|
||||
type: ArrayConstructor;
|
||||
default: () => any[];
|
||||
};
|
||||
autoHeight: {
|
||||
type: BooleanConstructor;
|
||||
default: any;
|
||||
};
|
||||
height: any;
|
||||
contextMenu: {
|
||||
type: (ArrayConstructor | BooleanConstructor)[];
|
||||
default: any;
|
||||
};
|
||||
defaultSort: ObjectConstructor;
|
||||
sortRefresh: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
emptyText: StringConstructor;
|
||||
rowKey: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
}>> & Readonly<{
|
||||
"onSelection-change"?: (...args: any[]) => any;
|
||||
"onSort-change"?: (...args: any[]) => any;
|
||||
}>, {
|
||||
columns: unknown[];
|
||||
autoHeight: boolean;
|
||||
height: any;
|
||||
contextMenu: boolean | unknown[];
|
||||
sortRefresh: boolean;
|
||||
rowKey: string;
|
||||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
@@ -0,0 +1,38 @@
|
||||
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
||||
items: {
|
||||
type: ArrayConstructor;
|
||||
default: () => any[];
|
||||
};
|
||||
props: ObjectConstructor;
|
||||
sync: BooleanConstructor;
|
||||
op: ObjectConstructor;
|
||||
dialog: ObjectConstructor;
|
||||
onOpen: FunctionConstructor;
|
||||
onOpened: FunctionConstructor;
|
||||
onClose: FunctionConstructor;
|
||||
onClosed: FunctionConstructor;
|
||||
onInfo: FunctionConstructor;
|
||||
onSubmit: FunctionConstructor;
|
||||
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("opened" | "closed")[], "opened" | "closed", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
||||
items: {
|
||||
type: ArrayConstructor;
|
||||
default: () => any[];
|
||||
};
|
||||
props: ObjectConstructor;
|
||||
sync: BooleanConstructor;
|
||||
op: ObjectConstructor;
|
||||
dialog: ObjectConstructor;
|
||||
onOpen: FunctionConstructor;
|
||||
onOpened: FunctionConstructor;
|
||||
onClose: FunctionConstructor;
|
||||
onClosed: FunctionConstructor;
|
||||
onInfo: FunctionConstructor;
|
||||
onSubmit: FunctionConstructor;
|
||||
}>> & Readonly<{
|
||||
onOpened?: (...args: any[]) => any;
|
||||
onClosed?: (...args: any[]) => any;
|
||||
}>, {
|
||||
sync: boolean;
|
||||
items: unknown[];
|
||||
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
export declare const crudList: ClCrud.Ref[];
|
||||
export declare const emitter: Emitter;
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
import { App } from 'vue';
|
||||
declare const Crud: {
|
||||
install(app: App, options?: any): {
|
||||
name: string;
|
||||
};
|
||||
};
|
||||
export { Crud };
|
||||
export * from './emitter';
|
||||
export * from './hooks';
|
||||
export * from './locale';
|
||||
export { registerFormHook } from './utils/form-hook';
|
||||
export { renderNode } from './utils/vnode';
|
||||
export { ContextMenu } from './components/context-menu';
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
import { Ref } from 'vue';
|
||||
export declare function useCrud(options?: ClCrud.Options, cb?: (app: ClCrud.Ref) => void): Ref<ClCrud.Ref, ClCrud.Ref>;
|
||||
export declare function useUpsert<T = any>(options?: ClUpsert.Options<T>): Ref<ClUpsert.Ref<any>, ClUpsert.Ref<any>>;
|
||||
export declare function useTable<T = any>(options?: ClTable.Options<T>, cb?: (table: ClTable.Ref) => void): Ref<ClTable.Ref<T>, ClTable.Ref<T>>;
|
||||
export declare function useForm<T = any>(cb?: (app: ClForm.Ref<T>) => void): Ref<ClForm.Ref<T>, ClForm.Ref<T>>;
|
||||
export declare function useAdvSearch<T = any>(options?: ClAdvSearch.Options<T>): Ref<ClAdvSearch.Ref<T>, ClAdvSearch.Ref<T>>;
|
||||
export declare function useSearch<T = any>(options?: ClSearch.Options<T>): Ref<ClSearch.Ref<T>, ClSearch.Ref<T>>;
|
||||
export declare function useDialog(options?: {
|
||||
onFullscreen(visible: boolean): void;
|
||||
}): ClDialog.Provide;
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
import { Mitt } from '../utils/mitt';
|
||||
export declare function useCore(): {
|
||||
crud: ClCrud.Ref;
|
||||
mitt: Mitt;
|
||||
};
|
||||
export declare function useConfig(): Config;
|
||||
export declare function useBrowser(): Browser;
|
||||
export declare function useRefs(): {
|
||||
refs: {
|
||||
[key: string]: obj;
|
||||
};
|
||||
setRefs: (name: string) => (el: any) => void;
|
||||
};
|
||||
export declare function useProxy(ctx: any): any;
|
||||
export declare function useElApi(keys: string[], el: any): obj;
|
||||
export * from './crud';
|
||||
Vendored
+33
@@ -0,0 +1,33 @@
|
||||
declare const _default: {
|
||||
op: string;
|
||||
add: string;
|
||||
delete: string;
|
||||
multiDelete: string;
|
||||
update: string;
|
||||
refresh: string;
|
||||
info: string;
|
||||
search: string;
|
||||
reset: string;
|
||||
clear: string;
|
||||
save: string;
|
||||
close: string;
|
||||
confirm: string;
|
||||
advSearch: string;
|
||||
searchKey: string;
|
||||
placeholder: string;
|
||||
tips: string;
|
||||
saveSuccess: string;
|
||||
deleteSuccess: string;
|
||||
deleteConfirm: string;
|
||||
empty: string;
|
||||
desc: string;
|
||||
asc: string;
|
||||
select: string;
|
||||
deselect: string;
|
||||
seeMore: string;
|
||||
hideContent: string;
|
||||
nonEmpty: string;
|
||||
collapse: string;
|
||||
expand: string;
|
||||
};
|
||||
export default _default;
|
||||
+130
@@ -0,0 +1,130 @@
|
||||
export declare const locale: {
|
||||
en: {
|
||||
op: string;
|
||||
add: string;
|
||||
delete: string;
|
||||
multiDelete: string;
|
||||
update: string;
|
||||
refresh: string;
|
||||
info: string;
|
||||
search: string;
|
||||
reset: string;
|
||||
clear: string;
|
||||
save: string;
|
||||
close: string;
|
||||
confirm: string;
|
||||
advSearch: string;
|
||||
searchKey: string;
|
||||
placeholder: string;
|
||||
tips: string;
|
||||
saveSuccess: string;
|
||||
deleteSuccess: string;
|
||||
deleteConfirm: string;
|
||||
empty: string;
|
||||
desc: string;
|
||||
asc: string;
|
||||
select: string;
|
||||
deselect: string;
|
||||
seeMore: string;
|
||||
hideContent: string;
|
||||
nonEmpty: string;
|
||||
collapse: string;
|
||||
expand: string;
|
||||
};
|
||||
ja: {
|
||||
op: string;
|
||||
add: string;
|
||||
delete: string;
|
||||
multiDelete: string;
|
||||
update: string;
|
||||
refresh: string;
|
||||
info: string;
|
||||
search: string;
|
||||
reset: string;
|
||||
clear: string;
|
||||
save: string;
|
||||
close: string;
|
||||
confirm: string;
|
||||
advSearch: string;
|
||||
searchKey: string;
|
||||
placeholder: string;
|
||||
tips: string;
|
||||
saveSuccess: string;
|
||||
deleteSuccess: string;
|
||||
deleteConfirm: string;
|
||||
empty: string;
|
||||
desc: string;
|
||||
asc: string;
|
||||
select: string;
|
||||
deselect: string;
|
||||
seeMore: string;
|
||||
hideContent: string;
|
||||
nonEmpty: string;
|
||||
collapse: string;
|
||||
expand: string;
|
||||
};
|
||||
"zh-cn": {
|
||||
op: string;
|
||||
add: string;
|
||||
delete: string;
|
||||
multiDelete: string;
|
||||
update: string;
|
||||
refresh: string;
|
||||
info: string;
|
||||
search: string;
|
||||
reset: string;
|
||||
clear: string;
|
||||
save: string;
|
||||
close: string;
|
||||
confirm: string;
|
||||
advSearch: string;
|
||||
searchKey: string;
|
||||
placeholder: string;
|
||||
tips: string;
|
||||
saveSuccess: string;
|
||||
deleteSuccess: string;
|
||||
deleteConfirm: string;
|
||||
empty: string;
|
||||
desc: string;
|
||||
asc: string;
|
||||
select: string;
|
||||
deselect: string;
|
||||
seeMore: string;
|
||||
hideContent: string;
|
||||
nonEmpty: string;
|
||||
collapse: string;
|
||||
expand: string;
|
||||
};
|
||||
"zh-tw": {
|
||||
op: string;
|
||||
add: string;
|
||||
delete: string;
|
||||
multiDelete: string;
|
||||
update: string;
|
||||
refresh: string;
|
||||
info: string;
|
||||
search: string;
|
||||
reset: string;
|
||||
clear: string;
|
||||
save: string;
|
||||
close: string;
|
||||
confirm: string;
|
||||
advSearch: string;
|
||||
searchKey: string;
|
||||
placeholder: string;
|
||||
tips: string;
|
||||
saveSuccess: string;
|
||||
deleteSuccess: string;
|
||||
deleteConfirm: string;
|
||||
empty: string;
|
||||
desc: string;
|
||||
asc: string;
|
||||
select: string;
|
||||
deselect: string;
|
||||
seeMore: string;
|
||||
hideContent: string;
|
||||
nonEmpty: string;
|
||||
collapse: string;
|
||||
expand: string;
|
||||
};
|
||||
};
|
||||
Vendored
+33
@@ -0,0 +1,33 @@
|
||||
declare const _default: {
|
||||
op: string;
|
||||
add: string;
|
||||
delete: string;
|
||||
multiDelete: string;
|
||||
update: string;
|
||||
refresh: string;
|
||||
info: string;
|
||||
search: string;
|
||||
reset: string;
|
||||
clear: string;
|
||||
save: string;
|
||||
close: string;
|
||||
confirm: string;
|
||||
advSearch: string;
|
||||
searchKey: string;
|
||||
placeholder: string;
|
||||
tips: string;
|
||||
saveSuccess: string;
|
||||
deleteSuccess: string;
|
||||
deleteConfirm: string;
|
||||
empty: string;
|
||||
desc: string;
|
||||
asc: string;
|
||||
select: string;
|
||||
deselect: string;
|
||||
seeMore: string;
|
||||
hideContent: string;
|
||||
nonEmpty: string;
|
||||
collapse: string;
|
||||
expand: string;
|
||||
};
|
||||
export default _default;
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
declare const _default: {
|
||||
op: string;
|
||||
add: string;
|
||||
delete: string;
|
||||
multiDelete: string;
|
||||
update: string;
|
||||
refresh: string;
|
||||
info: string;
|
||||
search: string;
|
||||
reset: string;
|
||||
clear: string;
|
||||
save: string;
|
||||
close: string;
|
||||
confirm: string;
|
||||
advSearch: string;
|
||||
searchKey: string;
|
||||
placeholder: string;
|
||||
tips: string;
|
||||
saveSuccess: string;
|
||||
deleteSuccess: string;
|
||||
deleteConfirm: string;
|
||||
empty: string;
|
||||
desc: string;
|
||||
asc: string;
|
||||
select: string;
|
||||
deselect: string;
|
||||
seeMore: string;
|
||||
hideContent: string;
|
||||
nonEmpty: string;
|
||||
collapse: string;
|
||||
expand: string;
|
||||
};
|
||||
export default _default;
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
declare const _default: {
|
||||
op: string;
|
||||
add: string;
|
||||
delete: string;
|
||||
multiDelete: string;
|
||||
update: string;
|
||||
refresh: string;
|
||||
info: string;
|
||||
search: string;
|
||||
reset: string;
|
||||
clear: string;
|
||||
save: string;
|
||||
close: string;
|
||||
confirm: string;
|
||||
advSearch: string;
|
||||
searchKey: string;
|
||||
placeholder: string;
|
||||
tips: string;
|
||||
saveSuccess: string;
|
||||
deleteSuccess: string;
|
||||
deleteConfirm: string;
|
||||
empty: string;
|
||||
desc: string;
|
||||
asc: string;
|
||||
select: string;
|
||||
deselect: string;
|
||||
seeMore: string;
|
||||
hideContent: string;
|
||||
nonEmpty: string;
|
||||
collapse: string;
|
||||
expand: string;
|
||||
};
|
||||
export default _default;
|
||||
Vendored
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
import { App } from 'vue';
|
||||
export declare function useProvide(app: App, options?: Options): void;
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
declare class TestService {
|
||||
page(params: any): Promise<unknown>;
|
||||
update(params: {
|
||||
id: any;
|
||||
[key: string]: any;
|
||||
}): Promise<void>;
|
||||
add(params: any): Promise<string>;
|
||||
info(params: {
|
||||
id: any;
|
||||
}): Promise<{
|
||||
id: number;
|
||||
name: string;
|
||||
createTime: string;
|
||||
wages: number;
|
||||
status: number;
|
||||
account: string;
|
||||
occupation: number;
|
||||
phone: number;
|
||||
}>;
|
||||
delete(params: {
|
||||
ids: any[];
|
||||
}): Promise<void>;
|
||||
list(): Promise<{
|
||||
id: number;
|
||||
name: string;
|
||||
createTime: string;
|
||||
wages: number;
|
||||
status: number;
|
||||
account: string;
|
||||
occupation: number;
|
||||
phone: number;
|
||||
}[]>;
|
||||
search: {
|
||||
fieldEq: {
|
||||
propertyName: string;
|
||||
comment: string;
|
||||
source: string;
|
||||
}[];
|
||||
fieldLike: {
|
||||
propertyName: string;
|
||||
comment: string;
|
||||
dict: string[];
|
||||
source: string;
|
||||
}[];
|
||||
keyWordLikeFields: {
|
||||
propertyName: string;
|
||||
comment: string;
|
||||
source: string;
|
||||
}[];
|
||||
};
|
||||
}
|
||||
export { TestService };
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
export declare const format: {
|
||||
[key: string]: ClForm.Hook["Fn"];
|
||||
};
|
||||
declare const formHook: {
|
||||
bind(data: any): void;
|
||||
submit(data: any): void;
|
||||
};
|
||||
export declare function registerFormHook(name: string, fn: ClForm.Hook["Fn"]): void;
|
||||
export default formHook;
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import { App } from 'vue';
|
||||
declare const _default: {
|
||||
readonly vue: App;
|
||||
get(key: string): any;
|
||||
set(key: string, value: any): void;
|
||||
};
|
||||
export default _default;
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
export declare function isObject(val: any): boolean;
|
||||
export declare function parsePx(val: string | number): string;
|
||||
export declare function dataset(obj: any, key: string, value: any): any;
|
||||
export declare function contains(parent: any, node: any): any;
|
||||
export declare function mergeConfig(a: any, b?: any): any;
|
||||
export declare function merge(d1: any, d2: any): any;
|
||||
export declare function addClass(el: Element, name: string): void;
|
||||
export declare function removeClass(el: Element, name: string): void;
|
||||
export declare function getValue<T = any>(value: T | Vue.Ref<T> | ((d: any) => T), data?: any): T;
|
||||
export declare function deepFind(value: any, list: any[], options?: {
|
||||
allLevels: boolean;
|
||||
}): any;
|
||||
export declare function uuid(separator?: string): string;
|
||||
export declare function uniqueFns(fns: any[]): any[];
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
declare const mitt: import('mitt').Emitter<Record<import('mitt').EventType, unknown>>;
|
||||
declare class Mitt {
|
||||
id: number;
|
||||
constructor(id?: number);
|
||||
send(type: "emit" | "off" | "on", name: string, ...args: any[]): void;
|
||||
emit(name: string, ...args: any[]): void;
|
||||
off(name: string, handler: (...args: any[]) => void): void;
|
||||
on(name: string, handler: (...args: any[]) => void): void;
|
||||
}
|
||||
export { Mitt, mitt };
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
export declare function parseExtensionComponent(vnode: Render.Component): {
|
||||
children: any;
|
||||
} | {
|
||||
children?: undefined;
|
||||
};
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
import { VNode } from 'vue';
|
||||
interface Options {
|
||||
prop?: string;
|
||||
scope?: any;
|
||||
item?: any;
|
||||
slots?: any;
|
||||
children?: any[] & any;
|
||||
custom?: (vnode: any) => any;
|
||||
render?: "slot" | null;
|
||||
[key: string]: any;
|
||||
}
|
||||
export declare function parseNode(vnode: any, options: Options): VNode;
|
||||
export declare function renderNode(vnode: any, options: Options): any;
|
||||
export {};
|
||||
Reference in New Issue
Block a user