@1337exp/taoui 1.10.4 → 1.11.1

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/dist/index.cjs CHANGED
@@ -1684,7 +1684,7 @@
1684
1684
  return vue.openBlock(), vue.createElementBlock("span", {
1685
1685
  ref_key: "triggerRef",
1686
1686
  ref: triggerRef,
1687
- class: "tao-copy"
1687
+ class: vue.normalizeClass(["tao-copy", { "tao-copy--button": !_ctx.$slots.default }])
1688
1688
  }, [
1689
1689
  vue.renderSlot(_ctx.$slots, "default", {
1690
1690
  copy,
@@ -1732,11 +1732,11 @@
1732
1732
  style: vue.normalizeStyle(tipStyle.value)
1733
1733
  }, vue.toDisplayString(__props.successMessage), 5)) : vue.createCommentVNode("", true)
1734
1734
  ]))
1735
- ], 512);
1735
+ ], 2);
1736
1736
  };
1737
1737
  }
1738
1738
  });
1739
- const TaoCopy = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-38d3381d"]]);
1739
+ const TaoCopy = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-907e0264"]]);
1740
1740
  const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
1741
1741
  ...{ name: "TaoContainer" },
1742
1742
  __name: "TaoContainer",
@@ -2417,7 +2417,7 @@
2417
2417
  };
2418
2418
  }
2419
2419
  });
2420
- const TaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-f6b0e565"]]);
2420
+ const TaoCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-bb1ea2fb"]]);
2421
2421
  const _hoisted_1$z = {
2422
2422
  key: 0,
2423
2423
  class: "tao-tag__prefix"
@@ -2967,7 +2967,8 @@
2967
2967
  placeholder: { default: "" },
2968
2968
  modelValue: {},
2969
2969
  disabled: { type: Boolean, default: false },
2970
- size: { default: "medium" }
2970
+ size: { default: "medium" },
2971
+ wheel: { default: 0 }
2971
2972
  },
2972
2973
  emits: ["update:modelValue"],
2973
2974
  setup(__props, { emit: __emit }) {
@@ -3094,6 +3095,14 @@
3094
3095
  commit(props.max);
3095
3096
  }
3096
3097
  }
3098
+ function onWheel(event) {
3099
+ if (props.disabled || props.wheel <= 0 || showShadowModel.value) {
3100
+ return;
3101
+ }
3102
+ event.preventDefault();
3103
+ const delta = event.deltaY < 0 ? props.wheel : -props.wheel;
3104
+ commit(current.value + delta);
3105
+ }
3097
3106
  function onBlurShadowModel() {
3098
3107
  if (shadowModel.value) {
3099
3108
  const newValue = packModelValue(clampValue(parseFloat(shadowModel.value) || 0));
@@ -3149,7 +3158,8 @@
3149
3158
  onPointerup: onPointerEnd,
3150
3159
  onPointercancel: onPointerEnd,
3151
3160
  onLostpointercapture: onLostPointerCapture,
3152
- onKeydown
3161
+ onKeydown,
3162
+ onWheel
3153
3163
  }, [
3154
3164
  _cache[2] || (_cache[2] = vue.createElementVNode("div", { class: "tao-slider__track" }, null, -1)),
3155
3165
  vue.createElementVNode("div", {
@@ -3184,7 +3194,7 @@
3184
3194
  };
3185
3195
  }
3186
3196
  });
3187
- const TaoSlider = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-24a38782"]]);
3197
+ const TaoSlider = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-a0a9cca1"]]);
3188
3198
  const _hoisted_1$s = { class: "tao-file-drop" };
3189
3199
  const _hoisted_2$p = { class: "tao-file-drop__row" };
3190
3200
  const _hoisted_3$k = ["aria-label"];