vue-devui 1.6.5 → 1.6.6

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.
Files changed (90) hide show
  1. package/auto-complete/index.es.js +18 -4
  2. package/auto-complete/index.umd.js +10 -10
  3. package/auto-complete/style.css +1 -1
  4. package/breadcrumb/style.css +1 -1
  5. package/button/index.es.js +30 -10
  6. package/button/index.umd.js +10 -10
  7. package/button/style.css +1 -1
  8. package/category-search/index.es.js +50 -12
  9. package/category-search/index.umd.js +12 -12
  10. package/category-search/style.css +1 -1
  11. package/checkbox/index.es.js +22 -9
  12. package/checkbox/index.umd.js +8 -8
  13. package/checkbox/style.css +1 -1
  14. package/code-review/style.css +1 -1
  15. package/data-grid/index.es.js +45 -12
  16. package/data-grid/index.umd.js +6 -6
  17. package/data-grid/style.css +1 -1
  18. package/date-picker-pro/index.es.js +70 -14
  19. package/date-picker-pro/index.umd.js +14 -14
  20. package/date-picker-pro/style.css +1 -1
  21. package/dropdown/style.css +1 -1
  22. package/editable-select/index.es.js +83 -205
  23. package/editable-select/index.umd.js +20 -16
  24. package/editable-select/style.css +1 -1
  25. package/editor-md/style.css +1 -1
  26. package/form/style.css +1 -1
  27. package/input/index.es.js +6 -1
  28. package/input/index.umd.js +6 -6
  29. package/input/style.css +1 -1
  30. package/input-number/index.es.js +5 -0
  31. package/input-number/index.umd.js +10 -10
  32. package/input-number/style.css +1 -1
  33. package/mention/index.es.js +11 -1
  34. package/mention/index.umd.js +8 -8
  35. package/mention/style.css +1 -1
  36. package/modal/style.css +1 -1
  37. package/overlay/style.css +1 -1
  38. package/package.json +1 -1
  39. package/pagination/index.es.js +28 -10
  40. package/pagination/index.umd.js +14 -14
  41. package/pagination/style.css +1 -1
  42. package/popover/style.css +1 -1
  43. package/radio/index.es.js +10 -28
  44. package/radio/index.umd.js +9 -9
  45. package/radio/style.css +1 -1
  46. package/search/index.es.js +6 -1
  47. package/search/index.umd.js +6 -6
  48. package/search/style.css +1 -1
  49. package/select/index.es.js +28 -10
  50. package/select/index.umd.js +15 -15
  51. package/select/style.css +1 -1
  52. package/splitter/style.css +1 -1
  53. package/style.css +2 -2
  54. package/switch/index.es.js +16 -2
  55. package/switch/index.umd.js +15 -15
  56. package/switch/style.css +1 -1
  57. package/table/index.es.js +46 -13
  58. package/table/index.umd.js +12 -12
  59. package/table/style.css +1 -1
  60. package/textarea/index.es.js +6 -1
  61. package/textarea/index.umd.js +1 -1
  62. package/textarea/style.css +1 -1
  63. package/time-picker/index.es.js +45 -8
  64. package/time-picker/index.umd.js +9 -9
  65. package/time-picker/style.css +1 -1
  66. package/time-select/index.es.js +28 -10
  67. package/time-select/index.umd.js +8 -8
  68. package/time-select/style.css +1 -1
  69. package/tooltip/style.css +1 -1
  70. package/tree/index.es.js +22 -9
  71. package/tree/index.umd.js +9 -9
  72. package/tree/style.css +1 -1
  73. package/types/auto-complete/src/auto-complete-types.d.ts +4 -0
  74. package/types/cascader/src/cascader-types.d.ts +4 -0
  75. package/types/checkbox/src/checkbox-types.d.ts +8 -0
  76. package/types/date-picker-pro/src/date-picker-pro-types.d.ts +12 -0
  77. package/types/date-picker-pro/src/range-date-picker-types.d.ts +4 -0
  78. package/types/editable-select/src/editable-select-types.d.ts +4 -0
  79. package/types/input/src/input-types.d.ts +4 -0
  80. package/types/input-icon/src/input-icon.d.ts +9 -0
  81. package/types/input-number/src/input-number-types.d.ts +4 -0
  82. package/types/mention/src/mention-types.d.ts +4 -0
  83. package/types/mention/src/mention.d.ts +9 -0
  84. package/types/radio/src/radio-types.d.ts +8 -0
  85. package/types/select/src/select-types.d.ts +4 -0
  86. package/types/textarea/src/textarea-types.d.ts +4 -0
  87. package/types/time-picker/src/components/time-scroll/index.d.ts +9 -0
  88. package/types/time-picker/src/time-picker-types.d.ts +4 -0
  89. package/vue-devui.es.js +208 -79
  90. package/vue-devui.umd.js +52 -52
