Skip to content
This repository was archived by the owner on Jun 3, 2021. It is now read-only.

Commit 0866761

Browse files
authored
Merge pull request #469 from alibaba/dev
0.7.0
2 parents 31127bf + 420730d commit 0866761

8 files changed

Lines changed: 32 additions & 20 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## 0.7.0
4+
- [-] Remove alipay util,Preventing audit issues [issue/467](https://github.com/alibaba/weex-ui/issues/467)
5+
- [!] [wxc-tab-bar](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-tab-bar) add `supportXBar` param.
6+
37
## 0.6.16
48
- [+] [wxc-pan-item](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-pan-item/) add `extId` when pan. [issue/441](https://github.com/alibaba/weex-ui/issues/441)
59

CHANGELOG_cn.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
# 升级日志
2+
3+
## 0.7.0
4+
- [-] 移除支付宝判断,防止审核问题 [issue/467](https://github.com/alibaba/weex-ui/issues/467)
5+
- [!] [wxc-tab-bar](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-tab-bar) 增加 `supportXBar` 参数可用于设置不要 iPhone X 底部 bar 的增高兼容效果
6+
7+
28
## 0.6.16
39
- [+] [wxc-pan-item](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-pan-item/) 滑动时候新增 `extId` 回调 [issue/441](https://github.com/alibaba/weex-ui/issues/441)
410

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "weex-ui",
3-
"version": "0.6.17",
3+
"version": "0.7.0",
44
"description": "A rich interaction, lightweight, high performance UI library based on Weex",
55
"main": "index.js",
66
"lib": "vue",

packages/utils/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,6 @@ const Utils = {
142142
const { platform } = weex.config.env;
143143
return platform.toLowerCase() === 'android';
144144
},
145-
isAlipay () {
146-
const { appName } = weex.config.env;
147-
return appName === 'AP';
148-
},
149145
isTmall () {
150146
const { appName } = weex.config.env;
151147
return /(tm|tmall|)/i.test(appName);

packages/wxc-special-rich-text/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ under the License.
9898
import Utils from '../utils';
9999
100100
const { appName, osName, deviceWidth } = weex.config.env;
101-
const needHack = ((Utils.env.isAlipay() || appName === 'UC' || appName === 'TUnionSDK') && osName !== 'iOS') || Utils.env.isAndroid();
101+
const needHack = ((Utils.env.isWeb() || appName === 'UC' || appName === 'TUnionSDK') && osName !== 'iOS') || Utils.env.isAndroid();
102102
const isPad = osName === 'iOS' && deviceWidth > 1300;
103103
104104
import WxcRichTextText from '../wxc-rich-text/wxc-rich-text-text.vue';
@@ -107,7 +107,7 @@ under the License.
107107
export default {
108108
components: {
109109
WxcRichTextText,
110-
WxcRichTextTag,
110+
WxcRichTextTag
111111
},
112112
props: {
113113
configList: {

packages/wxc-tab-bar/README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
@wxcTabBarCurrentTabSelected="wxcTabBarCurrentTabSelected">
2222
<!--The first page content-->
2323
<div class="item-container" :style="contentStyle"><text>Home</text></div>
24-
24+
2525
<!--The second page content-->
2626
<div class="item-container" :style="contentStyle"><text>Hot</text></div>
27-
27+
2828
<!-- The third page content-->
2929
<div class="item-container" :style="contentStyle"><text>Message</text></div>
30-
30+
3131
<!-- The fourth page content-->
3232
<div class="item-container" :style="contentStyle"><text>My</text></div>
3333
</wxc-tab-bar>
@@ -43,8 +43,8 @@
4343
</style>
4444
<script>
4545
import { WxcTabBar, Utils } from 'weex-ui';
46-
47-
// https://github.com/alibaba/weex-ui/blob/master/example/tab-bar/config.js
46+
47+
// https://github.com/alibaba/weex-ui/blob/master/example/tab-bar/config.js
4848
import Config from './config'
4949
5050
export default {
@@ -85,6 +85,7 @@ More details can be found in [here](https://github.com/alibaba/weex-ui/blob/mast
8585
| duration | `Number` |`N`| `300` | page slider time of animation |
8686
| timing-function | `String` |`N`| `-` | page slider function of animation |
8787
| wrap-bg-color | `String` |`N`| `#F2F3F4` |page background color|
88+
| support-x-bar | `Boolean` |`Y`| `true` |if set `false`,the iPhone X Bar will not go into effect|
8889

8990
### *1: Using iconFont
9091
- After Weex Ui version about `0.3.8`, we can use `iconFont` to represent our title image, you can use like this:

packages/wxc-tab-bar/README_cn.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
@wxcTabBarCurrentTabSelected="wxcTabBarCurrentTabSelected">
2222
<!-- 第一个页面内容-->
2323
<div class="item-container" :style="contentStyle"><text>首页</text></div>
24-
24+
2525
<!-- 第二个页面内容-->
2626
<div class="item-container" :style="contentStyle"><text>特别推荐</text></div>
27-
27+
2828
<!-- 第三个页面内容-->
2929
<div class="item-container" :style="contentStyle"><text>消息中心</text></div>
30-
30+
3131
<!-- 第四个页面内容-->
3232
<div class="item-container" :style="contentStyle"><text>我的主页</text></div>
3333
</wxc-tab-bar>
@@ -43,8 +43,8 @@
4343
</style>
4444
<script>
4545
import { WxcTabBar, Utils } from 'weex-ui';
46-
47-
// https://github.com/alibaba/weex-ui/blob/master/example/tab-bar/config.js
46+
47+
// https://github.com/alibaba/weex-ui/blob/master/example/tab-bar/config.js
4848
import Config from './config'
4949
5050
export default {
@@ -85,11 +85,12 @@
8585
| title-use-slot | `Boolean` |`N`| `false` | 使用 slot 配置底部导航 (注2)|
8686
| timing-function | `String` |`N`| `-` | 页面切换动画函数 |
8787
| wrap-bg-color | `String` |`N`| `#F2F3F4` |页面背景颜色|
88+
| support-x-bar | `Boolean` |`Y`| `true` |假如设置为 false,iPhone X 类型机器将不会有 bar 增高的兼容|
8889

8990
### 注1:使用 iconFont
9091

9192
- 在 Weex Ui 0.3.8以后,我们可以使用 iconFont 来代替原有 tab title 中的图片配置,像下面这个配置即可:
92-
93+
9394
```
9495
// https://github.com/alibaba/weex-ui/blob/master/example/tab-bar/config.js#L51
9596
// '&#xe608;' -> '\ue608'

packages/wxc-tab-bar/index.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ under the License.
175175
type: Boolean,
176176
default: true
177177
},
178+
supportXBar: {
179+
type: Boolean,
180+
default: true
181+
},
178182
duration: {
179183
type: [Number, String],
180184
default: 300
@@ -193,14 +197,14 @@ under the License.
193197
translateX: 0
194198
}),
195199
created () {
196-
const { titleType, tabStyles } = this;
200+
const { titleType, tabStyles, supportXBar } = this;
197201
if (titleType === 'iconFont' && tabStyles.iconFontUrl) {
198202
dom.addRule('fontFace', {
199203
'fontFamily': "wxcIconFont",
200204
'src': `url('${tabStyles.iconFontUrl}')`
201205
});
202206
}
203-
this.isIPhoneX = Utils.env.isIPhoneX();
207+
this.isIPhoneX = Utils.env.isIPhoneX() && supportXBar;
204208
},
205209
methods: {
206210
next () {

0 commit comments

Comments
 (0)