@ganwei-web/gw-base-components-plus 1.0.25 → 1.0.26

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.
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, useAttrs, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, mergeModels, useModel, createElementVNode, normalizeProps, guardReactiveProps, inject, createElementBlock, watch, resolveComponent, createVNode, isVNode } from "vue";
2
- import { ElButton, ElTag, ElInput, ElForm, ElFormItem, ElSelect, ElOption, ElCheckbox, ElRadio, ElRadioGroup, ElRadioButton, ElSwitch, ElCascader, ElDatePicker, ElTimePicker, ElUpload, ElTransfer, ElTable, ElTableColumn, ElTree, localeContextKey, ElPagination, ElImage, ElProgress, ElBadge, ElCard, ElAlert, ElDialog, ElDrawer, ElPopover, ElTooltip, ElNotification as ElNotification$1, vLoading as vLoading$1, ElMenu, ElDropdown, ElTabs, ElTabPane, ElMenuItem, ElSubMenu, ElDropdownMenu, ElDropdownItem, ElCollapse, ElCollapseItem, ElMessageBox, ElMessage } from "element-plus";
2
+ import { ElButton, ElTag, ElInput, ElForm, ElFormItem, ElSelect, ElOption, ElCheckbox, ElRadio, ElRadioGroup, ElRadioButton, ElSwitch, ElCascader, ElDatePicker, ElTimePicker, ElUpload, ElTransfer, ElTable, ElTableColumn, ElTree, localeContextKey, ElPagination, ElImage, ElProgress, ElBadge, ElCard, ElDescriptions, ElAlert, ElDialog, ElDrawer, ElPopover, ElTooltip, ElNotification as ElNotification$1, vLoading as vLoading$1, ElMenu, ElDropdown, ElTabs, ElTabPane, ElMenuItem, ElSubMenu, ElDropdownMenu, ElDropdownItem, ElCollapse, ElCollapseItem, ElDescriptionsItem, ElMessageBox, ElMessage } from "element-plus";
3
3
  import { ElMessage as ElMessage2 } from "element-plus";
4
4
  function useExpose(proxyElement) {
5
5
  const expose = new Proxy({}, {
@@ -13,7 +13,7 @@ function useExpose(proxyElement) {
13
13
  });
14
14
  return expose;
15
15
  }
16
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
16
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
17
17
  ...{
18
18
  inheritAttrs: false
19
19
  },
@@ -60,8 +60,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
60
60
  };
61
61
  }
62
62
  });
63
- const index_vue_vue_type_style_index_0_lang$t = "";
64
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
63
+ const index_vue_vue_type_style_index_0_lang$u = "";
64
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
65
65
  __name: "index",
66
66
  setup(__props, { expose: __expose }) {
67
67
  const attrs = useAttrs();
@@ -85,7 +85,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
85
85
  };
86
86
  }
87
87
  });
88
- const index_vue_vue_type_style_index_0_lang$s = "";
88
+ const index_vue_vue_type_style_index_0_lang$t = "";
89
89
  const UI_AUTOMATION_TOKEN = `data-testid`;
90
90
  function useDataTestId() {
91
91
  const attrs = useAttrs();
@@ -93,7 +93,7 @@ function useDataTestId() {
93
93
  console.warn(`${UI_AUTOMATION_TOKEN} is required to UI Automation`);
94
94
  }
95
95
  }
96
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
96
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
97
97
  __name: "ElInput",
98
98
  props: {
99
99
  "modelValue": {
@@ -118,10 +118,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
118
118
  emits("change", val);
119
119
  }
120
120
  function inputHandler(val) {
121
- if (model.value !== "" && val.trim() === "") {
122
- changeHandler("");
123
- }
124
- model.value = val.trim();
121
+ model.value = val.trimStart();
125
122
  }
126
123
  return (_ctx, _cache) => {
127
124
  return openBlock(), createBlock(unref(ElInput), mergeProps({
@@ -146,7 +143,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
146
143
  }
147
144
  });
148
145
  const ElInput_vue_vue_type_style_index_0_lang = "";
149
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
146
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
150
147
  __name: "index",
151
148
  setup(__props, { expose: __expose }) {
152
149
  const proxyElement = ref();
@@ -170,8 +167,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
170
167
  };
171
168
  }
172
169
  });
