Commit Graph

22 Commits

Author SHA1 Message Date
anranruye
16654f5b51 Merge 0.8.4 to feature 2021-07-18 00:04:11 +08:00
gmij
23e0aa7185 feat(module: form): use DisplayName attribute as the default FormItem Label (#1682)
* add. 如果没有设置FormItem的Label参数,则尝试使用绑定字段的DisplayName

* Update components/form/FormItem.razor.cs

Co-authored-by: 陈斌 <chenb@teleware.cn>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-06-28 14:32:46 +08:00
anranruye
a06fd5c2e5 fix(module: form): fix input components inside customized form control (#1662) 2021-06-24 12:18:18 +08:00
笨木头
ec45abc4d7 feat(module: form): support set validation rules on FormItem (#1516)
* feat(module: form): support set validation rules on FormItem(not complete yet)

* refactor(module: form): optimized code

* feat(module: form): support Whitespace rule

* feat(module: form): support [message、pattern、transform、validator、whitespace] rules

* feat(module: form): support type rule

* feat(module: form): support [defaultField、oneOf、fields、type] rules

* feat(module: form): support custome validate messages(without test)

* test(module: form): complete RuleValidate_ValidateMessages test

* feat(module: form): complete DynamicRule demo, refactor code, fix bugs

* feat(module: form): support ValidateMessages param

* doc(module: form): add "Rules" and "ValidateMessages" docs

* fix: Rule.Max's errorMessage is wrong

* refactor: rename Rule to FormValidationRule

* test: rename Rule to FormValidationRule

* chore: refactor code and rename classes

* Update ValidateMode.razor

* Update FormValidateErrorMessages.cs

* Update FormValidateHelper.cs

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-05-28 09:08:42 +00:00
James Yeung
bfb5e4f396 merge 0.8.1 to feature 2021-05-16 19:58:03 +08:00
Andrzej Bakun
bcc919fce3 fix(module: form): expose LabelStyle property (#1503) 2021-05-11 11:02:15 +08:00
Andrzej Bakun
9509603489 fix(module: select): support IEnumerable in form (#1460)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-05-06 05:42:19 +00:00
James Yeung
555e398336 fix(module: form): validation message unique (#1391) 2021-04-20 16:03:25 +08:00
ElderJames
aaff88adf7 merge master into feature 2021-04-08 22:32:48 +08:00
unsung189
b68e70fd76 feat(module: form): Form lable supports left alignment (#1292)
* feat: Form lable supports left alignment

* Update and rename components/grid/Col.razor.cs to 组件/格网/Col.razor.cs

* Delete Col.razor.cs

* no message

* PR:1292

* typo LabelAlign

* add the property in Col instead FormItem

* clean code

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-02 23:13:44 +08:00
ldsenow
527f39456b feat(module: form): Add LabelTemplate for FormItem (#1293)
Co-authored-by: Leishi <lluo@octet.com>
2021-04-02 23:10:37 +08:00
James Yeung
d2e9c4b247 feat(module: config-provider): support RTL (#1238)
* feat(module: config-provider): support RTL

* add rtl for each component

* fix rtl for pagination

* add rtl for overlay
2021-03-31 19:23:26 +08:00
TimChen
7ae4c559be feat(module: form): simplify ColLayout (#830) 2020-11-27 16:41:26 +08:00
老九
6b1875c83c refactor: use single RequiredAttribute in PropertyReflector (#722) 2020-10-25 19:03:58 +08:00
James Yeung
a4e4d6f556 refactor: get PropertyInfo from expression (#559) 2020-09-01 17:23:31 +08:00
James Yeung
1f76b2afc5 fix(module: checkbox): default value binding (#437)
* fix(module: checkbox): default value binding

* fix: default value for select-group
2020-07-30 23:54:31 +08:00
zxyao
503415ea07 feat(module: form): add Required paramater (#353) 2020-07-13 20:37:06 +08:00
笨木头
0da743fab2 feat(module: form): add complex form control (#349)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-07-13 12:26:09 +08:00
笨木头
4a4dfcbd87 refactor(module: form): optimize performance (#284)
* refactor(module: form): optimize performance

* refactor: clean code

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-06-30 22:32:36 +08:00
TimChen
e1884c90b6 fix: performance improvements for forms (#245) 2020-06-25 19:23:16 +08:00
James Yeung
0b75473db0 refactor: remove the form item dependency (#171) 2020-06-02 07:28:06 +08:00
笨木头
c3b0b114e6 feat: add form(basic features) (#168)
* feat: add form(not complete yet)

* feat: add form(basic)

* refactor: change namespace

* feat(module: form): add onFinish, onFinishFailed, reset

* feat(module: form): add layout demo

* feat(module: form): update doc

* refactor: basic form

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-06-01 14:09:28 +08:00