WIP: add basic features
This commit is contained in:
14
src/shared/mixins/v-model.js
Normal file
14
src/shared/mixins/v-model.js
Normal file
@@ -0,0 +1,14 @@
|
||||
export const v_model = {
|
||||
props: ["modelValue"],
|
||||
emits: ["update:modelValue"],
|
||||
computed: {
|
||||
value: {
|
||||
get() {
|
||||
return this.modelValue;
|
||||
},
|
||||
set(val) {
|
||||
this.$emit("update:modelValue", val);
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user