Commit Graph

3083 Commits

Author SHA1 Message Date
btea
685c396524
refactor(components): [select] use utils function (#14345) 2023-09-27 09:08:13 +08:00
mioxs
62a11089b0
fix: cannot find type definition file for element-plus/global (#13698)
* fix:Cannot find type definition file for 'element-plus/global'

* Update package.json

* Update package.json

---------

Co-authored-by: btea <2356281422@qq.com>
2023-09-22 21:01:09 +08:00
Hefty
bfff514f77
refactor(components): [tabs] enhance instance type (#14352)
* refactor(components): [tabs] enhance instance type

1. exports Tabs instance type

2. add expose type to TabNavInstanec

* chore: remove useless import
2023-09-22 10:20:46 +08:00
Chen juan
99e8736c6a
feat(components): [form-item]Label attribute for judging modification (#14344) 2023-09-21 11:27:15 +08:00
Henry Guo
3c0a0aa0ad
test(components): [teleport] Fixed spelling error ElTelport to ElTelepot (#14337)
In the teleport test file, changed "describe('ElTelport'" to "describe('ElTeleport'".

closed only spelling error

Co-authored-by: guohenghai <guohenghai@126.com>
2023-09-20 17:07:50 +08:00
btea
db16e31489
feat(components): [tabs] add addIcon slot (#12970)
* feat(components): [tabs] add addIcon slot

* docs: add example

* docs: update tabs.md

* chore: add version tag
2023-09-19 13:33:33 +08:00
dopamine
625b4ad0a8
refactor(descriptions): improve types (#14313)
* refactor(descriptions): improve types

* use buildProps
2023-09-19 10:47:08 +08:00
Mario34
35082b08ed
fix(components): [tabs] Fix some events accidentally firing (#14224) 2023-09-19 08:01:45 +08:00
Stephen.K
1601369458
fix(components): row-class-name bgColor can not cover fixed column (#14225) 2023-09-18 12:07:23 +08:00
Hill
820e5a6b20
test(components): [button] fix typos in test description (#14314) 2023-09-18 08:47:36 +08:00
Karolis_Stoncius_Sneakybox
02905e42bf
fix(components): [collapse] fix triggering form action when inside it (#14308)
When el-collapse with el-collapse-item is placed inside a form and the collapse trigger btn is
pressed, form's action as triggered. This fixes it

closed #14304
2023-09-17 10:27:37 +08:00
云游君
8e1997626c
feat: add menu horizontal height for img center (#14307) 2023-09-16 15:57:33 +08:00
SaberA1ter
14c43ca59f
fix(components): [carousel] Watch items causing state loss(#13010) (#13011)
* fix(components): [carousel] Watch items causing state loss(#13010)

* perf(components): [carousel] Using the third parameter of watch(#13010)

---------

Co-authored-by: ZZQChongYa <zhengziqiang@star-net.cn>
2023-09-16 09:27:12 +08:00
Hefty
0f2699008d
fix(components): [menu] export MenuInstance (#14284)
* fix(components): [menu] export MenuInstance

closed #14251

* chore: export other component instance

* refactor: extract instace type to instance file
2023-09-16 09:25:00 +08:00
Hefty
09bb91abef
fix(components): [input] missing autofocus types (#14246)
* fix(components): [input] missing autofocus types

closed #14243

* fix: autofocus default to false
2023-09-14 10:25:51 +08:00
GU Yiling
6e24736f89
fix(components): [date-picker] month range should emit calendar-change (#14262) 2023-09-13 16:53:11 +08:00
Karolis_Stoncius_Sneakybox
d791229a6a
fix(components): [collapse] fix accessibility issues (#13832)
Using tab related aria attributes results in accessibility issues
2023-09-12 08:21:35 +08:00
Jeremy
06e85824df
refactor(components): [date-picker] basic-date-table (#10344)
* Extract logic out of basic-date-table file.
2023-09-10 17:50:12 +08:00
Jianjun Yu
d96555fa9c
feat(components): [upload] support async data (#14015)
* feat(components): [upload] support async data

* feat(components): [upload] support async data

* fix(components): [upload] unit test

* fix(components): [upload] unit test

* feat(components): [upload] update data docs

* fix(components): [upload] unit test

* chore: add version

---------

Co-authored-by: Hefty <yeyuqiudeng@gmail.com>
2023-09-08 15:57:05 +08:00
wonderl17
82e9d07607
fix(components): [color-picker] first click should be trigger (#14209) 2023-09-08 15:30:07 +08:00
Karolis_Stoncius_Sneakybox
c7021b31ed
refactor(components): [date-picker] add aria-labels to date picker btns (#14149) 2023-09-08 11:54:44 +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
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
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
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
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
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
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
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
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
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