uview-plus 3.1.40 → 3.1.41

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,5 @@
1
+ ## 3.1.41(2023-11-18)
2
+ #215优化u-cell图标容器间距问题
1
3
  ## 3.1.40(2023-11-16)
2
4
  修复u-slider双向绑定
3
5
  ## 3.1.39(2023-11-10)
@@ -4,12 +4,12 @@
4
4
  @tap="clickHandler">
5
5
  <view class="u-cell__body" :class="[ center && 'u-cell--center', size === 'large' && 'u-cell__body--large']">
6
6
  <view class="u-cell__body__content">
7
- <view class="u-cell__left-icon-wrap">
8
- <slot name="icon">
9
- <u-icon v-if="icon" :name="icon"
10
- :custom-style="iconStyle"
11
- :size="size === 'large' ? 22 : 18"></u-icon>
7
+ <view class="u-cell__left-icon-wrap" v-if="$slots.icon || icon">
8
+ <slot name="icon" v-if="$slots.icon">
12
9
  </slot>
10
+ <u-icon v-else :name="icon"
11
+ :custom-style="iconStyle"
12
+ :size="size === 'large' ? 22 : 18"></u-icon>
13
13
  </view>
14
14
  <view class="u-cell__title">
15
15
  <slot name="title">
@@ -27,12 +27,12 @@
27
27
  :class="[disabled && 'u-cell--disabled', size === 'large' && 'u-cell__value--large']"
28
28
  v-if="!$u.test.empty(value)">{{ value }}</text>
29
29
  </slot>
30
- <view class="u-cell__right-icon-wrap"
30
+ <view class="u-cell__right-icon-wrap" v-if="$slots['right-icon'] || isLink"
31
31
  :class="[`u-cell__right-icon-wrap--${arrowDirection}`]">
32
- <slot name="right-icon">
33
- <u-icon v-if="isLink" :name="rightIcon" :custom-style="rightIconStyle" :color="disabled ? '#c8c9cc' : 'info'"
34
- :size="size === 'large' ? 18 : 16"></u-icon>
32
+ <slot name="right-icon" v-if="$slots['right-icon']">
35
33
  </slot>
34
+ <u-icon v-else :name="rightIcon" :custom-style="rightIconStyle" :color="disabled ? '#c8c9cc' : 'info'"
35
+ :size="size === 'large' ? 18 : 16"></u-icon>
36
36
  </view>
37
37
  </view>
38
38
  <u-line v-if="border"></u-line>
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.1.40",
5
+ "version": "3.1.41",
6
6
  "description": "uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",