@wot-ui/ui 2.0.7 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/README.md +11 -11
  2. package/attributes.json +1 -1
  3. package/changelog.md +26 -0
  4. package/common/AbortablePromise.ts +28 -0
  5. package/common/canvasHelper.ts +49 -0
  6. package/common/clickoutside.ts +25 -0
  7. package/common/event.ts +8 -0
  8. package/common/formatDate.ts +68 -0
  9. package/common/interceptor.ts +43 -0
  10. package/common/props.ts +53 -0
  11. package/common/util.ts +836 -0
  12. package/components/wd-avatar/wd-avatar.vue +1 -1
  13. package/components/wd-button/types.ts +11 -8
  14. package/components/wd-button/wd-button.vue +26 -4
  15. package/components/wd-calendar-view/monthPanel/month-panel.vue +1 -0
  16. package/components/wd-calendar-view/yearPanel/year-panel.vue +1 -0
  17. package/components/wd-cell/index.scss +12 -1
  18. package/components/wd-config-provider/global-config.ts +50 -0
  19. package/components/wd-config-provider/theme-vars.ts +2073 -0
  20. package/components/wd-config-provider/types.ts +20 -2071
  21. package/components/wd-config-provider/wd-config-provider.vue +15 -4
  22. package/components/wd-dialog/wd-dialog.vue +1 -0
  23. package/components/wd-drop-menu/wd-drop-menu.vue +1 -0
  24. package/components/wd-grid/wd-grid.vue +0 -2
  25. package/components/wd-icon/wd-icon.vue +2 -2
  26. package/components/wd-img/wd-img.vue +1 -0
  27. package/components/wd-index-anchor/index.scss +5 -5
  28. package/components/wd-index-bar/index.scss +14 -14
  29. package/components/wd-keyboard/key/index.vue +2 -0
  30. package/components/wd-notify/wd-notify.vue +1 -0
  31. package/components/wd-picker-view/useSelection.ts +3 -1
  32. package/components/wd-root-portal/wd-root-portal.vue +1 -1
  33. package/components/wd-select-picker/wd-select-picker.vue +1 -0
  34. package/components/wd-signature/wd-signature.vue +1 -0
  35. package/components/wd-slider/index.scss +45 -45
  36. package/components/wd-slider/wd-slider.vue +19 -3
  37. package/components/wd-switch/wd-switch.vue +2 -0
  38. package/components/wd-tabs/wd-tabs.vue +1 -0
  39. package/components/wd-tag/index.scss +8 -7
  40. package/components/wd-tag/types.ts +10 -7
  41. package/components/wd-tag/wd-tag.vue +23 -6
  42. package/components/wd-toast/wd-toast.vue +4 -0
  43. package/composables/index.ts +2 -0
  44. package/composables/useConfigProvider.ts +27 -12
  45. package/composables/useGlobalConfig.ts +9 -0
  46. package/index.ts +1 -1
  47. package/package.json +1 -1
  48. package/styles/variable.scss +381 -381
  49. package/tags.json +1 -1
  50. package/web-types.json +1 -1
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <img alt="logo" src="https://v2.wot-ui.cn/logo.svg" width="200">
2
+ <img alt="logo" src="https://wot-ui.cn/logo.svg" width="200">
3
3
  </p>
4
4
  <h1 align="center">Wot UI</h1>
5
5
 
@@ -35,7 +35,7 @@
35
35
  </p>
36
36
 
37
37
  <p align="center">
38
- 🚀 <a href="https://v2.wot-ui.cn">文档网站 (推荐)</a>&nbsp;
38
+ 🚀 <a href="https://wot-ui.cn">文档网站 (推荐)</a>&nbsp;
39
39
  </p>
40
40
 
41
41
  ## ✨ 特性
@@ -54,19 +54,19 @@
54
54
  扫描二维码访问演示,注意:因微信审核机制限制,当前的微信小程序示例可能不是最新版本,可以 clone 代码到本地预览。
55
55
 
56
56
  <p style="display:flex;gap:24px">
57
- <img src="https://v2.wot-ui.cn/wx.jpg" width="200" height="200"/>
58
- <img src="https://v2.wot-ui.cn/alipay.png" width="200" height="200" />
59
- <img src="https://v2.wot-ui.cn/h5.png" width="200" height="200" />
57
+ <img src="https://wot-ui.cn/wx.jpg" width="200" height="200"/>
58
+ <img src="https://wot-ui.cn/alipay.png" width="200" height="200" />
59
+ <img src="https://wot-ui.cn/h5.png" width="200" height="200" />
60
60
 
61
61
  </p>
62
62
 
63
63
  ## 快速上手
64
64
 
65
- 详细说明见 [快速上手](https://v2.wot-ui.cn/guide/quick-use.html)。
65
+ 详细说明见 [快速上手](https://wot-ui.cn/guide/quick-use.html)。
66
66
 
67
67
  ## 优秀案例
68
68
 
69
- [这里](https://v2.wot-ui.cn/guide/cases.html)我们收集了一些优秀的案例,欢迎大家体验!
69
+ [这里](https://wot-ui.cn/guide/cases.html)我们收集了一些优秀的案例,欢迎大家体验!
70
70
 
71
71
  我们也非常欢迎大家一起贡献优秀的 Demo 与案例,欢迎在此 [issue](https://github.com/wot-ui/wot-ui/issues/16) 提交案例。
72
72
 
@@ -108,7 +108,7 @@
108
108
 
109
109
  如果您认为 Wot UI 帮助到了您的开发工作,您可以捐赠 Wot UI 的研发工作,捐赠无门槛,哪怕是一杯可乐也好。
110
110
 
111
- 捐赠后您的昵称、留言等将会展示在[捐赠榜单](https://v2.wot-ui.cn/reward/donor.html)中。
111
+ 捐赠后您的昵称、留言等将会展示在[捐赠榜单](https://wot-ui.cn/reward/donor.html)中。
112
112
 
113
113
 
114
114
  ### 爱发电捐赠
@@ -118,15 +118,15 @@
118
118
  ### 扫码捐赠
119
119
 
120
120
  <p>
121
- <img src="https://v2.wot-ui.cn/weixinQrcode.jpg" width="200" height="200" style="margin-right:30px"/>
122
- <img src="https://v2.wot-ui.cn/alipayQrcode.jpg" width="200" height="200" />
121
+ <img src="https://wot-ui.cn/weixinQrcode.jpg" width="200" height="200" style="margin-right:30px"/>
122
+ <img src="https://wot-ui.cn/alipayQrcode.jpg" width="200" height="200" />
123
123
  </p>
124
124
 
125
125
  ## 鸣谢
126
126
 
127
127
  - [wot-design](https://github.com/jd-ftf/wot-design-mini) - 感谢 wot-design 团队多年来的不断维护,让 wot-ui 能够站在巨人的肩膀上。
128
128
  - [uni-helper](https://github.com/uni-helper) - 感谢 uni-helper 团队提供的 uni-app 工具库,让 wot-ui 能够更方便地使用。
129
- - [捐赠者](https://v2.wot-ui.cn/reward/donor.html) - 感谢所有捐赠者,是你们的捐赠让 wot-ui 能够更好地发展。
129
+ - [捐赠者](https://wot-ui.cn/reward/donor.html) - 感谢所有捐赠者,是你们的捐赠让 wot-ui 能够更好地发展。
130
130
 
131
131
 
132
132
  ## 开源协议