-
Notifications
You must be signed in to change notification settings - Fork 0
/
1.bundle.js
executable file
·57 lines (47 loc) · 2.08 KB
/
1.bundle.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
webpackJsonp([1],{
/***/ 13:
/*!**************************!*\
!*** ./js/views/form.js ***!
\**************************/
/***/ function(module, exports, __webpack_require__) {
var Form = Vue.extend({
template: __webpack_require__(/*! ../template/form.html */ 14),
data: function (transition) {
return {
cities: [{
id: 1,
name: '上海'
}, {
id: 2,
name: '北京'
}]
}
},
computed: {
},
methods: {
submit: function() {
this.$refs.myform.getValue();
}
},
route: {
activate: function (transition) {
transition.next()
},
deactivate: function (transition) {
console.log('hook-example deactivated!')
transition.next()
}
}
});
module.exports = Form;
/***/ },
/***/ 14:
/*!*******************************!*\
!*** ./js/template/form.html ***!
\*******************************/
/***/ function(module, exports) {
module.exports = "<form is=\"vform\" v-ref:myform>\n <div class=\"form-group\">\n <label for=\"age\">下拉框</label>\n <combo v-ref:city name=\"city\" url=\"./data/city.json\"></combo>\n </div>\n <div class=\"form-group\">\n <label for=\"age\">年龄</label>\n <input type=\"text\" class=\"form-control\" id=\"age\" placeholder=\"年龄\" v-model=\"form.age\">\n </div>\n <div class=\"form-group\">\n <label for=\"name\">姓名</label>\n <input type=\"text\" class=\"form-control\" id=\"name\" placeholder=\"姓名\" v-model=\"form.name\">\n </div>\n <div class=\"form-group\">\n <label for=\"city\">城市</label>\n <select name=\"city\" v-model=\"city\" class=\"form-control\">\n <option v-for=\"option in cities\" v-bind:value=\"option.id\">\n {{ option.name }}\n </option>\n </select>\n </div>\n <button type=\"button\" class=\"btn btn-default\" v-on:click=\"submit\">提交</button>\n</form>\n";
/***/ }
});
//# sourceMappingURL=1.bundle.js.map