vue-devui 1.6.4 → 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 +19 -6
- package/auto-complete/index.umd.js +10 -10
- package/auto-complete/style.css +1 -1
- package/breadcrumb/index.es.js +2 -15
- package/breadcrumb/index.umd.js +1 -1
- package/breadcrumb/style.css +1 -1
- package/button/index.es.js +31 -12
- package/button/index.umd.js +10 -10
- package/button/style.css +1 -1
- package/carousel/index.es.js +36 -213
- package/carousel/index.umd.js +1 -1
- package/carousel/style.css +1 -1
- package/category-search/index.es.js +53 -29
- 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/collapse/index.es.js +15 -18
- package/collapse/index.umd.js +5 -5
- package/data-grid/index.es.js +48 -29
- package/data-grid/index.umd.js +6 -6
- package/data-grid/style.css +1 -1
- package/date-picker-pro/index.es.js +91 -20
- package/date-picker-pro/index.umd.js +16 -16
- package/date-picker-pro/style.css +1 -1
- package/dropdown/index.es.js +2 -15
- package/dropdown/index.umd.js +1 -1
- package/dropdown/style.css +1 -1
- package/editable-select/index.es.js +84 -207
- package/editable-select/index.umd.js +20 -16
- package/editable-select/style.css +1 -1
- package/editor-md/index.es.js +32 -18
- package/editor-md/index.umd.js +15 -15
- package/editor-md/style.css +1 -1
- package/form/style.css +1 -1
- package/icon/index.es.js +1 -2
- package/icon/index.umd.js +1 -1
- package/input/index.es.js +27 -7
- package/input/index.umd.js +11 -11
- 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 +12 -3
- package/mention/index.umd.js +8 -8
- package/mention/style.css +1 -1
- package/message/index.es.js +1 -2
- package/message/index.umd.js +1 -1
- package/modal/index.es.js +27 -4
- package/modal/index.umd.js +7 -1
- package/modal/style.css +1 -1
- package/notification/index.es.js +1 -2
- package/notification/index.umd.js +2 -2
- package/overlay/style.css +1 -1
- package/package.json +1 -1
- package/pagination/index.es.js +83 -263
- package/pagination/index.umd.js +14 -19
- 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/result/index.es.js +1 -2
- package/result/index.umd.js +1 -1
- package/search/index.es.js +54 -28
- package/search/index.umd.js +18 -14
- package/search/style.css +1 -1
- package/select/index.es.js +71 -52
- package/select/index.umd.js +18 -23
- package/select/style.css +1 -1
- package/splitter/style.css +1 -1
- package/steps/index.es.js +1 -2
- package/steps/index.umd.js +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 +49 -30
- 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 +66 -14
- package/time-picker/index.umd.js +16 -16
- package/time-picker/style.css +1 -1
- package/time-select/index.es.js +71 -52
- package/time-select/index.umd.js +12 -17
- package/time-select/style.css +1 -1
- package/timeline/index.es.js +1 -2
- package/timeline/index.umd.js +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/carousel/src/components/carousel-icons.d.ts +2 -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/dropdown/src/use-dropdown.d.ts +1 -1
- package/types/editable-select/src/editable-select-types.d.ts +4 -0
- package/types/editor-md/src/composables/use-editor-md.d.ts +1 -0
- package/types/editor-md/src/editor-md-types.d.ts +3 -0
- package/types/icon/src/icon-types.d.ts +0 -1
- 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/modal/src/components/modal-icons.d.ts +1 -0
- package/types/radio/src/radio-types.d.ts +8 -0
- package/types/select/src/select-types.d.ts +4 -0
- package/types/svg-icons/index.d.ts +3 -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/upload/index.es.js +1 -2
- package/upload/index.umd.js +2 -2
- package/vue-devui.es.js +393 -174
- package/vue-devui.umd.js +93 -82
- package/types/search/src/components/search-close-icon.d.ts +0 -2
- package/types/search/src/components/search-icon.d.ts +0 -2
- package/types/select/src/components/select-arrow-icon.d.ts +0 -2
package/switch/index.es.js
CHANGED
|
@@ -7917,6 +7917,8 @@ var Switch = defineComponent({
|
|
|
7917
7917
|
switchDisabled,
|
|
7918
7918
|
switchSize
|
|
7919
7919
|
} = useSwitch(props, ctx);
|
|
7920
|
+
const AnimationNumberDurationSlow = 300;
|
|
7921
|
+
const isMousedown = ref(false);
|
|
7920
7922
|
return () => {
|
|
7921
7923
|
const switchCls = {
|
|
7922
7924
|
[ns2.b()]: true,
|
|
@@ -7930,17 +7932,29 @@ var Switch = defineComponent({
|
|
|
7930
7932
|
const switchWrapperStyle = [`background: ${checked.value && !switchDisabled.value ? props.color : ""}`, `border-color: ${checked.value && !switchDisabled.value ? props.color : ""}`];
|
|
7931
7933
|
const checkedContent = renderSlot(useSlots(), "checkedContent");
|
|
7932
7934
|
const uncheckedContent = renderSlot(useSlots(), "uncheckedContent");
|
|
7935
|
+
const onMousedown = () => {
|
|
7936
|
+
isMousedown.value = true;
|
|
7937
|
+
};
|
|
7938
|
+
const onMouseup = () => {
|
|
7939
|
+
setTimeout(() => {
|
|
7940
|
+
isMousedown.value = false;
|
|
7941
|
+
}, AnimationNumberDurationSlow / 2);
|
|
7942
|
+
};
|
|
7933
7943
|
return createVNode("div", {
|
|
7934
7944
|
"class": switchCls
|
|
7935
7945
|
}, [createVNode("span", {
|
|
7936
7946
|
"class": switchWrapperCls,
|
|
7937
7947
|
"style": switchWrapperStyle,
|
|
7938
|
-
"onClick": toggle
|
|
7948
|
+
"onClick": toggle,
|
|
7949
|
+
"onMousedown": onMousedown,
|
|
7950
|
+
"onMouseup": onMouseup
|
|
7939
7951
|
}, [createVNode("span", {
|
|
7940
7952
|
"class": ns2.e("inner-wrapper")
|
|
7941
7953
|
}, [createVNode("div", {
|
|
7942
7954
|
"class": ns2.e("inner")
|
|
7943
|
-
}, [checked.value ? checkedContent : uncheckedContent])]), createVNode("small",
|
|
7955
|
+
}, [checked.value ? checkedContent : uncheckedContent])]), createVNode("small", {
|
|
7956
|
+
"class": isMousedown.value && !props.disabled && "mouseDown"
|
|
7957
|
+
}, null)])]);
|
|
7944
7958
|
};
|
|
7945
7959
|
}
|
|
7946
7960
|
});
|