zydx-plus 1.33.419 → 1.33.421

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.421",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -3186,6 +3186,48 @@ let buttonNames = {
3186
3186
  }
3187
3187
  }
3188
3188
  },
3189
+ resource_lesson_topic: {
3190
+ actionName: '课程专题',
3191
+ buttonList: {
3192
+ 0: {
3193
+ headLevel: {
3194
+ default: "btnIndex1",
3195
+ btnIndex1: this.getCurrentPrefix(item) + '专题',
3196
+ btnIndex2: this.getPrefix(item) + '专题'
3197
+ },
3198
+ otherLevel: {
3199
+ default: "btnIndex1",
3200
+ btnIndex1: this.getCurrentPrefix(item) + '专题',
3201
+ btnIndex2: this.getPrefix(item) + '专题'
3202
+ },
3203
+ lowLevel: {
3204
+ default: "viewResource",
3205
+ createResource: '创建专题',
3206
+ viewResource: '专题列表',
3207
+ // selectResource: '查找资源',
3208
+ }
3209
+ },
3210
+ 2: {
3211
+ headLevel: {
3212
+ default: "btnIndex1",
3213
+ btnIndex1: this.getCurrentPrefix(item) + '专题',
3214
+ btnIndex2: this.getPrefix(item) + '专题'
3215
+ },
3216
+ otherLevel: {
3217
+ default: "btnIndex1",
3218
+ btnIndex1: this.getCurrentPrefix(item) + '专题',
3219
+ btnIndex2: this.getPrefix(item) + '专题'
3220
+ },
3221
+ lowLevel: {
3222
+ default: "viewResource",
3223
+ viewResource: '专题列表',
3224
+ // selectResource: '查找资源',
3225
+ }
3226
+ }
3227
+ }
3228
+ },
3229
+
3230
+
3189
3231
  }[this.actionId];
3190
3232
  },
3191
3233
  // 获取前缀内容
@@ -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,
@@ -116,8 +116,8 @@ export default {
116
116
  this.$emit('update:select', tree)
117
117
  },
118
118
  textStyle: function (tree) {
119
- const { fontSize = 16 } = tree
120
- return `font-size: ${fontSize}px`
119
+ const { fontSize = 16, fontWeight } = tree
120
+ return {'font-size': fontSize+'px' ,'font-weight': fontWeight}
121
121
  }
122
122
  },
123
123
  }
@@ -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.421',
87
87
  install,
88
88
  Calendar,
89
89
  Message,