用vue实现点击编辑按钮将li变为可以输入文本的input



export default{
    data(){
        flag:true
    },
    methods:{
        edit(){
               this.flag=false;
        },
        input(){
           this.flag=true;
        },
    }

}

 

转载于:https://www.cnblogs.com/Harold-Hua/p/9638064.html

你可能感兴趣的:(用vue实现点击编辑按钮将li变为可以输入文本的input)