\n \n \n \n 指示点样式\n \n \n \n \n \n \n \n \n 自动播放\n \n \n \n \n \n \n\n \n \n 幻灯片切换时长(ms)\n {{duration}}\n \n \n \n 自动播放间隔时长(ms)\n {{interval}}\n \n \n \n \n";
var JS_CODE = "import { versionCompare } from '../../utils';\n\nPage({\n onShareAppMessage() {\n return {\n title: 'swiper',\n path: 'pages/component/swiper/index'\n }\n },\n\n data: {\n background: [{\n className: 'orangered swiper-item',\n text: 'A'\n }, {\n className: 'orangered1 swiper-item',\n text: 'B'\n }, {\n className: 'orangered2 swiper-item',\n text: 'C'\n }\n ],\n indicatorDots: true,\n vertical: false,\n autoplay: false,\n interval: 2000,\n duration: 500,\n indicatorStyle: 'dot',\n supportNewStyle: false,\n },\n\n onShow() {\n ks.getSystemInfo().then((res) => {\n const { SDKVersion } = res;\n // 比较当前版本是否大于等于1.32.1\n const flag = versionCompare(SDKVersion, '1.32.1');\n if (flag >= 0) {\n this.setData({\n supportNewStyle: true,\n })\n }\n });\n },\n\n changeIndicatorDots() {\n this.setData({\n indicatorDots: !this.data.indicatorDots\n })\n },\n\n changeAutoplay() {\n this.setData({\n autoplay: !this.data.autoplay\n })\n },\n\n intervalChange(e) {\n this.setData({\n interval: e.detail.value\n })\n },\n\n durationChange(e) {\n this.setData({\n duration: e.detail.value\n })\n },\n\n onRadioChange(e) {\n this.setData({\n indicatorStyle: e.detail.value,\n })\n }\n})";
var STYLE_CODE = ".swiper-item {\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #fff;\n}";
var COMPONENT = "swiper";