diff --git a/src/App.vue b/src/App.vue index 0bc1f4f..365cf03 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,8 +5,10 @@ import Watermark from './components/Watermark.vue' // 引入 Watermark 组件 @@ -15,7 +17,8 @@ import Watermark from './components/Watermark.vue' // 引入 Watermark 组件 #main-container { position: relative; width: 100%; - height: 100vh; /* 视口高度 */ + min-height: 100vh; /* 允许容器扩展 */ + //position: relative; } /* 如果 Yys 组件需要特定的高度或布局,可以根据需要调整 */ diff --git a/src/components/ShikigamiProperty.vue b/src/components/ShikigamiProperty.vue index e18a7eb..fec63ce 100644 --- a/src/components/ShikigamiProperty.vue +++ b/src/components/ShikigamiProperty.vue @@ -18,15 +18,15 @@ - 40 - 献祭 + 40 + 献祭 - 全满 - 111 - 自定义 + 全满 + 111 + 自定义
- - - - + + + + @@ -281,12 +281,22 @@ const openYuhunSelect = (index) => { const closeYuhunSelect = () => showYuhunSelect.value = false -const updateYuhunSelect = (yuhun) => { +const updateYuhunSelect = (yuhun, operator) => { showYuhunSelect.value = false - if(yuhunIndex.value >=0) - shikigami.value.yuhun.yuhunSetEffect[yuhunIndex.value] = (JSON.parse(JSON.stringify(yuhun))) - else - shikigami.value.yuhun.yuhunSetEffect.push(JSON.parse(JSON.stringify(yuhun))) + //Update + if (operator == "Update") { + if (yuhunIndex.value >= 0) + shikigami.value.yuhun.yuhunSetEffect[yuhunIndex.value] = (JSON.parse(JSON.stringify(yuhun))) + else + shikigami.value.yuhun.yuhunSetEffect.push(JSON.parse(JSON.stringify(yuhun))) + } + //Delete + else if (operator == "Remove") { + if (yuhunIndex.value >= 0) { + // 使用splice方法移除指定位置的御魂 + shikigami.value.yuhun.yuhunSetEffect.splice(yuhunIndex.value, 1); + } + } } const cancel = () => { diff --git a/src/components/Watermark.vue b/src/components/Watermark.vue index 753c6ac..7bfaa03 100644 --- a/src/components/Watermark.vue +++ b/src/components/Watermark.vue @@ -1,5 +1,8 @@ \ No newline at end of file diff --git a/src/components/YuhunSelect.vue b/src/components/YuhunSelect.vue index a3cec55..bd0dd5a 100644 --- a/src/components/YuhunSelect.vue +++ b/src/components/YuhunSelect.vue @@ -1,12 +1,15 @@ \ No newline at end of file diff --git a/src/components/Yys.vue b/src/components/Yys.vue index d5bf8a7..25c006d 100644 --- a/src/components/Yys.vue +++ b/src/components/Yys.vue @@ -20,42 +20,71 @@