@jx3box/jx3box-editor 0.8.9 → 0.9.3
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/module/buff.less +14 -7
- package/assets/css/module/table.less +1 -1
- package/package.json +1 -1
- package/src/Buff.vue +11 -0
- package/src/Upload.vue +9 -7
|
@@ -29,10 +29,17 @@
|
|
|
29
29
|
.fz(13px);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
.w-buff-type{
|
|
33
|
+
.db;
|
|
34
|
+
color: #77ecff;
|
|
35
|
+
letter-spacing: 0.5px;
|
|
36
|
+
.mb(5px);
|
|
37
|
+
.fz(12px, 20px);
|
|
38
|
+
}
|
|
39
|
+
|
|
32
40
|
.w-buff-desc {
|
|
33
41
|
color: #ffffff;
|
|
34
42
|
letter-spacing: 0.5px;
|
|
35
|
-
.mb(10px);
|
|
36
43
|
.fz(12px, 20px);
|
|
37
44
|
}
|
|
38
45
|
|
|
@@ -55,12 +62,12 @@
|
|
|
55
62
|
// line-height: 36px;
|
|
56
63
|
// }
|
|
57
64
|
|
|
58
|
-
&.isBuff {
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
&.isDebuff {
|
|
62
|
-
|
|
63
|
-
}
|
|
65
|
+
// &.isBuff {
|
|
66
|
+
// color: #37a900;
|
|
67
|
+
// }
|
|
68
|
+
// &.isDebuff {
|
|
69
|
+
// color: #900;
|
|
70
|
+
// }
|
|
64
71
|
text-decoration: underline;
|
|
65
72
|
&:hover {
|
|
66
73
|
box-shadow: none !important;
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
margin: 10px 0;
|
|
8
8
|
overflow-x: auto;
|
|
9
9
|
max-width: 100%;
|
|
10
|
-
display: block;
|
|
11
10
|
border: none;
|
|
12
11
|
|
|
13
12
|
line-height:2.2;
|
|
@@ -42,6 +41,7 @@
|
|
|
42
41
|
@media screen and (max-width: @phone) {
|
|
43
42
|
.c-article{
|
|
44
43
|
table {
|
|
44
|
+
display: block;
|
|
45
45
|
width: 100% !important;
|
|
46
46
|
height: auto !important;
|
|
47
47
|
|
package/package.json
CHANGED
package/src/Buff.vue
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
<div class="w-buff-content">
|
|
6
6
|
<span class="w-buff-name">{{data.Name}}</span>
|
|
7
7
|
<span class="w-buff-desc">{{data.Desc}}</span>
|
|
8
|
+
<span class="w-buff-type" v-if="data.DetachType">※ {{data.DetachType | showDetachType}}</span>
|
|
8
9
|
<span class="w-buff-meta">ID : {{data.BuffID}}</span>
|
|
9
10
|
<span class="w-buff-meta">Level : {{data.Level}}</span>
|
|
10
11
|
</div>
|
|
@@ -15,6 +16,7 @@
|
|
|
15
16
|
<script>
|
|
16
17
|
import { getBuff } from "../service/database.js";
|
|
17
18
|
import { iconLink } from "@jx3box/jx3box-common/js/utils";
|
|
19
|
+
import detach_types from "../assets/data/detach_type.json";
|
|
18
20
|
export default {
|
|
19
21
|
name: "Buff",
|
|
20
22
|
props: ["client", "id", "level"],
|
|
@@ -62,6 +64,15 @@ export default {
|
|
|
62
64
|
return iconLink(id, this.client);
|
|
63
65
|
},
|
|
64
66
|
},
|
|
67
|
+
filters : {
|
|
68
|
+
showDetachType: function (val) {
|
|
69
|
+
if (val && detach_types[val]) {
|
|
70
|
+
return detach_types[val];
|
|
71
|
+
} else {
|
|
72
|
+
return "";
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
}
|
|
65
76
|
};
|
|
66
77
|
</script>
|
|
67
78
|
|
package/src/Upload.vue
CHANGED
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
:file-list="fileList"
|
|
29
29
|
:on-change="change"
|
|
30
30
|
ref="uploadbox"
|
|
31
|
+
:accept="accept"
|
|
31
32
|
>
|
|
32
33
|
<!-- :accept="accept" -->
|
|
33
34
|
<i slot="default" class="el-icon-plus"></i>
|
|
@@ -86,13 +87,12 @@ const imgtypes = ["jpg", "png", "gif", "bmp", "webp"];
|
|
|
86
87
|
|
|
87
88
|
export default {
|
|
88
89
|
name: "Upload",
|
|
89
|
-
props: ["text"],
|
|
90
|
+
props: ["text",'onlyImage','desc','accept'],
|
|
90
91
|
data: function () {
|
|
91
92
|
return {
|
|
92
93
|
API: API,
|
|
93
94
|
dialogVisible: false,
|
|
94
|
-
tip:
|
|
95
|
-
"一次最多同时上传10个文件(不超过5M),格式限常见的图片、文档、数据表及压缩包",
|
|
95
|
+
tip: this.desc || "一次最多同时上传10个文件(不超过5M),格式限常见的图片、文档、数据表及压缩包",
|
|
96
96
|
btn_txt: this.text || "上传附件",
|
|
97
97
|
|
|
98
98
|
fileList: [],
|
|
@@ -129,6 +129,12 @@ export default {
|
|
|
129
129
|
// return;
|
|
130
130
|
// }
|
|
131
131
|
|
|
132
|
+
// 分析文件类型
|
|
133
|
+
let ext = file.name.split(".").pop();
|
|
134
|
+
let is_img = imgtypes.includes(ext);
|
|
135
|
+
|
|
136
|
+
if(this.onlyImage && !is_img) return
|
|
137
|
+
|
|
132
138
|
// 构建数据
|
|
133
139
|
let fdata = new FormData();
|
|
134
140
|
fdata.append("file", file.raw);
|
|
@@ -149,10 +155,6 @@ export default {
|
|
|
149
155
|
// 修改path
|
|
150
156
|
file.url = res.data.data && res.data.data[0];
|
|
151
157
|
|
|
152
|
-
// 分析文件类型
|
|
153
|
-
let ext = file.name.split(".").pop();
|
|
154
|
-
let is_img = imgtypes.includes(ext);
|
|
155
|
-
|
|
156
158
|
// 额外赋值
|
|
157
159
|
file.is_img = is_img;
|
|
158
160
|
file.selected = true;
|