更新count-modify组件
This commit is contained in:
parent
236d106d34
commit
5053a0f8df
|
@ -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);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue