mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2024-11-01 06:02:38 +08:00
优化
This commit is contained in:
parent
57cfaeaa5b
commit
8ed1e16cfd
@ -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",
|
||||
|
@ -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
@ -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}
|
||||
|
@ -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];
|
||||
|
@ -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;
|
||||
|
50
packages/crud/types/components/adv/btn.d.ts
vendored
50
packages/crud/types/components/adv/btn.d.ts
vendored
@ -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;
|
||||
|
127
packages/crud/types/components/adv/search.d.ts
vendored
127
packages/crud/types/components/adv/search.d.ts
vendored
@ -1,90 +1,43 @@
|
||||
/// <reference types="../index" />
|
||||
import { PropType } from "vue";
|
||||
declare const _default: import("vue").DefineComponent<
|
||||
import("vue").ExtractPropTypes<{
|
||||
items: {
|
||||
type: PropType<ClForm.Item<any>[]>;
|
||||
default: () => never[];
|
||||
};
|
||||
title: StringConstructor;
|
||||
size: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: string;
|
||||
};
|
||||
op: {
|
||||
type: ArrayConstructor;
|
||||
default: () => string[];
|
||||
};
|
||||
onSearch: FunctionConstructor;
|
||||
}>,
|
||||
() => any,
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
import("vue").ComponentOptionsMixin,
|
||||
import("vue").ComponentOptionsMixin,
|
||||
("clear" | "reset")[],
|
||||
"clear" | "reset",
|
||||
import("vue").PublicProps,
|
||||
Readonly<
|
||||
import("vue").ExtractPropTypes<{
|
||||
items: {
|
||||
type: PropType<ClForm.Item<any>[]>;
|
||||
default: () => never[];
|
||||
};
|
||||
title: StringConstructor;
|
||||
size: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: string;
|
||||
};
|
||||
op: {
|
||||
type: ArrayConstructor;
|
||||
default: () => string[];
|
||||
};
|
||||
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
|
||||
>;
|
||||
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
||||
items: {
|
||||
type: PropType<ClForm.Item<any>[]>;
|
||||
default: () => never[];
|
||||
};
|
||||
title: StringConstructor;
|
||||
size: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: string;
|
||||
};
|
||||
op: {
|
||||
type: ArrayConstructor;
|
||||
default: () => string[];
|
||||
};
|
||||
onSearch: FunctionConstructor;
|
||||
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "reset")[], "clear" | "reset", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
items: {
|
||||
type: PropType<ClForm.Item<any>[]>;
|
||||
default: () => never[];
|
||||
};
|
||||
title: StringConstructor;
|
||||
size: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: string;
|
||||
};
|
||||
op: {
|
||||
type: ArrayConstructor;
|
||||
default: () => string[];
|
||||
};
|
||||
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;
|
||||
|
@ -1,55 +1,31 @@
|
||||
/// <reference types="../index" />
|
||||
import { type PropType } from "vue";
|
||||
declare const ClContextMenu: import("vue").DefineComponent<
|
||||
import("vue").ExtractPropTypes<{
|
||||
show: BooleanConstructor;
|
||||
options: {
|
||||
type: PropType<ClContextMenu.Options>;
|
||||
default: () => {};
|
||||
};
|
||||
event: {
|
||||
type: ObjectConstructor;
|
||||
default: () => {};
|
||||
};
|
||||
}>,
|
||||
() => any,
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
import("vue").ComponentOptionsMixin,
|
||||
import("vue").ComponentOptionsMixin,
|
||||
{},
|
||||
string,
|
||||
import("vue").PublicProps,
|
||||
Readonly<
|
||||
import("vue").ExtractPropTypes<{
|
||||
show: BooleanConstructor;
|
||||
options: {
|
||||
type: PropType<ClContextMenu.Options>;
|
||||
default: () => {};
|
||||
};
|
||||
event: {
|
||||
type: ObjectConstructor;
|
||||
default: () => {};
|
||||
};
|
||||
}>
|
||||
> &
|
||||
Readonly<{}>,
|
||||
{
|
||||
options: ClContextMenu.Options;
|
||||
show: boolean;
|
||||
event: Record<string, any>;
|
||||
},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
string,
|
||||
import("vue").ComponentProvideOptions,
|
||||
true,
|
||||
{},
|
||||
any
|
||||
>;
|
||||
declare const ClContextMenu: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
||||
show: BooleanConstructor;
|
||||
options: {
|
||||
type: PropType<ClContextMenu.Options>;
|
||||
default: () => {};
|
||||
};
|
||||
event: {
|
||||
type: ObjectConstructor;
|
||||
default: () => {};
|
||||
};
|
||||
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
show: BooleanConstructor;
|
||||
options: {
|
||||
type: PropType<ClContextMenu.Options>;
|
||||
default: () => {};
|
||||
};
|
||||
event: {
|
||||
type: ObjectConstructor;
|
||||
default: () => {};
|
||||
};
|
||||
}>> & Readonly<{}>, {
|
||||
options: ClContextMenu.Options;
|
||||
show: boolean;
|
||||
event: Record<string, any>;
|
||||
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
||||
export declare const ContextMenu: {
|
||||
open(event: any, options: ClContextMenu.Options): ClContextMenu.Exposed;
|
||||
open(event: any, options: ClContextMenu.Options): ClContextMenu.Exposed;
|
||||
};
|
||||
export default ClContextMenu;
|
||||
|
32
packages/crud/types/components/crud/helper.d.ts
vendored
32
packages/crud/types/components/crud/helper.d.ts
vendored
@ -1,23 +1,23 @@
|
||||
/// <reference types="../index" />
|
||||
import { Mitt } from "../../utils/mitt";
|
||||
interface Options {
|
||||
mitt: Mitt;
|
||||
config: ClCrud.Config;
|
||||
crud: ClCrud.Ref;
|
||||
mitt: Mitt;
|
||||
config: ClCrud.Config;
|
||||
crud: ClCrud.Ref;
|
||||
}
|
||||
export declare function useHelper({ config, crud, mitt }: Options): {
|
||||
proxy: (name: string, data?: any[]) => void;
|
||||
set: (key: string, value: any) => false | undefined;
|
||||
on: (name: string, callback: fn) => void;
|
||||
rowInfo: (data: any) => void;
|
||||
rowAdd: () => void;
|
||||
rowEdit: (data: any) => void;
|
||||
rowAppend: (data: any) => void;
|
||||
rowDelete: (...selection: any[]) => void;
|
||||
rowClose: () => void;
|
||||
refresh: (params?: obj) => Promise<unknown>;
|
||||
getPermission: (key: "page" | "list" | "info" | "update" | "add" | "delete") => boolean;
|
||||
paramsReplace: (params: obj) => any;
|
||||
getParams: () => obj;
|
||||
proxy: (name: string, data?: any[]) => void;
|
||||
set: (key: string, value: any) => false | undefined;
|
||||
on: (name: string, callback: fn) => void;
|
||||
rowInfo: (data: any) => void;
|
||||
rowAdd: () => void;
|
||||
rowEdit: (data: any) => void;
|
||||
rowAppend: (data: any) => void;
|
||||
rowDelete: (...selection: any[]) => void;
|
||||
rowClose: () => void;
|
||||
refresh: (params?: obj) => Promise<unknown>;
|
||||
getPermission: (key: "page" | "list" | "info" | "update" | "add" | "delete") => boolean;
|
||||
paramsReplace: (params: obj) => any;
|
||||
getParams: () => obj;
|
||||
};
|
||||
export {};
|
||||
|
60
packages/crud/types/components/crud/index.d.ts
vendored
60
packages/crud/types/components/crud/index.d.ts
vendored
@ -1,43 +1,19 @@
|
||||
declare const _default: import("vue").DefineComponent<
|
||||
import("vue").ExtractPropTypes<{
|
||||
name: StringConstructor;
|
||||
border: BooleanConstructor;
|
||||
padding: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
}>,
|
||||
() => any,
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
import("vue").ComponentOptionsMixin,
|
||||
import("vue").ComponentOptionsMixin,
|
||||
{},
|
||||
string,
|
||||
import("vue").PublicProps,
|
||||
Readonly<
|
||||
import("vue").ExtractPropTypes<{
|
||||
name: StringConstructor;
|
||||
border: BooleanConstructor;
|
||||
padding: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
}>
|
||||
> &
|
||||
Readonly<{}>,
|
||||
{
|
||||
border: boolean;
|
||||
padding: string;
|
||||
},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
string,
|
||||
import("vue").ComponentProvideOptions,
|
||||
true,
|
||||
{},
|
||||
any
|
||||
>;
|
||||
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
||||
name: StringConstructor;
|
||||
border: BooleanConstructor;
|
||||
padding: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
name: StringConstructor;
|
||||
border: BooleanConstructor;
|
||||
padding: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
}>> & Readonly<{}>, {
|
||||
border: boolean;
|
||||
padding: string;
|
||||
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
|
261
packages/crud/types/components/dialog/index.d.ts
vendored
261
packages/crud/types/components/dialog/index.d.ts
vendored
@ -1,180 +1,83 @@
|
||||
declare const _default: import("vue").DefineComponent<
|
||||
import("vue").ExtractPropTypes<{
|
||||
modelValue: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
props: ObjectConstructor;
|
||||
title: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
height: StringConstructor;
|
||||
width: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
padding: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
keepAlive: BooleanConstructor;
|
||||
fullscreen: BooleanConstructor;
|
||||
controls: {
|
||||
type: ArrayConstructor;
|
||||
default: () => string[];
|
||||
};
|
||||
hideHeader: BooleanConstructor;
|
||||
beforeClose: FunctionConstructor;
|
||||
scrollbar: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
}>,
|
||||
() => import("vue").VNode<
|
||||
import("vue").RendererNode,
|
||||
import("vue").RendererElement,
|
||||
{
|
||||
[key: string]: any;
|
||||
}
|
||||
>,
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
import("vue").ComponentOptionsMixin,
|
||||
import("vue").ComponentOptionsMixin,
|
||||
("update:modelValue" | "fullscreen-change")[],
|
||||
"update:modelValue" | "fullscreen-change",
|
||||
import("vue").PublicProps,
|
||||
Readonly<
|
||||
import("vue").ExtractPropTypes<{
|
||||
modelValue: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
props: ObjectConstructor;
|
||||
title: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
height: StringConstructor;
|
||||
width: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
padding: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
keepAlive: BooleanConstructor;
|
||||
fullscreen: BooleanConstructor;
|
||||
controls: {
|
||||
type: ArrayConstructor;
|
||||
default: () => string[];
|
||||
};
|
||||
hideHeader: BooleanConstructor;
|
||||
beforeClose: FunctionConstructor;
|
||||
scrollbar: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
}>
|
||||
> &
|
||||
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
|
||||
>;
|
||||
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
||||
modelValue: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
props: ObjectConstructor;
|
||||
title: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
height: StringConstructor;
|
||||
width: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
padding: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
keepAlive: BooleanConstructor;
|
||||
fullscreen: BooleanConstructor;
|
||||
controls: {
|
||||
type: ArrayConstructor;
|
||||
default: () => string[];
|
||||
};
|
||||
hideHeader: BooleanConstructor;
|
||||
beforeClose: FunctionConstructor;
|
||||
scrollbar: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
||||
[key: string]: any;
|
||||
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "fullscreen-change")[], "update:modelValue" | "fullscreen-change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
modelValue: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
props: ObjectConstructor;
|
||||
title: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
height: StringConstructor;
|
||||
width: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
padding: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
keepAlive: BooleanConstructor;
|
||||
fullscreen: BooleanConstructor;
|
||||
controls: {
|
||||
type: ArrayConstructor;
|
||||
default: () => string[];
|
||||
};
|
||||
hideHeader: BooleanConstructor;
|
||||
beforeClose: FunctionConstructor;
|
||||
scrollbar: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
}>> & 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;
|
||||
|
@ -1,30 +1,6 @@
|
||||
declare const _default: import("vue").DefineComponent<
|
||||
import("vue").ExtractPropTypes<{
|
||||
title: StringConstructor;
|
||||
}>,
|
||||
() => any,
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
import("vue").ComponentOptionsMixin,
|
||||
import("vue").ComponentOptionsMixin,
|
||||
{},
|
||||
string,
|
||||
import("vue").PublicProps,
|
||||
Readonly<
|
||||
import("vue").ExtractPropTypes<{
|
||||
title: StringConstructor;
|
||||
}>
|
||||
> &
|
||||
Readonly<{}>,
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
string,
|
||||
import("vue").ComponentProvideOptions,
|
||||
true,
|
||||
{},
|
||||
any
|
||||
>;
|
||||
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
||||
title: StringConstructor;
|
||||
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
title: StringConstructor;
|
||||
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
|
34
packages/crud/types/components/filter/index.d.ts
vendored
34
packages/crud/types/components/filter/index.d.ts
vendored
@ -1,30 +1,6 @@
|
||||
declare const _default: import("vue").DefineComponent<
|
||||
import("vue").ExtractPropTypes<{
|
||||
label: StringConstructor;
|
||||
}>,
|
||||
() => any,
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
import("vue").ComponentOptionsMixin,
|
||||
import("vue").ComponentOptionsMixin,
|
||||
{},
|
||||
string,
|
||||
import("vue").PublicProps,
|
||||
Readonly<
|
||||
import("vue").ExtractPropTypes<{
|
||||
label: StringConstructor;
|
||||
}>
|
||||
> &
|
||||
Readonly<{}>,
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
string,
|
||||
import("vue").ComponentProvideOptions,
|
||||
true,
|
||||
{},
|
||||
any
|
||||
>;
|
||||
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
||||
label: StringConstructor;
|
||||
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
label: StringConstructor;
|
||||
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
|
23
packages/crud/types/components/flex1/index.d.ts
vendored
23
packages/crud/types/components/flex1/index.d.ts
vendored
@ -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;
|
||||
|
124
packages/crud/types/components/form-card/index.d.ts
vendored
124
packages/crud/types/components/form-card/index.d.ts
vendored
@ -1,98 +1,28 @@
|
||||
declare const _default: import("vue").DefineComponent<
|
||||
import("vue").ExtractPropTypes<{
|
||||
label: StringConstructor;
|
||||
expand: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
isExpand: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
}>,
|
||||
() => any,
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
import("vue").ComponentOptionsMixin,
|
||||
import("vue").ComponentOptionsMixin,
|
||||
{},
|
||||
string,
|
||||
import("vue").PublicProps,
|
||||
Readonly<
|
||||
import("vue").ExtractPropTypes<{
|
||||
label: StringConstructor;
|
||||
expand: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
isExpand: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
}>
|
||||
> &
|
||||
Readonly<{}>,
|
||||
{
|
||||
expand: boolean;
|
||||
isExpand: boolean;
|
||||
},
|
||||
{},
|
||||
{
|
||||
ArrowDown: import("vue").DefineComponent<
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
import("vue").ComponentOptionsMixin,
|
||||
import("vue").ComponentOptionsMixin,
|
||||
{},
|
||||
string,
|
||||
import("vue").VNodeProps &
|
||||
import("vue").AllowedComponentProps &
|
||||
import("vue").ComponentCustomProps,
|
||||
Readonly<import("vue").ExtractPropTypes<{}>>,
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
string,
|
||||
import("vue").ComponentProvideOptions,
|
||||
true,
|
||||
{},
|
||||
any
|
||||
>;
|
||||
ArrowUp: import("vue").DefineComponent<
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
import("vue").ComponentOptionsMixin,
|
||||
import("vue").ComponentOptionsMixin,
|
||||
{},
|
||||
string,
|
||||
import("vue").VNodeProps &
|
||||
import("vue").AllowedComponentProps &
|
||||
import("vue").ComponentCustomProps,
|
||||
Readonly<import("vue").ExtractPropTypes<{}>>,
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
string,
|
||||
import("vue").ComponentProvideOptions,
|
||||
true,
|
||||
{},
|
||||
any
|
||||
>;
|
||||
},
|
||||
{},
|
||||
string,
|
||||
import("vue").ComponentProvideOptions,
|
||||
true,
|
||||
{},
|
||||
any
|
||||
>;
|
||||
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
||||
label: StringConstructor;
|
||||
expand: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
isExpand: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
label: StringConstructor;
|
||||
expand: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
isExpand: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
}>> & Readonly<{}>, {
|
||||
expand: boolean;
|
||||
isExpand: boolean;
|
||||
}, {}, {
|
||||
ArrowDown: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
||||
ArrowUp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
||||
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
|
100
packages/crud/types/components/form-tabs/index.d.ts
vendored
100
packages/crud/types/components/form-tabs/index.d.ts
vendored
@ -1,66 +1,38 @@
|
||||
import { PropType } from "vue";
|
||||
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"
|
||||
>;
|
||||
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<{
|
||||
modelValue: (NumberConstructor | StringConstructor)[];
|
||||
labels: {
|
||||
type: ArrayConstructor;
|
||||
default: () => never[];
|
||||
};
|
||||
justify: {
|
||||
type: PropType<
|
||||
"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
|
||||
>;
|
||||
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">;
|
||||
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<{
|
||||
modelValue: (NumberConstructor | StringConstructor)[];
|
||||
labels: {
|
||||
type: ArrayConstructor;
|
||||
default: () => never[];
|
||||
};
|
||||
justify: {
|
||||
type: PropType<"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;
|
||||
|
@ -1,22 +1,18 @@
|
||||
/// <reference types="../index" />
|
||||
export declare function useAction({
|
||||
config,
|
||||
form,
|
||||
Form
|
||||
}: {
|
||||
config: ClForm.Config;
|
||||
form: obj;
|
||||
Form: Vue.Ref<any>;
|
||||
export declare function useAction({ config, form, Form }: {
|
||||
config: ClForm.Config;
|
||||
form: obj;
|
||||
Form: Vue.Ref<any>;
|
||||
}): {
|
||||
getForm: (prop: string) => any;
|
||||
setForm: (prop: string, value: any) => void;
|
||||
setData: (prop: string, value: any) => void;
|
||||
setConfig: (path: string, value: any) => void;
|
||||
setOptions: (prop: string, value: any[]) => void;
|
||||
setProps: (prop: string, value: any) => void;
|
||||
toggleItem: (prop: string, value?: boolean) => void;
|
||||
hideItem: (...props: string[]) => void;
|
||||
showItem: (...props: string[]) => void;
|
||||
setTitle: (value: string) => void;
|
||||
collapseItem: (e: any) => void;
|
||||
getForm: (prop: string) => any;
|
||||
setForm: (prop: string, value: any) => void;
|
||||
setData: (prop: string, value: any) => void;
|
||||
setConfig: (path: string, value: any) => void;
|
||||
setOptions: (prop: string, value: any[]) => void;
|
||||
setProps: (prop: string, value: any) => void;
|
||||
toggleItem: (prop: string, value?: boolean) => void;
|
||||
hideItem: (...props: string[]) => void;
|
||||
showItem: (...props: string[]) => void;
|
||||
setTitle: (value: string) => void;
|
||||
collapseItem: (e: any) => void;
|
||||
};
|
||||
|
@ -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;
|
||||
|
@ -1,330 +1,235 @@
|
||||
/// <reference types="../index" />
|
||||
export declare function useForm(): {
|
||||
Form: import("vue").Ref<any, any>;
|
||||
config: {
|
||||
[x: string]: any;
|
||||
title?: any;
|
||||
height?: any;
|
||||
width?: any;
|
||||
props: {
|
||||
[x: string]: any;
|
||||
inline?: boolean | undefined;
|
||||
labelPosition?: "left" | "right" | "top" | undefined;
|
||||
labelWidth?: string | number | undefined;
|
||||
labelSuffix?: string | undefined;
|
||||
hideRequiredAsterisk?: boolean | undefined;
|
||||
showMessage?: boolean | undefined;
|
||||
inlineMessage?: boolean | undefined;
|
||||
statusIcon?: boolean | undefined;
|
||||
validateOnRuleChange?: boolean | undefined;
|
||||
size?: ElementPlus.Size | undefined;
|
||||
disabled?: boolean | undefined;
|
||||
};
|
||||
items: {
|
||||
[x: string]: any;
|
||||
type?: "tabs" | undefined;
|
||||
prop?: (string & {}) | undefined;
|
||||
props?:
|
||||
| {
|
||||
[x: string]: any;
|
||||
labels?:
|
||||
| {
|
||||
[x: string]: any;
|
||||
label: string;
|
||||
value: string;
|
||||
name?: string | undefined;
|
||||
icon?: any;
|
||||
lazy?: boolean | undefined;
|
||||
}[]
|
||||
| undefined;
|
||||
justify?: "center" | "left" | "right" | undefined;
|
||||
color?: string | undefined;
|
||||
mergeProp?: boolean | undefined;
|
||||
labelWidth?: string | undefined;
|
||||
error?: string | undefined;
|
||||
showMessage?: boolean | undefined;
|
||||
inlineMessage?: boolean | undefined;
|
||||
size?: "default" | "small" | "medium" | undefined;
|
||||
}
|
||||
| undefined;
|
||||
span?: number | undefined;
|
||||
col?:
|
||||
| {
|
||||
span: number;
|
||||
offset: number;
|
||||
push: number;
|
||||
pull: number;
|
||||
xs: any;
|
||||
sm: any;
|
||||
md: any;
|
||||
lg: any;
|
||||
xl: any;
|
||||
tag: string;
|
||||
}
|
||||
| undefined;
|
||||
group?: string | undefined;
|
||||
collapse?: boolean | undefined;
|
||||
value?: any;
|
||||
label?: string | undefined;
|
||||
renderLabel?: any;
|
||||
flex?: boolean | undefined;
|
||||
hook?:
|
||||
| ClForm.HookKey
|
||||
| {
|
||||
bind?: ClForm.HookPipe | ClForm.HookPipe[] | undefined;
|
||||
submit?: ClForm.HookPipe | ClForm.HookPipe[] | undefined;
|
||||
}
|
||||
| undefined;
|
||||
hidden?: boolean | ((options: { scope: obj }) => boolean) | undefined;
|
||||
prepend?:
|
||||
| {
|
||||
[x: string]: any;
|
||||
name?: string | undefined;
|
||||
options?:
|
||||
| {
|
||||
[x: string]: any;
|
||||
label?: string | undefined;
|
||||
value?: any;
|
||||
color?: string | undefined;
|
||||
type?: string | undefined;
|
||||
}[]
|
||||
| {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
label?: string | undefined;
|
||||
value?: any;
|
||||
color?: string | undefined;
|
||||
type?: string | undefined;
|
||||
}[];
|
||||
}
|
||||
| undefined;
|
||||
props?:
|
||||
| {
|
||||
[x: string]: any;
|
||||
onChange?: ((value: any) => void) | undefined;
|
||||
}
|
||||
| {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
onChange?: ((value: any) => void) | undefined;
|
||||
};
|
||||
}
|
||||
| undefined;
|
||||
style?: obj | undefined;
|
||||
slots?:
|
||||
| {
|
||||
[key: string]: (data?: any) => any;
|
||||
}
|
||||
| undefined;
|
||||
vm?: any;
|
||||
}
|
||||
| undefined;
|
||||
component?:
|
||||
| {
|
||||
[x: string]: any;
|
||||
name?: string | undefined;
|
||||
options?:
|
||||
| {
|
||||
[x: string]: any;
|
||||
label?: string | undefined;
|
||||
value?: any;
|
||||
color?: string | undefined;
|
||||
type?: string | undefined;
|
||||
}[]
|
||||
| {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
label?: string | undefined;
|
||||
value?: any;
|
||||
color?: string | undefined;
|
||||
type?: string | undefined;
|
||||
}[];
|
||||
}
|
||||
| undefined;
|
||||
props?:
|
||||
| {
|
||||
[x: string]: any;
|
||||
onChange?: ((value: any) => void) | undefined;
|
||||
}
|
||||
| {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
onChange?: ((value: any) => void) | undefined;
|
||||
};
|
||||
}
|
||||
| undefined;
|
||||
style?: obj | undefined;
|
||||
slots?:
|
||||
| {
|
||||
[key: string]: (data?: any) => any;
|
||||
}
|
||||
| undefined;
|
||||
vm?: any;
|
||||
}
|
||||
| undefined;
|
||||
append?:
|
||||
| {
|
||||
[x: string]: any;
|
||||
name?: string | undefined;
|
||||
options?:
|
||||
| {
|
||||
[x: string]: any;
|
||||
label?: string | undefined;
|
||||
value?: any;
|
||||
color?: string | undefined;
|
||||
type?: string | undefined;
|
||||
}[]
|
||||
| {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
label?: string | undefined;
|
||||
value?: any;
|
||||
color?: string | undefined;
|
||||
type?: string | undefined;
|
||||
}[];
|
||||
}
|
||||
| undefined;
|
||||
props?:
|
||||
| {
|
||||
[x: string]: any;
|
||||
onChange?: ((value: any) => void) | undefined;
|
||||
}
|
||||
| {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
onChange?: ((value: any) => void) | undefined;
|
||||
};
|
||||
}
|
||||
| undefined;
|
||||
style?: obj | undefined;
|
||||
slots?:
|
||||
| {
|
||||
[key: string]: (data?: any) => any;
|
||||
}
|
||||
| undefined;
|
||||
vm?: any;
|
||||
}
|
||||
| undefined;
|
||||
rules?:
|
||||
| {
|
||||
[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;
|
||||
}
|
||||
| {
|
||||
[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>;
|
||||
Form: import("vue").Ref<any, any>;
|
||||
config: {
|
||||
[x: string]: any;
|
||||
title?: any;
|
||||
height?: any;
|
||||
width?: any;
|
||||
props: {
|
||||
[x: string]: any;
|
||||
inline?: boolean | undefined;
|
||||
labelPosition?: "left" | "right" | "top" | undefined;
|
||||
labelWidth?: string | number | undefined;
|
||||
labelSuffix?: string | undefined;
|
||||
hideRequiredAsterisk?: boolean | undefined;
|
||||
showMessage?: boolean | undefined;
|
||||
inlineMessage?: boolean | undefined;
|
||||
statusIcon?: boolean | undefined;
|
||||
validateOnRuleChange?: boolean | undefined;
|
||||
size?: ElementPlus.Size | undefined;
|
||||
disabled?: boolean | undefined;
|
||||
};
|
||||
items: {
|
||||
[x: string]: any;
|
||||
type?: "tabs" | undefined;
|
||||
prop?: (string & {}) | undefined;
|
||||
props?: {
|
||||
[x: string]: any;
|
||||
labels?: {
|
||||
[x: string]: any;
|
||||
label: string;
|
||||
value: string;
|
||||
name?: string | undefined;
|
||||
icon?: any;
|
||||
lazy?: boolean | undefined;
|
||||
}[] | undefined;
|
||||
justify?: "center" | "left" | "right" | undefined;
|
||||
color?: string | undefined;
|
||||
mergeProp?: boolean | undefined;
|
||||
labelWidth?: string | undefined;
|
||||
error?: string | undefined;
|
||||
showMessage?: boolean | undefined;
|
||||
inlineMessage?: boolean | undefined;
|
||||
size?: "default" | "small" | "medium" | undefined;
|
||||
} | undefined;
|
||||
span?: number | undefined;
|
||||
col?: {
|
||||
span: number;
|
||||
offset: number;
|
||||
push: number;
|
||||
pull: number;
|
||||
xs: any;
|
||||
sm: any;
|
||||
md: any;
|
||||
lg: any;
|
||||
xl: any;
|
||||
tag: string;
|
||||
} | undefined;
|
||||
group?: string | undefined;
|
||||
collapse?: boolean | undefined;
|
||||
value?: any;
|
||||
label?: string | undefined;
|
||||
renderLabel?: any;
|
||||
flex?: boolean | undefined;
|
||||
hook?: ClForm.HookKey | {
|
||||
bind?: ClForm.HookPipe | ClForm.HookPipe[] | undefined;
|
||||
submit?: ClForm.HookPipe | ClForm.HookPipe[] | undefined;
|
||||
} | undefined;
|
||||
hidden?: boolean | ((options: {
|
||||
scope: obj;
|
||||
}) => boolean) | undefined;
|
||||
prepend?: {
|
||||
[x: string]: any;
|
||||
name?: string | undefined;
|
||||
options?: {
|
||||
[x: string]: any;
|
||||
label?: string | undefined;
|
||||
value?: any;
|
||||
color?: string | undefined;
|
||||
type?: string | undefined;
|
||||
}[] | {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
label?: string | undefined;
|
||||
value?: any;
|
||||
color?: string | undefined;
|
||||
type?: string | undefined;
|
||||
}[];
|
||||
} | undefined;
|
||||
props?: {
|
||||
[x: string]: any;
|
||||
onChange?: ((value: any) => void) | undefined;
|
||||
} | {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
onChange?: ((value: any) => void) | undefined;
|
||||
};
|
||||
} | undefined;
|
||||
style?: obj | undefined;
|
||||
slots?: {
|
||||
[key: string]: (data?: any) => any;
|
||||
} | undefined;
|
||||
vm?: any;
|
||||
} | undefined;
|
||||
component?: {
|
||||
[x: string]: any;
|
||||
name?: string | undefined;
|
||||
options?: {
|
||||
[x: string]: any;
|
||||
label?: string | undefined;
|
||||
value?: any;
|
||||
color?: string | undefined;
|
||||
type?: string | undefined;
|
||||
}[] | {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
label?: string | undefined;
|
||||
value?: any;
|
||||
color?: string | undefined;
|
||||
type?: string | undefined;
|
||||
}[];
|
||||
} | undefined;
|
||||
props?: {
|
||||
[x: string]: any;
|
||||
onChange?: ((value: any) => void) | undefined;
|
||||
} | {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
onChange?: ((value: any) => void) | undefined;
|
||||
};
|
||||
} | undefined;
|
||||
style?: obj | undefined;
|
||||
slots?: {
|
||||
[key: string]: (data?: any) => any;
|
||||
} | undefined;
|
||||
vm?: any;
|
||||
} | undefined;
|
||||
append?: {
|
||||
[x: string]: any;
|
||||
name?: string | undefined;
|
||||
options?: {
|
||||
[x: string]: any;
|
||||
label?: string | undefined;
|
||||
value?: any;
|
||||
color?: string | undefined;
|
||||
type?: string | undefined;
|
||||
}[] | {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
label?: string | undefined;
|
||||
value?: any;
|
||||
color?: string | undefined;
|
||||
type?: string | undefined;
|
||||
}[];
|
||||
} | undefined;
|
||||
props?: {
|
||||
[x: string]: any;
|
||||
onChange?: ((value: any) => void) | undefined;
|
||||
} | {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
onChange?: ((value: any) => void) | undefined;
|
||||
};
|
||||
} | undefined;
|
||||
style?: obj | undefined;
|
||||
slots?: {
|
||||
[key: string]: (data?: any) => any;
|
||||
} | undefined;
|
||||
vm?: any;
|
||||
} | undefined;
|
||||
rules?: {
|
||||
[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;
|
||||
} | {
|
||||
[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 "./api";
|
||||
|
@ -1,13 +1,8 @@
|
||||
/// <reference types="../index" />
|
||||
import { Ref } from "vue";
|
||||
export declare function usePlugins(
|
||||
enable: boolean,
|
||||
{
|
||||
visible
|
||||
}: {
|
||||
visible: Ref<boolean>;
|
||||
}
|
||||
): {
|
||||
create: (plugins?: ClForm.Plugin[]) => false | undefined;
|
||||
submit: (data: any) => Promise<any>;
|
||||
export declare function usePlugins(enable: boolean, { visible }: {
|
||||
visible: Ref<boolean>;
|
||||
}): {
|
||||
create: (plugins?: ClForm.Plugin[]) => false | undefined;
|
||||
submit: (data: any) => Promise<any>;
|
||||
};
|
||||
|
@ -1,13 +1,20 @@
|
||||
/// <reference types="../index" />
|
||||
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;
|
||||
onLoad: (value: any) => void;
|
||||
get: () => ClForm.Item<any> | undefined;
|
||||
set: (data: any) => void;
|
||||
change: (value: any, isValid?: boolean) => Promise<unknown>;
|
||||
clear: () => void;
|
||||
mergeProp: (item: ClForm.Item) => void;
|
||||
toGroup: (opts: { config: ClForm.Config; prop: string; refs: any }) => void;
|
||||
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;
|
||||
onLoad: (value: any) => void;
|
||||
get: () => ClForm.Item<any> | undefined;
|
||||
set: (data: any) => void;
|
||||
change: (value: any, isValid?: boolean) => Promise<unknown>;
|
||||
clear: () => void;
|
||||
mergeProp: (item: ClForm.Item) => void;
|
||||
toGroup: (opts: {
|
||||
config: ClForm.Config;
|
||||
prop: string;
|
||||
refs: any;
|
||||
}) => void;
|
||||
};
|
||||
|
62
packages/crud/types/components/form/index.d.ts
vendored
62
packages/crud/types/components/form/index.d.ts
vendored
@ -1,44 +1,20 @@
|
||||
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<{
|
||||
inner: BooleanConstructor;
|
||||
inline: BooleanConstructor;
|
||||
enablePlugin: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
}>
|
||||
> &
|
||||
Readonly<{}>,
|
||||
{
|
||||
inline: boolean;
|
||||
inner: boolean;
|
||||
enablePlugin: boolean;
|
||||
},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
string,
|
||||
import("vue").ComponentProvideOptions,
|
||||
true,
|
||||
{},
|
||||
any
|
||||
>;
|
||||
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<{
|
||||
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;
|
||||
|
2
packages/crud/types/components/index.d.ts
vendored
2
packages/crud/types/components/index.d.ts
vendored
@ -1,5 +1,5 @@
|
||||
import { App } from "vue";
|
||||
export declare const components: {
|
||||
[key: string]: any;
|
||||
[key: string]: any;
|
||||
};
|
||||
export declare function useComponent(app: App): void;
|
||||
|
@ -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;
|
||||
|
@ -1,29 +1,4 @@
|
||||
declare const _default: import("vue").DefineComponent<
|
||||
{},
|
||||
() => import("vue").VNode<
|
||||
import("vue").RendererNode,
|
||||
import("vue").RendererElement,
|
||||
{
|
||||
[key: string]: any;
|
||||
}
|
||||
>,
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
import("vue").ComponentOptionsMixin,
|
||||
import("vue").ComponentOptionsMixin,
|
||||
{},
|
||||
string,
|
||||
import("vue").PublicProps,
|
||||
Readonly<{}> & Readonly<{}>,
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
string,
|
||||
import("vue").ComponentProvideOptions,
|
||||
true,
|
||||
{},
|
||||
any
|
||||
>;
|
||||
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
||||
[key: string]: any;
|
||||
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
|
@ -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;
|
||||
|
23
packages/crud/types/components/row/index.d.ts
vendored
23
packages/crud/types/components/row/index.d.ts
vendored
@ -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;
|
||||
|
134
packages/crud/types/components/search-key/index.d.ts
vendored
134
packages/crud/types/components/search-key/index.d.ts
vendored
@ -1,83 +1,55 @@
|
||||
import { type PropType } from "vue";
|
||||
declare const _default: import("vue").DefineComponent<
|
||||
import("vue").ExtractPropTypes<{
|
||||
modelValue: StringConstructor;
|
||||
field: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
fieldList: {
|
||||
type: PropType<
|
||||
{
|
||||
label: string;
|
||||
value: string;
|
||||
}[]
|
||||
>;
|
||||
default: () => never[];
|
||||
};
|
||||
onSearch: FunctionConstructor;
|
||||
placeholder: StringConstructor;
|
||||
width: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: number;
|
||||
};
|
||||
refreshOnInput: BooleanConstructor;
|
||||
}>,
|
||||
() => any,
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
import("vue").ComponentOptionsMixin,
|
||||
import("vue").ComponentOptionsMixin,
|
||||
("change" | "update:modelValue" | "field-change")[],
|
||||
"change" | "update:modelValue" | "field-change",
|
||||
import("vue").PublicProps,
|
||||
Readonly<
|
||||
import("vue").ExtractPropTypes<{
|
||||
modelValue: StringConstructor;
|
||||
field: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
fieldList: {
|
||||
type: PropType<
|
||||
{
|
||||
label: string;
|
||||
value: string;
|
||||
}[]
|
||||
>;
|
||||
default: () => never[];
|
||||
};
|
||||
onSearch: FunctionConstructor;
|
||||
placeholder: StringConstructor;
|
||||
width: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
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
|
||||
>;
|
||||
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
||||
modelValue: StringConstructor;
|
||||
field: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
fieldList: {
|
||||
type: PropType<{
|
||||
label: string;
|
||||
value: string;
|
||||
}[]>;
|
||||
default: () => never[];
|
||||
};
|
||||
onSearch: FunctionConstructor;
|
||||
placeholder: StringConstructor;
|
||||
width: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: number;
|
||||
};
|
||||
refreshOnInput: BooleanConstructor;
|
||||
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "field-change")[], "change" | "update:modelValue" | "field-change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
modelValue: StringConstructor;
|
||||
field: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
fieldList: {
|
||||
type: PropType<{
|
||||
label: string;
|
||||
value: string;
|
||||
}[]>;
|
||||
default: () => never[];
|
||||
};
|
||||
onSearch: FunctionConstructor;
|
||||
placeholder: StringConstructor;
|
||||
width: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
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;
|
||||
|
134
packages/crud/types/components/search/index.d.ts
vendored
134
packages/crud/types/components/search/index.d.ts
vendored
@ -1,82 +1,58 @@
|
||||
/// <reference types="../index" />
|
||||
import { PropType } from "vue";
|
||||
declare const _default: import("vue").DefineComponent<
|
||||
import("vue").ExtractPropTypes<{
|
||||
inline: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
props: {
|
||||
type: ObjectConstructor;
|
||||
default: () => void;
|
||||
};
|
||||
data: {
|
||||
type: ObjectConstructor;
|
||||
default: () => {};
|
||||
};
|
||||
items: {
|
||||
type: PropType<ClForm.Item<any>[]>;
|
||||
default: () => never[];
|
||||
};
|
||||
resetBtn: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
onLoad: FunctionConstructor;
|
||||
onSearch: FunctionConstructor;
|
||||
}>,
|
||||
() => any,
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
import("vue").ComponentOptionsMixin,
|
||||
import("vue").ComponentOptionsMixin,
|
||||
"reset"[],
|
||||
"reset",
|
||||
import("vue").PublicProps,
|
||||
Readonly<
|
||||
import("vue").ExtractPropTypes<{
|
||||
inline: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
props: {
|
||||
type: ObjectConstructor;
|
||||
default: () => void;
|
||||
};
|
||||
data: {
|
||||
type: ObjectConstructor;
|
||||
default: () => {};
|
||||
};
|
||||
items: {
|
||||
type: PropType<ClForm.Item<any>[]>;
|
||||
default: () => never[];
|
||||
};
|
||||
resetBtn: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
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
|
||||
>;
|
||||
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
||||
inline: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
props: {
|
||||
type: ObjectConstructor;
|
||||
default: () => void;
|
||||
};
|
||||
data: {
|
||||
type: ObjectConstructor;
|
||||
default: () => {};
|
||||
};
|
||||
items: {
|
||||
type: PropType<ClForm.Item<any>[]>;
|
||||
default: () => never[];
|
||||
};
|
||||
resetBtn: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
onLoad: FunctionConstructor;
|
||||
onSearch: FunctionConstructor;
|
||||
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "reset"[], "reset", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
inline: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
props: {
|
||||
type: ObjectConstructor;
|
||||
default: () => void;
|
||||
};
|
||||
data: {
|
||||
type: ObjectConstructor;
|
||||
default: () => {};
|
||||
};
|
||||
items: {
|
||||
type: PropType<ClForm.Item<any>[]>;
|
||||
default: () => never[];
|
||||
};
|
||||
resetBtn: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
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;
|
||||
|
@ -1,11 +1,8 @@
|
||||
/// <reference types="../index" />
|
||||
export declare function useData({
|
||||
config,
|
||||
Table
|
||||
}: {
|
||||
config: ClTable.Config;
|
||||
Table: Vue.Ref<any>;
|
||||
export declare function useData({ config, Table }: {
|
||||
config: ClTable.Config;
|
||||
Table: Vue.Ref<any>;
|
||||
}): {
|
||||
data: import("vue").Ref<obj[], obj[]>;
|
||||
setData: (list: obj[]) => void;
|
||||
data: import("vue").Ref<obj[], obj[]>;
|
||||
setData: (list: obj[]) => void;
|
||||
};
|
||||
|
@ -1,11 +1,8 @@
|
||||
/// <reference types="../index" />
|
||||
export declare function useHeight({
|
||||
config,
|
||||
Table
|
||||
}: {
|
||||
Table: Vue.Ref<any>;
|
||||
config: ClTable.Config;
|
||||
export declare function useHeight({ config, Table }: {
|
||||
Table: Vue.Ref<any>;
|
||||
config: ClTable.Config;
|
||||
}): {
|
||||
maxHeight: import("vue").Ref<number, number>;
|
||||
calcMaxHeight: import("lodash-es").DebouncedFunc<() => Promise<void>>;
|
||||
maxHeight: import("vue").Ref<number, number>;
|
||||
calcMaxHeight: import("lodash-es").DebouncedFunc<() => Promise<void>>;
|
||||
};
|
||||
|
@ -1,204 +1,169 @@
|
||||
/// <reference types="../index" />
|
||||
export declare function useTable(props: any): {
|
||||
Table: import("vue").Ref<any, any>;
|
||||
config: {
|
||||
columns: {
|
||||
[x: string]: any;
|
||||
type: ClTable.ColumnType;
|
||||
hidden:
|
||||
| boolean
|
||||
| {
|
||||
value: boolean;
|
||||
};
|
||||
component: {
|
||||
[x: string]: any;
|
||||
name?: string | undefined;
|
||||
options?:
|
||||
| {
|
||||
[x: string]: any;
|
||||
label?: string | undefined;
|
||||
value?: any;
|
||||
color?: string | undefined;
|
||||
type?: string | undefined;
|
||||
}[]
|
||||
| {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
label?: string | undefined;
|
||||
value?: any;
|
||||
color?: string | undefined;
|
||||
type?: string | undefined;
|
||||
}[];
|
||||
}
|
||||
| undefined;
|
||||
props?:
|
||||
| {
|
||||
[x: string]: any;
|
||||
onChange?: ((value: any) => void) | undefined;
|
||||
}
|
||||
| {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
onChange?: ((value: any) => void) | undefined;
|
||||
};
|
||||
}
|
||||
| undefined;
|
||||
style?: obj | undefined;
|
||||
slots?:
|
||||
| {
|
||||
[key: string]: (data?: any) => any;
|
||||
}
|
||||
| undefined;
|
||||
vm?: any;
|
||||
};
|
||||
search: {
|
||||
isInput: boolean;
|
||||
value: any;
|
||||
refreshOnChange: {
|
||||
valueOf: () => boolean;
|
||||
};
|
||||
component: {
|
||||
[x: string]: any;
|
||||
name?: string | undefined;
|
||||
options?:
|
||||
| {
|
||||
[x: string]: any;
|
||||
label?: string | undefined;
|
||||
value?: any;
|
||||
color?: string | undefined;
|
||||
type?: string | undefined;
|
||||
}[]
|
||||
| {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
label?: string | undefined;
|
||||
value?: any;
|
||||
color?: string | undefined;
|
||||
type?: string | undefined;
|
||||
}[];
|
||||
}
|
||||
| undefined;
|
||||
props?:
|
||||
| {
|
||||
[x: string]: any;
|
||||
onChange?: ((value: any) => void) | undefined;
|
||||
}
|
||||
| {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
onChange?: ((value: any) => void) | undefined;
|
||||
};
|
||||
}
|
||||
| undefined;
|
||||
style?: obj | undefined;
|
||||
slots?:
|
||||
| {
|
||||
[key: string]: (data?: any) => any;
|
||||
}
|
||||
| undefined;
|
||||
vm?: any;
|
||||
};
|
||||
};
|
||||
dict:
|
||||
| {
|
||||
[x: string]: any;
|
||||
label?: string | undefined;
|
||||
value?: any;
|
||||
color?: string | undefined;
|
||||
type?: string | undefined;
|
||||
}[]
|
||||
| {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
label?: string | undefined;
|
||||
value?: any;
|
||||
color?: string | undefined;
|
||||
type?: string | undefined;
|
||||
}[];
|
||||
};
|
||||
dictFormatter: (values: DictOptions) => string;
|
||||
dictColor: boolean;
|
||||
dictSeparator: string;
|
||||
dictAllLevels: boolean;
|
||||
buttons:
|
||||
| ((options: { scope: any }) => ClTable.OpButton)
|
||||
| (
|
||||
| "info"
|
||||
| "delete"
|
||||
| "edit"
|
||||
| AnyString
|
||||
| `slot-${string}`
|
||||
| {
|
||||
[x: string]: any;
|
||||
label: string;
|
||||
type?: string | undefined;
|
||||
hidden?: boolean | undefined;
|
||||
onClick: (options: { scope: obj }) => void;
|
||||
}
|
||||
)[];
|
||||
align: ElementPlus.Align;
|
||||
label: any;
|
||||
className: string;
|
||||
prop: string & {};
|
||||
orderNum: number;
|
||||
width: number;
|
||||
minWidth: string | number;
|
||||
renderHeader: (options: { column: any; $index: number }) => any;
|
||||
sortable: boolean | "asc" | "desc" | "custom" | "descending" | "ascending";
|
||||
sortMethod: fn;
|
||||
sortBy: string | any[] | ((row: any, index: number) => any);
|
||||
resizable: boolean;
|
||||
columnKey: string;
|
||||
headerAlign: ElementPlus.Align;
|
||||
showOverflowTooltip: boolean;
|
||||
fixed: string | boolean;
|
||||
formatter: (row: any, column: any, value: any, index: number) => any;
|
||||
selectable: (row: any, index: number) => boolean;
|
||||
reserveSelection: boolean;
|
||||
filterMethod: fn;
|
||||
filteredValue: unknown[];
|
||||
filters: unknown[];
|
||||
filterPlacement: string;
|
||||
filterMultiple: boolean;
|
||||
index: number | ((index: number) => number);
|
||||
sortOrders: unknown[];
|
||||
children: any[];
|
||||
}[];
|
||||
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;
|
||||
};
|
||||
Table: import("vue").Ref<any, any>;
|
||||
config: {
|
||||
columns: {
|
||||
[x: string]: any;
|
||||
type: ClTable.ColumnType;
|
||||
hidden: boolean | {
|
||||
value: boolean;
|
||||
};
|
||||
component: {
|
||||
[x: string]: any;
|
||||
name?: string | undefined;
|
||||
options?: {
|
||||
[x: string]: any;
|
||||
label?: string | undefined;
|
||||
value?: any;
|
||||
color?: string | undefined;
|
||||
type?: string | undefined;
|
||||
}[] | {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
label?: string | undefined;
|
||||
value?: any;
|
||||
color?: string | undefined;
|
||||
type?: string | undefined;
|
||||
}[];
|
||||
} | undefined;
|
||||
props?: {
|
||||
[x: string]: any;
|
||||
onChange?: ((value: any) => void) | undefined;
|
||||
} | {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
onChange?: ((value: any) => void) | undefined;
|
||||
};
|
||||
} | undefined;
|
||||
style?: obj | undefined;
|
||||
slots?: {
|
||||
[key: string]: (data?: any) => any;
|
||||
} | undefined;
|
||||
vm?: any;
|
||||
};
|
||||
search: {
|
||||
isInput: boolean;
|
||||
value: any;
|
||||
refreshOnChange: boolean;
|
||||
component: {
|
||||
[x: string]: any;
|
||||
name?: string | undefined;
|
||||
options?: {
|
||||
[x: string]: any;
|
||||
label?: string | undefined;
|
||||
value?: any;
|
||||
color?: string | undefined;
|
||||
type?: string | undefined;
|
||||
}[] | {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
label?: string | undefined;
|
||||
value?: any;
|
||||
color?: string | undefined;
|
||||
type?: string | undefined;
|
||||
}[];
|
||||
} | undefined;
|
||||
props?: {
|
||||
[x: string]: any;
|
||||
onChange?: ((value: any) => void) | undefined;
|
||||
} | {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
onChange?: ((value: any) => void) | undefined;
|
||||
};
|
||||
} | undefined;
|
||||
style?: obj | undefined;
|
||||
slots?: {
|
||||
[key: string]: (data?: any) => any;
|
||||
} | undefined;
|
||||
vm?: any;
|
||||
};
|
||||
};
|
||||
dict: {
|
||||
[x: string]: any;
|
||||
label?: string | undefined;
|
||||
value?: any;
|
||||
color?: string | undefined;
|
||||
type?: string | undefined;
|
||||
}[] | {
|
||||
value: {
|
||||
[x: string]: any;
|
||||
label?: string | undefined;
|
||||
value?: any;
|
||||
color?: string | undefined;
|
||||
type?: string | undefined;
|
||||
}[];
|
||||
};
|
||||
dictFormatter: (values: DictOptions) => string;
|
||||
dictColor: boolean;
|
||||
dictSeparator: string;
|
||||
dictAllLevels: boolean;
|
||||
buttons: ((options: {
|
||||
scope: any;
|
||||
}) => ClTable.OpButton) | ("info" | "delete" | "edit" | AnyString | `slot-${string}` | {
|
||||
[x: string]: any;
|
||||
label: string;
|
||||
type?: string | undefined;
|
||||
hidden?: boolean | undefined;
|
||||
onClick: (options: {
|
||||
scope: obj;
|
||||
}) => void;
|
||||
})[];
|
||||
align: ElementPlus.Align;
|
||||
label: any;
|
||||
className: string;
|
||||
prop: string & {};
|
||||
orderNum: number;
|
||||
width: number;
|
||||
minWidth: string | number;
|
||||
renderHeader: (options: {
|
||||
column: any;
|
||||
$index: number;
|
||||
}) => any;
|
||||
sortable: boolean | "asc" | "desc" | "custom" | "descending" | "ascending";
|
||||
sortMethod: fn;
|
||||
sortBy: string | any[] | ((row: any, index: number) => any);
|
||||
resizable: boolean;
|
||||
columnKey: string;
|
||||
headerAlign: ElementPlus.Align;
|
||||
showOverflowTooltip: boolean;
|
||||
fixed: string | boolean;
|
||||
formatter: (row: any, column: any, value: any, index: number) => any;
|
||||
selectable: (row: any, index: number) => boolean;
|
||||
reserveSelection: boolean;
|
||||
filterMethod: fn;
|
||||
filteredValue: unknown[];
|
||||
filters: unknown[];
|
||||
filterPlacement: string;
|
||||
filterMultiple: boolean;
|
||||
index: number | ((index: number) => number);
|
||||
sortOrders: unknown[];
|
||||
children: any[];
|
||||
}[];
|
||||
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 "./height";
|
||||
|
@ -1,8 +1,10 @@
|
||||
/// <reference types="../index" />
|
||||
export declare function useOp({ config }: { config: ClTable.Config }): {
|
||||
visible: import("vue").Ref<boolean, boolean>;
|
||||
reBuild: (cb?: fn) => Promise<void>;
|
||||
showColumn: (prop: string | string[], status?: boolean) => void;
|
||||
hideColumn: (prop: string | string[]) => void;
|
||||
setColumns: (list: ClTable.Column[]) => void;
|
||||
export declare function useOp({ config }: {
|
||||
config: ClTable.Config;
|
||||
}): {
|
||||
visible: import("vue").Ref<boolean, boolean>;
|
||||
reBuild: (cb?: fn) => Promise<void>;
|
||||
showColumn: (prop: string | string[], status?: boolean) => void;
|
||||
hideColumn: (prop: string | string[]) => void;
|
||||
setColumns: (list: ClTable.Column[]) => void;
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
/// <reference types="../index" />
|
||||
export declare function usePlugins(): {
|
||||
create: (plugins?: ClTable.Plugin[]) => void;
|
||||
create: (plugins?: ClTable.Plugin[]) => void;
|
||||
};
|
||||
|
@ -1,15 +1,8 @@
|
||||
/// <reference types="../index" />
|
||||
export declare function useRender(): {
|
||||
renderColumn: (columns: ClTable.Column[]) => (
|
||||
| import("vue").VNode<
|
||||
import("vue").RendererNode,
|
||||
import("vue").RendererElement,
|
||||
{
|
||||
[key: string]: any;
|
||||
}
|
||||
>
|
||||
| null
|
||||
)[];
|
||||
renderEmpty: (emptyText: string) => any;
|
||||
renderAppend: () => any;
|
||||
renderColumn: (columns: ClTable.Column[]) => (import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
||||
[key: string]: any;
|
||||
}> | null)[];
|
||||
renderEmpty: (emptyText: string) => any;
|
||||
renderAppend: () => any;
|
||||
};
|
||||
|
@ -1,18 +1,14 @@
|
||||
/// <reference types="../index" />
|
||||
export declare function useRow({
|
||||
Table,
|
||||
config,
|
||||
Sort
|
||||
}: {
|
||||
Table: Vue.Ref<any>;
|
||||
config: ClTable.Config;
|
||||
Sort: {
|
||||
defaultSort: {
|
||||
prop?: string;
|
||||
order?: string;
|
||||
};
|
||||
changeSort(prop: string, order: string): void;
|
||||
};
|
||||
export declare function useRow({ Table, config, Sort }: {
|
||||
Table: Vue.Ref<any>;
|
||||
config: ClTable.Config;
|
||||
Sort: {
|
||||
defaultSort: {
|
||||
prop?: string;
|
||||
order?: string;
|
||||
};
|
||||
changeSort(prop: string, order: string): void;
|
||||
};
|
||||
}): {
|
||||
onRowContextMenu: (row: obj, column: obj, event: PointerEvent) => void;
|
||||
onRowContextMenu: (row: obj, column: obj, event: PointerEvent) => void;
|
||||
};
|
||||
|
@ -1,5 +1,7 @@
|
||||
/// <reference types="../index" />
|
||||
export declare function useSelection({ emit }: { emit: Vue.Emit }): {
|
||||
selection: obj[];
|
||||
onSelectionChange: (selection: any[]) => void;
|
||||
export declare function useSelection({ emit }: {
|
||||
emit: Vue.Emit;
|
||||
}): {
|
||||
selection: obj[];
|
||||
onSelectionChange: (selection: any[]) => void;
|
||||
};
|
||||
|
@ -1,22 +1,19 @@
|
||||
/// <reference types="../index" />
|
||||
export declare function useSort({
|
||||
config,
|
||||
Table,
|
||||
emit
|
||||
}: {
|
||||
config: ClTable.Config;
|
||||
Table: Vue.Ref<any>;
|
||||
emit: Vue.Emit;
|
||||
export declare function useSort({ config, Table, emit }: {
|
||||
config: ClTable.Config;
|
||||
Table: Vue.Ref<any>;
|
||||
emit: Vue.Emit;
|
||||
}): {
|
||||
defaultSort:
|
||||
| {
|
||||
prop: string;
|
||||
order: "descending" | "ascending";
|
||||
}
|
||||
| {
|
||||
prop?: undefined;
|
||||
order?: undefined;
|
||||
};
|
||||
onSortChange: ({ prop, order }: { prop: string | undefined; order: string }) => void;
|
||||
changeSort: (prop: string, order: string) => void;
|
||||
defaultSort: {
|
||||
prop: string;
|
||||
order: "descending" | "ascending";
|
||||
} | {
|
||||
prop?: undefined;
|
||||
order?: undefined;
|
||||
};
|
||||
onSortChange: ({ prop, order }: {
|
||||
prop: string | undefined;
|
||||
order: string;
|
||||
}) => void;
|
||||
changeSort: (prop: string, order: string) => void;
|
||||
};
|
||||
|
150
packages/crud/types/components/table/index.d.ts
vendored
150
packages/crud/types/components/table/index.d.ts
vendored
@ -1,91 +1,61 @@
|
||||
declare const _default: import("vue").DefineComponent<
|
||||
import("vue").ExtractPropTypes<{
|
||||
columns: {
|
||||
type: ArrayConstructor;
|
||||
default: () => never[];
|
||||
};
|
||||
autoHeight: {
|
||||
type: BooleanConstructor;
|
||||
default: null;
|
||||
};
|
||||
height: null;
|
||||
contextMenu: {
|
||||
type: (BooleanConstructor | ArrayConstructor)[];
|
||||
default: null;
|
||||
};
|
||||
defaultSort: ObjectConstructor;
|
||||
sortRefresh: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
emptyText: StringConstructor;
|
||||
rowKey: {
|
||||
type: StringConstructor;
|
||||
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<{
|
||||
columns: {
|
||||
type: ArrayConstructor;
|
||||
default: () => never[];
|
||||
};
|
||||
autoHeight: {
|
||||
type: BooleanConstructor;
|
||||
default: null;
|
||||
};
|
||||
height: null;
|
||||
contextMenu: {
|
||||
type: (BooleanConstructor | ArrayConstructor)[];
|
||||
default: null;
|
||||
};
|
||||
defaultSort: ObjectConstructor;
|
||||
sortRefresh: {
|
||||
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
|
||||
>;
|
||||
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
||||
columns: {
|
||||
type: ArrayConstructor;
|
||||
default: () => never[];
|
||||
};
|
||||
autoHeight: {
|
||||
type: BooleanConstructor;
|
||||
default: null;
|
||||
};
|
||||
height: null;
|
||||
contextMenu: {
|
||||
type: (BooleanConstructor | ArrayConstructor)[];
|
||||
default: null;
|
||||
};
|
||||
defaultSort: ObjectConstructor;
|
||||
sortRefresh: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
emptyText: StringConstructor;
|
||||
rowKey: {
|
||||
type: StringConstructor;
|
||||
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<{
|
||||
columns: {
|
||||
type: ArrayConstructor;
|
||||
default: () => never[];
|
||||
};
|
||||
autoHeight: {
|
||||
type: BooleanConstructor;
|
||||
default: null;
|
||||
};
|
||||
height: null;
|
||||
contextMenu: {
|
||||
type: (BooleanConstructor | ArrayConstructor)[];
|
||||
default: null;
|
||||
};
|
||||
defaultSort: ObjectConstructor;
|
||||
sortRefresh: {
|
||||
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;
|
||||
|
98
packages/crud/types/components/upsert/index.d.ts
vendored
98
packages/crud/types/components/upsert/index.d.ts
vendored
@ -1,62 +1,38 @@
|
||||
declare const _default: import("vue").DefineComponent<
|
||||
import("vue").ExtractPropTypes<{
|
||||
items: {
|
||||
type: ArrayConstructor;
|
||||
default: () => never[];
|
||||
};
|
||||
props: ObjectConstructor;
|
||||
sync: BooleanConstructor;
|
||||
op: ObjectConstructor;
|
||||
dialog: ObjectConstructor;
|
||||
onOpen: FunctionConstructor;
|
||||
onOpened: FunctionConstructor;
|
||||
onClose: FunctionConstructor;
|
||||
onClosed: FunctionConstructor;
|
||||
onInfo: FunctionConstructor;
|
||||
onSubmit: FunctionConstructor;
|
||||
}>,
|
||||
() => any,
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
import("vue").ComponentOptionsMixin,
|
||||
import("vue").ComponentOptionsMixin,
|
||||
("opened" | "closed")[],
|
||||
"opened" | "closed",
|
||||
import("vue").PublicProps,
|
||||
Readonly<
|
||||
import("vue").ExtractPropTypes<{
|
||||
items: {
|
||||
type: ArrayConstructor;
|
||||
default: () => never[];
|
||||
};
|
||||
props: ObjectConstructor;
|
||||
sync: BooleanConstructor;
|
||||
op: ObjectConstructor;
|
||||
dialog: ObjectConstructor;
|
||||
onOpen: FunctionConstructor;
|
||||
onOpened: FunctionConstructor;
|
||||
onClose: FunctionConstructor;
|
||||
onClosed: FunctionConstructor;
|
||||
onInfo: FunctionConstructor;
|
||||
onSubmit: FunctionConstructor;
|
||||
}>
|
||||
> &
|
||||
Readonly<{
|
||||
onOpened?: ((...args: any[]) => any) | undefined;
|
||||
onClosed?: ((...args: any[]) => any) | undefined;
|
||||
}>,
|
||||
{
|
||||
sync: boolean;
|
||||
items: unknown[];
|
||||
},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
string,
|
||||
import("vue").ComponentProvideOptions,
|
||||
true,
|
||||
{},
|
||||
any
|
||||
>;
|
||||
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
||||
items: {
|
||||
type: ArrayConstructor;
|
||||
default: () => never[];
|
||||
};
|
||||
props: ObjectConstructor;
|
||||
sync: BooleanConstructor;
|
||||
op: ObjectConstructor;
|
||||
dialog: ObjectConstructor;
|
||||
onOpen: FunctionConstructor;
|
||||
onOpened: FunctionConstructor;
|
||||
onClose: FunctionConstructor;
|
||||
onClosed: FunctionConstructor;
|
||||
onInfo: FunctionConstructor;
|
||||
onSubmit: FunctionConstructor;
|
||||
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("opened" | "closed")[], "opened" | "closed", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
items: {
|
||||
type: ArrayConstructor;
|
||||
default: () => never[];
|
||||
};
|
||||
props: ObjectConstructor;
|
||||
sync: BooleanConstructor;
|
||||
op: ObjectConstructor;
|
||||
dialog: ObjectConstructor;
|
||||
onOpen: FunctionConstructor;
|
||||
onOpened: FunctionConstructor;
|
||||
onClose: FunctionConstructor;
|
||||
onClosed: FunctionConstructor;
|
||||
onInfo: FunctionConstructor;
|
||||
onSubmit: FunctionConstructor;
|
||||
}>> & Readonly<{
|
||||
onOpened?: ((...args: any[]) => any) | undefined;
|
||||
onClosed?: ((...args: any[]) => any) | undefined;
|
||||
}>, {
|
||||
sync: boolean;
|
||||
items: unknown[];
|
||||
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
|
27
packages/crud/types/hooks/crud.d.ts
vendored
27
packages/crud/types/hooks/crud.d.ts
vendored
@ -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;
|
||||
onFullscreen(visible: boolean): void;
|
||||
}): ClDialog.Provide;
|
||||
|
12
packages/crud/types/hooks/index.d.ts
vendored
12
packages/crud/types/hooks/index.d.ts
vendored
@ -1,16 +1,16 @@
|
||||
/// <reference types="../index" />
|
||||
import { Mitt } from "../utils/mitt";
|
||||
export declare function useCore(): {
|
||||
crud: ClCrud.Ref;
|
||||
mitt: Mitt;
|
||||
crud: ClCrud.Ref;
|
||||
mitt: Mitt;
|
||||
};
|
||||
export declare function useConfig(): Config;
|
||||
export declare function useBrowser(): Browser;
|
||||
export declare function useRefs(): {
|
||||
refs: {
|
||||
[key: string]: obj;
|
||||
};
|
||||
setRefs: (name: string) => (el: any) => void;
|
||||
refs: {
|
||||
[key: string]: obj;
|
||||
};
|
||||
setRefs: (name: string) => (el: any) => void;
|
||||
};
|
||||
export declare function useProxy(ctx: any): any;
|
||||
export declare function useElApi(keys: string[], el: any): obj;
|
||||
|
9
packages/crud/types/index.d.ts
vendored
9
packages/crud/types/index.d.ts
vendored
@ -2,12 +2,9 @@
|
||||
import type { App } from "vue";
|
||||
import "./static/index.scss";
|
||||
declare const Crud: {
|
||||
install(
|
||||
app: App,
|
||||
options?: Options
|
||||
): {
|
||||
name: string;
|
||||
};
|
||||
install(app: App, options?: Options): {
|
||||
name: string;
|
||||
};
|
||||
};
|
||||
export default Crud;
|
||||
export * from "./emitter";
|
||||
|
58
packages/crud/types/locale/en.d.ts
vendored
58
packages/crud/types/locale/en.d.ts
vendored
@ -1,32 +1,32 @@
|
||||
declare const _default: {
|
||||
op: string;
|
||||
add: string;
|
||||
delete: string;
|
||||
multiDelete: string;
|
||||
update: string;
|
||||
refresh: string;
|
||||
info: string;
|
||||
search: string;
|
||||
reset: string;
|
||||
clear: string;
|
||||
save: string;
|
||||
close: string;
|
||||
confirm: string;
|
||||
advSearch: string;
|
||||
searchKey: string;
|
||||
placeholder: string;
|
||||
placeholderSelect: string;
|
||||
tips: string;
|
||||
saveSuccess: string;
|
||||
deleteSuccess: string;
|
||||
deleteConfirm: string;
|
||||
empty: string;
|
||||
desc: string;
|
||||
asc: string;
|
||||
select: string;
|
||||
deselect: string;
|
||||
seeMore: string;
|
||||
hideContent: string;
|
||||
nonEmpty: string;
|
||||
op: string;
|
||||
add: string;
|
||||
delete: string;
|
||||
multiDelete: string;
|
||||
update: string;
|
||||
refresh: string;
|
||||
info: string;
|
||||
search: string;
|
||||
reset: string;
|
||||
clear: string;
|
||||
save: string;
|
||||
close: string;
|
||||
confirm: string;
|
||||
advSearch: string;
|
||||
searchKey: string;
|
||||
placeholder: string;
|
||||
placeholderSelect: string;
|
||||
tips: string;
|
||||
saveSuccess: string;
|
||||
deleteSuccess: string;
|
||||
deleteConfirm: string;
|
||||
empty: string;
|
||||
desc: string;
|
||||
asc: string;
|
||||
select: string;
|
||||
deselect: string;
|
||||
seeMore: string;
|
||||
hideContent: string;
|
||||
nonEmpty: string;
|
||||
};
|
||||
export default _default;
|
||||
|
248
packages/crud/types/locale/index.d.ts
vendored
248
packages/crud/types/locale/index.d.ts
vendored
@ -1,126 +1,126 @@
|
||||
export declare const locale: {
|
||||
en: {
|
||||
op: string;
|
||||
add: string;
|
||||
delete: string;
|
||||
multiDelete: string;
|
||||
update: string;
|
||||
refresh: string;
|
||||
info: string;
|
||||
search: string;
|
||||
reset: string;
|
||||
clear: string;
|
||||
save: string;
|
||||
close: string;
|
||||
confirm: string;
|
||||
advSearch: string;
|
||||
searchKey: string;
|
||||
placeholder: string;
|
||||
placeholderSelect: string;
|
||||
tips: string;
|
||||
saveSuccess: string;
|
||||
deleteSuccess: string;
|
||||
deleteConfirm: string;
|
||||
empty: string;
|
||||
desc: string;
|
||||
asc: string;
|
||||
select: string;
|
||||
deselect: string;
|
||||
seeMore: string;
|
||||
hideContent: string;
|
||||
nonEmpty: string;
|
||||
};
|
||||
ja: {
|
||||
op: string;
|
||||
add: string;
|
||||
delete: string;
|
||||
multiDelete: string;
|
||||
update: string;
|
||||
refresh: string;
|
||||
info: string;
|
||||
search: string;
|
||||
reset: string;
|
||||
clear: string;
|
||||
save: string;
|
||||
close: string;
|
||||
confirm: string;
|
||||
advSearch: string;
|
||||
searchKey: string;
|
||||
placeholder: string;
|
||||
placeholderSelect: string;
|
||||
tips: string;
|
||||
saveSuccess: string;
|
||||
deleteSuccess: string;
|
||||
deleteConfirm: string;
|
||||
empty: string;
|
||||
desc: string;
|
||||
asc: string;
|
||||
select: string;
|
||||
deselect: string;
|
||||
seeMore: string;
|
||||
hideContent: string;
|
||||
nonEmpty: string;
|
||||
};
|
||||
zhCn: {
|
||||
op: string;
|
||||
add: string;
|
||||
delete: string;
|
||||
multiDelete: string;
|
||||
update: string;
|
||||
refresh: string;
|
||||
info: string;
|
||||
search: string;
|
||||
reset: string;
|
||||
clear: string;
|
||||
save: string;
|
||||
close: string;
|
||||
confirm: string;
|
||||
advSearch: string;
|
||||
searchKey: string;
|
||||
placeholder: string;
|
||||
placeholderSelect: string;
|
||||
tips: string;
|
||||
saveSuccess: string;
|
||||
deleteSuccess: string;
|
||||
deleteConfirm: string;
|
||||
empty: string;
|
||||
desc: string;
|
||||
asc: string;
|
||||
select: string;
|
||||
deselect: string;
|
||||
seeMore: string;
|
||||
hideContent: string;
|
||||
nonEmpty: string;
|
||||
};
|
||||
zhTw: {
|
||||
op: string;
|
||||
add: string;
|
||||
delete: string;
|
||||
multiDelete: string;
|
||||
update: string;
|
||||
refresh: string;
|
||||
info: string;
|
||||
search: string;
|
||||
reset: string;
|
||||
clear: string;
|
||||
save: string;
|
||||
close: string;
|
||||
confirm: string;
|
||||
advSearch: string;
|
||||
searchKey: string;
|
||||
placeholder: string;
|
||||
placeholderSelect: string;
|
||||
tips: string;
|
||||
saveSuccess: string;
|
||||
deleteSuccess: string;
|
||||
deleteConfirm: string;
|
||||
empty: string;
|
||||
desc: string;
|
||||
asc: string;
|
||||
select: string;
|
||||
deselect: string;
|
||||
seeMore: string;
|
||||
hideContent: string;
|
||||
nonEmpty: string;
|
||||
};
|
||||
en: {
|
||||
op: string;
|
||||
add: string;
|
||||
delete: string;
|
||||
multiDelete: string;
|
||||
update: string;
|
||||
refresh: string;
|
||||
info: string;
|
||||
search: string;
|
||||
reset: string;
|
||||
clear: string;
|
||||
save: string;
|
||||
close: string;
|
||||
confirm: string;
|
||||
advSearch: string;
|
||||
searchKey: string;
|
||||
placeholder: string;
|
||||
placeholderSelect: string;
|
||||
tips: string;
|
||||
saveSuccess: string;
|
||||
deleteSuccess: string;
|
||||
deleteConfirm: string;
|
||||
empty: string;
|
||||
desc: string;
|
||||
asc: string;
|
||||
select: string;
|
||||
deselect: string;
|
||||
seeMore: string;
|
||||
hideContent: string;
|
||||
nonEmpty: string;
|
||||
};
|
||||
ja: {
|
||||
op: string;
|
||||
add: string;
|
||||
delete: string;
|
||||
multiDelete: string;
|
||||
update: string;
|
||||
refresh: string;
|
||||
info: string;
|
||||
search: string;
|
||||
reset: string;
|
||||
clear: string;
|
||||
save: string;
|
||||
close: string;
|
||||
confirm: string;
|
||||
advSearch: string;
|
||||
searchKey: string;
|
||||
placeholder: string;
|
||||
placeholderSelect: string;
|
||||
tips: string;
|
||||
saveSuccess: string;
|
||||
deleteSuccess: string;
|
||||
deleteConfirm: string;
|
||||
empty: string;
|
||||
desc: string;
|
||||
asc: string;
|
||||
select: string;
|
||||
deselect: string;
|
||||
seeMore: string;
|
||||
hideContent: string;
|
||||
nonEmpty: string;
|
||||
};
|
||||
zhCn: {
|
||||
op: string;
|
||||
add: string;
|
||||
delete: string;
|
||||
multiDelete: string;
|
||||
update: string;
|
||||
refresh: string;
|
||||
info: string;
|
||||
search: string;
|
||||
reset: string;
|
||||
clear: string;
|
||||
save: string;
|
||||
close: string;
|
||||
confirm: string;
|
||||
advSearch: string;
|
||||
searchKey: string;
|
||||
placeholder: string;
|
||||
placeholderSelect: string;
|
||||
tips: string;
|
||||
saveSuccess: string;
|
||||
deleteSuccess: string;
|
||||
deleteConfirm: string;
|
||||
empty: string;
|
||||
desc: string;
|
||||
asc: string;
|
||||
select: string;
|
||||
deselect: string;
|
||||
seeMore: string;
|
||||
hideContent: string;
|
||||
nonEmpty: string;
|
||||
};
|
||||
zhTw: {
|
||||
op: string;
|
||||
add: string;
|
||||
delete: string;
|
||||
multiDelete: string;
|
||||
update: string;
|
||||
refresh: string;
|
||||
info: string;
|
||||
search: string;
|
||||
reset: string;
|
||||
clear: string;
|
||||
save: string;
|
||||
close: string;
|
||||
confirm: string;
|
||||
advSearch: string;
|
||||
searchKey: string;
|
||||
placeholder: string;
|
||||
placeholderSelect: string;
|
||||
tips: string;
|
||||
saveSuccess: string;
|
||||
deleteSuccess: string;
|
||||
deleteConfirm: string;
|
||||
empty: string;
|
||||
desc: string;
|
||||
asc: string;
|
||||
select: string;
|
||||
deselect: string;
|
||||
seeMore: string;
|
||||
hideContent: string;
|
||||
nonEmpty: string;
|
||||
};
|
||||
};
|
||||
|
58
packages/crud/types/locale/ja.d.ts
vendored
58
packages/crud/types/locale/ja.d.ts
vendored
@ -1,32 +1,32 @@
|
||||
declare const _default: {
|
||||
op: string;
|
||||
add: string;
|
||||
delete: string;
|
||||
multiDelete: string;
|
||||
update: string;
|
||||
refresh: string;
|
||||
info: string;
|
||||
search: string;
|
||||
reset: string;
|
||||
clear: string;
|
||||
save: string;
|
||||
close: string;
|
||||
confirm: string;
|
||||
advSearch: string;
|
||||
searchKey: string;
|
||||
placeholder: string;
|
||||
placeholderSelect: string;
|
||||
tips: string;
|
||||
saveSuccess: string;
|
||||
deleteSuccess: string;
|
||||
deleteConfirm: string;
|
||||
empty: string;
|
||||
desc: string;
|
||||
asc: string;
|
||||
select: string;
|
||||
deselect: string;
|
||||
seeMore: string;
|
||||
hideContent: string;
|
||||
nonEmpty: string;
|
||||
op: string;
|
||||
add: string;
|
||||
delete: string;
|
||||
multiDelete: string;
|
||||
update: string;
|
||||
refresh: string;
|
||||
info: string;
|
||||
search: string;
|
||||
reset: string;
|
||||
clear: string;
|
||||
save: string;
|
||||
close: string;
|
||||
confirm: string;
|
||||
advSearch: string;
|
||||
searchKey: string;
|
||||
placeholder: string;
|
||||
placeholderSelect: string;
|
||||
tips: string;
|
||||
saveSuccess: string;
|
||||
deleteSuccess: string;
|
||||
deleteConfirm: string;
|
||||
empty: string;
|
||||
desc: string;
|
||||
asc: string;
|
||||
select: string;
|
||||
deselect: string;
|
||||
seeMore: string;
|
||||
hideContent: string;
|
||||
nonEmpty: string;
|
||||
};
|
||||
export default _default;
|
||||
|
58
packages/crud/types/locale/zh-cn.d.ts
vendored
58
packages/crud/types/locale/zh-cn.d.ts
vendored
@ -1,32 +1,32 @@
|
||||
declare const _default: {
|
||||
op: string;
|
||||
add: string;
|
||||
delete: string;
|
||||
multiDelete: string;
|
||||
update: string;
|
||||
refresh: string;
|
||||
info: string;
|
||||
search: string;
|
||||
reset: string;
|
||||
clear: string;
|
||||
save: string;
|
||||
close: string;
|
||||
confirm: string;
|
||||
advSearch: string;
|
||||
searchKey: string;
|
||||
placeholder: string;
|
||||
placeholderSelect: string;
|
||||
tips: string;
|
||||
saveSuccess: string;
|
||||
deleteSuccess: string;
|
||||
deleteConfirm: string;
|
||||
empty: string;
|
||||
desc: string;
|
||||
asc: string;
|
||||
select: string;
|
||||
deselect: string;
|
||||
seeMore: string;
|
||||
hideContent: string;
|
||||
nonEmpty: string;
|
||||
op: string;
|
||||
add: string;
|
||||
delete: string;
|
||||
multiDelete: string;
|
||||
update: string;
|
||||
refresh: string;
|
||||
info: string;
|
||||
search: string;
|
||||
reset: string;
|
||||
clear: string;
|
||||
save: string;
|
||||
close: string;
|
||||
confirm: string;
|
||||
advSearch: string;
|
||||
searchKey: string;
|
||||
placeholder: string;
|
||||
placeholderSelect: string;
|
||||
tips: string;
|
||||
saveSuccess: string;
|
||||
deleteSuccess: string;
|
||||
deleteConfirm: string;
|
||||
empty: string;
|
||||
desc: string;
|
||||
asc: string;
|
||||
select: string;
|
||||
deselect: string;
|
||||
seeMore: string;
|
||||
hideContent: string;
|
||||
nonEmpty: string;
|
||||
};
|
||||
export default _default;
|
||||
|
58
packages/crud/types/locale/zh-tw.d.ts
vendored
58
packages/crud/types/locale/zh-tw.d.ts
vendored
@ -1,32 +1,32 @@
|
||||
declare const _default: {
|
||||
op: string;
|
||||
add: string;
|
||||
delete: string;
|
||||
multiDelete: string;
|
||||
update: string;
|
||||
refresh: string;
|
||||
info: string;
|
||||
search: string;
|
||||
reset: string;
|
||||
clear: string;
|
||||
save: string;
|
||||
close: string;
|
||||
confirm: string;
|
||||
advSearch: string;
|
||||
searchKey: string;
|
||||
placeholder: string;
|
||||
placeholderSelect: string;
|
||||
tips: string;
|
||||
saveSuccess: string;
|
||||
deleteSuccess: string;
|
||||
deleteConfirm: string;
|
||||
empty: string;
|
||||
desc: string;
|
||||
asc: string;
|
||||
select: string;
|
||||
deselect: string;
|
||||
seeMore: string;
|
||||
hideContent: string;
|
||||
nonEmpty: string;
|
||||
op: string;
|
||||
add: string;
|
||||
delete: string;
|
||||
multiDelete: string;
|
||||
update: string;
|
||||
refresh: string;
|
||||
info: string;
|
||||
search: string;
|
||||
reset: string;
|
||||
clear: string;
|
||||
save: string;
|
||||
close: string;
|
||||
confirm: string;
|
||||
advSearch: string;
|
||||
searchKey: string;
|
||||
placeholder: string;
|
||||
placeholderSelect: string;
|
||||
tips: string;
|
||||
saveSuccess: string;
|
||||
deleteSuccess: string;
|
||||
deleteConfirm: string;
|
||||
empty: string;
|
||||
desc: string;
|
||||
asc: string;
|
||||
select: string;
|
||||
deselect: string;
|
||||
seeMore: string;
|
||||
hideContent: string;
|
||||
nonEmpty: string;
|
||||
};
|
||||
export default _default;
|
||||
|
60
packages/crud/types/test/service.d.ts
vendored
60
packages/crud/types/test/service.d.ts
vendored
@ -1,32 +1,34 @@
|
||||
declare class TestService {
|
||||
page(params: any): Promise<unknown>;
|
||||
update(params: { id: any; [key: string]: any }): Promise<void>;
|
||||
add(params: any): Promise<string>;
|
||||
info(params: { id: any }): Promise<
|
||||
| {
|
||||
id: number;
|
||||
name: string;
|
||||
createTime: string;
|
||||
wages: number;
|
||||
status: number;
|
||||
account: string;
|
||||
occupation: number;
|
||||
phone: number;
|
||||
}
|
||||
| undefined
|
||||
>;
|
||||
delete(params: { ids: any[] }): Promise<void>;
|
||||
list(): Promise<
|
||||
{
|
||||
id: number;
|
||||
name: string;
|
||||
createTime: string;
|
||||
wages: number;
|
||||
status: number;
|
||||
account: string;
|
||||
occupation: number;
|
||||
phone: number;
|
||||
}[]
|
||||
>;
|
||||
page(params: any): Promise<unknown>;
|
||||
update(params: {
|
||||
id: any;
|
||||
[key: string]: any;
|
||||
}): Promise<void>;
|
||||
add(params: any): Promise<string>;
|
||||
info(params: {
|
||||
id: any;
|
||||
}): Promise<{
|
||||
id: number;
|
||||
name: string;
|
||||
createTime: string;
|
||||
wages: number;
|
||||
status: number;
|
||||
account: string;
|
||||
occupation: number;
|
||||
phone: number;
|
||||
} | undefined>;
|
||||
delete(params: {
|
||||
ids: any[];
|
||||
}): Promise<void>;
|
||||
list(): Promise<{
|
||||
id: number;
|
||||
name: string;
|
||||
createTime: string;
|
||||
wages: number;
|
||||
status: number;
|
||||
account: string;
|
||||
occupation: number;
|
||||
phone: number;
|
||||
}[]>;
|
||||
}
|
||||
export { TestService };
|
||||
|
6
packages/crud/types/utils/form-hook.d.ts
vendored
6
packages/crud/types/utils/form-hook.d.ts
vendored
@ -1,10 +1,10 @@
|
||||
/// <reference types="../index" />
|
||||
export declare const format: {
|
||||
[key: string]: ClForm.HookFn;
|
||||
[key: string]: ClForm.HookFn;
|
||||
};
|
||||
declare const formHook: {
|
||||
bind(data: any): void;
|
||||
submit(data: any): void;
|
||||
bind(data: any): void;
|
||||
submit(data: any): void;
|
||||
};
|
||||
export declare function registerFormHook(name: string, fn: ClForm.HookFn): void;
|
||||
export default formHook;
|
||||
|
6
packages/crud/types/utils/global.d.ts
vendored
6
packages/crud/types/utils/global.d.ts
vendored
@ -1,7 +1,7 @@
|
||||
import { App } from "vue";
|
||||
declare const _default: {
|
||||
readonly vue: App<any>;
|
||||
get(key: string): any;
|
||||
set(key: string, value: any): void;
|
||||
readonly vue: App<any>;
|
||||
get(key: string): any;
|
||||
set(key: string, value: any): void;
|
||||
};
|
||||
export default _default;
|
||||
|
10
packages/crud/types/utils/index.d.ts
vendored
10
packages/crud/types/utils/index.d.ts
vendored
@ -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?: {
|
||||
allLevels: boolean;
|
||||
}
|
||||
): any;
|
||||
export declare function deepFind(value: any, list: any[], options?: {
|
||||
allLevels: boolean;
|
||||
}): any;
|
||||
export declare function uuid(separator?: string): string;
|
||||
|
12
packages/crud/types/utils/mitt.d.ts
vendored
12
packages/crud/types/utils/mitt.d.ts
vendored
@ -1,10 +1,10 @@
|
||||
declare const mitt: import("mitt").Emitter<Record<import("mitt").EventType, unknown>>;
|
||||
declare class Mitt {
|
||||
id: number;
|
||||
constructor(id?: number);
|
||||
send(type: "emit" | "off" | "on", name: string, ...args: any[]): void;
|
||||
emit(name: string, ...args: any[]): void;
|
||||
off(name: string, handler: (...args: any[]) => void): void;
|
||||
on(name: string, handler: (...args: any[]) => void): void;
|
||||
id: number;
|
||||
constructor(id?: number);
|
||||
send(type: "emit" | "off" | "on", name: string, ...args: any[]): void;
|
||||
emit(name: string, ...args: any[]): void;
|
||||
off(name: string, handler: (...args: any[]) => void): void;
|
||||
on(name: string, handler: (...args: any[]) => void): void;
|
||||
}
|
||||
export { Mitt, mitt };
|
||||
|
27
packages/crud/types/utils/parse.d.ts
vendored
27
packages/crud/types/utils/parse.d.ts
vendored
@ -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,
|
||||
{
|
||||
[key: string]: any;
|
||||
}
|
||||
>[];
|
||||
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):
|
||||
| {
|
||||
children: any;
|
||||
}
|
||||
| {
|
||||
children?: undefined;
|
||||
};
|
||||
export declare function parseExtensionComponent(vnode: any): {
|
||||
children: any;
|
||||
} | {
|
||||
children?: undefined;
|
||||
};
|
||||
|
16
packages/crud/types/utils/vnode.d.ts
vendored
16
packages/crud/types/utils/vnode.d.ts
vendored
@ -1,13 +1,13 @@
|
||||
import { VNode } from "vue";
|
||||
interface Options {
|
||||
prop?: string;
|
||||
scope?: any;
|
||||
item?: any;
|
||||
slots?: any;
|
||||
children?: any[] & any;
|
||||
custom?: (vnode: any) => any;
|
||||
render?: "slot" | null;
|
||||
[key: string]: any;
|
||||
prop?: string;
|
||||
scope?: any;
|
||||
item?: any;
|
||||
slots?: any;
|
||||
children?: any[] & any;
|
||||
custom?: (vnode: any) => any;
|
||||
render?: "slot" | null;
|
||||
[key: string]: any;
|
||||
}
|
||||
export declare function parseNode(vnode: any, options: Options): VNode;
|
||||
export declare function renderNode(vnode: any, options: Options): any;
|
||||
|
6559
pnpm-lock.yaml
6559
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user