@jx3box/jx3box-editor 2.2.10 → 2.2.12

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.
@@ -441,7 +441,14 @@
441
441
 
442
442
  .u-skill-icon {
443
443
  box-sizing: border-box;
444
- border: 2px solid #1a2b22;
444
+ // border: 2px solid #000;
445
+ }
446
+
447
+ .u-skill.is-wujie .u-skill-icon{
448
+ border: 2px solid #2a9998;
449
+ border-radius: 50%;
450
+ width: 52px;
451
+ height: 52px;
445
452
  }
446
453
 
447
454
  .u-skill.active {
@@ -452,4 +459,4 @@
452
459
  }
453
460
  }
454
461
  }
455
- }
462
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-editor",
3
- "version": "2.2.10",
3
+ "version": "2.2.12",
4
4
  "description": "JX3BOX Article & Editor",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/Resource.vue CHANGED
@@ -304,6 +304,10 @@ export default {
304
304
  },
305
305
  },
306
306
  methods: {
307
+ nl2br: function(str) {
308
+ // 替换\n \\\n 为 <br>
309
+ return str.replace(/\\n/g, "<br>").replace(/\n/g, "<br>");
310
+ },
307
311
  getData: function(page = 1, append = false) {
308
312
  if (!this.query) return;
309
313
 
@@ -424,7 +428,7 @@ export default {
424
428
  o.Level
425
429
  )}" data-client="${this.client}" data-id="${o.BuffID}" data-level="${o.Level}">[${o.Name}]</a>`;
426
430
  } else {
427
- this.html = `<pre data-type="buff" data-id="${o.BuffID}" class="e-jx3-resource">${this.$refs[this.type][i]["innerHTML"]}</pre>`;
431
+ this.html = `<pre data-type="buff" data-id="${o.BuffID}" class="e-jx3-resource">${this.nl2br(this.$refs[this.type][i]["innerHTML"])}</pre>`;
428
432
  }
429
433
  },
430
434
  selectSkill: function(o, i) {
@@ -435,7 +439,7 @@ export default {
435
439
  o.SkillID
436
440
  }" data-level="${o.Level}">[${o.Name}]</a>`;
437
441
  } else {
438
- this.html = `<pre data-type="skill" data-id="${o.SkillID}" class="e-jx3-resource">${this.$refs[this.type][i]["innerHTML"]}</pre>`;
442
+ this.html = `<pre data-type="skill" data-id="${o.SkillID}" class="e-jx3-resource">${this.nl2br(this.$refs[this.type][i]["innerHTML"])}</pre>`;
439
443
  }
440
444
  },
441
445
  selectItem: function(o, i) {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="m-pvp-martial">
2
+ <div class="m-pvp-martial" >
3
3
  <div class="u-platform-select" v-if="client == 'std'">
4
4
  <div
5
5
  class="u-platform-option"
@@ -126,7 +126,7 @@
126
126
  )"
127
127
  :key="index"
128
128
  @click="selectSkill(skill)">
129
- <div class="u-skill" v-if="skill && skill.IconID">
129
+ <div class="u-skill is-wujie" v-if="skill && skill.IconID">
130
130
  <img
131
131
  class="u-skill-icon"
132
132
  :src="iconLink(skill.IconID)"