antd-mini-rpx
Advanced tools
Comparing version 0.0.3-beta.7 to 0.0.3-beta.8
@@ -1,2 +0,2 @@ | ||
var jsUnitRpx = 'true'; | ||
var jsUnitRpx = 'false'; | ||
/* eslint-disable no-continue, prefer-spread */ | ||
@@ -3,0 +3,0 @@ |
@@ -13,2 +13,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
var isMoreThan275 = compareVersion(my.SDKVersion, '2.7.5') >= 0; | ||
var isBaseSwiper = compareVersion(my.SDKVersion, '2.0.0') >= 0; | ||
Component({ | ||
@@ -29,2 +30,3 @@ // eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
component2: component2, | ||
isBaseSwiper: isBaseSwiper, | ||
_forceRefreshSwiper: 0, | ||
@@ -185,12 +187,2 @@ _isForceUpdate: isForceUpdate | ||
}, | ||
onSiperTransition: function onSiperTransition(e) { | ||
if (typeof this.props.onTransition === "function") { | ||
this.props.onTransition(e); | ||
} | ||
}, | ||
onSwiperTouchStart: function onSwiperTouchStart(e) { | ||
if (typeof this.props.onTouchStart === "function") { | ||
this.props.onTouchStart(e); | ||
} | ||
}, | ||
_useSwipeable: function _useSwipeable(b) { | ||
@@ -247,2 +239,16 @@ var swipeable = this.props.swipeable; | ||
}, | ||
handleSwiperTouchStart: function handleSwiperTouchStart(e) { | ||
var onTouchStart = this.props.onTouchStart; | ||
if (typeof onTouchStart === "function") { | ||
onTouchStart(e); | ||
} | ||
}, | ||
handleSwiperTransition: function handleSwiperTransition(e) { | ||
var onTransition = this.props.onTransition; | ||
if (typeof onTransition === "function") { | ||
onTransition(e); | ||
} | ||
}, | ||
appearLeft: function appearLeft() { | ||
@@ -249,0 +255,0 @@ this.setData({ |
@@ -17,2 +17,3 @@ | ||
*/ | ||
index?: number; | ||
@@ -22,15 +23,9 @@ /** | ||
*/ | ||
onChange?: (index: number) => void; | ||
/** | ||
* @description swiperable 为 true 时,swiper 中 swiper-item 的位置发生改变时会触发 transition 事件。 | ||
* @description 是否有过渡动画 | ||
* @default false | ||
*/ | ||
onTransition?: (e:any) => void; | ||
/** | ||
* @description swiperable 为 true 时,滑动 TabItem 会触发 onTouchStart 事件。 | ||
*/ | ||
onTouchStart?: (e:any) => void; | ||
/** | ||
* @description 是否有过渡动画 | ||
* @default false | ||
*/ | ||
animation?: boolean; | ||
@@ -42,2 +37,3 @@ /** | ||
swipeable?: boolean; | ||
/** | ||
@@ -44,0 +40,0 @@ * @description 是否支持吸顶 |
@@ -7,3 +7,5 @@ export const TabsDefaultProps = { | ||
sticky: false, | ||
stickyTop: 0, | ||
fallback:false, | ||
onGetRef: () => {}, | ||
}; |
{ | ||
"name": "antd-mini-rpx", | ||
"version": "0.0.3-beta.7", | ||
"version": "0.0.3-beta.8", | ||
"scripts": { | ||
@@ -15,3 +15,3 @@ "dev": "minidev dev --less --typescript --no-source-map", | ||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", | ||
"prepublishOnly": "npm run build:component:rpx", | ||
"prepublishOnly": "npm run build:component", | ||
"test:less": "jest __tests__/less.spec.ts", | ||
@@ -18,0 +18,0 @@ "test:markdown": "jest __tests__/markdowns.spec.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
317842
5929