zydx-plus 1.33.419 → 1.33.420

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": "zydx-plus",
3
- "version": "1.33.419",
3
+ "version": "1.33.420",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -21,7 +21,7 @@ export default {
21
21
  default: () => []
22
22
  },
23
23
  /**
24
- **
24
+ **
25
25
  ** 是否开启手风琴模式
26
26
  */
27
27
  accordian: {
@@ -29,7 +29,7 @@ export default {
29
29
  default: false
30
30
  },
31
31
  /**
32
- **
32
+ **
33
33
  ** 选中时的颜色
34
34
  */
35
35
  active_color: {
@@ -37,7 +37,7 @@ export default {
37
37
  default: 'red'
38
38
  },
39
39
  /**
40
- **
40
+ **
41
41
  ** 下边框样式
42
42
  */
43
43
  border: {
@@ -49,7 +49,7 @@ export default {
49
49
  default: '30px'
50
50
  },
51
51
  /**
52
- **
52
+ **
53
53
  */
54
54
  default_expand_key: {
55
55
  type: Array,
@@ -139,10 +139,13 @@ export default {
139
139
  </div>
140
140
  </template>
141
141
  <template v-if="tree.icon">
142
- <template v-if="['svg', 'image'].includes(tree.icon.type)">
142
+ <template v-if="['svg'].includes(tree.icon.type)">
143
143
  <span class="tree_icon"
144
144
  v-html="tree.icon.value"></span>
145
145
  </template>
146
+ <template v-else-if="['image'].includes(tree.icon.type)">
147
+ <span class="tree_icon"><img :src="tree.icon.value"></span>
148
+ </template>
146
149
  <template v-else>
147
150
  <i :class="`iconfont tree_icon ${tree.icon.value}`"></i>
148
151
  </template>
@@ -241,6 +244,10 @@ export default {
241
244
  align-items: center;
242
245
  justify-content: center;
243
246
  }
247
+ .tree_icon img {
248
+ height: 100%;
249
+ width: 100%;
250
+ }
244
251
 
245
252
  .tree_text {
246
253
  font-size: 16px;
package/src/index.js CHANGED
@@ -83,7 +83,7 @@ function install(app) {
83
83
  }
84
84
 
85
85
  export default {
86
- version: '1.33.419',
86
+ version: '1.33.420',
87
87
  install,
88
88
  Calendar,
89
89
  Message,