Commit Graph

396 Commits

Author SHA1 Message Date
thinkasany
4807705579 docs: add placement demo for popover/popconfirm (#20126)
* docs: add placement demo for popover/popconfirm

* fix: update name

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

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

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

---------

Co-authored-by: btea <2356281422@qq.com>
2025-03-15 17:37:25 +08:00
dopamine
2f9da16df8 docs: [scrollbar] tweak horizontal scroll example (#20133)
fix(docs): [scrollbar] tweak horizontal scroll example
2025-03-14 17:09:16 +08:00
EralChen
d410486c07 feat(components): [table-column] preserve expanded content (#19899)
* feat: [table-column] preserve expanded content

* chore: format

---------

Co-authored-by: warmthsea <2586244885@qq.com>
2025-03-13 10:20:07 +08:00
xinconan
25f42aa9d7 feat(components): [alert] add icon slot (#20034)
* feat(components): [alert]add icon slot

* refactor(components): [alert] move default iconComponent into icon slot

* chore: update version

---------

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>
2025-03-09 15:34:11 +00:00
sea
244e811b44 chore(eslint-config): add line-between-blocks rules (#20051) 2025-03-08 08:55:02 +08:00
Spaceman
241a22414c docs(components): [el-tooltip] add example using append-to API (#19943)
* docs(docs): [el-tooltip] Add example using append-to API

* chore: del type

---------

Co-authored-by: warmthsea <2586244885@qq.com>
2025-02-28 18:02:11 +08:00
jiaxiang
ad2cbd2a23 refactor(components): [image] image-viewer standalone use (#19715)
* chore: remove prevent body scroll in image-viewer

* docs: format

---------

Co-authored-by: warmthsea <2586244885@qq.com>
2025-02-25 22:10:34 +08:00
sea
ef8a6bb7df docs(components): [tree] update example style (#19945) 2025-02-24 14:48:54 +08:00
zhuft-moon
d8706b2952 docs(components): [message] add a "Won't close automatically" example. (#19924)
* docs(components): [config-provider] add default values

* docs(components): [message] add a "Won't close automatically" example

* Revert "docs(components): [config-provider] add default values"

This reverts commit 4a9cd67dd8.
2025-02-21 17:47:47 +08:00
sea
bac1a23c27 docs(components): [tree] change customized-node example (#19907) 2025-02-21 10:04:50 +08:00
dengguangmiaoyyds
37f3447eca docs(components): [dropdown] update description and example (#19908)
docs(components): [dropdown]update description and example
2025-02-20 16:42:07 +08:00
DiamondYuan
7700838ed3 feat(components): [cascader] add suggestion slot (#19866)
* feat(components): [cascader] add suggestion-item slot

* docs:  add version to suggestion item slot demo

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

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

---------

Co-authored-by: btea <2356281422@qq.com>
2025-02-18 11:37:18 +08:00
jiaxiang
fe0c724293 docs: [scrollbar] fix type error (#19697)
* docs: [scrollbar] fix type error

* refactor(docs): improve code structure and type annotations in examples

* Update docs/examples/scrollbar/manual-scroll.vue

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

* fix(docs): replace lodash isNumber with typeof check

* fix(docs): update

---------

Co-authored-by: btea <2356281422@qq.com>
2025-02-07 03:00:55 +00:00
jiaxiang
d989617162 docs: [tooltip] fix type error (#19687)
* docs: fix type error

* docs: [tooltip] remove unnecessary width and height in mousemove handler

* fix: update

* fix: update
2025-01-24 15:37:44 +08:00
知晓同丶
462bff18de feat(components): [table] add tooltip-formatter table & table-column prop (#19524)
* feat(components): [table] add `tooltip-formatter` table-column prop

closed #19507

* docs: add example

* docs: demo remove tooltip formatter index

* refactor(components): refactor code

* docs: simpify tooltip demo

* fix: fix warning error

* feat(components): add table tooltip-formatter prop & merge slot

* refactor: reuse variables

* test: add tooltip-formatter test

* docs: upgrade version

* feat(components): [table] add `tooltip-formatter` table-column prop

closed #19507

* docs: add example

* docs: demo remove tooltip formatter index

* refactor(components): refactor code

* docs: simpify tooltip demo

* fix: fix warning error

* feat(components): add table tooltip-formatter prop & merge slot

* refactor: reuse variables

* test: add tooltip-formatter test

* docs: upgrade version

* refactor: change parameter to obj args

* fix: property change to prop

* fix: export `TableOverflowTooltipFormatterData`

* refactor: `TableOverflowTooltipFormatterData` to `TableTooltipData`

* fix: remove useless import

* fix: refactor code

---------

Co-authored-by: btea <2356281422@qq.com>
2025-01-23 20:15:12 +08:00
jiaxiang
c8650d74e2 docs: [input-number] fix type error (#19712) 2025-01-22 23:39:47 +08:00
jiaxiang
42d279f87b docs: [checkbox] fix intermediate example type error (#19713)
docs: [checkbox] fix type error
2025-01-22 09:49:27 +08:00
jiaxiang
049ed2a97c docs: [switch] fix type error (#19704) 2025-01-21 09:18:36 +08:00
jiaxiang
ac9616d128 docs: [tabs] fix type error (#19690) 2025-01-20 11:24:28 +08:00
jiaxiang
0be1872b06 docs: [timeline] fix type error (#19688)
* docs: [timeline] fix type error

* Update docs/examples/timeline/custom-node.vue

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>

* Update docs/examples/timeline/custom-node.vue

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>

---------

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>
2025-01-19 15:36:05 +08:00
jiaxiang
add84b5694 docs: [transfer] fix type error (#19682) 2025-01-18 09:14:33 +08:00
jiaxiang
151fadd951 docs: [tree-v2] fix style error and remove annotation (#19681) 2025-01-18 09:05:25 +08:00
Jiankian
7e819b6762 docs: [menu] left-and-right example style tag add scoped (#19654)
Update left-and-right.vue

防止文档演示项目整页元素布局样式被修改

Co-authored-by: btea <2356281422@qq.com>
2025-01-17 18:10:19 +08:00
jiaxiang
61d5dcc3ae feat(components): [image-viewer] add toolbar slot (#19497)
* feat(components): [image-viewer] add toolbar slot

* feat(docs): add docs

* docs: update

* docs: update

* docs: update image viewer API types for clarity

* docs: update custom toolbar version in image documentation to 2.9.4

* Update docs/examples/image/custom-toolbar.vue

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>

* style: remove dividers

* revert: style

* docs: format

---------

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>
2025-01-17 15:50:44 +08:00
jiaxiang
ac42b639ce feat(components): [image-viewer] add progress slot and show-progress props (#19465)
* refactor(components): simplify computed properties in image-viewer

* feat(components): [image-viewer] add progress number

* test(components): remove console logs from image-viewer tests

* feat(components): [image-viewer] update progress display and style

* test(components): update progress selector in image-viewer tests

* feat(components): [image-viewer] add slot support for progress display

* docs(components): [image] add progress content description

* docs(components): update docs

* feat(components): [image] simplify progress slot binding

* docs(components): update

* Update packages/components/image-viewer/__tests__/image-viewer.test.tsx

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

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

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

* docs: update progress version in image documentation

* Update packages/components/image-viewer/src/image-viewer.vue

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>

* feat: add showProgress props

* docs: add demo

* docs: update v

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

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

---------

Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>
2025-01-16 11:44:35 +08:00
jiaxiang
2f1e8b3a43 feat(components): [image-viewer] add showPreview method (#19466)
* feat(components): [image-viewer] add showPreview method

* docs(components): [image] update showPreview method version to 2.9.4
2025-01-11 21:50:29 +08:00
jiaxiang
c51b0cd4bc docs: [collapse] change event parameter type error (#19539)
* chore: fix handleChange type error

* Update docs/examples/collapse/custom-icon.vue

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>

---------

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
2025-01-07 19:28:04 +08:00
qiang
a03812db54 perf(components): [table] prioritize use rowKey to determine whether it is selected (#19451)
* perf(components): [table] use rowKey to determine whether it is selected

* chore: revert includes

* perf: use includes replace isEqual
2025-01-03 08:14:00 +08:00
伊墨
2c9d70dc94 feat(components): [select-v2] add fit-input-width prop (#18834)
* feat(components): [select-v2] add `width` prop

* feat(components): [select-v2] change `width` prop to `fit-input-width`

* docs(components): add description

* test(components): [select-v2] fix errors caused by canvas

* chore(components): optimize code and change documents

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

* feat: [select-v2] listen for `fit-input-width`

* fix: change the default value of the `fit-input-width` prop

* fix: the width did not change when remote search or creating temporary option

* docs: change document and example code

---------

Co-authored-by: thinkasany <480968828@qq.com>
Co-authored-by: btea <2356281422@qq.com>
2024-12-24 16:39:43 +08:00
阿菜 Cai
3bcad6d83d docs: [select] remove demos sass (#19365)
fix(docs): [select] remove demos sass,  enable run in playground
2024-12-23 17:49:16 +08:00
妙码生花
f378bafc7b docs(components): [config-provider] example error (#19355)
* docs(components): [config-provider] example error

* chore: format

---------

Co-authored-by: btea <2356281422@qq.com>
2024-12-22 21:06:42 +08:00
btea
bca0399c75 docs: remove dialog example animation (#19275) 2024-12-17 09:29:14 +08:00
ZhouJin
5a025e55bd docs(components): [segmented] item maybe declared in the upper scope (#19291)
docs(components): [segmented] 'item' maybe declared in the upper scope

Co-authored-by: 周进 <w857035085@126.com>
2024-12-17 08:21:03 +08:00
VisualYuki
63cb03cf4e docs(components): update Dialog (#19200)
* docs(components): update Dialog

add fullscreen, modal, events, slot

* docs(components): update text

---------

Co-authored-by: btea <2356281422@qq.com>
2024-12-14 10:17:41 +08:00
JingGaoWei
c6e0d4746e docs: [container] update example (#19219)
* Update layout-am.vue

* Update docs/examples/container/layout-am.vue

---------

Co-authored-by: btea <2356281422@qq.com>
2024-12-11 15:03:26 +08:00
Jeff
d9da5341d2 docs: [tooltip] improve document content and examples (#19204)
docs: [Tooltip] Improve document content and examples
2024-12-10 21:38:35 +08:00
星如雨
ae22c959ac feat(components): [badge] add content slot (#18922)
* feat(components): [badge] add `icon` prop and slot

* feat(components): [badge] remove icon prop

* feat(components): [badge] update badge icon slot test

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

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

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

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

* feat(components): [badge] update icon slot to content

* fix(components): [badge] remove legacy icon styles

* fix(docs): [badge] punctuation at the end of sentences in a document

* feat(components): [badge] `value` as the value of the `content` slot

* feat(docs): [badge] update badge's doc

* fix(docs): [badge] content slot value type

---------

Co-authored-by: btea <2356281422@qq.com>
2024-12-10 13:57:36 +08:00
qiang
d416dd74b0 feat(components): [input-tag] new component (#18885)
* feat(components): [input-tag] add input-tag component

* feat: styles

* test: add test

* docs: add docs

* docs: updata

* docs: uopdata

* docs: updata

* fix: optimize the style when input too long text

* feat: add draggable attribute

* fix: regain focus after dragged

* fix: regain focus on dragend

* refactor: useDragTag

* fix: style of disabled

* refactor: rename event name

* refactor: move useCalcInputWidth to hooks

* feat: add aria-label
2024-11-29 10:50:21 +08:00
Evan
349a2e9c16 feat(components): [transfer] add custom empty slot for transfer panels (#18929)
* feat(components): [transfer] add custom empty slot for transfer panels

* docs: [transfer] add description and example

* test(components): add transfer component test

* docs: add version tag

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

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

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
Co-authored-by: btea <2356281422@qq.com>
2024-11-24 03:46:48 +00:00
知晓同丶
512d31cb79 docs: makeup built-in zoom-in-left transition (#18987) 2024-11-22 15:11:50 +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
jiaxiang
440691805b docs(components): fix type error of the tree-v2 filter demo (#18927) 2024-11-17 20:09:24 +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
jiaxiang
23ce3ff8f1 chore: fix type error of the tree customNodeClass demo (#18920)
chore: fix type error of the tree demo
2024-11-16 21:52:39 +08:00
thinkasany
28106bd3ec docs(components): use "" replace null for no icon setting (#18824)
* docs(components): use  replace null for no icon setting

* docs: fix
2024-11-08 14:53:18 +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
thinkasany
6fa9f78a65 docs: fix type error for autocomplete (#18762) 2024-11-05 21:27:56 +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
guze2003
c8d0d35e3f feat(components): [input-number] add prefix and suffix (#17993)
* feat(components): [input-number] add prefix and suffix

* Update docs/en-US/component/input-number.md

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

* Update docs/en-US/component/input-number.md

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

* Update docs/en-US/component/input-number.md

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

* Update docs/en-US/component/input-number.md

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

* Update docs/en-US/component/input-number.md

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

* Update docs/en-US/component/input-number.md

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

* Update docs/en-US/component/input-number.md

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

* Update packages/components/input-number/src/input-number.vue

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

* Update packages/components/input-number/src/input-number.vue

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

* feat(components): [input-number] add prefix and suffix

* feat(components): [input-number] add prefix and suffix

* feat(components): [input-number] add prefix and suffix

---------

Co-authored-by: btea <2356281422@qq.com>
2024-09-23 15:14:29 +08:00
qiang
e3bb681984 fix(components): [table] the disabled checkbox are selected (#18034)
* fix(components): [table] non selectable items are selected

closed #18021

* docs: update
2024-09-13 14:13:33 +08:00