@@ -87,14 +126,19 @@ import SkillVP from './components/SkillVP'
import SkillUP from './components/SkillUP'
import { useConfigStore } from '@/stores'
import SkillDetail from './components/SkillDetail'
+import DarkKnightSkillSetting from './components/DarkKnightSkillSetting/index.vue'
import { onClickOutside } from '@vueuse/core'
-const props = defineProps<{
+defineProps<{
alter: string
}>()
const tab = ref(0)
const infoStore = useInfoStore()
const configStore = useConfigStore()
+const skillTreeWidth = 550
+
+const showDarkKnightSkillSetting = computed(() => infoStore.infos?.alter === 'dark_knight')
+
const curSkillId = ref()
const curCurrentSkill = computed(() => {
@@ -110,11 +154,15 @@ const showSkillDetail = ref(false)
const skillTreeRef = ref
()
const SkillDetailRef = ref()
+const detailButtonStyle = computed(() => ({
+ left: `${skillTreeRef.value?.clientWidth ?? skillTreeWidth}px`,
+}))
+
const style = computed(() => {
return {
zIndex: 99,
height: `${skillTreeRef.value?.clientHeight ?? 0}px`,
- left: `${(skillTreeRef.value?.clientWidth ?? 0) + 5}px`,
+ left: `${(skillTreeRef.value?.clientWidth ?? skillTreeWidth) + 5}px`,
}
})
@@ -122,9 +170,15 @@ const setCurrentSkill = (skillId: number) => {
curSkillId.value = infoStore.skills.find((skill) => skill.id === skillId)?.uuid || ''
}
-onClickOutside(SkillDetailRef, (event) => {showSkillDetail.value = false}, {
- ignore: [skillTreeRef],
-})
+onClickOutside(
+ SkillDetailRef,
+ () => {
+ showSkillDetail.value = false
+ },
+ {
+ ignore: [skillTreeRef],
+ },
+)