forked from opentiny/tiny-vue
28 lines
431 B
Vue
28 lines
431 B
Vue
<template>
|
|
<div class="alert-wrap">
|
|
<tiny-alert :icon="IconCustom">自定义图标</tiny-alert>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { Alert } from '@opentiny/vue'
|
|
import { iconCustom } from '@opentiny/vue-icon'
|
|
|
|
export default {
|
|
components: {
|
|
TinyAlert: Alert
|
|
},
|
|
data() {
|
|
return {
|
|
IconCustom: iconCustom()
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
.alert-wrap .tiny-mobile-alert {
|
|
margin-bottom: 8px;
|
|
}
|
|
</style>
|