jmash-diy-mp 0.1.6 → 0.1.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmash-diy-mp",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "private": false,
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -4,10 +4,10 @@
4
4
  <view class="main-left">
5
5
  <!-- 标题左侧自定义图标 -->
6
6
  <image wx:if="{{ titleStyle === '1' && titleImage }}" class="title-left-icon"
7
- src="{{ resourceUrl + titleImage }}" mode="aspectFit" />
7
+ src="{{ baseUrl + titleImage }}" mode="aspectFit" />
8
8
  <!-- 标题左侧竖线 -->
9
- <image wx:else class="main-left-image"
10
- src="{{ resourceUrl + 'images/icon_image/rectangle2x_' + themeColor + '.png' }}" mode="aspectFit" />
9
+ <image wx:else class="main-left-image" src="{{ resourceUrl + 'rectangle2x_' + themeColor + '.png' }}"
10
+ mode="aspectFit" />
11
11
  {{ title }}
12
12
  </view>
13
13
  <!-- 查看更多 -->
@@ -49,15 +49,17 @@ createComponent({
49
49
  type: String,
50
50
  default: ""
51
51
  },
52
- // 是否显示查看更多
52
+ // 是否显示查看更多, 默认false ==> compModel.compData.showMore
53
53
  showMore: {
54
54
  type: Boolean,
55
- value: false
55
+ default: false
56
56
  },
57
57
  },
58
58
  setup(props) {
59
59
  // 资源路径
60
- let resourceUrl = config.resourceUrl + '/';
60
+ let resourceUrl = config.resourceUrl + '/images/icon_image/';
61
+ // 图标路径
62
+ let baseUrl = config.baseUrl + "/v1/file/image/clip/0/0/";
61
63
  // 主题色
62
64
  let themeColor = ref(props.pageModel.pageData.theme);
63
65
  // 标题样式(titleStyle=0:原有左侧竖线,1:左侧自定义图标)
@@ -81,6 +83,7 @@ createComponent({
81
83
 
82
84
  return {
83
85
  resourceUrl,
86
+ baseUrl,
84
87
  themeColor,
85
88
  titleStyle,
86
89
  titleImage,