@touchvue/plugin 1.0.0-beta.11 → 1.0.0-beta.12

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/index.mjs CHANGED
@@ -4914,6 +4914,7 @@ const defaultLang = {
4914
4914
  fold: "全文"
4915
4915
  },
4916
4916
  guider: {
4917
+ dontShowAgain: "不再显示",
4917
4918
  restart: "再来一遍",
4918
4919
  finish: "完成",
4919
4920
  skip: "跳过",
@@ -9223,8 +9224,10 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
9223
9224
  };
9224
9225
  const setClass = computed(() => {
9225
9226
  const arr = [];
9226
- if (props.col)
9227
+ if (props.col) {
9228
+ arr.push("is-col");
9227
9229
  arr.push(`col-${props.col}`);
9230
+ }
9228
9231
  if (props.submitPosition)
9229
9232
  arr.push(`submit-position-${props.submitPosition}`);
9230
9233
  if (props.mode)
@@ -12081,7 +12084,11 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
12081
12084
  () => props.pageSize,
12082
12085
  (val) => {
12083
12086
  const sizes = typeof props.pageSizes === "string" ? props.pageSizes.split(",") : props.pageSizes;
12084
- pageSize_.value = sizes.includes(Number(val)) ? Number(val) : Number(sizes[0]);
12087
+ if (props.layout.includes("size") || props.layout === "all") {
12088
+ pageSize_.value = sizes.includes(Number(val)) ? Number(val) : Number(sizes[0]);
12089
+ } else {
12090
+ pageSize_.value = Number(val);
12091
+ }
12085
12092
  nextTick(() => {
12086
12093
  computePager();
12087
12094
  });
@@ -12702,6 +12709,13 @@ const centerScrollProps = {
12702
12709
  required: true,
12703
12710
  default: () => []
12704
12711
  },
12712
+ /**
12713
+ * 模式
12714
+ */
12715
+ mode: {
12716
+ type: String,
12717
+ default: ""
12718
+ },
12705
12719
  /**
12706
12720
  * 当前选中的值
12707
12721
  */
@@ -12714,7 +12728,7 @@ const centerScrollProps = {
12714
12728
  */
12715
12729
  height: {
12716
12730
  type: [String, Number],
12717
- default: 15
12731
+ default: 17
12718
12732
  }
12719
12733
  };
12720
12734
  const centerScrollEmits = {
@@ -12741,7 +12755,11 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
12741
12755
  const scrollTimeout = ref(null);
12742
12756
  const isScrollTo = ref(false);
12743
12757
  const changeBySelf = ref(false);
12758
+ const itemHeight = ref(0);
12744
12759
  const height = computed(() => Number(props.height));
12760
+ onMounted(() => {
12761
+ itemHeight.value = Number(((itemRefs.value[0].getBoundingClientRect().height || 0) / getEm()).toFixed(2));
12762
+ });
12745
12763
  const setItemRef = (el, index) => {
12746
12764
  if (el) {
12747
12765
  itemRefs.value[index] = el;
@@ -12761,6 +12779,12 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
12761
12779
  iData.value = JSON.parse(JSON.stringify(data));
12762
12780
  }
12763
12781
  };
12782
+ const setClass = computed(() => {
12783
+ let arr = [];
12784
+ if (props.mode)
12785
+ arr.push(`mode-${props.mode}`);
12786
+ return arr;
12787
+ });
12764
12788
  const onScroll = () => {
12765
12789
  if (!inited.value)
12766
12790
  return;
@@ -12865,14 +12889,13 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
12865
12889
  centerClosestItem
12866
12890
  });
12867
12891
  return (_ctx, _cache) => {
12868
- const _directive_dis = resolveDirective("dis");
12869
12892
  return openBlock(), createElementBlock("div", {
12870
- class: "to-centerScroll",
12893
+ class: normalizeClass(["to-centerScroll", setClass.value]),
12871
12894
  style: normalizeStyle({ height: `${height.value}em` })
12872
12895
  }, [
12873
12896
  createElementVNode("div", {
12874
12897
  class: "to-centerScroll-top",
12875
- style: normalizeStyle({ height: `${(height.value - 3) / 2}em` })
12898
+ style: normalizeStyle({ height: `${(height.value - itemHeight.value) / 2}em` })
12876
12899
  }, null, 4),
12877
12900
  createElementVNode("div", {
12878
12901
  ref_key: "scrollContainer",
@@ -12882,30 +12905,25 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
12882
12905
  }, [
12883
12906
  createElementVNode("div", {
12884
12907
  class: "to-centerScroll-wrapper",
12885
- style: normalizeStyle({
12886
- paddingTop: `${(height.value - 3) / 2}em`,
12887
- paddingBottom: `${(height.value - 3) / 2}em`
12888
- })
12908
+ style: normalizeStyle({ paddingTop: `${(height.value - itemHeight.value) / 2}em`, paddingBottom: `${(height.value - itemHeight.value) / 2}em` })
12889
12909
  }, [
12890
12910
  (openBlock(true), createElementBlock(Fragment, null, renderList(iData.value, (item, index) => {
12891
- return withDirectives((openBlock(), createElementBlock("div", {
12911
+ return openBlock(), createElementBlock("div", {
12892
12912
  key: index,
12893
12913
  ref_for: true,
12894
12914
  ref: (el) => setItemRef(el, index),
12895
- class: normalizeClass(["to-centerScroll-item", { "is-on": item.value === _ctx.modelValue }])
12915
+ class: normalizeClass(["to-centerScroll-item", { "is-on": item.value === _ctx.modelValue, "is-dis": item.disabled }])
12896
12916
  }, [
12897
- createTextVNode(toDisplayString(item.label), 1)
12898
- ], 2)), [
12899
- [_directive_dis, item.disabled]
12900
- ]);
12917
+ createElementVNode("span", { class: "to-centerScroll-item-text" }, toDisplayString(item.label), 1)
12918
+ ], 2);
12901
12919
  }), 128))
12902
12920
  ], 4)
12903
12921
  ], 544),
12904
12922
  createElementVNode("div", {
12905
12923
  class: "to-centerScroll-bottom",
12906
- style: normalizeStyle({ height: `${(height.value - 3) / 2}em` })
12924
+ style: normalizeStyle({ height: `${(height.value - itemHeight.value) / 2}em` })
12907
12925
  }, null, 4)
12908
- ], 4);
12926
+ ], 6);
12909
12927
  };
12910
12928
  }
