feat:同步国服数据

This commit is contained in:
2026-07-13 01:35:40 +08:00
parent dada284856
commit 09c1ac3674
74 changed files with 46479 additions and 24879 deletions
@@ -32,22 +32,22 @@ export default defineComponent({
!skillInfo.value
? []
: [
{ label: '技能等级', value: skillInfo.value?.attribute.level },
{ label: '技能等级', value: skillInfo.value?.attribute?.level ?? props.level },
{ label: '学习等级', value: skillInfo.value?.requiredLevel },
{ label: '等级上限', value: skillInfo.value?.maxLevel },
{
label: '冷却时间',
value: skillInfo.value?.attribute.coolTime
? `${skillInfo.value?.attribute.coolTime.toFixed(1)}秒`
value: skillInfo.value?.attribute?.coolTime
? `${skillInfo.value?.attribute?.coolTime.toFixed(1)}秒`
: undefined,
},
{
label: '施放时间',
value: !skillInfo.value?.attribute.castingTime
value: !skillInfo.value?.attribute?.castingTime
? '瞬发'
: `${skillInfo.value?.attribute.castingTime.toFixed(1)}秒`,
: `${skillInfo.value?.attribute?.castingTime.toFixed(1)}秒`,
},
{ label: '魔法值', value: skillInfo.value?.attribute.consumeMp },
{ label: '魔法值', value: skillInfo.value?.attribute?.consumeMp },
{
label: '消耗无色小晶块',
value: skillInfo.value?.consumeItem?.value
@@ -61,9 +61,9 @@ export default defineComponent({
const detail = computed(() => {
const items =
skillInfo.value?.attribute.optionDesc?.split('\n').filter((item) => !!item) ?? []
skillInfo.value?.attribute?.optionDesc?.split('\n').filter((item) => !!item) ?? []
const details = items?.map((a) => {
const beforeReplace = a.match(/^(.+?)\s*(\{value\d+\}.*)$/);
const beforeReplace = a.match(/^(.+?)\s*(\{value\d+\}.*)$/)
if (beforeReplace) {
a = `${beforeReplace[1]}<span class="skill_info_value">${beforeReplace[2]}</span>`
}
@@ -73,7 +73,7 @@ export default defineComponent({
const key = match.replace(/[{}]/g, '')
// Only access if key matches the expected pattern
if (/^value.+/.test(key)) {
const value = skillInfo.value?.attribute.optionValue[key as `value${string}`] ?? '-'
const value = skillInfo.value?.attribute?.optionValue[key as `value${string}`] ?? '-'
if (value) {
a = a.replace(match, `<span style="padding:0px 2px;color:#4AA256">${value}</span>`)
}
@@ -102,19 +102,17 @@ export default defineComponent({
<div class="skill_title">技能描述</div>
<div class="h-auto max-h-200px">
<div class="h-full overflow-y-auto bg-#161816 p-2px">
{desc.value?.map((item) =>
{desc.value?.map((item) => (
// item.startsWith('[') || item.startsWith('-') || item.startsWith('<') ? (
// <div class="min-h-10px">{item}</div>
// ) :
(
<div class="min-h-10px" style="white-space:pre-wrap;">
{item}
</div>
),
)}
<div class="min-h-10px" style="white-space:pre-wrap;">
{item}
</div>
))}
</div>
</div>
{(detail.value.length > 0 ) && (
{detail.value.length > 0 && (
<>
<div class="skill_title">技能属性</div>
<div class="flex-1 overflow-y-auto">