element-plus/docs/examples
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
..
affix docs(components): check docs before stable (#5740) 2022-01-31 23:43:56 +08:00
alert style(components): [alert] Update alert style (#15911) 2024-02-23 16:23:45 +08:00
anchor fix(components): [anchor,tour] the type type typo (#16119) 2024-03-13 14:46:02 +08:00
autocomplete docs: fix type error for autocomplete (#18762) 2024-11-05 21:27:56 +08:00
avatar docs(examples): standardize unified code format and fix some type (#16370) 2024-04-15 16:29:21 +08:00
backtop feat(theme-chalk): dark bg color overlay for components (#7005) 2022-04-10 13:47:19 +08:00
badge feat(components): [badge] add dotClass、dotStyle、offset props (#16434) 2024-04-12 14:35:55 +08:00
border docs: rendering example demos on the server side (#17472) 2024-08-22 14:33:13 +08:00
breadcrumb docs(examples): standardize unified code format and fix some type (#16370) 2024-04-15 16:29:21 +08:00
button docs(examples): standardize unified code format and fix some type (#16370) 2024-04-15 16:29:21 +08:00
calendar fix(components): [calendar] improve types (#13165) 2023-06-15 01:10:36 +08:00
card docs: modify layout style (#10514) 2024-02-19 20:10:44 +08:00
carousel docs(examples): standardize unified code format and fix some type (#16370) 2024-04-15 16:29:21 +08:00
cascader docs(examples): standardize unified code format and fix some type (#16370) 2024-04-15 16:29:21 +08:00
checkbox docs(components): [radio & checkbox] add using value tip and perf examples (#17051) 2024-07-13 09:59:31 +08:00
collapse feat(components): [collapse] collpase item supports custom icon (#18215) 2024-09-12 22:13:25 +08:00
color-picker docs(components): use script setup replace defineComponent (#4849) 2021-12-21 15:51:33 +08:00
config-provider docs(examples): standardize unified code format and fix some type (#16370) 2024-04-15 16:29:21 +08:00
container docs(examples): standardize unified code format and fix some type (#16370) 2024-04-15 16:29:21 +08:00
date-picker feat(components): [date-picker] add icon slots (#17453) 2024-08-09 12:53:26 +08:00
datetime-picker feat(components): [date-picker] add icon slots (#17453) 2024-08-09 12:53:26 +08:00
descriptions feat(components): [descriptions] add rowspan (#10314) 2024-08-22 21:39:09 +08:00
dialog feat(components): [dialog] Dialog can drag overflow the viewport (#15643) 2024-01-25 15:03:34 +08:00
divider docs(examples): standardize unified code format and fix some type (#16370) 2024-04-15 16:29:21 +08:00
drawer docs(examples): standardize unified code format and fix some type (#16370) 2024-04-15 16:29:21 +08:00
dropdown docs(components): [dropdown] add placement property example doc (#12617) 2024-08-05 07:36:12 +08:00
empty chore: self closing vue tag (#6603) 2022-03-13 16:16:11 -04:00
form docs(form): beautify the demo (#17309) 2024-06-24 09:06:40 +00:00
image docs(examples): standardize unified code format and fix some type (#16370) 2024-04-15 16:29:21 +08:00
infinite-scroll fix(docs): [infinite-scroll] fix error when use directive (#7855) 2022-05-24 09:48:08 +08:00
input docs: modify layout style (#10514) 2024-02-19 20:10:44 +08:00
input-number feat(components): [input-number] add prefix and suffix (#17993) 2024-09-23 15:14:29 +08:00
layout docs(examples): standardize unified code format and fix some type (#16370) 2024-04-15 16:29:21 +08:00
link fix(components): [link] fix the link jump to element-ui (#11357) 2023-01-29 22:23:28 +08:00
loading style(docs): change the example mask and overlay z-index (#9356) 2022-08-20 10:36:12 +09:00
mention docs(components): [mention] example error (#17760) 2024-08-05 02:20:39 +00:00
menu docs: [menu] fix invalid HTML code in the example (#17594) 2024-07-28 20:08:54 +08:00
message feat(components): [message] add plain prop (#16214) 2024-03-26 12:03:51 +08:00
message-box docs(examples): standardize unified code format and fix some type (#16370) 2024-04-15 16:29:21 +08:00
notification docs(components): use script setup replace defineComponent (#4849) 2021-12-21 15:51:33 +08:00
page-header docs(examples): standardize unified code format and fix some type (#16370) 2024-04-15 16:29:21 +08:00
pagination feat(pagination) : add size prop (#16858) 2024-06-21 11:29:51 +08:00
popconfirm feat(components): [popconfirm] add actions slot (#17957) 2024-08-23 08:29:34 +08:00
popover docs(examples): standardize unified code format and fix some type (#16370) 2024-04-15 16:29:21 +08:00
progress docs(examples): standardize unified code format and fix some type (#16370) 2024-04-15 16:29:21 +08:00
radio docs(components): [radio & checkbox] add using value tip and perf examples (#17051) 2024-07-13 09:59:31 +08:00
rate docs(examples): standardize unified code format and fix some type (#16370) 2024-04-15 16:29:21 +08:00
result feat(components): [el-result] warn users using subTitle as slots (#6651) 2022-03-15 19:50:50 +08:00
scrollbar fix(deps): update dependency eslint-plugin-vue to v9 (#7848) 2022-05-24 09:41:11 +00:00
segmented feat(components): segmented support vertical direction (#18653) 2024-10-31 22:52:43 +08:00
select feat(components): [select & select-v2] add label slot (#16960) 2024-05-28 14:50:22 +08:00
select-v2 feat(components): [select & select-v2] add label slot (#16960) 2024-05-28 14:50:22 +08:00
skeleton feat(components): [skeleton] throttle supports values ​​as object (#17041) 2024-11-07 21:31:16 +08:00
slider docs(examples): standardize unified code format and fix some type (#16370) 2024-04-15 16:29:21 +08:00
space docs(examples): standardize unified code format and fix some type (#16370) 2024-04-15 16:29:21 +08:00
statistic docs: rendering example demos on the server side (#17472) 2024-08-22 14:33:13 +08:00
steps docs: modify layout style (#10514) 2024-02-19 20:10:44 +08:00
switch docs(examples): standardize unified code format and fix some type (#16370) 2024-04-15 16:29:21 +08:00
table fix(components): [table] the disabled checkbox are selected (#18034) 2024-09-13 14:13:33 +08:00
table-v2 docs(components): [table-v2] refine inline editing examples (#18018) 2024-08-27 09:40:11 +08:00
tabs docs(examples): standardize unified code format and fix some type (#16370) 2024-04-15 16:29:21 +08:00
tag feat(components): [check-tag] add disabled prop (#17936) 2024-08-30 18:41:11 +08:00
text fix(components): [text] not support multi-line ellipsis (#11976) 2023-10-13 11:26:54 +08:00
time-picker docs(components): [date-picker] attribute type description (#9357) 2022-09-08 19:22:47 +08:00
time-select docs: modify layout style (#10514) 2024-02-19 20:10:44 +08:00
timeline docs: modify layout style (#10514) 2024-02-19 20:10:44 +08:00
tooltip docs(examples): standardize unified code format and fix some type (#16370) 2024-04-15 16:29:21 +08:00
tooltip-v2 docs(examples): standardize unified code format and fix some type (#16370) 2024-04-15 16:29:21 +08:00
tour style(components): [tour] Improve style and docs (#15706) 2024-01-31 10:35:36 +08:00
transfer docs(docs) 穿梭框的自定义部分有误 (#15215) 2023-12-22 09:16:34 +00:00
transitions fix(components): [collapse-transition] collapse get el exists height (#14801) 2023-12-14 19:22:14 +08:00
tree docs(examples): [tree] fix online display abnormality (#16977) 2024-05-25 12:29:13 +08:00
tree-select docs: format the tree-select component code (#17726) 2024-07-31 13:48:17 +00:00
tree-v2 docs: modify layout style (#10514) 2024-02-19 20:10:44 +08:00
typography chore: update typography images (#7360) 2022-04-25 20:21:18 +08:00
upload docs(examples): standardize unified code format and fix some type (#16370) 2024-04-15 16:29:21 +08:00
watermark [Docs] Update homepage (#14534) 2023-11-29 12:12:09 +08:00
.eslintrc.json chore(project): rename .eslint.js to .eslint.json (#6584) 2022-03-13 14:19:51 +08:00