@jx3box/jx3box-common-ui 7.8.4 → 7.8.6

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": "7.8.4",
3
+ "version": "7.8.6",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -12,7 +12,7 @@
12
12
  <div class="c-admin-wrapper">
13
13
  <!-- <template v-if="isAdmin"> -->
14
14
  <el-divider content-position="left">状态变更</el-divider>
15
- <el-radio-group v-model="post_status" size="small" class="c-admin-status">
15
+ <el-radio-group v-model="post_status" class="c-admin-status">
16
16
  <el-radio-button v-for="(option, key) in status_options" :label="key" :key="key">{{
17
17
  option
18
18
  }}</el-radio-button>
@@ -20,7 +20,7 @@
20
20
  <!-- </template> -->
21
21
 
22
22
  <el-divider content-position="left">可见性变更</el-divider>
23
- <el-radio-group v-model="visible" size="small" class="c-admin-status">
23
+ <el-radio-group v-model="visible" class="c-admin-status">
24
24
  <el-radio-button v-for="(option, key) in visible_options" :label="key" :key="key">{{
25
25
  option
26
26
  }}</el-radio-button>
@@ -39,7 +39,6 @@
39
39
  class="c-admin-highlight-block"
40
40
  v-model="color"
41
41
  :predefine="color_options"
42
- size="mini"
43
42
  ></el-color-picker>
44
43
  <span class="c-admin-highlight-preview" :style="{ color: color }">预览高亮效果</span>
45
44
  </template>
@@ -57,7 +56,7 @@
57
56
  <img v-if="post_banner" :src="post_banner" />
58
57
  <i class="el-icon-plus"></i>
59
58
  </el-upload>
60
- <el-input class="u-banner" v-model="post_banner" size="small">
59
+ <el-input class="u-banner" v-model="post_banner">
61
60
  <span slot="prepend">海报地址</span>
62
61
  <span slot="append">
63
62
  <span class="u-btn" @click="removeBanner"> <i class="el-icon-circle-close"></i> 移除海报 </span>
@@ -253,6 +252,9 @@ export default {
253
252
  // 关闭
254
253
  close(done) {
255
254
  this.dialog_visible = false;
255
+ this.$emit("update", {
256
+ show: false,
257
+ });
256
258
  },
257
259
  // 拉
258
260
  pull: function () {
@@ -283,7 +285,10 @@ export default {
283
285
  push: function () {
284
286
  postSetting(this.data)
285
287
  .then((res) => {
286
- this.$emit("update", this.data);
288
+ this.$emit("update", {
289
+ show: false,
290
+ data: this.data,
291
+ });
287
292
  this.$message({
288
293
  message: "设置成功",
289
294
  type: "success",