vue-devui 1.6.36-alpha.2 → 1.6.37-alpha.0
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/category-search/index.es.js +12 -1
- package/category-search/index.umd.js +11 -11
- package/category-search/style.css +1 -1
- package/input-number/index.es.js +12 -1
- package/input-number/index.umd.js +14 -14
- package/input-number/style.css +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/vue-devui.es.js +13 -2
- package/vue-devui.umd.js +28 -28
package/vue-devui.es.js
CHANGED
|
@@ -15560,9 +15560,11 @@ function DecIcon() {
|
|
|
15560
15560
|
const ns$f = useNamespace$1("input-number");
|
|
15561
15561
|
function useRender$1(props, ctx2) {
|
|
15562
15562
|
const formContext = inject(FORM_TOKEN, void 0);
|
|
15563
|
+
const formItemContext = inject(FORM_ITEM_TOKEN, void 0);
|
|
15563
15564
|
const { style, class: customClass, ...otherAttrs } = ctx2.attrs;
|
|
15564
15565
|
const customStyle = { style };
|
|
15565
15566
|
const inputNumberSize = computed(() => props.size || (formContext == null ? void 0 : formContext.size) || "md");
|
|
15567
|
+
const isValidateError = computed(() => (formItemContext == null ? void 0 : formItemContext.validateState) === "error");
|
|
15566
15568
|
const wrapClass = computed(() => [
|
|
15567
15569
|
{
|
|
15568
15570
|
[ns$f.b()]: true,
|
|
@@ -15573,6 +15575,7 @@ function useRender$1(props, ctx2) {
|
|
|
15573
15575
|
]);
|
|
15574
15576
|
const controlButtonsClass = computed(() => ({
|
|
15575
15577
|
[ns$f.e("control-buttons")]: true,
|
|
15578
|
+
[ns$f.em("control-buttons", "error")]: isValidateError.value,
|
|
15576
15579
|
disabled: props.disabled
|
|
15577
15580
|
}));
|
|
15578
15581
|
const inputWrapClass = computed(() => ({
|
|
@@ -15580,6 +15583,7 @@ function useRender$1(props, ctx2) {
|
|
|
15580
15583
|
}));
|
|
15581
15584
|
const inputInnerClass = computed(() => ({
|
|
15582
15585
|
[ns$f.e("input-box")]: true,
|
|
15586
|
+
[ns$f.em("input-box", "error")]: isValidateError.value,
|
|
15583
15587
|
disabled: props.disabled
|
|
15584
15588
|
}));
|
|
15585
15589
|
return { wrapClass, customStyle, otherAttrs, controlButtonsClass, inputWrapClass, inputInnerClass };
|
|
@@ -15717,6 +15721,7 @@ var InputNumber = defineComponent({
|
|
|
15717
15721
|
props: inputNumberProps,
|
|
15718
15722
|
emits: ["update:modelValue", "change", "input"],
|
|
15719
15723
|
setup(props, ctx2) {
|
|
15724
|
+
const formItemContext = inject(FORM_ITEM_TOKEN, void 0);
|
|
15720
15725
|
const {
|
|
15721
15726
|
disabled
|
|
15722
15727
|
} = toRefs(props);
|
|
@@ -15740,6 +15745,10 @@ var InputNumber = defineComponent({
|
|
|
15740
15745
|
onInput,
|
|
15741
15746
|
onChange
|
|
15742
15747
|
} = useEvent$1(props, ctx2, inputRef);
|
|
15748
|
+
watch(() => props.modelValue, () => {
|
|
15749
|
+
formItemContext == null ? void 0 : formItemContext.validate("change").catch(() => {
|
|
15750
|
+
});
|
|
15751
|
+
});
|
|
15743
15752
|
return () => createVNode("div", mergeProps({
|
|
15744
15753
|
"class": wrapClass.value
|
|
15745
15754
|
}, customStyle), [createVNode("div", {
|
|
@@ -15764,7 +15773,9 @@ var InputNumber = defineComponent({
|
|
|
15764
15773
|
"class": inputInnerClass.value
|
|
15765
15774
|
}, otherAttrs, {
|
|
15766
15775
|
"onInput": onInput,
|
|
15767
|
-
"onChange": onChange
|
|
15776
|
+
"onChange": onChange,
|
|
15777
|
+
"onBlur": () => formItemContext == null ? void 0 : formItemContext.validate("blur").catch(() => {
|
|
15778
|
+
})
|
|
15768
15779
|
}), null)])]);
|
|
15769
15780
|
}
|
|
15770
15781
|
});
|
|
@@ -54904,7 +54915,7 @@ const installs = [
|
|
|
54904
54915
|
VirtualListInstall
|
|
54905
54916
|
];
|
|
54906
54917
|
var vueDevui = {
|
|
54907
|
-
version: "1.6.
|
|
54918
|
+
version: "1.6.36",
|
|
54908
54919
|
install(app) {
|
|
54909
54920
|
installs.forEach((p) => app.use(p));
|
|
54910
54921
|
}
|