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.
- package/auto-complete/index.es.js +18 -4
- package/auto-complete/index.umd.js +10 -10
- package/auto-complete/style.css +1 -1
- package/breadcrumb/style.css +1 -1
- package/button/index.es.js +30 -10
- package/button/index.umd.js +10 -10
- package/button/style.css +1 -1
- package/category-search/index.es.js +50 -12
- package/category-search/index.umd.js +12 -12
- package/category-search/style.css +1 -1
- package/checkbox/index.es.js +22 -9
- package/checkbox/index.umd.js +8 -8
- package/checkbox/style.css +1 -1
- package/code-review/style.css +1 -1
- package/data-grid/index.es.js +45 -12
- package/data-grid/index.umd.js +6 -6
- package/data-grid/style.css +1 -1
- package/date-picker-pro/index.es.js +70 -14
- package/date-picker-pro/index.umd.js +14 -14
- package/date-picker-pro/style.css +1 -1
- package/dropdown/style.css +1 -1
- package/editable-select/index.es.js +83 -205
- package/editable-select/index.umd.js +20 -16
- package/editable-select/style.css +1 -1
- package/editor-md/style.css +1 -1
- package/form/style.css +1 -1
- package/input/index.es.js +6 -1
- package/input/index.umd.js +6 -6
- package/input/style.css +1 -1
- package/input-number/index.es.js +5 -0
- package/input-number/index.umd.js +10 -10
- package/input-number/style.css +1 -1
- package/mention/index.es.js +11 -1
- package/mention/index.umd.js +8 -8
- package/mention/style.css +1 -1
- package/modal/style.css +1 -1
- package/overlay/style.css +1 -1
- package/package.json +1 -1
- package/pagination/index.es.js +28 -10
- package/pagination/index.umd.js +14 -14
- package/pagination/style.css +1 -1
- package/popover/style.css +1 -1
- package/radio/index.es.js +10 -28
- package/radio/index.umd.js +9 -9
- package/radio/style.css +1 -1
- package/search/index.es.js +6 -1
- package/search/index.umd.js +6 -6
- package/search/style.css +1 -1
- package/select/index.es.js +28 -10
- package/select/index.umd.js +15 -15
- package/select/style.css +1 -1
- package/splitter/style.css +1 -1
- package/style.css +2 -2
- package/switch/index.es.js +16 -2
- package/switch/index.umd.js +15 -15
- package/switch/style.css +1 -1
- package/table/index.es.js +46 -13
- package/table/index.umd.js +12 -12
- package/table/style.css +1 -1
- package/textarea/index.es.js +6 -1
- package/textarea/index.umd.js +1 -1
- package/textarea/style.css +1 -1
- package/time-picker/index.es.js +45 -8
- package/time-picker/index.umd.js +9 -9
- package/time-picker/style.css +1 -1
- package/time-select/index.es.js +28 -10
- package/time-select/index.umd.js +8 -8
- package/time-select/style.css +1 -1
- package/tooltip/style.css +1 -1
- package/tree/index.es.js +22 -9
- package/tree/index.umd.js +9 -9
- package/tree/style.css +1 -1
- package/types/auto-complete/src/auto-complete-types.d.ts +4 -0
- package/types/cascader/src/cascader-types.d.ts +4 -0
- package/types/checkbox/src/checkbox-types.d.ts +8 -0
- package/types/date-picker-pro/src/date-picker-pro-types.d.ts +12 -0
- package/types/date-picker-pro/src/range-date-picker-types.d.ts +4 -0
- package/types/editable-select/src/editable-select-types.d.ts +4 -0
- package/types/input/src/input-types.d.ts +4 -0
- package/types/input-icon/src/input-icon.d.ts +9 -0
- package/types/input-number/src/input-number-types.d.ts +4 -0
- package/types/mention/src/mention-types.d.ts +4 -0
- package/types/mention/src/mention.d.ts +9 -0
- package/types/radio/src/radio-types.d.ts +8 -0
- package/types/select/src/select-types.d.ts +4 -0
- package/types/textarea/src/textarea-types.d.ts +4 -0
- package/types/time-picker/src/components/time-scroll/index.d.ts +9 -0
- package/types/time-picker/src/time-picker-types.d.ts +4 -0
- package/vue-devui.es.js +208 -79
- 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)]:
|
|
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("
|
|
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
|
|
10495
|
-
"
|
|
10496
|
-
"
|
|
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("
|
|
10504
|
-
"
|
|
10505
|
-
"
|
|
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
|