el-plus 0.0.39 → 0.0.40
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 +6 -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 +1 -1
- 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
|
@@ -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,8 @@
|
|
|
1
|
+
import _sfc_main from './src/uni-vue.vue2.mjs';
|
|
2
|
+
import { withInstall } from '../../utils/with-install.mjs';
|
|
3
|
+
export { componentType, uniVueProps } from './src/uni-vue.mjs';
|
|
4
|
+
|
|
5
|
+
const EpUniVue = withInstall(_sfc_main);
|
|
6
|
+
|
|
7
|
+
export { EpUniVue, EpUniVue as default };
|
|
8
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","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":["UniVue"],"mappings":";;;;AAGO,MAAM,QAAA,GAAW,YAAYA,SAAM;;;;"}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"uni-vue.mjs","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 @@
|
|
|
1
|
+
{"version":3,"file":"uni-vue.vue.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, unref, normalizeClass, normalizeStyle } from 'vue';
|
|
2
|
+
import { createNameSpace } from '../../../utils/bem.mjs';
|
|
3
|
+
import { uniVueProps } from './uni-vue.mjs';
|
|
4
|
+
import { prepareStyles, prepareClassNames } from '../../../utils/props.mjs';
|
|
5
|
+
import { ElSkeleton } from 'element-plus';
|
|
6
|
+
import { useUniVue } from './use-uni-vue.mjs';
|
|
7
|
+
|
|
8
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
...{
|
|
10
|
+
name: "EpUniVue",
|
|
11
|
+
inheritAttrs: false
|
|
12
|
+
},
|
|
13
|
+
__name: "uni-vue",
|
|
14
|
+
props: uniVueProps,
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const bem = createNameSpace("uni-vue");
|
|
17
|
+
const props = __props;
|
|
18
|
+
const { loading } = useUniVue(props);
|
|
19
|
+
return (_ctx, _cache) => {
|
|
20
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
21
|
+
createVNode(unref(ElSkeleton), {
|
|
22
|
+
class: normalizeClass(unref(bem).e("skeleton")),
|
|
23
|
+
loading: unref(loading),
|
|
24
|
+
style: { "background": "#fff", "padding": "5px 15px" },
|
|
25
|
+
rows: 1
|
|
26
|
+
}, null, 8, ["class", "loading"]),
|
|
27
|
+
createElementVNode("div", {
|
|
28
|
+
ref: "uniVue",
|
|
29
|
+
class: normalizeClass(`${unref(bem).b()} ${unref(prepareClassNames)()}`),
|
|
30
|
+
style: normalizeStyle({
|
|
31
|
+
...unref(prepareStyles)()
|
|
32
|
+
})
|
|
33
|
+
}, null, 6)
|
|
34
|
+
], 64);
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export { _sfc_main as default };
|
|
40
|
+
//# sourceMappingURL=uni-vue.vue2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uni-vue.vue2.mjs","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":["_createVNode","_unref","_normalizeClass","_createElementVNode","_normalizeStyle"],"mappings":";;;;;;;;;;;;;;;AAyBA,IAAA,MAAM,GAAA,GAAM,gBAAgB,SAAS,CAAA;AACrC,IAAA,MAAM,KAAA,GAAQ,OAAA;AACd,IAAA,MAAM,EAAE,OAAA,EAAQ,GAAI,SAAA,CAAU,KAAK,CAAA;;;QA1BjCA,WAAA,CAKEC,KAAA,CAAA,UAAA,CAAA,EAAA;AAAA,UAJC,OAAKC,cAAA,CAAED,KAAA,CAAA,GAAA,CAAA,CAAI,CAAA,CAAC,UAAA,CAAA,CAAA;AAAA,UACZ,OAAA,EAASA,MAAA,OAAA,CAAA;AAAA,UACV,KAAA,EAAA,EAAA,YAAA,EAAA,MAAA,EAAA,WAAA,UAAA,EAAA;AAAA,UACC,IAAA,EAAM;AAAA;QAETE,mBAME,KAAA,EAAA;AAAA,UALA,GAAA,EAAI,QAAA;AAAA,UACH,KAAA,EAAKD,cAAA,CAAA,CAAA,EAAKD,KAAA,CAAA,GAAA,CAAA,CAAI,CAAA,MAAOA,KAAA,CAAA,iBAAA,CAAA,EAAiB,CAAA,CAAA,CAAA;AAAA,UACtC,OAAKG,cAAA,CAAA;AAAA,eAAaH,KAAA,CAAA,aAAA,CAAA;AAAa;;;;;;;;;"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { useTemplateRef, ref, useAttrs, onMounted } from 'vue';
|
|
2
|
+
import { http } from '../../../utils/http/index.mjs';
|
|
3
|
+
import Vue2 from 'vue2/dist/vue.min.js';
|
|
4
|
+
import VueRouter3 from 'vue-router3';
|
|
5
|
+
import { componentType } from './uni-vue.mjs';
|
|
6
|
+
import axios from 'axios';
|
|
7
|
+
import { ElLoading, ElMessage } from 'element-plus';
|
|
8
|
+
|
|
9
|
+
const useUniVue = (props) => {
|
|
10
|
+
const uniVue = useTemplateRef("uniVue");
|
|
11
|
+
const { type } = props;
|
|
12
|
+
const loading = ref(true);
|
|
13
|
+
const isAddress = type === "address";
|
|
14
|
+
const isBpm = type === "bpm";
|
|
15
|
+
const isLoadStatic = componentType.indexOf(type) > -1;
|
|
16
|
+
const attrs = useAttrs();
|
|
17
|
+
const setupWindow = () => {
|
|
18
|
+
Vue2.use(VueRouter3);
|
|
19
|
+
if (!window.Vue) {
|
|
20
|
+
window.Vue = Vue2;
|
|
21
|
+
}
|
|
22
|
+
if (isAddress) {
|
|
23
|
+
if (!window.axios) {
|
|
24
|
+
window.axios = axios;
|
|
25
|
+
}
|
|
26
|
+
if (!window.ElementUI) {
|
|
27
|
+
window.ElementUI = {
|
|
28
|
+
Message: ElMessage,
|
|
29
|
+
Loading: ElLoading
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
setupWindow();
|
|
35
|
+
const prepareVueAttributes = () => {
|
|
36
|
+
const events = {};
|
|
37
|
+
const _props = {};
|
|
38
|
+
Object.keys(attrs).forEach((key) => {
|
|
39
|
+
if (key.startsWith("on")) {
|
|
40
|
+
let eventName = key.slice(2);
|
|
41
|
+
eventName = eventName.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
42
|
+
eventName = eventName.slice(1);
|
|
43
|
+
events[eventName] = attrs[key];
|
|
44
|
+
} else {
|
|
45
|
+
_props[key] = attrs[key];
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
return {
|
|
49
|
+
on: events,
|
|
50
|
+
props: _props
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
const cdn = "//j01.hongxinshop.com/";
|
|
54
|
+
const getStaticJsUrl = () => {
|
|
55
|
+
switch (type) {
|
|
56
|
+
case "bpm":
|
|
57
|
+
return `${cdn}bpm-common/common/index.umd.min.js`;
|
|
58
|
+
case "address":
|
|
59
|
+
return `${cdn}address/static/hx-address-full.js`;
|
|
60
|
+
default:
|
|
61
|
+
return "";
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
const getStaticCssUrl = () => {
|
|
65
|
+
switch (type) {
|
|
66
|
+
case "bpm":
|
|
67
|
+
return `/bpm-common/common/index.css`;
|
|
68
|
+
case "address":
|
|
69
|
+
return `/address/static/hx-address.css`;
|
|
70
|
+
default:
|
|
71
|
+
return "";
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
const hasLoadStaticJsResource = () => {
|
|
75
|
+
let globalName;
|
|
76
|
+
if (isAddress) {
|
|
77
|
+
globalName = "hxAddress";
|
|
78
|
+
}
|
|
79
|
+
if (isBpm) {
|
|
80
|
+
globalName = "index";
|
|
81
|
+
}
|
|
82
|
+
if (window[globalName]) return true;
|
|
83
|
+
return false;
|
|
84
|
+
};
|
|
85
|
+
const loadStaticJsResource = async () => {
|
|
86
|
+
return new Promise((resolve, reject) => {
|
|
87
|
+
if (hasLoadStaticJsResource()) return resolve("");
|
|
88
|
+
const script = document.createElement("script");
|
|
89
|
+
script.src = getStaticJsUrl();
|
|
90
|
+
script.onload = resolve;
|
|
91
|
+
script.onerror = reject;
|
|
92
|
+
document.body.appendChild(script);
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
const loadStaticCssResource = async () => {
|
|
96
|
+
const { data: css } = await http.request(getStaticCssUrl(), {
|
|
97
|
+
responseReturn: "raw"
|
|
98
|
+
});
|
|
99
|
+
return css;
|
|
100
|
+
};
|
|
101
|
+
const setupInstance = async () => {
|
|
102
|
+
if (import.meta.hot) return;
|
|
103
|
+
const el = uniVue.value;
|
|
104
|
+
const shadowRoot = el.attachShadow({ mode: "open" });
|
|
105
|
+
const container = document.createElement("div");
|
|
106
|
+
if (isLoadStatic) {
|
|
107
|
+
try {
|
|
108
|
+
loading.value = true;
|
|
109
|
+
const [_res1, css] = await Promise.all([
|
|
110
|
+
loadStaticJsResource(),
|
|
111
|
+
loadStaticCssResource()
|
|
112
|
+
]);
|
|
113
|
+
const style = document.createElement("style");
|
|
114
|
+
style.textContent = css;
|
|
115
|
+
shadowRoot.appendChild(style);
|
|
116
|
+
} catch (error) {
|
|
117
|
+
console.log(error);
|
|
118
|
+
} finally {
|
|
119
|
+
loading.value = false;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
shadowRoot.appendChild(container);
|
|
123
|
+
new Vue2({
|
|
124
|
+
el: container,
|
|
125
|
+
router: new VueRouter3(),
|
|
126
|
+
render: (h) => h(props.name, prepareVueAttributes())
|
|
127
|
+
});
|
|
128
|
+
};
|
|
129
|
+
onMounted(() => {
|
|
130
|
+
setupInstance();
|
|
131
|
+
});
|
|
132
|
+
return {
|
|
133
|
+
loading
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
export { useUniVue };
|
|
138
|
+
//# sourceMappingURL=use-uni-vue.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-uni-vue.mjs","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":[],"mappings":";;;;;;;;AAOO,MAAM,SAAA,GAAY,CAAC,KAAA,KAAU;AAClC,EAAA,MAAM,MAAA,GAAS,eAA4B,QAAQ,CAAA;AACnD,EAAA,MAAM,EAAE,MAAK,GAAI,KAAA;AACjB,EAAA,MAAM,OAAA,GAAU,IAAI,IAAI,CAAA;AACxB,EAAA,MAAM,YAAY,IAAA,KAAS,SAAA;AAC3B,EAAA,MAAM,QAAQ,IAAA,KAAS,KAAA;AAEvB,EAAA,MAAM,YAAA,GAAe,aAAA,CAAc,OAAA,CAAQ,IAAI,CAAA,GAAI,EAAA;AACnD,EAAA,MAAM,QAAQ,QAAA,EAAS;AACvB,EAAA,MAAM,cAAc,MAAM;AACxB,IAAA,IAAA,CAAK,IAAI,UAAU,CAAA;AACnB,IAAA,I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;AACA,EAAA,SAAA,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.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
package/es/components.mjs
CHANGED
|
@@ -10,6 +10,7 @@ import { EpDatePickerRange } from './components/date-picker-range/index.mjs';
|
|
|
10
10
|
import { EpCustomColumn } from './components/custom-column/index.mjs';
|
|
11
11
|
import { EpLink } from './components/link/index.mjs';
|
|
12
12
|
import { EpAttachment } from './components/attachment/index.mjs';
|
|
13
|
+
import { EpUniVue } from './components/uni-vue/index.mjs';
|
|
13
14
|
|
|
14
15
|
var components = [
|
|
15
16
|
EpButtons,
|
|
@@ -23,7 +24,8 @@ var components = [
|
|
|
23
24
|
EpDatePickerRange,
|
|
24
25
|
EpCustomColumn,
|
|
25
26
|
EpLink,
|
|
26
|
-
EpAttachment
|
|
27
|
+
EpAttachment,
|
|
28
|
+
EpUniVue
|
|
27
29
|
];
|
|
28
30
|
|
|
29
31
|
export { components as default };
|
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/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.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/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,SAAA;AAAA,EACAC,MAAA;AAAA,EACAC,OAAA;AAAA,EACAC,gBAAA;AAAA,EACAC,QAAA;AAAA,EACAC,OAAA;AAAA,EACAC,OAAA;AAAA,EACAC,QAAA;AAAA,EACAC,iBAAA;AAAA,EACAC,cAAA;AAAA,EACAC,MAAA;AAAA,EACAC,YAAA;AAAA,EACAC;AACF,CAAA;;;;"}
|
package/es/index.mjs
CHANGED
|
@@ -29,6 +29,8 @@ export { linkProps } from './components/link/src/link.mjs';
|
|
|
29
29
|
export { EpLink } from './components/link/index.mjs';
|
|
30
30
|
export { attachmentProps } from './components/attachment/src/attachment.mjs';
|
|
31
31
|
export { EpAttachment } from './components/attachment/index.mjs';
|
|
32
|
+
export { componentType, uniVueProps } from './components/uni-vue/src/uni-vue.mjs';
|
|
33
|
+
export { EpUniVue } from './components/uni-vue/index.mjs';
|
|
32
34
|
export { useRequest } from './hooks/use-request.mjs';
|
|
33
35
|
export { useTemplatePromise } from './hooks/use-template-promise.mjs';
|
|
34
36
|
export { useDialog } from './hooks/dialog/use-dialog.mjs';
|
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'\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":["plugins"],"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'\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":["plugins"],"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,EAAA,UAAA,CAAW,QAAQ,CAAC,CAAA,KAAM,GAAA,CAAI,GAAA,CAAI,CAAC,CAAC,CAAA;AACpC,EAAA,MAAA,CAAO,MAAA,CAAOA,KAAO,CAAA,CAAE,OAAA,CAAQ,CAAC,CAAA,KAAM,GAAA,CAAI,GAAA,CAAI,CAAC,CAAC,CAAA;AAIlD;AAEA,MAAM,MAAA,GAAuC;AAAA,EAC3C,OAAA;AAAA,EACA;AACF;;;;"}
|
package/es/package.json.mjs
CHANGED
package/es/types/global.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { NavigationConfig } from '@el-plus/utils'
|
|
2
|
+
import type { AxiosStatic } from 'axios'
|
|
2
3
|
|
|
3
4
|
declare global {
|
|
4
5
|
interface Window {
|
|
@@ -10,5 +11,9 @@ declare global {
|
|
|
10
11
|
selectedRouterTags?: any[]
|
|
11
12
|
closeTag?: (tag: any) => void
|
|
12
13
|
currentRouterTagIndex?: number
|
|
14
|
+
Vue: any
|
|
15
|
+
hxLangPluginInstall: () => void
|
|
16
|
+
axios: AxiosStatic
|
|
17
|
+
ElementUI: any
|
|
13
18
|
}
|
|
14
19
|
}
|
package/lib/components/index.js
CHANGED
|
@@ -12,6 +12,7 @@ var index$8 = require('./date-picker-range/index.js');
|
|
|
12
12
|
var index$9 = require('./custom-column/index.js');
|
|
13
13
|
var index$a = require('./link/index.js');
|
|
14
14
|
var index$b = require('./attachment/index.js');
|
|
15
|
+
var index$c = require('./uni-vue/index.js');
|
|
15
16
|
var buttons = require('./buttons/src/buttons.js');
|
|
16
17
|
var form = require('./form/src/form.js');
|
|
17
18
|
var formItem = require('./form/src/form-item.js');
|
|
@@ -26,6 +27,7 @@ var datePickerRange = require('./date-picker-range/src/date-picker-range.js');
|
|
|
26
27
|
var customColumn = require('./custom-column/src/custom-column.js');
|
|
27
28
|
var link = require('./link/src/link.js');
|
|
28
29
|
var attachment = require('./attachment/src/attachment.js');
|
|
30
|
+
var uniVue = require('./uni-vue/src/uni-vue.js');
|
|
29
31
|
|
|
30
32
|
|
|
31
33
|
|
|
@@ -41,6 +43,7 @@ exports.EpDatePickerRange = index$8.EpDatePickerRange;
|
|
|
41
43
|
exports.EpCustomColumn = index$9.EpCustomColumn;
|
|
42
44
|
exports.EpLink = index$a.EpLink;
|
|
43
45
|
exports.EpAttachment = index$b.EpAttachment;
|
|
46
|
+
exports.EpUniVue = index$c.EpUniVue;
|
|
44
47
|
exports.buttonsProps = buttons.buttonsProps;
|
|
45
48
|
exports.expandFormPropsKeys = form.expandFormPropsKeys;
|
|
46
49
|
exports.formEmits = form.formEmits;
|
|
@@ -72,4 +75,6 @@ exports.customColumnEmits = customColumn.customColumnEmits;
|
|
|
72
75
|
exports.customColumnProps = customColumn.customColumnProps;
|
|
73
76
|
exports.linkProps = link.linkProps;
|
|
74
77
|
exports.attachmentProps = attachment.attachmentProps;
|
|
78
|
+
exports.componentType = uniVue.componentType;
|
|
79
|
+
exports.uniVueProps = uniVue.uniVueProps;
|
|
75
80
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -108,7 +108,7 @@ export declare const EpSearchListPage: {
|
|
|
108
108
|
type: import("vue").PropType<import("el-plus/es/types/axios").Api>;
|
|
109
109
|
};
|
|
110
110
|
readonly method: {
|
|
111
|
-
type: import("vue").PropType<import("
|
|
111
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
112
112
|
};
|
|
113
113
|
readonly reqData: {
|
|
114
114
|
type: ObjectConstructor;
|
|
@@ -343,7 +343,7 @@ export declare const EpSearchListPage: {
|
|
|
343
343
|
readonly allowDragLastColumn: boolean;
|
|
344
344
|
readonly preserveExpandedContent: boolean;
|
|
345
345
|
readonly nativeScrollbar: boolean;
|
|
346
|
-
readonly method?: import("
|
|
346
|
+
readonly method?: import("axios").Method | undefined;
|
|
347
347
|
readonly load?: ((row: any, treeNode: import("element-plus").TreeNode, resolve: (data: any[]) => void) => void) | undefined;
|
|
348
348
|
readonly width?: string | number | undefined;
|
|
349
349
|
readonly api?: import("el-plus/es/types/axios").Api | undefined;
|
|
@@ -494,7 +494,7 @@ export declare const EpSearchListPage: {
|
|
|
494
494
|
type: import("vue").PropType<import("el-plus/es/types/axios").Api>;
|
|
495
495
|
};
|
|
496
496
|
readonly method: {
|
|
497
|
-
type: import("vue").PropType<import("
|
|
497
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
498
498
|
};
|
|
499
499
|
readonly reqData: {
|
|
500
500
|
type: ObjectConstructor;
|
|
@@ -1545,7 +1545,7 @@ export declare const EpSearchListPage: {
|
|
|
1545
1545
|
type: import("vue").PropType<import("el-plus/es/types/axios").Api>;
|
|
1546
1546
|
};
|
|
1547
1547
|
readonly method: {
|
|
1548
|
-
type: import("vue").PropType<import("
|
|
1548
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
1549
1549
|
};
|
|
1550
1550
|
readonly reqData: {
|
|
1551
1551
|
type: ObjectConstructor;
|
|
@@ -2715,7 +2715,7 @@ export declare const EpSearchListPage: {
|
|
|
2715
2715
|
type: import("vue").PropType<import("el-plus/es/types/axios").Api>;
|
|
2716
2716
|
};
|
|
2717
2717
|
readonly method: {
|
|
2718
|
-
type: import("vue").PropType<import("
|
|
2718
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
2719
2719
|
};
|
|
2720
2720
|
readonly reqData: {
|
|
2721
2721
|
type: ObjectConstructor;
|
|
@@ -2950,7 +2950,7 @@ export declare const EpSearchListPage: {
|
|
|
2950
2950
|
readonly allowDragLastColumn: boolean;
|
|
2951
2951
|
readonly preserveExpandedContent: boolean;
|
|
2952
2952
|
readonly nativeScrollbar: boolean;
|
|
2953
|
-
readonly method?: import("
|
|
2953
|
+
readonly method?: import("axios").Method | undefined;
|
|
2954
2954
|
readonly load?: ((row: any, treeNode: import("element-plus").TreeNode, resolve: (data: any[]) => void) => void) | undefined;
|
|
2955
2955
|
readonly width?: string | number | undefined;
|
|
2956
2956
|
readonly api?: import("el-plus/es/types/axios").Api | undefined;
|
|
@@ -3101,7 +3101,7 @@ export declare const EpSearchListPage: {
|
|
|
3101
3101
|
type: import("vue").PropType<import("el-plus/es/types/axios").Api>;
|
|
3102
3102
|
};
|
|
3103
3103
|
readonly method: {
|
|
3104
|
-
type: import("vue").PropType<import("
|
|
3104
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
3105
3105
|
};
|
|
3106
3106
|
readonly reqData: {
|
|
3107
3107
|
type: ObjectConstructor;
|
|
@@ -4152,7 +4152,7 @@ export declare const EpSearchListPage: {
|
|
|
4152
4152
|
type: import("vue").PropType<import("el-plus/es/types/axios").Api>;
|
|
4153
4153
|
};
|
|
4154
4154
|
readonly method: {
|
|
4155
|
-
type: import("vue").PropType<import("
|
|
4155
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
4156
4156
|
};
|
|
4157
4157
|
readonly reqData: {
|
|
4158
4158
|
type: ObjectConstructor;
|
|
@@ -5269,7 +5269,7 @@ export declare const EpSearchListPage: {
|
|
|
5269
5269
|
type: import("vue").PropType<import("el-plus/es/types/axios").Api>;
|
|
5270
5270
|
};
|
|
5271
5271
|
readonly method: {
|
|
5272
|
-
type: import("vue").PropType<import("
|
|
5272
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
5273
5273
|
};
|
|
5274
5274
|
readonly reqData: {
|
|
5275
5275
|
type: ObjectConstructor;
|
|
@@ -5504,7 +5504,7 @@ export declare const EpSearchListPage: {
|
|
|
5504
5504
|
readonly allowDragLastColumn: boolean;
|
|
5505
5505
|
readonly preserveExpandedContent: boolean;
|
|
5506
5506
|
readonly nativeScrollbar: boolean;
|
|
5507
|
-
readonly method?: import("
|
|
5507
|
+
readonly method?: import("axios").Method | undefined;
|
|
5508
5508
|
readonly load?: ((row: any, treeNode: import("element-plus").TreeNode, resolve: (data: any[]) => void) => void) | undefined;
|
|
5509
5509
|
readonly width?: string | number | undefined;
|
|
5510
5510
|
readonly api?: import("el-plus/es/types/axios").Api | undefined;
|
|
@@ -5617,7 +5617,7 @@ export declare const EpSearchListPage: {
|
|
|
5617
5617
|
type: import("vue").PropType<import("el-plus/es/types/axios").Api>;
|
|
5618
5618
|
};
|
|
5619
5619
|
readonly method: {
|
|
5620
|
-
type: import("vue").PropType<import("
|
|
5620
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
5621
5621
|
};
|
|
5622
5622
|
readonly reqData: {
|
|
5623
5623
|
type: ObjectConstructor;
|
|
@@ -6630,7 +6630,7 @@ export declare const EpSearchListPage: {
|
|
|
6630
6630
|
type: import("vue").PropType<import("el-plus/es/types/axios").Api>;
|
|
6631
6631
|
};
|
|
6632
6632
|
readonly method: {
|
|
6633
|
-
type: import("vue").PropType<import("
|
|
6633
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
6634
6634
|
};
|
|
6635
6635
|
readonly reqData: {
|
|
6636
6636
|
type: ObjectConstructor;
|
|
@@ -58,7 +58,7 @@ export declare const searchListPageProps: {
|
|
|
58
58
|
type: PropType<import("el-plus/es/types").Api>;
|
|
59
59
|
};
|
|
60
60
|
readonly method: {
|
|
61
|
-
type: PropType<import("
|
|
61
|
+
type: PropType<import("axios").Method>;
|
|
62
62
|
};
|
|
63
63
|
readonly reqData: {
|
|
64
64
|
type: ObjectConstructor;
|