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

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, ElCheckboxGroup, 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$G = /* @__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$F = /* @__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$E = /* @__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$D = /* @__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$C = /* @__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$B = /* @__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$A = /* @__PURE__ */ defineComponent({
225
222
  __name: "index",
226
223
  setup(__props, { expose: __expose }) {
227
224
  const attrs = useAttrs();
@@ -245,7 +242,10 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
245
242
  };
246
243
  }
247
244
  });
248
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
245
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
246
+ ...{
247
+ inheritAttrs: false
248
+ },
249
249
  __name: "index",
250
250
  setup(__props, { expose: __expose }) {
251
251
  const proxyElement = ref();
@@ -269,8 +269,35 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
269
269
  };
270
270
  }
271
271
  });
272
- const index_vue_vue_type_style_index_0_lang$p = "";
273
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
272
+ const index_vue_vue_type_style_index_0_lang$q = "";
273
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
274
+ ...{
275
+ inheritAttrs: false
276
+ },
277
+ __name: "index",
278
+ setup(__props, { expose: __expose }) {
279
+ const proxyElement = ref();
280
+ const expose = useExpose(proxyElement);
281
+ __expose(expose);
282
+ const attrs = useAttrs();
283
+ return (_ctx, _cache) => {
284
+ return openBlock(), createBlock(unref(ElCheckboxGroup), mergeProps(unref(attrs), {
285
+ ref_key: "proxyElement",
286
+ ref: proxyElement
287
+ }), createSlots({ _: 2 }, [
288
+ renderList(_ctx.$slots, (value, key) => {
289
+ return {
290
+ name: key,
291
+ fn: withCtx((slotProps) => [
292
+ renderSlot(_ctx.$slots, key, mergeProps(slotProps, { key }))
293
+ ])
294
+ };
295
+ })
296
+ ]), 1040);
297
+ };
298
+ }
299
+ });
300
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
274
301
  __name: "index",
275
302
  setup(__props, { expose: __expose }) {
276
303
  const proxyElement = ref();
@@ -294,8 +321,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
294
321
  };
295
322
  }
296
323
  });
297
- const index_vue_vue_type_style_index_0_lang$o = "";
298
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
324
+ const index_vue_vue_type_style_index_0_lang$p = "";
325
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
299
326
  __name: "index",
300
327
  props: {
301
328
  round: {
@@ -327,8 +354,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
327
354
  };
328
355
  }
329
356
  });
330
- const index_vue_vue_type_style_index_0_lang$n = "";
331
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
357
+ const index_vue_vue_type_style_index_0_lang$o = "";
358
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
332
359
  __name: "index",
333
360
  setup(__props, { expose: __expose }) {
334
361
  const attrs = useAttrs();
@@ -352,7 +379,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
352
379
  };
353
380
  }
354
381
  });
355
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
382
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
356
383
  __name: "index",
357
384
  setup(__props, { expose: __expose }) {
358
385
  const proxyElement = ref();
@@ -377,8 +404,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
377
404
  };
378
405
  }
379
406
  });
380
- const index_vue_vue_type_style_index_0_lang$m = "";
381
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
407
+ const index_vue_vue_type_style_index_0_lang$n = "";
408
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
382
409
  __name: "index",
383
410
  setup(__props, { expose: __expose }) {
384
411
  const proxyElement = ref();
@@ -402,8 +429,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
402
429
  };
403
430
  }
404
431
  });
405
- const index_vue_vue_type_style_index_0_lang$l = "";
406
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
432
+ const index_vue_vue_type_style_index_0_lang$m = "";
433
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
407
434
  __name: "index",
408
435
  props: {
409
436
  defaultTime: {},
@@ -452,8 +479,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
452
479
  };
453
480
  }
454
481
  });
455
- const index_vue_vue_type_style_index_0_lang$k = "";
456
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
482
+ const index_vue_vue_type_style_index_0_lang$l = "";
483
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
457
484
  __name: "index",
458
485
  setup(__props, { expose: __expose }) {
459
486
  const proxyElement = ref();
@@ -477,8 +504,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
477
504
  };
478
505
  }
479
506
  });
480
- const index_vue_vue_type_style_index_0_lang$j = "";
481
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
507
+ const index_vue_vue_type_style_index_0_lang$k = "";
508
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
482
509
  __name: "index",
483
510
  setup(__props, { expose: __expose }) {
484
511
  const proxyElement = ref();
@@ -502,8 +529,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
502
529
  };
503
530
  }
504
531
  });
505
- const index_vue_vue_type_style_index_0_lang$i = "";
506
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
532
+ const index_vue_vue_type_style_index_0_lang$j = "";
533
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
507
534
  __name: "index",
508
535
  setup(__props, { expose: __expose }) {
509
536
  const attrs = useAttrs();
@@ -527,8 +554,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
527
554
  };
528
555
  }
529
556
  });
530
- const index_vue_vue_type_style_index_0_lang$h = "";
531
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
557
+ const index_vue_vue_type_style_index_0_lang$i = "";
558
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
532
559
  __name: "index",
533
560
  setup(__props, { expose: __expose }) {
534
561
  const proxyElement = ref();
@@ -559,8 +586,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
559
586
  };
560
587
  }
561
588
  });
562
- const index_vue_vue_type_style_index_0_lang$g = "";
563
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
589
+ const index_vue_vue_type_style_index_0_lang$h = "";
590
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
564
591
  __name: "index",
565
592
  props: {
566
593
  formatter: {
@@ -598,7 +625,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
598
625
  };
599
626
  }
600
627
  });
601
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
628
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
602
629
  __name: "index",
603
630
  setup(__props, { expose: __expose }) {
604
631
  const attrs = useAttrs();
@@ -622,8 +649,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
622
649
  };
