代客下单页面修改,增加店铺配置页面
This commit is contained in:
@@ -93,8 +93,9 @@ const props = defineProps({
|
||||
},
|
||||
});
|
||||
|
||||
let number = ref(0);
|
||||
|
||||
const number = defineModel({
|
||||
default: 0,
|
||||
});
|
||||
watch(
|
||||
() => props.value,
|
||||
(newval) => {
|
||||
@@ -102,12 +103,6 @@ watch(
|
||||
}
|
||||
);
|
||||
const emits = defineEmits(["input", "confirm"]);
|
||||
watch(
|
||||
() => number.value,
|
||||
(newval) => {
|
||||
emits("input", newval);
|
||||
}
|
||||
);
|
||||
|
||||
function clearFunction() {
|
||||
if (props.isFloat) {
|
||||
@@ -127,6 +122,7 @@ function keyboradAdd(n) {
|
||||
if (newval * 1 > props.max * 1) {
|
||||
return ElMessage.error(this.maxTips);
|
||||
}
|
||||
console.log(number.value);
|
||||
number.value = newval;
|
||||
}
|
||||
function keyboradReduce() {
|
||||
|
||||
Reference in New Issue
Block a user