@tarojs/components
Advanced tools
Comparing version 0.0.20 to 0.0.21
{ | ||
"name": "@tarojs/components", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -10,3 +10,3 @@ export { default as View } from './view' | ||
export { default as ScrollView } from './scroll-view' | ||
export { default as Swiper } from './swiper' | ||
export { Swiper, SwiperItem } from './swiper' | ||
export { default as Checkbox } from './checkbox' | ||
@@ -13,0 +13,0 @@ export { default as Picker } from './picker' |
@@ -6,2 +6,8 @@ import Nerv from 'nervjs' | ||
class SwiperItem extends Nerv.Component { | ||
render () { | ||
return '' | ||
} | ||
} | ||
class Swiper extends Nerv.Component { | ||
@@ -266,2 +272,5 @@ constructor () { | ||
children.forEach((child, idx) => { | ||
child.children = child.props.children | ||
child.type = 'div' | ||
child.props.class = 'swiper_item' | ||
let dom1 = { | ||
@@ -322,3 +331,2 @@ 'data-index': idx, | ||
} | ||
render () { | ||
@@ -334,2 +342,3 @@ const { | ||
} = this.props | ||
const {current} = this.state | ||
@@ -342,2 +351,3 @@ const SwiperCount = children.length | ||
ref={(SwiperWp) => { this.SwiperWp = SwiperWp }}> | ||
<SwiperItem /> | ||
{Swipers} | ||
@@ -392,2 +402,2 @@ </div> | ||
export default Swiper | ||
export {Swiper, SwiperItem} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
795153
16931