@@ -2715,6 +2715,10 @@ const commonProps = {
2715
2715
  size: {
2716
2716
  type: String,
2717
2717
  default: "md"
2718
+ },
2719
+ showGlowStyle: {
2720
+ type: Boolean,
2721
+ default: true
2718
2722
  }
2719
2723
  };
2720
2724
  const checkboxProps = __spreadProps(__spreadValues({}, commonProps), {
@@ -10440,7 +10444,10 @@ var Checkbox = defineComponent({
10440
10444
  active: mergedChecked.value,
10441
10445
  "half-checked": props.halfChecked,
10442
10446
  disabled: mergedDisabled.value,
10443
- unchecked: !mergedChecked.value
10447
+ unchecked: !mergedChecked.value,
10448
+ [ns2.m("glow-style")]: props.showGlowStyle,
10449
+ [ns2.m(`checkbox-${size.value}`)]: border.value,
10450
+ [ns2.m("checkbox-bordered")]: border.value
10444
10451
  };
10445
10452
  const labelTitle = mergedIsShowTitle.value ? props.title || props.label : "";
10446
10453
  const bgImgStyle = mergedColor.value && props.halfChecked || mergedColor.value ? `linear-gradient(${mergedColor.value}, ${mergedColor.value})` : "";
@@ -10457,7 +10464,7 @@ var Checkbox = defineComponent({
10457
10464
  [ns2.m("no-animation")]: !mergedShowAnimation.value
10458
10465
  };
10459
10466
  const labelCls = {
10460
- [ns2.m(size.value)]: size.value,
10467
+ [ns2.m(size.value)]: border.value,
10461
10468
  [ns2.m("bordered")]: border.value
10462
10469
  };
10463
10470
  const stopPropagation = ($event) => $event.stopPropagation();
@@ -10469,7 +10476,11 @@ var Checkbox = defineComponent({
10469
10476
  "style": wrapperStyle.value
10470
10477
  }, [createVNode("div", {
10471
10478
  "class": checkboxCls
10472
- }, [createVNode("label", {
10479
+ }, [props.showGlowStyle && mergedShowAnimation.value && createVNode("div", {
10480
+ "class": ns2.e("glow-box")
10481
+ }, [createVNode("span", {
10482
+ "class": "glow-bg"
10483
+ }, null)]), createVNode("label", {
10473
10484
  "title": labelTitle,
10474
10485
  "onClick": handleClick,
10475
10486
  "class": labelCls,
@@ -10491,18 +10502,20 @@ var Checkbox = defineComponent({
10491
10502
  }, [createVNode("span", {
10492
10503
  "class": ns2.e("halfchecked-bg")
10493
10504
  }, null), createVNode("svg", {
10494
- "viewBox": "0 0 16 16",
10495
- "version": "1.1",
10496
- "xmlns": "http://www.w3.org/2000/svg",
10505
+ "viewBox": "0 0 14 14",
10506
+ "width": "14",
10507
+ "height": "14",
10497
10508
  "class": ns2.e("tick-wrap")
10498
10509
  }, [createVNode("g", {
10499
10510
  "stroke": "none",
10500
10511
  "stroke-width": "1",
10501
10512
  "fill": "none",
10502
10513
  "fill-rule": "evenodd"
10503
- }, [createVNode("polygon", {
10504
- "fill-rule": "nonzero",
10505
- "points": "5.17391304 6.56521739 7.7173913 9.10869565 11.826087 5 13 6.17391304 7.7173913 11.4565217 4 7.73913043",
10514
+ }, [createVNode("path", {
10515
+ "d": "M 2.3 7.0 5.6 9.6 11.4 3.5",
10516
+ "stroke": "#fff",
10517
+ "stroke-width": "1.5",
10518
+ "fill": "none",
10506
10519
  "class": polygonCls
10507
10520
  }, null)])])]), createVNode("span", {
10508
10521
  "class": ns2.e("label-text")
@@ -11088,19 +11101,36 @@ var Button = defineComponent({
11088
11101
  classes,
11089
11102
  iconClass
11090
11103
  } = useButton(props, ctx);
11104
+ const isMouseDown = ref(false);
11105
+ const showWave = ref(false);
11106
+ const waveStyle = reactive({
11107
+ top: "0px",
11108
+ left: "0px"
11109
+ });
11110
+ const showClickWave = (e) => {
11111
+ waveStyle.left = e.offsetX + "px";
11112
+ waveStyle.top = e.offsetY + "px";
11113
+ showWave.value = true;
11114
+ setTimeout(() => {
11115
+ showWave.value = false;
11116
+ }, 300);
11117
+ };
11091
11118
  const onClick = (e) => {
11092
11119
  if (loading2.value) {
11093
11120
  return;
11094
11121
  }
11122
+ showClickWave(e);
11095
11123
  ctx.emit("click", e);
11096
11124
  };
11097
11125
  return () => {
11098
11126
  var _a, _b;
11099
11127
  return createVNode("button", {
11100
- "class": classes.value,
11128
+ "class": [classes.value, isMouseDown.value ? "mousedown" : ""],
11101
11129
  "disabled": disabled.value,
11102
11130
  "onClick": onClick,
11103
- "type": nativeType.value
11131
+ "type": nativeType.value,
11132
+ "onMousedown": () => isMouseDown.value = true,
11133
+ "onMouseup": () => isMouseDown.value = false
11104
11134
  }, [icon2.value && createVNode(Icon, {
11105
11135
  "name": icon2.value,
11106
11136
  "size": "var(--devui-font-size, 12px)",
@@ -11114,7 +11144,10 @@ var Button = defineComponent({
11114
11144
  "color": "#BBDEFB"
11115
11145
  }, null)]), [[vShow, loading2.value]]), createVNode("span", {
11116
11146
  "class": "button-content"
11117
- }, [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)])]);
11147
+ }, [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)]), showWave.value && createVNode("div", {
11148
+ "class": "water-wave",
11149
+ "style": waveStyle
11150
+ }, null)]);
11118
11151
  };
11119
11152
  }
11120
11153
  });
@@ -11339,6 +11372,10 @@ const inputNumberProps = {
11339
11372
  reg: {
11340
11373
  type: [RegExp, String],
11341
11374
  default: ""
11375
+ },
11376
+ showGlowStyle: {
11377
+ type: Boolean,
11378
+ default: true
11342
11379
  }
11343
11380
  };
11344
11381
  const ns$1 = useNamespace$1("input-number");
@@ -11393,6 +11430,7 @@ function useRender(props, ctx) {
11393
11430
  const wrapClass = computed(() => [
11394
11431
  {
11395
11432
  [ns.b()]: true,
11433
+ [ns.m("glow-style")]: props.showGlowStyle,
11396
11434
  [ns.m(inputNumberSize.value)]: true
11397
11435
  },
11398
11436
  customClass