el-plus2 0.0.3 → 0.0.4

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.
Files changed (37) hide show
  1. package/dist/index.full.js +9 -0
  2. package/dist/index.full.min.js +1 -1
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +1 -1
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +9 -0
  7. package/es/components/buttons/index.d.ts +30 -0
  8. package/es/components/buttons/src/buttons-vue.d.ts +19 -0
  9. package/es/components/buttons/src/buttons.d.ts +9 -0
  10. package/es/components/buttons/src/buttons.mjs +9 -0
  11. package/es/components/buttons/src/buttons.mjs.map +1 -1
  12. package/es/components/input/index.d.ts +0 -6
  13. package/es/components/input/index.mjs.map +1 -1
  14. package/es/components/searchListPage/index.d.ts +0 -6
  15. package/es/components/searchListPage/index.mjs.map +1 -1
  16. package/es/components/select/index.d.ts +0 -6
  17. package/es/components/select/index.mjs.map +1 -1
  18. package/es/components/table/index.d.ts +0 -5
  19. package/es/components/table/index.mjs.map +1 -1
  20. package/es/index.d.ts +1 -1
  21. package/es/index.mjs.map +1 -1
  22. package/lib/components/buttons/index.d.ts +30 -0
  23. package/lib/components/buttons/src/buttons-vue.d.ts +19 -0
  24. package/lib/components/buttons/src/buttons.d.ts +9 -0
  25. package/lib/components/buttons/src/buttons.js +9 -0
  26. package/lib/components/buttons/src/buttons.js.map +1 -1
  27. package/lib/components/input/index.d.ts +0 -6
  28. package/lib/components/input/index.js.map +1 -1
  29. package/lib/components/searchListPage/index.d.ts +0 -6
  30. package/lib/components/searchListPage/index.js.map +1 -1
  31. package/lib/components/select/index.d.ts +0 -6
  32. package/lib/components/select/index.js.map +1 -1
  33. package/lib/components/table/index.d.ts +0 -5
  34. package/lib/components/table/index.js.map +1 -1
  35. package/lib/index.d.ts +1 -1
  36. package/lib/index.js.map +1 -1
  37. package/package.json +1 -1
@@ -52,6 +52,15 @@ export declare const EpButtons: {
52
52
  validator: ((val: unknown) => boolean) | undefined;
53
53
  __epPropKey: true;
54
54
  };
