el-plus 0.0.4 → 0.0.6
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/README.md +85 -0
- package/dist/index.full.js +62 -22
- 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 +59 -23
- package/es/components/buttons/index.d.ts +0 -30
- package/es/components/buttons/src/buttons-vue.d.ts +0 -19
- package/es/components/buttons/src/buttons.d.ts +0 -9
- package/es/components/buttons/src/buttons.mjs +0 -9
- package/es/components/buttons/src/buttons.mjs.map +1 -1
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +2 -0
- package/es/components/index.mjs.map +1 -1
- package/es/components/title/index.d.ts +66 -0
- package/es/components/title/index.mjs +8 -0
- package/es/components/title/index.mjs.map +1 -0
- package/es/components/title/src/title.d.ts +19 -0
- package/es/components/title/src/title.mjs +19 -0
- package/es/components/title/src/title.mjs.map +1 -0
- package/es/components/title/src/title.vue.d.ts +33 -0
- package/es/components/title/src/title.vue.mjs +6 -0
- package/es/components/title/src/title.vue.mjs.map +1 -0
- package/es/components/title/src/title.vue2.mjs +23 -0
- package/es/components/title/src/title.vue2.mjs.map +1 -0
- package/es/components/title/style/css.d.ts +2 -0
- package/es/components/title/style/css.mjs +5 -0
- package/es/components/title/style/css.mjs.map +1 -0
- package/es/components/title/style/index.d.ts +2 -0
- package/es/components/title/style/index.mjs +5 -0
- package/es/components/title/style/index.mjs.map +1 -0
- package/es/components.mjs +10 -1
- package/es/components.mjs.map +1 -1
- package/es/index.mjs +2 -0
- package/es/index.mjs.map +1 -1
- package/es/package.json.mjs +1 -1
- package/global.d.ts +3 -2
- package/lib/components/buttons/index.d.ts +0 -30
- package/lib/components/buttons/src/buttons-vue.d.ts +0 -19
- package/lib/components/buttons/src/buttons.d.ts +0 -9
- package/lib/components/buttons/src/buttons.js +0 -9
- package/lib/components/buttons/src/buttons.js.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +6 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/title/index.d.ts +66 -0
- package/lib/components/title/index.js +16 -0
- package/lib/components/title/index.js.map +1 -0
- package/lib/components/title/src/title.d.ts +19 -0
- package/lib/components/title/src/title.js +23 -0
- package/lib/components/title/src/title.js.map +1 -0
- package/lib/components/title/src/title.vue.d.ts +33 -0
- package/lib/components/title/src/title.vue.js +10 -0
- package/lib/components/title/src/title.vue.js.map +1 -0
- package/lib/components/title/src/title.vue2.js +27 -0
- package/lib/components/title/src/title.vue2.js.map +1 -0
- package/lib/components/title/style/css.d.ts +2 -0
- package/lib/components/title/style/css.js +7 -0
- package/lib/components/title/style/css.js.map +1 -0
- package/lib/components/title/style/index.d.ts +2 -0
- package/lib/components/title/style/index.js +7 -0
- package/lib/components/title/style/index.js.map +1 -0
- package/lib/components.js +10 -1
- package/lib/components.js.map +1 -1
- package/lib/index.js +10 -4
- package/lib/index.js.map +1 -1
- package/lib/package.json.js +1 -1
- package/package.json +3 -2
package/dist/index.full.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! ElPlus v0.0.
|
|
1
|
+
/*! ElPlus v0.0.6 */
|
|
2
2
|
|
|
3
3
|
import { useAttrs, defineComponent, computed, createVNode, Fragment, withDirectives, resolveComponent, mergeProps, resolveDirective, useTemplateRef, ref, createTextVNode, h, mergeModels, useModel, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createCommentVNode, withCtx, renderSlot, renderList, createBlock, vShow, toDisplayString, reactive, useSlots, watch, onMounted, createSlots, normalizeProps, guardReactiveProps, createElementVNode } from 'vue';
|
|
4
4
|
import { buttonProps, ElMessage, ElLoading, ElMessageBox, formProps as formProps$1, formEmits as formEmits$1, formItemProps as formItemProps$1, inputProps as inputProps$1, inputEmits as inputEmits$1, ElTable, selectProps as selectProps$1, selectEmits as selectEmits$1 } from 'element-plus';
|
|
@@ -23,15 +23,6 @@ const buttonsProps = {
|
|
|
23
23
|
type: {
|
|
24
24
|
...buttonProps.type,
|
|
25
25
|
default: "default"
|
|
26
|
-
},
|
|
27
|
-
test: {
|
|
28
|
-
type: String,
|
|
29
|
-
required: true
|
|
30
|
-
},
|
|
31
|
-
test1: {
|
|
32
|
-
type: String,
|
|
33
|
-
required: true,
|
|
34
|
-
default: "test1"
|
|
35
26
|
}
|
|
36
27
|
};
|
|
37
28
|
|
|
@@ -739,7 +730,7 @@ var EpFormItem = /* @__PURE__ */ defineComponent({
|
|
|
739
730
|
}
|
|
740
731
|
});
|
|
741
732
|
|
|
742
|
-
var _sfc_main$
|
|
733
|
+
var _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
743
734
|
...{
|
|
744
735
|
name: "EpForm",
|
|
745
736
|
inheritAttrs: false
|
|
@@ -854,7 +845,7 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
854
845
|
}
|
|
855
846
|
});
|
|
856
847
|
|
|
857
|
-
const EpForm = withInstall(_sfc_main$
|
|
848
|
+
const EpForm = withInstall(_sfc_main$5);
|
|
858
849
|
|
|
859
850
|
const inputProps = {
|
|
860
851
|
...inputProps$1,
|
|
@@ -880,7 +871,7 @@ const inputEmits = {
|
|
|
880
871
|
};
|
|
881
872
|
const inputEmitsKeys = Object.keys(inputEmits);
|
|
882
873
|
|
|
883
|
-
var _sfc_main$
|
|
874
|
+
var _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
884
875
|
...{
|
|
885
876
|
name: "EpInput",
|
|
886
877
|
inheritAttrs: false
|
|
@@ -1017,7 +1008,7 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
1017
1008
|
}
|
|
1018
1009
|
});
|
|
1019
1010
|
|
|
1020
|
-
const EpInput = withInstall(_sfc_main$
|
|
1011
|
+
const EpInput = withInstall(_sfc_main$4);
|
|
1021
1012
|
|
|
1022
1013
|
const inheritTableProps = {
|
|
1023
1014
|
...elTableProps,
|
|
@@ -1425,7 +1416,7 @@ const useTableFormItem = (props) => {
|
|
|
1425
1416
|
};
|
|
1426
1417
|
};
|
|
1427
1418
|
|
|
1428
|
-
var _sfc_main$
|
|
1419
|
+
var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
1429
1420
|
...{
|
|
1430
1421
|
name: "EpTable",
|
|
1431
1422
|
inheritAttrs: false
|
|
@@ -1619,7 +1610,7 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1619
1610
|
}
|
|
1620
1611
|
});
|
|
1621
1612
|
|
|
1622
|
-
const EpTable = withInstall(_sfc_main$
|
|
1613
|
+
const EpTable = withInstall(_sfc_main$3);
|
|
1623
1614
|
|
|
1624
1615
|
console.log(formProps.formItemList);
|
|
1625
1616
|
const searchListPageProps = {
|
|
@@ -1848,7 +1839,7 @@ const useButtons = (props, { validate, resetFields, tableRef }) => {
|
|
|
1848
1839
|
};
|
|
1849
1840
|
};
|
|
1850
1841
|
|
|
1851
|
-
var _sfc_main$
|
|
1842
|
+
var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
1852
1843
|
...{ name: "EpSearchListPage" },
|
|
1853
1844
|
__name: "searchListPage",
|
|
1854
1845
|
props: searchListPageProps,
|
|
@@ -1937,7 +1928,7 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1937
1928
|
}
|
|
1938
1929
|
});
|
|
1939
1930
|
|
|
1940
|
-
const EpSearchListPage = withInstall(_sfc_main$
|
|
1931
|
+
const EpSearchListPage = withInstall(_sfc_main$2);
|
|
1941
1932
|
|
|
1942
1933
|
const inheritSelectProps = {
|
|
1943
1934
|
...selectProps$1,
|
|
@@ -2063,7 +2054,7 @@ function useSelect(props, emit) {
|
|
|
2063
2054
|
};
|
|
2064
2055
|
}
|
|
2065
2056
|
|
|
2066
|
-
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
2057
|
+
var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
2067
2058
|
...{
|
|
2068
2059
|
name: "EpSelect",
|
|
2069
2060
|
inheritAttrs: false
|
|
@@ -2168,11 +2159,56 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2168
2159
|
}
|
|
2169
2160
|
});
|
|
2170
2161
|
|
|
2171
|
-
const EpSelect = withInstall(_sfc_main);
|
|
2162
|
+
const EpSelect = withInstall(_sfc_main$1);
|
|
2163
|
+
|
|
2164
|
+
const titleProps = {
|
|
2165
|
+
max: Number,
|
|
2166
|
+
min: Number,
|
|
2167
|
+
radix: Number,
|
|
2168
|
+
nonzero: Boolean,
|
|
2169
|
+
placeholder: {
|
|
2170
|
+
type: String,
|
|
2171
|
+
default: "\u8BF7\u8F93\u5165"
|
|
2172
|
+
},
|
|
2173
|
+
thousand: {
|
|
2174
|
+
type: Boolean,
|
|
2175
|
+
default: true
|
|
2176
|
+
}
|
|
2177
|
+
};
|
|
2178
|
+
const titleEmits = {};
|
|
2179
|
+
const titleEmitsKeys = Object.keys(titleEmits);
|
|
2180
|
+
|
|
2181
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
2182
|
+
...{
|
|
2183
|
+
name: "EpTitle",
|
|
2184
|
+
inheritAttrs: false
|
|
2185
|
+
},
|
|
2186
|
+
__name: "title",
|
|
2187
|
+
props: titleProps,
|
|
2188
|
+
emits: titleEmits,
|
|
2189
|
+
setup(__props, { emit: __emit }) {
|
|
2190
|
+
computed(() => {
|
|
2191
|
+
return Object.keys(useSlots());
|
|
2192
|
+
});
|
|
2193
|
+
return (_ctx, _cache) => {
|
|
2194
|
+
return null;
|
|
2195
|
+
};
|
|
2196
|
+
}
|
|
2197
|
+
});
|
|
2198
|
+
|
|
2199
|
+
const EpTitle = withInstall(_sfc_main);
|
|
2172
2200
|
|
|
2173
|
-
var components = [
|
|
2201
|
+
var components = [
|
|
2202
|
+
EpButtons,
|
|
2203
|
+
EpForm,
|
|
2204
|
+
EpInput,
|
|
2205
|
+
EpSearchListPage,
|
|
2206
|
+
EpSelect,
|
|
2207
|
+
EpTable,
|
|
2208
|
+
EpTitle
|
|
2209
|
+
];
|
|
2174
2210
|
|
|
2175
|
-
var version = "0.0.
|
|
2211
|
+
var version = "0.0.6";
|
|
2176
2212
|
|
|
2177
2213
|
const install = (app, options) => {
|
|
2178
2214
|
components.forEach((c) => app.use(c));
|
|
@@ -2182,4 +2218,4 @@ const plugin = {
|
|
|
2182
2218
|
version
|
|
2183
2219
|
};
|
|
2184
2220
|
|
|
2185
|
-
export { EpButtons, EpForm, EpFormItem, EpInput, EpSearchListPage, EpSelect, EpTable, buttonsProps, plugin as default, expandFormItemPropsKeys, expandFormPropsKeys, expandSelectPropsKeys, expandTablePropsKeys, formEmits, formEmitsKeys, formItemProps, formProps, inheritSelectProps, inputEmits, inputEmitsKeys, inputProps, install, searchListPageProps, selectEmits, selectEmitsKeys, selectProps, tableEmits, tableEmitsKeys, tableProps, useRequest, vPermisson as vPermission, vRepeatClick };
|
|
2221
|
+
export { EpButtons, EpForm, EpFormItem, EpInput, EpSearchListPage, EpSelect, EpTable, EpTitle, buttonsProps, plugin as default, expandFormItemPropsKeys, expandFormPropsKeys, expandSelectPropsKeys, expandTablePropsKeys, formEmits, formEmitsKeys, formItemProps, formProps, inheritSelectProps, inputEmits, inputEmitsKeys, inputProps, install, searchListPageProps, selectEmits, selectEmitsKeys, selectProps, tableEmits, tableEmitsKeys, tableProps, titleEmits, titleEmitsKeys, titleProps, useRequest, vPermisson as vPermission, vRepeatClick };
|
|
@@ -52,15 +52,6 @@ export declare const EpButtons: {
|
|
|
52
52
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
53
53
|
readonly __epPropKey: true;
|
|
54
54
|
};
|
|
55
|
-
readonly test: {
|
|
56
|
-
readonly type: import("vue").PropType<string>;
|
|
57
|
-
readonly required: true;
|
|
58
|
-
};
|
|
59
|
-
readonly test1: {
|
|
60
|
-
readonly type: import("vue").PropType<string>;
|
|
61
|
-
readonly required: true;
|
|
62
|
-
readonly default: "test1";
|
|
63
|
-
};
|
|
64
55
|
readonly icon: {
|
|
65
56
|
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>>;
|
|
66
57
|
readonly required: false;
|
|
@@ -129,7 +120,6 @@ export declare const EpButtons: {
|
|
|
129
120
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
130
121
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
131
122
|
}>[];
|
|
132
|
-
readonly test1: string;
|
|
133
123
|
}, true, {}, {}, import("vue").GlobalComponents, {
|
|
134
124
|
[x: string]: (import("vue").ObjectDirective<import("packages/directives/repeat-click").RepeatClickEl, import("packages/directives/repeat-click").RepeatClickOptions, string, any> & {
|
|
135
125
|
name: string;
|
|
@@ -196,15 +186,6 @@ export declare const EpButtons: {
|
|
|
196
186
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
197
187
|
readonly __epPropKey: true;
|
|
198
188
|
};
|
|
199
|
-
readonly test: {
|
|
200
|
-
readonly type: import("vue").PropType<string>;
|
|
201
|
-
readonly required: true;
|
|
202
|
-
};
|
|
203
|
-
readonly test1: {
|
|
204
|
-
readonly type: import("vue").PropType<string>;
|
|
205
|
-
readonly required: true;
|
|
206
|
-
readonly default: "test1";
|
|
207
|
-
};
|
|
208
189
|
readonly icon: {
|
|
209
190
|
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>>;
|
|
210
191
|
readonly required: false;
|
|
@@ -273,7 +254,6 @@ export declare const EpButtons: {
|
|
|
273
254
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
274
255
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
275
256
|
}>[];
|
|
276
|
-
readonly test1: string;
|
|
277
257
|
}>;
|
|
278
258
|
__isFragment?: never;
|
|
279
259
|
__isTeleport?: never;
|
|
@@ -300,15 +280,6 @@ export declare const EpButtons: {
|
|
|
300
280
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
301
281
|
readonly __epPropKey: true;
|
|
302
282
|
};
|
|
303
|
-
readonly test: {
|
|
304
|
-
readonly type: import("vue").PropType<string>;
|
|
305
|
-
readonly required: true;
|
|
306
|
-
};
|
|
307
|
-
readonly test1: {
|
|
308
|
-
readonly type: import("vue").PropType<string>;
|
|
309
|
-
readonly required: true;
|
|
310
|
-
readonly default: "test1";
|
|
311
|
-
};
|
|
312
283
|
readonly icon: {
|
|
313
284
|
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>>;
|
|
314
285
|
readonly required: false;
|
|
@@ -377,7 +348,6 @@ export declare const EpButtons: {
|
|
|
377
348
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
378
349
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
379
350
|
}>[];
|
|
380
|
-
readonly test1: string;
|
|
381
351
|
}, {}, string, {}, import("vue").GlobalComponents, {
|
|
382
352
|
[x: string]: (import("vue").ObjectDirective<import("packages/directives/repeat-click").RepeatClickEl, import("packages/directives/repeat-click").RepeatClickOptions, string, any> & {
|
|
383
353
|
name: string;
|
|
@@ -21,15 +21,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
21
21
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
22
22
|
readonly __epPropKey: true;
|
|
23
23
|
};
|
|
24
|
-
readonly test: {
|
|
25
|
-
readonly type: import("vue").PropType<string>;
|
|
26
|
-
readonly required: true;
|
|
27
|
-
};
|
|
28
|
-
readonly test1: {
|
|
29
|
-
readonly type: import("vue").PropType<string>;
|
|
30
|
-
readonly required: true;
|
|
31
|
-
readonly default: "test1";
|
|
32
|
-
};
|
|
33
24
|
readonly icon: {
|
|
34
25
|
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>>;
|
|
35
26
|
readonly required: false;
|
|
@@ -72,15 +63,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
72
63
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
73
64
|
readonly __epPropKey: true;
|
|
74
65
|
};
|
|
75
|
-
readonly test: {
|
|
76
|
-
readonly type: import("vue").PropType<string>;
|
|
77
|
-
readonly required: true;
|
|
78
|
-
};
|
|
79
|
-
readonly test1: {
|
|
80
|
-
readonly type: import("vue").PropType<string>;
|
|
81
|
-
readonly required: true;
|
|
82
|
-
readonly default: "test1";
|
|
83
|
-
};
|
|
84
66
|
readonly icon: {
|
|
85
67
|
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>>;
|
|
86
68
|
readonly required: false;
|
|
@@ -149,7 +131,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
149
131
|
show?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
150
132
|
hide?: (boolean | ((T: unknown) => boolean)) | undefined;
|
|
151
133
|
}>[];
|
|
152
|
-
readonly test1: string;
|
|
153
134
|
}, {}, {}, {
|
|
154
135
|
[vRepeatClick.name]: import("vue").Directive<import("packages/directives/repeat-click").RepeatClickEl, import("packages/directives/repeat-click").RepeatClickOptions> & {
|
|
155
136
|
name: string;
|
|
@@ -33,15 +33,6 @@ export declare const buttonsProps: {
|
|
|
33
33
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
34
34
|
readonly __epPropKey: true;
|
|
35
35
|
};
|
|
36
|
-
readonly test: {
|
|
37
|
-
readonly type: PropType<string>;
|
|
38
|
-
readonly required: true;
|
|
39
|
-
};
|
|
40
|
-
readonly test1: {
|
|
41
|
-
readonly type: PropType<string>;
|
|
42
|
-
readonly required: true;
|
|
43
|
-
readonly default: "test1";
|
|
44
|
-
};
|
|
45
36
|
readonly icon: {
|
|
46
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>>;
|
|
47
38
|
readonly required: false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buttons.mjs","sources":["../../../../../../packages/components/buttons/src/buttons.ts"],"sourcesContent":["import type { PropType, ExtractPublicPropTypes, VNode } from 'vue'\nimport {\n buttonProps as elButtonProps,\n // buttonEmits as elButtonEmits,\n type ButtonProps as ElButtonProps,\n} from 'element-plus'\nimport type { VisibleProps } from '@el-plus/utils/props'\nimport type { TableScope } from '@el-plus/components/table'\n\nexport type ButtonProps = Partial<\n ElButtonProps & {\n name: string\n prop: string // 唯一标识\n permission: string // 权限\n onClick: (e: MouseEvent | TableScope) => void\n scopedSlots: Record<string, () => VNode>\n confirm: boolean\n confirmText: string\n } & VisibleProps\n>\nexport const buttonsProps = {\n ...elButtonProps,\n disabled: {\n type: [Boolean, Function] as PropType<\n boolean | ((...args: any[]) => boolean)\n >,\n },\n list: {\n type: Array as PropType<ButtonProps[]>,\n default: () => [],\n },\n size: {\n ...elButtonProps.size,\n default: 'small',\n },\n type: {\n ...elButtonProps.type,\n default: 'default',\n },\n
|
|
1
|
+
{"version":3,"file":"buttons.mjs","sources":["../../../../../../packages/components/buttons/src/buttons.ts"],"sourcesContent":["import type { PropType, ExtractPublicPropTypes, VNode } from 'vue'\nimport {\n buttonProps as elButtonProps,\n // buttonEmits as elButtonEmits,\n type ButtonProps as ElButtonProps,\n} from 'element-plus'\nimport type { VisibleProps } from '@el-plus/utils/props'\nimport type { TableScope } from '@el-plus/components/table'\n\nexport type ButtonProps = Partial<\n ElButtonProps & {\n name: string\n prop: string // 唯一标识\n permission: string // 权限\n onClick: (e: MouseEvent | TableScope) => void\n scopedSlots: Record<string, () => VNode>\n confirm: boolean\n confirmText: string\n } & VisibleProps\n>\nexport const buttonsProps = {\n ...elButtonProps,\n disabled: {\n type: [Boolean, Function] as PropType<\n boolean | ((...args: any[]) => boolean)\n >,\n },\n list: {\n type: Array as PropType<ButtonProps[]>,\n default: () => [],\n },\n size: {\n ...elButtonProps.size,\n default: 'small',\n },\n type: {\n ...elButtonProps.type,\n default: 'default',\n },\n} as const\nexport type ButtonsProps = ExtractPublicPropTypes<typeof buttonsProps>\n// export const buttonsEmits = {\n// ...elButtonEmits,\n// }\n// export type ButtonsEmits = typeof buttonsEmits\n// export const buttonsEmitsKeys = Object.keys(buttonsEmits)\n"],"names":["elButtonProps"],"mappings":";;AAoBO,MAAM,YAAA,GAAe;AAAA,EAC1B,GAAGA,WAAA;AAAA,EACH,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,CAAC,OAAA,EAAS,QAAQ;AAAA,GAG1B;AAAA,EACA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,KAAA;AAAA,IACN,OAAA,EAAS,MAAM;AAAC,GAClB;AAAA,EACA,IAAA,EAAM;AAAA,IACJ,GAAGA,WAAA,CAAc,IAAA;AAAA,IACjB,OAAA,EAAS;AAAA,GACX;AAAA,EACA,IAAA,EAAM;AAAA,IACJ,GAAGA,WAAA,CAAc,IAAA;AAAA,IACjB,OAAA,EAAS;AAAA;AAEb;;;;"}
|
package/es/components/index.d.ts
CHANGED
package/es/components/index.mjs
CHANGED
|
@@ -4,6 +4,7 @@ export { EpInput } from './input/index.mjs';
|
|
|
4
4
|
export { EpSearchListPage } from './searchListPage/index.mjs';
|
|
5
5
|
export { EpSelect } from './select/index.mjs';
|
|
6
6
|
export { EpTable } from './table/index.mjs';
|
|
7
|
+
export { EpTitle } from './title/index.mjs';
|
|
7
8
|
export { buttonsProps } from './buttons/src/buttons.mjs';
|
|
8
9
|
export { expandFormPropsKeys, formEmits, formEmitsKeys, formProps } from './form/src/form.mjs';
|
|
9
10
|
export { expandFormItemPropsKeys, formItemProps } from './form/src/form-item.mjs';
|
|
@@ -12,4 +13,5 @@ export { inputEmits, inputEmitsKeys, inputProps } from './input/src/input.mjs';
|
|
|
12
13
|
export { searchListPageProps } from './searchListPage/src/searchListPage.mjs';
|
|
13
14
|
export { expandSelectPropsKeys, inheritSelectProps, selectEmits, selectEmitsKeys, selectProps } from './select/src/select.mjs';
|
|
14
15
|
export { expandTablePropsKeys, tableEmits, tableEmitsKeys, tableProps } from './table/src/table.mjs';
|
|
16
|
+
export { titleEmits, titleEmitsKeys, titleProps } from './title/src/title.mjs';
|
|
15
17
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare const EpTitle: {
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
3
|
+
readonly max: NumberConstructor;
|
|
4
|
+
readonly min: NumberConstructor;
|
|
5
|
+
readonly radix: NumberConstructor;
|
|
6
|
+
readonly nonzero: BooleanConstructor;
|
|
7
|
+
readonly placeholder: {
|
|
8
|
+
readonly type: StringConstructor;
|
|
9
|
+
readonly default: "请输入";
|
|
10
|
+
};
|
|
11
|
+
readonly thousand: {
|
|
12
|
+
readonly type: BooleanConstructor;
|
|
13
|
+
readonly default: true;
|
|
14
|
+
};
|
|
15
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
16
|
+
readonly nonzero: boolean;
|
|
17
|
+
readonly placeholder: string;
|
|
18
|
+
readonly thousand: boolean;
|
|
19
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
20
|
+
P: {};
|
|
21
|
+
B: {};
|
|
22
|
+
D: {};
|
|
23
|
+
C: {};
|
|
24
|
+
M: {};
|
|
25
|
+
Defaults: {};
|
|
26
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
+
readonly max: NumberConstructor;
|
|
28
|
+
readonly min: NumberConstructor;
|
|
29
|
+
readonly radix: NumberConstructor;
|
|
30
|
+
readonly nonzero: BooleanConstructor;
|
|
31
|
+
readonly placeholder: {
|
|
32
|
+
readonly type: StringConstructor;
|
|
33
|
+
readonly default: "请输入";
|
|
34
|
+
};
|
|
35
|
+
readonly thousand: {
|
|
36
|
+
readonly type: BooleanConstructor;
|
|
37
|
+
readonly default: true;
|
|
38
|
+
};
|
|
39
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
40
|
+
readonly nonzero: boolean;
|
|
41
|
+
readonly placeholder: string;
|
|
42
|
+
readonly thousand: boolean;
|
|
43
|
+
}>;
|
|
44
|
+
__isFragment?: never;
|
|
45
|
+
__isTeleport?: never;
|
|
46
|
+
__isSuspense?: never;
|
|
47
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
48
|
+
readonly max: NumberConstructor;
|
|
49
|
+
readonly min: NumberConstructor;
|
|
50
|
+
readonly radix: NumberConstructor;
|
|
51
|
+
readonly nonzero: BooleanConstructor;
|
|
52
|
+
readonly placeholder: {
|
|
53
|
+
readonly type: StringConstructor;
|
|
54
|
+
readonly default: "请输入";
|
|
55
|
+
};
|
|
56
|
+
readonly thousand: {
|
|
57
|
+
readonly type: BooleanConstructor;
|
|
58
|
+
readonly default: true;
|
|
59
|
+
};
|
|
60
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
61
|
+
readonly nonzero: boolean;
|
|
62
|
+
readonly placeholder: string;
|
|
63
|
+
readonly thousand: boolean;
|
|
64
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
|
|
65
|
+
export default EpTitle;
|
|
66
|
+
export * from './src/title';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import _sfc_main from './src/title.vue2.mjs';
|
|
2
|
+
import { withInstall } from '../../utils/with-install.mjs';
|
|
3
|
+
export { titleEmits, titleEmitsKeys, titleProps } from './src/title.mjs';
|
|
4
|
+
|
|
5
|
+
const EpTitle = withInstall(_sfc_main);
|
|
6
|
+
|
|
7
|
+
export { EpTitle, EpTitle as default };
|
|
8
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/title/index.ts"],"sourcesContent":["import Title from './src/title.vue'\nimport { withInstall } from '@el-plus/utils/with-install'\n\nexport const EpTitle = withInstall(Title)\nexport default EpTitle\nexport * from './src/title'\n\n"],"names":["Title"],"mappings":";;;;AAGO,MAAM,OAAA,GAAU,YAAYA,SAAK;;;;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ExtractPropTypes } from 'vue';
|
|
2
|
+
export declare const titleProps: {
|
|
3
|
+
readonly max: NumberConstructor;
|
|
4
|
+
readonly min: NumberConstructor;
|
|
5
|
+
readonly radix: NumberConstructor;
|
|
6
|
+
readonly nonzero: BooleanConstructor;
|
|
7
|
+
readonly placeholder: {
|
|
8
|
+
readonly type: StringConstructor;
|
|
9
|
+
readonly default: "请输入";
|
|
10
|
+
};
|
|
11
|
+
readonly thousand: {
|
|
12
|
+
readonly type: BooleanConstructor;
|
|
13
|
+
readonly default: true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type TitleProps = ExtractPropTypes<typeof titleProps>;
|
|
17
|
+
export declare const titleEmits: {};
|
|
18
|
+
export type TitleEmits = typeof titleEmits;
|
|
19
|
+
export declare const titleEmitsKeys: string[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const titleProps = {
|
|
2
|
+
max: Number,
|
|
3
|
+
min: Number,
|
|
4
|
+
radix: Number,
|
|
5
|
+
nonzero: Boolean,
|
|
6
|
+
placeholder: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: "\u8BF7\u8F93\u5165"
|
|
9
|
+
},
|
|
10
|
+
thousand: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: true
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
const titleEmits = {};
|
|
16
|
+
const titleEmitsKeys = Object.keys(titleEmits);
|
|
17
|
+
|
|
18
|
+
export { titleEmits, titleEmitsKeys, titleProps };
|
|
19
|
+
//# sourceMappingURL=title.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"title.mjs","sources":["../../../../../../packages/components/title/src/title.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\n\nexport const titleProps = {\n max: Number,\n min: Number,\n radix: Number,\n nonzero: Boolean,\n placeholder: {\n type: String,\n default: '请输入',\n },\n thousand: {\n type: Boolean,\n default: true,\n },\n} as const\nexport type TitleProps = ExtractPropTypes<typeof titleProps>\nexport const titleEmits = {}\nexport type TitleEmits = typeof titleEmits\nexport const titleEmitsKeys = Object.keys(titleEmits)\n"],"names":[],"mappings":"AAEO,MAAM,UAAA,GAAa;AAAA,EACxB,GAAA,EAAK,MAAA;AAAA,EACL,GAAA,EAAK,MAAA;AAAA,EACL,KAAA,EAAO,MAAA;AAAA,EACP,OAAA,EAAS,OAAA;AAAA,EACT,WAAA,EAAa;AAAA,IACX,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA,EACA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA;AAEb;AAEO,MAAM,aAAa;AAEnB,MAAM,cAAA,GAAiB,MAAA,CAAO,IAAA,CAAK,UAAU;;;;"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
readonly max: NumberConstructor;
|
|
3
|
+
readonly min: NumberConstructor;
|
|
4
|
+
readonly radix: NumberConstructor;
|
|
5
|
+
readonly nonzero: BooleanConstructor;
|
|
6
|
+
readonly placeholder: {
|
|
7
|
+
readonly type: StringConstructor;
|
|
8
|
+
readonly default: "请输入";
|
|
9
|
+
};
|
|
10
|
+
readonly thousand: {
|
|
11
|
+
readonly type: BooleanConstructor;
|
|
12
|
+
readonly default: true;
|
|
13
|
+
};
|
|
14
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
readonly max: NumberConstructor;
|
|
16
|
+
readonly min: NumberConstructor;
|
|
17
|
+
readonly radix: NumberConstructor;
|
|
18
|
+
readonly nonzero: BooleanConstructor;
|
|
19
|
+
readonly placeholder: {
|
|
20
|
+
readonly type: StringConstructor;
|
|
21
|
+
readonly default: "请输入";
|
|
22
|
+
};
|
|
23
|
+
readonly thousand: {
|
|
24
|
+
readonly type: BooleanConstructor;
|
|
25
|
+
readonly default: true;
|
|
26
|
+
};
|
|
27
|
+
}>> & Readonly<{}>, {
|
|
28
|
+
readonly nonzero: boolean;
|
|
29
|
+
readonly placeholder: string;
|
|
30
|
+
readonly thousand: boolean;
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"title.vue.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defineComponent, computed, useSlots } from 'vue';
|
|
2
|
+
import { titleEmits, titleProps } from './title.mjs';
|
|
3
|
+
|
|
4
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
...{
|
|
6
|
+
name: "EpTitle",
|
|
7
|
+
inheritAttrs: false
|
|
8
|
+
},
|
|
9
|
+
__name: "title",
|
|
10
|
+
props: titleProps,
|
|
11
|
+
emits: titleEmits,
|
|
12
|
+
setup(__props, { emit: __emit }) {
|
|
13
|
+
computed(() => {
|
|
14
|
+
return Object.keys(useSlots());
|
|
15
|
+
});
|
|
16
|
+
return (_ctx, _cache) => {
|
|
17
|
+
return null;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
export { _sfc_main as default };
|
|
23
|
+
//# sourceMappingURL=title.vue2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"title.vue2.mjs","sources":["../../../../../../packages/components/title/src/title.vue"],"sourcesContent":["<template>\n \n</template>\n<script setup lang=\"ts\">\nimport { computed, useSlots, watch, ref, onMounted } from 'vue'\nimport { createNameSpace } from '@el-plus/utils/bem'\nimport { titleProps, titleEmits, titleEmitsKeys } from './title'\nimport type { TitleProps, TitleEmits } from './title'\nimport {\n prepareProps,\n prepareEvents,\n prepareClassNames,\n prepareStyles,\n} from '@el-plus/utils/props'\ndefineOptions({\n name: 'EpTitle',\n inheritAttrs: false,\n})\nconst bem = createNameSpace('title')\nconst props = defineProps(titleProps)\nconst emit = defineEmits(titleEmits)\nconst slots = computed(() => {\n return Object.keys(useSlots())\n})\n\n\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;AAqBA,IAAc,SAAS,MAAM;AAC3B,MAAA,OAAO,MAAA,CAAO,IAAA,CAAK,QAAA,EAAU,CAAA;AAAA,IAC/B,CAAC;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
package/es/components.mjs
CHANGED
|
@@ -4,8 +4,17 @@ import { EpInput } from './components/input/index.mjs';
|
|
|
4
4
|
import { EpSearchListPage } from './components/searchListPage/index.mjs';
|
|
5
5
|
import { EpSelect } from './components/select/index.mjs';
|
|
6
6
|
import { EpTable } from './components/table/index.mjs';
|
|
7
|
+
import { EpTitle } from './components/title/index.mjs';
|
|
7
8
|
|
|
8
|
-
var components = [
|
|
9
|
+
var components = [
|
|
10
|
+
EpButtons,
|
|
11
|
+
EpForm,
|
|
12
|
+
EpInput,
|
|
13
|
+
EpSearchListPage,
|
|
14
|
+
EpSelect,
|
|
15
|
+
EpTable,
|
|
16
|
+
EpTitle
|
|
17
|
+
];
|
|
9
18
|
|
|
10
19
|
export { components as default };
|
|
11
20
|
//# sourceMappingURL=components.mjs.map
|
package/es/components.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.mjs","sources":["../../../packages/el-plus/components.ts"],"sourcesContent":["import type { Plugin } from 'vue'\nimport Buttons from '@el-plus/components/buttons'\nimport Form from '@el-plus/components/form'\nimport Input from '@el-plus/components/input'\nimport SearchListPage from '@el-plus/components/searchListPage'\nimport Select from '@el-plus/components/select'\nimport Table from '@el-plus/components/table'\n\nexport default [Buttons
|
|
1
|
+
{"version":3,"file":"components.mjs","sources":["../../../packages/el-plus/components.ts"],"sourcesContent":["import type { Plugin } from 'vue'\nimport Buttons from '@el-plus/components/buttons'\nimport Form from '@el-plus/components/form'\nimport Input from '@el-plus/components/input'\nimport SearchListPage from '@el-plus/components/searchListPage'\nimport Select from '@el-plus/components/select'\nimport Table from '@el-plus/components/table'\nimport Title from '@el-plus/components/title'\n\nexport default [\n Buttons,\n Form,\n Input,\n SearchListPage,\n Select,\n Table,\n Title,\n] as Plugin[]\n"],"names":["Buttons","Form","Input","SearchListPage","Select","Table","Title"],"mappings":";;;;;;;;AASA,iBAAe;AAAA,EACbA,SAAA;AAAA,EACAC,MAAA;AAAA,EACAC,OAAA;AAAA,EACAC,gBAAA;AAAA,EACAC,QAAA;AAAA,EACAC,OAAA;AAAA,EACAC;AACF,CAAA;;;;"}
|
package/es/index.mjs
CHANGED
|
@@ -16,6 +16,8 @@ export { expandSelectPropsKeys, inheritSelectProps, selectEmits, selectEmitsKeys
|
|
|
16
16
|
export { EpSelect } from './components/select/index.mjs';
|
|
17
17
|
export { expandTablePropsKeys, tableEmits, tableEmitsKeys, tableProps } from './components/table/src/table.mjs';
|
|
18
18
|
export { EpTable } from './components/table/index.mjs';
|
|
19
|
+
export { titleEmits, titleEmitsKeys, titleProps } from './components/title/src/title.mjs';
|
|
20
|
+
export { EpTitle } from './components/title/index.mjs';
|
|
19
21
|
export { useRequest } from './hooks/use-request.mjs';
|
|
20
22
|
|
|
21
23
|
const install = (app, options) => {
|
package/es/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../packages/el-plus/index.ts"],"sourcesContent":["import type { App, Plugin } from 'vue'\nimport components from './components'\nimport { version } from './package.json'\nexport const install = (app: App, options?: Record<string, any>) => {\n components.forEach((c) => app.use(c))\n if (options) {\n }\n}\n\nconst plugin: Plugin & { version: string } = {\n install,\n version,\n}\nexport default plugin\nexport * from '@el-plus/components/index'\nexport * from '@el-plus/hooks'\nexport * from '@el-plus/directives'\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../packages/el-plus/index.ts"],"sourcesContent":["import type { App, Plugin } from 'vue'\nimport components from './components'\nimport { version } from './package.json'\nexport const install = (app: App, options?: Record<string, any>) => {\n components.forEach((c) => app.use(c))\n if (options) {\n }\n}\n\nconst plugin: Plugin & { version: string } = {\n install,\n version,\n}\nexport default plugin\nexport * from '@el-plus/components/index'\nexport * from '@el-plus/hooks'\nexport * from '@el-plus/directives'\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAGO,MAAM,OAAA,GAAU,CAAC,GAAA,EAAU,OAAA,KAAkC;AAClE,EAAA,UAAA,CAAW,QAAQ,CAAC,CAAA,KAAM,GAAA,CAAI,GAAA,CAAI,CAAC,CAAC,CAAA;AAGtC;AAEA,MAAM,MAAA,GAAuC;AAAA,EAC3C,OAAA;AAAA,EACA;AACF;;;;"}
|
package/es/package.json.mjs
CHANGED