Skip to content

Commit 179c497

Browse files
committed
chore: rn version
1 parent dce28f2 commit 179c497

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

packages/mpx-cube-ui/lib/components/popup/popup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) {

packages/mpx-cube-ui/lib/components/switch/index.mpx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
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>

packages/mpx-cube-ui/lib/components/tip/index.mpx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
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"
@@ -27,7 +27,7 @@
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"
@@ -43,7 +43,7 @@
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'

packages/mpx-cube-ui/lib/components/tip/rn-mixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import mpx, { getMixin } from '@mpxjs/core';
22
let 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: {}

packages/mpx-cube-ui/lib/components/tip/tip.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 {

packages/mpx-cube-ui/lib/components/toast/toast.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

packages/mpx-cube-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": {

0 commit comments

Comments
 (0)