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