el-plus 0.0.25 → 0.0.27
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/CHANGELOG.md +12 -0
- package/dist/index.full.js +2 -2
- package/dist/index.full.min.js +1 -1
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +1 -1
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +2 -2
- package/es/components/buttons/index.d.ts +17 -17
- package/es/components/buttons/src/buttons-vue.d.ts +2 -2
- package/es/components/custom-column/index.d.ts +12 -12
- package/es/components/custom-column/src/custom-column.d.ts +2 -2
- package/es/components/custom-column/src/custom-column.vue.d.ts +6 -6
- package/es/components/form/src/form-item.d.ts +3 -1
- package/es/components/form/src/form-item.mjs.map +1 -1
- package/es/components/form/src/form.vue.d.ts +5 -5
- package/es/components/header/index.d.ts +14 -14
- package/es/components/header/src/header.vue.d.ts +3 -3
- package/es/components/search-list-page/index.d.ts +245 -245
- package/es/components/search-list-page/src/search-list-page.d.ts +4 -4
- package/es/components/search-list-page/src/search-list-page.vue.d.ts +26 -26
- package/es/components/search-list-page/src/use-search-list-page.d.ts +19 -19
- package/es/components/select/index.d.ts +12 -12
- package/es/components/select/src/select.d.ts +4 -4
- package/es/components/select/src/select.vue.d.ts +8 -8
- package/es/components/table/index.d.ts +30 -30
- package/es/components/table/src/table.vue.d.ts +15 -15
- package/es/components/title/index.d.ts +11 -11
- package/es/components/title/src/title.vue.d.ts +1 -1
- package/es/hooks/dialog/use-choose-dialog.d.ts +1 -1
- package/es/hooks/dialog/use-form-dialog.d.ts +1 -1
- package/es/package.json.mjs +1 -1
- package/lib/components/buttons/index.d.ts +17 -17
- package/lib/components/buttons/src/buttons-vue.d.ts +2 -2
- package/lib/components/custom-column/index.d.ts +12 -12
- package/lib/components/custom-column/src/custom-column.d.ts +2 -2
- package/lib/components/custom-column/src/custom-column.vue.d.ts +6 -6
- package/lib/components/form/src/form-item.d.ts +3 -1
- package/lib/components/form/src/form-item.js.map +1 -1
- package/lib/components/form/src/form.vue.d.ts +5 -5
- package/lib/components/header/index.d.ts +14 -14
- package/lib/components/header/src/header.vue.d.ts +3 -3
- package/lib/components/search-list-page/index.d.ts +245 -245
- package/lib/components/search-list-page/src/search-list-page.d.ts +4 -4
- package/lib/components/search-list-page/src/search-list-page.vue.d.ts +26 -26
- package/lib/components/search-list-page/src/use-search-list-page.d.ts +19 -19
- package/lib/components/select/index.d.ts +12 -12
- package/lib/components/select/src/select.d.ts +4 -4
- package/lib/components/select/src/select.vue.d.ts +8 -8
- package/lib/components/table/index.d.ts +30 -30
- package/lib/components/table/src/table.vue.d.ts +15 -15
- package/lib/components/title/index.d.ts +11 -11
- package/lib/components/title/src/title.vue.d.ts +1 -1
- package/lib/hooks/dialog/use-choose-dialog.d.ts +1 -1
- package/lib/hooks/dialog/use-form-dialog.d.ts +1 -1
- package/lib/package.json.js +1 -1
- package/package.json +1 -1
package/dist/index.full.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! ElPlus v0.0.
|
|
1
|
+
/*! ElPlus v0.0.27 */
|
|
2
2
|
|
|
3
3
|
import { useAttrs, getCurrentInstance, inject, provide, ref, nextTick, defineComponent, computed, createVNode, Fragment, withDirectives, resolveComponent, mergeProps, resolveDirective, useTemplateRef, createTextVNode, h, mergeModels, useModel, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createCommentVNode, withCtx, renderSlot, renderList, createBlock, vShow, toDisplayString, reactive, useSlots, watch, onMounted, createSlots, normalizeProps, guardReactiveProps, markRaw, Transition, shallowReactive, isVNode, render, createElementVNode, toRaw } from 'vue';
|
|
4
4
|
import { buttonProps, useLocale as useLocale$1, ElLoading, ElMessage, ElMessageBox, formProps as formProps$1, formEmits as formEmits$1, ElTooltip, formItemProps as formItemProps$1, ElFormItem, ElForm, ElRow, ElCol, inputProps as inputProps$1, inputEmits as inputEmits$1, configProviderContextKey, ElConfigProvider, ElDialog, ElButton, ElTable, ElIcon, selectProps as selectProps$1, selectEmits as selectEmits$1, ElPageHeader, datePickerProps, linkProps as linkProps$1 } from 'element-plus';
|
|
@@ -3539,7 +3539,7 @@ var components = [
|
|
|
3539
3539
|
EpLink
|
|
3540
3540
|
];
|
|
3541
3541
|
|
|
3542
|
-
var version = "0.0.
|
|
3542
|
+
var version = "0.0.27";
|
|
3543
3543
|
|
|
3544
3544
|
var globalProperties = {
|
|
3545
3545
|
install(app) {
|
|
@@ -5,9 +5,9 @@ export declare const EpButtons: {
|
|
|
5
5
|
name: string;
|
|
6
6
|
prop: string;
|
|
7
7
|
permission: string;
|
|
8
|
-
onClick: (e: MouseEvent | import("
|
|
8
|
+
onClick: (e: MouseEvent | import("el-plus/es").TableScope) => void;
|
|
9
9
|
scopedSlots: Record<string, () => import("vue").VNode>;
|
|
10
|
-
disabled: import("
|
|
10
|
+
disabled: import("el-plus/es/utils").IDisabled;
|
|
11
11
|
confirm: boolean;
|
|
12
12
|
confirmText: string;
|
|
13
13
|
} & {} & {
|
|
@@ -31,7 +31,7 @@ export declare const EpButtons: {
|
|
|
31
31
|
readonly __epPropKey: true;
|
|
32
32
|
};
|
|
33
33
|
readonly disabled: {
|
|
34
|
-
type: import("vue").PropType<import("
|
|
34
|
+
type: import("vue").PropType<import("el-plus/es/utils").IDisabled>;
|
|
35
35
|
};
|
|
36
36
|
readonly icon: {
|
|
37
37
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
|
|
@@ -73,9 +73,9 @@ export declare const EpButtons: {
|
|
|
73
73
|
name: string;
|
|
74
74
|
prop: string;
|
|
75
75
|
permission: string;
|
|
76
|
-
onClick: (e: MouseEvent | import("
|
|
76
|
+
onClick: (e: MouseEvent | import("el-plus/es").TableScope) => void;
|
|
77
77
|
scopedSlots: Record<string, () => import("vue").VNode>;
|
|
78
|
-
disabled: import("
|
|
78
|
+
disabled: import("el-plus/es/utils").IDisabled;
|
|
79
79
|
confirm: boolean;
|
|
80
80
|
confirmText: string;
|
|
81
81
|
} & {} & {
|
|
@@ -83,9 +83,9 @@ export declare const EpButtons: {
|
|
|
83
83
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
84
84
|
}>[];
|
|
85
85
|
}, true, {}, {}, import("vue").GlobalComponents, {
|
|
86
|
-
[x: string]: (import("vue").ObjectDirective<import("
|
|
86
|
+
[x: string]: (import("vue").ObjectDirective<import("el-plus/es/directives/repeat-click").RepeatClickEl, import("el-plus/es/directives/repeat-click").RepeatClickOptions, string, any> & {
|
|
87
87
|
name: string;
|
|
88
|
-
}) | (import("vue").FunctionDirective<import("
|
|
88
|
+
}) | (import("vue").FunctionDirective<import("el-plus/es/directives/repeat-click").RepeatClickEl, import("el-plus/es/directives/repeat-click").RepeatClickOptions, string, any> & {
|
|
89
89
|
name: string;
|
|
90
90
|
});
|
|
91
91
|
} & import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
@@ -101,9 +101,9 @@ export declare const EpButtons: {
|
|
|
101
101
|
name: string;
|
|
102
102
|
prop: string;
|
|
103
103
|
permission: string;
|
|
104
|
-
onClick: (e: MouseEvent | import("
|
|
104
|
+
onClick: (e: MouseEvent | import("el-plus/es").TableScope) => void;
|
|
105
105
|
scopedSlots: Record<string, () => import("vue").VNode>;
|
|
106
|
-
disabled: import("
|
|
106
|
+
disabled: import("el-plus/es/utils").IDisabled;
|
|
107
107
|
confirm: boolean;
|
|
108
108
|
confirmText: string;
|
|
109
109
|
} & {} & {
|
|
@@ -127,7 +127,7 @@ export declare const EpButtons: {
|
|
|
127
127
|
readonly __epPropKey: true;
|
|
128
128
|
};
|
|
129
129
|
readonly disabled: {
|
|
130
|
-
type: import("vue").PropType<import("
|
|
130
|
+
type: import("vue").PropType<import("el-plus/es/utils").IDisabled>;
|
|
131
131
|
};
|
|
132
132
|
readonly icon: {
|
|
133
133
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
|
|
@@ -169,9 +169,9 @@ export declare const EpButtons: {
|
|
|
169
169
|
name: string;
|
|
170
170
|
prop: string;
|
|
171
171
|
permission: string;
|
|
172
|
-
onClick: (e: MouseEvent | import("
|
|
172
|
+
onClick: (e: MouseEvent | import("el-plus/es").TableScope) => void;
|
|
173
173
|
scopedSlots: Record<string, () => import("vue").VNode>;
|
|
174
|
-
disabled: import("
|
|
174
|
+
disabled: import("el-plus/es/utils").IDisabled;
|
|
175
175
|
confirm: boolean;
|
|
176
176
|
confirmText: string;
|
|
177
177
|
} & {} & {
|
|
@@ -202,7 +202,7 @@ export declare const EpButtons: {
|
|
|
202
202
|
readonly __epPropKey: true;
|
|
203
203
|
};
|
|
204
204
|
readonly disabled: {
|
|
205
|
-
type: import("vue").PropType<import("
|
|
205
|
+
type: import("vue").PropType<import("el-plus/es/utils").IDisabled>;
|
|
206
206
|
};
|
|
207
207
|
readonly icon: {
|
|
208
208
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
|
|
@@ -244,9 +244,9 @@ export declare const EpButtons: {
|
|
|
244
244
|
name: string;
|
|
245
245
|
prop: string;
|
|
246
246
|
permission: string;
|
|
247
|
-
onClick: (e: MouseEvent | import("
|
|
247
|
+
onClick: (e: MouseEvent | import("el-plus/es").TableScope) => void;
|
|
248
248
|
scopedSlots: Record<string, () => import("vue").VNode>;
|
|
249
|
-
disabled: import("
|
|
249
|
+
disabled: import("el-plus/es/utils").IDisabled;
|
|
250
250
|
confirm: boolean;
|
|
251
251
|
confirmText: string;
|
|
252
252
|
} & {} & {
|
|
@@ -254,9 +254,9 @@ export declare const EpButtons: {
|
|
|
254
254
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
255
255
|
}>[];
|
|
256
256
|
}, {}, string, {}, import("vue").GlobalComponents, {
|
|
257
|
-
[x: string]: (import("vue").ObjectDirective<import("
|
|
257
|
+
[x: string]: (import("vue").ObjectDirective<import("el-plus/es/directives/repeat-click").RepeatClickEl, import("el-plus/es/directives/repeat-click").RepeatClickOptions, string, any> & {
|
|
258
258
|
name: string;
|
|
259
|
-
}) | (import("vue").FunctionDirective<import("
|
|
259
|
+
}) | (import("vue").FunctionDirective<import("el-plus/es/directives/repeat-click").RepeatClickEl, import("el-plus/es/directives/repeat-click").RepeatClickOptions, string, any> & {
|
|
260
260
|
name: string;
|
|
261
261
|
});
|
|
262
262
|
} & import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
|
|
@@ -103,7 +103,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
103
103
|
name: string;
|
|
104
104
|
prop: string;
|
|
105
105
|
permission: string;
|
|
106
|
-
onClick: (e: MouseEvent | import("
|
|
106
|
+
onClick: (e: MouseEvent | import("el-plus/es").TableScope) => void;
|
|
107
107
|
scopedSlots: Record<string, () => import("vue").VNode>;
|
|
108
108
|
disabled: import("el-plus/es/utils/props").IDisabled;
|
|
109
109
|
confirm: boolean;
|
|
@@ -113,7 +113,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
113
113
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
114
114
|
}>[];
|
|
115
115
|
}, {}, {}, {
|
|
116
|
-
[vRepeatClick.name]: import("vue").Directive<import("
|
|
116
|
+
[vRepeatClick.name]: import("vue").Directive<import("el-plus/es/directives/repeat-click").RepeatClickEl, import("el-plus/es/directives/repeat-click").RepeatClickOptions> & {
|
|
117
117
|
name: string;
|
|
118
118
|
};
|
|
119
119
|
[vPermission.name]: import("vue").Directive<HTMLElement> & {
|
|
@@ -5,11 +5,11 @@ export declare const EpCustomColumn: {
|
|
|
5
5
|
};
|
|
6
6
|
readonly api: {
|
|
7
7
|
readonly default: "/api-item/api/customizedColumns/find";
|
|
8
|
-
readonly type: import("vue").PropType<import("
|
|
8
|
+
readonly type: import("vue").PropType<import("el-plus/es/types/axios").Api>;
|
|
9
9
|
};
|
|
10
10
|
readonly saveApi: {
|
|
11
11
|
readonly default: "/api-item/api/customizedColumns/save";
|
|
12
|
-
readonly type: import("vue").PropType<import("
|
|
12
|
+
readonly type: import("vue").PropType<import("el-plus/es/types/axios").Api>;
|
|
13
13
|
};
|
|
14
14
|
readonly showHandler: {
|
|
15
15
|
readonly type: BooleanConstructor;
|
|
@@ -24,8 +24,8 @@ export declare const EpCustomColumn: {
|
|
|
24
24
|
confirm: (data: import("element-plus").TransferDataItem[]) => void;
|
|
25
25
|
loaded: (data: import("element-plus").TransferDataItem[]) => void;
|
|
26
26
|
}, import("vue").PublicProps, {
|
|
27
|
-
readonly api: import("
|
|
28
|
-
readonly saveApi: import("
|
|
27
|
+
readonly api: import("el-plus/es/types/axios").Api;
|
|
28
|
+
readonly saveApi: import("el-plus/es/types/axios").Api;
|
|
29
29
|
readonly showHandler: boolean;
|
|
30
30
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
31
31
|
P: {};
|
|
@@ -40,11 +40,11 @@ export declare const EpCustomColumn: {
|
|
|
40
40
|
};
|
|
41
41
|
readonly api: {
|
|
42
42
|
readonly default: "/api-item/api/customizedColumns/find";
|
|
43
|
-
readonly type: import("vue").PropType<import("
|
|
43
|
+
readonly type: import("vue").PropType<import("el-plus/es/types/axios").Api>;
|
|
44
44
|
};
|
|
45
45
|
readonly saveApi: {
|
|
46
46
|
readonly default: "/api-item/api/customizedColumns/save";
|
|
47
|
-
readonly type: import("vue").PropType<import("
|
|
47
|
+
readonly type: import("vue").PropType<import("el-plus/es/types/axios").Api>;
|
|
48
48
|
};
|
|
49
49
|
readonly showHandler: {
|
|
50
50
|
readonly type: BooleanConstructor;
|
|
@@ -56,8 +56,8 @@ export declare const EpCustomColumn: {
|
|
|
56
56
|
}>, {
|
|
57
57
|
open: () => Promise<void>;
|
|
58
58
|
}, {}, {}, {}, {
|
|
59
|
-
readonly api: import("
|
|
60
|
-
readonly saveApi: import("
|
|
59
|
+
readonly api: import("el-plus/es/types/axios").Api;
|
|
60
|
+
readonly saveApi: import("el-plus/es/types/axios").Api;
|
|
61
61
|
readonly showHandler: boolean;
|
|
62
62
|
}>;
|
|
63
63
|
__isFragment?: never;
|
|
@@ -69,11 +69,11 @@ export declare const EpCustomColumn: {
|
|
|
69
69
|
};
|
|
70
70
|
readonly api: {
|
|
71
71
|
readonly default: "/api-item/api/customizedColumns/find";
|
|
72
|
-
readonly type: import("vue").PropType<import("
|
|
72
|
+
readonly type: import("vue").PropType<import("el-plus/es/types/axios").Api>;
|
|
73
73
|
};
|
|
74
74
|
readonly saveApi: {
|
|
75
75
|
readonly default: "/api-item/api/customizedColumns/save";
|
|
76
|
-
readonly type: import("vue").PropType<import("
|
|
76
|
+
readonly type: import("vue").PropType<import("el-plus/es/types/axios").Api>;
|
|
77
77
|
};
|
|
78
78
|
readonly showHandler: {
|
|
79
79
|
readonly type: BooleanConstructor;
|
|
@@ -88,8 +88,8 @@ export declare const EpCustomColumn: {
|
|
|
88
88
|
confirm: (data: import("element-plus").TransferDataItem[]) => void;
|
|
89
89
|
loaded: (data: import("element-plus").TransferDataItem[]) => void;
|
|
90
90
|
}, string, {
|
|
91
|
-
readonly api: import("
|
|
92
|
-
readonly saveApi: import("
|
|
91
|
+
readonly api: import("el-plus/es/types/axios").Api;
|
|
92
|
+
readonly saveApi: import("el-plus/es/types/axios").Api;
|
|
93
93
|
readonly showHandler: boolean;
|
|
94
94
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
|
|
95
95
|
export default EpCustomColumn;
|
|
@@ -6,11 +6,11 @@ export declare const customColumnProps: {
|
|
|
6
6
|
};
|
|
7
7
|
readonly api: {
|
|
8
8
|
readonly default: "/api-item/api/customizedColumns/find";
|
|
9
|
-
readonly type: PropType<import("
|
|
9
|
+
readonly type: PropType<import("el-plus/es/types").Api>;
|
|
10
10
|
};
|
|
11
11
|
readonly saveApi: {
|
|
12
12
|
readonly default: "/api-item/api/customizedColumns/save";
|
|
13
|
-
readonly type: PropType<import("
|
|
13
|
+
readonly type: PropType<import("el-plus/es/types").Api>;
|
|
14
14
|
};
|
|
15
15
|
readonly showHandler: {
|
|
16
16
|
readonly type: BooleanConstructor;
|
|
@@ -5,11 +5,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
5
5
|
};
|
|
6
6
|
readonly api: {
|
|
7
7
|
readonly default: "/api-item/api/customizedColumns/find";
|
|
8
|
-
readonly type: import("vue").PropType<import("
|
|
8
|
+
readonly type: import("vue").PropType<import("el-plus/es/types").Api>;
|
|
9
9
|
};
|
|
10
10
|
readonly saveApi: {
|
|
11
11
|
readonly default: "/api-item/api/customizedColumns/save";
|
|
12
|
-
readonly type: import("vue").PropType<import("
|
|
12
|
+
readonly type: import("vue").PropType<import("el-plus/es/types").Api>;
|
|
13
13
|
};
|
|
14
14
|
readonly showHandler: {
|
|
15
15
|
readonly type: BooleanConstructor;
|
|
@@ -26,11 +26,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
26
26
|
};
|
|
27
27
|
readonly api: {
|
|
28
28
|
readonly default: "/api-item/api/customizedColumns/find";
|
|
29
|
-
readonly type: import("vue").PropType<import("
|
|
29
|
+
readonly type: import("vue").PropType<import("el-plus/es/types").Api>;
|
|
30
30
|
};
|
|
31
31
|
readonly saveApi: {
|
|
32
32
|
readonly default: "/api-item/api/customizedColumns/save";
|
|
33
|
-
readonly type: import("vue").PropType<import("
|
|
33
|
+
readonly type: import("vue").PropType<import("el-plus/es/types").Api>;
|
|
34
34
|
};
|
|
35
35
|
readonly showHandler: {
|
|
36
36
|
readonly type: BooleanConstructor;
|
|
@@ -40,8 +40,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
40
40
|
onConfirm?: ((data: TransferDataItem[]) => any) | undefined;
|
|
41
41
|
onLoaded?: ((data: TransferDataItem[]) => any) | undefined;
|
|
42
42
|
}>, {
|
|
43
|
-
readonly api: import("
|
|
44
|
-
readonly saveApi: import("
|
|
43
|
+
readonly api: import("el-plus/es/types").Api;
|
|
44
|
+
readonly saveApi: import("el-plus/es/types").Api;
|
|
45
45
|
readonly showHandler: boolean;
|
|
46
46
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
47
47
|
declare const _default: typeof __VLS_export;
|
|
@@ -63,5 +63,7 @@ export declare const formItemProps: {
|
|
|
63
63
|
__epPropKey: true;
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
|
-
export type FormItemProps = ExtractPublicPropTypes<typeof formItemProps
|
|
66
|
+
export type FormItemProps = ExtractPublicPropTypes<typeof formItemProps> & {
|
|
67
|
+
[key: `on${string}`]: (...args: any[]) => any;
|
|
68
|
+
};
|
|
67
69
|
export declare const expandFormItemPropsKeys: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-item.mjs","sources":["../../../../../../packages/components/form/src/form-item.ts"],"sourcesContent":["import { formItemProps as elFormItemProps } from 'element-plus'\nimport { visibleProps, disabledProps } from '@el-plus/utils/props'\nimport { CSSProperties } from 'vue'\nimport type {\n VNode,\n PropType,\n ExtractPropTypes,\n ExtractPublicPropTypes,\n} from 'vue'\nconst expandFormItemProps = {\n type: {\n type: String,\n default: 'EpInput',\n },\n col: Number,\n render: Function as PropType<(...args: any[]) => VNode>,\n labelRender: Function as PropType<\n ({ label }: { label: string | undefined }) => VNode\n >,\n props: Object,\n ...visibleProps,\n ...disabledProps,\n class: String,\n style: {\n type: [String, Object] as PropType<string | CSSProperties>,\n },\n isShowLabel: {\n type: Boolean,\n default: true,\n },\n hideRequiredAsterisk: Boolean,\n tableProp: String, // 用于table里的表单需要绑定的prop\n}\nexport const formItemProps = {\n ...elFormItemProps,\n ...expandFormItemProps,\n prop: String,\n} as const\nexport type FormItemProps = ExtractPublicPropTypes<typeof formItemProps
|
|
1
|
+
{"version":3,"file":"form-item.mjs","sources":["../../../../../../packages/components/form/src/form-item.ts"],"sourcesContent":["import { formItemProps as elFormItemProps } from 'element-plus'\nimport { visibleProps, disabledProps } from '@el-plus/utils/props'\nimport { CSSProperties } from 'vue'\nimport type {\n VNode,\n PropType,\n ExtractPropTypes,\n ExtractPublicPropTypes,\n} from 'vue'\nconst expandFormItemProps = {\n type: {\n type: String,\n default: 'EpInput',\n },\n col: Number,\n render: Function as PropType<(...args: any[]) => VNode>,\n labelRender: Function as PropType<\n ({ label }: { label: string | undefined }) => VNode\n >,\n props: Object,\n ...visibleProps,\n ...disabledProps,\n class: String,\n style: {\n type: [String, Object] as PropType<string | CSSProperties>,\n },\n isShowLabel: {\n type: Boolean,\n default: true,\n },\n hideRequiredAsterisk: Boolean,\n tableProp: String, // 用于table里的表单需要绑定的prop\n}\nexport const formItemProps = {\n ...elFormItemProps,\n ...expandFormItemProps,\n prop: String,\n} as const\nexport type FormItemProps = ExtractPublicPropTypes<typeof formItemProps> & {\n [key: `on${string}`]: (...args: any[]) => any\n}\nexport const expandFormItemPropsKeys = Object.keys(expandFormItemProps)\n"],"names":["elFormItemProps"],"mappings":";;;AASA,MAAM,mBAAA,GAAsB;AAAA,EAC1B,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA,EACA,GAAA,EAAK,MAAA;AAAA,EACL,MAAA,EAAQ,QAAA;AAAA,EACR,WAAA,EAAa,QAAA;AAAA,EAGb,KAAA,EAAO,MAAA;AAAA,EACP,GAAG,YAAA;AAAA,EACH,GAAG,aAAA;AAAA,EACH,KAAA,EAAO,MAAA;AAAA,EACP,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM;AAAA,GACvB;AAAA,EACA,WAAA,EAAa;AAAA,IACX,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA,EACA,oBAAA,EAAsB,OAAA;AAAA,EACtB,SAAA,EAAW;AAAA;AACb,CAAA;AACO,MAAM,aAAA,GAAgB;AAAA,EAC3B,GAAGA,eAAA;AAAA,EACH,GAAG,mBAAA;AAAA,EACH,IAAA,EAAM;AACR;AAIO,MAAM,uBAAA,GAA0B,MAAA,CAAO,IAAA,CAAK,mBAAmB;;;;"}
|
|
@@ -27,8 +27,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
27
27
|
readonly __epPropKey: true;
|
|
28
28
|
};
|
|
29
29
|
formItemList: {
|
|
30
|
-
type: import("vue").PropType<import("
|
|
31
|
-
default: () => import("
|
|
30
|
+
type: import("vue").PropType<import("el-plus/es").FormItemProps[]>;
|
|
31
|
+
default: () => import("el-plus/es").FormItemProps[];
|
|
32
32
|
};
|
|
33
33
|
isShowFold: BooleanConstructor;
|
|
34
34
|
showFieldCount: {
|
|
@@ -94,8 +94,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
94
94
|
readonly __epPropKey: true;
|
|
95
95
|
};
|
|
96
96
|
formItemList: {
|
|
97
|
-
type: import("vue").PropType<import("
|
|
98
|
-
default: () => import("
|
|
97
|
+
type: import("vue").PropType<import("el-plus/es").FormItemProps[]>;
|
|
98
|
+
default: () => import("el-plus/es").FormItemProps[];
|
|
99
99
|
};
|
|
100
100
|
isShowFold: BooleanConstructor;
|
|
101
101
|
showFieldCount: {
|
|
@@ -141,7 +141,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
141
141
|
inlineMessage: boolean;
|
|
142
142
|
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
143
143
|
scrollIntoViewOptions: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
144
|
-
formItemList: import("
|
|
144
|
+
formItemList: import("el-plus/es").FormItemProps[];
|
|
145
145
|
isShowFold: boolean;
|
|
146
146
|
showFieldCount: number;
|
|
147
147
|
requireAsteriskPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const EpHeader: {
|
|
2
2
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
3
3
|
readonly mode: {
|
|
4
|
-
readonly type: import("vue").PropType<import("
|
|
4
|
+
readonly type: import("vue").PropType<import("el-plus/es/hooks/use-navigation").PageMode>;
|
|
5
5
|
};
|
|
6
6
|
readonly allowBack: {
|
|
7
7
|
readonly type: BooleanConstructor;
|
|
@@ -12,9 +12,9 @@ export declare const EpHeader: {
|
|
|
12
12
|
name: string;
|
|
13
13
|
prop: string;
|
|
14
14
|
permission: string;
|
|
15
|
-
onClick: (e: MouseEvent | import("
|
|
15
|
+
onClick: (e: MouseEvent | import("el-plus/es/index").TableScope) => void;
|
|
16
16
|
scopedSlots: Record<string, () => import("vue").VNode>;
|
|
17
|
-
disabled: import("
|
|
17
|
+
disabled: import("el-plus/es/utils/props").IDisabled;
|
|
18
18
|
confirm: boolean;
|
|
19
19
|
confirmText: string;
|
|
20
20
|
} & {} & {
|
|
@@ -34,9 +34,9 @@ export declare const EpHeader: {
|
|
|
34
34
|
name: string;
|
|
35
35
|
prop: string;
|
|
36
36
|
permission: string;
|
|
37
|
-
onClick: (e: MouseEvent | import("
|
|
37
|
+
onClick: (e: MouseEvent | import("el-plus/es/index").TableScope) => void;
|
|
38
38
|
scopedSlots: Record<string, () => import("vue").VNode>;
|
|
39
|
-
disabled: import("
|
|
39
|
+
disabled: import("el-plus/es/utils/props").IDisabled;
|
|
40
40
|
confirm: boolean;
|
|
41
41
|
confirmText: string;
|
|
42
42
|
} & {} & {
|
|
@@ -54,7 +54,7 @@ export declare const EpHeader: {
|
|
|
54
54
|
Defaults: {};
|
|
55
55
|
}, Readonly<import("vue").ExtractPropTypes<{
|
|
56
56
|
readonly mode: {
|
|
57
|
-
readonly type: import("vue").PropType<import("
|
|
57
|
+
readonly type: import("vue").PropType<import("el-plus/es/hooks/use-navigation").PageMode>;
|
|
58
58
|
};
|
|
59
59
|
readonly allowBack: {
|
|
60
60
|
readonly type: BooleanConstructor;
|
|
@@ -65,9 +65,9 @@ export declare const EpHeader: {
|
|
|
65
65
|
name: string;
|
|
66
66
|
prop: string;
|
|
67
67
|
permission: string;
|
|
68
|
-
onClick: (e: MouseEvent | import("
|
|
68
|
+
onClick: (e: MouseEvent | import("el-plus/es/index").TableScope) => void;
|
|
69
69
|
scopedSlots: Record<string, () => import("vue").VNode>;
|
|
70
|
-
disabled: import("
|
|
70
|
+
disabled: import("el-plus/es/utils/props").IDisabled;
|
|
71
71
|
confirm: boolean;
|
|
72
72
|
confirmText: string;
|
|
73
73
|
} & {} & {
|
|
@@ -87,9 +87,9 @@ export declare const EpHeader: {
|
|
|
87
87
|
name: string;
|
|
88
88
|
prop: string;
|
|
89
89
|
permission: string;
|
|
90
|
-
onClick: (e: MouseEvent | import("
|
|
90
|
+
onClick: (e: MouseEvent | import("el-plus/es/index").TableScope) => void;
|
|
91
91
|
scopedSlots: Record<string, () => import("vue").VNode>;
|
|
92
|
-
disabled: import("
|
|
92
|
+
disabled: import("el-plus/es/utils/props").IDisabled;
|
|
93
93
|
confirm: boolean;
|
|
94
94
|
confirmText: string;
|
|
95
95
|
} & {} & {
|
|
@@ -104,14 +104,14 @@ export declare const EpHeader: {
|
|
|
104
104
|
__isSuspense?: never;
|
|
105
105
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
106
106
|
readonly mode: {
|
|
107
|
-
readonly type: import("vue").PropType<import("
|
|
107
|
+
readonly type: import("vue").PropType<import("el-plus/es/hooks/use-navigation").PageMode>;
|
|
108
108
|
};
|
|
109
109
|
readonly allowBack: {
|
|
110
110
|
readonly type: BooleanConstructor;
|
|
111
111
|
readonly default: true;
|
|
112
112
|
};
|
|
113
113
|
readonly buttons: {
|
|
114
|
-
readonly type: import("vue").PropType<import("
|
|
114
|
+
readonly type: import("vue").PropType<import("el-plus/es/index").ButtonProps[]>;
|
|
115
115
|
readonly default: () => never[];
|
|
116
116
|
};
|
|
117
117
|
readonly name: StringConstructor;
|
|
@@ -125,9 +125,9 @@ export declare const EpHeader: {
|
|
|
125
125
|
name: string;
|
|
126
126
|
prop: string;
|
|
127
127
|
permission: string;
|
|
128
|
-
onClick: (e: MouseEvent | import("
|
|
128
|
+
onClick: (e: MouseEvent | import("el-plus/es/index").TableScope) => void;
|
|
129
129
|
scopedSlots: Record<string, () => import("vue").VNode>;
|
|
130
|
-
disabled: import("
|
|
130
|
+
disabled: import("el-plus/es/utils/props").IDisabled;
|
|
131
131
|
confirm: boolean;
|
|
132
132
|
confirmText: string;
|
|
133
133
|
} & {} & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
readonly mode: {
|
|
3
|
-
readonly type: import("vue").PropType<import("
|
|
3
|
+
readonly type: import("vue").PropType<import("el-plus/es/hooks").PageMode>;
|
|
4
4
|
};
|
|
5
5
|
readonly allowBack: {
|
|
6
6
|
readonly type: BooleanConstructor;
|
|
@@ -18,7 +18,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
18
18
|
readonly workflowId: StringConstructor;
|
|
19
19
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
20
|
readonly mode: {
|
|
21
|
-
readonly type: import("vue").PropType<import("
|
|
21
|
+
readonly type: import("vue").PropType<import("el-plus/es/hooks").PageMode>;
|
|
22
22
|
};
|
|
23
23
|
readonly allowBack: {
|
|
24
24
|
readonly type: BooleanConstructor;
|
|
@@ -39,7 +39,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
39
39
|
name: string;
|
|
40
40
|
prop: string;
|
|
41
41
|
permission: string;
|
|
42
|
-
onClick: (e: MouseEvent | import("
|
|
42
|
+
onClick: (e: MouseEvent | import("el-plus/es").TableScope) => void;
|
|
43
43
|
scopedSlots: Record<string, () => import("vue").VNode>;
|
|
44
44
|
disabled: import("el-plus/es/utils/props").IDisabled;
|
|
45
45
|
confirm: boolean;
|