File tree Expand file tree Collapse file tree 7 files changed +15
-15
lines changed Expand file tree Collapse file tree 7 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ createComponent({
6464 computed : {
6565 popupStyle ( ) {
6666 const style = { } ;
67- if ( __mpx_mode__ !== 'ios' && __mpx_mode__ !== 'android' ) {
67+ if ( __mpx_mode__ !== 'ios' && __mpx_mode__ !== 'android' && __mpx_mode__ !== 'harmony' ) {
6868 style . zIndex = this . zIndex ;
6969 }
7070 if ( this . pointerEvents ) {
Original file line number Diff line number Diff line change 22 <view
33 wx:class="{{ switchClass }}"
44 bindtap="toggleSwitch"
5- animation@_ios|_android="{{ switchAnimationData }}"
5+ animation@_ios|_android|_harmony ="{{ switchAnimationData }}"
66 wx:style="{{ swithBGClass }}"
77 >
88 <view
99 class="cube-switch-handle"
1010 wx:class="{{ {'cube-switch-handle-on': isOn }}}"
11- animation@_ios|_android="{{ switchHandleAnimationData }}"
11+ animation@_ios|_android|_harmony ="{{ switchHandleAnimationData }}"
1212 />
1313 </view>
1414</template>
Original file line number Diff line number Diff line change 22 <view
33 wx:class="{{ rootClass }}"
44 wx:style="{{ customStyle }}"
5- animation@_ios|_android="{{ tipAnimationData }}"
5+ animation@_ios|_android|_harmony ="{{ tipAnimationData }}"
66 >
7- <view class="cube-tip-angle-wapper" wx:class@_ios|_android="{{ angleWrapperClass }}" wx:style="{{ angStyle }}">
8- <view class="cube-tip-angle" wx:class@_ios|_android="{{ angleClass }}"></view>
7+ <view class="cube-tip-angle-wapper" wx:class@_ios|_android|_harmony ="{{ angleWrapperClass }}" wx:style="{{ angStyle }}">
8+ <view class="cube-tip-angle" wx:class@_ios|_android|_harmony ="{{ angleClass }}"></view>
99 </view>
1010 <view
11- @_ios|_android
11+ @_ios|_android|_harmony
1212 class="cube-tip-line-wrapper"
1313 wx:if="{{ showClose }}"
1414 catchtap="onClose"
2727 catchtap="onClose"
2828 />
2929 <view
30- @_ios|_android
30+ @_ios|_android|_harmony
3131 class="cube-tip-popup"
3232 wx:show="{{ closeOnClickOutside && isVisible }}"
3333 bind:tap="onClose"
4343<script src="./tip.js"></script>
4444
4545<style lang="stylus">
46- /* @mpx-if (__mpx_mode__ === 'ios' || __mpx_mode__ === 'android') */
46+ /* @mpx-if (__mpx_mode__ === 'ios' || __mpx_mode__ === 'android' || __mpx_mode__ === 'harmony' ) */
4747@require './css.rn.styl'
4848/* @mpx-else */
4949@require './css.styl'
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import mpx, { getMixin } from '@mpxjs/core';
22let mixin = { } ;
33// eslint-disable-next-line
44// @ts -ignore
5- if ( __mpx_mode__ === 'ios' || __mpx_mode__ === 'android' ) {
5+ if ( __mpx_mode__ === 'ios' || __mpx_mode__ === 'android' || __mpx_mode__ === 'harmony' ) {
66 mixin = {
77 data : {
88 tipAnimationData : { }
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ createComponent({
5252 const directionClass = `cube-tip-direction_${ this . direction } ` ;
5353 const themeType = this . themeType ;
5454 const mainClass = themeType ? `cube-tip cube-tip-${ themeType } ` : 'cube-tip' ;
55- if ( __mpx_mode__ === 'ios' || __mpx_mode__ === 'android' ) {
55+ if ( __mpx_mode__ === 'ios' || __mpx_mode__ === 'android' || __mpx_mode__ === 'harmony' ) {
5656 return `${ mainClass } ${ directionClass } ${ this . animationClass } ` ;
5757 }
5858 else {
@@ -73,7 +73,7 @@ createComponent({
7373 this . triggerEvent ( EVENT_CLOSE ) ;
7474 } ,
7575 show ( ) {
76- if ( __mpx_mode__ === 'ios' || __mpx_mode__ === 'android' ) {
76+ if ( __mpx_mode__ === 'ios' || __mpx_mode__ === 'android' || __mpx_mode__ === 'harmony' ) {
7777 this . isVisible = true ;
7878 }
7979 else {
@@ -82,7 +82,7 @@ createComponent({
8282 }
8383 } ,
8484 hide ( ) {
85- if ( __mpx_mode__ === 'ios' || __mpx_mode__ === 'android' ) {
85+ if ( __mpx_mode__ === 'ios' || __mpx_mode__ === 'android' || __mpx_mode__ === 'harmony' ) {
8686 this . isVisible = false ;
8787 }
8888 else {
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ createComponent({
4747 } ,
4848 computed : {
4949 pointerEvents ( ) {
50- if ( __mpx_mode__ === 'ios' || __mpx_mode__ === 'android' ) {
50+ if ( __mpx_mode__ === 'ios' || __mpx_mode__ === 'android' || __mpx_mode__ === 'harmony' ) {
5151 if ( ! this . mask )
5252 return 'none' ;
5353 }
Original file line number Diff line number Diff line change 11{
22 "name" : " @mpxjs/mpx-cube-ui" ,
3- "version" : " 1.3.12 " ,
3+ "version" : " 1.3.13-rn.0 " ,
44 "description" : " mpx components library" ,
55 "author" :
" xiaolei <[email protected] >" ,
66 "publishConfig" : {
You can’t perform that action at this time.
0 commit comments