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/" "format": "prettier --write src/"
}, },
"dependencies": { "dependencies": {
"@cool-vue/crud": "^7.2.2", "@cool-vue/crud": "^7.2.3",
"@element-plus/icons-vue": "^2.3.1", "@element-plus/icons-vue": "^2.3.1",
"@vueuse/core": "^11.1.0", "@vueuse/core": "^11.1.0",
"@wangeditor/editor": "^5.1.23", "@wangeditor/editor": "^5.1.23",

View File

@ -1,6 +1,6 @@
{ {
"name": "@cool-vue/crud", "name": "@cool-vue/crud",
"version": "7.2.2", "version": "7.2.3",
"private": false, "private": false,
"main": "./dist/index.umd.min.js", "main": "./dist/index.umd.min.js",
"typings": "types/index.d.ts", "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 () => {
return h( return h(
<el-pagination <el-pagination
small={style.size == "small" || browser.isMini} size={browser.isMini ? 'small' : style.size}
background background
page-sizes={[10, 20, 30, 40, 50, 100]} page-sizes={[10, 20, 30, 40, 50, 100]}
pager-count={browser.isMini ? 5 : 7} 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)) { } else if (isArray(pipe)) {
pipes = pipe; pipes = pipe;
} else if (isObject(pipe)) { } else if (isObject(pipe)) {
// @ts-expect-error
pipes = isArray(pipe[method]) ? pipe[method] : [pipe[method]]; pipes = isArray(pipe[method]) ? pipe[method] : [pipe[method]];
} else if (isFunction(pipe)) { } else if (isFunction(pipe)) {
pipes = [pipe]; pipes = [pipe];

View File

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

View File

@ -1,48 +1,4 @@
declare const _default: import("vue").DefineComponent< 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>;
() => any, }, {}, string, import("vue").ComponentProvideOptions, true, {}, 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; export default _default;

View File

@ -1,90 +1,43 @@
/// <reference types="../index" /> /// <reference types="../index" />
import { PropType } from "vue"; import { PropType } from "vue";
declare const _default: import("vue").DefineComponent< declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
import("vue").ExtractPropTypes<{ items: {
items: { type: PropType<ClForm.Item<any>[]>;
type: PropType<ClForm.Item<any>[]>; default: () => never[];
default: () => never[]; };
}; title: StringConstructor;
title: StringConstructor; size: {
size: { type: (NumberConstructor | StringConstructor)[];
type: (NumberConstructor | StringConstructor)[]; default: string;
default: string; };
}; op: {
op: { type: ArrayConstructor;
type: ArrayConstructor; default: () => string[];
default: () => string[]; };
}; onSearch: FunctionConstructor;
onSearch: FunctionConstructor; }>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "reset")[], "clear" | "reset", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
}>, items: {
() => any, type: PropType<ClForm.Item<any>[]>;
{}, default: () => never[];
{}, };
{}, title: StringConstructor;
import("vue").ComponentOptionsMixin, size: {
import("vue").ComponentOptionsMixin, type: (NumberConstructor | StringConstructor)[];
("clear" | "reset")[], default: string;
"clear" | "reset", };
import("vue").PublicProps, op: {
Readonly< type: ArrayConstructor;
import("vue").ExtractPropTypes<{ default: () => string[];
items: { };
type: PropType<ClForm.Item<any>[]>; onSearch: FunctionConstructor;
default: () => never[]; }>> & Readonly<{
}; onReset?: ((...args: any[]) => any) | undefined;
title: StringConstructor; onClear?: ((...args: any[]) => any) | undefined;
size: { }>, {
type: (NumberConstructor | StringConstructor)[]; size: string | number;
default: string; items: ClForm.Item<any>[];
}; op: unknown[];
op: { }, {}, {
type: ArrayConstructor; 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>;
default: () => string[]; }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
};
onSearch: FunctionConstructor;
}>
> &
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
>;
export default _default; export default _default;

View File

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

View File

@ -1,23 +1,23 @@
/// <reference types="../index" /> /// <reference types="../index" />
import { Mitt } from "../../utils/mitt"; import { Mitt } from "../../utils/mitt";
interface Options { interface Options {
mitt: Mitt; mitt: Mitt;
config: ClCrud.Config; config: ClCrud.Config;
crud: ClCrud.Ref; crud: ClCrud.Ref;
} }
export declare function useHelper({ config, crud, mitt }: Options): { export declare function useHelper({ config, crud, mitt }: Options): {
proxy: (name: string, data?: any[]) => void; proxy: (name: string, data?: any[]) => void;
set: (key: string, value: any) => false | undefined; set: (key: string, value: any) => false | undefined;
on: (name: string, callback: fn) => void; on: (name: string, callback: fn) => void;
rowInfo: (data: any) => void; rowInfo: (data: any) => void;
rowAdd: () => void; rowAdd: () => void;
rowEdit: (data: any) => void; rowEdit: (data: any) => void;
rowAppend: (data: any) => void; rowAppend: (data: any) => void;
rowDelete: (...selection: any[]) => void; rowDelete: (...selection: any[]) => void;
rowClose: () => void; rowClose: () => void;
refresh: (params?: obj) => Promise<unknown>; refresh: (params?: obj) => Promise<unknown>;
getPermission: (key: "page" | "list" | "info" | "update" | "add" | "delete") => boolean; getPermission: (key: "page" | "list" | "info" | "update" | "add" | "delete") => boolean;
paramsReplace: (params: obj) => any; paramsReplace: (params: obj) => any;
getParams: () => obj; getParams: () => obj;
}; };
export {}; export {};

View File

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

View File

@ -1,180 +1,83 @@
declare const _default: import("vue").DefineComponent< declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
import("vue").ExtractPropTypes<{ modelValue: {
modelValue: { type: BooleanConstructor;
type: BooleanConstructor; default: boolean;
default: boolean; };
}; props: ObjectConstructor;
props: ObjectConstructor; title: {
title: { type: StringConstructor;
type: StringConstructor; default: string;
default: string; };
}; height: StringConstructor;
height: StringConstructor; width: {
width: { type: StringConstructor;
type: StringConstructor; default: string;
default: string; };
}; padding: {
padding: { type: StringConstructor;
type: StringConstructor; default: string;
default: string; };
}; keepAlive: BooleanConstructor;
keepAlive: BooleanConstructor; fullscreen: BooleanConstructor;
fullscreen: BooleanConstructor; controls: {
controls: { type: ArrayConstructor;
type: ArrayConstructor; default: () => string[];
default: () => string[]; };
}; hideHeader: BooleanConstructor;
hideHeader: BooleanConstructor; beforeClose: FunctionConstructor;
beforeClose: FunctionConstructor; scrollbar: {
scrollbar: { type: BooleanConstructor;
type: BooleanConstructor; default: boolean;
default: boolean; };
}; }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
}>, [key: string]: any;
() => import("vue").VNode< }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "fullscreen-change")[], "update:modelValue" | "fullscreen-change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
import("vue").RendererNode, modelValue: {
import("vue").RendererElement, type: BooleanConstructor;
{ default: boolean;
[key: string]: any; };
} props: ObjectConstructor;
>, title: {
{}, type: StringConstructor;
{}, default: string;
{}, };
import("vue").ComponentOptionsMixin, height: StringConstructor;
import("vue").ComponentOptionsMixin, width: {
("update:modelValue" | "fullscreen-change")[], type: StringConstructor;
"update:modelValue" | "fullscreen-change", default: string;
import("vue").PublicProps, };
Readonly< padding: {
import("vue").ExtractPropTypes<{ type: StringConstructor;
modelValue: { default: string;
type: BooleanConstructor; };
default: boolean; keepAlive: BooleanConstructor;
}; fullscreen: BooleanConstructor;
props: ObjectConstructor; controls: {
title: { type: ArrayConstructor;
type: StringConstructor; default: () => string[];
default: string; };
}; hideHeader: BooleanConstructor;
height: StringConstructor; beforeClose: FunctionConstructor;
width: { scrollbar: {
type: StringConstructor; type: BooleanConstructor;
default: string; default: boolean;
}; };
padding: { }>> & Readonly<{
type: StringConstructor; "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
default: string; "onFullscreen-change"?: ((...args: any[]) => any) | undefined;
}; }>, {
keepAlive: BooleanConstructor; title: string;
fullscreen: BooleanConstructor; padding: string;
controls: { width: string;
type: ArrayConstructor; keepAlive: boolean;
default: () => string[]; hideHeader: boolean;
}; controls: unknown[];
hideHeader: BooleanConstructor; fullscreen: boolean;
beforeClose: FunctionConstructor; modelValue: boolean;
scrollbar: { scrollbar: boolean;
type: BooleanConstructor; }, {}, {
default: 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>;
Readonly<{
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
"onFullscreen-change"?: ((...args: any[]) => any) | undefined;
}>,
{
title: string;
padding: string;
width: string;
keepAlive: boolean;
hideHeader: boolean;
controls: unknown[];
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
>;
export default _default; export default _default;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,22 +1,18 @@
/// <reference types="../index" /> /// <reference types="../index" />
export declare function useAction({ export declare function useAction({ config, form, Form }: {
config, config: ClForm.Config;
form, form: obj;
Form Form: Vue.Ref<any>;
}: {
config: ClForm.Config;
form: obj;
Form: Vue.Ref<any>;
}): { }): {
getForm: (prop: string) => any; getForm: (prop: string) => any;
setForm: (prop: string, value: any) => void; setForm: (prop: string, value: any) => void;
setData: (prop: string, value: any) => void; setData: (prop: string, value: any) => void;
setConfig: (path: string, value: any) => void; setConfig: (path: string, value: any) => void;
setOptions: (prop: string, value: any[]) => void; setOptions: (prop: string, value: any[]) => void;
setProps: (prop: string, value: any) => void; setProps: (prop: string, value: any) => void;
toggleItem: (prop: string, value?: boolean) => void; toggleItem: (prop: string, value?: boolean) => void;
hideItem: (...props: string[]) => void; hideItem: (...props: string[]) => void;
showItem: (...props: string[]) => void; showItem: (...props: string[]) => void;
setTitle: (value: string) => void; setTitle: (value: string) => void;
collapseItem: (e: any) => void; collapseItem: (e: any) => void;
}; };

View File

@ -1,2 +1,4 @@
/// <reference types="../index" /> /// <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

@ -1,330 +1,235 @@
/// <reference types="../index" /> /// <reference types="../index" />
export declare function useForm(): { export declare function useForm(): {
Form: import("vue").Ref<any, any>; Form: import("vue").Ref<any, any>;
config: { config: {
[x: string]: any; [x: string]: any;
title?: any; title?: any;
height?: any; height?: any;
width?: any; width?: any;
props: { props: {
[x: string]: any; [x: string]: any;
inline?: boolean | undefined; inline?: boolean | undefined;
labelPosition?: "left" | "right" | "top" | undefined; labelPosition?: "left" | "right" | "top" | undefined;
labelWidth?: string | number | undefined; labelWidth?: string | number | undefined;
labelSuffix?: string | undefined; labelSuffix?: string | undefined;
hideRequiredAsterisk?: boolean | undefined; hideRequiredAsterisk?: boolean | undefined;
showMessage?: boolean | undefined; showMessage?: boolean | undefined;
inlineMessage?: boolean | undefined; inlineMessage?: boolean | undefined;
statusIcon?: boolean | undefined; statusIcon?: boolean | undefined;
validateOnRuleChange?: boolean | undefined; validateOnRuleChange?: boolean | undefined;
size?: ElementPlus.Size | undefined; size?: ElementPlus.Size | undefined;
disabled?: boolean | undefined; disabled?: boolean | undefined;
}; };
items: { items: {
[x: string]: any; [x: string]: any;
type?: "tabs" | undefined; type?: "tabs" | undefined;
prop?: (string & {}) | undefined; prop?: (string & {}) | undefined;
props?: props?: {
| { [x: string]: any;
[x: string]: any; labels?: {
labels?: [x: string]: any;
| { label: string;
[x: string]: any; value: string;
label: string; name?: string | undefined;
value: string; icon?: any;
name?: string | undefined; lazy?: boolean | undefined;
icon?: any; }[] | undefined;
lazy?: boolean | undefined; justify?: "center" | "left" | "right" | undefined;
}[] color?: string | undefined;
| undefined; mergeProp?: boolean | undefined;
justify?: "center" | "left" | "right" | undefined; labelWidth?: string | undefined;
color?: string | undefined; error?: string | undefined;
mergeProp?: boolean | undefined; showMessage?: boolean | undefined;
labelWidth?: string | undefined; inlineMessage?: boolean | undefined;
error?: string | undefined; size?: "default" | "small" | "medium" | undefined;
showMessage?: boolean | undefined; } | undefined;
inlineMessage?: boolean | undefined; span?: number | undefined;
size?: "default" | "small" | "medium" | undefined; col?: {
} span: number;
| undefined; offset: number;
span?: number | undefined; push: number;
col?: pull: number;
| { xs: any;
span: number; sm: any;
offset: number; md: any;
push: number; lg: any;
pull: number; xl: any;
xs: any; tag: string;
sm: any; } | undefined;
md: any; group?: string | undefined;
lg: any; collapse?: boolean | undefined;
xl: any; value?: any;
tag: string; label?: string | undefined;
} renderLabel?: any;
| undefined; flex?: boolean | undefined;
group?: string | undefined; hook?: ClForm.HookKey | {
collapse?: boolean | undefined; bind?: ClForm.HookPipe | ClForm.HookPipe[] | undefined;
value?: any; submit?: ClForm.HookPipe | ClForm.HookPipe[] | undefined;
label?: string | undefined; } | undefined;
renderLabel?: any; hidden?: boolean | ((options: {
flex?: boolean | undefined; scope: obj;
hook?: }) => boolean) | undefined;
| ClForm.HookKey prepend?: {
| { [x: string]: any;
bind?: ClForm.HookPipe | ClForm.HookPipe[] | undefined; name?: string | undefined;
submit?: ClForm.HookPipe | ClForm.HookPipe[] | undefined; options?: {
} [x: string]: any;
| undefined; label?: string | undefined;
hidden?: boolean | ((options: { scope: obj }) => boolean) | undefined; value?: any;
prepend?: color?: string | undefined;
| { type?: string | undefined;
[x: string]: any; }[] | {
name?: string | undefined; value: {
options?: [x: string]: any;
| { label?: string | undefined;
[x: string]: any; value?: any;
label?: string | undefined; color?: string | undefined;
value?: any; type?: string | undefined;
color?: string | undefined; }[];
type?: string | undefined; } | undefined;
}[] props?: {
| { [x: string]: any;
value: { onChange?: ((value: any) => void) | undefined;
[x: string]: any; } | {
label?: string | undefined; value: {
value?: any; [x: string]: any;
color?: string | undefined; onChange?: ((value: any) => void) | undefined;
type?: string | undefined; };
}[]; } | undefined;
} style?: obj | undefined;
| undefined; slots?: {
props?: [key: string]: (data?: any) => any;
| { } | undefined;
[x: string]: any; vm?: any;
onChange?: ((value: any) => void) | undefined; } | undefined;
} component?: {
| { [x: string]: any;
value: { name?: string | undefined;
[x: string]: any; options?: {
onChange?: ((value: any) => void) | undefined; [x: string]: any;
}; label?: string | undefined;
} value?: any;
| undefined; color?: string | undefined;
style?: obj | undefined; type?: string | undefined;
slots?: }[] | {
| { value: {
[key: string]: (data?: any) => any; [x: string]: any;
} label?: string | undefined;
| undefined; value?: any;
vm?: any; color?: string | undefined;
} type?: string | undefined;
| undefined; }[];
component?: } | undefined;
| { props?: {
[x: string]: any; [x: string]: any;
name?: string | undefined; onChange?: ((value: any) => void) | undefined;
options?: } | {
| { value: {
[x: string]: any; [x: string]: any;
label?: string | undefined; onChange?: ((value: any) => void) | undefined;
value?: any; };
color?: string | undefined; } | undefined;
type?: string | undefined; style?: obj | undefined;
}[] slots?: {
| { [key: string]: (data?: any) => any;
value: { } | undefined;
[x: string]: any; vm?: any;
label?: string | undefined; } | undefined;
value?: any; append?: {
color?: string | undefined; [x: string]: any;
type?: string | undefined; name?: string | undefined;
}[]; options?: {
} [x: string]: any;
| undefined; label?: string | undefined;
props?: value?: any;
| { color?: string | undefined;
[x: string]: any; type?: string | undefined;
onChange?: ((value: any) => void) | undefined; }[] | {
} value: {
| { [x: string]: any;
value: { label?: string | undefined;
[x: string]: any; value?: any;
onChange?: ((value: any) => void) | undefined; color?: string | undefined;
}; type?: string | undefined;
} }[];
| undefined; } | undefined;
style?: obj | undefined; props?: {
slots?: [x: string]: any;
| { onChange?: ((value: any) => void) | undefined;
[key: string]: (data?: any) => any; } | {
} value: {
| undefined; [x: string]: any;
vm?: any; onChange?: ((value: any) => void) | undefined;
} };
| undefined; } | undefined;
append?: style?: obj | undefined;
| { slots?: {
[x: string]: any; [key: string]: (data?: any) => any;
name?: string | undefined; } | undefined;
options?: vm?: any;
| { } | undefined;
[x: string]: any; rules?: {
label?: string | undefined; [x: string]: any;
value?: any; type?: "string" | "number" | "boolean" | "object" | "method" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "url" | "hex" | "email" | "any" | undefined;
color?: string | undefined; required?: boolean | undefined;
type?: string | undefined; message?: string | undefined;
}[] min?: number | undefined;
| { max?: number | undefined;
value: { trigger?: any;
[x: string]: any; validator?: ((rule: any, value: any, callback: (error?: Error | undefined) => void) => void) | undefined;
label?: string | undefined; } | {
value?: any; [x: string]: any;
color?: string | undefined; type?: "string" | "number" | "boolean" | "object" | "method" | "regexp" | "integer" | "float" | "array" | "enum" | "date" | "url" | "hex" | "email" | "any" | undefined;
type?: string | undefined; required?: boolean | undefined;
}[]; message?: string | undefined;
} min?: number | undefined;
| undefined; max?: number | undefined;
props?: trigger?: any;
| { validator?: ((rule: any, value: any, callback: (error?: Error | undefined) => void) => void) | undefined;
[x: string]: any; }[] | undefined;
onChange?: ((value: any) => void) | undefined; required?: boolean | undefined;
} children?: any[] | undefined;
| { }[];
value: { form: obj;
[x: string]: any; isReset?: boolean | undefined;
onChange?: ((value: any) => void) | undefined; on?: {
}; open?: ((data: any) => void) | undefined;
} close?: ((action: ClForm.CloseAction, done: fn) => void) | undefined;
| undefined; submit?: ((data: any, event: {
style?: obj | undefined; close: fn;
slots?: done: fn;
| { }) => void) | undefined;
[key: string]: (data?: any) => any; change?: ((data: any, prop: string) => void) | undefined;
} } | undefined;
| undefined; op: {
vm?: any; hidden?: boolean | undefined;
} saveButtonText?: string | undefined;
| undefined; closeButtonText?: string | undefined;
rules?: justify?: "center" | "flex-start" | "flex-end" | undefined;
| { buttons?: (ClForm.CloseAction | `slot-${string}` | {
[x: string]: any; [x: string]: any;
type?: label: string;
| "string" type?: string | undefined;
| "number" hidden?: boolean | undefined;
| "boolean" onClick: (options: {
| "object" scope: obj;
| "method" }) => void;
| "regexp" })[] | undefined;
| "integer" };
| "float" dialog: {
| "array" [x: string]: any;
| "enum" title?: any;
| "date" height?: string | undefined;
| "url" width?: string | undefined;
| "hex" hideHeader?: boolean | undefined;
| "email" controls?: ("close" | AnyString | "fullscreen")[] | undefined;
| "any" };
| undefined; };
required?: boolean | undefined; form: obj;
message?: string | undefined; visible: import("vue").Ref<boolean, boolean>;
min?: number | undefined; saving: import("vue").Ref<boolean, boolean>;
max?: number | undefined; loading: import("vue").Ref<boolean, boolean>;
trigger?: any; disabled: import("vue").Ref<boolean, boolean>;
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;
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;
required?: boolean | undefined;
children?: any[] | undefined;
}[];
form: obj;
isReset?: boolean | undefined;
on?:
| {
open?: ((data: any) => void) | undefined;
close?: ((action: ClForm.CloseAction, done: fn) => void) | undefined;
submit?:
| ((
data: any,
event: {
close: fn;
done: fn;
}
) => void)
| undefined;
change?: ((data: any, prop: string) => void) | undefined;
}
| undefined;
op: {
hidden?: boolean | undefined;
saveButtonText?: string | undefined;
closeButtonText?: string | undefined;
justify?: "center" | "flex-start" | "flex-end" | undefined;
buttons?:
| (
| ClForm.CloseAction
| `slot-${string}`
| {
[x: string]: any;
label: string;
type?: string | undefined;
hidden?: boolean | undefined;
onClick: (options: { scope: obj }) => void;
}
)[]
| undefined;
};
dialog: {
[x: string]: any;
title?: any;
height?: string | undefined;
width?: string | undefined;
hideHeader?: boolean | undefined;
controls?: ("close" | AnyString | "fullscreen")[] | undefined;
};
};
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 "./action";
export * from "./api"; export * from "./api";

View File

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

View File

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

View File

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

View File

@ -1,5 +1,5 @@
import { App } from "vue"; import { App } from "vue";
export declare const components: { export declare const components: {
[key: string]: any; [key: string]: any;
}; };
export declare function useComponent(app: App): void; export declare function useComponent(app: App): void;

View File

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

View File

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

View File

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

View File

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

View File

@ -1,83 +1,55 @@
import { type PropType } from "vue"; import { type PropType } from "vue";
declare const _default: import("vue").DefineComponent< declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
import("vue").ExtractPropTypes<{ modelValue: StringConstructor;
modelValue: StringConstructor; field: {
field: { type: StringConstructor;
type: StringConstructor; default: string;
default: string; };
}; fieldList: {
fieldList: { type: PropType<{
type: PropType< label: string;
{ value: string;
label: string; }[]>;
value: string; default: () => never[];
}[] };
>; onSearch: FunctionConstructor;
default: () => never[]; placeholder: StringConstructor;
}; width: {
onSearch: FunctionConstructor; type: (NumberConstructor | StringConstructor)[];
placeholder: StringConstructor; default: number;
width: { };
type: (NumberConstructor | StringConstructor)[]; refreshOnInput: BooleanConstructor;
default: number; }>, () => 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;
refreshOnInput: BooleanConstructor; field: {
}>, type: StringConstructor;
() => any, default: string;
{}, };
{}, fieldList: {
{}, type: PropType<{
import("vue").ComponentOptionsMixin, label: string;
import("vue").ComponentOptionsMixin, value: string;
("change" | "update:modelValue" | "field-change")[], }[]>;
"change" | "update:modelValue" | "field-change", default: () => never[];
import("vue").PublicProps, };
Readonly< onSearch: FunctionConstructor;
import("vue").ExtractPropTypes<{ placeholder: StringConstructor;
modelValue: StringConstructor; width: {
field: { type: (NumberConstructor | StringConstructor)[];
type: StringConstructor; default: number;
default: string; };
}; refreshOnInput: BooleanConstructor;
fieldList: { }>> & Readonly<{
type: PropType< onChange?: ((...args: any[]) => any) | undefined;
{ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
label: string; "onField-change"?: ((...args: any[]) => any) | undefined;
value: string; }>, {
}[] width: string | number;
>; refreshOnInput: boolean;
default: () => never[]; field: string;
}; fieldList: {
onSearch: FunctionConstructor; label: string;
placeholder: StringConstructor; value: string;
width: { }[];
type: (NumberConstructor | StringConstructor)[]; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
default: number;
};
refreshOnInput: BooleanConstructor;
}>
> &
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;
fieldList: {
label: string;
value: string;
}[];
},
{},
{},
{},
string,
import("vue").ComponentProvideOptions,
true,
{},
any
>;
export default _default; export default _default;

View File

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

View File

@ -1,11 +1,8 @@
/// <reference types="../index" /> /// <reference types="../index" />
export declare function useData({ export declare function useData({ config, Table }: {
config, config: ClTable.Config;
Table Table: Vue.Ref<any>;
}: {
config: ClTable.Config;
Table: Vue.Ref<any>;
}): { }): {
data: import("vue").Ref<obj[], obj[]>; data: import("vue").Ref<obj[], obj[]>;
setData: (list: obj[]) => void; setData: (list: obj[]) => void;
}; };

View File

@ -1,11 +1,8 @@
/// <reference types="../index" /> /// <reference types="../index" />
export declare function useHeight({ export declare function useHeight({ config, Table }: {
config, Table: Vue.Ref<any>;
Table config: ClTable.Config;
}: {
Table: Vue.Ref<any>;
config: ClTable.Config;
}): { }): {
maxHeight: import("vue").Ref<number, number>; maxHeight: import("vue").Ref<number, number>;
calcMaxHeight: import("lodash-es").DebouncedFunc<() => Promise<void>>; calcMaxHeight: import("lodash-es").DebouncedFunc<() => Promise<void>>;
}; };

View File

@ -1,204 +1,169 @@
/// <reference types="../index" /> /// <reference types="../index" />
export declare function useTable(props: any): { export declare function useTable(props: any): {
Table: import("vue").Ref<any, any>; Table: import("vue").Ref<any, any>;
config: { config: {
columns: { columns: {
[x: string]: any; [x: string]: any;
type: ClTable.ColumnType; type: ClTable.ColumnType;
hidden: hidden: boolean | {
| boolean value: boolean;
| { };
value: boolean; component: {
}; [x: string]: any;
component: { name?: string | undefined;
[x: string]: any; options?: {
name?: string | undefined; [x: string]: any;
options?: label?: string | undefined;
| { value?: any;
[x: string]: any; color?: string | undefined;
label?: string | undefined; type?: string | undefined;
value?: any; }[] | {
color?: string | undefined; value: {
type?: string | undefined; [x: string]: any;
}[] label?: string | undefined;
| { value?: any;
value: { color?: string | undefined;
[x: string]: any; type?: string | undefined;
label?: string | undefined; }[];
value?: any; } | undefined;
color?: string | undefined; props?: {
type?: string | undefined; [x: string]: any;
}[]; onChange?: ((value: any) => void) | undefined;
} } | {
| undefined; value: {
props?: [x: string]: any;
| { onChange?: ((value: any) => void) | undefined;
[x: string]: any; };
onChange?: ((value: any) => void) | undefined; } | undefined;
} style?: obj | undefined;
| { slots?: {
value: { [key: string]: (data?: any) => any;
[x: string]: any; } | undefined;
onChange?: ((value: any) => void) | undefined; vm?: any;
}; };
} search: {
| undefined; isInput: boolean;
style?: obj | undefined; value: any;
slots?: refreshOnChange: boolean;
| { component: {
[key: string]: (data?: any) => any; [x: string]: any;
} name?: string | undefined;
| undefined; options?: {
vm?: any; [x: string]: any;
}; label?: string | undefined;
search: { value?: any;
isInput: boolean; color?: string | undefined;
value: any; type?: string | undefined;
refreshOnChange: { }[] | {
valueOf: () => boolean; value: {
}; [x: string]: any;
component: { label?: string | undefined;
[x: string]: any; value?: any;
name?: string | undefined; color?: string | undefined;
options?: type?: string | undefined;
| { }[];
[x: string]: any; } | undefined;
label?: string | undefined; props?: {
value?: any; [x: string]: any;
color?: string | undefined; onChange?: ((value: any) => void) | undefined;
type?: string | undefined; } | {
}[] value: {
| { [x: string]: any;
value: { onChange?: ((value: any) => void) | undefined;
[x: string]: any; };
label?: string | undefined; } | undefined;
value?: any; style?: obj | undefined;
color?: string | undefined; slots?: {
type?: string | undefined; [key: string]: (data?: any) => any;
}[]; } | undefined;
} vm?: any;
| undefined; };
props?: };
| { dict: {
[x: string]: any; [x: string]: any;
onChange?: ((value: any) => void) | undefined; label?: string | undefined;
} value?: any;
| { color?: string | undefined;
value: { type?: string | undefined;
[x: string]: any; }[] | {
onChange?: ((value: any) => void) | undefined; value: {
}; [x: string]: any;
} label?: string | undefined;
| undefined; value?: any;
style?: obj | undefined; color?: string | undefined;
slots?: type?: string | undefined;
| { }[];
[key: string]: (data?: any) => any; };
} dictFormatter: (values: DictOptions) => string;
| undefined; dictColor: boolean;
vm?: any; dictSeparator: string;
}; dictAllLevels: boolean;
}; buttons: ((options: {
dict: scope: any;
| { }) => ClTable.OpButton) | ("info" | "delete" | "edit" | AnyString | `slot-${string}` | {
[x: string]: any; [x: string]: any;
label?: string | undefined; label: string;
value?: any; type?: string | undefined;
color?: string | undefined; hidden?: boolean | undefined;
type?: string | undefined; onClick: (options: {
}[] scope: obj;
| { }) => void;
value: { })[];
[x: string]: any; align: ElementPlus.Align;
label?: string | undefined; label: any;
value?: any; className: string;
color?: string | undefined; prop: string & {};
type?: string | undefined; orderNum: number;
}[]; width: number;
}; minWidth: string | number;
dictFormatter: (values: DictOptions) => string; renderHeader: (options: {
dictColor: boolean; column: any;
dictSeparator: string; $index: number;
dictAllLevels: boolean; }) => any;
buttons: sortable: boolean | "asc" | "desc" | "custom" | "descending" | "ascending";
| ((options: { scope: any }) => ClTable.OpButton) sortMethod: fn;
| ( sortBy: string | any[] | ((row: any, index: number) => any);
| "info" resizable: boolean;
| "delete" columnKey: string;
| "edit" headerAlign: ElementPlus.Align;
| AnyString showOverflowTooltip: boolean;
| `slot-${string}` fixed: string | boolean;
| { formatter: (row: any, column: any, value: any, index: number) => any;
[x: string]: any; selectable: (row: any, index: number) => boolean;
label: string; reserveSelection: boolean;
type?: string | undefined; filterMethod: fn;
hidden?: boolean | undefined; filteredValue: unknown[];
onClick: (options: { scope: obj }) => void; filters: unknown[];
} filterPlacement: string;
)[]; filterMultiple: boolean;
align: ElementPlus.Align; index: number | ((index: number) => number);
label: any; sortOrders: unknown[];
className: string; children: any[];
prop: string & {}; }[];
orderNum: number; autoHeight: boolean;
width: number; height: any;
minWidth: string | number; contextMenu: ("info" | "update" | "delete" | "edit" | "refresh" | {
renderHeader: (options: { column: any; $index: number }) => any; [x: string]: any;
sortable: boolean | "asc" | "desc" | "custom" | "descending" | "ascending"; label: string;
sortMethod: fn; prefixIcon?: any;
sortBy: string | any[] | ((row: any, index: number) => any); suffixIcon?: any;
resizable: boolean; ellipsis?: boolean | undefined;
columnKey: string; disabled?: boolean | undefined;
headerAlign: ElementPlus.Align; hidden?: boolean | undefined;
showOverflowTooltip: boolean; children?: any[] | undefined;
fixed: string | boolean; showChildren?: boolean | undefined;
formatter: (row: any, column: any, value: any, index: number) => any; callback?: ((done: fn) => void) | undefined;
selectable: (row: any, index: number) => boolean; } | ((row: obj, column: obj, event: PointerEvent) => ClContextMenu.Item) | "check" | "order-desc" | "order-asc")[];
reserveSelection: boolean; defaultSort: {
filterMethod: fn; prop: string;
filteredValue: unknown[]; order: "descending" | "ascending";
filters: unknown[]; };
filterPlacement: string; sortRefresh: boolean;
filterMultiple: boolean; emptyText: string;
index: number | ((index: number) => number); rowKey: string;
sortOrders: unknown[]; plugins?: ClTable.Plugin[] | undefined;
children: any[]; onRowContextmenu?: ((row: any, column: any, event: any) => void) | undefined;
}[]; };
autoHeight: boolean;
height: any;
contextMenu: (
| "info"
| "update"
| "delete"
| "edit"
| "refresh"
| {
[x: string]: any;
label: string;
prefixIcon?: any;
suffixIcon?: any;
ellipsis?: boolean | undefined;
disabled?: boolean | undefined;
hidden?: boolean | undefined;
children?: any[] | undefined;
showChildren?: boolean | undefined;
callback?: ((done: fn) => void) | undefined;
}
| ((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;
plugins?: ClTable.Plugin[] | undefined;
onRowContextmenu?: ((row: any, column: any, event: any) => void) | undefined;
};
}; };
export * from "./data"; export * from "./data";
export * from "./height"; export * from "./height";

View File

@ -1,8 +1,10 @@
/// <reference types="../index" /> /// <reference types="../index" />
export declare function useOp({ config }: { config: ClTable.Config }): { export declare function useOp({ config }: {
visible: import("vue").Ref<boolean, boolean>; config: ClTable.Config;
reBuild: (cb?: fn) => Promise<void>; }): {
showColumn: (prop: string | string[], status?: boolean) => void; visible: import("vue").Ref<boolean, boolean>;
hideColumn: (prop: string | string[]) => void; reBuild: (cb?: fn) => Promise<void>;
setColumns: (list: ClTable.Column[]) => void; showColumn: (prop: string | string[], status?: boolean) => void;
hideColumn: (prop: string | string[]) => void;
setColumns: (list: ClTable.Column[]) => void;
}; };

View File

@ -1,4 +1,4 @@
/// <reference types="../index" /> /// <reference types="../index" />
export declare function usePlugins(): { export declare function usePlugins(): {
create: (plugins?: ClTable.Plugin[]) => void; create: (plugins?: ClTable.Plugin[]) => void;
}; };

View File

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

View File

@ -1,18 +1,14 @@
/// <reference types="../index" /> /// <reference types="../index" />
export declare function useRow({ export declare function useRow({ Table, config, Sort }: {
Table, Table: Vue.Ref<any>;
config, config: ClTable.Config;
Sort Sort: {
}: { defaultSort: {
Table: Vue.Ref<any>; prop?: string;
config: ClTable.Config; order?: string;
Sort: { };
defaultSort: { changeSort(prop: string, order: string): void;
prop?: string; };
order?: string;
};
changeSort(prop: string, order: string): void;
};
}): { }): {
onRowContextMenu: (row: obj, column: obj, event: PointerEvent) => void; onRowContextMenu: (row: obj, column: obj, event: PointerEvent) => void;
}; };

View File

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

View File

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

View File

@ -1,91 +1,61 @@
declare const _default: import("vue").DefineComponent< declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
import("vue").ExtractPropTypes<{ columns: {
columns: { type: ArrayConstructor;
type: ArrayConstructor; default: () => never[];
default: () => never[]; };
}; autoHeight: {
autoHeight: { type: BooleanConstructor;
type: BooleanConstructor; default: null;
default: null; };
}; height: null;
height: null; contextMenu: {
contextMenu: { type: (BooleanConstructor | ArrayConstructor)[];
type: (BooleanConstructor | ArrayConstructor)[]; default: null;
default: null; };
}; defaultSort: ObjectConstructor;
defaultSort: ObjectConstructor; sortRefresh: {
sortRefresh: { type: BooleanConstructor;
type: BooleanConstructor; default: boolean;
default: boolean; };
}; emptyText: StringConstructor;
emptyText: StringConstructor; rowKey: {
rowKey: { type: StringConstructor;
type: StringConstructor; default: string;
default: string; };
}; }>, () => 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<{
| false columns: {
| import("vue").VNode< type: ArrayConstructor;
import("vue").RendererNode, default: () => never[];
import("vue").RendererElement, };
{ autoHeight: {
[key: string]: any; type: BooleanConstructor;
} default: null;
>, };
{}, height: null;
{}, contextMenu: {
{}, type: (BooleanConstructor | ArrayConstructor)[];
import("vue").ComponentOptionsMixin, default: null;
import("vue").ComponentOptionsMixin, };
("selection-change" | "sort-change")[], defaultSort: ObjectConstructor;
"selection-change" | "sort-change", sortRefresh: {
import("vue").PublicProps, type: BooleanConstructor;
Readonly< default: boolean;
import("vue").ExtractPropTypes<{ };
columns: { emptyText: StringConstructor;
type: ArrayConstructor; rowKey: {
default: () => never[]; type: StringConstructor;
}; default: string;
autoHeight: { };
type: BooleanConstructor; }>> & Readonly<{
default: null; "onSelection-change"?: ((...args: any[]) => any) | undefined;
}; "onSort-change"?: ((...args: any[]) => any) | undefined;
height: null; }>, {
contextMenu: { columns: unknown[];
type: (BooleanConstructor | ArrayConstructor)[]; autoHeight: boolean;
default: null; contextMenu: boolean | unknown[];
}; sortRefresh: boolean;
defaultSort: ObjectConstructor; rowKey: string;
sortRefresh: { }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
type: BooleanConstructor;
default: boolean;
};
emptyText: StringConstructor;
rowKey: {
type: StringConstructor;
default: string;
};
}>
> &
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
>;
export default _default; export default _default;

View File

@ -1,62 +1,38 @@
declare const _default: import("vue").DefineComponent< declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
import("vue").ExtractPropTypes<{ items: {
items: { type: ArrayConstructor;
type: ArrayConstructor; default: () => never[];
default: () => never[]; };
}; props: ObjectConstructor;
props: ObjectConstructor; sync: BooleanConstructor;
sync: BooleanConstructor; op: ObjectConstructor;
op: ObjectConstructor; dialog: ObjectConstructor;
dialog: ObjectConstructor; onOpen: FunctionConstructor;
onOpen: FunctionConstructor; onOpened: FunctionConstructor;
onOpened: FunctionConstructor; onClose: FunctionConstructor;
onClose: FunctionConstructor; onClosed: FunctionConstructor;
onClosed: FunctionConstructor; onInfo: FunctionConstructor;
onInfo: FunctionConstructor; onSubmit: FunctionConstructor;
onSubmit: FunctionConstructor; }>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("opened" | "closed")[], "opened" | "closed", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
}>, items: {
() => any, type: ArrayConstructor;
{}, default: () => never[];
{}, };
{}, props: ObjectConstructor;
import("vue").ComponentOptionsMixin, sync: BooleanConstructor;
import("vue").ComponentOptionsMixin, op: ObjectConstructor;
("opened" | "closed")[], dialog: ObjectConstructor;
"opened" | "closed", onOpen: FunctionConstructor;
import("vue").PublicProps, onOpened: FunctionConstructor;
Readonly< onClose: FunctionConstructor;
import("vue").ExtractPropTypes<{ onClosed: FunctionConstructor;
items: { onInfo: FunctionConstructor;
type: ArrayConstructor; onSubmit: FunctionConstructor;
default: () => never[]; }>> & Readonly<{
}; onOpened?: ((...args: any[]) => any) | undefined;
props: ObjectConstructor; onClosed?: ((...args: any[]) => any) | undefined;
sync: BooleanConstructor; }>, {
op: ObjectConstructor; sync: boolean;
dialog: ObjectConstructor; items: unknown[];
onOpen: FunctionConstructor; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
onOpened: FunctionConstructor;
onClose: FunctionConstructor;
onClosed: FunctionConstructor;
onInfo: FunctionConstructor;
onSubmit: FunctionConstructor;
}>
> &
Readonly<{
onOpened?: ((...args: any[]) => any) | undefined;
onClosed?: ((...args: any[]) => any) | undefined;
}>,
{
sync: boolean;
items: unknown[];
},
{},
{},
{},
string,
import("vue").ComponentProvideOptions,
true,
{},
any
>;
export default _default; export default _default;

View File

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

View File

@ -1,16 +1,16 @@
/// <reference types="../index" /> /// <reference types="../index" />
import { Mitt } from "../utils/mitt"; import { Mitt } from "../utils/mitt";
export declare function useCore(): { export declare function useCore(): {
crud: ClCrud.Ref; crud: ClCrud.Ref;
mitt: Mitt; mitt: Mitt;
}; };
export declare function useConfig(): Config; export declare function useConfig(): Config;
export declare function useBrowser(): Browser; export declare function useBrowser(): Browser;
export declare function useRefs(): { export declare function useRefs(): {
refs: { refs: {
[key: string]: obj; [key: string]: obj;
}; };
setRefs: (name: string) => (el: any) => void; setRefs: (name: string) => (el: any) => void;
}; };
export declare function useProxy(ctx: any): any; export declare function useProxy(ctx: any): any;
export declare function useElApi(keys: string[], el: any): obj; export declare function useElApi(keys: string[], el: any): obj;

View File

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

View File

@ -1,32 +1,32 @@
declare const _default: { declare const _default: {
op: string; op: string;
add: string; add: string;
delete: string; delete: string;
multiDelete: string; multiDelete: string;
update: string; update: string;
refresh: string; refresh: string;
info: string; info: string;
search: string; search: string;
reset: string; reset: string;
clear: string; clear: string;
save: string; save: string;
close: string; close: string;
confirm: string; confirm: string;
advSearch: string; advSearch: string;
searchKey: string; searchKey: string;
placeholder: string; placeholder: string;
placeholderSelect: string; placeholderSelect: string;
tips: string; tips: string;
saveSuccess: string; saveSuccess: string;
deleteSuccess: string; deleteSuccess: string;
deleteConfirm: string; deleteConfirm: string;
empty: string; empty: string;
desc: string; desc: string;
asc: string; asc: string;
select: string; select: string;
deselect: string; deselect: string;
seeMore: string; seeMore: string;
hideContent: string; hideContent: string;
nonEmpty: string; nonEmpty: string;
}; };
export default _default; export default _default;

View File

@ -1,126 +1,126 @@
export declare const locale: { export declare const locale: {
en: { en: {
op: string; op: string;
add: string; add: string;
delete: string; delete: string;
multiDelete: string; multiDelete: string;
update: string; update: string;
refresh: string; refresh: string;
info: string; info: string;
search: string; search: string;
reset: string; reset: string;
clear: string; clear: string;
save: string; save: string;
close: string; close: string;
confirm: string; confirm: string;
advSearch: string; advSearch: string;
searchKey: string; searchKey: string;
placeholder: string; placeholder: string;
placeholderSelect: string; placeholderSelect: string;
tips: string; tips: string;
saveSuccess: string; saveSuccess: string;
deleteSuccess: string; deleteSuccess: string;
deleteConfirm: string; deleteConfirm: string;
empty: string; empty: string;
desc: string; desc: string;
asc: string; asc: string;
select: string; select: string;
deselect: string; deselect: string;
seeMore: string; seeMore: string;
hideContent: string; hideContent: string;
nonEmpty: string; nonEmpty: string;
}; };
ja: { ja: {
op: string; op: string;
add: string; add: string;
delete: string; delete: string;
multiDelete: string; multiDelete: string;
update: string; update: string;
refresh: string; refresh: string;
info: string; info: string;
search: string; search: string;
reset: string; reset: string;
clear: string; clear: string;
save: string; save: string;
close: string; close: string;
confirm: string; confirm: string;
advSearch: string; advSearch: string;
searchKey: string; searchKey: string;
placeholder: string; placeholder: string;
placeholderSelect: string; placeholderSelect: string;
tips: string; tips: string;
saveSuccess: string; saveSuccess: string;
deleteSuccess: string; deleteSuccess: string;
deleteConfirm: string; deleteConfirm: string;
empty: string; empty: string;
desc: string; desc: string;
asc: string; asc: string;
select: string; select: string;
deselect: string; deselect: string;
seeMore: string; seeMore: string;
hideContent: string; hideContent: string;
nonEmpty: string; nonEmpty: string;
}; };
zhCn: { zhCn: {
op: string; op: string;
add: string; add: string;
delete: string; delete: string;
multiDelete: string; multiDelete: string;
update: string; update: string;
refresh: string; refresh: string;
info: string; info: string;
search: string; search: string;
reset: string; reset: string;
clear: string; clear: string;
save: string; save: string;
close: string; close: string;
confirm: string; confirm: string;
advSearch: string; advSearch: string;
searchKey: string; searchKey: string;
placeholder: string; placeholder: string;
placeholderSelect: string; placeholderSelect: string;
tips: string; tips: string;
saveSuccess: string; saveSuccess: string;
deleteSuccess: string; deleteSuccess: string;
deleteConfirm: string; deleteConfirm: string;
empty: string; empty: string;
desc: string; desc: string;
asc: string; asc: string;
select: string; select: string;
deselect: string; deselect: string;
seeMore: string; seeMore: string;
hideContent: string; hideContent: string;
nonEmpty: string; nonEmpty: string;
}; };
zhTw: { zhTw: {
op: string; op: string;
add: string; add: string;
delete: string; delete: string;
multiDelete: string; multiDelete: string;
update: string; update: string;
refresh: string; refresh: string;
info: string; info: string;
search: string; search: string;
reset: string; reset: string;
clear: string; clear: string;
save: string; save: string;
close: string; close: string;
confirm: string; confirm: string;
advSearch: string; advSearch: string;
searchKey: string; searchKey: string;
placeholder: string; placeholder: string;
placeholderSelect: string; placeholderSelect: string;
tips: string; tips: string;
saveSuccess: string; saveSuccess: string;
deleteSuccess: string; deleteSuccess: string;
deleteConfirm: string; deleteConfirm: string;
empty: string; empty: string;
desc: string; desc: string;
asc: string; asc: string;
select: string; select: string;
deselect: string; deselect: string;
seeMore: string; seeMore: string;
hideContent: string; hideContent: string;
nonEmpty: string; nonEmpty: string;
}; };
}; };

View File

@ -1,32 +1,32 @@
declare const _default: { declare const _default: {
op: string; op: string;
add: string; add: string;
delete: string; delete: string;
multiDelete: string; multiDelete: string;
update: string; update: string;
refresh: string; refresh: string;
info: string; info: string;
search: string; search: string;
reset: string; reset: string;
clear: string; clear: string;
save: string; save: string;
close: string; close: string;
confirm: string; confirm: string;
advSearch: string; advSearch: string;
searchKey: string; searchKey: string;
placeholder: string; placeholder: string;
placeholderSelect: string; placeholderSelect: string;
tips: string; tips: string;
saveSuccess: string; saveSuccess: string;
deleteSuccess: string; deleteSuccess: string;
deleteConfirm: string; deleteConfirm: string;
empty: string; empty: string;
desc: string; desc: string;
asc: string; asc: string;
select: string; select: string;
deselect: string; deselect: string;
seeMore: string; seeMore: string;
hideContent: string; hideContent: string;
nonEmpty: string; nonEmpty: string;
}; };
export default _default; export default _default;

View File

@ -1,32 +1,32 @@
declare const _default: { declare const _default: {
op: string; op: string;
add: string; add: string;
delete: string; delete: string;
multiDelete: string; multiDelete: string;
update: string; update: string;
refresh: string; refresh: string;
info: string; info: string;
search: string; search: string;
reset: string; reset: string;
clear: string; clear: string;
save: string; save: string;
close: string; close: string;
confirm: string; confirm: string;
advSearch: string; advSearch: string;
searchKey: string; searchKey: string;
placeholder: string; placeholder: string;
placeholderSelect: string; placeholderSelect: string;
tips: string; tips: string;
saveSuccess: string; saveSuccess: string;
deleteSuccess: string; deleteSuccess: string;
deleteConfirm: string; deleteConfirm: string;
empty: string; empty: string;
desc: string; desc: string;
asc: string; asc: string;
select: string; select: string;
deselect: string; deselect: string;
seeMore: string; seeMore: string;
hideContent: string; hideContent: string;
nonEmpty: string; nonEmpty: string;
}; };
export default _default; export default _default;

View File

@ -1,32 +1,32 @@
declare const _default: { declare const _default: {
op: string; op: string;
add: string; add: string;
delete: string; delete: string;
multiDelete: string; multiDelete: string;
update: string; update: string;
refresh: string; refresh: string;
info: string; info: string;
search: string; search: string;
reset: string; reset: string;
clear: string; clear: string;
save: string; save: string;
close: string; close: string;
confirm: string; confirm: string;
advSearch: string; advSearch: string;
searchKey: string; searchKey: string;
placeholder: string; placeholder: string;
placeholderSelect: string; placeholderSelect: string;
tips: string; tips: string;
saveSuccess: string; saveSuccess: string;
deleteSuccess: string; deleteSuccess: string;
deleteConfirm: string; deleteConfirm: string;
empty: string; empty: string;
desc: string; desc: string;
asc: string; asc: string;
select: string; select: string;
deselect: string; deselect: string;
seeMore: string; seeMore: string;
hideContent: string; hideContent: string;
nonEmpty: string; nonEmpty: string;
}; };
export default _default; export default _default;

View File

@ -1,32 +1,34 @@
declare class TestService { declare class TestService {
page(params: any): Promise<unknown>; page(params: any): Promise<unknown>;
update(params: { id: any; [key: string]: any }): Promise<void>; update(params: {
add(params: any): Promise<string>; id: any;
info(params: { id: any }): Promise< [key: string]: any;
| { }): Promise<void>;
id: number; add(params: any): Promise<string>;
name: string; info(params: {
createTime: string; id: any;
wages: number; }): Promise<{
status: number; id: number;
account: string; name: string;
occupation: number; createTime: string;
phone: number; wages: number;
} status: number;
| undefined account: string;
>; occupation: number;
delete(params: { ids: any[] }): Promise<void>; phone: number;
list(): Promise< } | undefined>;
{ delete(params: {
id: number; ids: any[];
name: string; }): Promise<void>;
createTime: string; list(): Promise<{
wages: number; id: number;
status: number; name: string;
account: string; createTime: string;
occupation: number; wages: number;
phone: number; status: number;
}[] account: string;
>; occupation: number;
phone: number;
}[]>;
} }
export { TestService }; export { TestService };

View File

@ -1,10 +1,10 @@
/// <reference types="../index" /> /// <reference types="../index" />
export declare const format: { export declare const format: {
[key: string]: ClForm.HookFn; [key: string]: ClForm.HookFn;
}; };
declare const formHook: { declare const formHook: {
bind(data: any): void; bind(data: any): void;
submit(data: any): void; submit(data: any): void;
}; };
export declare function registerFormHook(name: string, fn: ClForm.HookFn): void; export declare function registerFormHook(name: string, fn: ClForm.HookFn): void;
export default formHook; export default formHook;

View File

@ -1,7 +1,7 @@
import { App } from "vue"; import { App } from "vue";
declare const _default: { declare const _default: {
readonly vue: App<any>; readonly vue: App<any>;
get(key: string): any; get(key: string): any;
set(key: string, value: any): void; set(key: string, value: any): void;
}; };
export default _default; export default _default;

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 addClass(el: Element, name: string): void;
export declare function removeClass(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 getValue(data: any, params?: any): any;
export declare function deepFind( export declare function deepFind(value: any, list: any[], options?: {
value: any, allLevels: boolean;
list: any[], }): any;
options?: {
allLevels: boolean;
}
): any;
export declare function uuid(separator?: string): string; export declare function uuid(separator?: string): string;

View File

@ -1,10 +1,10 @@
declare const mitt: import("mitt").Emitter<Record<import("mitt").EventType, unknown>>; declare const mitt: import("mitt").Emitter<Record<import("mitt").EventType, unknown>>;
declare class Mitt { declare class Mitt {
id: number; id: number;
constructor(id?: number); constructor(id?: number);
send(type: "emit" | "off" | "on", name: string, ...args: any[]): void; send(type: "emit" | "off" | "on", name: string, ...args: any[]): void;
emit(name: string, ...args: any[]): void; emit(name: string, ...args: any[]): void;
off(name: string, handler: (...args: any[]) => void): void; off(name: string, handler: (...args: any[]) => void): void;
on(name: string, handler: (...args: any[]) => void): void; on(name: string, handler: (...args: any[]) => void): void;
} }
export { Mitt, mitt }; export { Mitt, mitt };

View File

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

View File

@ -1,13 +1,13 @@
import { VNode } from "vue"; import { VNode } from "vue";
interface Options { interface Options {
prop?: string; prop?: string;
scope?: any; scope?: any;
item?: any; item?: any;
slots?: any; slots?: any;
children?: any[] & any; children?: any[] & any;
custom?: (vnode: any) => any; custom?: (vnode: any) => any;
render?: "slot" | null; render?: "slot" | null;
[key: string]: any; [key: string]: any;
} }
export declare function parseNode(vnode: any, options: Options): VNode; export declare function parseNode(vnode: any, options: Options): VNode;
export declare function renderNode(vnode: any, options: Options): any; export declare function renderNode(vnode: any, options: Options): any;

File diff suppressed because it is too large Load Diff