uview-pro 0.0.18 → 0.0.20

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.
package/changelog.md CHANGED
@@ -1,263 +1,305 @@
1
- ## 0.0.18(2025-09-03
2
-
3
- ### 🚀 Chore | 构建/工程依赖/工具
4
-
5
- - update release script for better version management ([b64f38f](https://github.com/anyup/uView-Pro/commit/b64f38fea28de39c99cdf84f7e767aa7ceac1344))
6
-
7
- ### 🐛 Bug Fixes | Bug 修复
8
-
9
- - **u-checkbox:** 兼容头条小程序获取父组件数据不支持provide/inject的写法 ([498e12e](https://github.com/anyup/uView-Pro/commit/498e12e2f3aa52021d1be282426536b45f39ca6a))
10
-
11
- ### 👷 Continuous Integration | CI 配置
12
-
13
- - optimize changelog generation and spacing ([3103e7b](https://github.com/anyup/uView-Pro/commit/3103e7b56a0e2dd0392efdb6a85824b11ef6800c))
14
-
1
+ ## 0.0.20(2025-09-08
2
+
3
+ ### ♻️ Code Refactoring | 代码重构
4
+
5
+ - 优化http使用示例 ([39d0910](https://github.com/anyup/uView-Pro/commit/39d091056dc1e335625ce884aade35c8bd11ee6f))
6
+
7
+ ### 📝 Documentation | 文档
8
+
9
+ - 更新微信交流群图片 ([21bbec1](https://github.com/anyup/uView-Pro/commit/21bbec14937ee52b225d1f415d90aecbe4d4950f))
10
+
11
+ ### 🚀 Chore | 构建/工程依赖/工具
12
+
13
+ - update project configuration and add prettier support ([74a714d](https://github.com/anyup/uView-Pro/commit/74a714ddc30dc0c2c5a6389f254f1e2c922d905e))
14
+
15
+ ### 🐛 Bug Fixes | Bug 修复
16
+
17
+ - 修复微信小程序环境下 http interceptor 的路径问题 ([6db4db8](https://github.com/anyup/uView-Pro/commit/6db4db89ef1ab22e3051a6ee944ba44430aa3474))
18
+
19
+ ### 👷 Continuous Integration | CI 配置
20
+
21
+ - update husky pre-commit ([dd04f9a](https://github.com/anyup/uView-Pro/commit/dd04f9a8f2ebdbec37a148e1cf2fa3280c1ab2cd))
22
+
23
+ ## 0.0.19(2025-09-04)
24
+
25
+ ### 🐛 Bug Fixes | Bug 修复
26
+
27
+ - include uview-pro changelog.md in release commit ([18d902d](https://github.com/anyup/uView-Pro/commit/18d902db2bba4f8f574d7b3b72be218747525bb9))
28
+
29
+ ### 📝 Documentation | 文档
30
+
31
+ - update uview pro changelog ([31261db](https://github.com/anyup/uView-Pro/commit/31261dbd6b17aea8126a43def1912324b782096e))
32
+
33
+ ### ♻️ Code Refactoring | 代码重构
34
+
35
+ - 移除 uni-http 模块 ([5f21735](https://github.com/anyup/uView-Pro/commit/5f2173503cc904fb0a7fa2abd3ed3b9dbe09aeb2))
36
+
37
+ ### ✨ Features | 新功能
38
+
39
+ - 新增http请求模块并实现插件化 ([31c6f88](https://github.com/anyup/uView-Pro/commit/31c6f880d12e586d445faddcc1a3910fda9926bc))
40
+ - 增强 toast 工具函数的灵活性 ([2232054](https://github.com/anyup/uView-Pro/commit/22320540acee36c6c11688387431a4ddba93520f))
41
+ - 添加 HTTP 请求拦截器和配置示例代码 ([aba7cf9](https://github.com/anyup/uView-Pro/commit/aba7cf97ed2424432da51be1841aa17a5a2d7932))
42
+
43
+ ## 0.0.18(2025-09-03)
44
+
45
+ ### 🚀 Chore | 构建/工程依赖/工具
46
+
47
+ - update release script for better version management ([b64f38f](https://github.com/anyup/uView-Pro/commit/b64f38fea28de39c99cdf84f7e767aa7ceac1344))
48
+
49
+ ### 🐛 Bug Fixes | Bug 修复
50
+
51
+ - **u-checkbox:** 兼容头条小程序获取父组件数据不支持provide/inject的写法 ([498e12e](https://github.com/anyup/uView-Pro/commit/498e12e2f3aa52021d1be282426536b45f39ca6a))
52
+
53
+ ### 👷 Continuous Integration | CI 配置
54
+
55
+ - optimize changelog generation and spacing ([3103e7b](https://github.com/anyup/uView-Pro/commit/3103e7b56a0e2dd0392efdb6a85824b11ef6800c))
56
+
15
57
  ## 0.0.17(2025-09-02)
16
58
 
17
59
  ### ♻️ Code Refactoring | 代码重构
18
60
 
19
- - 瀑布流组件示例代码重构为 Vue3 ([93949ad](https://github.com/anyup/uView-Pro/commit/93949ad8ae2a36c6130f87340c222ab9ec69d21f))
61
+ - 瀑布流组件示例代码重构为 Vue3 ([93949ad](https://github.com/anyup/uView-Pro/commit/93949ad8ae2a36c6130f87340c222ab9ec69d21f))
20
62
 
21
63
  ### ✨ Features | 新功能
22
64
 
23
- - 新增组件 u-loading-popup,一个可以配置的加载提示弹窗 ([6245df9](https://github.com/anyup/uView-Pro/commit/6245df951034b06225ab36d3f18cae8e7ab4b329))
24
- - 新增 Loading 加载弹窗组件的示例页面 ([1bce868](https://github.com/anyup/uView-Pro/commit/1bce86810863012c5a73104ca0a85ebacb4aa92a))
65
+ - 新增组件 u-loading-popup,一个可以配置的加载提示弹窗 ([6245df9](https://github.com/anyup/uView-Pro/commit/6245df951034b06225ab36d3f18cae8e7ab4b329))
66
+ - 新增 Loading 加载弹窗组件的示例页面 ([1bce868](https://github.com/anyup/uView-Pro/commit/1bce86810863012c5a73104ca0a85ebacb4aa92a))
25
67
 
26
68
  ### 🐛 Bug Fixes | Bug 修复
27
69
 
28
- - 修复瀑布流组件 u-waterfll,暴露 celar/remove/modify 方法 ([240e023](https://github.com/anyup/uView-Pro/commit/240e0238af092d4c6bde86d0db9e49636b806d6f))
70
+ - 修复瀑布流组件 u-waterfll,暴露 celar/remove/modify 方法 ([240e023](https://github.com/anyup/uView-Pro/commit/240e0238af092d4c6bde86d0db9e49636b806d6f))
29
71
 
30
72
  ## 0.0.15(2025-08-30)
31
73
 
32
74
  ### ✨ Features | 新功能
33
75
 
34
- - 优化 u-image 组件 slot 使用体验,兼容头条小程序 ([a6ca54f](https://github.com/anyup/uView-Pro/commit/a6ca54fce06b20b7a6938d0bef9342954b787641))
76
+ - 优化 u-image 组件 slot 使用体验,兼容头条小程序 ([a6ca54f](https://github.com/anyup/uView-Pro/commit/a6ca54fce06b20b7a6938d0bef9342954b787641))
35
77
 
36
78
  ### ♻️ Bug Fixes | Bug 修复
37
79
 
38
- - 优化 label 的声明错误问题 ([314c394](https://github.com/anyup/uView-Pro/commit/314c3940145c657b12f16d005af7d271f4ae74e3))
39
- - 优化头条小程序 form 表单校验的兼容性问题 ([3912fd6](https://github.com/anyup/uView-Pro/commit/3912fd6ade3a1d612f6f5e86ddc0336376ee5618))
80
+ - 优化 label 的声明错误问题 ([314c394](https://github.com/anyup/uView-Pro/commit/314c3940145c657b12f16d005af7d271f4ae74e3))
81
+ - 优化头条小程序 form 表单校验的兼容性问题 ([3912fd6](https://github.com/anyup/uView-Pro/commit/3912fd6ade3a1d612f6f5e86ddc0336376ee5618))
40
82
 
41
83
  ## 0.0.14(2025-08-28)
42
84
 
43
85
  ### 🐛 Bug Fixes | Bug 修复
44
86
 
45
- - 修复使用 u-swipe-action 右边会出现一条背景线的 bug ([a5b60c6](https://github.com/anyup/uView-Pro/commit/a5b60c6485120e164c0e0c29eea3b765c10f9aac))
87
+ - 修复使用 u-swipe-action 右边会出现一条背景线的 bug ([a5b60c6](https://github.com/anyup/uView-Pro/commit/a5b60c6485120e164c0e0c29eea3b765c10f9aac))
46
88
 
47
89
  ## 0.0.13(2025-08-27)
48
90
 
49
91
  ### 🐛 Bug Fixes | Bug 修复
50
92
 
51
- - 修复 count-down 组件暴露 start 和 end 方法 ([0f42a01](https://github.com/anyup/uView-Pro/commit/0f42a01f55aa6799f57eb93dc5d029b06115b154))
93
+ - 修复 count-down 组件暴露 start 和 end 方法 ([0f42a01](https://github.com/anyup/uView-Pro/commit/0f42a01f55aa6799f57eb93dc5d029b06115b154))
52
94
 
53
95
  ## 0.0.12(2025-08-27)
54
96
 
55
97
  ### 🐛 Bug Fixes | Bug 修复
56
98
 
57
- - 优化 async-validator 文件多余注释导致的问题 ([f06c80d](https://github.com/anyup/uView-Pro/commit/f06c80d57e61e7b75f1384fe89f309b8a0e379fa))
99
+ - 优化 async-validator 文件多余注释导致的问题 ([f06c80d](https://github.com/anyup/uView-Pro/commit/f06c80d57e61e7b75f1384fe89f309b8a0e379fa))
58
100
 
59
101
  ## 0.0.11(2025-08-26)
60
102
 
61
103
  ### ♻️ Code Refactoring | 代码重构
62
104
 
63
- - 取消 async-validator ts 检查 ([772a729](https://github.com/anyup/uView-Pro/commit/772a729164f2cb268a886b6749e4a58846ebb3dc))
64
- - 移除 u-tr 未使用的类型导入和属性定义 ([46ce459](https://github.com/anyup/uView-Pro/commit/46ce4590166a30a0eb048110efc046095a87f6e8))
105
+ - 取消 async-validator ts 检查 ([772a729](https://github.com/anyup/uView-Pro/commit/772a729164f2cb268a886b6749e4a58846ebb3dc))
106
+ - 移除 u-tr 未使用的类型导入和属性定义 ([46ce459](https://github.com/anyup/uView-Pro/commit/46ce4590166a30a0eb048110efc046095a87f6e8))
65
107
 
66
108
  ### 🐛 Bug Fixes | Bug 修复
67
109
 
68
- - 修复 u-count-down 倒计时符号显示逻辑 ([a4c9498](https://github.com/anyup/uView-Pro/commit/a4c94986b020c5ac0fdf92bde3c7b79cdfbedbe8))
110
+ - 修复 u-count-down 倒计时符号显示逻辑 ([a4c9498](https://github.com/anyup/uView-Pro/commit/a4c94986b020c5ac0fdf92bde3c7b79cdfbedbe8))
69
111
 
70
112
  ## 0.0.10(2025-08-26)
71
113
 
72
114
  ### ✨ Features | 新功能
73
115
 
74
- - 添加 easycom 组件自动扫描 ([b125039](https://github.com/anyup/uView-Pro/commit/b1250390a4f594f5deaa133d7a92bd6e72707890))
75
- - 增强 u-select 组件的类型安全和功能 ([38635e9](https://github.com/anyup/uView-Pro/commit/38635e963f9eff6e4c730692e8c97f10b3a092c5))
116
+ - 添加 easycom 组件自动扫描 ([b125039](https://github.com/anyup/uView-Pro/commit/b1250390a4f594f5deaa133d7a92bd6e72707890))
117
+ - 增强 u-select 组件的类型安全和功能 ([38635e9](https://github.com/anyup/uView-Pro/commit/38635e963f9eff6e4c730692e8c97f10b3a092c5))
76
118
 
77
119
  ## 0.0.9(2025-08-25)
78
120
 
79
121
  ### ♻️ Code Refactoring | 代码重构
80
122
 
81
- - 优化全局工具导出方式 ([7a80b6f](https://github.com/anyup/uView-Pro/commit/7a80b6f99ad3022ca995f99f8ec6803af7941eb9))
123
+ - 优化全局工具导出方式 ([7a80b6f](https://github.com/anyup/uView-Pro/commit/7a80b6f99ad3022ca995f99f8ec6803af7941eb9))
82
124
 
83
125
  ## 0.0.8(2025-08-25)
84
126
 
85
127
  ### ♻️ Code Refactoring | 代码重构
86
128
 
87
- - 重构组件 Props 属性定义,每个组件具有完善的 ts 类型定义 ([8cc0de7](https://github.com/anyup/uView-Pro/commit/8cc0de7c1527b48dd223d89207135eea01766294))
88
- - 重构类型定义并统一到全局类型文件 global types ([b0fd010](https://github.com/anyup/uView-Pro/commit/b0fd0107289eb1c6df2f58d91b63d9b25902caee))
129
+ - 重构组件 Props 属性定义,每个组件具有完善的 ts 类型定义 ([8cc0de7](https://github.com/anyup/uView-Pro/commit/8cc0de7c1527b48dd223d89207135eea01766294))
130
+ - 重构类型定义并统一到全局类型文件 global types ([b0fd010](https://github.com/anyup/uView-Pro/commit/b0fd0107289eb1c6df2f58d91b63d9b25902caee))
89
131
 
90
132
  ## 0.0.7(2025-08-21)
91
133
 
92
134
  ### 🐛 Bug Fixes | Bug 修复
93
135
 
94
- - 修复中 tabbar 布局高度计算错误的问题 ([5c1342c](https://github.com/anyup/uView-Pro/commit/5c1342cb3fb6dd2c7c84fe785953fcaed13e809f))
136
+ - 修复中 tabbar 布局高度计算错误的问题 ([5c1342c](https://github.com/anyup/uView-Pro/commit/5c1342cb3fb6dd2c7c84fe785953fcaed13e809f))
95
137
 
96
138
  ### 📦‍ Build System | 打包构建
97
139
 
98
- - 更新项目依赖并优化打包构建 ([c172d36](https://github.com/anyup/uView-Pro/commit/c172d368d82404564650756a872cd7c7e29ebfa2))
140
+ - 更新项目依赖并优化打包构建 ([c172d36](https://github.com/anyup/uView-Pro/commit/c172d368d82404564650756a872cd7c7e29ebfa2))
99
141
 
100
142
  ## 0.0.5(2025-08-19)
101
143
 
102
144
  ### ✨ Features | 新功能
103
145
 
104
- - 新增 u-city-select 城市选择器组件 ([0eb4806](https://github.com/anyup/uView-Pro/commit/0eb4806db3be39e1a6c6f33c9ea511d8445da884))
105
- - 完善 u-button 的 open-type 支持类型 ([37c0db5](https://github.com/anyup/uView-Pro/commit/37c0db527258bca57dbd55d7013b633230489853))
146
+ - 新增 u-city-select 城市选择器组件 ([0eb4806](https://github.com/anyup/uView-Pro/commit/0eb4806db3be39e1a6c6f33c9ea511d8445da884))
147
+ - 完善 u-button 的 open-type 支持类型 ([37c0db5](https://github.com/anyup/uView-Pro/commit/37c0db527258bca57dbd55d7013b633230489853))
106
148
 
107
149
  ### 🐛 Bug Fixes | Bug 修复
108
150
 
109
- - u-upload 暴露 lists 属性 ([09f8424](https://github.com/anyup/uView-Pro/commit/09f8424774baaee3b6fc7a42458949f8d5903951))
110
- - u-upload 深度监听文件列表变化并优化事件触发 ([a41a571](https://github.com/anyup/uView-Pro/commit/a41a5719ddf9d6793b78c55a13025bbdc88fdfe3))
151
+ - u-upload 暴露 lists 属性 ([09f8424](https://github.com/anyup/uView-Pro/commit/09f8424774baaee3b6fc7a42458949f8d5903951))
152
+ - u-upload 深度监听文件列表变化并优化事件触发 ([a41a571](https://github.com/anyup/uView-Pro/commit/a41a5719ddf9d6793b78c55a13025bbdc88fdfe3))
111
153
 
112
154
  ### 🚀 Demos | 示例页面优化
113
155
 
114
- - 优化关于页面布局和内容 ([ad5f6a4](https://github.com/anyup/uView-Pro/commit/ad5f6a47847999268b43b8c5dbf1a34cb8f70802))
115
- - 删除分类数据文件 ([5ed7a11](https://github.com/anyup/uView-Pro/commit/5ed7a1113db58ff493ad606296a210358348affe))
116
- - 重构 index list 页面 ([13d780e](https://github.com/anyup/uView-Pro/commit/13d780ea5acc4c8eed72062482735df826d4b37a))
117
- - 更新商场菜单组件引用 ([a5f1bf3](https://github.com/anyup/uView-Pro/commit/a5f1bf3f256705d6cad028d60701b4b0544332de))
118
- - 修改图片地址 ([c459893](https://github.com/anyup/uView-Pro/commit/c459893848936aa9a44e7bda3277ab1428109869))
119
- - 重构 upload 上传组件示例页面 ([686831d](https://github.com/anyup/uView-Pro/commit/686831de357aca67bbf7015e2f0696cf6bf48164))
120
- - 优化多个组件的代码结构和样式 ([f2af44c](https://github.com/anyup/uView-Pro/commit/f2af44ca1710334495e4c4fad99d04027b3788f8))
121
- - 添加提交规范相关配置文件 git-cz/husky/changelog ([d93b816](https://github.com/anyup/uView-Pro/commit/d93b816a5a3e468c4bc45e3161d7c006cba5fbf6))
122
- - 优化 deepClone 和 deepMerge 页面的结果展示 ([b0daa70](https://github.com/anyup/uView-Pro/commit/b0daa700b6a385e037d38dc1f10b3612596e2403))
123
- - 新增优惠券模板 ([1b77762](https://github.com/anyup/uView-Pro/commit/1b777621615f7ebe9d83606d53650987c8b2c4e0))
124
- - 更新 easycom 配置说明,一定要放在 custom 里,否则不生效 ([fc14bf9](https://github.com/anyup/uView-Pro/commit/fc14bf90cb77088d258e20e79e3d25820f37e97e))
125
- - 添加模板示例页面 ([3336af4](https://github.com/anyup/uView-Pro/commit/3336af406161648d18578c988d9b3ad79b86059a))
126
- - 新增模版相关页面 ([8925a02](https://github.com/anyup/uView-Pro/commit/8925a02f9fa88f4742d984f2ff02909afc6ad0d7))
127
- - 重构 request 类,优化泛型支持 ([d7b2e6a](https://github.com/anyup/uView-Pro/commit/d7b2e6a224d96f717e5bdbaf09edb19b712ced47))
156
+ - 优化关于页面布局和内容 ([ad5f6a4](https://github.com/anyup/uView-Pro/commit/ad5f6a47847999268b43b8c5dbf1a34cb8f70802))
157
+ - 删除分类数据文件 ([5ed7a11](https://github.com/anyup/uView-Pro/commit/5ed7a1113db58ff493ad606296a210358348affe))
158
+ - 重构 index list 页面 ([13d780e](https://github.com/anyup/uView-Pro/commit/13d780ea5acc4c8eed72062482735df826d4b37a))
159
+ - 更新商场菜单组件引用 ([a5f1bf3](https://github.com/anyup/uView-Pro/commit/a5f1bf3f256705d6cad028d60701b4b0544332de))
160
+ - 修改图片地址 ([c459893](https://github.com/anyup/uView-Pro/commit/c459893848936aa9a44e7bda3277ab1428109869))
161
+ - 重构 upload 上传组件示例页面 ([686831d](https://github.com/anyup/uView-Pro/commit/686831de357aca67bbf7015e2f0696cf6bf48164))
162
+ - 优化多个组件的代码结构和样式 ([f2af44c](https://github.com/anyup/uView-Pro/commit/f2af44ca1710334495e4c4fad99d04027b3788f8))
163
+ - 添加提交规范相关配置文件 git-cz/husky/changelog ([d93b816](https://github.com/anyup/uView-Pro/commit/d93b816a5a3e468c4bc45e3161d7c006cba5fbf6))
164
+ - 优化 deepClone 和 deepMerge 页面的结果展示 ([b0daa70](https://github.com/anyup/uView-Pro/commit/b0daa700b6a385e037d38dc1f10b3612596e2403))
165
+ - 新增优惠券模板 ([1b77762](https://github.com/anyup/uView-Pro/commit/1b777621615f7ebe9d83606d53650987c8b2c4e0))
166
+ - 更新 easycom 配置说明,一定要放在 custom 里,否则不生效 ([fc14bf9](https://github.com/anyup/uView-Pro/commit/fc14bf90cb77088d258e20e79e3d25820f37e97e))
167
+ - 添加模板示例页面 ([3336af4](https://github.com/anyup/uView-Pro/commit/3336af406161648d18578c988d9b3ad79b86059a))
168
+ - 新增模版相关页面 ([8925a02](https://github.com/anyup/uView-Pro/commit/8925a02f9fa88f4742d984f2ff02909afc6ad0d7))
169
+ - 重构 request 类,优化泛型支持 ([d7b2e6a](https://github.com/anyup/uView-Pro/commit/d7b2e6a224d96f717e5bdbaf09edb19b712ced47))
128
170
 
129
171
  ## 0.0.4(2025-08-14)
130
172
 
131
173
  ### 新增
132
174
 
133
- - `u-icon` 组件新增 `space` 属性,表示`label` 在四周时与图标的距离,权重高于 `margin`,单位 rpx
134
- - 新增`$u`工具库各类方法,同步文档
135
- - 组件全部 setup 化,全面支持 TypeScript 和 Vue3
136
- - 工具库示例页面全部 setup 化
175
+ - `u-icon` 组件新增 `space` 属性,表示`label` 在四周时与图标的距离,权重高于 `margin`,单位 rpx
176
+ - 新增`$u`工具库各类方法,同步文档
177
+ - 组件全部 setup 化,全面支持 TypeScript 和 Vue3
178
+ - 工具库示例页面全部 setup 化
137
179
 
138
180
  ### 优化
139
181
 
140
- - 组件样式兼容多端
141
- - 代码注释与类型完善
142
- - 优化演示代码兼容性
182
+ - 组件样式兼容多端
183
+ - 代码注释与类型完善
184
+ - 优化演示代码兼容性
143
185
 
144
186
  ### 修复
145
187
 
146
- - 修复类型声明、变量冲突、lint 报错等问题
188
+ - 修复类型声明、变量冲突、lint 报错等问题
147
189
 
148
190
  ## 0.0.3(2025-08-06)
149
191
 
150
- - 添加插件使用示例工程
192
+ - 添加插件使用示例工程
151
193
 
152
194
  ## 0.0.2(2025-08-04)
153
195
 
154
- - 解决一些 npm 包依赖问题
196
+ - 解决一些 npm 包依赖问题
155
197
 
156
198
  ## 0.0.1(2025-08-04)
157
199
 
158
- - 70+精选组件,使用 Vue3+TS 全面重构,功能丰富,多端兼容,让您快速集成,开箱即用
159
- - 兼容安卓,iOS,微信小程序,H5 等
160
- - 详尽的文档支持,现代化的演示效果
161
- - 按需引入,精简打包体积
200
+ - 70+精选组件,使用 Vue3+TS 全面重构,功能丰富,多端兼容,让您快速集成,开箱即用
201
+ - 兼容安卓,iOS,微信小程序,H5 等
202
+ - 详尽的文档支持,现代化的演示效果
203
+ - 按需引入,精简打包体积
162
204
 
163
205
  ### 基础组件(8)
164
206
 
165
- - Color 色彩
166
- - Icon 图标
167
- - Image 图片
168
- - Button 按钮
169
- - Layout 布局
170
- - Cell 单元格
171
- - Badge 徽标数
172
- - Tag 标签
207
+ - Color 色彩
208
+ - Icon 图标
209
+ - Image 图片
210
+ - Button 按钮
211
+ - Layout 布局
212
+ - Cell 单元格
213
+ - Badge 徽标数
214
+ - Tag 标签
173
215
 
174
216
  ---
175
217
 
176
218
  ### 表单组件(15)
177
219
 
178
- - Form 表单
179
- - Calendar 日历
180
- - Select 列选择器
181
- - Keyboard 键盘
182
- - Picker 选择器
183
- - Rate 评分
184
- - Search 搜索
185
- - NumberBox 步进器
186
- - Upload 上传
187
- - VerificationCode 验证码倒计时
188
- - Field 输入框
189
- - Checkbox 复选框
190
- - Radio 单选框
191
- - Switch 开关选择器
192
- - Slider 滑动选择器
220
+ - Form 表单
221
+ - Calendar 日历
222
+ - Select 列选择器
223
+ - Keyboard 键盘
224
+ - Picker 选择器
225
+ - Rate 评分
226
+ - Search 搜索
227
+ - NumberBox 步进器
228
+ - Upload 上传
229
+ - VerificationCode 验证码倒计时
230
+ - Field 输入框
231
+ - Checkbox 复选框
232
+ - Radio 单选框
233
+ - Switch 开关选择器
234
+ - Slider 滑动选择器
193
235
 
194
236
  ---
195
237
 
196
238
  ### 数据组件(4)
197
239
 
198
- - Progress 进度条
199
- - Table 表格
200
- - CountDown 倒计时
201
- - CountTo 数字滚动
240
+ - Progress 进度条
241
+ - Table 表格
242
+ - CountDown 倒计时
243
+ - CountTo 数字滚动
202
244
 
203
245
  ---
204
246
 
205
247
  ### 反馈组件(10)
206
248
 
207
- - ActionSheet 操作菜单
208
- - AlertTips 警告提示
209
- - Toast 消息提示
210
- - NoticeBar 滚动通知
211
- - TopTips 顶部提示
212
- - SwipeAction 滑动单元格
213
- - Collapse 折叠面板
214
- - Popup 弹出层
215
- - Modal 模态框
216
- - fullScreen 压窗屏
249
+ - ActionSheet 操作菜单
250
+ - AlertTips 警告提示
251
+ - Toast 消息提示
252
+ - NoticeBar 滚动通知
253
+ - TopTips 顶部提示
254
+ - SwipeAction 滑动单元格
255
+ - Collapse 折叠面板
256
+ - Popup 弹出层
257
+ - Modal 模态框
258
+ - fullScreen 压窗屏
217
259
 
218
260
  ---
219
261
 
220
262
  ### 布局组件(11)
221
263
 
222
- - Line 线条
223
- - Card 卡片
224
- - Mask 遮罩层
225
- - NoNetwork 无网络提示
226
- - Grid 宫格布局
227
- - Swiper 轮播图
228
- - TimeLine 时间轴
229
- - Skeleton 骨架屏
230
- - Sticky 吸顶
231
- - Waterfall 瀑布流
232
- - Divider 分割线
264
+ - Line 线条
265
+ - Card 卡片
266
+ - Mask 遮罩层
267
+ - NoNetwork 无网络提示
268
+ - Grid 宫格布局
269
+ - Swiper 轮播图
270
+ - TimeLine 时间轴
271
+ - Skeleton 骨架屏
272
+ - Sticky 吸顶
273
+ - Waterfall 瀑布流
274
+ - Divider 分割线
233
275
 
234
276
  ---
235
277
 
236
278
  ### 导航组件(11)
237
279
 
238
- - Dropdown 下拉菜单
239
- - Tabbar 底部导航栏
240
- - BackTop 返回顶部
241
- - Navbar 导航栏
242
- - Tabs 标签
243
- - TabsSwiper 全屏选项卡
244
- - Subsection 分段器
245
- - IndexList 索引列表
246
- - Steps 步骤条
247
- - Empty 内容为空
248
- - Section 查看更多
280
+ - Dropdown 下拉菜单
281
+ - Tabbar 底部导航栏
282
+ - BackTop 返回顶部
283
+ - Navbar 导航栏
284
+ - Tabs 标签
285
+ - TabsSwiper 全屏选项卡
286
+ - Subsection 分段器
287
+ - IndexList 索引列表
288
+ - Steps 步骤条
289
+ - Empty 内容为空
290
+ - Section 查看更多
249
291
 
250
292
  ---
251
293
 
252
294
  ### 其他组件(8)
253
295
 
254
- - MessageInput 验证码输入
255
- - Loadmore 加载更多
256
- - ReadMore 展开阅读更多
257
- - LazyLoad 懒加载
258
- - Gap 间隔槽
259
- - Avatar 头像
260
- - Link 超链接
261
- - Loading 加载动画
296
+ - MessageInput 验证码输入
297
+ - Loadmore 加载更多
298
+ - ReadMore 展开阅读更多
299
+ - LazyLoad 懒加载
300
+ - Gap 间隔槽
301
+ - Avatar 头像
302
+ - Link 超链接
303
+ - Loading 加载动画
262
304
 
263
305
  ---
package/index.ts CHANGED
@@ -1,5 +1,3 @@
1
- // 全局挂载引入http相关请求拦截插件
2
- import http from './libs/request/index';
3
1
  // post类型对象参数转为get类型url参数
4
2
  import queryParams from './libs/function/queryParams';
5
3
  // 路由封装
@@ -55,7 +53,8 @@ import config from './libs/config/config';
55
53
  import zIndex from './libs/config/zIndex';
56
54
  import { dispatch, broadcast } from './libs/util/emitter';
57
55
  import { mitt } from './libs/util/mitt';
58
- import { type RequestOptions } from './libs/request/index';
56
+ // http相关
57
+ import httpPlugin, { Request, http, type RequestOptions, type RequestConfig, type RequestInterceptor, type RequestMeta } from './libs/request/index';
59
58
 
60
59
  declare const uni: {
61
60
  [key: string]: any;
@@ -85,10 +84,6 @@ export interface UViewUtils {
85
84
  randomArray: typeof randomArray;
86
85
  dispatch: typeof dispatch;
87
86
  broadcast: typeof broadcast;
88
- get: typeof http.get;
89
- post: typeof http.post;
90
- put: typeof http.put;
91
- delete: typeof http.delete;
92
87
  hexToRgb: typeof colorGradients.hexToRgb;
93
88
  rgbToHex: typeof colorGradients.rgbToHex;
94
89
  test: typeof test;
@@ -128,10 +123,6 @@ export const $u: UViewUtils = {
128
123
  randomArray,
129
124
  dispatch,
130
125
  broadcast,
131
- get: http.get,
132
- post: http.post,
133
- put: http.put,
134
- delete: http.delete,
135
126
  hexToRgb: colorGradients.hexToRgb,
136
127
  rgbToHex: colorGradients.rgbToHex,
137
128
  test,
@@ -193,10 +184,12 @@ export {
193
184
  parentData,
194
185
  dispatch,
195
186
  broadcast,
196
- http,
197
187
  config,
198
188
  zIndex
199
189
  };
200
190
 
201
191
  // 颜色相关方法单独导出
202
192
  export const { colorGradient, colorToRgba, hexToRgb, rgbToHex } = colorGradients;
193
+
194
+ // http相关导出
195
+ export { Request, httpPlugin, http, type RequestOptions, type RequestConfig, type RequestInterceptor, type RequestMeta };
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * 显示无图标的 Toast 提示
3
3
  * @param title 提示文本
4
- * @param duration 显示时长(毫秒),默认1500
4
+ * @param option 显示时长(毫秒)默认1500 /显示图标,默认为none,
5
5
  */
6
- function toast(title: string, duration: number = 1500): void {
6
+ function toast(title: string, option: number | string | Record<string, any> = 1500): void {
7
7
  uni.showToast({
8
8
  title: title,
9
- icon: 'none',
10
- duration: duration
9
+ icon: typeof option === 'string' ? option : typeof option === 'object' ? option.icon || 'none' : 'none',
10
+ duration: typeof option === 'number' ? option : typeof option === 'object' ? option.duration || '1500' : 1500
11
11
  });
12
12
  }
13
13