mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-09 05:29:32 +00:00
chore(demo): 消除ts类型错误
This commit is contained in:
@@ -76,19 +76,19 @@
|
|||||||
// }, 2000);
|
// }, 2000);
|
||||||
}
|
}
|
||||||
|
|
||||||
function openTargetModal(index) {
|
function openTargetModal(index: number) {
|
||||||
switch (index) {
|
switch (index) {
|
||||||
case 1:
|
case 1:
|
||||||
currentModal.value = Modal1;
|
currentModal.value = Modal1 as ComponentOptions;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
currentModal.value = Modal2;
|
currentModal.value = Modal2 as ComponentOptions;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
currentModal.value = Modal3;
|
currentModal.value = Modal3 as ComponentOptions;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
currentModal.value = Modal4;
|
currentModal.value = Modal4 as ComponentOptions;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
|
@@ -9,9 +9,7 @@
|
|||||||
<hr class="my-4" />
|
<hr class="my-4" />
|
||||||
|
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<a-input v-model:value="server" disabled>
|
<a-input v-model:value="server" addon-before="服务地址" disabled />
|
||||||
<template #addonBefore> 服务地址 </template>
|
|
||||||
</a-input>
|
|
||||||
<a-button :type="getIsOpen ? 'danger' : 'primary'" @click="toggle">
|
<a-button :type="getIsOpen ? 'danger' : 'primary'" @click="toggle">
|
||||||
{{ getIsOpen ? '关闭连接' : '开启连接' }}
|
{{ getIsOpen ? '关闭连接' : '开启连接' }}
|
||||||
</a-button>
|
</a-button>
|
||||||
|
Reference in New Issue
Block a user