12911
12929
  });
@@ -13941,14 +13959,15 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
13941
13959
  mode: { default: "default" },
13942
13960
  icon: { default: "date" },
13943
13961
  inputable: { type: Boolean, default: true },
13944
- startPlaceholder: { default: "" },
13945
- endPlaceholder: { default: "" },
13962
+ startPlaceholder: { default: "开始时间" },
13963
+ endPlaceholder: { default: "结束时间" },
13946
13964
  type: { default: "date" },
13947
13965
  min: { default: "" },
13948
13966
  max: { default: "" },
13949
13967
  disabled: { type: Boolean, default: false },
13950
13968
  clearable: { type: Boolean, default: true },
13951
13969
  prefix: { default: "" },
13970
+ suffix: { default: "" },
13952
13971
  flex: { type: Boolean, default: false }
13953
13972
  },
13954
13973
  emits: ["update:modelValue", "focus", "change"],
@@ -14028,7 +14047,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
14028
14047
  if (props.disabled) {
14029
14048
  return;
14030
14049
  }
14031
- floatRef.value.open($el.value);
14050
+ floatRef.value.toggle($el.value);
14032
14051
  }
14033
14052
  function handleClose() {
14034
14053
  if (props.disabled) {
@@ -14082,47 +14101,70 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
14082
14101
  [vModelText, endDate.value],
14083
14102
  [unref(vDis), __props.disabled]
14084
14103
  ]),
