This commit is contained in:
神仙都没用 2024-10-25 09:49:30 +08:00
parent 57cfaeaa5b
commit 8ed1e16cfd
57 changed files with 10252 additions and 9642 deletions

View File

@ -12,7 +12,7 @@
"format": "prettier --write src/"
},
"dependencies": {
"@cool-vue/crud": "^7.2.2",
"@cool-vue/crud": "^7.2.3",
"@element-plus/icons-vue": "^2.3.1",
"@vueuse/core": "^11.1.0",
"@wangeditor/editor": "^5.1.23",

View File

@ -1,6 +1,6 @@
{
"name": "@cool-vue/crud",
"version": "7.2.2",
"version": "7.2.3",
"private": false,
"main": "./dist/index.umd.min.js",
"typings": "types/index.d.ts",

File diff suppressed because it is too large Load Diff

View File

@ -68,7 +68,7 @@ export default defineComponent({
return () => {
return h(
<el-pagination
small={style.size == "small" || browser.isMini}
size={browser.isMini ? 'small' : style.size}
background
page-sizes={[10, 20, 30, 40, 50, 100]}
pager-count={browser.isMini ? 5 : 7}

View File

@ -100,7 +100,6 @@ function parse(method: "submit" | "bind", { value, hook: pipe, form, prop }: any
} else if (isArray(pipe)) {
pipes = pipe;
} else if (isObject(pipe)) {
// @ts-expect-error
pipes = isArray(pipe[method]) ? pipe[method] : [pipe[method]];
} else if (isFunction(pipe)) {
pipes = [pipe];

View File

@ -1,23 +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
>;
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;

View File

@ -1,48 +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
>;
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;

View File

@ -1,7 +1,6 @@
/// <reference types="../index" />
import { PropType } from "vue";
declare const _default: import("vue").DefineComponent<
import("vue").ExtractPropTypes<{
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
items: {
type: PropType<ClForm.Item<any>[]>;
default: () => never[];
@ -16,18 +15,7 @@ declare const _default: import("vue").DefineComponent<
default: () => string[];
};
onSearch: FunctionConstructor;
}>,
() => any,
{},
{},
{},
import("vue").ComponentOptionsMixin,
import("vue").ComponentOptionsMixin,
("clear" | "reset")[],
"clear" | "reset",
import("vue").PublicProps,
Readonly<
import("vue").ExtractPropTypes<{
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "reset")[], "clear" | "reset", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
items: {
type: PropType<ClForm.Item<any>[]>;
default: () => never[];
@ -42,49 +30,14 @@ declare const _default: import("vue").DefineComponent<
default: () => string[];
};
onSearch: FunctionConstructor;
}>
> &
Readonly<{
}>> & Readonly<{
onReset?: ((...args: any[]) => any) | undefined;
onClear?: ((...args: any[]) => any) | undefined;
}>,
{
}>, {
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
>;
}, {}, {
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;

View File

@ -1,7 +1,6 @@
/// <reference types="../index" />
import { type PropType } from "vue";
declare const ClContextMenu: import("vue").DefineComponent<
import("vue").ExtractPropTypes<{
declare const ClContextMenu: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
show: BooleanConstructor;
options: {
type: PropType<ClContextMenu.Options>;
@ -11,18 +10,7 @@ declare const ClContextMenu: import("vue").DefineComponent<
type: ObjectConstructor;
default: () => {};
};
}>,
() => any,
{},
{},
{},
import("vue").ComponentOptionsMixin,
import("vue").ComponentOptionsMixin,
{},
string,
import("vue").PublicProps,
Readonly<
import("vue").ExtractPropTypes<{
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
show: BooleanConstructor;
options: {
type: PropType<ClContextMenu.Options>;
@ -32,23 +20,11 @@ declare const ClContextMenu: import("vue").DefineComponent<
type: ObjectConstructor;
default: () => {};
};
}>
> &
Readonly<{}>,
{
}>> & Readonly<{}>, {
options: ClContextMenu.Options;
show: boolean;
event: Record<string, any>;
},
{},
{},
{},
string,
import("vue").ComponentProvideOptions,
true,
{},
any
>;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export declare const ContextMenu: {
open(event: any, options: ClContextMenu.Options): ClContextMenu.Exposed;
};

View File

@ -1,43 +1,19 @@
declare const _default: import("vue").DefineComponent<
import("vue").ExtractPropTypes<{
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<{
}>, () => 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<{}>,
{
}>> & Readonly<{}>, {
border: boolean;
padding: string;
},
{},
{},
{},
string,
import("vue").ComponentProvideOptions,
true,
{},
any
>;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;

View File

@ -1,5 +1,4 @@
declare const _default: import("vue").DefineComponent<
import("vue").ExtractPropTypes<{
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
modelValue: {
type: BooleanConstructor;
default: boolean;
@ -30,24 +29,9 @@ declare const _default: import("vue").DefineComponent<
type: BooleanConstructor;
default: boolean;
};
}>,
() => import("vue").VNode<
import("vue").RendererNode,
import("vue").RendererElement,
{
}>, () => 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<{
}>, {}, {}, {}, 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;
@ -78,13 +62,10 @@ declare const _default: import("vue").DefineComponent<
type: BooleanConstructor;
default: boolean;
};
}>
> &
Readonly<{
}>> & Readonly<{
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
"onFullscreen-change"?: ((...args: any[]) => any) | undefined;
}>,
{
}>, {
title: string;
padding: string;
width: string;
@ -94,87 +75,9 @@ declare const _default: import("vue").DefineComponent<
fullscreen: boolean;
modelValue: 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
>;
}, {}, {
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;

View File

@ -1,30 +1,6 @@
declare const _default: import("vue").DefineComponent<
import("vue").ExtractPropTypes<{
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<{
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
title: StringConstructor;
}>
> &
Readonly<{}>,
{},
{},
{},
{},
string,
import("vue").ComponentProvideOptions,
true,
{},
any
>;
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;

View File

@ -1,30 +1,6 @@
declare const _default: import("vue").DefineComponent<
import("vue").ExtractPropTypes<{
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<{
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
label: StringConstructor;
}>
> &
Readonly<{}>,
{},
{},
{},
{},
string,
import("vue").ComponentProvideOptions,
true,
{},
any
>;
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;

View File

@ -1,23 +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
>;
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;

View File

@ -1,5 +1,4 @@
declare const _default: import("vue").DefineComponent<
import("vue").ExtractPropTypes<{
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
label: StringConstructor;
expand: {
type: BooleanConstructor;
@ -9,18 +8,7 @@ declare const _default: import("vue").DefineComponent<
type: BooleanConstructor;
default: boolean;
};
}>,
() => any,
{},
{},
{},
import("vue").ComponentOptionsMixin,
import("vue").ComponentOptionsMixin,
{},
string,
import("vue").PublicProps,
Readonly<
import("vue").ExtractPropTypes<{
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
label: StringConstructor;
expand: {
type: BooleanConstructor;
@ -30,69 +18,11 @@ declare const _default: import("vue").DefineComponent<
type: BooleanConstructor;
default: boolean;
};
}>
> &
Readonly<{}>,
{
}>> & 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
>;
}, {}, {
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;

View File

@ -1,66 +1,38 @@
import { PropType } from "vue";
declare const _default: import("vue").DefineComponent<
import("vue").ExtractPropTypes<{
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
modelValue: (NumberConstructor | StringConstructor)[];
labels: {
type: ArrayConstructor;
default: () => never[];
};
justify: {
type: PropType<
"center" | "justify" | "left" | "right" | "start" | "end" | "match-parent"
>;
type: PropType<"center" | "justify" | "left" | "right" | "start" | "end" | "match-parent">;
default: string;
};
type: {
type: PropType<"default" | "card">;
default: string;
};
}>,
() => any,
{},
{},
{},
import("vue").ComponentOptionsMixin,
import("vue").ComponentOptionsMixin,
("change" | "update:modelValue")[],
"change" | "update:modelValue",
import("vue").PublicProps,
Readonly<
import("vue").ExtractPropTypes<{
}>, () => 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: () => never[];
};
justify: {
type: PropType<
"center" | "justify" | "left" | "right" | "start" | "end" | "match-parent"
>;
type: PropType<"center" | "justify" | "left" | "right" | "start" | "end" | "match-parent">;
default: string;
};
type: {
type: PropType<"default" | "card">;
default: string;
};
}>
> &
Readonly<{
}>> & Readonly<{
onChange?: ((...args: any[]) => any) | undefined;
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
}>,
{
}>, {
type: "default" | "card";
labels: unknown[];
justify: "center" | "justify" | "left" | "right" | "start" | "end" | "match-parent";
},
{},
{},
{},
string,
import("vue").ComponentProvideOptions,
true,
{},
any
>;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;

View File

@ -1,9 +1,5 @@
/// <reference types="../index" />
export declare function useAction({
config,
form,
Form
}: {
export declare function useAction({ config, form, Form }: {
config: ClForm.Config;
form: obj;
Form: Vue.Ref<any>;

View File

@ -1,2 +1,4 @@
/// <reference types="../index" />
export declare function useApi({ Form }: { Form: Vue.Ref<any> }): obj;
export declare function useApi({ Form }: {
Form: Vue.Ref<any>;
}): obj;

View File

@ -24,19 +24,16 @@ export declare function useForm(): {
[x: string]: any;
type?: "tabs" | undefined;
prop?: (string & {}) | undefined;
props?:
| {
props?: {
[x: string]: any;
labels?:
| {
labels?: {
[x: string]: any;
label: string;
value: string;
name?: string | undefined;
icon?: any;
lazy?: boolean | undefined;
}[]
| undefined;
}[] | undefined;
justify?: "center" | "left" | "right" | undefined;
color?: string | undefined;
mergeProp?: boolean | undefined;
@ -45,11 +42,9 @@ export declare function useForm(): {
showMessage?: boolean | undefined;
inlineMessage?: boolean | undefined;
size?: "default" | "small" | "medium" | undefined;
}
| undefined;
} | undefined;
span?: number | undefined;
col?:
| {
col?: {
span: number;
offset: number;
push: number;
@ -60,35 +55,30 @@ export declare function useForm(): {
lg: any;
xl: any;
tag: string;
}
| undefined;
} | undefined;
group?: string | undefined;
collapse?: boolean | undefined;
value?: any;
label?: string | undefined;
renderLabel?: any;
flex?: boolean | undefined;
hook?:
| ClForm.HookKey
| {
hook?: ClForm.HookKey | {
bind?: ClForm.HookPipe | ClForm.HookPipe[] | undefined;
submit?: ClForm.HookPipe | ClForm.HookPipe[] | undefined;
}
| undefined;
hidden?: boolean | ((options: { scope: obj }) => boolean) | undefined;
prepend?:
| {
} | undefined;
hidden?: boolean | ((options: {
scope: obj;
}) => boolean) | undefined;
prepend?: {
[x: string]: any;
name?: string | undefined;
options?:
| {
options?: {
[x: string]: any;
label?: string | undefined;
value?: any;
color?: string | undefined;
type?: string | undefined;
}[]
| {
}[] | {
value: {
[x: string]: any;
label?: string | undefined;
@ -96,42 +86,32 @@ export declare function useForm(): {
color?: string | undefined;
type?: string | undefined;
}[];
}
| undefined;
props?:
| {
} | undefined;
props?: {
[x: string]: any;
onChange?: ((value: any) => void) | undefined;
}
| {
} | {
value: {
[x: string]: any;
onChange?: ((value: any) => void) | undefined;
};
}
| undefined;
} | undefined;
style?: obj | undefined;
slots?:
| {
slots?: {
[key: string]: (data?: any) => any;
}
| undefined;
} | undefined;
vm?: any;
}
| undefined;
component?:
| {
} | undefined;
component?: {
[x: string]: any;
name?: string | undefined;
options?:
| {
options?: {
[x: string]: any;
label?: string | undefined;
value?: any;
color?: string | undefined;
type?: string | undefined;
}[]
| {
}[] | {
value: {
[x: string]: any;
label?: string | undefined;
@ -139,42 +119,32 @@ export declare function useForm(): {
color?: string | undefined;
type?: string | undefined;
}[];
}
| undefined;
props?:
| {
} | undefined;
props?: {
[x: string]: any;
onChange?: ((value: any) => void) | undefined;
}
| {
} | {
value: {
[x: string]: any;
onChange?: ((value: any) => void) | undefined;
};
}
| undefined;
} | undefined;
style?: obj | undefined;
slots?:
| {
slots?: {
[key: string]: (data?: any) => any;
}
| undefined;
} | undefined;
vm?: any;
}
| undefined;
append?:
| {
} | undefined;
append?: {
[x: string]: any;
name?: string | undefined;
options?:
| {
options?: {
[x: string]: any;
label?: string | undefined;
value?: any;
color?: string | undefined;
type?: string | undefined;
}[]
| {
}[] | {
value: {
[x: string]: any;
label?: string | undefined;
@ -182,134 +152,69 @@ export declare function useForm(): {
color?: string | undefined;
type?: string | undefined;
}[];
}
| undefined;
props?:
| {
} | undefined;
props?: {
[x: string]: any;
onChange?: ((value: any) => void) | undefined;
}
| {
} | {
value: {
[x: string]: any;
onChange?: ((value: any) => void) | undefined;
};
}
| undefined;
} | undefined;
style?: obj | undefined;
slots?:
| {
slots?: {
[key: string]: (data?: any) => any;
}
| undefined;
} | undefined;
vm?: any;
}
| undefined;
rules?:
| {
} | undefined;
rules?: {
[x: string]: any;
type?:
| "string"
| "number"
| "boolean"
| "object"
| "method"
| "regexp"
| "integer"
| "float"
| "array"
| "enum"
| "date"
| "url"
| "hex"
| "email"
| "any"
| undefined;
type?: "string" | "number" | "boolean" | "object" | "method" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "url" | "hex" | "email" | "any" | undefined;
required?: boolean | undefined;
message?: string | undefined;
min?: number | undefined;
max?: number | undefined;
trigger?: any;
validator?:
| ((
rule: any,
value: any,
callback: (error?: Error | undefined) => void
) => void)
| undefined;
}
| {
validator?: ((rule: any, value: any, callback: (error?: Error | undefined) => void) => void) | undefined;
} | {
[x: string]: any;
type?:
| "string"
| "number"
| "boolean"
| "object"
| "method"
| "regexp"
| "integer"
| "float"
| "array"
| "enum"
| "date"
| "url"
| "hex"
| "email"
| "any"
| undefined;
type?: "string" | "number" | "boolean" | "object" | "method" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "url" | "hex" | "email" | "any" | undefined;
required?: boolean | undefined;
message?: string | undefined;
min?: number | undefined;
max?: number | undefined;
trigger?: any;
validator?:
| ((
rule: any,
value: any,
callback: (error?: Error | undefined) => void
) => void)
| undefined;
}[]
| undefined;
validator?: ((rule: any, value: any, callback: (error?: Error | undefined) => void) => void) | undefined;
}[] | undefined;
required?: boolean | undefined;
children?: any[] | undefined;
}[];
form: obj;
isReset?: boolean | undefined;
on?:
| {
on?: {
open?: ((data: any) => void) | undefined;
close?: ((action: ClForm.CloseAction, done: fn) => void) | undefined;
submit?:
| ((
data: any,
event: {
submit?: ((data: any, event: {
close: fn;
done: fn;
}
) => void)
| undefined;
}) => void) | undefined;
change?: ((data: any, prop: string) => void) | undefined;
}
| undefined;
} | undefined;
op: {
hidden?: boolean | undefined;
saveButtonText?: string | undefined;
closeButtonText?: string | undefined;
justify?: "center" | "flex-start" | "flex-end" | undefined;
buttons?:
| (
| ClForm.CloseAction
| `slot-${string}`
| {
buttons?: (ClForm.CloseAction | `slot-${string}` | {
[x: string]: any;
label: string;
type?: string | undefined;
hidden?: boolean | undefined;
onClick: (options: { scope: obj }) => void;
}
)[]
| undefined;
onClick: (options: {
scope: obj;
}) => void;
})[] | undefined;
};
dialog: {
[x: string]: any;

View File

@ -1,13 +1,8 @@
/// <reference types="../index" />
import { Ref } from "vue";
export declare function usePlugins(
enable: boolean,
{
visible
}: {
export declare function usePlugins(enable: boolean, { visible }: {
visible: Ref<boolean>;
}
): {
}): {
create: (plugins?: ClForm.Plugin[]) => false | undefined;
submit: (data: any) => Promise<any>;
};

View File

@ -1,5 +1,8 @@
/// <reference types="../index" />
export declare function useTabs({ config, Form }: { config: ClForm.Config; Form: Vue.Ref<any> }): {
export declare function useTabs({ config, Form }: {
config: ClForm.Config;
Form: Vue.Ref<any>;
}): {
active: import("vue").Ref<string | undefined, string | undefined>;
list: import("vue").ComputedRef<ClFormTabs.labels>;
isLoaded: (value: any) => any;
@ -9,5 +12,9 @@ export declare function useTabs({ config, Form }: { config: ClForm.Config; Form:
change: (value: any, isValid?: boolean) => Promise<unknown>;
clear: () => void;
mergeProp: (item: ClForm.Item) => void;
toGroup: (opts: { config: ClForm.Config; prop: string; refs: any }) => void;
toGroup: (opts: {
config: ClForm.Config;
prop: string;
refs: any;
}) => void;
};

View File

@ -1,44 +1,20 @@
declare const _default: import("vue").DefineComponent<
import("vue").ExtractPropTypes<{
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
inner: BooleanConstructor;
inline: BooleanConstructor;
enablePlugin: {
type: BooleanConstructor;
default: boolean;
};
}>,
() => any,
{},
{},
{},
import("vue").ComponentOptionsMixin,
import("vue").ComponentOptionsMixin,
{},
string,
import("vue").PublicProps,
Readonly<
import("vue").ExtractPropTypes<{
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
inner: BooleanConstructor;
inline: BooleanConstructor;
enablePlugin: {
type: BooleanConstructor;
default: boolean;
};
}>
> &
Readonly<{}>,
{
}>> & Readonly<{}>, {
inline: boolean;
inner: boolean;
enablePlugin: boolean;
},
{},
{},
{},
string,
import("vue").ComponentProvideOptions,
true,
{},
any
>;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;

View File

@ -1,23 +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
>;
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;

View File

@ -1,29 +1,4 @@
declare const _default: import("vue").DefineComponent<
{},
() => import("vue").VNode<
import("vue").RendererNode,
import("vue").RendererElement,
{
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
>;
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;

View File

@ -1,23 +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
>;
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;

View File

@ -1,23 +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
>;
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;

View File

@ -1,18 +1,15 @@
import { type PropType } from "vue";
declare const _default: import("vue").DefineComponent<
import("vue").ExtractPropTypes<{
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
modelValue: StringConstructor;
field: {
type: StringConstructor;
default: string;
};
fieldList: {
type: PropType<
{
type: PropType<{
label: string;
value: string;
}[]
>;
}[]>;
default: () => never[];
};
onSearch: FunctionConstructor;
@ -22,30 +19,17 @@ declare const _default: import("vue").DefineComponent<
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<{
}>, () => 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<
{
type: PropType<{
label: string;
value: string;
}[]
>;
}[]>;
default: () => never[];
};
onSearch: FunctionConstructor;
@ -55,14 +39,11 @@ declare const _default: import("vue").DefineComponent<
default: number;
};
refreshOnInput: BooleanConstructor;
}>
> &
Readonly<{
}>> & Readonly<{
onChange?: ((...args: any[]) => any) | undefined;
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
"onField-change"?: ((...args: any[]) => any) | undefined;
}>,
{
}>, {
width: string | number;
refreshOnInput: boolean;
field: string;
@ -70,14 +51,5 @@ declare const _default: import("vue").DefineComponent<
label: string;
value: string;
}[];
},
{},
{},
{},
string,
import("vue").ComponentProvideOptions,
true,
{},
any
>;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;

View File

@ -1,7 +1,6 @@
/// <reference types="../index" />
import { PropType } from "vue";
declare const _default: import("vue").DefineComponent<
import("vue").ExtractPropTypes<{
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
inline: {
type: BooleanConstructor;
default: boolean;
@ -24,18 +23,7 @@ declare const _default: import("vue").DefineComponent<
};
onLoad: FunctionConstructor;
onSearch: FunctionConstructor;
}>,
() => any,
{},
{},
{},
import("vue").ComponentOptionsMixin,
import("vue").ComponentOptionsMixin,
"reset"[],
"reset",
import("vue").PublicProps,
Readonly<
import("vue").ExtractPropTypes<{
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "reset"[], "reset", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
inline: {
type: BooleanConstructor;
default: boolean;
@ -58,25 +46,13 @@ declare const _default: import("vue").DefineComponent<
};
onLoad: FunctionConstructor;
onSearch: FunctionConstructor;
}>
> &
Readonly<{
}>> & Readonly<{
onReset?: ((...args: any[]) => any) | undefined;
}>,
{
}>, {
items: ClForm.Item<any>[];
props: Record<string, any>;
inline: boolean;
data: Record<string, any>;
resetBtn: boolean;
},
{},
{},
{},
string,
import("vue").ComponentProvideOptions,
true,
{},
any
>;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;

View File

@ -1,8 +1,5 @@
/// <reference types="../index" />
export declare function useData({
config,
Table
}: {
export declare function useData({ config, Table }: {
config: ClTable.Config;
Table: Vue.Ref<any>;
}): {

View File

@ -1,8 +1,5 @@
/// <reference types="../index" />
export declare function useHeight({
config,
Table
}: {
export declare function useHeight({ config, Table }: {
Table: Vue.Ref<any>;
config: ClTable.Config;
}): {

View File

@ -5,23 +5,19 @@ export declare function useTable(props: any): {
columns: {
[x: string]: any;
type: ClTable.ColumnType;
hidden:
| boolean
| {
hidden: boolean | {
value: boolean;
};
component: {
[x: string]: any;
name?: string | undefined;
options?:
| {
options?: {
[x: string]: any;
label?: string | undefined;
value?: any;
color?: string | undefined;
type?: string | undefined;
}[]
| {
}[] | {
value: {
[x: string]: any;
label?: string | undefined;
@ -29,46 +25,36 @@ export declare function useTable(props: any): {
color?: string | undefined;
type?: string | undefined;
}[];
}
| undefined;
props?:
| {
} | undefined;
props?: {
[x: string]: any;
onChange?: ((value: any) => void) | undefined;
}
| {
} | {
value: {
[x: string]: any;
onChange?: ((value: any) => void) | undefined;
};
}
| undefined;
} | undefined;
style?: obj | undefined;
slots?:
| {
slots?: {
[key: string]: (data?: any) => any;
}
| undefined;
} | undefined;
vm?: any;
};
search: {
isInput: boolean;
value: any;
refreshOnChange: {
valueOf: () => boolean;
};
refreshOnChange: boolean;
component: {
[x: string]: any;
name?: string | undefined;
options?:
| {
options?: {
[x: string]: any;
label?: string | undefined;
value?: any;
color?: string | undefined;
type?: string | undefined;
}[]
| {
}[] | {
value: {
[x: string]: any;
label?: string | undefined;
@ -76,38 +62,30 @@ export declare function useTable(props: any): {
color?: string | undefined;
type?: string | undefined;
}[];
}
| undefined;
props?:
| {
} | undefined;
props?: {
[x: string]: any;
onChange?: ((value: any) => void) | undefined;
}
| {
} | {
value: {
[x: string]: any;
onChange?: ((value: any) => void) | undefined;
};
}
| undefined;
} | undefined;
style?: obj | undefined;
slots?:
| {
slots?: {
[key: string]: (data?: any) => any;
}
| undefined;
} | undefined;
vm?: any;
};
};
dict:
| {
dict: {
[x: string]: any;
label?: string | undefined;
value?: any;
color?: string | undefined;
type?: string | undefined;
}[]
| {
}[] | {
value: {
[x: string]: any;
label?: string | undefined;
@ -120,22 +98,17 @@ export declare function useTable(props: any): {
dictColor: boolean;
dictSeparator: string;
dictAllLevels: boolean;
buttons:
| ((options: { scope: any }) => ClTable.OpButton)
| (
| "info"
| "delete"
| "edit"
| AnyString
| `slot-${string}`
| {
buttons: ((options: {
scope: any;
}) => ClTable.OpButton) | ("info" | "delete" | "edit" | AnyString | `slot-${string}` | {
[x: string]: any;
label: string;
type?: string | undefined;
hidden?: boolean | undefined;
onClick: (options: { scope: obj }) => void;
}
)[];
onClick: (options: {
scope: obj;
}) => void;
})[];
align: ElementPlus.Align;
label: any;
className: string;
@ -143,7 +116,10 @@ export declare function useTable(props: any): {
orderNum: number;
width: number;
minWidth: string | number;
renderHeader: (options: { column: any; $index: number }) => any;
renderHeader: (options: {
column: any;
$index: number;
}) => any;
sortable: boolean | "asc" | "desc" | "custom" | "descending" | "ascending";
sortMethod: fn;
sortBy: string | any[] | ((row: any, index: number) => any);
@ -166,13 +142,7 @@ export declare function useTable(props: any): {
}[];
autoHeight: boolean;
height: any;
contextMenu: (
| "info"
| "update"
| "delete"
| "edit"
| "refresh"
| {
contextMenu: ("info" | "update" | "delete" | "edit" | "refresh" | {
[x: string]: any;
label: string;
prefixIcon?: any;
@ -183,12 +153,7 @@ export declare function useTable(props: any): {
children?: any[] | undefined;
showChildren?: boolean | undefined;
callback?: ((done: fn) => void) | undefined;
}
| ((row: obj, column: obj, event: PointerEvent) => ClContextMenu.Item)
| "check"
| "order-desc"
| "order-asc"
)[];
} | ((row: obj, column: obj, event: PointerEvent) => ClContextMenu.Item) | "check" | "order-desc" | "order-asc")[];
defaultSort: {
prop: string;
order: "descending" | "ascending";

View File

@ -1,5 +1,7 @@
/// <reference types="../index" />
export declare function useOp({ config }: { config: ClTable.Config }): {
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;

View File

@ -1,15 +1,8 @@
/// <reference types="../index" />
export declare function useRender(): {
renderColumn: (columns: ClTable.Column[]) => (
| import("vue").VNode<
import("vue").RendererNode,
import("vue").RendererElement,
{
renderColumn: (columns: ClTable.Column[]) => (import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}
>
| null
)[];
}> | null)[];
renderEmpty: (emptyText: string) => any;
renderAppend: () => any;
};

View File

@ -1,9 +1,5 @@
/// <reference types="../index" />
export declare function useRow({
Table,
config,
Sort
}: {
export declare function useRow({ Table, config, Sort }: {
Table: Vue.Ref<any>;
config: ClTable.Config;
Sort: {

View File

@ -1,5 +1,7 @@
/// <reference types="../index" />
export declare function useSelection({ emit }: { emit: Vue.Emit }): {
export declare function useSelection({ emit }: {
emit: Vue.Emit;
}): {
selection: obj[];
onSelectionChange: (selection: any[]) => void;
};

View File

@ -1,22 +1,19 @@
/// <reference types="../index" />
export declare function useSort({
config,
Table,
emit
}: {
export declare function useSort({ config, Table, emit }: {
config: ClTable.Config;
Table: Vue.Ref<any>;
emit: Vue.Emit;
}): {
defaultSort:
| {
defaultSort: {
prop: string;
order: "descending" | "ascending";
}
| {
} | {
prop?: undefined;
order?: undefined;
};
onSortChange: ({ prop, order }: { prop: string | undefined; order: string }) => void;
onSortChange: ({ prop, order }: {
prop: string | undefined;
order: string;
}) => void;
changeSort: (prop: string, order: string) => void;
};

View File

@ -1,5 +1,4 @@
declare const _default: import("vue").DefineComponent<
import("vue").ExtractPropTypes<{
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
columns: {
type: ArrayConstructor;
default: () => never[];
@ -23,26 +22,9 @@ declare const _default: import("vue").DefineComponent<
type: StringConstructor;
default: string;
};
}>,
() =>
| false
| import("vue").VNode<
import("vue").RendererNode,
import("vue").RendererElement,
{
}>, () => false | 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<{
}>, {}, {}, {}, 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: () => never[];
@ -66,26 +48,14 @@ declare const _default: import("vue").DefineComponent<
type: StringConstructor;
default: string;
};
}>
> &
Readonly<{
}>> & Readonly<{
"onSelection-change"?: ((...args: any[]) => any) | undefined;
"onSort-change"?: ((...args: any[]) => any) | undefined;
}>,
{
}>, {
columns: unknown[];
autoHeight: boolean;
contextMenu: boolean | unknown[];
sortRefresh: boolean;
rowKey: string;
},
{},
{},
{},
string,
import("vue").ComponentProvideOptions,
true,
{},
any
>;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;

View File

@ -1,5 +1,4 @@
declare const _default: import("vue").DefineComponent<
import("vue").ExtractPropTypes<{
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
items: {
type: ArrayConstructor;
default: () => never[];
@ -14,18 +13,7 @@ declare const _default: import("vue").DefineComponent<
onClosed: FunctionConstructor;
onInfo: FunctionConstructor;
onSubmit: FunctionConstructor;
}>,
() => any,
{},
{},
{},
import("vue").ComponentOptionsMixin,
import("vue").ComponentOptionsMixin,
("opened" | "closed")[],
"opened" | "closed",
import("vue").PublicProps,
Readonly<
import("vue").ExtractPropTypes<{
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("opened" | "closed")[], "opened" | "closed", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
items: {
type: ArrayConstructor;
default: () => never[];
@ -40,23 +28,11 @@ declare const _default: import("vue").DefineComponent<
onClosed: FunctionConstructor;
onInfo: FunctionConstructor;
onSubmit: FunctionConstructor;
}>
> &
Readonly<{
}>> & Readonly<{
onOpened?: ((...args: any[]) => any) | undefined;
onClosed?: ((...args: any[]) => any) | undefined;
}>,
{
}>, {
sync: boolean;
items: unknown[];
},
{},
{},
{},
string,
import("vue").ComponentProvideOptions,
true,
{},
any
>;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;

View File

@ -1,24 +1,11 @@
/// <reference types="../index" />
import { Ref } from "vue";
export declare function useCrud(
options?: ClCrud.Options,
cb?: (app: ClCrud.Ref) => void
): Ref<ClCrud.Ref | undefined, ClCrud.Ref | undefined>;
export declare function useUpsert<T = any>(
options?: ClUpsert.Options<T>
): Ref<ClUpsert.Ref<any> | undefined, ClUpsert.Ref<any> | undefined>;
export declare function useTable<T = any>(
options?: ClTable.Options<T>
): Ref<ClTable.Ref<T> | undefined, ClTable.Ref<T> | undefined>;
export declare function useForm<T = any>(
cb?: (app: ClForm.Ref<T>) => void
): Ref<ClForm.Ref<T> | undefined, ClForm.Ref<T> | undefined>;
export declare function useAdvSearch<T = any>(
options?: ClAdvSearch.Options<T>
): Ref<ClAdvSearch.Ref<T> | undefined, ClAdvSearch.Ref<T> | undefined>;
export declare function useSearch<T = any>(
options?: ClSearch.Options<T>
): Ref<ClSearch.Ref<T> | undefined, ClSearch.Ref<T> | undefined>;
export declare function useCrud(options?: ClCrud.Options, cb?: (app: ClCrud.Ref) => void): Ref<ClCrud.Ref | undefined, ClCrud.Ref | undefined>;
export declare function useUpsert<T = any>(options?: ClUpsert.Options<T>): Ref<ClUpsert.Ref<any> | undefined, ClUpsert.Ref<any> | undefined>;
export declare function useTable<T = any>(options?: ClTable.Options<T>): Ref<ClTable.Ref<T> | undefined, ClTable.Ref<T> | undefined>;
export declare function useForm<T = any>(cb?: (app: ClForm.Ref<T>) => void): Ref<ClForm.Ref<T> | undefined, ClForm.Ref<T> | undefined>;
export declare function useAdvSearch<T = any>(options?: ClAdvSearch.Options<T>): Ref<ClAdvSearch.Ref<T> | undefined, ClAdvSearch.Ref<T> | undefined>;
export declare function useSearch<T = any>(options?: ClSearch.Options<T>): Ref<ClSearch.Ref<T> | undefined, ClSearch.Ref<T> | undefined>;
export declare function useDialog(options?: {
onFullscreen(visible: boolean): void;
}): ClDialog.Provide;

View File

@ -2,10 +2,7 @@
import type { App } from "vue";
import "./static/index.scss";
declare const Crud: {
install(
app: App,
options?: Options
): {
install(app: App, options?: Options): {
name: string;
};
};

View File

@ -1,9 +1,13 @@
declare class TestService {
page(params: any): Promise<unknown>;
update(params: { id: any; [key: string]: any }): Promise<void>;
update(params: {
id: any;
[key: string]: any;
}): Promise<void>;
add(params: any): Promise<string>;
info(params: { id: any }): Promise<
| {
info(params: {
id: any;
}): Promise<{
id: number;
name: string;
createTime: string;
@ -12,12 +16,11 @@ declare class TestService {
account: string;
occupation: number;
phone: number;
}
| undefined
>;
delete(params: { ids: any[] }): Promise<void>;
list(): Promise<
{
} | undefined>;
delete(params: {
ids: any[];
}): Promise<void>;
list(): Promise<{
id: number;
name: string;
createTime: string;
@ -26,7 +29,6 @@ declare class TestService {
account: string;
occupation: number;
phone: number;
}[]
>;
}[]>;
}
export { TestService };

View File

@ -7,11 +7,7 @@ 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(data: any, params?: any): any;
export declare function deepFind(
value: any,
list: any[],
options?: {
export declare function deepFind(value: any, list: any[], options?: {
allLevels: boolean;
}
): any;
}): any;
export declare function uuid(separator?: string): string;

View File

@ -6,18 +6,9 @@ export declare function parseFormHidden(value: any, { scope }: any): any;
/**
* table.dict
*/
export declare function parseTableDict(
value: any,
item: ClTable.Column
):
| string
| import("vue").VNode<
import("vue").RendererNode,
import("vue").RendererElement,
{
export declare function parseTableDict(value: any, item: ClTable.Column): string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}
>[];
}>[];
/**
* table.op.buttons
*/
@ -25,10 +16,8 @@ export declare function parseTableOpButtons(buttons: any[], { scope }: any): any
/**
*
*/
export declare function parseExtensionComponent(vnode: any):
| {
export declare function parseExtensionComponent(vnode: any): {
children: any;
}
| {
} | {
children?: undefined;
};

File diff suppressed because it is too large Load Diff