fix: 🐛 MkDialog/MkWaitingDialog icons
This commit is contained in:
parent
a954a06fad
commit
e0aebd8f32
@ -11,32 +11,27 @@
|
||||
</div>
|
||||
<div
|
||||
v-else-if="!input && !select"
|
||||
:class="[$style.icon, $style['type_' + type]]"
|
||||
:class="[$style.icon, $style[`type_${type}`]]"
|
||||
>
|
||||
<i
|
||||
v-if="type === 'success'"
|
||||
:class="$style.iconInner"
|
||||
class="ph-check ph-lg"
|
||||
:class="[$style.iconInner, iconClass('ph-check')]"
|
||||
></i>
|
||||
<i
|
||||
v-else-if="type === 'error'"
|
||||
:class="$style.iconInner"
|
||||
class="ph-circle-wavy-warning ph-lg"
|
||||
:class="[$style.iconInner, iconClass('ph-circle-wavy-warning')]"
|
||||
></i>
|
||||
<i
|
||||
v-else-if="type === 'warning'"
|
||||
:class="$style.iconInner"
|
||||
class="ph-warning ph-lg"
|
||||
:class="[$style.iconInner, iconClass('ph-warning')]"
|
||||
></i>
|
||||
<i
|
||||
v-else-if="type === 'info'"
|
||||
:class="$style.iconInner"
|
||||
class="ph-info ph-lg"
|
||||
:class="[$style.iconInner, iconClass('ph-info')]"
|
||||
></i>
|
||||
<i
|
||||
v-else-if="type === 'question'"
|
||||
:class="$style.iconInner"
|
||||
class="ph-circle-question ph-lg"
|
||||
:class="[$style.iconInner, iconClass('ph-question')]"
|
||||
></i>
|
||||
<MkLoading
|
||||
v-else-if="type === 'waiting'"
|
||||
|
@ -14,8 +14,7 @@
|
||||
>
|
||||
<i
|
||||
v-if="success"
|
||||
:class="[$style.icon, $style.success]"
|
||||
class="ph-check ph-lg"
|
||||
:class="[$style.icon, $style.success, iconClass('ph-check')]"
|
||||
></i>
|
||||
<MkLoading
|
||||
v-else
|
||||
@ -32,6 +31,7 @@
|
||||
<script lang="ts" setup>
|
||||
import { shallowRef, watch } from "vue";
|
||||
import MkModal from "@/components/MkModal.vue";
|
||||
import iconClass from "@/scripts/icon"
|
||||
|
||||
const modal = shallowRef<InstanceType<typeof MkModal>>();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user