173
- const index_vue_vue_type_style_index_0_lang$r = "";
174
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
170
+ const index_vue_vue_type_style_index_0_lang$s = "";
171
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
175
172
  __name: "index",
176
173
  setup(__props, { expose: __expose }) {
177
174
  const attrs = useAttrs();
@@ -195,7 +192,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
195
192
  };
196
193
  }
197
194
  });
198
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
195
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
199
196
  __name: "index",
200
197
  setup(__props, { expose: __expose }) {
201
198
  const proxyElement = ref();
@@ -220,8 +217,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
220
217
  };
221
218
  }
222
219
  });
223
- const index_vue_vue_type_style_index_0_lang$q = "";
224
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
220
+ const index_vue_vue_type_style_index_0_lang$r = "";
221
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
225
222
  __name: "index",
226
223
  setup(__props, { expose: __expose }) {
227
224
  const attrs = useAttrs();
@@ -245,7 +242,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
245
242
  };
246
243
  }
247
244
  });
248
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
245
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
249
246
  __name: "index",
250
247
  setup(__props, { expose: __expose }) {
251
248
  const proxyElement = ref();
@@ -269,8 +266,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
269
266
  };
270
267
  }
271
268
  });
272
- const index_vue_vue_type_style_index_0_lang$p = "";
273
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
269
+ const index_vue_vue_type_style_index_0_lang$q = "";
270
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
274
271
  __name: "index",
275
272
  setup(__props, { expose: __expose }) {
276
273
  const proxyElement = ref();
@@ -294,8 +291,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
294
291
  };
295
292
  }
296
293
  });
297
- const index_vue_vue_type_style_index_0_lang$o = "";
298
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
294
+ const index_vue_vue_type_style_index_0_lang$p = "";
295
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
299
296
  __name: "index",
300
297
  props: {
301
298
  round: {
@@ -327,8 +324,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
327
324
  };
328
325
  }
329
326
  });
330
- const index_vue_vue_type_style_index_0_lang$n = "";
331
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
327
+ const index_vue_vue_type_style_index_0_lang$o = "";
328
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
332
329
  __name: "index",
333
330
  setup(__props, { expose: __expose }) {
334
331
  const attrs = useAttrs();
@@ -352,7 +349,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
352
349
  };
353
350
  }
354
351
  });
355
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
352
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
356
353
  __name: "index",
357
354
  setup(__props, { expose: __expose }) {
358
355
  const proxyElement = ref();
@@ -377,8 +374,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
377
374
  };
378
375
  }
379
376
  });
380
- const index_vue_vue_type_style_index_0_lang$m = "";
381
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
377
+ const index_vue_vue_type_style_index_0_lang$n = "";
378
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
382
379
  __name: "index",
383
380
  setup(__props, { expose: __expose }) {
384
381
  const proxyElement = ref();
@@ -402,8 +399,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
402
399
  };
403
400
  }
404
401
  });
405
- const index_vue_vue_type_style_index_0_lang$l = "";
406
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
402
+ const index_vue_vue_type_style_index_0_lang$m = "";
403
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
407
404
  __name: "index",
408
405
  props: {
409
406
  defaultTime: {},
@@ -452,8 +449,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
452
449
  };
453
450
  }
454
451
  });
455
- const index_vue_vue_type_style_index_0_lang$k = "";
456
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
452
+ const index_vue_vue_type_style_index_0_lang$l = "";
453
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
457
454
  __name: "index",
458
455
  setup(__props, { expose: __expose }) {
459
456
  const proxyElement = ref();
@@ -477,8 +474,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
477
474
  };
478
475
  }
479
476
  });
480
- const index_vue_vue_type_style_index_0_lang$j = "";
481
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
477
+ const index_vue_vue_type_style_index_0_lang$k = "";
478
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
482
479
  __name: "index",
483
480
  setup(__props, { expose: __expose }) {
484
481
  const proxyElement = ref();
@@ -502,8 +499,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
502
499
  };
