@jx3box/jx3box-common-ui 8.9.8 → 8.9.10

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.9.8",
3
+ "version": "8.9.10",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -31,7 +31,7 @@
31
31
  ],
32
32
  "dependencies": {
33
33
  "@jx3box/jx3box-comment-ui": "^1.9.9",
34
- "@jx3box/jx3box-common": "^8.3.0",
34
+ "@jx3box/jx3box-common": "^8.3.1",
35
35
  "@jx3box/jx3box-data": "^3.6.2",
36
36
  "@jx3box/jx3box-editor": "^2.2.13",
37
37
  "@jx3box/reporter": "^0.0.4",
@@ -68,4 +68,4 @@
68
68
  "type": "git",
69
69
  "url": "git+https://github.com/JX3BOX/jx3box-common-ui.git"
70
70
  }
71
- }
71
+ }
@@ -25,14 +25,8 @@
25
25
 
26
26
  <el-divider content-position="left">附图</el-divider>
27
27
  <div class="u-imgs">
28
- <div
29
- :class="`u-imgs-item ${form.banner_img === item && 'active'}`"
30
- v-for="(item, i) in form.extra_images"
31
- :key="i"
32
- @click="setBannerIndex(item)"
33
- >
28
+ <div :class="`u-imgs-item`" v-for="(item, i) in form.extra_images" :key="i">
34
29
  <el-image :src="item" fit="cover" style="width: 148px; height: 148px" />
35
- <div class="u-mark">封面</div>
36
30
  </div>
37
31
  </div>
38
32
 
@@ -80,14 +74,13 @@ export default {
80
74
  category: "",
81
75
  id: "",
82
76
  introduction: "",
83
- banner_img: undefined,
84
77
  extra_images: undefined,
85
78
  },
86
79
  categoryList: [],
87
80
  isPhone: window.innerWidth < 768,
88
81
  rules: {
89
82
  category: [{ required: true, message: "请选择分类", trigger: "blur" }],
90
- }
83
+ },
91
84
  };
92
85
  },
93
86
  watch: {
@@ -116,10 +109,7 @@ export default {
116
109
  this.$emit("update:modelValue", false);
117
110
  },
118
111
  clearForm() {
119
- this.form = { category: "", id: "", introduction: "", banner_img: "", extra_images: [] };
120
- },
121
- setBannerIndex(img) {
122
- this.form.banner_img = img;
112
+ this.form = { category: "", id: "", introduction: "", extra_images: [] };
123
113
  },
124
114
  onConfirm() {
125
115
  if (!this.post?.ID) {
@@ -135,7 +125,7 @@ export default {
135
125
  return;
136
126
  }
137
127
 
138
- this.$refs.form?.validate(valid => {
128
+ this.$refs.form?.validate((valid) => {
139
129
  if (valid) {
140
130
  recoverTopicFromPosts(this.form).then(() => {
141
131
  this.$message.success("操作成功");
@@ -143,8 +133,7 @@ export default {
143
133
  this.clearForm();
144
134
  });
145
135
  }
146
- })
147
-
136
+ });
148
137
  },
149
138
  onCancel() {
150
139
  this.close();