@ganwei-web/gw-base-components-plus 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/element-plus-adapter/dist/ElementPlusAdapter.cjs +3 -3
- package/element-plus-adapter/dist/ElementPlusAdapter.cjs.map +1 -1
- package/element-plus-adapter/dist/ElementPlusAdapter.css +103 -54
- package/element-plus-adapter/dist/ElementPlusAdapter.iife.js +3 -3
- package/element-plus-adapter/dist/ElementPlusAdapter.iife.js.map +1 -1
- package/element-plus-adapter/dist/ElementPlusAdapter.js +29 -29
- package/element-plus-adapter/dist/ElementPlusAdapter.js.map +1 -1
- package/loading/dist/index.es.js +17 -9
- package/loading/dist/index.umd.js +1 -1
- package/loading/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref
|
|
1
|
+
import { defineComponent, ref, useAttrs, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, createElementBlock, createElementVNode, watch, resolveComponent, createVNode, mergeModels, useModel, isVNode, normalizeProps, guardReactiveProps, getCurrentInstance, onMounted, onBeforeUnmount } from "vue";
|
|
2
2
|
import { ElButton, ElCascader, ElCheckbox, ElCollapse, ElDatePicker, ElDialog, ElDrawer, ElDropdown, ElForm, ElImage, ElInput, vLoading as vLoading$1, ElMenu, ElNotification as ElNotification$1, ElPagination, ElPopover, ElRadio, ElRadioGroup, ElSelect, ElSwitch, ElTableColumn, ElTable, ElTimePicker, ElTransfer, ElTree, ElUpload, ElMessageBox } from "element-plus";
|
|
3
3
|
function useExpose(proxyElement) {
|
|
4
4
|
const expose = new Proxy({}, {
|
|
@@ -18,11 +18,11 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
18
18
|
},
|
|
19
19
|
__name: "index",
|
|
20
20
|
setup(__props, { expose: __expose }) {
|
|
21
|
-
const proxyElement = ref
|
|
21
|
+
const proxyElement = ref();
|
|
22
22
|
const expose = useExpose(proxyElement);
|
|
23
23
|
__expose(expose);
|
|
24
24
|
const attrs = useAttrs();
|
|
25
|
-
const loading = ref
|
|
25
|
+
const loading = ref(false);
|
|
26
26
|
const handleClick = async (evt) => {
|
|
27
27
|
if (!attrs.onClick)
|
|
28
28
|
return;
|
|
@@ -56,7 +56,7 @@ const index_vue_vue_type_style_index_0_lang$l = "";
|
|
|
56
56
|
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
57
57
|
__name: "index",
|
|
58
58
|
setup(__props, { expose: __expose }) {
|
|
59
|
-
const proxyElement = ref
|
|
59
|
+
const proxyElement = ref();
|
|
60
60
|
const expose = useExpose(proxyElement);
|
|
61
61
|
__expose(expose);
|
|
62
62
|
const attrs = useAttrs();
|
|
@@ -81,7 +81,7 @@ const index_vue_vue_type_style_index_0_lang$k = "";
|
|
|
81
81
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
82
82
|
__name: "index",
|
|
83
83
|
setup(__props, { expose: __expose }) {
|
|
84
|
-
const proxyElement = ref
|
|
84
|
+
const proxyElement = ref();
|
|
85
85
|
const expose = useExpose(proxyElement);
|
|
86
86
|
__expose(expose);
|
|
87
87
|
const attrs = useAttrs();
|
|
@@ -134,7 +134,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
134
134
|
valueFormat: {}
|
|
135
135
|
},
|
|
136
136
|
setup(__props, { expose: __expose }) {
|
|
137
|
-
const proxyElement = ref
|
|
137
|
+
const proxyElement = ref();
|
|
138
138
|
const expose = useExpose(proxyElement);
|
|
139
139
|
__expose(expose);
|
|
140
140
|
const props = __props;
|
|
@@ -180,7 +180,7 @@ const index_vue_vue_type_style_index_0_lang$h = "";
|
|
|
180
180
|
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
181
181
|
__name: "index",
|
|
182
182
|
setup(__props, { expose: __expose }) {
|
|
183
|
-
const proxyElement = ref
|
|
183
|
+
const proxyElement = ref();
|
|
184
184
|
const expose = useExpose(proxyElement);
|
|
185
185
|
__expose(expose);
|
|
186
186
|
return (_ctx, _cache) => {
|
|
@@ -211,7 +211,7 @@ function useDataTestId() {
|
|
|
211
211
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
212
212
|
__name: "index",
|
|
213
213
|
setup(__props, { expose: __expose }) {
|
|
214
|
-
const proxyElement = ref
|
|
214
|
+
const proxyElement = ref();
|
|
215
215
|
const expose = useExpose(proxyElement);
|
|
216
216
|
__expose(expose);
|
|
217
217
|
const attrs = useAttrs();
|
|
@@ -237,7 +237,7 @@ const index_vue_vue_type_style_index_0_lang$f = "";
|
|
|
237
237
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
238
238
|
__name: "index",
|
|
239
239
|
setup(__props, { expose: __expose }) {
|
|
240
|
-
const proxyElement = ref
|
|
240
|
+
const proxyElement = ref();
|
|
241
241
|
const expose = useExpose(proxyElement);
|
|
242
242
|
__expose(expose);
|
|
243
243
|
const attrs = useAttrs();
|
|
@@ -263,7 +263,7 @@ const index_vue_vue_type_style_index_0_lang$e = "";
|
|
|
263
263
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
264
264
|
__name: "index",
|
|
265
265
|
setup(__props, { expose: __expose }) {
|
|
266
|
-
const proxyElement = ref
|
|
266
|
+
const proxyElement = ref();
|
|
267
267
|
const expose = useExpose(proxyElement);
|
|
268
268
|
__expose(expose);
|
|
269
269
|
const attrs = useAttrs();
|
|
@@ -313,11 +313,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
313
313
|
request: {}
|
|
314
314
|
},
|
|
315
315
|
setup(__props, { expose: __expose }) {
|
|
316
|
-
const proxyElement = ref
|
|
316
|
+
const proxyElement = ref();
|
|
317
317
|
const expose = useExpose(proxyElement);
|
|
318
318
|
__expose(expose);
|
|
319
319
|
const props = __props;
|
|
320
|
-
const _src = ref
|
|
320
|
+
const _src = ref("");
|
|
321
321
|
watch(() => props.src, async (newVal) => {
|
|
322
322
|
if (!newVal) {
|
|
323
323
|
return;
|
|
@@ -388,7 +388,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
388
388
|
},
|
|
389
389
|
emits: /* @__PURE__ */ mergeModels(["change"], ["update:modelValue"]),
|
|
390
390
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
391
|
-
const input = ref
|
|
391
|
+
const input = ref();
|
|
392
392
|
const expose = useExpose(input);
|
|
393
393
|
__expose(expose);
|
|
394
394
|
const model = useModel(__props, "modelValue");
|
|
@@ -435,8 +435,8 @@ const index$2 = "";
|
|
|
435
435
|
const vLoading = {
|
|
436
436
|
mounted(el, binding, vnode, prevVnode) {
|
|
437
437
|
var _a, _b;
|
|
438
|
-
|
|
439
|
-
el.setAttribute(`element-loading-text`,
|
|
438
|
+
vnode.ctx.proxy;
|
|
439
|
+
el.setAttribute(`element-loading-text`, sessionStorage.languageType == "zh-CN" ? "加载中..." : "Loading...");
|
|
440
440
|
el.setAttribute(`element-loading-spinner`, " ");
|
|
441
441
|
el.setAttribute(`element-loading-background`, "customLoading");
|
|
442
442
|
(_b = (_a = vLoading$1).mounted) == null ? void 0 : _b.call(_a, el, binding, vnode, prevVnode);
|
|
@@ -453,7 +453,7 @@ const vLoading = {
|
|
|
453
453
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
454
454
|
__name: "index",
|
|
455
455
|
setup(__props, { expose: __expose }) {
|
|
456
|
-
const proxyElement = ref
|
|
456
|
+
const proxyElement = ref();
|
|
457
457
|
const expose = useExpose(proxyElement);
|
|
458
458
|
__expose(expose);
|
|
459
459
|
const attrs = useAttrs();
|
|
@@ -515,7 +515,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
515
515
|
setup(__props, { expose: __expose }) {
|
|
516
516
|
const attrs = useAttrs();
|
|
517
517
|
useDataTestId();
|
|
518
|
-
const proxyElement = ref
|
|
518
|
+
const proxyElement = ref();
|
|
519
519
|
const expose = useExpose(proxyElement);
|
|
520
520
|
__expose(expose);
|
|
521
521
|
const defaultAttrs = {
|
|
@@ -543,7 +543,7 @@ const index_vue_vue_type_style_index_0_lang$a = "";
|
|
|
543
543
|
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
544
544
|
__name: "index",
|
|
545
545
|
setup(__props, { expose: __expose }) {
|
|
546
|
-
const proxyElement = ref
|
|
546
|
+
const proxyElement = ref();
|
|
547
547
|
const expose = useExpose(proxyElement);
|
|
548
548
|
__expose(expose);
|
|
549
549
|
return (_ctx, _cache) => {
|
|
@@ -567,7 +567,7 @@ const index_vue_vue_type_style_index_0_lang$9 = "";
|
|
|
567
567
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
568
568
|
__name: "index",
|
|
569
569
|
setup(__props, { expose: __expose }) {
|
|
570
|
-
const proxyElement = ref
|
|
570
|
+
const proxyElement = ref();
|
|
571
571
|
const expose = useExpose(proxyElement);
|
|
572
572
|
__expose(expose);
|
|
573
573
|
const attrs = useAttrs();
|
|
@@ -598,7 +598,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
598
598
|
}
|
|
599
599
|
},
|
|
600
600
|
setup(__props, { expose: __expose }) {
|
|
601
|
-
const proxyElement = ref
|
|
601
|
+
const proxyElement = ref();
|
|
602
602
|
const expose = useExpose(proxyElement);
|
|
603
603
|
__expose(expose);
|
|
604
604
|
const attrs = useAttrs();
|
|
@@ -625,7 +625,7 @@ const index_vue_vue_type_style_index_0_lang$7 = "";
|
|
|
625
625
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
626
626
|
__name: "index",
|
|
627
627
|
setup(__props, { expose: __expose }) {
|
|
628
|
-
const proxyElement = ref
|
|
628
|
+
const proxyElement = ref();
|
|
629
629
|
const expose = useExpose(proxyElement);
|
|
630
630
|
__expose(expose);
|
|
631
631
|
const attrs = useAttrs();
|
|
@@ -651,7 +651,7 @@ const index_vue_vue_type_style_index_0_lang$6 = "";
|
|
|
651
651
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
652
652
|
__name: "index",
|
|
653
653
|
setup(__props, { expose: __expose }) {
|
|
654
|
-
const proxyElement = ref
|
|
654
|
+
const proxyElement = ref();
|
|
655
655
|
const expose = useExpose(proxyElement);
|
|
656
656
|
__expose(expose);
|
|
657
657
|
const attrs = useAttrs();
|
|
@@ -706,7 +706,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
706
706
|
});
|
|
707
707
|
function useResizeTable() {
|
|
708
708
|
const instance = getCurrentInstance();
|
|
709
|
-
const height = ref
|
|
709
|
+
const height = ref();
|
|
710
710
|
let el = null;
|
|
711
711
|
onMounted(() => {
|
|
712
712
|
resizeTable();
|
|
@@ -744,7 +744,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
744
744
|
}
|
|
745
745
|
},
|
|
746
746
|
setup(__props, { expose: __expose }) {
|
|
747
|
-
const proxyElement = ref
|
|
747
|
+
const proxyElement = ref();
|
|
748
748
|
const expose = useExpose(proxyElement);
|
|
749
749
|
__expose(expose);
|
|
750
750
|
const tableHeight = useResizeTable();
|
|
@@ -771,7 +771,7 @@ const index_vue_vue_type_style_index_0_lang$4 = "";
|
|
|
771
771
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
772
772
|
__name: "index",
|
|
773
773
|
setup(__props, { expose: __expose }) {
|
|
774
|
-
const proxyElement = ref
|
|
774
|
+
const proxyElement = ref();
|
|
775
775
|
const expose = useExpose(proxyElement);
|
|
776
776
|
__expose(expose);
|
|
777
777
|
const attrs = useAttrs();
|
|
@@ -795,7 +795,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
795
795
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
796
796
|
__name: "index",
|
|
797
797
|
setup(__props, { expose: __expose }) {
|
|
798
|
-
const proxyElement = ref
|
|
798
|
+
const proxyElement = ref();
|
|
799
799
|
const expose = useExpose(proxyElement);
|
|
800
800
|
__expose(expose);
|
|
801
801
|
return (_ctx, _cache) => {
|
|
@@ -810,7 +810,7 @@ const index_vue_vue_type_style_index_0_lang$3 = "";
|
|
|
810
810
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
811
811
|
__name: "index",
|
|
812
812
|
setup(__props, { expose: __expose }) {
|
|
813
|
-
const tree = ref
|
|
813
|
+
const tree = ref();
|
|
814
814
|
const expose = useExpose(tree);
|
|
815
815
|
__expose(expose);
|
|
816
816
|
return (_ctx, _cache) => {
|
|
@@ -834,7 +834,7 @@ const index_vue_vue_type_style_index_0_lang$2 = "";
|
|
|
834
834
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
835
835
|
__name: "index",
|
|
836
836
|
setup(__props, { expose: __expose }) {
|
|
837
|
-
const proxyElement = ref
|
|
837
|
+
const proxyElement = ref();
|
|
838
838
|
const expose = useExpose(proxyElement);
|
|
839
839
|
__expose(expose);
|
|
840
840
|
return (_ctx, _cache) => {
|
|
@@ -909,7 +909,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
909
909
|
}
|
|
910
910
|
},
|
|
911
911
|
setup(__props, { expose: __expose }) {
|
|
912
|
-
const proxyElement = ref
|
|
912
|
+
const proxyElement = ref();
|
|
913
913
|
const expose = useExpose(proxyElement);
|
|
914
914
|
__expose(expose);
|
|
915
915
|
return (_ctx, _cache) => {
|