14085
- startDate.value && endDate.value && props.clearable ? (openBlock(), createBlock(unref(ToIcon), {
14104
+ startDate.value && endDate.value && props.clearable && !props.disabled ? (openBlock(), createBlock(unref(ToIcon), {
14086
14105
  key: 2,
14087
14106
  value: "close",
14088
14107
  link: "",
14089
- mode: "date-range-close",
14108
+ class: "to-date-range-clear",
14090
14109
  onClick: handleClose
14091
14110
  })) : createCommentVNode("", true),
14111
+ _ctx.$slots.suffix ? (openBlock(), createElementBlock("span", {
14112
+ key: 3,
14113
+ class: "to-date-range-suffix"
14114
+ }, [
14115
+ renderSlot(_ctx.$slots, "suffix")
14116
+ ])) : createCommentVNode("", true),
14117
+ props.suffix ? (openBlock(), createElementBlock("span", {
14118
+ key: 4,
14119
+ class: "to-date-range-suffix-text"
14120
+ }, [
14121
+ createElementVNode("span", null, toDisplayString(props.suffix), 1)
14122
+ ])) : createCommentVNode("", true),
14092
14123
  createVNode(unref(ToIcon), {
14124
+ link: __props.inputable,
14093
14125
  value: props.icon,
14094
- mode: "date-range-icon",
14126
+ class: "to-date-range-icon",
14095
14127
  onClick: handleOpen
14096
- }, null, 8, ["value"]),
14097
- createVNode(unref(ToFloat), {
14098
- ref_key: "floatRef",
14099
- ref: floatRef,
14100
- width: widthComputed.value
14101
- }, {
14102
- default: withCtx(() => [
14103
- createElementVNode("div", { class: "to-date-range-calendar-content" }, [
14104
- createVNode(unref(ToCalendar), {
14105
- modelValue: rangeValue.value,
14106
- "onUpdate:modelValue": ($event) => rangeValue.value = $event,
14107
- type: __props.type,
14108
- range: "",
14109
- min: __props.min,
14110
- max: __props.max
14111
- }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "min", "max"]),
14112
- createElementVNode("span", { class: "to-date-range-calendar-separator" }),
14113
- createVNode(unref(ToCalendar), {
14114
- modelValue: rangeValue.value,
14115
- "onUpdate:modelValue": ($event) => rangeValue.value = $event,
14116
- type: __props.type,
14117
- range: "",
14118
- "range-type": "end",
14119
- min: __props.min,
14120
- max: __props.max
14121
- }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "min", "max"])
14122
- ])
14123
- ]),
14124
- _: 1
14125
- }, 8, ["width"])
14128
+ }, null, 8, ["link", "value"]),
14129
+ (openBlock(), createBlock(Teleport, { to: "body" }, [
14130
+ createElementVNode("div", {
14131
+ class: normalizeClass(["to-date-range", setClass.value])
14132
+ }, [
14133
+ createVNode(unref(ToFloat), {
14134
+ ref_key: "floatRef",
14135
+ ref: floatRef,
14136
+ class: "to-date-range-layer",
14137
+ width: widthComputed.value,
14138
+ global: false
14139
+ }, {
14140
+ default: withCtx(() => [
14141
+ createElementVNode("div", { class: "to-date-range-calendars" }, [
14142
+ createVNode(unref(ToCalendar), {
14143
+ modelValue: rangeValue.value,
14144
+ "onUpdate:modelValue": ($event) => rangeValue.value = $event,
14145
+ class: "to-date-range-calendar",
14146
+ type: __props.type,
14147
+ range: "",
14148
+ min: __props.min,
14149
+ max: __props.max
14150
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "min", "max"]),
14151
+ createElementVNode("span", { class: "to-date-range-divider" }),
14152
+ createVNode(unref(ToCalendar), {
14153
+ modelValue: rangeValue.value,
14154
+ "onUpdate:modelValue": ($event) => rangeValue.value = $event,
14155
+ class: "to-date-range-calendar",
14156
+ type: __props.type,
14157
+ range: "",
14158
+ "range-type": "end",
14159
+ min: __props.min,
14160
+ max: __props.max
14161
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "min", "max"])
14162
+ ])
14163
+ ]),
14164
+ _: 1
14165
+ }, 8, ["width"])
14166
+ ], 2)
14167
+ ]))
14126
14168
  ], 10, ["flex"]);
14127
14169
  };
14128
14170
  }
@@ -20036,14 +20078,14 @@ const scrollProps = {
20036
20078
  /**
20037
20079
  * 背景颜色
20038
20080
  */
20039
- color: {
20081
+ mode: {
20040
20082
  type: String,
20041
20083
  default: ""
20042
20084
  },
20043
20085
  /**
20044
20086
  * 滚动模式
20045
20087
  */
20046
- mode: {
20088
+ type: {
20047
20089
  type: String,
20048
20090
  default: ""
20049
20091
  }
@@ -20454,6 +20496,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
20454
20496
  if (props.mode) {
20455
20497
  arr.push(`mode-${props.mode}`);
20456
20498
  }
20499
+ if (props.type) {
20500
+ arr.push(`type-${props.type}`);
20501
+ }
20457
20502
  return arr;
20458
20503
  });
20459
20504
  const setContentStyle = computed(() => {
@@ -20489,10 +20534,6 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
20489
20534
  obj.position = "relative";
20490
20535
  obj.width = "100%";
20491
20536
  }
20492
- if (props.mode === "horizontal") {
20493
- obj.width = props.virtual ? "100%" : "max-content";
20494
- obj.display = "inline-block";
20495
- }
20496
20537
  return obj;
20497
20538
  });
