el-plus 0.0.39 → 0.0.41
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.css +1 -1
- package/dist/index.full.js +202 -29
- 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 +199 -27
- 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/search-list-page/index.d.ts +12 -12
- package/es/components/search-list-page/src/search-list-page.d.ts +1 -1
- package/es/components/search-list-page/src/search-list-page.vue.d.ts +5 -5
- package/es/components/search-list-page/src/use-search-list-page.d.ts +3 -3
- package/es/components/select/index.d.ts +3 -3
- package/es/components/select/src/select.d.ts +1 -1
- package/es/components/select/src/select.vue.d.ts +2 -2
- package/es/components/table/index.d.ts +3 -3
- package/es/components/table/src/table.d.ts +1 -1
- package/es/components/table/src/table.vue.d.ts +2 -2
- package/es/components/uni-vue/index.d.ts +24 -0
- package/es/components/uni-vue/index.mjs +8 -0
- package/es/components/uni-vue/index.mjs.map +1 -0
- package/es/components/uni-vue/src/uni-vue.d.ts +7 -0
- package/es/components/uni-vue/src/uni-vue.mjs +10 -0
- package/es/components/uni-vue/src/uni-vue.mjs.map +1 -0
- package/es/components/uni-vue/src/uni-vue.vue.d.ts +9 -0
- package/es/components/uni-vue/src/uni-vue.vue.mjs +6 -0
- package/es/components/uni-vue/src/uni-vue.vue.mjs.map +1 -0
- package/es/components/uni-vue/src/uni-vue.vue2.mjs +40 -0
- package/es/components/uni-vue/src/uni-vue.vue2.mjs.map +1 -0
- package/es/components/uni-vue/src/use-uni-vue.d.ts +3 -0
- package/es/components/uni-vue/src/use-uni-vue.mjs +138 -0
- package/es/components/uni-vue/src/use-uni-vue.mjs.map +1 -0
- package/es/components/uni-vue/style/css.d.ts +2 -0
- package/es/components/uni-vue/style/css.mjs +5 -0
- package/es/components/uni-vue/style/css.mjs.map +1 -0
- package/es/components/uni-vue/style/index.d.ts +2 -0
- package/es/components/uni-vue/style/index.mjs +5 -0
- package/es/components/uni-vue/style/index.mjs.map +1 -0
- package/es/components.mjs +3 -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/es/types/global.d.ts +5 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +5 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/search-list-page/index.d.ts +12 -12
- package/lib/components/search-list-page/src/search-list-page.d.ts +1 -1
- package/lib/components/search-list-page/src/search-list-page.vue.d.ts +5 -5
- package/lib/components/search-list-page/src/use-search-list-page.d.ts +3 -3
- package/lib/components/select/index.d.ts +3 -3
- package/lib/components/select/src/select.d.ts +1 -1
- package/lib/components/select/src/select.vue.d.ts +2 -2
- package/lib/components/table/index.d.ts +3 -3
- package/lib/components/table/src/table.d.ts +1 -1
- package/lib/components/table/src/table.vue.d.ts +2 -2
- package/lib/components/uni-vue/index.d.ts +24 -0
- package/lib/components/uni-vue/index.js +15 -0
- package/lib/components/uni-vue/index.js.map +1 -0
- package/lib/components/uni-vue/src/uni-vue.d.ts +7 -0
- package/lib/components/uni-vue/src/uni-vue.js +13 -0
- package/lib/components/uni-vue/src/uni-vue.js.map +1 -0
- package/lib/components/uni-vue/src/uni-vue.vue.d.ts +9 -0
- package/lib/components/uni-vue/src/uni-vue.vue.js +10 -0
- package/lib/components/uni-vue/src/uni-vue.vue.js.map +1 -0
- package/lib/components/uni-vue/src/uni-vue.vue2.js +44 -0
- package/lib/components/uni-vue/src/uni-vue.vue2.js.map +1 -0
- package/lib/components/uni-vue/src/use-uni-vue.d.ts +3 -0
- package/lib/components/uni-vue/src/use-uni-vue.js +140 -0
- package/lib/components/uni-vue/src/use-uni-vue.js.map +1 -0
- package/lib/components/uni-vue/style/css.d.ts +2 -0
- package/lib/components/uni-vue/style/css.js +7 -0
- package/lib/components/uni-vue/style/css.js.map +1 -0
- package/lib/components/uni-vue/style/index.d.ts +2 -0
- package/lib/components/uni-vue/style/index.js +7 -0
- package/lib/components/uni-vue/style/index.js.map +1 -0
- package/lib/components.js +3 -1
- package/lib/components.js.map +1 -1
- package/lib/index.js +11 -6
- package/lib/index.js.map +1 -1
- package/lib/package.json.js +1 -1
- package/lib/types/global.d.ts +5 -0
- package/package.json +9 -9
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/index.scss +2 -1
- package/theme-chalk/src/uni-vue.scss +11 -0
- package/theme-chalk/uni-vue.css +1 -0
|
@@ -62,7 +62,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
62
62
|
type: import("vue").PropType<import("el-plus/es/types").Api>;
|
|
63
63
|
};
|
|
64
64
|
readonly method: {
|
|
65
|
-
type: import("vue").PropType<import("
|
|
65
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
66
66
|
};
|
|
67
67
|
readonly reqData: {
|
|
68
68
|
type: ObjectConstructor;
|
|
@@ -297,7 +297,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
297
297
|
readonly allowDragLastColumn: boolean;
|
|
298
298
|
readonly preserveExpandedContent: boolean;
|
|
299
299
|
readonly nativeScrollbar: boolean;
|
|
300
|
-
readonly method?: import("
|
|
300
|
+
readonly method?: import("axios").Method | undefined;
|
|
301
301
|
readonly load?: ((row: any, treeNode: import("element-plus").TreeNode, resolve: (data: any[]) => void) => void) | undefined;
|
|
302
302
|
readonly width?: string | number | undefined;
|
|
303
303
|
readonly api?: import("el-plus/es/types").Api | undefined;
|
|
@@ -410,7 +410,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
410
410
|
type: import("vue").PropType<import("el-plus/es/types").Api>;
|
|
411
411
|
};
|
|
412
412
|
readonly method: {
|
|
413
|
-
type: import("vue").PropType<import("
|
|
413
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
414
414
|
};
|
|
415
415
|
readonly reqData: {
|
|
416
416
|
type: ObjectConstructor;
|
|
@@ -1423,7 +1423,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
1423
1423
|
type: import("vue").PropType<import("el-plus/es/types").Api>;
|
|
1424
1424
|
};
|
|
1425
1425
|
readonly method: {
|
|
1426
|
-
type: import("vue").PropType<import("
|
|
1426
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
1427
1427
|
};
|
|
1428
1428
|
readonly reqData: {
|
|
1429
1429
|
type: ObjectConstructor;
|
|
@@ -2472,7 +2472,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
2472
2472
|
type: import("vue").PropType<import("el-plus/es/types").Api>;
|
|
2473
2473
|
};
|
|
2474
2474
|
readonly method: {
|
|
2475
|
-
type: import("vue").PropType<import("
|
|
2475
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
2476
2476
|
};
|
|
2477
2477
|
readonly reqData: {
|
|
2478
2478
|
type: ObjectConstructor;
|
|
@@ -298,7 +298,7 @@ export declare const useSearchListPage: (props: SearchListPageProps, config?: {}
|
|
|
298
298
|
readonly allowDragLastColumn: boolean;
|
|
299
299
|
readonly preserveExpandedContent: boolean;
|
|
300
300
|
readonly nativeScrollbar: boolean;
|
|
301
|
-
readonly method?: import("
|
|
301
|
+
readonly method?: import("axios").Method | undefined;
|
|
302
302
|
readonly load?: ((row: any, treeNode: import("element-plus").TreeNode, resolve: (data: any[]) => void) => void) | undefined;
|
|
303
303
|
readonly width?: string | number | undefined;
|
|
304
304
|
readonly api?: import("el-plus/es/types").Api | undefined;
|
|
@@ -411,7 +411,7 @@ export declare const useSearchListPage: (props: SearchListPageProps, config?: {}
|
|
|
411
411
|
type: import("vue").PropType<import("el-plus/es/types").Api>;
|
|
412
412
|
};
|
|
413
413
|
readonly method: {
|
|
414
|
-
type: import("vue").PropType<import("
|
|
414
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
415
415
|
};
|
|
416
416
|
readonly reqData: {
|
|
417
417
|
type: ObjectConstructor;
|
|
@@ -1424,7 +1424,7 @@ export declare const useSearchListPage: (props: SearchListPageProps, config?: {}
|
|
|
1424
1424
|
type: import("vue").PropType<import("el-plus/es/types").Api>;
|
|
1425
1425
|
};
|
|
1426
1426
|
readonly method: {
|
|
1427
|
-
type: import("vue").PropType<import("
|
|
1427
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
1428
1428
|
};
|
|
1429
1429
|
readonly reqData: {
|
|
1430
1430
|
type: ObjectConstructor;
|
|
@@ -23,7 +23,7 @@ export declare const EpSelect: {
|
|
|
23
23
|
type: import("vue").PropType<import("el-plus/es/types/axios").Api>;
|
|
24
24
|
};
|
|
25
25
|
method: {
|
|
26
|
-
type: import("vue").PropType<import("
|
|
26
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
27
27
|
};
|
|
28
28
|
reqData: {
|
|
29
29
|
type: ObjectConstructor;
|
|
@@ -246,7 +246,7 @@ export declare const EpSelect: {
|
|
|
246
246
|
type: import("vue").PropType<import("el-plus/es/types/axios").Api>;
|
|
247
247
|
};
|
|
248
248
|
method: {
|
|
249
|
-
type: import("vue").PropType<import("
|
|
249
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
250
250
|
};
|
|
251
251
|
reqData: {
|
|
252
252
|
type: ObjectConstructor;
|
|
@@ -453,7 +453,7 @@ export declare const EpSelect: {
|
|
|
453
453
|
type: import("vue").PropType<import("el-plus/es/types/axios").Api>;
|
|
454
454
|
};
|
|
455
455
|
method: {
|
|
456
|
-
type: import("vue").PropType<import("
|
|
456
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
457
457
|
};
|
|
458
458
|
reqData: {
|
|
459
459
|
type: ObjectConstructor;
|
|
@@ -138,7 +138,7 @@ export declare const selectProps: {
|
|
|
138
138
|
type: PropType<import("el-plus/es/types").Api>;
|
|
139
139
|
};
|
|
140
140
|
readonly method: {
|
|
141
|
-
type: PropType<import("
|
|
141
|
+
type: PropType<import("axios").Method>;
|
|
142
142
|
};
|
|
143
143
|
readonly reqData: {
|
|
144
144
|
type: ObjectConstructor;
|
|
@@ -30,7 +30,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
30
30
|
type: import("vue").PropType<import("el-plus/es/types").Api>;
|
|
31
31
|
};
|
|
32
32
|
method: {
|
|
33
|
-
type: import("vue").PropType<import("
|
|
33
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
34
34
|
};
|
|
35
35
|
reqData: {
|
|
36
36
|
type: ObjectConstructor;
|
|
@@ -194,7 +194,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
194
194
|
type: import("vue").PropType<import("el-plus/es/types").Api>;
|
|
195
195
|
};
|
|
196
196
|
method: {
|
|
197
|
-
type: import("vue").PropType<import("
|
|
197
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
198
198
|
};
|
|
199
199
|
reqData: {
|
|
200
200
|
type: ObjectConstructor;
|
|
@@ -93,7 +93,7 @@ export declare const EpTable: {
|
|
|
93
93
|
type: import("vue").PropType<import("el-plus/es/types/axios").Api>;
|
|
94
94
|
};
|
|
95
95
|
readonly method: {
|
|
96
|
-
type: import("vue").PropType<import("
|
|
96
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
97
97
|
};
|
|
98
98
|
readonly reqData: {
|
|
99
99
|
type: ObjectConstructor;
|
|
@@ -1023,7 +1023,7 @@ export declare const EpTable: {
|
|
|
1023
1023
|
type: import("vue").PropType<import("el-plus/es/types/axios").Api>;
|
|
1024
1024
|
};
|
|
1025
1025
|
readonly method: {
|
|
1026
|
-
type: import("vue").PropType<import("
|
|
1026
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
1027
1027
|
};
|
|
1028
1028
|
readonly reqData: {
|
|
1029
1029
|
type: ObjectConstructor;
|
|
@@ -1912,7 +1912,7 @@ export declare const EpTable: {
|
|
|
1912
1912
|
type: import("vue").PropType<import("el-plus/es/types/axios").Api>;
|
|
1913
1913
|
};
|
|
1914
1914
|
readonly method: {
|
|
1915
|
-
type: import("vue").PropType<import("
|
|
1915
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
1916
1916
|
};
|
|
1917
1917
|
readonly reqData: {
|
|
1918
1918
|
type: ObjectConstructor;
|
|
@@ -76,7 +76,7 @@ export declare const tableProps: {
|
|
|
76
76
|
type: PropType<import("el-plus/es/types").Api>;
|
|
77
77
|
};
|
|
78
78
|
readonly method: {
|
|
79
|
-
type: PropType<import("
|
|
79
|
+
type: PropType<import("axios").Method>;
|
|
80
80
|
};
|
|
81
81
|
readonly reqData: {
|
|
82
82
|
type: ObjectConstructor;
|
|
@@ -57,7 +57,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
57
57
|
type: import("vue").PropType<import("el-plus/es/types").Api>;
|
|
58
58
|
};
|
|
59
59
|
readonly method: {
|
|
60
|
-
type: import("vue").PropType<import("
|
|
60
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
61
61
|
};
|
|
62
62
|
readonly reqData: {
|
|
63
63
|
type: ObjectConstructor;
|
|
@@ -834,7 +834,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
834
834
|
type: import("vue").PropType<import("el-plus/es/types").Api>;
|
|
835
835
|
};
|
|
836
836
|
readonly method: {
|
|
837
|
-
type: import("vue").PropType<import("
|
|
837
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
838
838
|
};
|
|
839
839
|
readonly reqData: {
|
|
840
840
|
type: ObjectConstructor;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const EpUniVue: {
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
3
|
+
readonly name: StringConstructor;
|
|
4
|
+
readonly type: import("vue").PropType<typeof import("./src/uni-vue").componentType[number]>;
|
|
5
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
6
|
+
P: {};
|
|
7
|
+
B: {};
|
|
8
|
+
D: {};
|
|
9
|
+
C: {};
|
|
10
|
+
M: {};
|
|
11
|
+
Defaults: {};
|
|
12
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
readonly name: StringConstructor;
|
|
14
|
+
readonly type: import("vue").PropType<typeof import("./src/uni-vue").componentType[number]>;
|
|
15
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
16
|
+
__isFragment?: never;
|
|
17
|
+
__isTeleport?: never;
|
|
18
|
+
__isSuspense?: never;
|
|
19
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
readonly name: StringConstructor;
|
|
21
|
+
readonly type: import("vue").PropType<typeof import("./src/uni-vue").componentType[number]>;
|
|
22
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
|
|
23
|
+
export default EpUniVue;
|
|
24
|
+
export * from './src/uni-vue';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var uniVue_vue_vue_type_script_setup_true_lang = require('./src/uni-vue.vue2.js');
|
|
6
|
+
var withInstall = require('../../utils/with-install.js');
|
|
7
|
+
var uniVue = require('./src/uni-vue.js');
|
|
8
|
+
|
|
9
|
+
const EpUniVue = withInstall.withInstall(uniVue_vue_vue_type_script_setup_true_lang.default);
|
|
10
|
+
|
|
11
|
+
exports.componentType = uniVue.componentType;
|
|
12
|
+
exports.uniVueProps = uniVue.uniVueProps;
|
|
13
|
+
exports.EpUniVue = EpUniVue;
|
|
14
|
+
exports.default = EpUniVue;
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../packages/components/uni-vue/index.ts"],"sourcesContent":["import UniVue from './src/uni-vue.vue'\nimport { withInstall } from '@el-plus/utils/with-install'\n\nexport const EpUniVue = withInstall(UniVue)\nexport default EpUniVue\nexport * from './src/uni-vue'\n"],"names":["withInstall","UniVue"],"mappings":";;;;;;;;AAGO,MAAM,QAAA,GAAWA,wBAAYC,kDAAM;;;;;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ExtractPublicPropTypes, PropType } from 'vue';
|
|
2
|
+
export declare const componentType: readonly ["bpm", "address"];
|
|
3
|
+
export declare const uniVueProps: {
|
|
4
|
+
readonly name: StringConstructor;
|
|
5
|
+
readonly type: PropType<(typeof componentType)[number]>;
|
|
6
|
+
};
|
|
7
|
+
export type UniVueProps = ExtractPublicPropTypes<typeof uniVueProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const componentType = ["bpm", "address"];
|
|
4
|
+
const uniVueProps = {
|
|
5
|
+
name: String,
|
|
6
|
+
// 组件名字
|
|
7
|
+
type: String
|
|
8
|
+
// 组件类型 bpm、 address
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
exports.componentType = componentType;
|
|
12
|
+
exports.uniVueProps = uniVueProps;
|
|
13
|
+
//# sourceMappingURL=uni-vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uni-vue.js","sources":["../../../../../../packages/components/uni-vue/src/uni-vue.ts"],"sourcesContent":["import type { ExtractPublicPropTypes, PropType } from 'vue'\n\nexport const componentType = ['bpm', 'address'] as const\nexport const uniVueProps = {\n name: String, // 组件名字\n type: String as PropType<(typeof componentType)[number]>, // 组件类型 bpm、 address\n} as const\nexport type UniVueProps = ExtractPublicPropTypes<typeof uniVueProps>\n"],"names":[],"mappings":";;AAEO,MAAM,aAAA,GAAgB,CAAC,KAAA,EAAO,SAAS;AACvC,MAAM,WAAA,GAAc;AAAA,EACzB,IAAA,EAAM,MAAA;AAAA;AAAA,EACN,IAAA,EAAM;AAAA;AACR;;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
readonly name: StringConstructor;
|
|
3
|
+
readonly type: import("vue").PropType<typeof import("./uni-vue").componentType[number]>;
|
|
4
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
5
|
+
readonly name: StringConstructor;
|
|
6
|
+
readonly type: import("vue").PropType<typeof import("./uni-vue").componentType[number]>;
|
|
7
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var uniVue_vue_vue_type_script_setup_true_lang = require('./uni-vue.vue2.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.default = uniVue_vue_vue_type_script_setup_true_lang.default;
|
|
10
|
+
//# sourceMappingURL=uni-vue.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uni-vue.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var bem = require('../../../utils/bem.js');
|
|
7
|
+
var uniVue = require('./uni-vue.js');
|
|
8
|
+
var props = require('../../../utils/props.js');
|
|
9
|
+
var elementPlus = require('element-plus');
|
|
10
|
+
var useUniVue = require('./use-uni-vue.js');
|
|
11
|
+
|
|
12
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
13
|
+
...{
|
|
14
|
+
name: "EpUniVue",
|
|
15
|
+
inheritAttrs: false
|
|
16
|
+
},
|
|
17
|
+
__name: "uni-vue",
|
|
18
|
+
props: uniVue.uniVueProps,
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const bem$1 = bem.createNameSpace("uni-vue");
|
|
21
|
+
const props$1 = __props;
|
|
22
|
+
const { loading } = useUniVue.useUniVue(props$1);
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
25
|
+
vue.createVNode(vue.unref(elementPlus.ElSkeleton), {
|
|
26
|
+
class: vue.normalizeClass(vue.unref(bem$1).e("skeleton")),
|
|
27
|
+
loading: vue.unref(loading),
|
|
28
|
+
style: { "background": "#fff", "padding": "5px 15px" },
|
|
29
|
+
rows: 1
|
|
30
|
+
}, null, 8, ["class", "loading"]),
|
|
31
|
+
vue.createElementVNode("div", {
|
|
32
|
+
ref: "uniVue",
|
|
33
|
+
class: vue.normalizeClass(`${vue.unref(bem$1).b()} ${vue.unref(props.prepareClassNames)()}`),
|
|
34
|
+
style: vue.normalizeStyle({
|
|
35
|
+
...vue.unref(props.prepareStyles)()
|
|
36
|
+
})
|
|
37
|
+
}, null, 6)
|
|
38
|
+
], 64);
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
exports.default = _sfc_main;
|
|
44
|
+
//# sourceMappingURL=uni-vue.vue2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uni-vue.vue2.js","sources":["../../../../../../packages/components/uni-vue/src/uni-vue.vue"],"sourcesContent":["<template>\n <el-skeleton\n :class=\"bem.e('skeleton')\"\n :loading=\"loading\"\n style=\"background: #fff; padding: 5px 15px\"\n :rows=\"1\"\n />\n <div\n ref=\"uniVue\"\n :class=\"`${bem.b()} ${prepareClassNames()}`\"\n :style=\"{\n ...prepareStyles(),\n }\"\n />\n</template>\n<script setup lang=\"ts\">\nimport { createNameSpace } from '@el-plus/utils/bem'\nimport { uniVueProps } from './uni-vue'\nimport { prepareClassNames, prepareStyles } from '@el-plus/utils/props'\nimport { ElSkeleton } from 'element-plus'\nimport { useUniVue } from './use-uni-vue'\ndefineOptions({\n name: 'EpUniVue',\n inheritAttrs: false,\n})\nconst bem = createNameSpace('uni-vue')\nconst props = defineProps(uniVueProps)\nconst { loading } = useUniVue(props)\n</script>\n"],"names":["bem","createNameSpace","props","useUniVue","_createVNode","_unref","ElSkeleton","_normalizeClass","_createElementVNode","prepareClassNames","_normalizeStyle","prepareStyles"],"mappings":";;;;;;;;;;;;;;;;;;;AAyBA,IAAA,MAAMA,KAAA,GAAMC,oBAAgB,SAAS,CAAA;AACrC,IAAA,MAAMC,OAAA,GAAQ,OAAA;AACd,IAAA,MAAM,EAAE,OAAA,EAAQ,GAAIC,mBAAA,CAAUD,OAAK,CAAA;;;QA1BjCE,eAAA,CAKEC,SAAA,CAAAC,sBAAA,CAAA,EAAA;AAAA,UAJC,OAAKC,kBAAA,CAAEF,SAAA,CAAAL,KAAA,CAAA,CAAI,CAAA,CAAC,UAAA,CAAA,CAAA;AAAA,UACZ,OAAA,EAASK,UAAA,OAAA,CAAA;AAAA,UACV,KAAA,EAAA,EAAA,YAAA,EAAA,MAAA,EAAA,WAAA,UAAA,EAAA;AAAA,UACC,IAAA,EAAM;AAAA;QAETG,uBAME,KAAA,EAAA;AAAA,UALA,GAAA,EAAI,QAAA;AAAA,UACH,KAAA,EAAKD,kBAAA,CAAA,CAAA,EAAKF,SAAA,CAAAL,KAAA,CAAA,CAAI,CAAA,MAAOK,SAAA,CAAAI,uBAAA,CAAA,EAAiB,CAAA,CAAA,CAAA;AAAA,UACtC,OAAKC,kBAAA,CAAA;AAAA,eAAaL,SAAA,CAAAM,mBAAA,CAAA;AAAa;;;;;;;;;"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var index = require('../../../utils/http/index.js');
|
|
5
|
+
var Vue2 = require('vue2/dist/vue.min.js');
|
|
6
|
+
var VueRouter3 = require('vue-router3');
|
|
7
|
+
var uniVue = require('./uni-vue.js');
|
|
8
|
+
var axios = require('axios');
|
|
9
|
+
var elementPlus = require('element-plus');
|
|
10
|
+
|
|
11
|
+
const useUniVue = (props) => {
|
|
12
|
+
const uniVue$1 = vue.useTemplateRef("uniVue");
|
|
13
|
+
const { type } = props;
|
|
14
|
+
const loading = vue.ref(true);
|
|
15
|
+
const isAddress = type === "address";
|
|
16
|
+
const isBpm = type === "bpm";
|
|
17
|
+
const isLoadStatic = uniVue.componentType.indexOf(type) > -1;
|
|
18
|
+
const attrs = vue.useAttrs();
|
|
19
|
+
const setupWindow = () => {
|
|
20
|
+
Vue2.use(VueRouter3);
|
|
21
|
+
if (!window.Vue) {
|
|
22
|
+
window.Vue = Vue2;
|
|
23
|
+
}
|
|
24
|
+
if (isAddress) {
|
|
25
|
+
if (!window.axios) {
|
|
26
|
+
window.axios = axios;
|
|
27
|
+
}
|
|
28
|
+
if (!window.ElementUI) {
|
|
29
|
+
window.ElementUI = {
|
|
30
|
+
Message: elementPlus.ElMessage,
|
|
31
|
+
Loading: elementPlus.ElLoading
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
setupWindow();
|
|
37
|
+
const prepareVueAttributes = () => {
|
|
38
|
+
const events = {};
|
|
39
|
+
const _props = {};
|
|
40
|
+
Object.keys(attrs).forEach((key) => {
|
|
41
|
+
if (key.startsWith("on")) {
|
|
42
|
+
let eventName = key.slice(2);
|
|
43
|
+
eventName = eventName.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
44
|
+
eventName = eventName.slice(1);
|
|
45
|
+
events[eventName] = attrs[key];
|
|
46
|
+
} else {
|
|
47
|
+
_props[key] = attrs[key];
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
return {
|
|
51
|
+
on: events,
|
|
52
|
+
props: _props
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
const cdn = "//j01.hongxinshop.com/";
|
|
56
|
+
const getStaticJsUrl = () => {
|
|
57
|
+
switch (type) {
|
|
58
|
+
case "bpm":
|
|
59
|
+
return `${cdn}bpm-common/common/index.umd.min.js`;
|
|
60
|
+
case "address":
|
|
61
|
+
return `${cdn}address/static/hx-address-full.js`;
|
|
62
|
+
default:
|
|
63
|
+
return "";
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
const getStaticCssUrl = () => {
|
|
67
|
+
switch (type) {
|
|
68
|
+
case "bpm":
|
|
69
|
+
return `/bpm-common/common/index.css`;
|
|
70
|
+
case "address":
|
|
71
|
+
return `/address/static/hx-address.css`;
|
|
72
|
+
default:
|
|
73
|
+
return "";
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
const hasLoadStaticJsResource = () => {
|
|
77
|
+
let globalName;
|
|
78
|
+
if (isAddress) {
|
|
79
|
+
globalName = "hxAddress";
|
|
80
|
+
}
|
|
81
|
+
if (isBpm) {
|
|
82
|
+
globalName = "index";
|
|
83
|
+
}
|
|
84
|
+
if (window[globalName]) return true;
|
|
85
|
+
return false;
|
|
86
|
+
};
|
|
87
|
+
const loadStaticJsResource = async () => {
|
|
88
|
+
return new Promise((resolve, reject) => {
|
|
89
|
+
if (hasLoadStaticJsResource()) return resolve("");
|
|
90
|
+
const script = document.createElement("script");
|
|
91
|
+
script.src = getStaticJsUrl();
|
|
92
|
+
script.onload = resolve;
|
|
93
|
+
script.onerror = reject;
|
|
94
|
+
document.body.appendChild(script);
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
const loadStaticCssResource = async () => {
|
|
98
|
+
const { data: css } = await index.http.request(getStaticCssUrl(), {
|
|
99
|
+
responseReturn: "raw"
|
|
100
|
+
});
|
|
101
|
+
return css;
|
|
102
|
+
};
|
|
103
|
+
const setupInstance = async () => {
|
|
104
|
+
if (undefined) return;
|
|
105
|
+
const el = uniVue$1.value;
|
|
106
|
+
const shadowRoot = el.attachShadow({ mode: "open" });
|
|
107
|
+
const container = document.createElement("div");
|
|
108
|
+
if (isLoadStatic) {
|
|
109
|
+
try {
|
|
110
|
+
loading.value = true;
|
|
111
|
+
const [_res1, css] = await Promise.all([
|
|
112
|
+
loadStaticJsResource(),
|
|
113
|
+
loadStaticCssResource()
|
|
114
|
+
]);
|
|
115
|
+
const style = document.createElement("style");
|
|
116
|
+
style.textContent = css;
|
|
117
|
+
shadowRoot.appendChild(style);
|
|
118
|
+
} catch (error) {
|
|
119
|
+
console.log(error);
|
|
120
|
+
} finally {
|
|
121
|
+
loading.value = false;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
shadowRoot.appendChild(container);
|
|
125
|
+
new Vue2({
|
|
126
|
+
el: container,
|
|
127
|
+
router: new VueRouter3(),
|
|
128
|
+
render: (h) => h(props.name, prepareVueAttributes())
|
|
129
|
+
});
|
|
130
|
+
};
|
|
131
|
+
vue.onMounted(() => {
|
|
132
|
+
setupInstance();
|
|
133
|
+
});
|
|
134
|
+
return {
|
|
135
|
+
loading
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
exports.useUniVue = useUniVue;
|
|
140
|
+
//# sourceMappingURL=use-uni-vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-uni-vue.js","sources":["../../../../../../packages/components/uni-vue/src/use-uni-vue.ts"],"sourcesContent":["import { onMounted, ref, useAttrs, useTemplateRef } from 'vue'\nimport { http } from '@el-plus/utils/http'\nimport Vue2 from 'vue2/dist/vue.min.js'\nimport VueRouter3 from 'vue-router3'\nimport { componentType } from './uni-vue'\nimport axios from 'axios'\nimport { ElMessage, ElLoading } from 'element-plus'\nexport const useUniVue = (props) => {\n const uniVue = useTemplateRef<HTMLElement>('uniVue')\n const { type } = props\n const loading = ref(true)\n const isAddress = type === 'address'\n const isBpm = type === 'bpm'\n // 是否需要加载静态资源\n const isLoadStatic = componentType.indexOf(type) > -1\n const attrs = useAttrs()\n const setupWindow = () => {\n Vue2.use(VueRouter3)\n if (!window.Vue) {\n window.Vue = Vue2\n }\n // 地址\n if (isAddress) {\n if (!window.axios) {\n window.axios = axios\n }\n if (!window.ElementUI) {\n window.ElementUI = {\n Message: ElMessage,\n Loading: ElLoading,\n }\n }\n }\n }\n setupWindow()\n const prepareVueAttributes = () => {\n const events = {}\n const _props = {}\n Object.keys(attrs).forEach((key) => {\n // 如果key以on开头,就是事件,转换为下划线\n if (key.startsWith('on')) {\n let eventName = key.slice(2) // 去掉 'on' 前缀\n // 将驼峰命名转换为下划线命名\n eventName = eventName.replace(/([A-Z])/g, '-$1').toLowerCase()\n // 删除第一位的-\n eventName = eventName.slice(1)\n events[eventName] = attrs[key]\n } else {\n _props[key] = attrs[key]\n }\n })\n return {\n on: events,\n props: _props,\n }\n }\n\n const cdn = '//j01.hongxinshop.com/'\n const getStaticJsUrl = () => {\n switch (type) {\n case 'bpm':\n return `${cdn}bpm-common/common/index.umd.min.js`\n case 'address':\n return `${cdn}address/static/hx-address-full.js`\n default:\n return ''\n }\n }\n const getStaticCssUrl = () => {\n switch (type) {\n case 'bpm':\n return `/bpm-common/common/index.css`\n case 'address':\n return `/address/static/hx-address.css`\n default:\n return ''\n }\n }\n const hasLoadStaticJsResource = () => {\n let globalName\n if (isAddress) {\n globalName = 'hxAddress'\n }\n if (isBpm) {\n globalName = 'index'\n }\n if (window[globalName]) return true\n return false\n }\n const loadStaticJsResource = async () => {\n return new Promise((resolve, reject) => {\n if (hasLoadStaticJsResource()) return resolve('')\n const script = document.createElement('script')\n script.src = getStaticJsUrl()\n script.onload = resolve\n script.onerror = reject\n document.body.appendChild(script)\n })\n }\n const loadStaticCssResource = async () => {\n const { data: css } = await http.request<string>(getStaticCssUrl(), {\n responseReturn: 'raw',\n })\n return css\n }\n const setupInstance = async () => {\n if (import.meta.hot) return // 每次热更新都会执行,在这里阻止,防止每次热更新页面都会重复插入组件\n const el = uniVue.value // 选择一个宿主元素\n const shadowRoot = el!.attachShadow({ mode: 'open' }) // 创建一个开放模式的 shadow root\n const container = document.createElement('div')\n if (isLoadStatic) {\n try {\n loading.value = true\n const [_res1, css] = await Promise.all([\n loadStaticJsResource(),\n loadStaticCssResource(),\n ])\n const style = document.createElement('style')\n style.textContent = css\n shadowRoot.appendChild(style)\n } catch (error) {\n console.log(error)\n } finally {\n loading.value = false\n }\n }\n shadowRoot.appendChild(container)\n new Vue2({\n el: container,\n router: new VueRouter3(),\n render: (h) => h(props.name, prepareVueAttributes()),\n })\n }\n onMounted(() => {\n setupInstance()\n })\n return {\n loading,\n }\n}\n"],"names":["uniVue","useTemplateRef","ref","componentType","useAttrs","ElMessage","ElLoading","http","onMounted"],"mappings":";;;;;;;;;;AAOO,MAAM,SAAA,GAAY,CAAC,KAAA,KAAU;AAClC,EAAA,MAAMA,QAAA,GAASC,mBAA4B,QAAQ,CAAA;AACnD,EAAA,MAAM,EAAE,MAAK,GAAI,KAAA;AACjB,EAAA,MAAM,OAAA,GAAUC,QAAI,IAAI,CAAA;AACxB,EAAA,MAAM,YAAY,IAAA,KAAS,SAAA;AAC3B,EAAA,MAAM,QAAQ,IAAA,KAAS,KAAA;AAEvB,EAAA,MAAM,YAAA,GAAeC,oBAAA,CAAc,OAAA,CAAQ,IAAI,CAAA,GAAI,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AAI,UAAA,EAAW;AAAA,MACvB,QAAQ,CAAC,CAAA,KAAM,EAAE,KAAA,CAAM,IAAA,EAAM,sBAAsB;AAAA,KACpD,CAAA;AAAA,EACH,CAAA;AACA,EAAAQ,aAAA,CAAU,MAAM;AACd,IAAA,aAAA,EAAc;AAAA,EAChB,CAAC,CAAA;AACD,EAAA,OAAO;AAAA,IACL;AAAA,GACF;AACF;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
package/lib/components.js
CHANGED
|
@@ -14,6 +14,7 @@ var index$8 = require('./components/date-picker-range/index.js');
|
|
|
14
14
|
var index$9 = require('./components/custom-column/index.js');
|
|
15
15
|
var index$a = require('./components/link/index.js');
|
|
16
16
|
var index$b = require('./components/attachment/index.js');
|
|
17
|
+
var index$c = require('./components/uni-vue/index.js');
|
|
17
18
|
|
|
18
19
|
var components = [
|
|
19
20
|
index.EpButtons,
|
|
@@ -27,7 +28,8 @@ var components = [
|
|
|
27
28
|
index$8.EpDatePickerRange,
|
|
28
29
|
index$9.EpCustomColumn,
|
|
29
30
|
index$a.EpLink,
|
|
30
|
-
index$b.EpAttachment
|
|
31
|
+
index$b.EpAttachment,
|
|
32
|
+
index$c.EpUniVue
|
|
31
33
|
];
|
|
32
34
|
|
|
33
35
|
exports.default = components;
|
package/lib/components.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","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/search-list-page'\nimport Select from '@el-plus/components/select'\nimport Table from '@el-plus/components/table'\nimport Title from '@el-plus/components/title'\nimport Header from '@el-plus/components/header'\nimport DatePickerRange from '@el-plus/components/date-picker-range'\nimport CustomColumn from '@el-plus/components/custom-column'\nimport Link from '@el-plus/components/link'\nimport Attachment from '@el-plus/components/attachment'\n\nexport default [\n Buttons,\n Form,\n Input,\n SearchListPage,\n Select,\n Table,\n Title,\n Header,\n DatePickerRange,\n CustomColumn,\n Link,\n Attachment,\n] as Plugin[]\n"],"names":["Buttons","Form","Input","SearchListPage","Select","Table","Title","Header","DatePickerRange","CustomColumn","Link","Attachment"],"mappings":"
|
|
1
|
+
{"version":3,"file":"components.js","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/search-list-page'\nimport Select from '@el-plus/components/select'\nimport Table from '@el-plus/components/table'\nimport Title from '@el-plus/components/title'\nimport Header from '@el-plus/components/header'\nimport DatePickerRange from '@el-plus/components/date-picker-range'\nimport CustomColumn from '@el-plus/components/custom-column'\nimport Link from '@el-plus/components/link'\nimport Attachment from '@el-plus/components/attachment'\nimport UniVue from '@el-plus/components/uni-vue'\n\nexport default [\n Buttons,\n Form,\n Input,\n SearchListPage,\n Select,\n Table,\n Title,\n Header,\n DatePickerRange,\n CustomColumn,\n Link,\n Attachment,\n UniVue,\n] as Plugin[]\n"],"names":["Buttons","Form","Input","SearchListPage","Select","Table","Title","Header","DatePickerRange","CustomColumn","Link","Attachment","UniVue"],"mappings":";;;;;;;;;;;;;;;;;;AAeA,iBAAe;AAAA,EACbA,eAAA;AAAA,EACAC,cAAA;AAAA,EACAC,eAAA;AAAA,EACAC,wBAAA;AAAA,EACAC,gBAAA;AAAA,EACAC,eAAA;AAAA,EACAC,eAAA;AAAA,EACAC,gBAAA;AAAA,EACAC,yBAAA;AAAA,EACAC,sBAAA;AAAA,EACAC,cAAA;AAAA,EACAC,oBAAA;AAAA,EACAC;AACF,CAAA;;;;"}
|
package/lib/index.js
CHANGED
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var components = require('./components.js');
|
|
6
6
|
var _package = require('./package.json.js');
|
|
7
|
-
var index$
|
|
8
|
-
var index$
|
|
9
|
-
var index$
|
|
7
|
+
var index$f = require('./plugins/index.js');
|
|
8
|
+
var index$d = require('./directives/repeat-click/index.js');
|
|
9
|
+
var index$e = require('./directives/permission/index.js');
|
|
10
10
|
var buttons = require('./components/buttons/src/buttons.js');
|
|
11
11
|
var index = require('./components/buttons/index.js');
|
|
12
12
|
var form = require('./components/form/src/form.js');
|
|
@@ -33,6 +33,8 @@ var link = require('./components/link/src/link.js');
|
|
|
33
33
|
var index$a = require('./components/link/index.js');
|
|
34
34
|
var attachment = require('./components/attachment/src/attachment.js');
|
|
35
35
|
var index$b = require('./components/attachment/index.js');
|
|
36
|
+
var uniVue = require('./components/uni-vue/src/uni-vue.js');
|
|
37
|
+
var index$c = require('./components/uni-vue/index.js');
|
|
36
38
|
var useRequest = require('./hooks/use-request.js');
|
|
37
39
|
var useTemplatePromise = require('./hooks/use-template-promise.js');
|
|
38
40
|
var useDialog = require('./hooks/dialog/use-dialog.js');
|
|
@@ -46,15 +48,15 @@ const install = (app, options) => {
|
|
|
46
48
|
if (app[INSTALLED_KEY]) return;
|
|
47
49
|
app[INSTALLED_KEY] = true;
|
|
48
50
|
components.default.forEach((c) => app.use(c));
|
|
49
|
-
Object.values(index$
|
|
51
|
+
Object.values(index$f).forEach((p) => app.use(p));
|
|
50
52
|
};
|
|
51
53
|
const plugin = {
|
|
52
54
|
install,
|
|
53
55
|
version: _package.version
|
|
54
56
|
};
|
|
55
57
|
|
|
56
|
-
exports.vRepeatClick = index$
|
|
57
|
-
exports.vPermission = index$
|
|
58
|
+
exports.vRepeatClick = index$d.default;
|
|
59
|
+
exports.vPermission = index$e.default;
|
|
58
60
|
exports.buttonsProps = buttons.buttonsProps;
|
|
59
61
|
exports.EpButtons = index.EpButtons;
|
|
60
62
|
exports.expandFormPropsKeys = form.expandFormPropsKeys;
|
|
@@ -98,6 +100,9 @@ exports.linkProps = link.linkProps;
|
|
|
98
100
|
exports.EpLink = index$a.EpLink;
|
|
99
101
|
exports.attachmentProps = attachment.attachmentProps;
|
|
100
102
|
exports.EpAttachment = index$b.EpAttachment;
|
|
103
|
+
exports.componentType = uniVue.componentType;
|
|
104
|
+
exports.uniVueProps = uniVue.uniVueProps;
|
|
105
|
+
exports.EpUniVue = index$c.EpUniVue;
|
|
101
106
|
exports.useRequest = useRequest.useRequest;
|
|
102
107
|
exports.useTemplatePromise = useTemplatePromise.useTemplatePromise;
|
|
103
108
|
exports.useDialog = useDialog.useDialog;
|
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'\nimport * as plugins from './plugins'\n// import type { RouteRecordRaw } from 'vue-router'\n\nconst INSTALLED_KEY = Symbol('INSTALLED_KEY')\nconst provideGlobalConfig = (config, app) => {}\nexport type EpOptions = {\n // routes?: RouteRecordRaw\n}\nexport const install = (app: App, options?: EpOptions) => {\n if (app[INSTALLED_KEY]) return // 防止多次use导致重复安装注册,控制台警告\n app[INSTALLED_KEY] = true\n components.forEach((c) => app.use(c))\n Object.values(plugins).forEach((p) => app.use(p))\n if (options) {\n provideGlobalConfig(options, app)\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":["components","plugins","version"],"mappings":"
|
|
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'\nimport * as plugins from './plugins'\n// import type { RouteRecordRaw } from 'vue-router'\n\nconst INSTALLED_KEY = Symbol('INSTALLED_KEY')\nconst provideGlobalConfig = (config, app) => {}\nexport type EpOptions = {\n // routes?: RouteRecordRaw\n}\nexport const install = (app: App, options?: EpOptions) => {\n if (app[INSTALLED_KEY]) return // 防止多次use导致重复安装注册,控制台警告\n app[INSTALLED_KEY] = true\n components.forEach((c) => app.use(c))\n Object.values(plugins).forEach((p) => app.use(p))\n if (options) {\n provideGlobalConfig(options, app)\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":["components","plugins","version"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,MAAM,aAAA,0BAAuB,eAAe,CAAA;AAKrC,MAAM,OAAA,GAAU,CAAC,GAAA,EAAU,OAAA,KAAwB;AACxD,EAAA,IAAI,GAAA,CAAI,aAAa,CAAA,EAAG;AACxB,EAAA,GAAA,CAAI,aAAa,CAAA,GAAI,IAAA;AACrB,EAAAA,kBAAA,CAAW,QAAQ,CAAC,CAAA,KAAM,GAAA,CAAI,GAAA,CAAI,CAAC,CAAC,CAAA;AACpC,EAAA,MAAA,CAAO,MAAA,CAAOC,OAAO,CAAA,CAAE,OAAA,CAAQ,CAAC,CAAA,KAAM,GAAA,CAAI,GAAA,CAAI,CAAC,CAAC,CAAA;AAIlD;AAEA,MAAM,MAAA,GAAuC;AAAA,EAC3C,OAAA;AAAA,WACAC;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|