Commit Graph

78 Commits

Author SHA1 Message Date
杨奕
d9bcaacc74
Form: add validate event (#10351) 2018-03-25 22:32:22 +08:00
杨奕
cf7f117bfb
Form: add invalidFields as a second param of validation callback (#10279) 2018-03-21 13:36:29 +08:00
杨奕
a294c628e9
Form: rule key supports both dot-separated and nested (#10227) 2018-03-19 11:10:06 +08:00
杨奕
b60c2cac8c
Form: make filter conditions for getFilteredRule clearer (#10181) 2018-03-15 12:28:15 +08:00
Harlan
d73ec07d07 Form: fix validation skipping rules whose trigger is an array (#10178) 2018-03-15 12:14:20 +08:00
Harlan
b24a9ce729 TimeSelect: fix resetField not working when user inputs an invalid value (#10176) 2018-03-15 11:54:02 +08:00
杨奕
f234b161df
Select: trigger validation after resetField (#10105) 2018-03-10 20:20:48 +08:00
阿林
ad07722aab Chore: replace var with let and const (#9774) 2018-02-11 16:37:58 +08:00
Leopoldthecoder
56dc51bc85 Form: add disabled 2018-01-29 18:14:58 +08:00
badpunman
c1fbffe051 Form: add validateOnRuleChange (#8141) 2018-01-29 15:41:53 +08:00
Leopoldthecoder
4392a036d1 Form: fix support for dot-separated rule key 2017-12-19 10:33:27 +08:00
Leopoldthecoder
81ff11ad41 Form: fix initial error message 2017-12-16 21:23:05 +08:00
Leopoldthecoder
0fb05a35b3 Changelog: update for 2.0.8 2017-12-12 16:54:17 +08:00
Leopoldthecoder
53fa204128 Form: fix blur validation 2017-12-12 14:05:55 +08:00
Leopoldthecoder
ffc310d98d Form: support nested rules 2017-12-11 19:02:32 +08:00
Leopoldthecoder
8f623b4cc4 Form: required rule shouldn't care about model type 2017-11-20 22:29:01 +08:00
Leopoldthecoder
409a3c852f Form: fix validate state 2017-10-30 04:03:19 -05:00
Allenice
468124f956 Form: fix async validate bug 2017-10-30 01:51:14 -05:00
Allenice
476d1c4f6e Form: fix async validate bug 2017-10-30 01:51:14 -05:00
Leopoldthecoder
00e8c7454f misc updates and fixes 2017-10-25 22:21:35 -05:00
Cyril Su
25e8503d65 Carbon: Table add features and fix bugs (#7682)
* Table: Fix error in calculate `totalFlexWidth`

* Table: Fix error in caculate `scrollX`

* Table: Watch `max-height` change

* Table: Change `toggleRowExpanded`

* Table: Support `obj[key]`

* Table: Update docs for `toggleRowExpanded`

* Table: Add style and class control for every row and cell

* Table: Add `migrating` mixin for `expand`

* Table: Update test spec

* Table: Add `index` in `table-column` for custom index
2017-10-25 02:35:12 -05:00
杨奕
36dfe304f3 Form: add clearValidate (#7623)
* Form: add clearValidate

* remove dup attrs
2017-10-21 23:35:42 -05:00
baiyaaaaa
c3cf3f2389 support prop 'for' (#6049) 2017-10-21 22:00:06 -05:00
Leopoldthecoder
f0b7debd23 Merge remote-tracking branch 'eleme/dev' into carbon
# Conflicts:
#	CHANGELOG.en-US.md
#	CHANGELOG.zh-CN.md
#	examples/app.vue
#	examples/docs/en-US/switch.md
#	examples/docs/zh-CN/switch.md
#	examples/versions.json
#	package.json
#	packages/switch/src/component.vue
#	packages/theme-default/package.json
#	packages/theme-default/src/common/var.css
#	packages/theme-default/src/switch.css
#	src/index.js
2017-10-16 18:33:41 +08:00
杨奕
38459ae850 update dependencies (#7476)
* update el-input change event

* upgrade to vue 2.5.0

* upgrade webpack to 3.7

* upgrade vue to 2.5.2

* minor style updates
2017-10-16 14:07:24 +08:00
Black Wayne
9b09f6aa9f Form: add size attribute (#7428) 2017-10-12 04:50:06 -05:00
Black Wayne
5426c957a2 add upload limit & form validate return promise (#7405)
* Carbon: upload limit & input append & form validate promise

* Update upload.md

* Update upload.md

* Update index.js
2017-10-12 03:07:50 -05:00
Hoxton Lau
2cf9c4e7a7 Form-item: fix "required" attribute is not effective for validation 2017-10-01 03:06:17 -05:00
Leopoldthecoder
257473f305 Merge remote-tracking branch 'eleme/dev' into carbon
# Conflicts:
#	examples/app.vue
#	examples/docs/en-US/tree.md
#	examples/docs/zh-CN/tree.md
#	examples/versions.json
#	packages/select/src/select.vue
#	packages/theme-default/package.json
2017-09-29 16:21:29 +08:00
Hoxton Lau
06d29e2ed6 Form-item: fix typo 2017-09-22 04:47:17 -05:00
杨奕
ad88dd2ec7 TimePicker: add chalk theme (#7102)
* TimePicker: add chalk theme

* minor style fixes
2017-09-19 09:35:57 -05:00
baiyaaaaa
91d9ed7feb feature inline message 2017-09-18 00:37:43 -05:00
baiyaaaaa
84517bb5d9 fix input test 2017-09-18 00:37:43 -05:00
baiyaaaaa
6e31e61516 support success validate status 2017-09-18 00:37:43 -05:00
baiyaaaaa
5c17f57995 upgrade input 2017-09-18 00:37:43 -05:00
leezng
ce270fef4d When <el-form> missing model, validate will return false, then throw a warning to facilitate the developer troubleshooting 2017-07-27 15:28:30 +08:00
Leopoldthecoder
c1b062b60d Form: direct child items should inherit label-width 2017-07-27 14:37:18 +08:00
baiyaaaaa
3f743a4495 fix form-item label bug 2017-07-19 09:56:32 +08:00
baiyaaaaa
6a3ee2fdc7 fix form-item style (#5588)
* fix form-item style

* add tips
2017-07-04 18:02:05 +08:00
Leopoldthecoder
601bd6469b add two warns 2017-06-18 18:07:48 +08:00
baiyaaaaa
9756a3c33a support dynamic form item rule required 2017-06-18 17:18:49 +08:00
Liril
bf7eabb64d Form: Add label slot 2017-05-03 18:35:55 +08:00
Leopoldthecoder
0da3967d3a Revert "Form: remove emitter (#4532)"
This reverts commit fff7dddd94.
2017-05-03 15:20:47 +08:00
cinwell.li
fff7dddd94 Form: remove emitter (#4532) 2017-05-02 10:25:39 +08:00
sunlei33
5eef48b97e Form: 如果需要验证的fields为空,调用验证时立刻返回callback (#3944)
* Form: 如果需要验证的fields为空,调用验证时立刻返回callback
同时修复几个代码格式用来通过npm run dist

* fix travis

* fix travis

* fix travis
2017-04-01 14:06:23 +08:00
pengchongfu
88d4a390d0 Form: fix form-item resetFields (#3830) (#3840) 2017-03-30 11:33:44 +08:00
broven
933d9a8241 form-item: fix #3226 2017-03-05 16:54:19 +08:00
baiyaaaaa
2d8c887b6a fix form inline label bug
This reverts commit d76d28dd54f9f02222d5190182a3e6d8790bcbe6.

fix form inline label bug
2017-02-27 11:45:28 +08:00
baiyaaaaa
7f1d36ee3e fix inline form label width 2017-02-23 14:32:26 +08:00
shangkai
6e45d067f7 解决error变成null或者空的时候,validateState依然是error的问题。 (#2621) 2017-02-04 11:07:49 +08:00