20498
20539
  function adjust() {
@@ -20910,7 +20951,7 @@ const _sfc_main$m = defineComponent({
20910
20951
  function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
20911
20952
  return openBlock(), createElementBlock("div", {
20912
20953
  flex: _ctx.flex ? _ctx.flex : null,
20913
- class: normalizeClass(["to-breadcrumb", [`is-${_ctx.mode}`]])
20954
+ class: normalizeClass(["to-breadcrumb", [`mode-${_ctx.mode}`]])
20914
20955
  }, [
20915
20956
  renderSlot(_ctx.$slots, "default")
20916
20957
  ], 10, ["flex"]);
@@ -20957,7 +20998,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
20957
20998
  const _component_to_icon = resolveComponent("to-icon");
20958
20999
  return openBlock(), createElementBlock("span", { class: "to-breadcrumb-item" }, [
20959
21000
  createElementVNode("span", {
20960
- class: normalizeClass(["to-breadcrumb-item__inner", _ctx.to ? "is-link" : ""]),
21001
+ class: normalizeClass(["to-breadcrumb-item-label", _ctx.to ? "is-link" : ""]),
20961
21002
  role: "link",
20962
21003
  onClick: _ctx.handleClick
20963
21004
  }, [
@@ -20965,10 +21006,10 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
20965
21006
  ], 10, ["onClick"]),
20966
21007
  !((_a2 = _ctx.breadcrumbData) == null ? void 0 : _a2.separatorIcon) ? (openBlock(), createElementBlock("span", {
20967
21008
  key: 0,
20968
- class: "to-breadcrumb-item__separator"
21009
+ class: "to-breadcrumb-item-separator"
20969
21010
  }, toDisplayString((_b = _ctx.breadcrumbData) == null ? void 0 : _b.separator), 1)) : (openBlock(), createBlock(_component_to_icon, {
20970
21011
  key: 1,
20971
- class: "to-breadcrumb-item__separator",
21012
+ class: "to-breadcrumb-item-separator",
20972
21013
  value: (_c = _ctx.breadcrumbData) == null ? void 0 : _c.separatorIcon
20973
21014
  }, null, 8, ["value"]))
20974
21015
  ]);
@@ -22834,7 +22875,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
22834
22875
  props: {
22835
22876
  data: { default: () => [] },
22836
22877
  auto: { type: Boolean, default: false },
22837
- mode: { default: "" }
22878
+ mode: { default: "" },
22879
+ pic: { default: "" }
22838
22880
  },
22839
22881
  emits: ["opened", "closed", "complete"],
22840
22882
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -22855,7 +22897,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
22855
22897
  const setClass = computed(() => {
22856
22898
  let arr = [];
22857
22899
  if (props.mode) {
22858
- arr.push(`to-guider-mode-${props.mode}`);
22900
+ arr.push(`mode-${props.mode}`);
22859
22901
  }
22860
22902
  return arr;
22861
22903
  });
@@ -22894,7 +22936,6 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
22894
22936
  }, 200);
22895
22937
  };
