Commit Graph

85 Commits

Author SHA1 Message Date
Yamen Sharaf
098ba463c3 FormItem: adding hide-required-asterisk attribute(#12744)
* Form: adds prop to make asterisk optional on required  fields

* Form: adds prop to make asterisk optional on required  fields

* ElForm: Reverses attribute name to hide-required-asterisk, which defaults to false

* Update form-item.vue

* Update form.scss

* Update form.md
2018-09-17 18:32:23 +08:00
Yamen Sharaf
ea27fb8fbf FormItem: using slot-scope to display validation message (#12715)
* Updated el-form-item to accept custom error message via slot

* FormItem: updated slot name in docs

* updated spanish and chinese translations

* Update form.md

* Update form.md

* Update form.md

* Update form.md
2018-09-13 18:19:44 +08:00
hetech
9e738a85c3
Input: not trigger form validation when input (#12260)
* Input: not trigger validation when input

* InputNumber: update docs
2018-08-07 18:33:58 +08:00
38elements
55c97e588c FormItem: v-bind:style -> :style (#11996) 2018-07-15 16:57:38 +08:00
杨奕
ef74ee05b3
Select: revert #10105 (#11837) 2018-07-03 15:03:50 +08:00
杨奕
b799d2ec4d Form: clearValidate supports prop names (#11821) 2018-07-02 18:06:16 +08:00
Jason Zoo
dc816832e1 form-item sizeClass (#11408)
* form-item sizeClass

* Update form.spec.js
2018-05-30 18:25:50 +08:00
杨奕
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