Commit ba3a2f1e57227c687220d0f4ef8bdc8cce14402c

Authored by 梁灏
1 parent 23f1a8f2

publish 0.9.13-rc-1

publish 0.9.13-rc-1
Showing 2 changed files with 5 additions and 1 deletions   Show diff stats
1 { 1 {
2 "name": "iview", 2 "name": "iview",
3 - "version": "0.9.12", 3 + "version": "0.9.13-rc-1",
4 "title": "iView", 4 "title": "iView",
5 "description": "A high quality UI components Library with Vue.js", 5 "description": "A high quality UI components Library with Vue.js",
6 "homepage": "http://www.iviewui.com", 6 "homepage": "http://www.iviewui.com",
test/routers/form.vue
@@ -181,6 +181,7 @@ @@ -181,6 +181,7 @@
181 </form-item> 181 </form-item>
182 <form-item> 182 <form-item>
183 <i-button type="primary" @click="onSubmit('form')">提交</i-button> 183 <i-button type="primary" @click="onSubmit('form')">提交</i-button>
  184 + <i-button type="ghost" @click="resetForm('form')">重置</i-button>
184 </form-item> 185 </form-item>
185 </i-form> 186 </i-form>
186 </div> 187 </div>
@@ -387,6 +388,9 @@ @@ -387,6 +388,9 @@
387 } 388 }
388 }); 389 });
389 }, 390 },
  391 + resetForm (formName) {
  392 + this.$refs[formName].resetFields();
  393 + },
390 c (s) { 394 c (s) {
391 console.log(this.form.date) 395 console.log(this.form.date)
392 }, 396 },