@jx3box/jx3box-editor 1.5.3 → 1.5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-editor",
3
- "version": "1.5.3",
3
+ "version": "1.5.5",
4
4
  "description": "JX3BOX Article & Editor",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/GameText.vue CHANGED
@@ -10,7 +10,11 @@
10
10
  </template>
11
11
 
12
12
  <script>
13
- import { extractTextContent, getLink } from "@jx3box/jx3box-common/js/utils";
13
+ import {
14
+ extractTextContent,
15
+ getLink,
16
+ iconLink,
17
+ } from "@jx3box/jx3box-common/js/utils";
14
18
  import { getResource } from "../service/resource";
15
19
  import { escape } from "lodash";
16
20
 
@@ -21,6 +25,10 @@ export default {
21
25
  type: String,
22
26
  default: "",
23
27
  },
28
+ ignoreColor: {
29
+ type: Boolean,
30
+ default: false,
31
+ },
24
32
  client: {
25
33
  type: String,
26
34
  default: "std",
@@ -64,6 +72,9 @@ export default {
64
72
  link = getLink("item", item_id);
65
73
  }
66
74
  }
75
+ if (this.ignoreColor) {
76
+ style = "";
77
+ }
67
78
  if (link) {
68
79
  return `<a style="${style} text-decoration: none;" target="_blank" href="${link}">${content}</a>`;
69
80
  } else {
@@ -81,7 +92,7 @@ export default {
81
92
  let icon_id = match.match(/frame=(\d+)/i)?.[1];
82
93
  let w = parseInt(match.match(/w=(\d+)/i)?.[1]) / 1.12;
83
94
  let h = parseInt(match.match(/h=(\d+)/i)?.[1]) / 1.12;
84
- let src = `https://icon.jx3box.com/icon/${icon_id}.png`;
95
+ let src = iconLink(icon_id, this.client);
85
96
  let html = `<img src="${src}" style="width: ${w}px; height: ${h}px; margin-bottom: -5px" />`;
86
97
  Text = Text.replace(match, html);
87
98
  }
package/src/Item.vue CHANGED
@@ -165,8 +165,10 @@
165
165
  <li
166
166
  v-for="(attribute, key) in source.Set.attributes"
167
167
  :key="key"
168
- v-text="`[${key}]${attribute}`"
169
- ></li>
168
+ >
169
+ <span>{{`[${key}]`}}</span>
170
+ <game-text :client="client" :text="attribute" :ignore-color="true"></game-text>
171
+ </li>
170
172
  </ul>
171
173
  <br />
172
174
  </div>
package/src/Upload.vue CHANGED
@@ -85,7 +85,7 @@ export default {
85
85
  return {
86
86
  API: API,
87
87
  dialogVisible: false,
88
- tip: this.desc || "一次最多同时上传10个文件(不超过5M),格式限常见的图片、文档、数据表及压缩包",
88
+ tip: this.desc || "一次最多同时上传10个文件(单个文件不超过20M),格式限常见的图片、文档、数据表及压缩包",
89
89
  btn_txt: this.text || "上传附件",
90
90
 
91
91
  fileList: [],