thzxx
|
ee2b685f64
|
docs: 更新 README.md 和 site/ 文档页
README.md:
- 特性列表: 80+ → 107 种图标类型,新增全局错误回调和暂停恢复说明
- 全局配置: 添加 onError 示例
- Toast 管理: 添加 getAll() 方法
- 回调: 新增 onError 全局错误回调示例
site/index.html:
- 新增「错误捕获」和「暂停恢复」特性卡片
- TypeScript 卡片更新为「零 phantom 方法」
site/docs.html:
- 回调表添加 onError 条目
site/demo.html:
- 新增 onError 错误捕获演示卡片(含 JS 实现)
|
2026-07-24 14:59:11 +08:00 |
|
thzxx
|
f7d74d152d
|
chore: v0.1.2 — 全面修复、优化与增强
修复:
- core.js: _resume 计时器 BUG (startedAt 被 _startTimer 覆盖导致暂停恢复失效)
- plugins.js: register 在 install 前展开导致 handler 实例丢失
- locales.js: zh-CN/en-US 大量重复 key 覆盖正确翻译值
- core.js: configure 改为原地更新避免 _config 引用断裂
优化:
- core.js: update() 类型变更时同步更新 DOM 类名和进度条颜色
- animations.js: getActiveCount 返回已注册动画数量
- themes.js: 移除 presetThemes 死代码和重复注册循环
- constants.js: THEMES.auto 从字符串改为规范化对象
- index.js: destroy 添加防重复调用保护
增强:
- core.js: 新增 onError 全局错误回调,钩子异常和定时器错误可被外部捕获
- styles.js: _resume 校准时间基准补偿注释
- 139 tests 全部通过
|
2026-07-24 14:42:47 +08:00 |
|
thzxx
|
eebd669b7f
|
chore: 版本号重置为 v0.1.1, 更新 site/ 文档页面移除 v2.0 标记
|
2026-07-24 14:19:53 +08:00 |
|
thzxx
|
b4ffaabedd
|
chore: v2.0.1 - 精简dead code + 版本升级
- utils.js: 950行→180行,移除30+未使用函数
- styles.js: 1800行→650行,移除未使用组件样式和重复规则
- animations.js: 850行→120行,移除Web Animations API dead code
- 全项目版本号升级到 2.0.1
- 测试同步清理,134/134通过
|
2026-07-23 13:18:24 +08:00 |
|
tianhao
|
ea9e2808d6
|
docs: API文档17个方法全部补全参数表、返回值、类型、默认值
|
2026-06-16 15:13:38 +08:00 |
|
tianhao
|
ccd7306f57
|
feat: 生成favicon.ico并添加到所有页面
|
2026-06-16 15:00:08 +08:00 |
|
tianhao
|
3ab10f89a4
|
refactor: examples/→site/ 官网+文档+演示三件套; 更新build.sh/rollup/serve.sh路径
|
2026-06-16 13:32:14 +08:00 |
|