docs: add docs for Accordion/Collapse/Popover
Change-Id: Ibb023741445c134973a2ea993c498f02d83f3a98
This commit is contained in:
48
one/docs/demo/popover/foot.vue
Normal file
48
one/docs/demo/popover/foot.vue
Normal file
@@ -0,0 +1,48 @@
|
||||
<template>
|
||||
<article>
|
||||
<section>
|
||||
<veui-button ref="btn1">
|
||||
按钮1
|
||||
</veui-button>
|
||||
<veui-button ref="btn2">
|
||||
按钮2
|
||||
</veui-button>
|
||||
<veui-popover
|
||||
target="btn1"
|
||||
title="Popover Title"
|
||||
ok-label="好"
|
||||
cancel-label="否"
|
||||
foot
|
||||
>
|
||||
This is a popover.
|
||||
</veui-popover>
|
||||
<veui-popover
|
||||
target="btn2"
|
||||
title="Popover Title"
|
||||
foot
|
||||
>
|
||||
This is a popover.
|
||||
<template #foot>
|
||||
Popover foot
|
||||
</template>
|
||||
</veui-popover>
|
||||
</section>
|
||||
</article>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { Popover, Button } from 'veui'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
'veui-button': Button,
|
||||
'veui-popover': Popover
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.veui-button + .veui-button {
|
||||
margin-left: 200px;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user