@jx3box/jx3box-editor 1.3.7 → 1.4.0
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/assets/css/resource.less +11 -0
- package/assets/css/tinymce/a.less +5 -5
- package/package.json +1 -1
- package/src/BoxResource.vue +11 -7
package/assets/css/resource.less
CHANGED
|
@@ -262,6 +262,17 @@
|
|
|
262
262
|
fill: @primary;
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
|
+
.u-lv-box {
|
|
266
|
+
font-style: normal;
|
|
267
|
+
font-weight: normal;
|
|
268
|
+
font-size: 12px;
|
|
269
|
+
padding: 2px 8px;
|
|
270
|
+
border: 1px solid #8269df;
|
|
271
|
+
border-radius: 2px;
|
|
272
|
+
margin-left: 5px;
|
|
273
|
+
background: #fff;
|
|
274
|
+
color: #6843f4;
|
|
275
|
+
}
|
|
265
276
|
&.el-tabs--card > .el-tabs__header .el-tabs__item {
|
|
266
277
|
transition: none;
|
|
267
278
|
}
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.e-jx3-author{
|
|
12
|
-
padding: 2px 5px;
|
|
13
|
-
border-radius: 3px;
|
|
14
|
-
border: 1px solid #8250df;
|
|
12
|
+
// padding: 2px 5px;
|
|
13
|
+
// border-radius: 3px;
|
|
14
|
+
// border: 1px solid #8250df;
|
|
15
15
|
color:#8250df;
|
|
16
16
|
|
|
17
17
|
&:hover{
|
|
18
|
-
box-shadow:
|
|
19
|
-
background-color: #fafbfc;
|
|
18
|
+
box-shadow: 0 1px 0 #8250df;
|
|
19
|
+
// background-color: #fafbfc;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
}
|
package/package.json
CHANGED
package/src/BoxResource.vue
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
<span slot="label" class="u-tab-label">
|
|
18
18
|
<i class="el-icon-s-custom" style="margin-right:5px;"></i>
|
|
19
19
|
<b>魔盒用户</b>
|
|
20
|
+
<i class="u-lv-box">Lv2+</i>
|
|
20
21
|
</span>
|
|
21
22
|
<p v-if="total && done" class="m-resource-count">
|
|
22
23
|
<i class="el-icon-s-data"></i> 共找到 <b>{{ total }}</b> 条记录
|
|
@@ -85,12 +86,11 @@
|
|
|
85
86
|
</template>
|
|
86
87
|
|
|
87
88
|
<script>
|
|
88
|
-
import {
|
|
89
|
+
import { loadStat, } from "../service/database";
|
|
89
90
|
import { loadAuthors, loadEmotions } from "../service/cms";
|
|
90
91
|
import { getUserInfo } from "../service/author";
|
|
91
92
|
import { __iconPath, __Root, __OriginRoot, __imgPath } from "@jx3box/jx3box-common/data/jx3box.json";
|
|
92
|
-
import
|
|
93
|
-
import { iconLink, getLink, showAvatar } from "@jx3box/jx3box-common/js/utils";
|
|
93
|
+
import { getLink, showAvatar } from "@jx3box/jx3box-common/js/utils";
|
|
94
94
|
import User from "@jx3box/jx3box-common/js/user";
|
|
95
95
|
export default {
|
|
96
96
|
name: "Resource",
|
|
@@ -270,10 +270,14 @@ export default {
|
|
|
270
270
|
insert: function() {
|
|
271
271
|
if (this.type === 'authors') {
|
|
272
272
|
if (this.userStatus == 0 && this.canInsertAuthor) {
|
|
273
|
-
this.
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
273
|
+
if (this.selectedAuthor.ID) {
|
|
274
|
+
this.setAuthors();
|
|
275
|
+
this.$emit("insert", this.html);
|
|
276
|
+
this.dialogVisible = false;
|
|
277
|
+
this.selectedAuthor = {};
|
|
278
|
+
} else {
|
|
279
|
+
this.$message.warning("请选择一个用户");
|
|
280
|
+
}
|
|
277
281
|
} else {
|
|
278
282
|
this.$alert('您的等级不足或无权限(Lv2以上可用)', '消息');
|
|
279
283
|
}
|