Skip to content

Commit

Permalink
perf: 白皮书技能介绍应用skill-desc
Browse files Browse the repository at this point in the history
  • Loading branch information
X3ZvaWQ committed Apr 1, 2024
1 parent 31f987c commit 91e1fb8
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
32 changes: 26 additions & 6 deletions src/views/Raw.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,16 @@
{{ o.Name }}
<em v-if="o.SkillName">({{ o.SkillName }})</em>
</a>
<span class="u-content">{{ o.Desc | filterRaw }}</span>
<span class="u-content">
<template v-if="o?.parse?.desc">
<span>{{ o?.parse?.desc | filterRaw }}</span
><br />
<span>{{ o?.parse?.talent_desc | filterRaw }}</span>
</template>
<template v-else>
<span>{{ o.Desc | filterRaw }}</span>
</template>
</span>
<div class="u-remarks">
<span class="u-remark">Level : {{ o.Level }}</span>
<span class="u-remark">Remark : {{ o.Remark }}</span>
Expand Down Expand Up @@ -80,7 +89,16 @@
{{ o.Name }}
<em v-if="o.SkillName">({{ o.SkillName }})</em>
</a>
<span class="u-content">{{ o.Desc | filterRaw }}</span>
<span class="u-content">
<template v-if="o?.parse?.desc">
<span>{{ o?.parse?.desc | filterRaw }}</span
><br />
<span>{{ o?.parse?.talent_desc | filterRaw }}</span>
</template>
<template v-else>
<span>{{ o.Desc | filterRaw }}</span>
</template>
</span>
<div class="u-remarks">
<span class="u-remark">Level : {{ o.Level }}</span>
<span class="u-remark">Remark : {{ o.Remark }}</span>
Expand Down Expand Up @@ -257,10 +275,13 @@ export default {
return kungfuMap[val];
},
//区分包括不限于技能大全的icon所属client
getIconURL:function(iconID){
const iconURL = this.client ==="origin" ? __iconPath + "origin_icon/" + iconID + ".png" : __iconPath + "icon/" + iconID + ".png";
getIconURL: function (iconID) {
const iconURL =
this.client === "origin"
? __iconPath + "origin_icon/" + iconID + ".png"
: __iconPath + "icon/" + iconID + ".png";
return iconURL;
}
},
},
filters: {
filterRaw: function (str) {
Expand All @@ -276,7 +297,6 @@ export default {
skillLink: function (id) {
return getLink("skill", id);
},
},
watch: {
subtype: {
Expand Down
1 change: 1 addition & 0 deletions tool
Submodule tool added at fed606

0 comments on commit 91e1fb8

Please sign in to comment.