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
package/dist/index.full.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! ElPlus v0.0.
|
|
1
|
+
/*! ElPlus v0.0.41 */
|
|
2
2
|
|
|
3
3
|
import { useAttrs, getCurrentInstance, inject, provide, ref, nextTick, defineComponent, computed, createVNode, Fragment, withDirectives, resolveComponent, mergeProps, resolveDirective, useTemplateRef, createTextVNode, h, mergeModels, useModel, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createCommentVNode, withCtx, renderSlot, renderList, createBlock, vShow, toDisplayString, reactive, useSlots, watch, onMounted, createSlots, normalizeProps, guardReactiveProps, markRaw, Transition, shallowReactive, isVNode, render, createElementVNode, toRaw } from 'vue';
|
|
4
|
-
import { buttonProps, useLocale as useLocale$1, ElLoading, ElMessage, ElMessageBox, formProps as formProps$1, formEmits as formEmits$1, ElTooltip, formItemProps as formItemProps$1, ElFormItem, ElForm, ElRow, ElCol, inputProps as inputProps$1, inputEmits as inputEmits$1, configProviderContextKey, ElConfigProvider, ElDialog, ElButton, ElTable, ElIcon, selectProps as selectProps$1, selectEmits as selectEmits$1, ElPageHeader, datePickerProps, linkProps as linkProps$1 } from 'element-plus';
|
|
4
|
+
import { buttonProps, useLocale as useLocale$1, ElLoading, ElMessage, ElMessageBox, formProps as formProps$1, formEmits as formEmits$1, ElTooltip, formItemProps as formItemProps$1, ElFormItem, ElForm, ElRow, ElCol, inputProps as inputProps$1, inputEmits as inputEmits$1, configProviderContextKey, ElConfigProvider, ElDialog, ElButton, ElTable, ElIcon, selectProps as selectProps$1, selectEmits as selectEmits$1, ElPageHeader, datePickerProps, linkProps as linkProps$1, ElSkeleton } from 'element-plus';
|
|
5
5
|
import { isFunction } from '@vue/shared';
|
|
6
6
|
import axios from 'axios';
|
|
7
7
|
import Cookies from 'js-cookie';
|
|
@@ -14,6 +14,8 @@ import { merge, cloneDeep } from 'lodash-unified';
|
|
|
14
14
|
import { useToggle } from '@vueuse/core';
|
|
15
15
|
import { useRouter, useRoute } from 'vue-router';
|
|
16
16
|
import { encode } from 'js-base64';
|
|
17
|
+
import Vue2 from 'vue2/dist/vue.min.js';
|
|
18
|
+
import VueRouter3 from 'vue-router3';
|
|
17
19
|
|
|
18
20
|
const apiProps = {
|
|
19
21
|
api: {
|
|
@@ -1043,7 +1045,7 @@ var EpFormItem = /* @__PURE__ */ defineComponent({
|
|
|
1043
1045
|
}
|
|
1044
1046
|
});
|
|
1045
1047
|
|
|
1046
|
-
var _sfc_main$
|
|
1048
|
+
var _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
1047
1049
|
...{
|
|
1048
1050
|
name: "EpForm",
|
|
1049
1051
|
inheritAttrs: false
|
|
@@ -1141,7 +1143,7 @@ var _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
1141
1143
|
}
|
|
1142
1144
|
});
|
|
1143
1145
|
|
|
1144
|
-
const EpForm = withInstall(_sfc_main$
|
|
1146
|
+
const EpForm = withInstall(_sfc_main$b);
|
|
1145
1147
|
|
|
1146
1148
|
const { t: t$2 } = useLocale();
|
|
1147
1149
|
const inputProps = {
|
|
@@ -1170,7 +1172,7 @@ const inputEmits = {
|
|
|
1170
1172
|
};
|
|
1171
1173
|
const inputEmitsKeys = Object.keys(inputEmits);
|
|
1172
1174
|
|
|
1173
|
-
var _sfc_main$
|
|
1175
|
+
var _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
1174
1176
|
...{
|
|
1175
1177
|
name: "EpInput",
|
|
1176
1178
|
inheritAttrs: false
|
|
@@ -1304,7 +1306,7 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
1304
1306
|
}
|
|
1305
1307
|
});
|
|
1306
1308
|
|
|
1307
|
-
const EpInput = withInstall(_sfc_main$
|
|
1309
|
+
const EpInput = withInstall(_sfc_main$a);
|
|
1308
1310
|
|
|
1309
1311
|
function _isSlot$1(s) {
|
|
1310
1312
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
@@ -1644,7 +1646,7 @@ const gotoTaskTrace = (workflowId) => {
|
|
|
1644
1646
|
}
|
|
1645
1647
|
};
|
|
1646
1648
|
|
|
1647
|
-
var _sfc_main$
|
|
1649
|
+
var _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
1648
1650
|
...{
|
|
1649
1651
|
name: "EpCustomColumn",
|
|
1650
1652
|
inheritAttrs: false
|
|
@@ -1850,7 +1852,7 @@ var _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1850
1852
|
}
|
|
1851
1853
|
});
|
|
1852
1854
|
|
|
1853
|
-
const EpCustomColumn = withInstall(_sfc_main$
|
|
1855
|
+
const EpCustomColumn = withInstall(_sfc_main$9);
|
|
1854
1856
|
|
|
1855
1857
|
const inheritTableProps = {
|
|
1856
1858
|
...elTableProps,
|
|
@@ -2310,7 +2312,7 @@ const useTableFormItem = (props) => {
|
|
|
2310
2312
|
};
|
|
2311
2313
|
};
|
|
2312
2314
|
|
|
2313
|
-
var _sfc_main$
|
|
2315
|
+
var _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
2314
2316
|
...{
|
|
2315
2317
|
name: "EpTable",
|
|
2316
2318
|
inheritAttrs: false
|
|
@@ -2495,7 +2497,7 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2495
2497
|
}
|
|
2496
2498
|
});
|
|
2497
2499
|
|
|
2498
|
-
const EpTable = withInstall(_sfc_main$
|
|
2500
|
+
const EpTable = withInstall(_sfc_main$8);
|
|
2499
2501
|
|
|
2500
2502
|
const searchListPageProps = {
|
|
2501
2503
|
...apiProps,
|
|
@@ -2749,7 +2751,7 @@ const useButtons$1 = (props, { validate, resetFields, tableRef }) => {
|
|
|
2749
2751
|
};
|
|
2750
2752
|
};
|
|
2751
2753
|
|
|
2752
|
-
var _sfc_main$
|
|
2754
|
+
var _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
2753
2755
|
...{ name: "EpSearchListPage" },
|
|
2754
2756
|
__name: "search-list-page",
|
|
2755
2757
|
props: searchListPageProps,
|
|
@@ -2802,7 +2804,7 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2802
2804
|
}
|
|
2803
2805
|
});
|
|
2804
2806
|
|
|
2805
|
-
const EpSearchListPage = withInstall(_sfc_main$
|
|
2807
|
+
const EpSearchListPage = withInstall(_sfc_main$7);
|
|
2806
2808
|
|
|
2807
2809
|
const inheritSelectProps = {
|
|
2808
2810
|
...selectProps$1,
|
|
@@ -2928,7 +2930,7 @@ function useSelect(props, emit) {
|
|
|
2928
2930
|
};
|
|
2929
2931
|
}
|
|
2930
2932
|
|
|
2931
|
-
var _sfc_main$
|
|
2933
|
+
var _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
2932
2934
|
...{
|
|
2933
2935
|
name: "EpSelect",
|
|
2934
2936
|
inheritAttrs: false
|
|
@@ -3016,7 +3018,7 @@ var _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3016
3018
|
}
|
|
3017
3019
|
});
|
|
3018
3020
|
|
|
3019
|
-
const EpSelect = withInstall(_sfc_main$
|
|
3021
|
+
const EpSelect = withInstall(_sfc_main$6);
|
|
3020
3022
|
|
|
3021
3023
|
const titleProps = {
|
|
3022
3024
|
// 右侧按钮
|
|
@@ -3075,7 +3077,7 @@ const useTitle = (emit) => {
|
|
|
3075
3077
|
};
|
|
3076
3078
|
};
|
|
3077
3079
|
|
|
3078
|
-
var _sfc_main$
|
|
3080
|
+
var _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
3079
3081
|
...{
|
|
3080
3082
|
name: "EpTitle",
|
|
3081
3083
|
inheritAttrs: false
|
|
@@ -3139,7 +3141,7 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3139
3141
|
}
|
|
3140
3142
|
});
|
|
3141
3143
|
|
|
3142
|
-
const EpTitle = withInstall(_sfc_main$
|
|
3144
|
+
const EpTitle = withInstall(_sfc_main$5);
|
|
3143
3145
|
|
|
3144
3146
|
const headerProps = {
|
|
3145
3147
|
// 页面模式
|
|
@@ -3320,7 +3322,7 @@ const useButtons = (props, emit) => {
|
|
|
3320
3322
|
};
|
|
3321
3323
|
};
|
|
3322
3324
|
|
|
3323
|
-
var _sfc_main$
|
|
3325
|
+
var _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
3324
3326
|
...{
|
|
3325
3327
|
name: "EpHeader",
|
|
3326
3328
|
inheritAttrs: false
|
|
@@ -3353,7 +3355,7 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3353
3355
|
}
|
|
3354
3356
|
});
|
|
3355
3357
|
|
|
3356
|
-
const EpHeader = withInstall(_sfc_main$
|
|
3358
|
+
const EpHeader = withInstall(_sfc_main$4);
|
|
3357
3359
|
|
|
3358
3360
|
const { t } = useLocale();
|
|
3359
3361
|
const datePickerRangeProps = {
|
|
@@ -3423,7 +3425,7 @@ const datePickerRangeProps = {
|
|
|
3423
3425
|
};
|
|
3424
3426
|
const datePickerRangeEmits = {};
|
|
3425
3427
|
|
|
3426
|
-
var _sfc_main$
|
|
3428
|
+
var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
3427
3429
|
...{
|
|
3428
3430
|
name: "EpDatePickerRange",
|
|
3429
3431
|
inheritAttrs: false
|
|
@@ -3479,7 +3481,7 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3479
3481
|
}
|
|
3480
3482
|
});
|
|
3481
3483
|
|
|
3482
|
-
const EpDatePickerRange = withInstall(_sfc_main$
|
|
3484
|
+
const EpDatePickerRange = withInstall(_sfc_main$3);
|
|
3483
3485
|
|
|
3484
3486
|
const linkProps = {
|
|
3485
3487
|
...linkProps$1,
|
|
@@ -3496,7 +3498,7 @@ const linkProps = {
|
|
|
3496
3498
|
}
|
|
3497
3499
|
};
|
|
3498
3500
|
|
|
3499
|
-
var _sfc_main$
|
|
3501
|
+
var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
3500
3502
|
...{
|
|
3501
3503
|
name: "EpLink",
|
|
3502
3504
|
inheritAttrs: false
|
|
@@ -3541,7 +3543,7 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3541
3543
|
}
|
|
3542
3544
|
});
|
|
3543
3545
|
|
|
3544
|
-
const EpLink = withInstall(_sfc_main$
|
|
3546
|
+
const EpLink = withInstall(_sfc_main$2);
|
|
3545
3547
|
|
|
3546
3548
|
const attachmentProps = {
|
|
3547
3549
|
// 格式化列
|
|
@@ -3715,7 +3717,7 @@ const useAttachment = (props, { data }) => {
|
|
|
3715
3717
|
};
|
|
3716
3718
|
};
|
|
3717
3719
|
|
|
3718
|
-
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3720
|
+
var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
3719
3721
|
...{
|
|
3720
3722
|
name: "EpAttachment",
|
|
3721
3723
|
inheritAttrs: false
|
|
@@ -3770,7 +3772,176 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3770
3772
|
}
|
|
3771
3773
|
});
|
|
3772
3774
|
|
|
3773
|
-
const EpAttachment = withInstall(_sfc_main);
|
|
3775
|
+
const EpAttachment = withInstall(_sfc_main$1);
|
|
3776
|
+
|
|
3777
|
+
const componentType = ["bpm", "address"];
|
|
3778
|
+
const uniVueProps = {
|
|
3779
|
+
name: String,
|
|
3780
|
+
// 组件名字
|
|
3781
|
+
type: String
|
|
3782
|
+
// 组件类型 bpm、 address
|
|
3783
|
+
};
|
|
3784
|
+
|
|
3785
|
+
const useUniVue = (props) => {
|
|
3786
|
+
const uniVue = useTemplateRef("uniVue");
|
|
3787
|
+
const { type } = props;
|
|
3788
|
+
const loading = ref(true);
|
|
3789
|
+
const isAddress = type === "address";
|
|
3790
|
+
const isBpm = type === "bpm";
|
|
3791
|
+
const isLoadStatic = componentType.indexOf(type) > -1;
|
|
3792
|
+
const attrs = useAttrs();
|
|
3793
|
+
const setupWindow = () => {
|
|
3794
|
+
Vue2.use(VueRouter3);
|
|
3795
|
+
if (!window.Vue) {
|
|
3796
|
+
window.Vue = Vue2;
|
|
3797
|
+
}
|
|
3798
|
+
if (isAddress) {
|
|
3799
|
+
if (!window.axios) {
|
|
3800
|
+
window.axios = axios;
|
|
3801
|
+
}
|
|
3802
|
+
if (!window.ElementUI) {
|
|
3803
|
+
window.ElementUI = {
|
|
3804
|
+
Message: ElMessage,
|
|
3805
|
+
Loading: ElLoading
|
|
3806
|
+
};
|
|
3807
|
+
}
|
|
3808
|
+
}
|
|
3809
|
+
};
|
|
3810
|
+
setupWindow();
|
|
3811
|
+
const prepareVueAttributes = () => {
|
|
3812
|
+
const events = {};
|
|
3813
|
+
const _props = {};
|
|
3814
|
+
Object.keys(attrs).forEach((key) => {
|
|
3815
|
+
if (key.startsWith("on")) {
|
|
3816
|
+
let eventName = key.slice(2);
|
|
3817
|
+
eventName = eventName.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
3818
|
+
eventName = eventName.slice(1);
|
|
3819
|
+
events[eventName] = attrs[key];
|
|
3820
|
+
} else {
|
|
3821
|
+
_props[key] = attrs[key];
|
|
3822
|
+
}
|
|
3823
|
+
});
|
|
3824
|
+
return {
|
|
3825
|
+
on: events,
|
|
3826
|
+
props: _props
|
|
3827
|
+
};
|
|
3828
|
+
};
|
|
3829
|
+
const cdn = "//j01.hongxinshop.com/";
|
|
3830
|
+
const getStaticJsUrl = () => {
|
|
3831
|
+
switch (type) {
|
|
3832
|
+
case "bpm":
|
|
3833
|
+
return `${cdn}bpm-common/common/index.umd.min.js`;
|
|
3834
|
+
case "address":
|
|
3835
|
+
return `${cdn}address/static/hx-address-full.js`;
|
|
3836
|
+
default:
|
|
3837
|
+
return "";
|
|
3838
|
+
}
|
|
3839
|
+
};
|
|
3840
|
+
const getStaticCssUrl = () => {
|
|
3841
|
+
switch (type) {
|
|
3842
|
+
case "bpm":
|
|
3843
|
+
return `/bpm-common/common/index.css`;
|
|
3844
|
+
case "address":
|
|
3845
|
+
return `/address/static/hx-address.css`;
|
|
3846
|
+
default:
|
|
3847
|
+
return "";
|
|
3848
|
+
}
|
|
3849
|
+
};
|
|
3850
|
+
const hasLoadStaticJsResource = () => {
|
|
3851
|
+
let globalName;
|
|
3852
|
+
if (isAddress) {
|
|
3853
|
+
globalName = "hxAddress";
|
|
3854
|
+
}
|
|
3855
|
+
if (isBpm) {
|
|
3856
|
+
globalName = "index";
|
|
3857
|
+
}
|
|
3858
|
+
if (window[globalName]) return true;
|
|
3859
|
+
return false;
|
|
3860
|
+
};
|
|
3861
|
+
const loadStaticJsResource = async () => {
|
|
3862
|
+
return new Promise((resolve, reject) => {
|
|
3863
|
+
if (hasLoadStaticJsResource()) return resolve("");
|
|
3864
|
+
const script = document.createElement("script");
|
|
3865
|
+
script.src = getStaticJsUrl();
|
|
3866
|
+
script.onload = resolve;
|
|
3867
|
+
script.onerror = reject;
|
|
3868
|
+
document.body.appendChild(script);
|
|
3869
|
+
});
|
|
3870
|
+
};
|
|
3871
|
+
const loadStaticCssResource = async () => {
|
|
3872
|
+
const { data: css } = await http.request(getStaticCssUrl(), {
|
|
3873
|
+
responseReturn: "raw"
|
|
3874
|
+
});
|
|
3875
|
+
return css;
|
|
3876
|
+
};
|
|
3877
|
+
const setupInstance = async () => {
|
|
3878
|
+
if (import.meta.hot) return;
|
|
3879
|
+
const el = uniVue.value;
|
|
3880
|
+
const shadowRoot = el.attachShadow({ mode: "open" });
|
|
3881
|
+
const container = document.createElement("div");
|
|
3882
|
+
if (isLoadStatic) {
|
|
3883
|
+
try {
|
|
3884
|
+
loading.value = true;
|
|
3885
|
+
const [_res1, css] = await Promise.all([
|
|
3886
|
+
loadStaticJsResource(),
|
|
3887
|
+
loadStaticCssResource()
|
|
3888
|
+
]);
|
|
3889
|
+
const style = document.createElement("style");
|
|
3890
|
+
style.textContent = css;
|
|
3891
|
+
shadowRoot.appendChild(style);
|
|
3892
|
+
} catch (error) {
|
|
3893
|
+
console.log(error);
|
|
3894
|
+
} finally {
|
|
3895
|
+
loading.value = false;
|
|
3896
|
+
}
|
|
3897
|
+
}
|
|
3898
|
+
shadowRoot.appendChild(container);
|
|
3899
|
+
new Vue2({
|
|
3900
|
+
el: container,
|
|
3901
|
+
router: new VueRouter3(),
|
|
3902
|
+
render: (h) => h(props.name, prepareVueAttributes())
|
|
3903
|
+
});
|
|
3904
|
+
};
|
|
3905
|
+
onMounted(() => {
|
|
3906
|
+
setupInstance();
|
|
3907
|
+
});
|
|
3908
|
+
return {
|
|
3909
|
+
loading
|
|
3910
|
+
};
|
|
3911
|
+
};
|
|
3912
|
+
|
|
3913
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3914
|
+
...{
|
|
3915
|
+
name: "EpUniVue",
|
|
3916
|
+
inheritAttrs: false
|
|
3917
|
+
},
|
|
3918
|
+
__name: "uni-vue",
|
|
3919
|
+
props: uniVueProps,
|
|
3920
|
+
setup(__props) {
|
|
3921
|
+
const bem = createNameSpace("uni-vue");
|
|
3922
|
+
const props = __props;
|
|
3923
|
+
const { loading } = useUniVue(props);
|
|
3924
|
+
return (_ctx, _cache) => {
|
|
3925
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
3926
|
+
createVNode(unref(ElSkeleton), {
|
|
3927
|
+
class: normalizeClass(unref(bem).e("skeleton")),
|
|
3928
|
+
loading: unref(loading),
|
|
3929
|
+
style: { "background": "#fff", "padding": "5px 15px" },
|
|
3930
|
+
rows: 1
|
|
3931
|
+
}, null, 8, ["class", "loading"]),
|
|
3932
|
+
createElementVNode("div", {
|
|
3933
|
+
ref: "uniVue",
|
|
3934
|
+
class: normalizeClass(`${unref(bem).b()} ${unref(prepareClassNames)()}`),
|
|
3935
|
+
style: normalizeStyle({
|
|
3936
|
+
...unref(prepareStyles)()
|
|
3937
|
+
})
|
|
3938
|
+
}, null, 6)
|
|
3939
|
+
], 64);
|
|
3940
|
+
};
|
|
3941
|
+
}
|
|
3942
|
+
});
|
|
3943
|
+
|
|
3944
|
+
const EpUniVue = withInstall(_sfc_main);
|
|
3774
3945
|
|
|
3775
3946
|
var components = [
|
|
3776
3947
|
EpButtons,
|
|
@@ -3784,10 +3955,11 @@ var components = [
|
|
|
3784
3955
|
EpDatePickerRange,
|
|
3785
3956
|
EpCustomColumn,
|
|
3786
3957
|
EpLink,
|
|
3787
|
-
EpAttachment
|
|
3958
|
+
EpAttachment,
|
|
3959
|
+
EpUniVue
|
|
3788
3960
|
];
|
|
3789
3961
|
|
|
3790
|
-
var version = "0.0.
|
|
3962
|
+
var version = "0.0.41";
|
|
3791
3963
|
|
|
3792
3964
|
var globalProperties = {
|
|
3793
3965
|
install(app) {
|
|
@@ -3871,4 +4043,4 @@ const plugin = {
|
|
|
3871
4043
|
version
|
|
3872
4044
|
};
|
|
3873
4045
|
|
|
3874
|
-
export { EpAttachment, EpButtons, EpCustomColumn, EpDatePickerRange, EpForm, EpFormItem, EpHeader, EpInput, EpLink, EpSearchListPage, EpSelect, EpTable, EpTitle, attachmentProps, buttonsProps, customColumnEmits, customColumnProps, datePickerRangeEmits, datePickerRangeProps, plugin as default, expandFormItemPropsKeys, expandFormPropsKeys, expandSelectPropsKeys, expandTablePropsKeys, formEmits, formEmitsKeys, formItemProps, formProps, headerEmits, headerProps, inheritSelectProps, inputEmits, inputEmitsKeys, inputProps, install, linkProps, searchListPageProps, selectEmits, selectEmitsKeys, selectProps, tableEmits, tableEmitsKeys, tableProps, titleEmits, titleProps, useChooseDialog, useDialog, useFormDialog, useLocale, useNavigation, useRequest, useTemplatePromise, vPermisson as vPermission, vRepeatClick };
|
|
4046
|
+
export { EpAttachment, EpButtons, EpCustomColumn, EpDatePickerRange, EpForm, EpFormItem, EpHeader, EpInput, EpLink, EpSearchListPage, EpSelect, EpTable, EpTitle, EpUniVue, attachmentProps, buttonsProps, componentType, customColumnEmits, customColumnProps, datePickerRangeEmits, datePickerRangeProps, plugin as default, expandFormItemPropsKeys, expandFormPropsKeys, expandSelectPropsKeys, expandTablePropsKeys, formEmits, formEmitsKeys, formItemProps, formProps, headerEmits, headerProps, inheritSelectProps, inputEmits, inputEmitsKeys, inputProps, install, linkProps, searchListPageProps, selectEmits, selectEmitsKeys, selectProps, tableEmits, tableEmitsKeys, tableProps, titleEmits, titleProps, uniVueProps, useChooseDialog, useDialog, useFormDialog, useLocale, useNavigation, useRequest, useTemplatePromise, vPermisson as vPermission, vRepeatClick };
|
package/es/components/index.d.ts
CHANGED
package/es/components/index.mjs
CHANGED
|
@@ -10,6 +10,7 @@ export { EpDatePickerRange } from './date-picker-range/index.mjs';
|
|
|
10
10
|
export { EpCustomColumn } from './custom-column/index.mjs';
|
|
11
11
|
export { EpLink } from './link/index.mjs';
|
|
12
12
|
export { EpAttachment } from './attachment/index.mjs';
|
|
13
|
+
export { EpUniVue } from './uni-vue/index.mjs';
|
|
13
14
|
export { buttonsProps } from './buttons/src/buttons.mjs';
|
|
14
15
|
export { expandFormPropsKeys, formEmits, formEmitsKeys, formProps } from './form/src/form.mjs';
|
|
15
16
|
export { expandFormItemPropsKeys, formItemProps } from './form/src/form-item.mjs';
|
|
@@ -24,4 +25,5 @@ export { datePickerRangeEmits, datePickerRangeProps } from './date-picker-range/
|
|
|
24
25
|
export { customColumnEmits, customColumnProps } from './custom-column/src/custom-column.mjs';
|
|
25
26
|
export { linkProps } from './link/src/link.mjs';
|
|
26
27
|
export { attachmentProps } from './attachment/src/attachment.mjs';
|
|
28
|
+
export { componentType, uniVueProps } from './uni-vue/src/uni-vue.mjs';
|
|
27
29
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -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;
|
|
@@ -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;
|