mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-15 09:48:14 +08:00
🐛 修复input默认值无效
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { nextTick, onMounted, reactive, ref, watch, useTemplateRef, computed } from "vue";
|
import { computed, nextTick, onMounted, reactive, ref, useTemplateRef, watch } from "vue";
|
||||||
|
|
||||||
import { DialogCheckParams, DialogInputParams, DialogParams } from "./dialog.js";
|
import { DialogCheckParams, DialogInputParams, DialogParams } from "./dialog.js";
|
||||||
|
|
||||||
@@ -110,6 +110,7 @@ async function displayInputBox(params: DialogInputParams): Promise<string | fals
|
|||||||
data.title = params.title;
|
data.title = params.title;
|
||||||
data.text = params.text ?? "";
|
data.text = params.text ?? "";
|
||||||
data.mode = "input";
|
data.mode = "input";
|
||||||
|
inputDefault.value = params.input ?? "";
|
||||||
data.otcancel = params.otcancel ?? true;
|
data.otcancel = params.otcancel ?? true;
|
||||||
show.value = true;
|
show.value = true;
|
||||||
return await new Promise<string | false | undefined>((resolve) => {
|
return await new Promise<string | false | undefined>((resolve) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user