easy-ep-ui 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +86 -0
- package/dist/easy-ep-ui.js +1 -0
- package/dist/style.css +1 -0
- package/es/components/ee-dict-select/index.d.ts +2 -0
- package/es/components/ee-dict-select/src/index.vue.d.ts +25 -0
- package/es/components/ee-form-dialog/index.d.ts +2 -0
- package/es/components/ee-form-dialog/src/index.vue.d.ts +126 -0
- package/es/components/ee-form-table/index.d.ts +2 -0
- package/es/components/ee-form-table/src/index.vue.d.ts +1323 -0
- package/es/components/ee-search-bar/index.d.ts +2 -0
- package/es/components/ee-search-bar/src/index.vue.d.ts +124 -0
- package/es/components/ee-status-tag/index.d.ts +2 -0
- package/es/components/ee-status-tag/src/index.vue.d.ts +13 -0
- package/es/index.d.ts +13 -0
- package/es/index.mjs +544 -0
- package/es/style.css +1 -0
- package/es/utils/types.d.ts +48 -0
- package/lib/components/ee-dict-select/index.d.ts +2 -0
- package/lib/components/ee-dict-select/src/index.vue.d.ts +25 -0
- package/lib/components/ee-form-dialog/index.d.ts +2 -0
- package/lib/components/ee-form-dialog/src/index.vue.d.ts +126 -0
- package/lib/components/ee-form-table/index.d.ts +2 -0
- package/lib/components/ee-form-table/src/index.vue.d.ts +1323 -0
- package/lib/components/ee-search-bar/index.d.ts +2 -0
- package/lib/components/ee-search-bar/src/index.vue.d.ts +124 -0
- package/lib/components/ee-status-tag/index.d.ts +2 -0
- package/lib/components/ee-status-tag/src/index.vue.d.ts +13 -0
- package/lib/index.cjs +1 -0
- package/lib/index.d.ts +13 -0
- package/lib/style.css +1 -0
- package/lib/utils/types.d.ts +48 -0
- package/package.json +62 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { SearchField } from '../../../utils/types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue: Record<string, any>;
|
|
4
|
+
fields: SearchField[];
|
|
5
|
+
inline?: boolean;
|
|
6
|
+
labelWidth?: string | number;
|
|
7
|
+
collapsible?: boolean;
|
|
8
|
+
collapsedCount?: number;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
11
|
+
"update:modelValue": (val: Record<string, any>) => any;
|
|
12
|
+
search: (val: Record<string, any>) => any;
|
|
13
|
+
reset: () => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
"onUpdate:modelValue"?: ((val: Record<string, any>) => any) | undefined;
|
|
16
|
+
onSearch?: ((val: Record<string, any>) => any) | undefined;
|
|
17
|
+
onReset?: (() => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
inline: boolean;
|
|
20
|
+
labelWidth: string | number;
|
|
21
|
+
collapsible: boolean;
|
|
22
|
+
collapsedCount: number;
|
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
24
|
+
formRef: ({
|
|
25
|
+
$: import('vue').ComponentInternalInstance;
|
|
26
|
+
$data: {};
|
|
27
|
+
$props: {
|
|
28
|
+
readonly model?: Record<string, any> | undefined;
|
|
29
|
+
readonly rules?: import('element-plus').FormRules | undefined;
|
|
30
|
+
readonly labelPosition?: "left" | "right" | "top" | undefined;
|
|
31
|
+
readonly requireAsteriskPosition?: "left" | "right" | undefined;
|
|
32
|
+
readonly labelWidth?: string | number | undefined;
|
|
33
|
+
readonly labelSuffix?: string | undefined;
|
|
34
|
+
readonly inline?: boolean | undefined;
|
|
35
|
+
readonly inlineMessage?: boolean | undefined;
|
|
36
|
+
readonly statusIcon?: boolean | undefined;
|
|
37
|
+
readonly showMessage?: boolean | undefined;
|
|
38
|
+
readonly validateOnRuleChange?: boolean | undefined;
|
|
39
|
+
readonly hideRequiredAsterisk?: boolean | undefined;
|
|
40
|
+
readonly scrollToError?: boolean | undefined;
|
|
41
|
+
readonly scrollIntoViewOptions?: (ScrollIntoViewOptions | boolean) | undefined;
|
|
42
|
+
readonly size?: import('element-plus').ComponentSize | undefined;
|
|
43
|
+
readonly disabled?: boolean | undefined;
|
|
44
|
+
readonly onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
45
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
46
|
+
$attrs: import('vue').Attrs;
|
|
47
|
+
$refs: {
|
|
48
|
+
[x: string]: unknown;
|
|
49
|
+
};
|
|
50
|
+
$slots: Readonly<{
|
|
51
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
52
|
+
}>;
|
|
53
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
54
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
55
|
+
$host: Element | null;
|
|
56
|
+
$emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
57
|
+
$el: any;
|
|
58
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').FormProps> & Readonly<{
|
|
59
|
+
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
60
|
+
}>, {
|
|
61
|
+
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
62
|
+
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
63
|
+
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
64
|
+
clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
65
|
+
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
66
|
+
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
67
|
+
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
68
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
69
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
70
|
+
validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
71
|
+
}, string, {
|
|
72
|
+
labelWidth: string | number;
|
|
73
|
+
labelPosition: "left" | "right" | "top";
|
|
74
|
+
requireAsteriskPosition: "left" | "right";
|
|
75
|
+
labelSuffix: string;
|
|
76
|
+
showMessage: boolean;
|
|
77
|
+
validateOnRuleChange: boolean;
|
|
78
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
79
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
80
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
81
|
+
created?: (() => void) | (() => void)[];
|
|
82
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
83
|
+
mounted?: (() => void) | (() => void)[];
|
|
84
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
85
|
+
updated?: (() => void) | (() => void)[];
|
|
86
|
+
activated?: (() => void) | (() => void)[];
|
|
87
|
+
deactivated?: (() => void) | (() => void)[];
|
|
88
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
89
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
90
|
+
destroyed?: (() => void) | (() => void)[];
|
|
91
|
+
unmounted?: (() => void) | (() => void)[];
|
|
92
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
93
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
94
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
95
|
+
};
|
|
96
|
+
$forceUpdate: () => void;
|
|
97
|
+
$nextTick: typeof import('vue').nextTick;
|
|
98
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
99
|
+
} & Readonly<{
|
|
100
|
+
labelWidth: string | number;
|
|
101
|
+
labelPosition: "left" | "right" | "top";
|
|
102
|
+
requireAsteriskPosition: "left" | "right";
|
|
103
|
+
labelSuffix: string;
|
|
104
|
+
showMessage: boolean;
|
|
105
|
+
validateOnRuleChange: boolean;
|
|
106
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
107
|
+
}> & Omit<Readonly<import('element-plus').FormProps> & Readonly<{
|
|
108
|
+
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
109
|
+
}>, "fields" | "labelWidth" | "labelPosition" | "requireAsteriskPosition" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues"> & {
|
|
110
|
+
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
111
|
+
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
112
|
+
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
113
|
+
clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
114
|
+
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
115
|
+
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
116
|
+
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
117
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
118
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
119
|
+
$slots: {
|
|
120
|
+
default?: (props: {}) => any;
|
|
121
|
+
};
|
|
122
|
+
}) | null;
|
|
123
|
+
}, HTMLDivElement>;
|
|
124
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StatusMapping } from '../../../utils/types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
value: string | number;
|
|
4
|
+
mapping: StatusMapping[];
|
|
5
|
+
fallbackLabel?: string;
|
|
6
|
+
defaultType?: StatusMapping['type'];
|
|
7
|
+
defaultEffect?: StatusMapping['effect'];
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
|
+
defaultType: "primary" | "success" | "warning" | "danger" | "info";
|
|
11
|
+
defaultEffect: "dark" | "light" | "plain";
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|
package/es/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { default as EeDictSelect } from './components/ee-dict-select';
|
|
3
|
+
import { default as EeStatusTag } from './components/ee-status-tag';
|
|
4
|
+
import { default as EeSearchBar } from './components/ee-search-bar';
|
|
5
|
+
import { default as EeFormDialog } from './components/ee-form-dialog';
|
|
6
|
+
import { default as EeFormTable } from './components/ee-form-table';
|
|
7
|
+
export type { DictOption, SearchField, TableColumn, FormField, Pagination, StatusMapping } from './utils/types';
|
|
8
|
+
export declare function install(app: App): void;
|
|
9
|
+
declare const EasyEpUI: {
|
|
10
|
+
install: typeof install;
|
|
11
|
+
};
|
|
12
|
+
export default EasyEpUI;
|
|
13
|
+
export { EeDictSelect, EeStatusTag, EeSearchBar, EeFormDialog, EeFormTable, };
|