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
..
2023-12-13 12:12:44 +00:00
2023-12-04 08:44:09 +08:00
2024-06-13 05:37:48 +00:00
2024-10-15 08:10:59 +08:00
2022-11-24 22:56:01 +08:00
2022-11-27 23:52:13 +08:00
2024-06-13 07:34:47 +09:00
2021-11-10 09:38:05 +08:00
2023-12-04 08:46:30 +08:00
2024-09-01 12:11:58 +08:00
2023-02-14 22:29:36 +08:00
2023-12-13 12:12:44 +00:00
2024-07-26 10:20:25 +08:00
2024-10-15 08:10:59 +08:00
2024-10-15 08:10:59 +08:00
2024-09-12 22:13:25 +08:00
2024-10-15 08:10:59 +08:00
2022-05-01 18:38:08 +08:00
2024-10-10 09:23:20 +08:00
2022-12-03 10:12:01 +08:00
2024-10-27 12:14:53 +08:00
2024-10-27 12:14:53 +08:00
2024-08-22 21:39:09 +08:00
2024-10-15 08:10:59 +08:00
2023-02-14 22:31:33 +08:00
2024-10-15 08:10:59 +08:00
2024-09-01 12:11:58 +08:00
2023-04-29 21:09:32 +08:00
2024-08-26 11:40:06 +08:00
2024-03-15 21:27:15 +08:00
2024-06-03 21:54:10 +08:00
2023-05-18 09:12:17 +08:00
2024-10-15 08:10:59 +08:00
2024-10-15 08:10:59 +08:00
2023-07-22 19:53:52 +08:00
2024-02-15 18:35:50 +08:00
2024-07-22 08:08:43 +08:00
2024-10-09 21:56:08 +08:00
2024-10-15 08:10:59 +08:00
2024-07-19 13:49:17 +08:00
2024-06-13 07:34:47 +09:00
2023-04-07 14:36:23 +08:00
2024-02-28 13:24:05 +08:00
2023-05-16 09:10:03 +08:00
2024-10-15 08:10:59 +08:00
2024-08-23 08:29:34 +08:00
2024-08-13 08:40:30 +08:00
2023-12-04 21:22:10 +08:00
2024-10-15 08:10:59 +08:00
2024-10-15 08:10:59 +08:00
2023-05-29 20:03:54 +08:00
2024-09-09 17:36:11 +08:00
2024-11-01 17:17:49 +08:00
2024-11-07 13:48:50 +08:00
2024-11-07 13:48:50 +08:00
2024-11-07 21:31:16 +08:00
2024-10-15 08:10:59 +08:00
2024-08-13 15:54:24 +08:00
2023-12-26 20:25:00 +09:00
2023-04-07 14:39:36 +08:00
2024-10-15 08:10:59 +08:00
2024-09-03 21:05:21 +08:00
2024-09-27 18:20:57 +08:00
2024-10-15 08:10:59 +08:00
2024-08-30 18:41:11 +08:00
2024-06-13 05:37:48 +00:00
2024-10-27 12:14:53 +08:00
2024-08-13 08:40:30 +08:00
2023-04-30 10:07:15 +09:00
2024-08-13 08:40:30 +08:00
2024-08-13 08:40:30 +08:00
2024-06-13 05:37:48 +00:00
2024-10-01 11:34:21 +08:00
2024-08-13 08:40:30 +08:00
2024-09-11 15:33:26 +08:00
2024-10-27 15:15:17 +08:00
2023-12-13 12:12:44 +00:00
2024-08-07 15:48:13 +08:00
2024-09-01 12:11:58 +08:00