503
500
  }
504
501
  });
505
- const index_vue_vue_type_style_index_0_lang$i = "";
506
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
502
+ const index_vue_vue_type_style_index_0_lang$j = "";
503
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
507
504
  __name: "index",
508
505
  setup(__props, { expose: __expose }) {
509
506
  const attrs = useAttrs();
@@ -527,8 +524,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
527
524
  };
528
525
  }
529
526
  });
530
- const index_vue_vue_type_style_index_0_lang$h = "";
531
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
527
+ const index_vue_vue_type_style_index_0_lang$i = "";
528
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
532
529
  __name: "index",
533
530
  setup(__props, { expose: __expose }) {
534
531
  const proxyElement = ref();
@@ -559,8 +556,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
559
556
  };
560
557
  }
561
558
  });
562
- const index_vue_vue_type_style_index_0_lang$g = "";
563
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
559
+ const index_vue_vue_type_style_index_0_lang$h = "";
560
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
564
561
  __name: "index",
565
562
  props: {
566
563
  formatter: {
@@ -598,7 +595,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
598
595
  };
599
596
  }
600
597
  });
601
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
598
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
602
599
  __name: "index",
603
600
  setup(__props, { expose: __expose }) {
604
601
  const attrs = useAttrs();
@@ -622,8 +619,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
622
619
  };
623
620
  }
624
621
  });
625
- const index_vue_vue_type_style_index_0_lang$f = "";
626
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
622
+ const index_vue_vue_type_style_index_0_lang$g = "";
623
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
627
624
  __name: "index",
628
625
  setup(__props, { expose: __expose }) {
629
626
  const attrs = useAttrs();
@@ -654,7 +651,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
654
651
  };
655
652
  }
656
653
  });
657
- const index_vue_vue_type_style_index_0_lang$e = "";
654
+ const index_vue_vue_type_style_index_0_lang$f = "";
658
655
  /*! Element Plus Icons Vue v2.3.2 */
659
656
  var _sfc_main197 = /* @__PURE__ */ defineComponent({
660
657
  name: "Picture",
@@ -676,7 +673,7 @@ var _sfc_main197 = /* @__PURE__ */ defineComponent({
676
673
  }
677
674
  }), picture_default = _sfc_main197;
678
675
  const _hoisted_1 = { class: "error-slot" };
679
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
676
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
680
677
  ...{ inheritAttrs: false },
681
678
  __name: "index",
682
679
  props: {
@@ -748,8 +745,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
748
745
  };
749
746
  }
750
747
  });
751
- const index_vue_vue_type_style_index_0_lang$d = "";
752
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
748
+ const index_vue_vue_type_style_index_0_lang$e = "";
749
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
753
750
  __name: "index",
754
751
  setup(__props, { expose: __expose }) {
755
752
  const attrs = useAttrs();
@@ -773,8 +770,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
773
770
  };
774
771
  }
775
772
  });
776
- const index_vue_vue_type_style_index_0_lang$c = "";
777
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
773
+ const index_vue_vue_type_style_index_0_lang$d = "";
774
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
778
775
  __name: "index",
779
776
  setup(__props, { expose: __expose }) {
780
777
  const attrs = useAttrs();
@@ -798,8 +795,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
798
795
  };
799
796
  }
800
797
  });
801
- const index_vue_vue_type_style_index_0_lang$b = "";
802
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
798
+ const index_vue_vue_type_style_index_0_lang$c = "";
799
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
803
800
  __name: "index",
804
801
  setup(__props, { expose: __expose }) {
805
802
  const attrs = useAttrs();
@@ -823,6 +820,41 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
823
820
  };
824
821
  }
825
822
  });
823
+ const index_vue_vue_type_style_index_0_lang$b = "";
824
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
825
+ __name: "index",
826
+ setup(__props, { expose: __expose }) {
827
+ const proxyElement = ref();
828
+ const expose = useExpose(proxyElement);
829
+ __expose(expose);
830
+ return (_ctx, _cache) => {
831
+ return openBlock(), createBlock(unref(ElDescriptions), mergeProps(_ctx.$attrs, {
832
+ ref_key: "proxyElement",
833
+ ref: proxyElement
834
+ }), createSlots({
835
+ default: withCtx(() => [
836
+ renderSlot(_ctx.$slots, "default")
837
+ ]),
838
+ _: 2
839
+ }, [
840
+ _ctx.$slots.title ? {
841
+ name: "title",
842
+ fn: withCtx(() => [
843
+ renderSlot(_ctx.$slots, "title")
844
+ ]),
845
+ key: "0"
846
+ } : void 0,
847
+ _ctx.$slots.extra ? {
848
+ name: "extra",
849
+ fn: withCtx(() => [
850
+ renderSlot(_ctx.$slots, "extra")
851
+ ]),
852
+ key: "1"
853
+ } : void 0
854
+ ]), 1040);
855
+ };
856
+ }
857
+ });
826
858
  const index_vue_vue_type_style_index_0_lang$a = "";
827
859
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
828
860
  __name: "index",
@@ -1293,33 +1325,35 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1293
1325
  const index_vue_vue_type_style_index_0_lang = "";
1294
1326
  const Adapter = {
1295
1327
  // 基础组件
1296
- ElButton: _sfc_main$E,
1297
- ElTag: _sfc_main$D,
1328
+ ElButton: _sfc_main$F,
1329
+ ElTag: _sfc_main$E,
1298
1330
  // 表单组件
1299
- ElInput: _sfc_main$C,
1300
- ElForm: _sfc_main$B,
1301
- ElFormItem: _sfc_main$A,
1302
- ElSelect: _sfc_main$z,
1303
- ElOption: _sfc_main$y,
1304
- ElCheckbox: _sfc_main$x,
1305
- ElRadio: _sfc_main$w,
1306
- ElRadioGroup: _sfc_main$v,
1307
- ElRadioButton: _sfc_main$u,
1308
- ElSwitch: _sfc_main$t,
1309
- ElCascader: _sfc_main$s,
1310
- ElDatePicker: _sfc_main$r,
1311
- ElTimePicker: _sfc_main$q,
1312
- ElUpload: _sfc_main$p,
1313
- ElTransfer: _sfc_main$o,
1331
+ ElInput: _sfc_main$D,
1332
+ ElForm: _sfc_main$C,
1333
+ ElFormItem: _sfc_main$B,
1334
+ ElSelect: _sfc_main$A,
1335
+ ElOption: _sfc_main$z,
1336
+ ElCheckbox: _sfc_main$y,
1337
+ ElRadio: _sfc_main$x,
1338
+ ElRadioGroup: _sfc_main$w,
1339
+ ElRadioButton: _sfc_main$v,
1340
+ ElSwitch: _sfc_main$u,
1341
+ ElCascader: _sfc_main$t,
1342
+ ElDatePicker: _sfc_main$s,
1343
+ ElTimePicker: _sfc_main$r,
1344
+ ElUpload: _sfc_main$q,
1345
+ ElTransfer: _sfc_main$p,
1314
1346
  // 数据展示
1315
- ElTable: _sfc_main$n,
1316
- ElTableColumn: _sfc_main$m,
1317
- ElTree: _sfc_main$l,
1318
- ElPagination: _sfc_main$k,
1319
- ElImage: _sfc_main$j,
1320
- ElProgress: _sfc_main$i,
1321
- ElBadge: _sfc_main$h,
1322
- ElCard: _sfc_main$g,
1347
+ ElTable: _sfc_main$o,
1348
+ ElTableColumn: _sfc_main$n,
1349
+ ElTree: _sfc_main$m,
1350
+ ElPagination: _sfc_main$l,
1351
+ ElImage: _sfc_main$k,
1352
+ ElProgress: _sfc_main$j,
1353
+ ElBadge: _sfc_main$i,
1354
+ ElCard: _sfc_main$h,
1355
+ ElDescriptions: _sfc_main$g,
1356
+ ElDescriptionsItem,
1323
1357
  // 反馈组件
1324
1358
  ElAlert: _sfc_main$f,
1325
1359
  ElDialog: _sfc_main$e,