22896
22938
  const init = (during) => {
22897
- var _a2;
22898
22939
  let delay = 0;
22899
22940
  if (during) {
22900
22941
  delay = during;
@@ -22904,25 +22945,17 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
22904
22945
  return;
22905
22946
  const id = currentStep.id;
22906
22947
  el.value = document.getElementById(id);
22907
- if (el.value && el.value.scrollIntoView) {
22908
- el.value.scrollIntoView();
22909
- } else {
22910
- if (step.value < props.data.length - 1) {
22911
- step.value += 1;
22912
- }
22913
- (_a2 = tooltipRef.value) == null ? void 0 : _a2.warning(id + " 元素未找到");
22914
- }
22915
22948
  desc.value = currentStep.desc;
22916
22949
  title.value = currentStep.title || "";
22917
22950
  const innerTimer = setTimeout(() => {
22918
- var _a3, _b, _c;
22951
+ var _a2, _b, _c;
22919
22952
  let left = 0;
22920
22953
  let top = 0;
22921
22954
  if (el.value && el.value.getBoundingClientRect) {
22922
22955
  left = el.value.getBoundingClientRect().left;
22923
22956
  top = el.value.getBoundingClientRect().top;
22924
22957
  }
22925
- const width = ((_a3 = el.value) == null ? void 0 : _a3.offsetWidth) || 0;
22958
+ const width = ((_a2 = el.value) == null ? void 0 : _a2.offsetWidth) || 0;
22926
22959
  const height = ((_b = el.value) == null ? void 0 : _b.offsetHeight) || 0;
22927
22960
  bg0Style.value = {
22928
22961
  width: left + "px"
@@ -22976,7 +23009,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
22976
23009
  };
22977
23010
  __expose({ open: open2, close: close2 });
22978
23011
  return (_ctx, _cache) => {
22979
- const _component_to_gap = resolveComponent("to-gap");
23012
+ const _component_to_pic = resolveComponent("to-pic");
22980
23013
  const _component_to_checkbox = resolveComponent("to-checkbox");
22981
23014
  const _component_to_button = resolveComponent("to-button");
22982
23015
  const _component_to_tooltip = resolveComponent("to-tooltip");
@@ -22985,24 +23018,26 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
22985
23018
  class: normalizeClass(["to-guider", setClass.value])
22986
23019
  }, [
22987
23020
  createElementVNode("div", {
22988
- class: "bg",
23021
+ class: "to-guider-bg",
22989
23022
  style: normalizeStyle(bg0Style.value)
22990
23023
  }, null, 4),
22991
23024
  createElementVNode("div", {
22992
- class: "bg",
23025
+ class: "to-guider-bg",
22993
23026
  style: normalizeStyle(bg1Style.value)
22994
23027
  }, null, 4),
22995
23028
  createElementVNode("div", {
22996
- class: "bg",
23029
+ class: "to-guider-bg",
22997
23030
  style: normalizeStyle(bg2Style.value)
22998
23031
  }, null, 4),
22999
23032
  createElementVNode("div", {
23000
- class: "bg",
23033
+ class: "to-guider-bg",
23001
23034
  style: normalizeStyle(bg3Style.value)
23002
23035
  }, null, 4),
23003
23036
  withDirectives(createVNode(_component_to_tooltip, {
23004
23037
  ref_key: "tooltipRef",
23005
23038
  ref: tooltipRef,
23039
+ class: "to-guider-tip",
23040
+ readonly: false,
23006
23041
  color: "bg",
23007
23042
  shadow: "",
23008
23043
  "close-on-blur": false,
@@ -23010,77 +23045,70 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
23010
23045
  width: "35"
23011
23046
  }, {
23012
23047
  default: withCtx(() => [
23013
- createElementVNode("div", { class: "to-guiderContent" }, [
23014
- createElementVNode("div", { class: "content" }, [
23015
- createElementVNode("div", { class: "title" }, toDisplayString(title.value), 1),
23016
- title.value.length ? (openBlock(), createBlock(_component_to_gap, {
23017
- key: 0,
23018
- type: "line"
23019
- })) : createCommentVNode("", true),
23048
+ props.pic ? (openBlock(), createBlock(_component_to_pic, {
23049
+ key: 0,
23050
+ class: "to-guider-pic",
23051
+ src: props.pic
23052
+ }, null, 8, ["src"])) : createCommentVNode("", true),
23053
+ createElementVNode("div", { class: "to-guider-content" }, [
23054
+ title.value ? (openBlock(), createElementBlock("div", {
23055
+ key: 0,
23056
+ class: "to-guider-title"
23057
+ }, [
23058
+ createElementVNode("div", { class: "to-guider-title-text" }, toDisplayString(title.value), 1)
23059
+ ])) : createCommentVNode("", true),
23060
+ createElementVNode("div", { class: "to-guider-desc" }, [
23020
23061
  createElementVNode("div", {
23021
- class: "desc",
23062
+ class: "to-guider-desc-text",
23022
23063
  innerHTML: desc.value
23023
- }, null, 8, ["innerHTML"]),
23024
- createElementVNode("div", { class: "fn" }, [
23025
- createVNode(_component_to_checkbox, {
23026
- modelValue: isNever.value,
23027
- "onUpdate:modelValue": ($event) => isNever.value = $event,
23028
- label: unref(t)("to.guider.dontShowAgain")
23029
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label"]),
23030
- step.value + 1 === __props.data.length ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
23031
- createVNode(_component_to_button, {
23032
- fillet: "normal",
23033
- color: "primary",
23034
- mode: "line",
23035
- onClick: handleRestart
23036
- }, {
23037
- default: withCtx(() => [
23038
- createTextVNode(toDisplayString(unref(t)("to.guider.restart")), 1)
23039
- ]),
23040
- _: 1
23041
- }),
23042
- createVNode(_component_to_gap, {
23043
- value: 1,
23044
- type: "inline"
23045
- }),
23046
- createVNode(_component_to_button, {
23047
- color: "primary",
23048
- fillet: "normal",
23049
- onClick: handleComplete
23050
- }, {
23051
- default: withCtx(() => [
23052
- createTextVNode(toDisplayString(unref(t)("to.guider.finish")), 1)
23053
- ]),
23054
- _: 1
23055
- })
23056
- ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
23057
- createVNode(_component_to_button, {
23058
- fillet: "normal",
23059
- color: "primary",
23060
- mode: "line",
23061
- onClick: handleClose
23062
- }, {
23063
- default: withCtx(() => [
23064
- createTextVNode(toDisplayString(unref(t)("to.guider.skip")), 1)
23065
- ]),
23066
- _: 1
23067
- }),
23068
- createVNode(_component_to_gap, {
23069
- value: 1,
23070
- type: "inline"
23071
- }),
23072
- createVNode(_component_to_button, {
23073
- fillet: "normal",
23074
- color: "primary",
23075
- onClick: handleNext
23076
- }, {
23077
- default: withCtx(() => [
23078
- createTextVNode(toDisplayString(unref(t)("to.guider.next")), 1)
23079
- ]),
23080
- _: 1
23081
- })
23082
- ], 64))
23083
- ])
23064
+ }, null, 8, ["innerHTML"])
23065
+ ]),
23066
+ createElementVNode("div", { class: "to-guider-fn" }, [
23067
+ createVNode(_component_to_checkbox, {
23068
+ modelValue: isNever.value,
23069
+ "onUpdate:modelValue": ($event) => isNever.value = $event,
23070
+ class: "to-guider-checkbox",
23071
+ label: unref(t)("to.guider.dontShowAgain")
23072
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label"]),
23073
+ step.value + 1 === __props.data.length ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
23074
+ createVNode(_component_to_button, {
23075
+ class: "to-guider-restart",
23076
+ onClick: handleRestart
23077
+ }, {
23078
+ default: withCtx(() => [
23079
+ createTextVNode(toDisplayString(unref(t)("to.guider.restart")), 1)
23080
+ ]),
23081
+ _: 1
23082
+ }),
23083
+ createVNode(_component_to_button, {
23084
+ class: "to-guider-finish",
23085
+ onClick: handleComplete
23086
+ }, {
23087
+ default: withCtx(() => [
23088
+ createTextVNode(toDisplayString(unref(t)("to.guider.finish")), 1)
23089
+ ]),
23090
+ _: 1
23091
+ })
23092
+ ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
23093
+ createVNode(_component_to_button, {
23094
+ class: "to-guider-skip",
23095
+ onClick: handleClose
23096
+ }, {
23097
+ default: withCtx(() => [
23098
+ createTextVNode(toDisplayString(unref(t)("to.guider.skip")), 1)
23099
+ ]),
23100
+ _: 1
23101
+ }),
23102
+ createVNode(_component_to_button, {
23103
+ class: "to-guider-next",
23104
+ onClick: handleNext
23105
+ }, {
23106
+ default: withCtx(() => [
23107
+ createTextVNode(toDisplayString(unref(t)("to.guider.next")), 1)
23108
+ ]),
23109
+ _: 1
23110
+ })
23111
+ ], 64))
23084
23112
  ])
23085
23113
  ])
23086
23114
  ]),
@@ -26438,7 +26466,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
26438
26466
  }
26439
26467
  series.push({
26440
26468
  type: props.chartsType,
26441
- data: props.data.map((item) => item.value),
26469
+ data: props.data,
26442
26470
  barWidth: Number(props.barSize) * currentEm.value,
26443
26471
  itemStyle: getItemStyle(),
26444
26472
  label: getSeriesLabelConfig(),
@@ -27172,17 +27200,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
27172
27200
  }, 200);
27173
27201
  };
27174
27202
  const handleChartClick = (params) => {
27175
- const dataIndex = params.dataIndex;
27176
- const sourceData = props.data[dataIndex];
27177
- const colorArray = isArray(props.color) ? props.color : [];
27178
- const resolvedColor = colorArray.length > 0 ? colorArray[dataIndex % colorArray.length] : props.color;
27179
- const clickedData = {
27180
- name: sourceData.name,
27181
- value: sourceData.value,
27182
- color: resolvedColor,
27183
- index: dataIndex
27184
- };
27185
- emit("item-click", clickedData);
27203
+ emit("item-click", params);
27186
27204
  };
27187
27205
  watch(
27188
27206
  () => props.data,
@@ -27230,8 +27248,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
27230
27248
  };
27231
27249
  }
27232
27250
  });
27233
- const echartsBar_vue_vue_type_style_index_0_scoped_8d27fd48_lang = "";
27234
- const EchartsBar = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-8d27fd48"]]);
27251
+ const echartsBar_vue_vue_type_style_index_0_scoped_520981ab_lang = "";
27252
+ const EchartsBar = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-520981ab"]]);
27235
27253
  const ToEchartsBar = withInstall(EchartsBar);
27236
27254
  const DEFAULT_VIEW_CONTROL = {
27237
27255
  zoomSensitivity: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@touchvue/plugin",
3
- "version": "1.0.0-beta.11",
3
+ "version": "1.0.0-beta.12",
4
4
  "description": "Vue3 Plugin Library",
5
5
  "private": false,
6
6
  "type": "module",
package/style/style.css CHANGED
@@ -1 +1 @@
1
- .mce-container,.mce-container *,.mce-widget,.mce-widget *,.mce-reset{white-space:pre-wrap!important}.to-watermark[data-v-52e4c07e]{position:absolute;inset:0;pointer-events:none}.to-watermark-grid[data-v-52e4c07e]{display:grid;grid-template-columns:repeat(var(--v66af80a3),1fr);grid-template-rows:repeat(var(--v66afb8fd),1fr);width:100%;height:100%;gap:var(--v86b305f8)}.to-watermark-item[data-v-52e4c07e]{display:flex;align-items:center;justify-content:center}.to-watermark-content[data-v-52e4c07e]{pointer-events:none!important;transform-origin:center}.to-step-tree{white-space:nowrap}.to-step-tree-item{display:inline-block;position:relative}.to-step-tree-item:last-child>.to-step-tree-item-arrow{display:none}.to-step-item-line{position:absolute;width:0;top:100%;left:4em;height:4em;border-left:1px dashed #ccc}.to-step-tree-item-children{position:absolute;left:0}.to-step-tree-item-node{padding:.5em;box-sizing:border-box;text-align:center;white-space:normal;display:inline-block;vertical-align:top;width:8em}.to-step-tree-item-arrow{display:inline-block;margin-left:-.5em;margin-right:-.5em;position:relative;vertical-align:top;margin-top:1.5em}.to-step-tree-item-arrow:before{content:"";width:5em;height:1px;display:block;background:#ccc}.to-step-tree-item-arrow:after{position:absolute;right:-.3em;width:0;transform:translateY(-55%);height:0;border:.3em solid #ccc;content:"";border-top-color:#0000;border-bottom-color:#0000;border-right-color:#0000}.to-step-tree-item-arrow .to-step-tree-item-arrow-content{position:absolute;width:100%;left:0;text-align:center;top:0;transform:translateY(-50%)}.to-step-tree-item-arrow .to-step-tree-item-arrow-content-top{position:absolute;width:100%;left:0;text-align:center;bottom:.5em}.to-step-tree-item-arrow .to-step-tree-item-arrow-content-bottom{position:absolute;width:100%;left:0;text-align:center;top:.5em}.to-step-tree-item-icon{text-align:center;font-size:116.67%;padding:.5em;margin:0 auto;width:2em;height:2em;background:#d9d9d9;color:#fff;line-height:1em;font-weight:700;border-radius:50%}.to-step-tree-item-label{margin-top:.5em}.to-step-tree-item-state-current>.to-step-tree-item-node .to-step-tree-item-icon{background:#0085d0}.to-step-tree-item-state-finished>.to-step-tree-item-node .to-step-tree-item-icon{background:#cce099}.to-echarts-pie{position:relative;margin:0 auto;display:inline-flex;align-items:center;overflow:hidden}.to-echarts-pie-legend{flex:1}.to-echarts-pie-pic{position:relative;align-self:center;display:inline-block;overflow:visible}.to-echarts-pie-background{position:absolute;pointer-events:none}.to-echarts-pie-background img{width:100%;height:100%;object-fit:contain}.to-echarts-pie-pic-content{position:relative}.to-echarts-pie-pic-text{pointer-events:none;position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center;width:100%}.to-echarts-pie-pic-value{font-size:2.4em}.to-echarts-pie-pic-label{font-size:1.5em}.to-echarts-pie.has-legend{display:flex;gap:1em;margin:0 auto}.to-echarts-pie.layout-v{flex-direction:column;align-items:inherit;text-align:center}.to-echarts-pie.side-top .to-echarts-pie-pic-text{bottom:0;transform:translate(-50%)}.to-echarts-pie.side-bottom .to-echarts-pie-pic-content{margin-top:-50%}.to-echarts-pie.side-bottom .to-echarts-pie-pic-text{top:0;transform:translate(-50%)}.to-echarts-bar[data-v-8d27fd48]{position:relative}.to-echarts-tooltip,.echarts-tooltip{z-index:3000000!important;pointer-events:none;color:#dcdcdc9f}.to-echarts-map.tip-custom>div:nth-child(2){padding:0!important;border:0 none!important;box-shadow:none!important;background:none!important;font-size:100%!important}.to-echarts-map.tip-custom>div:nth-child(2)>div:nth-child(2){display:none}.to-echarts-radar[data-v-4fad364c]{position:relative}.to-echarts-tooltip,.echarts-tooltip{z-index:3000000!important;pointer-events:none}
1
+ .mce-container,.mce-container *,.mce-widget,.mce-widget *,.mce-reset{white-space:pre-wrap!important}.to-watermark[data-v-52e4c07e]{position:absolute;inset:0;pointer-events:none}.to-watermark-grid[data-v-52e4c07e]{display:grid;grid-template-columns:repeat(var(--v66af80a3),1fr);grid-template-rows:repeat(var(--v66afb8fd),1fr);width:100%;height:100%;gap:var(--v86b305f8)}.to-watermark-item[data-v-52e4c07e]{display:flex;align-items:center;justify-content:center}.to-watermark-content[data-v-52e4c07e]{pointer-events:none!important;transform-origin:center}.to-step-tree{white-space:nowrap}.to-step-tree-item{display:inline-block;position:relative}.to-step-tree-item:last-child>.to-step-tree-item-arrow{display:none}.to-step-item-line{position:absolute;width:0;top:100%;left:4em;height:4em;border-left:1px dashed #ccc}.to-step-tree-item-children{position:absolute;left:0}.to-step-tree-item-node{padding:.5em;box-sizing:border-box;text-align:center;white-space:normal;display:inline-block;vertical-align:top;width:8em}.to-step-tree-item-arrow{display:inline-block;margin-left:-.5em;margin-right:-.5em;position:relative;vertical-align:top;margin-top:1.5em}.to-step-tree-item-arrow:before{content:"";width:5em;height:1px;display:block;background:#ccc}.to-step-tree-item-arrow:after{position:absolute;right:-.3em;width:0;transform:translateY(-55%);height:0;border:.3em solid #ccc;content:"";border-top-color:#0000;border-bottom-color:#0000;border-right-color:#0000}.to-step-tree-item-arrow .to-step-tree-item-arrow-content{position:absolute;width:100%;left:0;text-align:center;top:0;transform:translateY(-50%)}.to-step-tree-item-arrow .to-step-tree-item-arrow-content-top{position:absolute;width:100%;left:0;text-align:center;bottom:.5em}.to-step-tree-item-arrow .to-step-tree-item-arrow-content-bottom{position:absolute;width:100%;left:0;text-align:center;top:.5em}.to-step-tree-item-icon{text-align:center;font-size:116.67%;padding:.5em;margin:0 auto;width:2em;height:2em;background:#d9d9d9;color:#fff;line-height:1em;font-weight:700;border-radius:50%}.to-step-tree-item-label{margin-top:.5em}.to-step-tree-item-state-current>.to-step-tree-item-node .to-step-tree-item-icon{background:#0085d0}.to-step-tree-item-state-finished>.to-step-tree-item-node .to-step-tree-item-icon{background:#cce099}.to-echarts-pie{position:relative;margin:0 auto;display:inline-flex;align-items:center;overflow:hidden}.to-echarts-pie-legend{flex:1}.to-echarts-pie-pic{position:relative;align-self:center;display:inline-block;overflow:visible}.to-echarts-pie-background{position:absolute;pointer-events:none}.to-echarts-pie-background img{width:100%;height:100%;object-fit:contain}.to-echarts-pie-pic-content{position:relative}.to-echarts-pie-pic-text{pointer-events:none;position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center;width:100%}.to-echarts-pie-pic-value{font-size:2.4em}.to-echarts-pie-pic-label{font-size:1.5em}.to-echarts-pie.has-legend{display:flex;gap:1em;margin:0 auto}.to-echarts-pie.layout-v{flex-direction:column;align-items:inherit;text-align:center}.to-echarts-pie.side-top .to-echarts-pie-pic-text{bottom:0;transform:translate(-50%)}.to-echarts-pie.side-bottom .to-echarts-pie-pic-content{margin-top:-50%}.to-echarts-pie.side-bottom .to-echarts-pie-pic-text{top:0;transform:translate(-50%)}.to-echarts-bar[data-v-520981ab]{position:relative}.to-echarts-tooltip,.echarts-tooltip{z-index:3000000!important;pointer-events:none;color:#dcdcdc9f}.to-echarts-map.tip-custom>div:nth-child(2){padding:0!important;border:0 none!important;box-shadow:none!important;background:none!important;font-size:100%!important}.to-echarts-map.tip-custom>div:nth-child(2)>div:nth-child(2){display:none}.to-echarts-radar[data-v-4fad364c]{position:relative}.to-echarts-tooltip,.echarts-tooltip{z-index:3000000!important;pointer-events:none}