Commit Graph

4805 Commits

Author SHA1 Message Date
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
uxuip
564476b064
feat(components): [card] add body class (#11869)
* feat(components): [card]  add body class

* fix(components): [card] remove default value

* fix(components): [card] modify description
2023-08-10 22:23:04 +08:00
井柏然
3245b4e79f
fix(components): [autocomplete] tooltip offset (#12216)
* fix(components): [autocomplete] tooltip offset

* fix(components): [autocomplete] remove nextTick
2023-08-10 22:15:06 +08:00
Fl
6d4b81e290
test(components): add test case for delay of dialog (#13773) 2023-08-10 22:09:19 +08:00
Tommy
b055a0759d
fix(docs): [table-v2.md] corrected en-US grammar, spelling, readability (#13900)
* fix(docs): [table-v2.md] corrected en-US grammar, spelling, readability

* fix(docs): [table-v2.md] resolved feedback

* fix(docs): [table-v2.md] resolved feedback, further improvements
2023-08-10 07:09:02 +00:00
btea
7663040722
refactor(components): [table] reuse rAF (#13918) 2023-08-10 11:50:15 +08:00
cc-hearts
74e237ce5c
fix(components): [select] fix set value error(#13872) (#13879) 2023-08-10 11:43:17 +08:00
tiansQAQ
c6a6d9bc6e
refactor(components): [form-label-wrap] use getStyle method (#13913) 2023-08-09 20:52:03 +08:00
Rhon Joe
ec639c4d14
docs: fix official migration reference link (#13911)
fix(docs): fix official migration reference link
2023-08-09 13:41:50 +08:00
btea
dc6224d274
feat(ci): enable provenance (#13901) 2023-08-08 21:44:01 +08:00
btea
c886ba44b1
test(components): [tree] custom label and children test case (#13902) 2023-08-08 19:38:22 +08:00
zepeng
b10eae152c
fix(components): [tree] the issue with retrieving childrenKey (#13798)
* fix(components): [tree] the issue with retrieving childrenKey

* Update tree-node.vue

* Update tree-node.vue
2023-08-07 21:31:43 +08:00
btea
b4927b0d86
feat(ci): enable provenance (#13799) 2023-08-07 19:30:58 +08:00
Jungzl
40b607f9ac
docs(components): [pagination] correct text & icon priority (#13743)
* docs(components): [pagination] correct text & icon priority

* docs(components): [pagination] improve description
2023-08-07 10:13:58 +08:00
Evan Liu
f2b6e1eb2b
chore(components): [date-picker] correct typo in test file (#13876) 2023-08-06 09:27:55 +08:00
btea
82c7de1e77
docs: fix example ts error (#13849) 2023-08-04 21:22:13 +08:00
Element
a2ade9e1f5
chore: Update changelog 2.3.9 (#13870)
chore: update changelog 2.3.9
2023-08-04 07:42:28 +00:00
init-qy
fe10f7edc0
fix(components): [select] clearIcon did not work with form statusIcon (#13533)
* fix(components): [select] clearIcon not effect with form statusIcon

* fix(components): [select] add computed value

* fix(components): [select] add comment message

* fix(components): [select] add missing import

* refactor: [select] place selectTagsStyle in useSelect

* fix: [select] remove unused export

* fix: compress code

* fix: fix error
2023-08-04 13:19:27 +08:00
btea
ff87efdb95
docs: logo and parallax add drop-shadow (#13833) 2023-08-03 21:37:36 +08:00
qiang
0109ab6195
fix(components): [select] abnormal focus when click tags (#13699)
* fix(components): [select] abnormal focus when click tags

closed #13665

* fix(components): [select] clearable

* chore(components): [select] remove console

* fix: the setTimeout function may bring some side effects

* fix: remove role

* test(components): [select] add some test
2023-08-03 20:15:57 +08:00
kooriookami
3ba7babc74
Doc/figma (#13804)
* docs: update resource page

* docs: update

* docs: update

* docs: update
2023-08-03 16:55:02 +08:00
zepeng
aa74616721
fix(components): [avatar] set img tag's width attribute (#13844) 2023-08-03 16:51:58 +08:00
acyza
69dcee0a51
fix(components): [cascader] checkbox sync error (#11462)
* fix(components): [cascader] sync error

* fix(components): [cascader] checkbox sync error
2023-08-02 19:22:36 +08:00
btea
18c1c77030
docs(components): [switch] add version tag & fix typo (#13771)
* docs(components): [switch] add version tag & fix typo

* chore: add tag
2023-07-31 18:21:42 +08:00