请输入代码
----------
//定义模块
var label=Vue.extend({
props:{
label:''
},
template:''
});
var input=Vue.extend({
template:''
});
var button=Vue.extend({
// props:['idName','checkText'],
props:{
id:'',
label:''
},
template:''
});
Vue.component('control-label',label);
Vue.component('ui-input',input);
Vue.component('ui-button',button);
var form=new Vue({
el:'body',
data: {
msg:'',
times:0,
addInputs:{modal:''}
},
methods: {
addInput:function(){
this.times++;
console.log(this.times);
// this.click=true; //if条件判断,true显示
}
}
})