Commit Graph

2030 Commits

Author SHA1 Message Date
Kylin
797e39dbe7
chore(components): [select] remove unnecessary assertions (#17893)
perf(components): remove unnecessary assertions
2024-08-14 17:30:31 +08:00
sea
b93e59b065
fix(components): [tree] FireFox dargging dataTransfer judge (#17849)
* feat(components): [tree] FireFox dargging dataTransfer judge

* feat: add remark
2024-08-14 11:47:26 +08:00
qiang
2f69776b30
fix(components): [select] binding click event is invalid (#17876)
* fix(components): [select] binding click event is invalid

closed #17863

* chore: typo
2024-08-14 10:50:23 +08:00
betavs
8c9165a93a
fix(components): [tree] instance type missing (#17882) 2024-08-13 20:28:52 +08:00
qiang
d59cdc9855
feat(components): [mention] accessibility enhancement (#17848) 2024-08-13 17:59:57 +08:00
ntnyq
770ec04694
feat(components): [description] export props types (#17859) 2024-08-13 10:26:06 +08:00
donga-gao
2d6c16fae9
fix(components): [dialog] error calling resetPostion before dialog is rendered (#17855)
fix: [Component][dialog]在dialog显示之前调用dialog.resetPostion()方法会抛异常 #17851

Co-authored-by: gao.dong <gao.dong@bestv.com.cn>
2024-08-13 10:06:38 +08:00
btea
e608456ad2
feat(components): [cascader] support placement & fallback-placements (#17840) 2024-08-12 09:10:58 +08:00
xingyixiang
9aa70ecd4e
fix(components): [date-picker] disabledDate is invalid when selecting year or month picker (#15848)
* fix(components): [date-picker] props.disabledDate is invalid
when selecting year or month picker

* test(components): [date-picker] props disabledDate

* fix(components): [date-picker] props.disabledDate is invalid

* fix: test

* fix: error

* fix: Disable time validation for date selectors of years and months

* fix: test

* fix: [date-picker] props.disabledDate is invalid

* fix: [date-picker] props.disabledDate is invalid

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-11 19:25:01 +08:00
btea
e815102d70
test(components): default slot test case with type of month or year (#17837) 2024-08-10 11:57:12 +08:00
qiang
dc8cb90130
fix(components): [input] blur event fails when using textarea (#17836)
closed #17825
2024-08-10 11:02:28 +08:00
知晓同丶
5973402fc0
fix(components): [dialog] appendTo type error (#17814)
closed #17810
2024-08-09 12:55:39 +08:00
知晓同丶
839a702af7
feat(components): [date-picker] add icon slots (#17453)
* feat(components): [date-picker] add icon slots

* chore: update date-picker.md

* feat: add `prev-year`、`next-year` with year range

* Apply suggestions from code review

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-09 12:53:26 +08:00
lyric-zemin
d608f25170
fix(components): [date-picker] Return to normal when reopened (#11802)
* fix(components): [date-picker] Return to normal when reopened

closed #11612

* fix(components): [date-picker] Return to normal when reopened

* test(components): [date-picker] update test

* fix: repeatedly calling the onReset function

---------

Co-authored-by: wu.zeMin <244@qq.com>
Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-09 12:49:14 +08:00
btea
2c1b1ca62c
fix(components): [date-picker] slot not take effect when type is month (#17748)
* fix(components): [date-picker] slot not take effect when type is month

* feat: type year support slot

* fix: type

* fix: update

* style: update

* fix: test
2024-08-09 11:15:53 +08:00
myron
0ef4b492b8
fix(components): fixed add listeners not remove on beforeunmount (#17344)
* fix(components): fixed add listeners not remove on beforeunmount

* docs(ci):  close vue hoistStatic mode compile

* Update packages/components/popper/src/trigger.vue

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

* Update packages/components/time-picker/src/common/picker.vue

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

* Update packages/components/tooltip/src/content.vue

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

* Update packages/components/tooltip/src/content.vue

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

* Update packages/components/popper/src/trigger.vue

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

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

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

* Update packages/components/popper/src/trigger.vue

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

* ci: update full bundle vue compiler config, fixed hoistStatic error

* style: eslint fix

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-09 09:40:20 +08:00
Manshu Tusker
7c9414a3c7
fix(components): [statistic] fix excessive decimals when value is NAN (#17798)
fix(components): [statistic]Fix excessive decimals when value is NAN

When the value is NAN, correct the display issue that shows unnecessary decimal points.

closed #17784
2024-08-08 19:38:35 +08:00
Robert Zeng
8692965e80
feat(components): [date-picker] add type yearrange for DatePicker (#14804)
* fix(components): fix bug #14637

* refactor(components): [el-button]update props autoBlur name

* docs(components): [el-button] update docs ablout props clickAutoBlur

* fix(components): [date-picker]  fix bug  #14728

* feat(components): [date-picker] add yearrange

* feat(components): [date-picker] update yearrange codes

* feat(components): [date-picker]fix select range ui bug

* refactor(components): [date-picker]convert setup() to setup, add TS type

* refactor(components): refactor pane-year-range

* refactor(components): [date-picker] refactor panel-year-range styles

* docs(components): [date-picker] update year-range docs #6388 #2487 #7051

* style(components): [date-picker] remove repeat css

* feat(components): [date-picker]add yearrange unit test

* fix(components): [date-picker] fix  unit test case failed error

* fix(components): [date-picker] resolve some pr problems

* docs(components): [yearrange] update docs

* fix(docs): [yearrange] update example of year-range

* refactor(components): [date-picker] resolve some code review suggestions

* fix(components): [date-picker] resolve some CR problems

* refactor(components): [date-picker] resolve some CR conversations

* refactor(components): [date-picker] uniform date compute logic

* fix(components): [date-picker] error occurs when mannul input the date

* refactor(components): [date-picker] resolve some CR conversations

* refactor(components): [date-picker] resolve some CR conversations

* refactor(components): [date-picker] resolve some CR conversations

* refactor(components): [date-picker] optimize YearTableClick func

---------

Co-authored-by: 曾咏波 <cherishtheyouth@qq.com>
Co-authored-by: yongbo.zeng_U+ <yongbo.zeng@united-imaging.com>
Co-authored-by: upthen <zyb.6616@icloud.com>
2024-08-08 11:32:58 +08:00
qiang
949479699b
refactor(hooks): determine the focus by event listening (#17719)
* refactor(hooks): determine the focus by event listening

* test: skip the focus test

* test: fix test

* feat(hooks): add beforeFocus

* fix: optimize blur

* chore(components): [mention] remove focus & blur
2024-08-07 18:35:30 +08:00
Liao-js
c1863f508c
fix(components): [upload] remove file when fileList does not use v-model (#16715) 2024-08-07 17:03:26 +08:00
qi
b55163fde7
fix(components): [radio] change not trigger (#17047) 2024-08-07 16:02:02 +08:00
chaoling
61c828f493
feat(components): [upload] added index parameter to default slot (#17143)
* fix(components): add the index attribute to the upload-list component

* docs(components): add the index attribute to the upload-list component

* feat(components): added index parameter to default slot
2024-08-07 15:48:13 +08:00
锌小子
b29d82f4e7
fix(components): [select] equal objects cannot destroy instances (#17214)
fix(components): [select]

support value of  type of object

closed #17209

Co-authored-by: zhangdong <a80369@gree.com.cn>
Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-07 15:45:48 +08:00
dopamine
79938178dd
build: use vue-tsc to generate dts (#16111)
* build: use vue-tsc to generate dts

* reduce inline type declaration

* fix: type checking failed

* apply suggestions from code review

* address PR comments
2024-08-07 12:01:46 +08:00
qiang
d9ec05749d
refactor(components): [select] cancel type conversion at initialization (#17606)
* refactor(components): [select] cancel type conversion at initialization

* fix: options

* chore: optimized code

* docs: update
2024-08-07 11:53:48 +08:00
Aaron-zon
50ba6c2c77
fix(components): [select] with teleported="false" dropdown closes abnormally (#17548)
* fix(components): with teleported=false dropdown closes abnormally

* fix: test error

* fix: test error

---------

Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-07 11:44:03 +08:00
Simon He
96a081b755
chore(components): [dropdown] format (#10465)
refactor(components): [dropdown]

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-06 22:14:45 +08:00
mashuo
811a2f75cf
fix(components): add class name and disable style when disabling upload (#17753)
* fix(components): add class name and disable style when disabling upload

closed #17746

* style(components): hover and focus styles when the upload is disabled

* style(components): hover and focus styles when the upload is disabled

closed #17746

* style(components): simplifiser CSS-stiler

When disabling upload, use "pointer events" to unfocus the mouse and set "tabindex" to -1 to unfocus
the tab

closed #17746

* style(components): disable upload status and set focus style

closed #17746

* style(components): disable upload status and set focus style

closed #17746

* style(components): disable style for upload component

Add background color and text color for disabled status and add disabled attribute to input.

closed #17746
2024-08-06 20:38:41 +08:00
donga-gao
77920735cc
feat(hooks): use-draggable support resetPostion (#17699)
* feat(hooks): use-draggable support resetPostion

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

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

* fix: lint

---------

Co-authored-by: gao.dong <gao.dong@bestv.com.cn>
Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-06 17:11:59 +08:00
xuan
9f891192e6
fix(components): [tree] check isLeaf using lazy and default-expand-all (#17585)
fix(components): check isLeaf using lazy and default-expand-all

Fixes the issue where the isLeaf parameter was not checked when using lazy and default-expand-all.

In the current implementation, when default-expand-all is set to true and lazy loading is enabled,
the ElTree component expands nodes without considering the isLeaf parameter. This can lead to
unnecessary loading of leaf nodes.

This fix adds a check for the isLeaf parameter to prevent loading children for nodes marked as leaf
nodes.

This fix improves performance and avoids unnecessary network requests or data processing for nodes
already known to be leaf nodes.

BREAKING CHANGE :
There are no breaking changes introduced by this fix.

closed None.
2024-08-06 16:56:01 +08:00
thinkasany
785761ab89
chore(utils): improve setTimeout type (#17763)
* chore(utils): improve setTimeout type

* revert
2024-08-05 21:10:14 +08:00
daoyi.tian
48dfe3a69a
feat(components): [table] tree children add check strictly (#13519)
* feat(components): [table] tree children add check strictly

* fix(components): [table] remove utils console

* fix(components): [table] error of selector state

* docs: update

* fix: remove unnecessary changes

* fix: the toggleRowStatus has not been processed to selectable

* docs: update

* fix: the rowIndex error

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-05 12:10:17 +08:00
qiang
ef54dfbb35
feat(components): [drawer] add append-to (#17761) 2024-08-05 11:32:48 +08:00
qiang
270e1d01ba
fix(components): SSR hydration error caused by disabled prop of teleport (#17551)
* fix(components): sSR hydration error caused by disabled prop of teleport

* fix(components): [teleport] type error

* chore: type error
2024-08-04 13:50:09 +08:00
Robert Zeng
968182a65e
fix(components): [date-picker] clear button repeatedly triggers update:model-value (#17274)
* fix(components): [date-picker] fix #14752

* fix(components): [date-picker] optimize clear logic to fix #14752

---------

Co-authored-by: upthen <zyb.6616@icloud.com>
2024-08-04 11:41:22 +08:00
Lov`u`e
5d1ceaa856
fix(components): [slider] click on marks is inaccurately positioned (#15332)
* fix(components): [slider] click on marks is inaccurately positioned

closed #15330

* fix(components): [slider] inconsistent behavior in range mode

* refactor(components): [slider] simplify logic with setPosition method

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-04 10:46:48 +08:00
Masanori Doizaki
76b0ab0a5d
fix(components): [date-picker] fix user input error in monthrange (#12943)
* fix(components): [date-picker] monthrange类型选择器在输入结束后报错

* fix: the format change

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-03 21:39:42 +08:00
zwgwf
94a24dcbc8
refactor(components): [image-viewer] optimise translate calc method (#13157)
* Use trigonometric functions to calculate translate, which can support any angle
2024-08-03 20:08:08 +08:00
wzc520pyfm
d94aa4cdb5
fix(components): [abort popper] fix effect type error (#17758)
closed #17751
2024-08-03 10:37:21 +08:00
Kaine
333e1f9c42
feat(components): [tree-v2] add scrollTo method (#14050)
* feat(components): [tree-v2] add scrollTo method

* docs(components): [tree-v2] scrollTo method

* refactor(components): [tree-v2] rename strollToNode

1. expose scrollTo from listRef

2. rename scrollTo to scrollToNode

3. add test

4. change docs

* docs(components): [tree-v2] add version tag
2024-08-02 20:16:32 +08:00
知晓同丶
aceefd7a24
fix(components): [image] cannot trigger event when image is loaded error (#17692)
* fix(components): [image] cannot trigger event when image is loaded error

closed #17540

* fix: use `excludeListeners` to exclude event listeners

* refactor: optimize code

* fix: replace exclude with pick

* refactor: pick container attrs

---------

Co-authored-by: zhixiaotong <947803089@qq.com>
2024-08-02 17:59:59 +08:00
kooriookami
0f8282520f
chore(components): remove deprecated 2.8.0 (#17735)
* chore(components): remove deprecated 2.8.0

* chore(components): update
2024-08-02 11:08:24 +08:00
赵添
0456c790db
feat: add mention component (#17586)
* feat: add mention component

* fix: build error

* fix: build error

* feat: delete as a whole

* fix: update docs

* fix: update global.d.ts

* fix: update

* fix: update code

* fix: update code

* fix: update code

* fix: rename

* fix: update code

* fix: upload code

* fix: update code

* fix: fixed cursor position abnormality

* fix: update code

* fix: docs add avatar

* fix: tooltip position is wrong when placing on top

* feat: add overview icon

* fix: overview icon color
2024-08-02 11:00:26 +08:00
tangyongjie
76ee10ab69
refactor(components): [slider]optimize ts types (#17292)
* refactor(components): [slider]Optimize ts types

* refactor(components): [slider]fix type check error

* refactor(components): [silder]optimize ts types
2024-08-01 18:59:58 +08:00
qiang
0670bba618
feat(components): [color-picker] alpha-slider a11y (#14245)
* feat(components): [color-picker] alpha-slider a11y

* feat(components): [color-picker] support for adjust step through shift

* feat(components): [color-picker] focus
2024-07-31 15:54:14 +08:00
dopamine
f12b020338
fix(components):[tabs] reactive objects may lose reactivity in label slot (#14135) 2024-07-30 20:11:43 +08:00
wzc520pyfm
a9b91d1f0f
fix(components): [select-v2] corrent focus to input when select clicked (#17362)
* fix(components): [select-v2] fix remote init

remote-search scenarios shoule be not initialized

* Revert "fix(components): [select-v2] fix remote init"

This reverts commit d8326888e3df96dee482b9c8098738bc698215af.

* fix(components): [select-v2] no trigger init-states when filter/remote

* test(components): [select-v2] add test for no init when remote search

* fix(components): [select-v2] add back the necessary condition

* fix(components): [select-v2] correct input focus

input shoule be fouce when click el-select

* fix(components): [select-v2] focus first and then completed taggle-menu
2024-07-30 10:49:46 +08:00
dopamine
ae0439df9f
fix(components): [tabs] optimize SSR (#15183) 2024-07-29 18:01:07 +08:00
betavs
a2323f0bb3
fix(components): [slider] data anomaly when the input value is undefined (#15402)
fix(components): [slider] data anomaly

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-07-29 15:20:04 +08:00
dopamine
c76cc8bc92
fix(components): [table] inaccurate type of toggleRowSelection (#17687) 2024-07-29 13:40:05 +08:00