docs_vue2/one/docs/demo/loading/slot.vue

73 lines
1.2 KiB
Vue
Raw Normal View History

2020-08-13 11:47:56 +08:00
<template>
<article>
<section>
2020-08-13 11:47:56 +08:00
Custom icon-star:
<veui-loading
loading
ui="strong"
>
<template #spinner>
<veui-icon
spin
name="star"
/>
</template>
loading...
</veui-loading>
</section>
<section>
Custom icon-sync:
2020-08-13 11:47:56 +08:00
<veui-loading loading>
<template #spinner>
<veui-icon
spin
name="sync"
2020-08-13 11:47:56 +08:00
/>
</template>
loading...
</veui-loading>
</section>
<section>
Custom icon-clockwise:
2020-08-13 11:47:56 +08:00
<veui-loading
loading
ui="reverse"
class="reverse"
>
<template #spinner>
<veui-icon
spin
name="clockwise"
2020-08-13 11:47:56 +08:00
/>
</template>
loading...
</veui-loading>
</section>
2020-08-13 11:47:56 +08:00
</article>
</template>
<script>
import { Icon, Loading } from 'veui'
import 'veui-theme-dls-icons/sync'
import 'veui-theme-dls-icons/star'
import 'veui-theme-dls-icons/clockwise'
2020-08-13 11:47:56 +08:00
export default {
components: {
'veui-icon': Icon,
'veui-loading': Loading
}
}
</script>
<style lang="less" scoped docs>
.reverse {
background: #ccc;
padding: 8px;
}
.section {
margin-bottom: 20px;
}
2020-08-13 11:47:56 +08:00
</style>