更新count-modify组件

This commit is contained in:
TOP糯米 2023-02-16 22:40:06 +08:00
parent 236d106d34
commit 5053a0f8df
1 changed files with 2 additions and 6 deletions

View File

@ -23,10 +23,6 @@ export default {
type: Number,
default: 0,
},
data: {
type: Object,
default: () => {},
},
},
components: {},
created() {
@ -41,11 +37,11 @@ export default {
} else {
this.number = 0;
}
this.$emit("onSub", this.data, this.number);
this.$emit("onSub", this.number);
},
add() {
this.number++;
this.$emit("onAdd", this.data, this.number);
this.$emit("onAdd", this.number);
},
},
};