mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 11:17:41 +00:00
[improvement] update eslint rules (#2089)
This commit is contained in:
@@ -1,15 +1,34 @@
|
||||
<template>
|
||||
<transition name="van-fade">
|
||||
<div v-show="value" :class="b([style, position])">
|
||||
<div
|
||||
v-show="value"
|
||||
:class="b([style, position])"
|
||||
>
|
||||
<!-- text only -->
|
||||
<div v-if="style === 'text'">{{ message }}</div>
|
||||
<div v-if="style === 'html'" v-html="message" />
|
||||
<div
|
||||
v-if="style === 'html'"
|
||||
v-html="message"
|
||||
/>
|
||||
|
||||
<!-- with icon -->
|
||||
<template v-if="style === 'default'">
|
||||
<loading v-if="type === 'loading'" color="white" :type="loadingType" />
|
||||
<icon v-else :class="b('icon')" :name="type" />
|
||||
<div v-if="isDef(message)" :class="b('text')">{{ message }}</div>
|
||||
<loading
|
||||
v-if="type === 'loading'"
|
||||
color="white"
|
||||
:type="loadingType"
|
||||
/>
|
||||
<icon
|
||||
v-else
|
||||
:class="b('icon')"
|
||||
:name="type"
|
||||
/>
|
||||
<div
|
||||
v-if="isDef(message)"
|
||||
:class="b('text')"
|
||||
>
|
||||
{{ message }}
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</transition>
|
||||
|
Reference in New Issue
Block a user