Created
September 22, 2016 07:46
-
-
Save lvscar/71a5c04fba3a01236cf57541ef16226c to your computer and use it in GitHub Desktop.
weex slider demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<scroller> | |
<slider interval="3000" auto-play="true" class="slider"> | |
<indicator class="indicator"></indicator> | |
<text>First Page</text> | |
<text>Second Page</text> | |
<text>Third Page</text> | |
</slider> | |
</scroller> | |
</template> | |
<style> | |
.slider { | |
flex-direction: row; | |
/*margin-left: 18;*/ | |
/*margin-right: 18;*/ | |
width: 690; | |
height: 360; | |
} | |
.indicator { | |
position: absolute; | |
width: 690; | |
height: 420; | |
top: 140; | |
left: 240; | |
itemColor: #dddddd; | |
itemSelectedColor: rgb(40, 96, 144); | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment