@ganwei-web/gw-base-components-plus 1.0.2 → 1.0.4

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.
@@ -12,7 +12,7 @@ function useExpose(proxyElement) {
12
12
  });
13
13
  return expose;
14
14
  }
15
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
15
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
16
16
  ...{
17
17
  inheritAttrs: false
18
18
  },
@@ -52,8 +52,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
52
52
  };
53
53
  }
54
54
  });
55
- const index_vue_vue_type_style_index_0_lang$k = "";
56
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
55
+ const index_vue_vue_type_style_index_0_lang$l = "";
56
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
57
57
  __name: "index",
58
58
  setup(__props, { expose: __expose }) {
59
59
  const proxyElement = ref$1();
@@ -77,8 +77,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
77
77
  };
78
78
  }
79
79
  });
80
- const index_vue_vue_type_style_index_0_lang$j = "";
81
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
80
+ const index_vue_vue_type_style_index_0_lang$k = "";
81
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
82
82
  __name: "index",
83
83
  setup(__props, { expose: __expose }) {
84
84
  const proxyElement = ref$1();
@@ -102,8 +102,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
102
102
  };
103
103
  }
104
104
  });
105
- const index_vue_vue_type_style_index_0_lang$i = "";
106
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
105
+ const index_vue_vue_type_style_index_0_lang$j = "";
106
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
107
107
  __name: "index",
108
108
  setup(__props, { expose: __expose }) {
109
109
  const proxyElement = ref();
@@ -126,8 +126,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
126
126
  };
127
127
  }
128
128
  });
129
- const index_vue_vue_type_style_index_0_lang$h = "";
130
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
129
+ const index_vue_vue_type_style_index_0_lang$i = "";
130
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
131
131
  __name: "index",
132
132
  props: {
133
133
  defaultTime: {},
@@ -176,8 +176,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
176
176
  };
177
177
  }
178
178
  });
179
- const index_vue_vue_type_style_index_0_lang$g = "";
180
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
179
+ const index_vue_vue_type_style_index_0_lang$h = "";
180
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
181
181
  __name: "index",
182
182
  setup(__props, { expose: __expose }) {
183
183
  const proxyElement = ref$1();
@@ -200,7 +200,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
200
200
  };
201
201
  }
202
202
  });
203
- const index_vue_vue_type_style_index_0_lang$f = "";
203
+ const index_vue_vue_type_style_index_0_lang$g = "";
204
204
  const UI_AUTOMATION_TOKEN = `data-testid`;
205
205
  function useDataTestId() {
206
206
  const attrs = useAttrs();
@@ -208,7 +208,7 @@ function useDataTestId() {
208
208
  console.warn(`${UI_AUTOMATION_TOKEN} is required to UI Automation`);
209
209
  }
210
210
  }
211
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
211
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
212
212
  __name: "index",
213
213
  setup(__props, { expose: __expose }) {
214
214
  const proxyElement = ref$1();
@@ -233,8 +233,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
233
233
  };
234
234
  }
235
235
  });
236
- const index_vue_vue_type_style_index_0_lang$e = "";
237
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
236
+ const index_vue_vue_type_style_index_0_lang$f = "";
237
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
238
238
  __name: "index",
239
239
  setup(__props, { expose: __expose }) {
240
240
  const proxyElement = ref$1();
@@ -259,8 +259,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
259
259
  };
260
260
  }
261
261
  });
262
- const index_vue_vue_type_style_index_0_lang$d = "";
263
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
262
+ const index_vue_vue_type_style_index_0_lang$e = "";
263
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
264
264
  __name: "index",
265
265
  setup(__props, { expose: __expose }) {
266
266
  const proxyElement = ref$1();
@@ -284,9 +284,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
284
284
  };
285
285
  }
286
286
  });
