在我的父组件中,我有一个简单的输入
<input v-model="value" />
export default class ParentComponent extends Vue {
value = "" as string;
async check() {
try {
console.log(this.value) // this works, this get the actual value of the input
…
}
}
现在我想用这个输入创建一个子组件,所以我尝试:
<tem
Vue JS2的后续版本抱怨在按钮上使用v-model。它显示错误: <button v-model="settings.primary_color">: v-model is not supported on this element type. If you are working with contenteditable, it's recommended to wrap a library dedicated for that purpose inside a custom component. 这是我的按钮: <button type=