623
650
  }
624
651
  });
625
- const index_vue_vue_type_style_index_0_lang$f = "";
626
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
652
+ const index_vue_vue_type_style_index_0_lang$g = "";
653
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
627
654
  __name: "index",
628
655
  setup(__props, { expose: __expose }) {
629
656
  const attrs = useAttrs();
@@ -654,7 +681,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
654
681
  };
655
682
  }
656
683
  });
657
- const index_vue_vue_type_style_index_0_lang$e = "";
684
+ const index_vue_vue_type_style_index_0_lang$f = "";
658
685
  /*! Element Plus Icons Vue v2.3.2 */
659
686
  var _sfc_main197 = /* @__PURE__ */ defineComponent({
660
687
  name: "Picture",
@@ -676,7 +703,7 @@ var _sfc_main197 = /* @__PURE__ */ defineComponent({
676
703
  }
677
704
  }), picture_default = _sfc_main197;
678
705
  const _hoisted_1 = { class: "error-slot" };
679
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
706
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
680
707
  ...{ inheritAttrs: false },
681
708
  __name: "index",
682
709
  props: {
@@ -748,8 +775,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
748
775
  };
749
776
  }
750
777
  });
751
- const index_vue_vue_type_style_index_0_lang$d = "";
752
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
778
+ const index_vue_vue_type_style_index_0_lang$e = "";
779
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
753
780
  __name: "index",
754
781
  setup(__props, { expose: __expose }) {
755
782
  const attrs = useAttrs();
@@ -773,8 +800,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
773
800
  };
774
801
  }
775
802
  });
776
- const index_vue_vue_type_style_index_0_lang$c = "";
777
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
803
+ const index_vue_vue_type_style_index_0_lang$d = "";
804
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
778
805
  __name: "index",
779
806
  setup(__props, { expose: __expose }) {
780
807
  const attrs = useAttrs();
@@ -798,8 +825,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
798
825
  };
799
826
  }
800
827
  });
801
- const index_vue_vue_type_style_index_0_lang$b = "";
802
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
828
+ const index_vue_vue_type_style_index_0_lang$c = "";
829
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
803
830
  __name: "index",
804
831
  setup(__props, { expose: __expose }) {
805
832
  const attrs = useAttrs();
@@ -823,6 +850,41 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
823
850
  };
824
851
  }
825
852
  });
853
+ const index_vue_vue_type_style_index_0_lang$b = "";
854
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
855
+ __name: "index",
856
+ setup(__props, { expose: __expose }) {
857
+ const proxyElement = ref();
858
+ const expose = useExpose(proxyElement);
859
+ __expose(expose);
860
+ return (_ctx, _cache) => {
861
+ return openBlock(), createBlock(unref(ElDescriptions), mergeProps(_ctx.$attrs, {
862
+ ref_key: "proxyElement",
863
+ ref: proxyElement
864
+ }), createSlots({
865
+ default: withCtx(() => [
866
+ renderSlot(_ctx.$slots, "default")
867
+ ]),
868
+ _: 2
869
+ }, [
870
+ _ctx.$slots.title ? {
871
+ name: "title",
872
+ fn: withCtx(() => [
873
+ renderSlot(_ctx.$slots, "title")
874
+ ]),
875
+ key: "0"
876
+ } : void 0,
877
+ _ctx.$slots.extra ? {
878
+ name: "extra",
879
+ fn: withCtx(() => [
880
+ renderSlot(_ctx.$slots, "extra")
881
+ ]),
882
+ key: "1"
883
+ } : void 0
884
+ ]), 1040);
885
+ };
886
+ }
887
+ });
826
888
  const index_vue_vue_type_style_index_0_lang$a = "";
827
889
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
828
890
  __name: "index",
@@ -1293,33 +1355,36 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1293
1355
  const index_vue_vue_type_style_index_0_lang = "";
1294
1356
  const Adapter = {
1295
1357
  // 基础组件
1296
- ElButton: _sfc_main$E,
1297
- ElTag: _sfc_main$D,
1358
+ ElButton: _sfc_main$G,
1359
+ ElTag: _sfc_main$F,
1298
1360
  // 表单组件
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,
1361
+ ElInput: _sfc_main$E,
1362
+ ElForm: _sfc_main$D,
1363
+ ElFormItem: _sfc_main$C,
1364
+ ElSelect: _sfc_main$B,
1365
+ ElOption: _sfc_main$A,
1366
+ ElCheckbox: _sfc_main$z,
1367
+ ElCheckboxGroup: _sfc_main$y,
1368
+ ElRadio: _sfc_main$x,
1369
+ ElRadioGroup: _sfc_main$w,
1370
+ ElRadioButton: _sfc_main$v,
1371
+ ElSwitch: _sfc_main$u,
1372
+ ElCascader: _sfc_main$t,
1373
+ ElDatePicker: _sfc_main$s,
1374
+ ElTimePicker: _sfc_main$r,
1375
+ ElUpload: _sfc_main$q,
1376
+ ElTransfer: _sfc_main$p,
1314
1377
  // 数据展示
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,
1378
+ ElTable: _sfc_main$o,
1379
+ ElTableColumn: _sfc_main$n,
1380
+ ElTree: _sfc_main$m,
1381
+ ElPagination: _sfc_main$l,
1382
+ ElImage: _sfc_main$k,
1383
+ ElProgress: _sfc_main$j,
1384
+ ElBadge: _sfc_main$i,
1385
+ ElCard: _sfc_main$h,
1386
+ ElDescriptions: _sfc_main$g,
1387
+ ElDescriptionsItem,
1323
1388
  // 反馈组件
1324
1389
  ElAlert: _sfc_main$f,
1325
1390
  ElDialog: _sfc_main$e,