55
+ test: {
56
+ type: import("vue").PropType<string>;
57
+ required: boolean;
58
+ };
59
+ test1: {
60
+ type: import("vue").PropType<string>;
61
+ required: boolean;
62
+ default: string;
63
+ };
55
64
  icon: {
56
65
  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>>;
57
66
  readonly required: false;
@@ -120,6 +129,7 @@ export declare const EpButtons: {
120
129
  show?: (boolean | ((T: unknown) => boolean)) | undefined;
121
130
  hide?: (boolean | ((T: unknown) => boolean)) | undefined;
122
131
  }>[];
132
+ test1: string;
123
133
  }, true, {}, {}, import("vue").GlobalComponents, {
124
134
  [x: string]: (import("vue").ObjectDirective<import("packages/directives/repeat-click").RepeatClickEl, import("packages/directives/repeat-click").RepeatClickOptions, string, any> & {
125
135
  name: string;
@@ -186,6 +196,15 @@ export declare const EpButtons: {
186
196
  validator: ((val: unknown) => boolean) | undefined;
187
197
  __epPropKey: true;
188
198
  };
199
+ test: {
200
+ type: import("vue").PropType<string>;
201
+ required: boolean;
202
+ };
203
+ test1: {
204
+ type: import("vue").PropType<string>;
205
+ required: boolean;
206
+ default: string;
207
+ };
189
208
  icon: {
190
209
  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>>;
191
210
  readonly required: false;
@@ -254,6 +273,7 @@ export declare const EpButtons: {
254
273
  show?: (boolean | ((T: unknown) => boolean)) | undefined;
255
274
  hide?: (boolean | ((T: unknown) => boolean)) | undefined;
256
275
  }>[];
276
+ test1: string;
257
277
  }>;
258
278
  __isFragment?: never;
259
279
  __isTeleport?: never;
@@ -280,6 +300,15 @@ export declare const EpButtons: {
280
300
  validator: ((val: unknown) => boolean) | undefined;
281
301
  __epPropKey: true;
282
302
  };
303
+ test: {
304
+ type: import("vue").PropType<string>;
305
+ required: boolean;
306
+ };
307
+ test1: {
308
+ type: import("vue").PropType<string>;
309
+ required: boolean;
310
+ default: string;
311
+ };
283
312
  icon: {
284
313
  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>>;
285
314
  readonly required: false;
@@ -348,6 +377,7 @@ export declare const EpButtons: {
348
377
  show?: (boolean | ((T: unknown) => boolean)) | undefined;
349
378
  hide?: (boolean | ((T: unknown) => boolean)) | undefined;
350
379
  }>[];
380
+ test1: string;
351
381
  }, {}, string, {}, import("vue").GlobalComponents, {
352
382
  [x: string]: (import("vue").ObjectDirective<import("packages/directives/repeat-click").RepeatClickEl, import("packages/directives/repeat-click").RepeatClickOptions, string, any> & {
353
383
  name: string;
@@ -21,6 +21,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
21
21
  validator: ((val: unknown) => boolean) | undefined;
22
22
  __epPropKey: true;
23
23
  };
24
+ test: {
25
+ type: import("vue").PropType<string>;
26
+ required: boolean;
27
+ };
28
+ test1: {
29
+ type: import("vue").PropType<string>;
30
+ required: boolean;
31
+ default: string;
32
+ };
24
33
  icon: {
25
34
  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>>;
26
35
  readonly required: false;
@@ -63,6 +72,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
63
72
  validator: ((val: unknown) => boolean) | undefined;
64
73
  __epPropKey: true;
65
74
  };
75
+ test: {
76
+ type: import("vue").PropType<string>;
77
+ required: boolean;
78
+ };
79
+ test1: {
80
+ type: import("vue").PropType<string>;
81
+ required: boolean;
82
+ default: string;
83
+ };
66
84
  icon: {
67
85
  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>>;
68
86
  readonly required: false;
@@ -131,6 +149,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
131
149
  show?: (boolean | ((T: unknown) => boolean)) | undefined;
132
150
  hide?: (boolean | ((T: unknown) => boolean)) | undefined;
133
151
  }>[];
152
+ test1: string;
134
153
  }, {}, {}, {
135
154
  [vRepeatClick.name]: import("vue").Directive<import("packages/directives/repeat-click").RepeatClickEl, import("packages/directives/repeat-click").RepeatClickOptions> & {
136
155
  name: string;
@@ -33,6 +33,15 @@ export declare const buttonsProps: {
33
33
  validator: ((val: unknown) => boolean) | undefined;
34
34
  __epPropKey: true;
35
35
  };
36
+ test: {
37
+ type: PropType<string>;
38
+ required: boolean;
39
+ };
40
+ test1: {
41
+ type: PropType<string>;
42
+ required: boolean;
43
+ default: string;
44
+ };
36
45
  icon: {
37
46
  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>>;
38
47
  readonly required: false;
@@ -16,6 +16,15 @@ const buttonsProps = {
16
16
  type: {
17
17
  ...buttonProps.type,
18
18
  default: "default"
19
+ },
20
+ test: {
21
+ type: String,
22
+ required: true
23
+ },
24
+ test1: {
25
+ type: String,
26
+ required: true,
27
+ default: "test1"
19
28
  }
20
29
  };
21
30
 
@@ -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}\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;;;;"}
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 test: {\n type: String as PropType<string>,\n required: true,\n },\n test1: {\n type: String as PropType<string>,\n required: true,\n default: 'test1',\n },\n}\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,GACX;AAAA,EACA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,MAAA;AAAA,IACN,QAAA,EAAU;AAAA,GACZ;AAAA,EACA,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,QAAA,EAAU,IAAA;AAAA,IACV,OAAA,EAAS;AAAA;AAEb;;;;"}
@@ -1,4 +1,3 @@
1
- import Input from './src/input.vue';
2
1
  export declare const EpInput: {
3
2
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
4
3
  max: NumberConstructor;
@@ -461,8 +460,3 @@ export declare const EpInput: {
461
460
  }) & import("vue").Plugin;
462
461
  export default EpInput;
463
462
  export * from './src/input';
464
- declare module 'vue' {
465
- interface GlobalComponents {
466
- EpInput: typeof Input;
467
- }
468
- }
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/input/index.ts"],"sourcesContent":["import Input from './src/input.vue'\nimport { withInstall } from '@el-plus/utils/with-install'\n\nexport const EpInput = withInstall(Input)\nexport default EpInput\nexport * from './src/input'\n\n// GlobalComponents是vue3自带,用于扩展接口,给用户自定义全局组件补充类型提示\ndeclare module 'vue' {\n export interface GlobalComponents {\n // 接口自动合并\n EpInput: typeof Input\n }\n}\n"],"names":["Input"],"mappings":";;;;AAGO,MAAM,OAAA,GAAU,YAAYA,SAAK;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/input/index.ts"],"sourcesContent":["import Input from './src/input.vue'\nimport { withInstall } from '@el-plus/utils/with-install'\n\nexport const EpInput = withInstall(Input)\nexport default EpInput\nexport * from './src/input'\n\n"],"names":["Input"],"mappings":";;;;AAGO,MAAM,OAAA,GAAU,YAAYA,SAAK;;;;"}
@@ -1,4 +1,3 @@
1
- import SearchListPage from './src/searchListPage.vue';
2
1
  export declare const EpSearchListPage: {
3
2
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
4
3
  customColumnModule: NumberConstructor;
@@ -8576,8 +8575,3 @@ export declare const EpSearchListPage: {
8576
8575
  }) & import("vue").Plugin;
8577
8576
  export default EpSearchListPage;
8578
8577
  export * from './src/searchListPage';
8579
- declare module 'vue' {
8580
- interface GlobalComponents {
8581
- EpSearchListPage: typeof SearchListPage;
8582
- }
8583
- }
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/searchListPage/index.ts"],"sourcesContent":["import SearchListPage from './src/searchListPage.vue'\nimport { withInstall } from '@el-plus/utils/with-install'\n\nexport const EpSearchListPage = withInstall(SearchListPage)\nexport default EpSearchListPage\nexport * from './src/searchListPage'\n\n// GlobalComponents是vue3自带,用于扩展接口,给用户自定义全局组件补充类型提示\ndeclare module 'vue' {\n export interface GlobalComponents {\n // 接口自动合并\n EpSearchListPage: typeof SearchListPage\n }\n}\n"],"names":["SearchListPage"],"mappings":";;;;AAGO,MAAM,gBAAA,GAAmB,YAAYA,SAAc;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/searchListPage/index.ts"],"sourcesContent":["import SearchListPage from './src/searchListPage.vue'\nimport { withInstall } from '@el-plus/utils/with-install'\n\nexport const EpSearchListPage = withInstall(SearchListPage)\nexport default EpSearchListPage\nexport * from './src/searchListPage'\n\n"],"names":["SearchListPage"],"mappings":";;;;AAGO,MAAM,gBAAA,GAAmB,YAAYA,SAAc;;;;"}
@@ -1,4 +1,3 @@
1
- import Select from './src/select.vue';
2
1
  export declare const EpSelect: {
3
2
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
4
3
  disabledOption: {
@@ -657,8 +656,3 @@ export declare const EpSelect: {
657
656
  }) & import("vue").Plugin;
658
657
  export default EpSelect;
659
658
  export * from './src/select';
660
- declare module 'vue' {
661
- interface GlobalComponents {
662
- EpSelect: typeof Select;
663
- }
664
- }
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/select/index.ts"],"sourcesContent":["import Select from './src/select.vue'\nimport { withInstall } from '@el-plus/utils/with-install'\n\nexport const EpSelect = withInstall(Select)\nexport default EpSelect\nexport * from './src/select'\n\ndeclare module 'vue' {\n export interface GlobalComponents {\n EpSelect: typeof Select\n }\n}\n"],"names":["Select"],"mappings":";;;;AAGO,MAAM,QAAA,GAAW,YAAYA,SAAM;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/select/index.ts"],"sourcesContent":["import Select from './src/select.vue'\nimport { withInstall } from '@el-plus/utils/with-install'\n\nexport const EpSelect = withInstall(Select)\nexport default EpSelect\nexport * from './src/select'\n"],"names":["Select"],"mappings":";;;;AAGO,MAAM,QAAA,GAAW,YAAYA,SAAM;;;;"}
@@ -2968,8 +2968,3 @@ export declare const EpTable: {
2968
2968
  export default EpTable;
2969
2969
  export * from './src/table';
2970
2970
  export type TableInstance = InstanceType<typeof Table>;
2971
- declare module 'vue' {
2972
- interface GlobalComponents {
2973
- EpTable: typeof Table;
2974
- }
2975
- }
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/table/index.ts"],"sourcesContent":["import Table from './src/table.vue'\nimport { withInstall } from '@el-plus/utils/with-install'\n\nexport const EpTable = withInstall(Table)\nexport default EpTable\nexport * from './src/table'\nexport type TableInstance = InstanceType<typeof Table>\n// GlobalComponents是vue3自带,用于扩展接口,给用户自定义全局组件补充类型提示\ndeclare module 'vue' {\n export interface GlobalComponents {\n // 接口自动合并\n EpTable: typeof Table\n }\n}\n"],"names":["Table"],"mappings":";;;;AAGO,MAAM,OAAA,GAAU,YAAYA,SAAK;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/table/index.ts"],"sourcesContent":["import Table from './src/table.vue'\nimport { withInstall } from '@el-plus/utils/with-install'\n\nexport const EpTable = withInstall(Table)\nexport default EpTable\nexport * from './src/table'\nexport type TableInstance = InstanceType<typeof Table>\n\n"],"names":["Table"],"mappings":";;;;AAGO,MAAM,OAAA,GAAU,YAAYA,SAAK;;;;"}
package/es/index.d.ts CHANGED
@@ -4,6 +4,6 @@ declare const plugin: Plugin & {
4
4
  version: string;
5
5
  };
6
6
  export default plugin;
7
- export * from 'el-plus/es/components';
7
+ export * from 'el-plus/es/components/';
8
8
  export * from 'el-plus/es/hooks';
9
9
  export * from 'el-plus/es/directives';
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'\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;;;;"}
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/'\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;;;;"}
@@ -52,6 +52,15 @@ export declare const EpButtons: {
52
52
  validator: ((val: unknown) => boolean) | undefined;
53
53
  __epPropKey: true;
54
54
  };
55
+ test: {
56
+ type: import("vue").PropType<string>;
57
+ required: boolean;
58
+ };
59
+ test1: {
60
+ type: import("vue").PropType<string>;
61
+ required: boolean;
62
+ default: string;
63
+ };
55
64
  icon: {
56
65
  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>>;
57
66
  readonly required: false;
@@ -120,6 +129,7 @@ export declare const EpButtons: {
120
129
  show?: (boolean | ((T: unknown) => boolean)) | undefined;
121
130
  hide?: (boolean | ((T: unknown) => boolean)) | undefined;
122
131
  }>[];
132
+ test1: string;
123
133
  }, true, {}, {}, import("vue").GlobalComponents, {
124
134
  [x: string]: (import("vue").ObjectDirective<import("packages/directives/repeat-click").RepeatClickEl, import("packages/directives/repeat-click").RepeatClickOptions, string, any> & {
125
135
  name: string;
@@ -186,6 +196,15 @@ export declare const EpButtons: {
186
196
  validator: ((val: unknown) => boolean) | undefined;
187
197
  __epPropKey: true;
188
198
  };
199
+ test: {
200
+ type: import("vue").PropType<string>;
201
+ required: boolean;
202
+ };
203
+ test1: {
204
+ type: import("vue").PropType<string>;
205
+ required: boolean;
206
+ default: string;
207
+ };
189
208
  icon: {
190
209
  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>>;
191
210
  readonly required: false;
@@ -254,6 +273,7 @@ export declare const EpButtons: {
254
273
  show?: (boolean | ((T: unknown) => boolean)) | undefined;
255
274
  hide?: (boolean | ((T: unknown) => boolean)) | undefined;
256
275
  }>[];
276
+ test1: string;
257
277
  }>;
258
278
  __isFragment?: never;
259
279
  __isTeleport?: never;
@@ -280,6 +300,15 @@ export declare const EpButtons: {
280
300
  validator: ((val: unknown) => boolean) | undefined;
281
301
  __epPropKey: true;
282
302
  };
303
+ test: {
304
+ type: import("vue").PropType<string>;
305
+ required: boolean;
306
+ };
307
+ test1: {
308
+ type: import("vue").PropType<string>;
309
+ required: boolean;
310
+ default: string;
311
+ };
283
312
  icon: {
284
313
  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>>;
285
314
  readonly required: false;
@@ -348,6 +377,7 @@ export declare const EpButtons: {
348
377
  show?: (boolean | ((T: unknown) => boolean)) | undefined;
349
378
  hide?: (boolean | ((T: unknown) => boolean)) | undefined;
350
379
  }>[];
380
+ test1: string;
351
381
  }, {}, string, {}, import("vue").GlobalComponents, {
352
382
  [x: string]: (import("vue").ObjectDirective<import("packages/directives/repeat-click").RepeatClickEl, import("packages/directives/repeat-click").RepeatClickOptions, string, any> & {
353
383
  name: string;
@@ -21,6 +21,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
21
21
  validator: ((val: unknown) => boolean) | undefined;
22
22
  __epPropKey: true;
23
23
  };
24
+ test: {
25
+ type: import("vue").PropType<string>;
26
+ required: boolean;
27
+ };
28
+ test1: {
29
+ type: import("vue").PropType<string>;
30
+ required: boolean;
31
+ default: string;
32
+ };
24
33
  icon: {
25
34
  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>>;
26
35
  readonly required: false;
@@ -63,6 +72,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
63
72
  validator: ((val: unknown) => boolean) | undefined;
64
73
  __epPropKey: true;
65
74
  };
75
+ test: {
76
+ type: import("vue").PropType<string>;
77
+ required: boolean;
78
+ };
79
+ test1: {
80
+ type: import("vue").PropType<string>;
81
+ required: boolean;
82
+ default: string;
83
+ };
66
84
  icon: {
67
85
  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>>;
68
86
  readonly required: false;
@@ -131,6 +149,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
131
149
  show?: (boolean | ((T: unknown) => boolean)) | undefined;
132
150
  hide?: (boolean | ((T: unknown) => boolean)) | undefined;
133
151
  }>[];
152
+ test1: string;
134
153
  }, {}, {}, {
135
154
  [vRepeatClick.name]: import("vue").Directive<import("packages/directives/repeat-click").RepeatClickEl, import("packages/directives/repeat-click").RepeatClickOptions> & {
136
155
  name: string;
@@ -33,6 +33,15 @@ export declare const buttonsProps: {
33
33
  validator: ((val: unknown) => boolean) | undefined;
34
34
  __epPropKey: true;
35
35
  };
36
+ test: {
37
+ type: PropType<string>;
38
+ required: boolean;
39
+ };
40
+ test1: {
41
+ type: PropType<string>;
42
+ required: boolean;
43
+ default: string;
44
+ };
36
45
  icon: {
37
46
  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>>;
38
47
  readonly required: false;
@@ -18,6 +18,15 @@ const buttonsProps = {
18
18
  type: {
19
19
  ...elementPlus.buttonProps.type,
20
20
  default: "default"
21
+ },
22
+ test: {
23
+ type: String,
24
+ required: true
25
+ },
26
+ test1: {
27
+ type: String,
28
+ required: true,
29
+ default: "test1"
21
30
  }
22
31
  };
23
32
 
@@ -1 +1 @@
1
- {"version":3,"file":"buttons.js","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}\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,uBAAA;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,uBAAA,CAAc,IAAA;AAAA,IACjB,OAAA,EAAS;AAAA,GACX;AAAA,EACA,IAAA,EAAM;AAAA,IACJ,GAAGA,uBAAA,CAAc,IAAA;AAAA,IACjB,OAAA,EAAS;AAAA;AAEb;;;;"}
1
+ {"version":3,"file":"buttons.js","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 test: {\n type: String as PropType<string>,\n required: true,\n },\n test1: {\n type: String as PropType<string>,\n required: true,\n default: 'test1',\n },\n}\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,uBAAA;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,uBAAA,CAAc,IAAA;AAAA,IACjB,OAAA,EAAS;AAAA,GACX;AAAA,EACA,IAAA,EAAM;AAAA,IACJ,GAAGA,uBAAA,CAAc,IAAA;AAAA,IACjB,OAAA,EAAS;AAAA,GACX;AAAA,EACA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,MAAA;AAAA,IACN,QAAA,EAAU;AAAA,GACZ;AAAA,EACA,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,QAAA,EAAU,IAAA;AAAA,IACV,OAAA,EAAS;AAAA;AAEb;;;;"}
@@ -1,4 +1,3 @@
1
- import Input from './src/input.vue';
2
1
  export declare const EpInput: {
3
2
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
4
3
  max: NumberConstructor;
@@ -461,8 +460,3 @@ export declare const EpInput: {
461
460
  }) & import("vue").Plugin;
462
461
  export default EpInput;
463
462
  export * from './src/input';
464
- declare module 'vue' {
465
- interface GlobalComponents {
466
- EpInput: typeof Input;
467
- }
468
- }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../packages/components/input/index.ts"],"sourcesContent":["import Input from './src/input.vue'\nimport { withInstall } from '@el-plus/utils/with-install'\n\nexport const EpInput = withInstall(Input)\nexport default EpInput\nexport * from './src/input'\n\n// GlobalComponents是vue3自带,用于扩展接口,给用户自定义全局组件补充类型提示\ndeclare module 'vue' {\n export interface GlobalComponents {\n // 接口自动合并\n EpInput: typeof Input\n }\n}\n"],"names":["withInstall","Input"],"mappings":";;;;;;;;AAGO,MAAM,OAAA,GAAUA,wBAAYC,iDAAK;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../packages/components/input/index.ts"],"sourcesContent":["import Input from './src/input.vue'\nimport { withInstall } from '@el-plus/utils/with-install'\n\nexport const EpInput = withInstall(Input)\nexport default EpInput\nexport * from './src/input'\n\n"],"names":["withInstall","Input"],"mappings":";;;;;;;;AAGO,MAAM,OAAA,GAAUA,wBAAYC,iDAAK;;;;;;;;"}
@@ -1,4 +1,3 @@
1
- import SearchListPage from './src/searchListPage.vue';
2
1
  export declare const EpSearchListPage: {
3
2
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
4
3
  customColumnModule: NumberConstructor;
@@ -8576,8 +8575,3 @@ export declare const EpSearchListPage: {
8576
8575
  }) & import("vue").Plugin;
8577
8576
  export default EpSearchListPage;
8578
8577
  export * from './src/searchListPage';
8579
- declare module 'vue' {
8580
- interface GlobalComponents {
8581
- EpSearchListPage: typeof SearchListPage;
8582
- }
8583
- }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../packages/components/searchListPage/index.ts"],"sourcesContent":["import SearchListPage from './src/searchListPage.vue'\nimport { withInstall } from '@el-plus/utils/with-install'\n\nexport const EpSearchListPage = withInstall(SearchListPage)\nexport default EpSearchListPage\nexport * from './src/searchListPage'\n\n// GlobalComponents是vue3自带,用于扩展接口,给用户自定义全局组件补充类型提示\ndeclare module 'vue' {\n export interface GlobalComponents {\n // 接口自动合并\n EpSearchListPage: typeof SearchListPage\n }\n}\n"],"names":["withInstall","SearchListPage"],"mappings":";;;;;;;;AAGO,MAAM,gBAAA,GAAmBA,wBAAYC,0DAAc;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../packages/components/searchListPage/index.ts"],"sourcesContent":["import SearchListPage from './src/searchListPage.vue'\nimport { withInstall } from '@el-plus/utils/with-install'\n\nexport const EpSearchListPage = withInstall(SearchListPage)\nexport default EpSearchListPage\nexport * from './src/searchListPage'\n\n"],"names":["withInstall","SearchListPage"],"mappings":";;;;;;;;AAGO,MAAM,gBAAA,GAAmBA,wBAAYC,0DAAc;;;;;;"}
@@ -1,4 +1,3 @@
1
- import Select from './src/select.vue';
2
1
  export declare const EpSelect: {
3
2
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
4
3
  disabledOption: {
@@ -657,8 +656,3 @@ export declare const EpSelect: {
657
656
  }) & import("vue").Plugin;
658
657
  export default EpSelect;
659
658
  export * from './src/select';
660
- declare module 'vue' {
661
- interface GlobalComponents {
662
- EpSelect: typeof Select;
663
- }
664
- }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../packages/components/select/index.ts"],"sourcesContent":["import Select from './src/select.vue'\nimport { withInstall } from '@el-plus/utils/with-install'\n\nexport const EpSelect = withInstall(Select)\nexport default EpSelect\nexport * from './src/select'\n\ndeclare module 'vue' {\n export interface GlobalComponents {\n EpSelect: typeof Select\n }\n}\n"],"names":["withInstall","Select"],"mappings":";;;;;;;;AAGO,MAAM,QAAA,GAAWA,wBAAYC,kDAAM;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../packages/components/select/index.ts"],"sourcesContent":["import Select from './src/select.vue'\nimport { withInstall } from '@el-plus/utils/with-install'\n\nexport const EpSelect = withInstall(Select)\nexport default EpSelect\nexport * from './src/select'\n"],"names":["withInstall","Select"],"mappings":";;;;;;;;AAGO,MAAM,QAAA,GAAWA,wBAAYC,kDAAM;;;;;;;;;;"}
@@ -2968,8 +2968,3 @@ export declare const EpTable: {
2968
2968
  export default EpTable;
2969
2969
  export * from './src/table';
2970
2970
  export type TableInstance = InstanceType<typeof Table>;
2971
- declare module 'vue' {
2972
- interface GlobalComponents {
2973
- EpTable: typeof Table;
2974
- }
2975
- }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../packages/components/table/index.ts"],"sourcesContent":["import Table from './src/table.vue'\nimport { withInstall } from '@el-plus/utils/with-install'\n\nexport const EpTable = withInstall(Table)\nexport default EpTable\nexport * from './src/table'\nexport type TableInstance = InstanceType<typeof Table>\n// GlobalComponents是vue3自带,用于扩展接口,给用户自定义全局组件补充类型提示\ndeclare module 'vue' {\n export interface GlobalComponents {\n // 接口自动合并\n EpTable: typeof Table\n }\n}\n"],"names":["withInstall","Table"],"mappings":";;;;;;;;AAGO,MAAM,OAAA,GAAUA,wBAAYC,iDAAK;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../packages/components/table/index.ts"],"sourcesContent":["import Table from './src/table.vue'\nimport { withInstall } from '@el-plus/utils/with-install'\n\nexport const EpTable = withInstall(Table)\nexport default EpTable\nexport * from './src/table'\nexport type TableInstance = InstanceType<typeof Table>\n\n"],"names":["withInstall","Table"],"mappings":";;;;;;;;AAGO,MAAM,OAAA,GAAUA,wBAAYC,iDAAK;;;;;;;;;"}
package/lib/index.d.ts CHANGED
@@ -4,6 +4,6 @@ declare const plugin: Plugin & {
4
4
  version: string;
5
5
  };
6
6
  export default plugin;
7
- export * from 'el-plus/es/components';
7
+ export * from 'el-plus/es/components/';
8
8
  export * from 'el-plus/es/hooks';
9
9
  export * from 'el-plus/es/directives';
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","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'\nexport * from '@el-plus/hooks'\nexport * from '@el-plus/directives'\n"],"names":["components","version"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAGO,MAAM,OAAA,GAAU,CAAC,GAAA,EAAU,OAAA,KAAkC;AAClE,EAAAA,kBAAA,CAAW,QAAQ,CAAC,CAAA,KAAM,GAAA,CAAI,GAAA,CAAI,CAAC,CAAC,CAAA;AAGtC;AAEA,MAAM,MAAA,GAAuC;AAAA,EAC3C,OAAA;AAAA,WACAC;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","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/'\nexport * from '@el-plus/hooks'\nexport * from '@el-plus/directives'\n"],"names":["components","version"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAGO,MAAM,OAAA,GAAU,CAAC,GAAA,EAAU,OAAA,KAAkC;AAClE,EAAAA,kBAAA,CAAW,QAAQ,CAAC,CAAA,KAAM,GAAA,CAAI,GAAA,CAAI,CAAC,CAAC,CAAA;AAGtC;AAEA,MAAM,MAAA,GAAuC;AAAA,EAC3C,OAAA;AAAA,WACAC;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "el-plus2",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "pro base on element-plus",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.mjs",