@jx3box/jx3box-editor 2.2.3 → 2.2.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.
@@ -60,7 +60,6 @@
60
60
  .u-skill-note {
61
61
  .fz(12px,1);
62
62
  width: 56px;
63
- overflow: hidden;
64
63
  text-overflow: clip;
65
64
  white-space: pre-wrap;
66
65
  text-align: center;
@@ -15,17 +15,16 @@ function renderCombo(selector = ".e-skill-combo") {
15
15
  // extend = {gcd: 0, note: "炖鸡"}
16
16
  const [id, name, icon, extend] = url.split(/,(?![^{]*\})/);
17
17
 
18
- // 去除左右花括号
19
-
20
- const _extend = extend ? JSON.parse(extend) : null;
18
+ const _extend = extend ? JSON.parse(extend) : {};
19
+ const { gcd, n = '', c, fz=12, fw='normal',client='std' } = _extend;
21
20
 
22
21
  // 渲染
23
22
  let code = `
24
23
  <span class="w-skill-combo-item">
25
- <img class="u-skill-icon" src="${iconLink(icon)}" alt="${icon}" title="${name}" />
24
+ <img class="u-skill-icon w-jx3-element" src="${iconLink(icon)}" alt="${icon}" data-type="skill" data-id="${id}" data-client="${client}" />
26
25
  <span class="u-skill-name" title="${name}">${name}</span>
27
- <span class="u-skill-note" title="${_extend && _extend.n}" style="color:${_extend&&_extend.c}">${_extend && _extend.n || ''}</span>
28
- <i class="u-gcd-icon ${_extend && _extend.gcd == 0 ? 'is-show' : ''}" title="无GCD技能">
26
+ <span class="u-skill-note" title="${n}" style="color:${c};font-size:${fz}px;font-weight:${fw}">${n}</span>
27
+ <i class="u-gcd-icon ${gcd == 0 ? 'is-show' : ''}" title="无GCD技能">
29
28
  <i class="el-icon-time"></i>
30
29
  </i>
31
30
  </span>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-editor",
3
- "version": "2.2.3",
3
+ "version": "2.2.5",
4
4
  "description": "JX3BOX Article & Editor",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/Article.vue CHANGED
@@ -180,12 +180,12 @@ export default {
180
180
  // 奇穴
181
181
  renderTalent();
182
182
  renderTalent2();
183
- // 物品
184
- renderJx3Element(this);
185
183
  // 配装
186
184
  renderPzIframe();
187
185
  // 连招
188
186
  renderCombo();
187
+ // 物品
188
+ renderJx3Element(this);
189
189
  },
190
190
  doDir: function () {
191
191
  // 显示局部
@@ -295,6 +295,7 @@ export default {
295
295
  gcd: item.WithoutGcd ? 0 : 1,
296
296
  };
297
297
  item.n && (obj.n = item.n);
298
+ item.client = this.client;
298
299
  skills_html += `<li class="w-skill-combo-item">${item.SkillID},${item.Name},${item.IconID},${JSON.stringify(obj)}</li>`;
299
300
  });
300
301
  const html = `<ul class="e-skill-combo w-skill-combo">${skills_html}</ul>`;