2020-08-13 11:47:56 +08:00
|
|
|
<template>
|
|
|
|
<article>
|
|
|
|
<veui-button @click="open1 = true">
|
|
|
|
title prop
|
|
|
|
</veui-button>
|
|
|
|
<veui-button @click="open2 = true">
|
|
|
|
title slot
|
|
|
|
</veui-button>
|
|
|
|
|
|
|
|
<veui-alert-box
|
|
|
|
type="success"
|
|
|
|
:open.sync="open1"
|
|
|
|
title="Success"
|
|
|
|
@ok="ok"
|
|
|
|
>
|
|
|
|
<p>Saved successfully!</p>
|
|
|
|
</veui-alert-box>
|
|
|
|
|
|
|
|
<veui-alert-box
|
|
|
|
type="success"
|
|
|
|
:open.sync="open2"
|
|
|
|
@ok="ok"
|
|
|
|
>
|
|
|
|
<template #title>
|
|
|
|
Success
|
|
|
|
<veui-icon name="info-circle"/>
|
|
|
|
</template>
|
|
|
|
<p>Saved successfully!</p>
|
|
|
|
</veui-alert-box>
|
|
|
|
</article>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { AlertBox, Button, Icon } from 'veui'
|
|
|
|
import 'veui-theme-dls-icons/info-circle'
|
|
|
|
import toast from 'veui/managers/toast'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
'veui-alert-box': AlertBox,
|
|
|
|
'veui-button': Button,
|
|
|
|
'veui-icon': Icon
|
|
|
|
},
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
open1: false,
|
|
|
|
open2: false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
ok () {
|
|
|
|
toast.info('Confirmed')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2021-09-15 20:03:51 +08:00
|
|
|
<style lang="less" scoped>
|
2020-08-13 11:47:56 +08:00
|
|
|
.veui-button {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
2021-09-15 20:03:51 +08:00
|
|
|
|
2020-08-13 11:47:56 +08:00
|
|
|
.icon {
|
|
|
|
vertical-align: -2px;
|
|
|
|
}
|
|
|
|
</style>
|