@jx3box/jx3box-common-ui 8.0.0 → 8.0.2

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": "@jx3box/jx3box-common-ui",
3
- "version": "8.0.0",
3
+ "version": "8.0.2",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,8 +1,8 @@
1
1
  <template>
2
2
  <div class="c-author-medals" v-if="ready">
3
3
  <div class="u-label">
4
- <!-- <i class="el-icon-trophy"></i> -->
5
- <img svg-inline src="../../assets/img/leftsidebar/medal.svg" />
4
+ <i class="el-icon-trophy"></i>
5
+ <!-- <img svg-inline src="../../assets/img/leftsidebar/medal.svg" /> -->
6
6
  <span>作者荣誉</span>
7
7
  </div>
8
8
  <div class="u-medals" v-if="medals && medals.length">
@@ -1,8 +1,8 @@
1
1
  <template>
2
2
  <div class="c-author-teams" v-if="ready">
3
3
  <div class="u-label">
4
- <!-- <i class="el-icon-school"></i> -->
5
- <img svg-inline src="../../assets/img/leftsidebar/united.svg" />
4
+ <i class="el-icon-school"></i>
5
+ <!-- <img svg-inline src="../../assets/img/leftsidebar/united.svg" /> -->
6
6
  <span>所在团队</span>
7
7
  </div>
8
8
  <div class="u-teams">
@@ -39,9 +39,11 @@
39
39
  class="c-admin-highlight-block"
40
40
  v-model="color"
41
41
  :predefine="color_options"
42
+ size="mini"
42
43
  ></el-color-picker>
43
- <span class="c-admin-highlight-preview" :style="{ color: color }">预览高亮效果</span>
44
+ <span class="c-admin-highlight-preview" :style="{ color: color }" style="margin-right: 10px;">预览高亮效果</span>
44
45
  </template>
46
+ <el-checkbox class="c-admin-highlight-checkbox" v-model="isStar" :true-label="1" :false-label="0">精选</el-checkbox>
45
47
 
46
48
  <el-divider content-position="left">封面海报</el-divider>
47
49
  <div class="c-admin-banner">
@@ -176,6 +178,7 @@ export default {
176
178
  // 置顶
177
179
  isSticky: false,
178
180
  sticky: 0,
181
+ isStar: 0,
179
182
 
180
183
  // 海报
181
184
  uploadurl: __cms + "api/cms/upload",
@@ -202,6 +205,7 @@ export default {
202
205
  color: this.isHighlight ? this.color : "",
203
206
  mark: this.mark || [],
204
207
  sticky: this.isSticky ? Date.now() : null,
208
+ star: this.isStar
205
209
  };
206
210
  },
207
211
  isAdmin: function () {
@@ -259,7 +263,7 @@ export default {
259
263
  // 拉
260
264
  pull: function () {
261
265
  getSetting(this.pid).then((data) => {
262
- let { ID, color, mark, post_status, post_author, sticky, post_banner, post_type, visible } = data;
266
+ let { ID, color, mark, post_status, post_author, sticky, post_banner, post_type, visible, star } = data;
263
267
  this.pid = ID;
264
268
  this.post_status = post_status;
265
269
  this.visible = visible;
@@ -272,6 +276,8 @@ export default {
272
276
  this.sticky = sticky || 0;
273
277
  if (this.sticky) this.isSticky = true;
274
278
 
279
+ this.isStar = star || 0;
280
+
275
281
  // 设置加载完成标识
276
282
  this.pulled = true;
277
283
  });