Commit Graph

2701 Commits

Author SHA1 Message Date
Delyan Haralanov
76a586d62e fix(components): [tag] make stubbed Transition work in tests (#18928) 2024-11-20 20:59:30 +08:00
qiang
b80744c045 fix(components): [image-viewer] unable to capture focus (#17919)
* fix(components): [image-viewer] unable to capture focus

closed #7180

* fix: error

* fix: style

* fix: add release-requested
2024-11-20 09:33:59 +08:00
thinkasany
55dd94b395 fix(types): improve styles type by CSSProperties (#18942) 2024-11-19 21:21:28 +08:00
DDDDD12138
b724f7f87a feat(components): [notification] add support for message as a Function (#18558)
* feat(components): [Notification] add support for message as a Function

* feat: add example of Notification with VNode

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

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

* feat: update version

---------

Co-authored-by: btea <2356281422@qq.com>
2024-11-19 15:15:28 +08:00
sea
768f5999f8 improvement(components): [tooltip] dom ref types (#18923) 2024-11-17 14:14:25 +08:00
sea
300b58c548 fix(components): [select] keep the selected label (#18549)
* fix(components): [select] keep the selected label

* style: op code & fix eslint warn

* fix: update

* feat: update cu
Co-authored-by: dopamine <coderzyou@gmail.com>

* feat: update cu

Co-authored-by: dopamine <coderzyou@gmail.com>

* feat: update cu

Co-authored-by: dopamine <coderzyou@gmail.com>

* update select.test.ts

Co-authored-by: dopamine <coderzyou@gmail.com>

* chore: delete useless code

---------

Co-authored-by: dopamine <coderzyou@gmail.com>
2024-11-17 14:06:44 +08:00
jiaxiang
e0777ef567 feat(components): [tree-v2] add props.class prop (#18911)
* feat(components): [tree-v2] allow tree node to have customizable class

* docs: update docs

* docs: add demo

* docs: update

* fix: update
2024-11-16 23:44:06 +08:00
betavs
f0f578d713 fix(components): [table] repeat setting the height style (#16054) 2024-11-15 09:30:51 +08:00
Manshu Tusker
0cc526e1c1 fix(components): [select-v2] resolve overlap of tags and placeholder (#18388)
* fix(components): [select-v2] resolve overlap of tags and placeholder

closed #18382

* Update packages/components/select-v2/src/useSelect.ts

ok

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

---------

Co-authored-by: btea <2356281422@qq.com>
2024-11-14 21:24:48 +08:00
qiang
343cacf5cc fix(components): numpadEnter does not work like the Enter (#18855) 2024-11-14 21:14:51 +08:00
Harry Li
6a3dccaad8 feat(components): [description-item] add labelWidth prop (#18673)
* feat(components): [description-item] add labelWidth prop

* feat(docs): [description-item] add labelWidth prop in api

* feat(components): [descriptions] add test code for

* fix(components): [descriptions] more maintainable width compute

* feat(docs): [descriptions] add version tips for label-width prop

* feat(docs): [descriptions] update label-width support version

* chore: code format

* feat(components): [descriptions] add labelWidth to descriptions

* feat(components): [descriptions] add test code for labelWidth

* feat(components): [descriptions] add docs for new labelWidth props

---------

Co-authored-by: warmthsea <2586244885@qq.com>
2024-11-13 17:34:37 +08:00
Stephen.K
9e763f77fa fix(components): time-picker disabled-[hours/minutes/seconds] (#13364) (#14216)
* fix(components): time-picker disabled-[hours/minutes/seconds] (#13364)

* feat(components): callback compareDate not support range time picker

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-11-13 17:10:19 +08:00
ToyCat93
90c45e108d fix(components): [pagination] input style loss (#18878) 2024-11-13 10:33:14 +08:00
蓝桥春雪
62bade4fda fix(components): [select & select-v2] status-icon is invalid (#18101)
fix(components): [select & select-v2] The check result icon is still displayed when status-icon is false

Co-authored-by: 蓝桥春雪 <yj.wang3@sinitek.com>
2024-11-12 20:17:29 +08:00
sea
84f5d6f13a fix(components): [select] getValueIndex empty error (#18867)
* fix(components): [select] getValueIndex judgment error

* feat: update
2024-11-12 15:57:27 +08:00
DDDDD12138
4f04bcd46f feat(components): [select] add offset and show-arrow prop (#18837)
feat: add show-arrow prop to control dropdown arrow visibility
2024-11-11 17:10:48 +08:00
xingyixiang
ffb30818cf fix(components): [table] failed to insert tooltip when show-overflow-tooltip is enabled (#18317)
* fix:The namespace of the showOverflowTooltip is invalid.

* fix(components): [scrollbar] multiple rendering

* fix(components): [scrollbar] multiple rendering

* fix(components): [scrollbar] multiple rendering

* Update packages/components/scrollbar/src/bar.vue

Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>

* test(components): [scrollbar] adjusting style attributes

* fix(components): [table] Failed to insert node when show-overflow-tooltip is enabled

* fix(components): [table] Failed to insert node when show-overflow-tooltip is enabled

* fix(components): [table] Failed to insert node when show-overflow-tooltip is enabled

* fix(components): [table] Failed to insert node when show-overflow-tooltip is enabled

---------

Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>
2024-11-10 16:02:34 +08:00
btea
c0f071e464 fix(components): [table] table-layout:auto fixed column misalignment (#18736)
* fix(components): [table] `table-layout:auto` fixed column misalignment

* fix: update

* fix: update

* fix: update

* Update packages/components/table/src/table-header/index.ts

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

* Update packages/components/table/src/table-header/index.ts

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

* fix: lint

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-11-10 14:39:45 +08:00
dopamine
a2ea613317 refactor(components): [select] simplify code (#18810)
* refactor(componetns): [select] simplify code

* apply the suggestion from code review
2024-11-09 08:54:38 +08:00
sea
a7a3b59023 fix(components): [mention] ref dom array order error when list changes (#18787)
* fix(components): [mention] ref dom array order error when list changes

* chore: update index
2024-11-08 21:10:46 +08:00
btea
906141b4d2 improvement: [select] optimize the effect of keyboard switching options (#18773)
* improvement: [select] optimize the effect of keyboard switching options

* fix: apply to select-v2
2024-11-07 21:57:38 +08:00
chenweiyi
3eb734ccc4 feat(components): [skeleton] throttle supports values ​​as object (#17041)
* fix(components): [skeleton] `throttle` property not working

* fix: lint fix

* feat: add func & doc & test

* feat: remove test modify

* feat: increase document examples, improve document descriptions

* fix(components): [skeleton] `throttle` property not working

* fix: lint fix

* feat: add func & doc & test

* feat: remove test modify

* feat: increase document examples, improve document descriptions

* feat: 重构`useThrottleRender`钩子以提高代码可读性和效率

- 简化了对`throttle`参数的判断逻辑,通过`isNumber`函数判断是否为数字
- 将`leadingDispatch`和`trailingDispatch`函数合并为`dispatcher`函数,根据传入的类型判断执行逻辑
- 优化了`watch`回调函数,使用`dispatcher`函数替代重复的判断逻辑

* feat: 写法优化

* feat: 引入`isObject`函数替代原有的`typeof throttle === 'object'`判断方式

* feat: 优化骨架屏文档结构和示例

* feat: 完善文字描述和修改对应的文件名

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

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

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

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

* feat: Optimize code writing

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

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

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

* feat: modify doc

* feat: md

* feat: 补充 useThrottleRender 钩子的测试用例

* feat: 将 SkeletonThrottle 类型移动到hook中, 重命名为 ThrottleType 以提高通用性

---------

Co-authored-by: btea <2356281422@qq.com>
2024-11-07 21:31:16 +08:00
DDDDD12138
38b691093d fix(components): [segmented] invisible active indicator after clearing selection (#18818)
fix(components): [segmented] invisible active indicator after clear
2024-11-07 13:39:54 +08:00
btea
6b5c12b275 feat(components): [select-v2] add append-to prop (#18798)
* feat(components): [select-v2] add `append-to` prop

* docs: update
2024-11-06 08:59:28 +08:00
btea
2cb7d1cb03 fix(components): [mention] keyboard control options not work as expected (#18751)
* fix(components): [mention] keyboard control options not work as expected

* fix: use mousemove instead of mouseenter

* chore: update
2024-11-05 12:42:48 +08:00
DDDDD12138
fe881ff337 fix(components): [picker] fix popup not opening when editable is false (#18767) 2024-11-05 11:32:35 +08:00
Zhong
d59acf696e fix(components): [select] prevent keyboard from deleting disabled option (#18752)
* fix(components): [Select] prevent backspace from delete disabled option

* fix(components): [select] prevent keyboard from deleting disabled option
2024-11-04 15:32:33 +08:00
dopamine
a9f15b6f12 fix: downgrade vue-tsc to 2.0.28 (#18737) 2024-11-01 15:36:10 +08:00
thinkasany
6b1e951368 feat(components): segmented support vertical direction (#18653)
* feat(components): segmented support vertical direction

* fix(components): improve

* fix(components): empty commit

* fix(components): update api to direction

* chore(components): use n.m

* fix(components): improve

* fix(components): fix

* fix(components): fix

* Update docs/examples/segmented/custom-direction.vue

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

* Update docs/examples/segmented/custom-direction.vue

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

* fix(components): lint fix

---------

Co-authored-by: btea <2356281422@qq.com>
2024-10-31 22:52:43 +08:00
jiaxiang
dab6b73040 refactor: replace type checking with built-in functions (#18720)
* refactor: replace typeof string with the built-in isString

* refactor: replace typeof boolean with the built-in isBoolean

* refactor: replace typeof undefined with the built-in isUndefined

* chore: style

* chore: style
2024-10-31 09:21:21 +08:00
jiaxiang
eb899f0702 refactor: replace typeof number with the built-in isNumber (#18706)
* refactor: replace typeof number with the built-in isNumber

* style: format
2024-10-30 14:54:49 +08:00
jiaxiang
36bd70670e refactor: replace typeof fn with the built-in isFunction (#18705) 2024-10-30 08:42:04 +08:00
qiang
a6430f5b98 fix(components): [select] error parameters of getValueIndex (#14173)
* fix(components): [select] error arguments of getValueIndex

closed #14139 #18247

* test: fix test

* style(components): [select] optimize code format
2024-10-29 14:43:24 +08:00
Jungzl
7bba5332f1 chore: update dependencies (#18573)
* chore: update dependencies

typescript: v5.5
vue-tsc: v2
eslint: v8-latest
@commitlint/*: v18

* fix: apply suggestions

* fix: ignore some ts errors
2024-10-29 10:01:58 +08:00
jiaxiang
10fcc59ed4 refactor: replace Array.isArray with the built-in isArray (#18671)
chore(components): [descriptions] isArray replace Array.isArray
2024-10-28 15:36:44 +08:00
jiaxiang
36193cc8d9 fix(components): [slider] no render popper dom when showTooltip is false (#18667)
refactor(components): [slider] no render popper and showTooltip is false
2024-10-27 14:38:21 +08:00
Zhong
d7dfce37e7 chore(components): [tour] remove redundant check for 'open' variable (#18668)
refactor(components): [tour] remove redundant check for 'open' variable

The check for 'open.value == true' was unnecessary since 'open' is already verified to be non-null
earlier in the code.
2024-10-27 14:32:08 +08:00
qiang
845c07adef feat(components): [date-picker] accessibility enhancement (#18109)
* feat(components): [date-picker] accessibility enhancement

closed #14150

* docs: update

* test: add test

* chore: change prevent to passive

* fix: long press the clear icon to open the time panel

* fix: cannot read $el

* fix: cannot read $el

* docs: updata
2024-10-27 12:14:53 +08:00
jiaxiang
db2cc84d54 chore(components): [descriptions] optimize the labelAlign (#18644)
refactor(components): [ElDescriptionsCell] optimize the labelAlign
2024-10-23 14:22:46 +08:00
momei
dc7a7aa91b fix(components): [tree] highlight the corresponding node after data reset (#18578)
* fix(components): [tree] keep it highlighted when the tree reset

* fix(components): [tree] add test case
2024-10-23 12:26:07 +08:00
btea
60b899d9bc feat(components): [date-picker] add show-now prop (#18625) 2024-10-23 08:53:48 +08:00
btea
1c1b2743a1 fix(components): [table-v2] header rendering is misplaced (#18628)
* fix(components): [table-v2] header rendering is misplaced

* fix: update

* fix: update

* fix: update
2024-10-23 00:17:02 +08:00
DDDDD12138
e671076556 chore: fix typo in messageBox.ts comments (#18612) 2024-10-21 19:58:42 +08:00
btea
2a9c6dacdc fix(components): [segmented] no option to not render (#18509) 2024-10-17 18:47:51 +08:00
betavs
247d29cf9a fix(components): [select-v2] data echo abnormality (#18334) 2024-10-17 09:42:33 +08:00
Lo
5917190205 feat(components): [input] show pwd visible icon when the input is readonly (#18458)
feat(components): [input] show pwd visible icon when input is readonly
2024-10-15 13:35:34 +08:00
zeyong tsai
048482bcb2 perf(components): [table] body render performance optimize (#18535)
refactor(components): [table] body render performanceoptimize

Co-authored-by: zeyong.cai <zeyong.cai@xquant.com>
2024-10-13 13:11:45 +08:00
betavs
88bf23e4b1 fix(components): [dropdown-item] remove redundant attributes (#18340) 2024-10-13 08:44:44 +08:00
btea
ed9bb12ef8 fix(components): [table] the last column shuld not allow drag (#18444) 2024-10-11 18:42:24 +08:00
sea
1f82e8ca61 feat(components): [select & select-v2] explicit export selectedLabel (#18350)
* feat(components): [select] export selectedLabel

* docs: update

* docs: update th

* docs: update selectedLabel version
2024-10-11 13:48:12 +08:00