增加单位

This commit is contained in:
砂糖
2025-07-21 18:02:26 +08:00
parent 4dc4365d5f
commit dda806f6cd
5 changed files with 99 additions and 18 deletions

View File

@@ -48,7 +48,6 @@ export default {
},
selected(val) {
this.$emit('input', val);
this.$emit('change', val);
}
},
created() {
@@ -61,7 +60,9 @@ export default {
});
},
onChange(val) {
this.$emit('change', val);
// 通过val找到item
const product = this.productOptions.find(p => p.productId === val);
this.$emit('change', product);
}
}
};