287
- const index_vue_vue_type_style_index_0_lang$c = "";
288
- /*! Element Plus Icons Vue v2.3.1 */
289
- var picture_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
287
+ const index_vue_vue_type_style_index_0_lang$d = "";
288
+ /*! Element Plus Icons Vue v2.3.2 */
289
+ var _sfc_main197 = /* @__PURE__ */ defineComponent({
290
290
  name: "Picture",
291
291
  __name: "picture",
292
292
  setup(__props) {
@@ -300,14 +300,13 @@ var picture_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
300
300
  }),
301
301
  createElementVNode("path", {
302
302
  fill: "currentColor",
303
- d: "M384 288q64 0 64 64t-64 64q-64 0-64-64t64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"
303
+ d: "M384 288q64 0 64 64t-64 64-64-64 64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"
304
304
  })
305
305
  ]));
306
306
  }
307
- });
308
- var picture_default = picture_vue_vue_type_script_setup_true_lang_default;
307
+ }), picture_default = _sfc_main197;
309
308
  const _hoisted_1 = { class: "error-slot" };
310
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
309
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
311
310
  __name: "index",
312
311
  props: {
313
312
  src: { default: "" },
@@ -378,8 +377,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
378
377
  };
379
378
  }
380
379
  });
381
- const index_vue_vue_type_style_index_0_lang$b = "";
382
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
380
+ const index_vue_vue_type_style_index_0_lang$c = "";
381
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
383
382
  __name: "ElInput",
384
383
  props: {
385
384
  "modelValue": {
@@ -451,7 +450,7 @@ const vLoading = {
451
450
  (_b = (_a = vLoading$1).unmounted) == null ? void 0 : _b.call(_a, el, binding, vnode, prevVnode);
452
451
  }
453
452
  };
454
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
453
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
455
454
  __name: "index",
456
455
  setup(__props, { expose: __expose }) {
457
456
  const proxyElement = ref$1();
@@ -476,7 +475,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
476
475
  };
477
476
  }
478
477
  });
479
- const index_vue_vue_type_style_index_0_lang$a = "";
478
+ const index_vue_vue_type_style_index_0_lang$b = "";
480
479
  const index$1 = "";
481
480
  const index = "";
482
481
  const install = ElNotification$1.install;
@@ -511,7 +510,7 @@ ElNotification.install = (app) => {
511
510
  install == null ? void 0 : install(app);
512
511
  app.config.globalProperties.$notify = ElNotification;
513
512
  };
514
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
513
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
515
514
  __name: "index",
516
515
  setup(__props, { expose: __expose }) {
517
516
  const attrs = useAttrs();
@@ -540,8 +539,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
540
539
  };
541
540
  }
542
541
  });
543
- const index_vue_vue_type_style_index_0_lang$9 = "";
544
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
542
+ const index_vue_vue_type_style_index_0_lang$a = "";
543
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
545
544
  __name: "index",
546
545
  setup(__props, { expose: __expose }) {
547
546
  const proxyElement = ref$1();
@@ -564,8 +563,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
564
563
  };
565
564
  }
566
565
  });
567
- const index_vue_vue_type_style_index_0_lang$8 = "";
568
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
566
+ const index_vue_vue_type_style_index_0_lang$9 = "";
567
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
569
568
  __name: "index",
570
569
  setup(__props, { expose: __expose }) {
571
570
  const proxyElement = ref$1();
@@ -589,8 +588,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
589
588
  };
590
589
  }
591
590
  });
592
- const index_vue_vue_type_style_index_0_lang$7 = "";
593
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
591
+ const index_vue_vue_type_style_index_0_lang$8 = "";
592
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
594
593
  __name: "index",
595
594
  props: {
596
595
  round: {
@@ -622,8 +621,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
622
621
  };
623
622
  }
624
623
  });
625
- const index_vue_vue_type_style_index_0_lang$6 = "";
626
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
624
+ const index_vue_vue_type_style_index_0_lang$7 = "";
625
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
627
626
  __name: "index",
628
627
  setup(__props, { expose: __expose }) {
629
628
  const proxyElement = ref$1();
@@ -648,8 +647,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
648
647
  };
649
648
  }
650
649
  });
651
- const index_vue_vue_type_style_index_0_lang$5 = "";
652
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
650
+ const index_vue_vue_type_style_index_0_lang$6 = "";
651
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
653
652
  __name: "index",
654
653
  setup(__props, { expose: __expose }) {
655
654
  const proxyElement = ref$1();
@@ -674,8 +673,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
674
673
  };
675
674
  }
676
675
  });
677
- const index_vue_vue_type_style_index_0_lang$4 = "";
678
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
676
+ const index_vue_vue_type_style_index_0_lang$5 = "";
677
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
679
678
  __name: "index",
680
679
  props: {
681
680
  formatter: {
@@ -736,7 +735,7 @@ function useResizeTable() {
736
735
  }
737
736
  return height;
738
737
  }
739
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
738
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
740
739
  __name: "index",
741
740
  props: {
742
741
  height: {
@@ -768,8 +767,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
768
767
  };
769
768
  }
770
769
  });
771
- const index_vue_vue_type_style_index_0_lang$3 = "";
772
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
770
+ const index_vue_vue_type_style_index_0_lang$4 = "";
771
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
773
772
  __name: "index",
774
773
  setup(__props, { expose: __expose }) {
775
774
  const proxyElement = ref$1();
@@ -793,7 +792,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
793
792
  };
794
793
  }
795
794
  });
796
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
795
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
797
796
  __name: "index",
798
797
  setup(__props, { expose: __expose }) {
799
798
  const proxyElement = ref$1();
@@ -807,8 +806,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
807
806
  };
808
807
  }
809
808
  });
810
- const index_vue_vue_type_style_index_0_lang$2 = "";
811
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
809
+ const index_vue_vue_type_style_index_0_lang$3 = "";
810
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
812
811
  __name: "index",
813
812
  setup(__props, { expose: __expose }) {
814
813
  const tree = ref$1();
@@ -831,8 +830,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
831
830
  };
832
831
  }
833
832
  });
834
- const index_vue_vue_type_style_index_0_lang$1 = "";
835
- const _sfc_main = /* @__PURE__ */ defineComponent({
833
+ const index_vue_vue_type_style_index_0_lang$2 = "";
834
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
836
835
  __name: "index",
837
836
  setup(__props, { expose: __expose }) {
838
837
  const proxyElement = ref$1();
@@ -856,32 +855,120 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
856
855
  };
857
856
  }
858
857
  });
858
+ const index_vue_vue_type_style_index_0_lang$1 = "";
859
+ const _sfc_main = /* @__PURE__ */ defineComponent({
860
+ __name: "index",
861
+ props: {
862
+ effect: {
863
+ type: String,
864
+ default: "dark"
865
+ },
866
+ trigger: {
867
+ type: String,
868
+ default: "hover"
869
+ },
870
+ placement: {
871
+ type: String,
872
+ default: "bottom"
873
+ },
874
+ width: {
875
+ type: [String, Number],
876
+ default: "auto"
877
+ },
878
+ offset: {
879
+ type: Number,
880
+ default: 12
881
+ },
882
+ transition: {
883
+ type: String,
884
+ default: "el-fade-in-linear"
885
+ },
886
+ showArrow: {
887
+ type: Boolean,
888
+ default: true
889
+ },
890
+ persistent: {
891
+ type: Boolean,
892
+ default: false
893
+ },
894
+ popperClass: {
895
+ type: String,
896
+ default: ""
897
+ },
898
+ showAfter: {
899
+ type: Number,
900
+ default: 200
901
+ },
902
+ hideAfter: {
903
+ type: Number,
904
+ default: 200
905
+ },
906
+ disabled: {
907
+ type: Boolean,
908
+ default: false
909
+ }
910
+ },
911
+ setup(__props, { expose: __expose }) {
912
+ const proxyElement = ref$1();
913
+ const expose = useExpose(proxyElement);
914
+ __expose(expose);
915
+ return (_ctx, _cache) => {
916
+ return openBlock(), createBlock(unref(ElPopover), mergeProps({
917
+ ref_key: "proxyElement",
918
+ ref: proxyElement
919
+ }, _ctx.$attrs, {
920
+ effect: __props.effect,
921
+ trigger: __props.trigger,
922
+ placement: __props.placement,
923
+ width: __props.width,
924
+ offset: __props.offset,
925
+ transition: __props.transition,
926
+ "show-arrow": __props.showArrow,
927
+ persistent: __props.persistent,
928
+ "popper-class": __props.popperClass,
929
+ "show-after": __props.showAfter,
930
+ "hide-after": __props.hideAfter,
931
+ disabled: __props.disabled
932
+ }), createSlots({ _: 2 }, [
933
+ renderList(_ctx.$slots, (value, key) => {
934
+ return {
935
+ name: key,
936
+ fn: withCtx((slotProps) => [
937
+ renderSlot(_ctx.$slots, key, mergeProps(slotProps, { key }))
938
+ ])
939
+ };
940
+ })
941
+ ]), 1040, ["effect", "trigger", "placement", "width", "offset", "transition", "show-arrow", "persistent", "popper-class", "show-after", "hide-after", "disabled"]);
942
+ };
943
+ }
944
+ });
859
945
  const index_vue_vue_type_style_index_0_lang = "";
860
946
  const Adapter = {
861
- ElInput: _sfc_main$d,
862
- ElDropdown: _sfc_main$g,
863
- ElMenu: _sfc_main$c,
864
- ElRadioGroup: _sfc_main$8,
865
- ElTable: _sfc_main$4,
866
- ElTableColumn: _sfc_main$5,
867
- ElSelect: _sfc_main$7,
868
- ElPagination: _sfc_main$b,
869
- ElButton: _sfc_main$n,
870
- ElForm: _sfc_main$f,
871
- ElCascader: _sfc_main$m,
872
- ElRadio: _sfc_main$9,
873
- ElCheckbox: _sfc_main$l,
874
- ElDatePicker: _sfc_main$j,
875
- ElTimePicker: _sfc_main$3,
876
- ElDialog: _sfc_main$i,
877
- ElSwitch: _sfc_main$6,
878
- ElDrawer: _sfc_main$h,
879
- ElPopover: _sfc_main$a,
880
- ElTransfer: _sfc_main$2,
881
- ElCollapse: _sfc_main$k,
882
- ElImage: _sfc_main$e,
883
- ElUpload: _sfc_main,
884
- ElTree: _sfc_main$1
947
+ ElInput: _sfc_main$e,
948
+ ElDropdown: _sfc_main$h,
949
+ ElMenu: _sfc_main$d,
950
+ ElRadioGroup: _sfc_main$9,
951
+ ElTable: _sfc_main$5,
952
+ ElTableColumn: _sfc_main$6,
953
+ ElSelect: _sfc_main$8,
954
+ ElPagination: _sfc_main$c,
955
+ ElButton: _sfc_main$o,
956
+ ElForm: _sfc_main$g,
957
+ ElCascader: _sfc_main$n,
958
+ ElRadio: _sfc_main$a,
959
+ ElCheckbox: _sfc_main$m,
960
+ ElDatePicker: _sfc_main$k,
961
+ ElTimePicker: _sfc_main$4,
962
+ ElDialog: _sfc_main$j,
963
+ ElSwitch: _sfc_main$7,
964
+ ElDrawer: _sfc_main$i,
965
+ ElPopover: _sfc_main$b,
966
+ ElTransfer: _sfc_main$3,
967
+ ElCollapse: _sfc_main$l,
968
+ ElImage: _sfc_main$f,
969
+ ElUpload: _sfc_main$1,
970
+ ElTree: _sfc_main$2,
971
+ ElPoper: _sfc_main
885
972
  };
886
973
  function adapterInstall(app) {
887
974
  for (const [key, component] of Object.entries(Adapter)) {