Commit Graph

738 Commits

Author SHA1 Message Date
bqy_fe
c9c1301e3b
fix(components): [table-column] does not render defualt slot when children are comment nodes (#6745) 2022-03-25 19:08:25 +08:00
bqy_fe
210e4c9dd3
fix(components): [tree-v2] fix setCheckedKeys([]) can't clear halfCheckedKeys (#6819) 2022-03-25 17:59:04 +08:00
Xc
2b40ea8145
fix: Cascader Unexpected display 'No Data' (#6815)
Co-authored-by: xiaochenchen <xiaochen.chen@igg.com>
2022-03-25 15:43:35 +08:00
三咲智子
184facdb4c
chore: add eslint rule sort imports (#6823) 2022-03-25 15:35:56 +08:00
bqy_fe
6eead7cc2f
fix(components): [autocomplete] fix can not fetch suggestions when after clear (#6820) 2022-03-25 15:30:24 +08:00
Xc
e5b1606b74
perf(components): [input-number] components review (#6683)
* perf: input-number components review

* perf: delete never used , perf calculation formula

* perf: input-number review

* perf: input-number review

* perf: input-number review

* perf: input-number review

Co-authored-by: xiaochenchen <xiaochen.chen@igg.com>
2022-03-25 15:20:40 +08:00
JeremyWuuuuu
5afe23c18c
refactor(components): [el-popper] refactor popper to script setups (#6725)
- Update legacy syntax to script setup for popper
- Update tests due to changes
- Move popper/token to element-plus/tokens
2022-03-24 21:22:46 +08:00
三咲智子
2c72c2ef37 fix: import dayjs 2022-03-24 20:57:45 +08:00
JeremyWuuuuu
f2d23ba049 fix(components): [el-form] clear validate after reset fields
- Enhancement for #6758
- Add test case against changes
2022-03-24 20:54:18 +08:00
云游君
f74f4e94d2
refactor(theme-chalk): remove default size class & simplify button css (#6782)
* refactor(theme-chalk): [button] remove default size class & simplify css

* test: fix test caused by size remove default

* fix: adapt for form default & remove tag default button m 0

* fix: add uno.css & bem for tag
2022-03-24 19:42:09 +08:00
三咲智子
8639b58583
fix(components): [form] clear validate after resetFields (#6758) 2022-03-24 15:40:42 +08:00
msidolphin
e77957f8ba
fix(components): [el-table] filter failed when tableLayout is auto (#6798) 2022-03-24 15:22:20 +08:00
msidolphin
2759ecf5b2
fix(components): [el-table] cannot scroll when tableLayout is auto (#6790)
* fix(components): [el-table] cannot scroll when tableLayout is auto

* chore: improve code
2022-03-24 15:20:55 +08:00
Muyao
7b61eba9f3
fix(components): [el-select] reset selectedLabel when toggle multiple (#6769)
fix #6766
2022-03-24 15:19:44 +08:00
JeremyWuuuuu
daa62d6170
feat(components): [el-config-provider] add config items (#6797)
- Add `a11y` to global config
- Add `keyboardNavigation` to global config
- Enhance config provider injection test
2022-03-24 15:19:32 +08:00
JeremyWuuuuu
b051efd1b7
feat(components): [el-config-provider] experimental feature toggle (#6794)
- Add experimental feature toggle to config provider
- Add experimental feature toggle documentation
- Update test cases against feature toggle
2022-03-24 13:48:58 +08:00
Yuyao Nie
1db4ae09ac
chore(components): [table] filter out invalid className (#6717)
* chore(components): [table] filter out invalid className

* chore(components): [table] modify codes by comments
2022-03-23 23:22:42 +08:00
gjfei
e179ee6960
refactor(components): [time-picker] use useNamespace (#6523)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-03-23 22:58:43 +08:00
gjfei
0e274ad7d4
feat(components): [dropdown] add buttonProps (#6183) (#6185) 2022-03-23 19:26:46 +08:00
三咲智子
a9e579fef5
refactor(components): [upload] improve code and typings (#6762) 2022-03-23 18:36:31 +08:00
三咲智子
8ae7acc68e
fix(components): [form] add debounce for validate state (#6779) 2022-03-23 18:35:25 +08:00
Hefty
bbcd54ce7f
fix(components): [message-box] textarea can not use multiline text (#6774)
fix: #6765
2022-03-23 18:15:10 +08:00
bqy_fe
7218ee19a7
refactor(components): [empty] refactor (#6703) 2022-03-22 17:48:58 +08:00
Hefty
0d11c121b6
fix(components): [time-picker] cancel button not work correctly (#6735) 2022-03-22 17:03:39 +08:00
Hefty
ae33485f5a
fix(components): [el-tabs] label slot not update (#6738) 2022-03-22 17:01:13 +08:00
Delyan Haralanov
b61dc63375
fix(components): [dropdown] ignore show/hide timeouts for click trigger (#6720) 2022-03-21 21:52:58 +08:00
Carter Li
bdbb70b49c
feat(components): [autocomplete] fetchSuggestions supports Promise (#6695) 2022-03-21 15:51:39 +08:00
btea
d083be90c9
feat(components): [cascader] add tag-type attribute (#6726)
* feat(components): [cascader] add tag-type attribute

* chore: add comment
2022-03-21 12:42:03 +08:00
JeremyWuuuuu
3be9aee6b4
chore(components): [el-breadcrumb] enhancement (#6713)
- Remove some unnecessary code for breadcrumb
- Update tests
2022-03-19 12:17:15 +08:00
Hefty
acecd8e668
fix(components): [el-input] keydown event validator warming (#6691) 2022-03-19 09:28:28 +08:00
JeremyWuuuuu
3f72ec5818
test(ssr): add ssr testing cases (#6657)
* test(ssr): add ssr testing cases

- Add cases for backtop, badge, breadcrumb, button, calendar
- Fix a issue which caused backtop not SSR renderable

* Update card, carousel cascader test cases

* Add more cases
2022-03-18 11:56:41 +08:00
JeremyWuuuuu
6b74660a20
chore(components): [el-carousel] code style refactor (#6693)
* chore(components): [el-carousel] code style refactor

- Remove duplicated code
- Simplified the code for components

* Wrap resize handle into shallowRef

* Export CourouselItemState type

* Enhance itemInStage method

* Refine code
2022-03-17 22:20:25 +08:00
卜启缘
176bc652ea
refactor(components): [carousel] refactor (#6681)
* refactor(components): [carousel] refactor

* fix: build error
2022-03-17 12:21:06 +08:00
blackie
cc8ee8e031
fix(components): [menu-item] add fallback-placement (#6684) 2022-03-17 10:17:11 +08:00
Xc
c6b69e217d
fix: input-number in step-strictly onChange bug (#6662)
Co-authored-by: xiaochenchen <xiaochen.chen@igg.com>
2022-03-16 21:53:57 +08:00
Hefty
23d49c06c2
fix(components): [el-dialog] DoneFn parameter should be optional (#6675) 2022-03-16 21:09:12 +08:00
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
Zhongxiang Wang
9843fb1d69
fix(components): [table] not scroll empty block when scrolling table (#6615)
* fix(components): [table] not scroll empty block when scrolling table

* fix(components): [table] fix unexpected gap

* fix(components): [table] fix unexpected gap
2022-03-16 10:47:30 +08:00
Yuyao Nie
8b4d55ff9e
fix(components): [menu] do not handle resize of child vnode (#6131) 2022-03-15 20:46:22 +08:00
JeremyWuuuuu
6eb8cfa1ef
chore(ssr): moveout ssr testing files (#6655)
- Move testing files to ssr-testing/
2022-03-15 20:18:06 +08:00
JeremyWuuuuu
6aeb2d7aab
feat(components): [el-result] warn users using subTitle as slots (#6651)
* feat(components): [el-result] warn users using subTitle as slots

- Add deprecation warning for el-result sub-title slots
- Update documentation with a slotted sub title

* Fix useDeprecated typing issue
2022-03-15 19:50:50 +08:00
xc
dba6a63e20
fix: selet-v2 value-key mode selected style and onClonse bug (#6602)
* fix: selet-v2 value-key mode selected style and onClonse bug

* style: format

Co-authored-by: xiaochenchen <xiaochen.chen@igg.com>
2022-03-15 19:36:41 +08:00
JeremyWuuuuu
2d3d09b545
test(ssr): add ssr testing cases (#6647) 2022-03-15 19:21:54 +08:00
blackie
458e301a52
fix(components): [result] rename slot's name from 'subTitle' to 'sub-title' (#6636)
* fix(components): [result] rename slot's name

* docs(components): [result] update doc
2022-03-15 16:59:50 +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
三咲智子
e37116389b
feat(components): [loading] export directive alias (#6629) 2022-03-14 12:13:57 -04: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
云游君
d3a66b8767
refactor(components): [rate] use css var & disable to disabled & star-color to fill-color (#6601)
* refactor(components): [rate] use css var & disable to disabled

* refactor(components): [rate] remove getIconStyle

* refactor(components): [rate] rename star-color to fill-color

* fix(test-utils): rate vitest by css vars

* refactor: use ns.is('', state)
2022-03-14 19:34:49 +08:00
三咲智子
5d85fba20c
chore: self closing vue tag (#6603) 2022-03-13 16:16:11 -04:00
msidolphin
d435a6a6fc
feat(components): [el-table] exposes scroll methods (#6539)
* feat(components): [el-table] exposes scroll methods

* chore: improve code
2022-03-13 23:00:58 +08:00
Zhongxiang Wang
30878dc5ef
fix(components): [form] set validateState to success after passed (#6596) 2022-03-13 23:00:28 +08:00
blackie
468d4ba162
refactor(components): [skeleton] switch to script-setup syntax (#6395)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-03-13 20:53:05 +08:00
btea
18bd8c4952
refactor(components): [rate] switch to script-setup syntax (#6565)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-03-13 20:20:21 +08:00
三咲智子
61cfd369dc
fix(components): [dialog] remove footer when not existed (#6590) 2022-03-13 20:11:44 +08:00
JeremyWuuuuu
c415f8bdbc
fix(components): [popper-trigger] SSR issue (#6575)
* fix(components): [popper-trigger] ssr issue

- Moved all watch expressions inside `onMounted` to avoid SSR error

* Update unwrapMesurable for skipping SSR
2022-03-13 14:10:14 +08:00
三咲智子
9c30a5d153
refactor(components): [input] refactor (#6545)
* refactor(components): [input] refactor

* test: improve tests

* fix: dts

* fix: nextTick
2022-03-13 00:23:00 +08:00
wzrove
0e6ff4f9a9
refactor(components): [divider] switch to script-setup (#6556)
Co-authored-by: rove <rove@outlook.com>
2022-03-12 21:31:24 +08:00
Zapic
525f61f8da
fix(component): [el-tabs] the initial pane should only render for once (#6563)
* fix(component): [el-tabs] the initial pane should only render for once

* test(component): [el-tabs] improve test of lazy load pane

* test(component): [el-tabs] fix lint error

Co-authored-by: KawaiiZapic <kawaiizapic@zapic.moe>
2022-03-12 20:44:17 +08:00
三咲智子
e98d1298c0
refactor(components): [link] refactor (#6543) 2022-03-12 17:21:20 +08:00
云游君
2db400c73a
refactor(components): [link] dynamic css vars & fix inner align (#6557) 2022-03-12 16:59:07 +08:00
云游君
93ee392932
fix(components): [upload] photo-wall wrap (#6546)
* fix(components): upload photo-wall wrap

* refactor(components): upload conent with props by tsx

* fix: type generate for upload sfc tsx

* Revert "fix: type generate for upload sfc tsx"

This reverts commit beeb9fb1642a875278ab9bf92f8ae4b7ae971013.

* Revert "refactor(components): upload conent with props by tsx"

This reverts commit 425e4a9f34693d9828bc8cf2e5ef2d75c5037864.

* fix: upload content type by as any

* refactor: extract uploadContentProps to object

* refactor(components): upload use tamplate instead of h

* Update packages/components/upload/src/upload.vue

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>

* refactor(components): remove useless key in upload-content

* refactor(components): fix type

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-03-12 16:57:48 +08:00
Herrington Darkholme
14353dbfce
fix(ci): suppress warning by mark icon as raw (#6555) 2022-03-12 15:58:29 +08:00
Herrington Darkholme
e10a1e4c9d
fix(ci): fix cascader ns querySelector class (#6552) 2022-03-12 13:46:36 +08:00
Herrington Darkholme
51aac2f630
fix(ci): clean up several warning (#6551) 2022-03-12 00:00:07 -05:00
三咲智子
da6d2dc84b
feat(components): [message] support re-render vnode (#6527)
* feat(components): [message] support re-render vnode

* docs: improve api reference

* test: add message vnode render function
2022-03-11 20:19:31 +08:00
Alan Wang
103bb1b104
feat(components): [cascader]add collapse-tags-tooltip (#6331) 2022-03-11 15:58:00 +08:00
Alan Wang
a3e3acc0fc
feat(components): [select-v2]add collapse-tags-tooltip (#6532)
* feat(components): [select-v2]add collapse-tags-tooltip

* feat(components): [select-v2]set fallback-placements

* feat(components): [select-v2]add collapse-tags-tooltip

* feat(components): [select-v2]set fallback-placements

* feat(components): [select-v2]add v-if on tooltip
2022-03-11 15:56:35 +08:00
Alan Wang
57d08f9a78
feat(components): [select]add collapse-tags-tooltip (#6245)
* feat(components): [select]add collapse-tags-tooltip

* feat(components): [select] collapse-tags-tooltip set width

* feat(components): [select] collapse-tags-tooltip set fallback-placements

* feat(components): [select] resolve conflicts

* feat(components): [select] add v-if on tooltip
2022-03-11 15:56:23 +08:00
msidolphin
61c6b97183
fix(components): [el-upload] jitter when remove file in the list (#6505)
* fix(components): [el-upload] jitter when remove file in the list

* chore: improve code
2022-03-11 15:56:07 +08:00
blackie
36e80869ab
fix(components): [autocomplete] fix shaking at first open (#6342)
* fix(components): [auto-complete] fix shaking at first open

* fix(components): [autocomplete] remove added file by oversight
2022-03-11 15:09:09 +08:00
msidolphin
063c564461
fix(components): [el-table] escape special html characters (#6520)
* fix(components): [el-table] escape special html characters

* fix: use 3rd package
2022-03-11 15:05:29 +08:00
张大大
045703228b
fix(components): [el-input] pass input-style props to input-wrapper (#6506)
Co-authored-by: zhangtian <zhangtian@weidian.com>
2022-03-11 14:56:29 +08:00
Alan Wang
e1447d9c7c
fix(components): [select] display error when setting persistent to false (#6522) 2022-03-11 14:36:15 +08:00
Shana-AE
152f4dbf3d
fix(components): [rate] fix disbaledVoidIcon typo (#6456)
fix #6455
2022-03-11 14:35:16 +08:00
blackie
c35dfec666
style(components): rename disabled to is-disabled (#6475)
* style(components): [pagination] rename disabled to is-disabled

* style(components): [slider] rename disabled to is-disabled

* style(components): [pagination] rename active to is-active

* refactor(components): [calendar] use namespace hooks

* fix(components): [pagination] fix test error
2022-03-10 23:57:07 +08:00
云游君
8929151b85
refactor(theme-chalk): [upload] use bem rewrite upload scss & fix bugs (#6508)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-03-10 23:52:13 +08:00
Alan Wang
73e60cd86a
test(components): [select] click icon twice (#6471) 2022-03-10 23:28:50 +08:00
Herb Brewer
428893f7fa
fix(components): [upload] fileList prop should sync uploadFiles (#6492)
* fix(components): [upload] fileList prop should sync uploadFiles

* fix(components): [upload] fileList prop should sync uploadFiles

* fix: typings

Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-03-10 23:19:44 +08:00
msidolphin
254eacd7da
perf(components): [el-table] optimize the performance of expand rows (#6480)
* perf(components): [el-table] optimize the performance of expand rows

* chore: revert comments

* chore: remove useless code

* chore: rename

* Update packages/components/table/src/table-body/render-helper.ts

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-03-10 16:45:08 +08:00
Alan Wang
76735a6560
fix(components): [el-tooltip] close the dropdown after set disabled (#6467)
* fix(components): [el-tooltip] close the dropdown after set disabled

* fix(components): [el-tooltip] close the dropdown after set disabled

* Update packages/components/tooltip/src/tooltip.vue

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-03-10 15:52:07 +08:00
gjfei
3cc4867f7a
fix(components): el-select-allow-dynamically-update-options (#6473)
* fix(components):[select] (#6458)

* fix(components): [select] allow create

* fix(components): [select] allow create code review
2022-03-10 15:50:46 +08:00
gjfei
593082ec65
fix(components):[select] namespace (#6486) 2022-03-10 15:39:42 +08:00
三咲智子
80d903771f
feat: extract eslint config to separate package (#6495) 2022-03-10 15:39:13 +08:00
btea
d9b8ec2164
refactor(utils): remove isFF (#6507)
* refactor(utils): remove isFF

* chore: remove isObject
2022-03-10 11:30:10 +08:00
Alan Wang
a7f90cc517
fix(components): [message] offset error (#6497) 2022-03-10 08:39:56 +08:00
JeremyWuuuuu
bc8443773b
fix(components): [el-collapse] collapse item key pressing jumping (#6462)
- Fix the issue when pressing `space` key on collapse item the page will jump
2022-03-08 17:54:31 +08:00
msidolphin
505616c2ab
feat: [el-table] support always show scrollbar & get selection rows (#6469) 2022-03-08 14:28:58 +08:00
gjfei
68127aa442
fix(components):[select] (#6446) (#6474) 2022-03-08 14:09:37 +08:00
三咲智子
b8c38a9fe5
chore: enhance eslint rules (#6476)
* chore: enhance eslint rules

* chore: enhance eslint rules
2022-03-08 14:03:32 +08:00
bqy
88a97ca6d2
refactor(components): [breadcrumb] switch to script-setup syntax (#6073)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-03-08 12:50:46 +08:00
gjfei
5a9d5ea5fb
refactor(components): [cascader,cascader-panel] add namespace (#5589)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-03-07 22:30:45 +08:00
gjfei
d3915ed493
fix(components): [el-checkbox] modelValue (#6168) (#6169) 2022-03-07 16:58:14 +08:00
msidolphin
a7db76d782
fix: [el-table] fixed columns display when horizontal cannot scroll (#6320)
* fix: [el-table] fixed columns display when horizontal cannot scroll

* fix: change default class

* refactor: optimize fixed column style
2022-03-07 16:17:16 +08:00
msidolphin
43ee78563b
fix(components): [el-table] defaultSort not working (#6322)
* fix(components): [el-table] defaultSort not working

* fix: unit test

* chore: improve code
2022-03-07 16:15:54 +08:00
msidolphin
166c5944d0
fix(components): [el-select] optimize prefix size & selected style (#6267)
* fix(components): [el-select] optimize prefix size & selected style

* fix: implement icon by mask

* chore: adjust multiple demo width
2022-03-07 16:13:05 +08:00
三咲智子
eab6be93e7
refactor(docs): [form] improve docs and typings (#6447) 2022-03-07 13:37:13 +08:00
三咲智子
c46d257a47
refactor(components): [row] refactor (#6354) 2022-03-07 10:35:11 +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