32632e796e
Change-Id: I76d0f72679cd75085f5ffd42f641daa198cafe11 docs: update docs for alert/autocomplete/carousel, etc. Change-Id: Ib7507f4979024f53c127e4b64b88560b93999db7 fix: update for autocomplete filter Change-Id: Ie54556715fa52838aeb6caaa19b4f9a9f14b490f docs: add docs for calendar/transfer/cascader Change-Id: I655b3cb3d25dd0649de9ae7e224e7063a40dd079 fix: add more demos for input/textarea Change-Id: Iada527ca82643a435a4775110b332155512d62a7 docs: add docs for uploader,select,table, etc. Change-Id: Ib034fd5cc9d9a420d4e002956ae925175783c5f3 docs: adjust formatting and punc. docs: adjust docs for uploader, etc. Change-Id: If06c8c1102eafce43f5802a333676fc9e62cd474 docs: add docs for nav Change-Id: If56a653ec53f19239606128fd30cae80f8e10025 docs: improve anchor demos Change-Id: I6ac1c08cc8905924d0062def1f8921fe1f302f15 docs: refine wording and format docs: update docs for check-button-group desc Change-Id: Ica7d6d0692250f0be6bd330b1ad4cc41938afd46
96 lines
2.1 KiB
Vue
96 lines
2.1 KiB
Vue
<template>
|
||
<article>
|
||
<section>
|
||
<h4>Indicator type</h4>
|
||
<veui-radio-group
|
||
v-model="indicator"
|
||
:items="indicators"
|
||
/>
|
||
<h4>Indicator position(仅在对齐方式是 end 时生效)</h4>
|
||
<veui-radio-group
|
||
v-model="indicatorPosition"
|
||
:items="positions"
|
||
/>
|
||
<h4>Indicator align</h4>
|
||
<veui-radio-group
|
||
v-model="align"
|
||
:items="alignments"
|
||
/>
|
||
</section>
|
||
<section>
|
||
<veui-carousel
|
||
:datasource="items"
|
||
:indicator="indicator"
|
||
:indicator-position="indicatorPosition"
|
||
:indicator-align="align"
|
||
/>
|
||
</section>
|
||
</article>
|
||
</template>
|
||
|
||
<script>
|
||
import { Carousel, RadioGroup } from 'veui'
|
||
|
||
export default {
|
||
components: {
|
||
'veui-carousel': Carousel,
|
||
'veui-radio-group': RadioGroup
|
||
},
|
||
data () {
|
||
return {
|
||
items: [
|
||
{
|
||
src:
|
||
'https://ecmb.bdimg.com/public01/one-design/2b77cc4a4c5c906993c0e512f3ddaf03.jpg',
|
||
alt: 'A cute kitty looking at you with its greenish eyes.',
|
||
label: 'Cat'
|
||
},
|
||
{
|
||
src:
|
||
'https://ecmb.bdimg.com/public01/one-design/6fedc62b9221846ce5114c7447622e47.jpeg',
|
||
alt: 'A common kingfisher flying above river.',
|
||
label: 'Kingfisher'
|
||
},
|
||
{
|
||
src:
|
||
'https://ecmb.bdimg.com/public01/one-design/e1b6473c898d9e456452ee79d7533a86.jpeg',
|
||
alt: 'A white and gray dolphin in blue water.',
|
||
label: 'Dolphin'
|
||
}
|
||
],
|
||
indicator: 'bar',
|
||
indicatorPosition: 'inside',
|
||
align: 'start',
|
||
indicators: [
|
||
{ label: 'bar', value: 'bar' },
|
||
{ label: 'number', value: 'number' },
|
||
{ label: 'dot', value: 'dot' },
|
||
{ label: 'none', value: 'none' }
|
||
],
|
||
alignments: [
|
||
{ label: 'start', value: 'start' },
|
||
{ label: 'end', value: 'end' }
|
||
],
|
||
positions: [
|
||
{ label: 'inside', value: 'inside' },
|
||
{ label: 'outside', value: 'outside' }
|
||
]
|
||
}
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<style lang="less" scoped>
|
||
h4 {
|
||
margin: 0 0 10px;
|
||
|
||
&:not(:first-child) {
|
||
margin-top: 10px;
|
||
}
|
||
}
|
||
|
||
section {
|
||
margin-bottom: 10px;
|
||
}
|
||
</style>
|