@jx3box/jx3box-common-ui 7.8.3 → 7.8.5

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/bread/Admin.vue +28 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "7.8.3",
3
+ "version": "7.8.5",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -31,7 +31,8 @@
31
31
  <el-checkbox v-for="(option, key) in mark_options" :label="key" :key="key">{{ option }}</el-checkbox>
32
32
  </el-checkbox-group>
33
33
 
34
- <el-divider content-position="left">加粗高亮</el-divider>
34
+ <el-divider content-position="left">高亮置顶</el-divider>
35
+ <el-checkbox class="c-admin-highlight-checkbox" v-model="isSticky">置顶</el-checkbox>
35
36
  <el-checkbox class="c-admin-highlight-checkbox" v-model="isHighlight">开启高亮</el-checkbox>
36
37
  <template v-if="isHighlight">
37
38
  <el-color-picker
@@ -43,9 +44,6 @@
43
44
  <span class="c-admin-highlight-preview" :style="{ color: color }">预览高亮效果</span>
44
45
  </template>
45
46
 
46
- <el-divider content-position="left">是否置顶</el-divider>
47
- <el-switch v-model="isSticky" active-text="置顶" class="switch-post-pinned drawer-item-content"></el-switch>
48
-
49
47
  <el-divider content-position="left">封面海报</el-divider>
50
48
  <div class="c-admin-banner">
51
49
  <el-upload
@@ -69,8 +67,15 @@
69
67
 
70
68
  <el-divider content-position="left">元信息</el-divider>
71
69
  <div class="c-admin-info">
72
- <div class="c-admin-type">
73
- <el-select v-model="post_type" placeholder="请选择类型" class="drawer-item-content">
70
+ <div class="w-select c-admin-type">
71
+ <div class="u-select-label">板块</div>
72
+ <el-select
73
+ v-model="post_type"
74
+ placeholder="请选择板块"
75
+ style="width: 100%"
76
+ class="u-select drawer-item-content"
77
+ :disabled="appDisabled"
78
+ >
74
79
  <el-option
75
80
  v-for="type in type_options"
76
81
  :key="type.value"
@@ -80,11 +85,11 @@
80
85
  </el-select>
81
86
  </div>
82
87
  <div class="c-admin-author">
83
- <el-input
84
- v-model="post_author"
85
- placeholder="请输入作者uid"
86
- class="input-author drawer-item-content"
87
- ></el-input>
88
+ <el-input v-model="post_author" placeholder="请输入作者ID" class="input-author drawer-item-content">
89
+ <template #prepend>
90
+ <span class="u-keyword">作者ID</span>
91
+ </template>
92
+ </el-input>
88
93
  </div>
89
94
  </div>
90
95
 
@@ -123,6 +128,11 @@ export default {
123
128
  type: [Number, String],
124
129
  default: 0,
125
130
  },
131
+ // 是否禁止板块选择
132
+ appDisabled: {
133
+ type: Boolean,
134
+ default: false,
135
+ },
126
136
  },
127
137
  data() {
128
138
  return {
@@ -243,6 +253,9 @@ export default {
243
253
  // 关闭
244
254
  close(done) {
245
255
  this.dialog_visible = false;
256
+ this.$emit("update", {
257
+ show: false,
258
+ });
246
259
  },
247
260
  // 拉
248
261
  pull: function () {
@@ -273,7 +286,10 @@ export default {
273
286
  push: function () {
274
287
  postSetting(this.data)
275
288
  .then((res) => {
276
- this.$emit("update", this.data);
289
+ this.$emit("update", {
290
+ show: false,
291
+ data: this.data,
292
+ });
277
293
  this.$message({
278
294
  message: "设置成功",
279
295
  type: "success",