Commit Graph

3634 Commits

Author SHA1 Message Date
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
sea
70b5d4fa9d
fix(theme-chalk): sass !global assignments deprecation warning (#18711)
fix(theme-chalk):  `!global assignments` deprecation warning

Co-authored-by: btea <2356281422@qq.com>
2024-11-05 10:46:46 +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
thinkasany
6962715993
chore: upgrade dayjs from 1.11.3 to 1.11.13 (#18765)
* chore: upgrade dayjs from 1.11.3 to 1.11.13

* chore: rerun ci

* chore: fix ci
2024-11-04 14:40:35 +08:00
ddeerdevil
2a032217c7
fix(utils):[vue] ensure flattedChildren traverse component's subTree (#18649)
* fix(utils):[vue] 在h函数中组件的chidlren是数组时,会导致tabs等组件渲染错误

* fix(utils):[vue] add flattedChildren tests & fix lint error

* test(utils): [vue] fix tests's lint errors(element-plus:#18649)
2024-11-02 21:00:55 +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
e306995707
fix(components): [select-v2] group label overflow hidden (#18551)
fix(components): [select-v2] overflow hidden
2024-10-28 17:29:44 +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
Liao-js
72c3ce1eea
style(components): [popper] popper border error (#18635) 2024-10-27 17:38:01 +08:00
qiang
f2a65850b4
fix(hooks): [useId] SSR hydration error caused by id in vue@3.5+ (#18647) 2024-10-27 15:49:43 +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
Meet you
0e8454a99e
refactor(theme-chalk): update Sass functions to prep for 3.0.0 (#18579)
* refactor(theme-chalk): update Sass functions to prep for 3.0.0

Replaced deprecated global built-in functions with the recommended alternatives to avoid future
issues when upgrading to Dart Sass 3.0.0. This change ensures compatibility with newer versions and
removes the warning messages.

* refactor(theme-chalk): update Sass functions to prep for 3.0.0
2024-10-24 21:05:59 +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
sea
e865e82006
revert(components): [table-v2] #18179 & fix header checkbox z-index (#18554)
revert(components): [table-v2]  #18179 & fix header checkbox z-index
2024-10-15 14:43:58 +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
qiang
8908e738e5
fix(components): [select] the blur not triggered when click the outside (#18478)
* fix(components): [select] the blur not triggered when click the outside

closed #18235, #18238

* test: add test
2024-10-11 11:47:35 +08:00
qiang
f23ae6237a
fix(hooks): rendering multiple popper container DOM in SSR/SSG (#18482) 2024-10-11 09:49:23 +08:00
sea
16bb0b7df1
fix(components): [select] use blur in the tooltip slot has no effect (#18335)
* fix(components): [select] use `blur` in the tooltip slot has no effect

* fix(components): [select-v2] use `blur` in the slot has no effect

* feat: delete useless code
2024-10-09 22:48:28 +08:00
Summer
bd245cabdc
feat(components): [mention] explicit export dropdownVisible (#18460)
* feat(components): [mention] explicit export dropdownVisible

* feat(components): [mention] mention component docs update

* docs: unify format

---------

Co-authored-by: warmthsea <2586244885@qq.com>
2024-10-09 21:56:08 +08:00
Summer
7e4682a2ee
fix(components): [mention] native event triggered twice (#18453) 2024-10-09 21:54:50 +08:00
Maiko Sinkyaet Tan
e3d01558fa
feat(i18n): update germany translations (#18447) 2024-10-08 11:19:22 +08:00
btea
ef822ded7a
fix(hooks): [lockscreen] compatible with document non-existence (#18445) 2024-10-04 21:59:47 +08:00
btea
27e0c496e8
fix(components): [table] cancel layout update when component unmount (#18440) 2024-10-04 09:24:45 +08:00
Lo
86b01eed9f
fix(components): [transfer] render the option's label correctly when there's only an empty comment in the default slot (#18416)
* fix(components): [transfer] render the option's label correctly

* fix(components): [transfer] update following review advice and add tests

* test(components): [transfer] update test suits name
2024-10-02 16:17:37 +08:00