@@ -44,7 +44,7 @@ const partIcon = computed(() => {
|
||||
const rarityIcon = computed(() => {
|
||||
return (part: string) => {
|
||||
const rarity = Math.floor((props.detail?.[part]?.lv || 0) / 5)
|
||||
console.log(rarity)
|
||||
// console.log(rarity)
|
||||
return new URL(`../Images/rarity/${rarity}.png`, import.meta.url).href
|
||||
}
|
||||
})
|
||||
|
||||
@@ -74,14 +74,18 @@ const mainAttr = computed(() => {
|
||||
})
|
||||
|
||||
const detail = computed(() =>
|
||||
props.suit?.value.replace(/\[([^\[\]技能]+?)\]/g, '<span style="color:#3d9147">[$1]</span>'),
|
||||
props.suit?.value?.replace(
|
||||
/\[(?![^\]]*技能)[^\[\]]+\]/g,
|
||||
(match) => `<span style="color:#3d9147">${match}</span>`,
|
||||
),
|
||||
)
|
||||
|
||||
const bufferDetail = computed(() => {
|
||||
const detail = props.suit?.bufferValue
|
||||
if (!detail || detail == '-') return undefined
|
||||
return props.suit?.bufferValue.replace(
|
||||
/\[(?![^\]]*技能)[^\[\]]+\]/g, match => `<span style="color:#3d9147">${match}</span>`
|
||||
return props.suit?.bufferValue?.replace(
|
||||
/\[(?![^\]]*技能)[^\[\]]+\]/g,
|
||||
(match) => `<span style="color:#3d9147">${match}</span>`,
|
||||
)
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user