Commit Graph

4878 Commits

Author SHA1 Message Date
Karolis_Stoncius_Sneakybox
c7021b31ed
refactor(components): [date-picker] add aria-labels to date picker btns (#14149) 2023-09-08 11:54:44 +08:00
btea
9b0a8f8c9a
chore: format (#14200) 2023-09-07 13:51:25 +08:00
Bean Deng 邓斌
95494b7154
feat(components): [image-viewer] Add rotate event when rotating images (#14138)
* feat(components): [image-viewer] Add rotate event when rotating images

* Update docs/en-US/component/image.md

Co-authored-by: btea <2356281422@qq.com>

---------

Co-authored-by: btea <2356281422@qq.com>
2023-09-06 06:28:14 +00:00
boomboy4
9a60a90e1e
feat(components): [el-pagination] add teleported prop (#14072)
* fix(components): [pagination] 修复toplayer全屏模式下分页下拉框无法显示问题

分页组件新增teleported参数 默认为true  便于用户控制size下拉框是否插入body

closed #14070

* docs(docs): [pagination] Add a teleported attribute

closed #14070

* fix(components): [pagination] teleported props default value

delete set teleported default value

closed #14070

* fix(components): [pagination] change the default value of teleported

change the default value of teleported to true

* Update docs/en-US/component/pagination.md

Co-authored-by: qiang <qw13131wang@gmail.com>

---------

Co-authored-by: shaojia.cheng <shaojia.cheng@arvetech.net>
Co-authored-by: qiang <qw13131wang@gmail.com>
2023-09-06 00:14:58 +00:00
刘臻
ce2315d734
docs(components): message-box (#14179)
update message-box options

closed #14178
2023-09-04 21:39:22 +08:00
JBtje
86beacee50
fix(i18n): improve Dutch(nl) translation (#14164) 2023-09-01 20:21:03 +08:00
wzc520pyfm
6cc5892672
fix(components): [select] fix hover index error when creating option (#12635)
* fix(components): [select] fix error when creating option

closed #12634

* test(components): [select] add test for create and default first option

* fix(components): [select] compatible #11297
2023-08-31 11:22:01 +08:00
Wu Rui
3c1bd4efc6
fix(components): [form] improve types (#14062)
* fix(components): [form] improve types

* docs: update form

* fix: consider RegExp

* chore: update jsdoc
2023-08-30 13:31:10 +00:00
Frank Fang
5f028f8449
fix(components): [table] add tabindex to tbody to fix #13991 (#14020)
* fix(components): [table] add tabindex to tbody to fix #13991

* remove :focus style

* fix: remove the focus outline

* fix: replace focus with focus-visible

* chore: add comments to explain why the tabIndex attr is needed
2023-08-30 14:01:45 +08:00
btea
ee8f1574c6
refactor(components): [collapse] replace keypress with keydown (#14137) 2023-08-29 22:16:02 +08:00
btea
5c03a3484d
chore(ci): modify nightly release PKG_NAME value (#14147) 2023-08-29 18:21:25 +08:00
zepeng
cea00f0dc8
fix(components): [rate] bind the textColor property (#14092)
* fix(components): [rate] bind the textColor property

* add test case

* add test case

* Update rate.test.tsx

* Update rate.md
2023-08-28 21:51:18 +08:00
btea
68980b3c50
docs(components): [collapse] (#14066) 2023-08-28 21:50:49 +08:00
wonderl17
d73bf47f8b
docs: [select-v2] add item-height attribute into doc (#14033) 2023-08-28 15:42:06 +08:00
King
69750fbaf7
fix(components): [collapse] allow nested inputs in ElCollapseItem (#14061)
* fix(components): [collapse] allow nested inputs in ElCollapseItem to handle space key

* Update packages/components/collapse/src/collapse-item.vue

Co-authored-by: btea <2356281422@qq.com>

---------

Co-authored-by: btea <2356281422@qq.com>
2023-08-28 15:30:43 +08:00
Hefty
2b3a34e6b5
refactor(components): [upload] reuse revkoeObjectURL function (#14126) 2023-08-28 10:29:30 +08:00
sseinHu
e5ebf80bf5
fix(components): [select] gurad value type error (#14074)
fix(components): [useSelect.ts] selected.slice is not a function

select In the case of radio, the packaged code will report select. slice is not a function, because the radio selected is an object, and the object does not have the api of slice
2023-08-28 09:31:22 +08:00
Element
89d4ec863c
chore: Update changelog 2.3.11 (#14116)
chore: update changelog 2.3.11
2023-08-26 07:01:27 +00:00
btea
8c81272851
Revert "refactor(components): [form-label-wrap] use getStyle method (… (#14106)
Revert "refactor(components): [form-label-wrap] use getStyle method (#13913)"

This reverts commit c6a6d9bc6e.
2023-08-26 14:15:27 +08:00
jumtp
eb5d46d296
chore(test): [message] wrong tag typo (#14099)
fix(test-utils): [message.test] wrong tag
2023-08-26 02:06:30 +00:00
zepeng
913f11e0fd
docs: [card] add version tag (#14083) 2023-08-26 09:54:34 +08:00
Element
8e16bee6ed
chore: Update changelog 2.3.10 (#14096)
chore: update changelog 2.3.10
2023-08-25 04:48:02 +00:00
btea
50860b7c66
docs: [cascader] add version tag (#14082) 2023-08-24 21:33:20 +08:00
Karolis_Stoncius_Sneakybox
c29f6cc6c7
feat(components): [select] add aria-label to select's input (#13932)
* feat(components): [select] add aria-label to select's input

Select's input causes accessibility issues without aria-label, this commit adds it

* refactor(components): [select] change aria-label to label; update docs

* refactor(components): [select] change back to ariaLabel prop name

* docs(components): kebab-case for docs
2023-08-24 21:03:01 +08:00
Karolis_Stoncius_Sneakybox
268457135e
feat(components): added aria-level attributes for dialog and drawer headers; Fixed input-number's aria-valuenow being null (#13822)
* feat(components): [dialog] added dialog header aria-level attribute

To pass accessibility tests elements with role="heading" require aria-level

* feat(components): [drawer] added drawer header aria-level attribute

To pass accessibility tests elements with role="heading" require aria-level

* fix(components): [input-number] prevent aria-valuenow from being null

To pass accessibility tests aria-valuenow cannot be null

* fix(components): [input-number] fix number input when 0 and update test

Fixes a bug where number input's aria-valuenow will be set to '' when input's value is 0. Also
updates a failing test

* refactor(components): [dialog] change default aria-level to 2

* docs(components): dialog and drawer header aria-level docs update

* docs(components): change headerAriaLevel type to string

* docs(components): kebab-case for docs
2023-08-24 20:14:59 +08:00
Evan Liu
b9f703094f
fix(components): [date-picker] correct onCalendarChange param type (#13976) 2023-08-24 18:09:36 +08:00
chenweiyi
013809f829
feat(components): [cascader] add max-collpase-tags prop (#13386)
* feat(components): add max-collapse-tags prop

show more than one tag in cascade when multiple enable and use collapse-tags true

* test(test-utils): add unit test for cascader prop 'max-collapse-tags'

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

Co-authored-by: btea <2356281422@qq.com>

* Update cascader.vue

* refactor(components): [cascader] style lint

---------

Co-authored-by: chenweiyi01 <chenweiyi01@zuoyebang.com>
Co-authored-by: btea <2356281422@qq.com>
2023-08-24 17:34:24 +08:00
wzc520pyfm
f462eab010
docs(components): [transfer] use new display tag (#13033)
* docs(components): [transfer] use new display tag

* docs(components): [transfer] update TransferKey to Array<string|number>

* docs(components): [transfer] directly specify type for TransferDataItem
2023-08-24 12:08:12 +08:00
inottn
a661de2482
fix(components): [date-picker] fix the logic of checking the date range (#13377) 2023-08-24 11:20:13 +08:00
Kaine
3e7d3ea7d8
docs(components): add attr version tag (#13641)
1. docs(components): [cascader] add version tag for togglePopperVisible expose

2. docs(components): [color-picker] add version tag for show & hide expose

3. docs(components): [date-picker] add version tag for handleOpen & handleClose method

4. docs(components): [dialog] add version tag for align-center atrr

5. docs(components): [dropdown] add version tag for teleported attr

6. docs(components): [form] add version tag for scroll-into-view-options attr

7. docs(components): [image] add version tag for zoom-rate attr

8. docs(components): [input-number] add version tag for readonly attr

9. docs(components): [menu] add version tag for popper-effect attr

10. docs(components): [message-box] add version tag for append-to attr & message function

11. docs(components): [rate] add version tag for clearable attr

12. docs(components): [select-v2] add max-collapse-tags attr

13. docs(components): [select] add version tag for collapse-tags-tooltip & placement

14. docs(components): [table] fix show-overflow-toolip attr version tag

15. docs(components): [time-picker] add version tag for handleOption & handleClose expose

16. docs(components): [tree-v2] add version tag for item-size attr

17. docs(components): [tree] add version tag for empty slot
2023-08-24 07:43:05 +08:00
inottn
1211312491
fix(components): [select] fix the logic of updating selected data (#13374)
* fix(components): [select] fix the logic of updating selected data

* chore: improve judgment condition
2023-08-23 21:00:31 +08:00
Hefty
788e27eaf4
refactor(components): [upload] remove useless useSlot (#14053)
refactor(components): [upload] remove useless useSlots
2023-08-23 17:34:05 +08:00
btea
c6515e09c0
chore: format code (#14037) 2023-08-23 10:33:16 +08:00
qiang
9cee96751c
fix(components): [dropdown] adjust onItemLeave trigger (#13212)
fix(components): trigger focus change when the trigger includes hover

closed #13131
2023-08-22 21:38:05 +08:00
zepeng
bb2cf0bfe9
chore(docs): updating the implementation of the theme switch button (#14014)
* chore(docs): updating the implementation of the theme switch button

* chore(docs): updating the implementation of the theme switch button

* chore(docs): updating the implementation of the theme switch button
2023-08-22 16:40:26 +08:00
wzc520pyfm
37f40dc9cc
docs(components): [select] use new display tag (#13301)
* docs(components): [select] use new display tag

* docs(components): [select] description and comment begins in lower case

* docs(components): [select] update type of prop and event
2023-08-21 21:08:24 +08:00
btea
da2a0e5e81
chore: add node compatibility badge (#13986) 2023-08-21 20:59:25 +08:00
0song
e04981792d
chore: update readme (#13988) 2023-08-20 20:17:14 +08:00
btea
e69f322b36
chore(components): [autocomplete] fix the comment description error (#13979) 2023-08-18 21:26:33 +08:00
kamesan012
b8e474089b
fix(components): fix the attribute conflict (#13504)
* fix(components): fix the attribute conflict

When value is input by shortcut, it's value will not be changed by defaultTime anymore

closed #13483

* fix(components): change param to pass the test

* fix(components): delete unnecessary changes

* fix(components): use let to replace ref variable

* fix(components): add test cases
2023-08-15 23:02:45 +08:00
一只前端汪
95e411ee08
fix(components): [radio checkbox] fix click event triggered twice (#13936)
fix(components): [radio checkbox] @click event triggered twice
2023-08-15 21:44:21 +08:00
dopamine
c731027f9b
fix(components): [table-v2] calculate the width of MainTable in the same way (#13584)
* fix(components): [table-v2] calculate the width of MainTable in the same way

* fix: duplicate properties
2023-08-15 21:01:46 +08:00
btea
4315f02362
test: [button] add comment resolve ts error (#13965)
* test: [button] add comment resolve ts error

* chore: update comment
2023-08-15 19:23:08 +08:00
zepeng
665cc59b19
fix(components): [tree-v2] modify the condition for when the value of currentKey is 0 (#13935)
* modify the condition for when the value of currentKey is 0

* add a test case

* add a test case

* add a test case

* Update packages/components/tree-v2/__tests__/tree.test.ts

Co-authored-by: btea <2356281422@qq.com>

* Update packages/components/tree-v2/__tests__/tree.test.ts

Co-authored-by: btea <2356281422@qq.com>

* Update packages/components/tree-v2/__tests__/tree.test.ts

Co-authored-by: btea <2356281422@qq.com>

---------

Co-authored-by: btea <2356281422@qq.com>
2023-08-14 12:49:36 +08:00
井柏然
067028ba3c
fix(components): [select] backspace delete disabled option (#11995)
* fix(components): [select] backspace delete disabled option

* fix(components): [select] findLastIndex

* fix(components): [select] simple polyfill findLastIndex in test file

* fix(components): [select] add test for backspace

* chore: lint
2023-08-13 21:41:13 +08:00
arvin
5c1306127f
fix(components): [upload] fix empty array error (#13490)
* fix(components): [upload] fix empty array error

在 components/upload/src/ajax.ts 73 行中,如果data 中key对应的value 是空数组的情况下`if (Array.isArray(value)) formData.append(key, ...value)`报错

* fix: reuse isArray

---------

Co-authored-by: btea <2356281422@qq.com>
2023-08-13 10:23:06 +08:00
Karolis_Stoncius_Sneakybox
b9a8879e06
fix(components): [table] add table selection checkbox aria-labels (#13908)
When checkboxes have no label, it causes accessibility issues. This commit adds aria-labels to
table's selection checkboxes
2023-08-12 13:35:58 +08:00
ZheGuangLi
7e81efd999
fix(components): fix the problem that chrome 72 table doesnotdisplaydata (#10640)
Fix the problem that the chrome 72 tab table does not display data. This is caused by the fact that
the extension operator becomes an empty object in a special scenario

BREAKING CHANGE :
The writing method of shallow copy is replaced

closed #8770,#9071,#7038

Co-authored-by: btea <2356281422@qq.com>
2023-08-12 10:00:45 +08:00
Jackie
9b75335c39
docs(components): [form] modify props description (#13950)
* docs(components): [form] update prop's type

* fix(components): [form] modify props description

---------

Co-authored-by: lvjiaqi <lvjiaqi@itcast.cn>
2023-08-11 21:17:53 +08:00
btea
a8324ca421
refactor: [date-picker] rename time-arrow-control (#13651)
* refactor: [date-picker] remove time-arrow-control

* docs: rename time-arrow-control
2023-08-11 20:51:34 +08:00