@jx3box/jx3box-editor 1.9.1 → 1.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/js/combo.js
CHANGED
|
@@ -8,14 +8,20 @@ function renderCombo(selector = ".e-skill-combo .w-skill-combo-item") {
|
|
|
8
8
|
// 获取嵌入源地址
|
|
9
9
|
let url = $(this).text();
|
|
10
10
|
|
|
11
|
+
// extend = {gcd: 0}
|
|
11
12
|
const [id, name, icon, extend] = url.split(",");
|
|
13
|
+
// 去除左右花括号
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
const _extend = extend ? JSON.parse(extend) : null;
|
|
17
|
+
console.log(_extend.gcd)
|
|
12
18
|
|
|
13
19
|
// 渲染
|
|
14
20
|
let code = `
|
|
15
21
|
<span class="w-skill-combo-item">
|
|
16
22
|
<img class="u-skill-icon" src="${iconLink(icon)}" alt="${icon}" title="${name}" />
|
|
17
23
|
<span class="u-skill-name" title="${name}">${name}</span>
|
|
18
|
-
<i class="u-gcd-icon ${
|
|
24
|
+
<i class="u-gcd-icon ${_extend && _extend.gcd == 0 ? 'is-show' : ''}" title="无GCD技能">
|
|
19
25
|
<i class="el-icon-time"></i>
|
|
20
26
|
</i>
|
|
21
27
|
</span>
|
|
@@ -23,6 +29,8 @@ function renderCombo(selector = ".e-skill-combo .w-skill-combo-item") {
|
|
|
23
29
|
html += code;
|
|
24
30
|
});
|
|
25
31
|
|
|
32
|
+
// console.log(html)
|
|
33
|
+
|
|
26
34
|
// 挂载点
|
|
27
35
|
$(selector).parent().html(html);
|
|
28
36
|
} catch(e) {
|
package/package.json
CHANGED
package/src/BoxResource.vue
CHANGED
|
@@ -124,13 +124,13 @@
|
|
|
124
124
|
show-icon
|
|
125
125
|
></el-alert>
|
|
126
126
|
</el-tab-pane>
|
|
127
|
-
<el-tab-pane label="
|
|
127
|
+
<el-tab-pane label="连招" name="combo">
|
|
128
128
|
<span slot="label" class="u-tab-label">
|
|
129
129
|
<i
|
|
130
|
-
class="el-icon-
|
|
130
|
+
class="el-icon-lollipop"
|
|
131
131
|
style="margin-right: 5px"
|
|
132
132
|
></i>
|
|
133
|
-
<b
|
|
133
|
+
<b>连招</b>
|
|
134
134
|
</span>
|
|
135
135
|
<ComboVue :query="query" ref="combo" :client="comboClient"></ComboVue>
|
|
136
136
|
</el-tab-pane>
|
package/src/components/Combo.vue
CHANGED
|
@@ -145,7 +145,6 @@ export default {
|
|
|
145
145
|
mounted() {
|
|
146
146
|
this.$nextTick(() => {
|
|
147
147
|
this.initSkillSort();
|
|
148
|
-
|
|
149
148
|
});
|
|
150
149
|
},
|
|
151
150
|
methods: {
|
|
@@ -179,14 +178,6 @@ export default {
|
|
|
179
178
|
this.loading = false;
|
|
180
179
|
});
|
|
181
180
|
},
|
|
182
|
-
submit() {
|
|
183
|
-
this.$emit("submit", this.selected);
|
|
184
|
-
this.close();
|
|
185
|
-
this.selected = [];
|
|
186
|
-
},
|
|
187
|
-
close() {
|
|
188
|
-
this.$emit("update:modelValue", false);
|
|
189
|
-
},
|
|
190
181
|
iconURL: function (id) {
|
|
191
182
|
return iconLink(id, this.client);
|
|
192
183
|
},
|
|
@@ -224,7 +215,6 @@ export default {
|
|
|
224
215
|
});
|
|
225
216
|
},
|
|
226
217
|
onContextmenu(event, skill) {
|
|
227
|
-
// console.log(skill)
|
|
228
218
|
this.$contextmenu({
|
|
229
219
|
items: [
|
|
230
220
|
{
|
|
@@ -245,9 +235,15 @@ export default {
|
|
|
245
235
|
|
|
246
236
|
renderVal() {
|
|
247
237
|
const {selected} = this;
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
238
|
+
let skills_html = ''
|
|
239
|
+
selected.forEach(item => {
|
|
240
|
+
const obj = {
|
|
241
|
+
gcd: item.WithoutGcd ? 0: 1
|
|
242
|
+
}
|
|
243
|
+
skills_html += `<li class="w-skill-combo-item">${item.SkillID},${item.Name},${item.IconID},${JSON.stringify(obj)}</li>`
|
|
244
|
+
})
|
|
245
|
+
const html = `<ul class="e-skill-combo w-skill-combo">${skills_html}</ul>`
|
|
246
|
+
return html;
|
|
251
247
|
},
|
|
252
248
|
},
|
|
253
249
|
};
|