@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.
package/assets/js/combo.js
CHANGED
|
@@ -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}"
|
|
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="${
|
|
28
|
-
<i class="u-gcd-icon ${
|
|
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
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
|
// 显示局部
|
package/src/components/Combo.vue
CHANGED
|
@@ -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>`;
|