uview-plus 3.3.18 → 3.3.19

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,3 +1,8 @@
1
+ ## 3.3.19(2024-08-14)
2
+ fix: 修复2被rpx兼容处理只在数字值生效
3
+
4
+ add: 增加swiper自定义插槽示例
5
+
1
6
  ## 3.3.18(2024-08-13)
2
7
  feat: 新增支持datetime-picker工具栏插槽及picker插槽支持修复
3
8
  ## 3.3.17(2024-08-12)
@@ -181,7 +181,7 @@ export function addUnit(value = 'auto', unit = '') {
181
181
  if (!unit) {
182
182
  unit = config.unit || 'px'
183
183
  }
184
- if (unit == 'rpx') {
184
+ if (unit == 'rpx' && testNumber(String(value))) {
185
185
  value = value * 2
186
186
  }
187
187
  value = String(value)
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "uview-plus",
3
3
  "name": "uview-plus",
4
4
  "displayName": "零云®uview-plus3.0重磅发布,全面的Vue3移动组件库。",
5
- "version": "3.3.18",
5
+ "version": "3.3.19",
6
6
  "description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",