JeremyWuuuuu
6995b80b78
test(components): [el-form-item] test enhancement ( #6677 )
...
- Extract success handler for form item validation
- Add test cases against form validation emit events
2022-03-16 21:08:58 +08:00
LYlanfeng
597f9c5c2c
fix(components): [form-item] emit validate when passed not triggered ( #6671 )
2022-03-16 18:09:27 +08:00
JeremyWuuuuu
adf1ecf3eb
fix(components): [el-form] validation with callbacks throws ( #6669 )
...
* fix(components): [el-form] validation with callbacks throws
- Fix Form component's validation with callbacks still throws error
- Fix FormItem component's validation with callbacks still throws error
- Update test cases to make sure this functionality's integrity
* Fix linter
2022-03-16 15:43:49 +08:00
JeremyWuuuuu
52e389a058
fix: form item instance was not destroyed ( #6641 )
...
- Fix but causing form item can still be validated
- Add test cases against this feature
2022-03-15 14:09:26 +08:00
JeremyWuuuuu
be0f72577b
fix(components): [el-form] Form not emitting validation result ( #6610 )
...
* fix(components): [el-form] Form not emitting validation result
- Refactor validate code to allow it to yield promise value
- Update tests accordingly
* fix: refactor
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-03-14 19:47:31 +08:00
三咲智子
5d85fba20c
chore: self closing vue tag ( #6603 )
2022-03-13 16:16:11 -04:00
Zhongxiang Wang
30878dc5ef
fix(components): [form] set validateState to success after passed ( #6596 )
2022-03-13 23:00:28 +08:00
三咲智子
b8c38a9fe5
chore: enhance eslint rules ( #6476 )
...
* chore: enhance eslint rules
* chore: enhance eslint rules
2022-03-08 14:03:32 +08:00
三咲智子
eab6be93e7
refactor(docs): [form] improve docs and typings ( #6447 )
2022-03-07 13:37:13 +08:00
三咲智子
c72679e4e9
refactor(components)!: refactor form ( #5401 )
...
* refactor(components): refactor form
* refactor: resolve PR comments
* refactor(components): refactor isNested
* refactor: resolve PR comments
2022-03-06 22:20:56 +08:00
ntnyq
99859a5fd0
fix(components): [form] trigger can be a string list ( #5975 )
2022-03-06 11:55:40 +08:00
三咲智子
590538cd38
test: fix scrollIntoView ( #5960 )
2022-02-11 12:35:26 +08:00
三咲智子
6503e55277
refactor(utils): migrate utils ( #5949 )
...
* refactor(utils-v2): migrate utils
* refactor(utils-v2): migrate utils
* refactor(utils-v2): migrate utils
* refactor(utils): remove
* refactor(utils): rename
* refactor(utils): move EVENT_CODE to constants
* refactor: remove generic
2022-02-11 11:03:15 +08:00
三咲智子
c1e5d724d8
refactor(utils-v2): refactor utils ( #5699 )
2022-02-09 16:59:08 +08:00
kooriookami
f5b7e3accc
fix(components): [el-form] fix form style ( #5145 )
...
* style: fix form style
* feat: update
* feat: update
* feat: update
* feat: update spell
* feat: update
2022-01-08 19:34:09 +08:00
云游君
4560adfdf8
refactor(style): adjust component size to large/default/small ( #4491 )
...
* refactor(style): adjust component size to large/default/small
* refactor(components): avatar size & use flex instead of block
* refactor(components): adjust check button size
* refactor(components): adjust tag size
* refactor(components): adjust size doc
* fix(components): datetime-picker demo style width
* refactor(components): color-picker size & block to flex
* refactor(components): adjust slider input size
* refactor(components): adjust radio input size for demo
* refactor(components): adjust select size & docs
* refactor(components): adjust form radio size & docs
* refactor(components): add windicss for docs
* refactor(components): adjust skeleton avatar size to css var
* refactor(components): simplify typography size demo
* refactor(components): adjust dropdown size & demo
* refactor(components): adjust descriptions size
* fix(components): datetime-picker showcase class pollute global button
* chore(ci): upgrade docs dependencies to fix ci
* fix(ci): add highlight because vitepress not export it
* fix(ci): disable line for no-console
* fix(ci): remove mini to fix test
* fix(style): code font size
* fix(style): button span flex style
* fix(style): button padding horizontal default 15px
* refactor(components): adjust tag padding size & demo
* refactor(components): adjust form line-height for input
* refactor(components): adjust dropdown menu size & button padding
* fix(style): picker separator block to flex center
* fix: dropdown button span items-center
* style: adjust input-with-icon & size demo & fix input vitepress load
* chore: upgrade dependencies
* chore: upgrade dependencies
* ci: fix website build
* ci: regenerate pnpm-lock.yaml
* ci: use dev pnpm-lock
* ci: update pnpm-lock.yaml
2021-12-12 17:54:21 +08:00
三咲智子
db1d9401fe
feat(components): [el-config-provider] add size ( #4730 )
2021-12-10 17:21:01 +08:00
C.Y.Kun
8fe4f1e65e
fix(components): [ElFormItem] label will be show undefined ( #4487 )
2021-11-23 00:17:19 +08:00
btea
9aa03ac774
fix(components): [el-form] reset form validate error ( #3759 )
2021-11-05 18:45:45 +08:00
辛宝Otto
63d3d9d168
refactor(components): elForm 渐进增强表单规则,允许用户自定义类型 ( #3951 )
2021-11-02 23:47:16 +08:00
msidolphin
a504503eab
fix(components): [el-form-item] validate success does not return fields ( #4001 )
...
fix #3860
2021-10-27 18:46:34 +08:00
波比小金刚
40b3dea926
fix(components): [el-form-item] calc the label-width. ( #3914 )
2021-10-18 16:31:45 +08:00
三咲智子
ffe6d251c6
refactor(components): refactor input ( #3805 )
...
* refactor(input): rename
* refactor(input): with-install
* refactor(input): kebab-case
* refactor(components): refactor input
* fix: fix test import
* refactor(components): [el-input] refactor export named
* refactor: improve types
* refactor: improve types
2021-10-18 16:21:30 +08:00
三咲智子
4a4f04970d
fix(components): [el-form] fix async-validator version ( #3697 )
2021-09-28 11:58:16 +08:00
三咲智子
f9c9f11415
feat(project): upgrade async-validator to 4.0.3 ( #3667 )
...
* feat(project): upgrade async-validator to 4.0.3
* fix: fix types
2021-09-27 09:57:44 +08:00
jeremywu
3138dea797
fix(components): sub components no install issue ( #3615 )
...
- Add noop install for all sub components for supress the warning
2021-09-24 19:11:56 +08:00
btea
f21b15a67e
fix(components): [el-form] fix the methods validate callback invalid ( #3589 )
2021-09-23 16:10:03 +08:00
三咲智子
0636e1e240
style: add import and stricter lint ( #3440 )
...
* style: add import lint
* chore: apply eslint rules
* chore: add stricter lint
* chore: lint all files
* auto fix
* manually fix
* restore build-indices.ts
2021-09-17 15:27:31 +08:00
三咲智子
c86c2b0fe9
style: eslint enable prefer-template ( #3414 )
...
* style: eslint enable prefer-template
* chore: apply eslint rules
2021-09-17 09:18:24 +08:00
Delyan Haralanov
c17161e21c
Feat/remove mitt ( #3356 )
...
* feat(components): collapse use provide/inject instead of mitt events
# Conflicts:
# packages/components/collapse/src/collapse-item.vue
# packages/components/collapse/src/collapse.vue
* feat(components): menu use provide/inject instead of mitt events
# Conflicts:
# packages/components/menu/src/menu.ts
* feat(components): form use provide/inject instead of mitt events
# Conflicts:
# packages/components/checkbox/src/checkbox-group.vue
# packages/components/checkbox/src/useCheckbox.ts
# packages/components/form/src/form-item.vue
# packages/components/form/src/form.vue
# packages/components/input/src/index.vue
# packages/components/radio/src/radio-group.vue
# packages/components/select/src/useSelect.ts
# packages/components/slider/src/index.vue
# packages/components/time-picker/src/common/picker.vue
# packages/components/transfer/src/index.vue
# packages/tokens/form.ts
* feat(components): tree use provide/inject instead of mitt events
# Conflicts:
# packages/components/tree/src/model/useDragNode.ts
# packages/components/tree/src/tree-node.vue
* feat(components): select use provide/inject instead of mitt events
# Conflicts:
# packages/components/select/src/option-group.vue
# packages/components/select/src/select.vue
# packages/components/select/src/useOption.ts
# packages/components/select/src/useSelect.ts
* feat: remove mitt from packages dependencies
# Conflicts:
# packages/components/package.json
# packages/element-plus/package.json
# packages/tokens/package.json
* feat: remove mitt from webpack.config.js
* refactor: change imports order
* refactor: import types separately
* fix: revert removing mitt from webpack.config.js
This config is not related to the build so no need to remove mitt here
2021-09-16 21:19:27 +08:00
Herrington Darkholme
fc74a232a0
Revert "fix(components): [el-form]: ensure form validation always triggers callback ( #3294 )" ( #3324 )
...
This reverts commit 509292678d
.
2021-09-10 12:02:52 +08:00
Robert Schönthal
509292678d
fix(components): [el-form]: ensure form validation always triggers callback ( #3294 )
...
ensures the callback is always called
2021-09-10 11:49:33 +08:00
Aex
03f02b5554
refactor(utils): improve debug warn ( #3302 )
2021-09-09 11:49:48 +08:00
Aex
2f9cdc74ce
chore(project): improve prettier format ( #3236 )
2021-09-05 00:53:31 +08:00
SongWuKong
6f23947920
fix(components): message verified by el-form is "" validate ( #3227 ) ( #3231 )
2021-09-04 19:35:11 +08:00
三咲智子
55348b30b6
style: use prettier ( #3228 )
...
* style: use prettier
* style: just prettier format, no code changes
* style: eslint fix
object-shorthand, prefer-const
* style: fix no-void
* style: no-console
2021-09-04 19:29:28 +08:00
三咲智子
80ccfef93c
docs/test: [el-form] add scrollToField docs and test ( #3147 )
...
* docs(typography): format docs
* docs(docs): [el-form] add scrollToField method
* test(components): [el-form] add scrollToField test
* destroy mock
2021-09-03 14:13:58 +08:00
Taosh
e8a66adffd
fix(components): [el-form-item] dom element null checking ( #3172 )
2021-09-01 17:49:39 +08:00
Sanxiaozhizi
8f67fb7645
feat(components): form add scrollToField method ( #3110 )
...
* feat(form): add scrollToField function
* feat(components): complete scrollToField function
Co-authored-by: linjie <linjie@zhuanzhuan.com>
2021-08-28 20:00:19 +08:00
Sanxiaozhizi
0617cdf9f8
test: fix test ( #3109 )
2021-08-27 19:13:37 +08:00
wangbincyzj
8830b2337a
fix: [label-wrap] Fix misspellings ( #3030 )
...
Co-authored-by: wangbin <bin.wang2@cyclone-robotics.com>
2021-08-25 09:47:41 +08:00
wangbincyzj
9c790c76f0
fix(components): [form-item] Fix misspellings ( #3019 )
...
Co-authored-by: wangbin <bin.wang2@cyclone-robotics.com>
2021-08-24 14:25:28 +08:00
jeremywu
b0f4fc5f23
refactor: update package path and bundle folder ( #3016 )
2021-08-24 13:36:48 +08:00