docs_vue2/one/docs/demo/alert/title.vue

39 lines
609 B
Vue
Raw Normal View History

<template>
<article>
<veui-alert
type="success"
title="消息标题"
>
Your profile has been updated.
</veui-alert>
<veui-alert
type="success"
>
Your profile has been updated.
2021-11-20 13:22:48 +08:00
<template slot="title">
消息标题
</template>
</veui-alert>
</article>
</template>
<script>
import { Alert } from 'veui'
export default {
components: {
'veui-alert': Alert
}
}
</script>
<style lang="less" scoped docs>
.veui-alert {
margin-bottom: 20px;
}
</style>
<docs>
可将消息标题写在 `title` 插槽中也可以通过 `title` 属性进行指定
</docs>