uview-plus 3.0.14 → 3.0.15

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.0.15(2022-07-22)
2
+ 修复支付宝下不支持this.$slots导致cell的slot失效
1
3
  ## 3.0.14(2022-07-22)
2
4
  修复u-grid-item与u-swipe-action-item在支付宝编译报错问题
3
5
  ## 3.0.13(2022-07-22)
@@ -4,10 +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" v-if="$slots.icon || icon">
8
- <slot name="icon" v-if="$slots.icon">
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>
9
12
  </slot>
10
- <u-icon v-else :name="icon" :custom-style="iconStyle" :size="size === 'large' ? 22 : 18"></u-icon>
11
13
  </view>
12
14
  <view class="u-cell__title">
13
15
  <slot name="title">
@@ -25,12 +27,12 @@
25
27
  :class="[disabled && 'u-cell--disabled', size === 'large' && 'u-cell__value--large']"
26
28
  v-if="!$u.test.empty(value)">{{ value }}</text>
27
29
  </slot>
28
- <view class="u-cell__right-icon-wrap" v-if="$slots['right-icon'] || isLink"
30
+ <view class="u-cell__right-icon-wrap"
29
31
  :class="[`u-cell__right-icon-wrap--${arrowDirection}`]">
30
- <slot name="right-icon" v-if="$slots['right-icon']">
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>
31
35
  </slot>
32
- <u-icon v-else :name="rightIcon" :custom-style="rightIconStyle" :color="disabled ? '#c8c9cc' : 'info'"
33
- :size="size === 'large' ? 18 : 16"></u-icon>
34
36
  </view>
35
37
  </view>
36
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重磅发布,利剑出鞘,一统江湖",
5
- "version": "3.0.14",
5
+ "version": "3.0.15",
6
6
  "description": "uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",