bulade-ui 1.1.50 → 1.1.51

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.
@@ -1,9 +1,20 @@
1
- <view class="{{ loseStyle ? '' : 'content-wrapper' }} iclass">
2
- <!-- <mp-html
1
+ <view
2
+ class="{{ loseStyle ? '' : 'content-wrapper' }} iclass"
3
+ wx:if="{{ mode == 'mpHtml' }}"
4
+ >
5
+ <mp-html
3
6
  content="{{ content }}"
4
7
  preview-img="{{ false }}"
5
8
  tag-style="{{ tagStyle }}"
6
9
  container-style="{{ containerStyle }}"
7
- /> -->
8
- <rich-text nodes="{{content}}" bindtap="tap" mode="{{mode}}" class="richTextClass"></rich-text>
10
+ />
11
+ </view>
12
+ <view class="{{ loseStyle ? '' : 'content-wrapper' }} iclass" wx:else>
13
+ <rich-text
14
+ nodes="{{ content }}"
15
+ bindtap="tap"
16
+ mode="{{ mode }}"
17
+ class="richTextClass"
18
+ >
19
+ </rich-text>
9
20
  </view>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bulade-ui",
3
- "version": "1.1.50",
3
+ "version": "1.1.51",
4
4
  "description": "轻量、可靠的小程序 UI 组件库",
5
5
  "main": "miniprogram_dist/index.js",
6
6
  "scripts": {
@@ -1,9 +1,20 @@
1
- <view class="{{ loseStyle ? '' : 'content-wrapper' }} iclass">
2
- <!-- <mp-html
1
+ <view
2
+ class="{{ loseStyle ? '' : 'content-wrapper' }} iclass"
3
+ wx:if="{{ mode == 'mpHtml' }}"
4
+ >
5
+ <mp-html
3
6
  content="{{ content }}"
4
7
  preview-img="{{ false }}"
5
8
  tag-style="{{ tagStyle }}"
6
9
  container-style="{{ containerStyle }}"
7
- /> -->
8
- <rich-text nodes="{{content}}" bindtap="tap" mode="{{mode}}" class="richTextClass"></rich-text>
10
+ />
11
+ </view>
12
+ <view class="{{ loseStyle ? '' : 'content-wrapper' }} iclass" wx:else>
13
+ <rich-text
14
+ nodes="{{ content }}"
15
+ bindtap="tap"
16
+ mode="{{ mode }}"
17
+ class="richTextClass"
18
+ >
19
+ </rich-text>
9
20
  </view>