1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-57a552c4"],{"2c87":function(t,e,s){},"52be":function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"miss-wraper"},[e("div",{staticClass:"row"},[e("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:t.add}},[t._v("添加标准")])],1),e("a-row",{attrs:{gutter:24}},t._l(t.specs,(function(s,a){return e("a-col",{key:a,staticClass:"item",attrs:{span:11}},[e("a-input",{attrs:{"addon-before":"标准:"},model:{value:s.key,callback:function(e){t.$set(s,"key",e)},expression:"item.key"}}),e("a-input",{attrs:{"addon-before":"参考:"},model:{value:s.val,callback:function(e){t.$set(s,"val",e)},expression:"item.val"}}),e("a-icon",{staticClass:"close",attrs:{type:"close"},on:{click:function(e){return t.delItem(a)}}})],1)})),1)],1)},n=[],c={props:{value:{type:Array,default:function(){return[]},required:!1}},watch:{value:function(t){t&&t instanceof Array&&(this.specs=t)}},data:function(){return{specs:[{key:"任务时长",val:"30分钟"}]}},methods:{add:function(){this.specs.push({key:"任务时长",val:"30分钟"}),this.$emit("change",this.specs)},delItem:function(t){this.specs.splice(t,1),this.$emit("change",this.specs)}}},i=c,r=(s("a716"),s("2877")),o=Object(r["a"])(i,a,n,!1,null,"13bee551",null);e["default"]=o.exports},a716:function(t,e,s){"use strict";s("2c87")}}]);
|