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

Commit

Permalink
Merge pull request #469 from alibaba/dev
Browse files Browse the repository at this point in the history
0.7.0
  • Loading branch information
tw93 authored Oct 17, 2019
2 parents 31127bf + 420730d commit 0866761
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 20 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## 0.7.0
- [-] Remove alipay util,Preventing audit issues [issue/467](https://github.com/alibaba/weex-ui/issues/467)
- [!] [wxc-tab-bar](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-tab-bar) add `supportXBar` param.

## 0.6.16
- [+] [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)

Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG_cn.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# 升级日志

## 0.7.0
- [-] 移除支付宝判断,防止审核问题 [issue/467](https://github.com/alibaba/weex-ui/issues/467)
- [!] [wxc-tab-bar](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-tab-bar) 增加 `supportXBar` 参数可用于设置不要 iPhone X 底部 bar 的增高兼容效果


## 0.6.16
- [+] [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)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "weex-ui",
"version": "0.6.17",
"version": "0.7.0",
"description": "A rich interaction, lightweight, high performance UI library based on Weex",
"main": "index.js",
"lib": "vue",
Expand Down
4 changes: 0 additions & 4 deletions packages/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,6 @@ const Utils = {
const { platform } = weex.config.env;
return platform.toLowerCase() === 'android';
},
isAlipay () {
const { appName } = weex.config.env;
return appName === 'AP';
},
isTmall () {
const { appName } = weex.config.env;
return /(tm|tmall|天猫)/i.test(appName);
Expand Down
4 changes: 2 additions & 2 deletions packages/wxc-special-rich-text/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ under the License.
import Utils from '../utils';
const { appName, osName, deviceWidth } = weex.config.env;
const needHack = ((Utils.env.isAlipay() || appName === 'UC' || appName === 'TUnionSDK') && osName !== 'iOS') || Utils.env.isAndroid();
const needHack = ((Utils.env.isWeb() || appName === 'UC' || appName === 'TUnionSDK') && osName !== 'iOS') || Utils.env.isAndroid();
const isPad = osName === 'iOS' && deviceWidth > 1300;
import WxcRichTextText from '../wxc-rich-text/wxc-rich-text-text.vue';
Expand All @@ -107,7 +107,7 @@ under the License.
export default {
components: {
WxcRichTextText,
WxcRichTextTag,
WxcRichTextTag
},
props: {
configList: {
Expand Down
11 changes: 6 additions & 5 deletions packages/wxc-tab-bar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
@wxcTabBarCurrentTabSelected="wxcTabBarCurrentTabSelected">
<!--The first page content-->
<div class="item-container" :style="contentStyle"><text>Home</text></div>
<!--The second page content-->
<div class="item-container" :style="contentStyle"><text>Hot</text></div>
<!-- The third page content-->
<div class="item-container" :style="contentStyle"><text>Message</text></div>
<!-- The fourth page content-->
<div class="item-container" :style="contentStyle"><text>My</text></div>
</wxc-tab-bar>
Expand All @@ -43,8 +43,8 @@
</style>
<script>
import { WxcTabBar, Utils } from 'weex-ui';
// https://github.com/alibaba/weex-ui/blob/master/example/tab-bar/config.js
// https://github.com/alibaba/weex-ui/blob/master/example/tab-bar/config.js
import Config from './config'
export default {
Expand Down Expand Up @@ -85,6 +85,7 @@ More details can be found in [here](https://github.com/alibaba/weex-ui/blob/mast
| duration | `Number` |`N`| `300` | page slider time of animation |
| timing-function | `String` |`N`| `-` | page slider function of animation |
| wrap-bg-color | `String` |`N`| `#F2F3F4` |page background color|
| support-x-bar | `Boolean` |`Y`| `true` |if set `false`,the iPhone X Bar will not go into effect|

### *1: Using iconFont
- After Weex Ui version about `0.3.8`, we can use `iconFont` to represent our title image, you can use like this:
Expand Down
13 changes: 7 additions & 6 deletions packages/wxc-tab-bar/README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
@wxcTabBarCurrentTabSelected="wxcTabBarCurrentTabSelected">
<!-- 第一个页面内容-->
<div class="item-container" :style="contentStyle"><text>首页</text></div>
<!-- 第二个页面内容-->
<div class="item-container" :style="contentStyle"><text>特别推荐</text></div>
<!-- 第三个页面内容-->
<div class="item-container" :style="contentStyle"><text>消息中心</text></div>
<!-- 第四个页面内容-->
<div class="item-container" :style="contentStyle"><text>我的主页</text></div>
</wxc-tab-bar>
Expand All @@ -43,8 +43,8 @@
</style>
<script>
import { WxcTabBar, Utils } from 'weex-ui';
// https://github.com/alibaba/weex-ui/blob/master/example/tab-bar/config.js
// https://github.com/alibaba/weex-ui/blob/master/example/tab-bar/config.js
import Config from './config'
export default {
Expand Down Expand Up @@ -85,11 +85,12 @@
| title-use-slot | `Boolean` |`N`| `false` | 使用 slot 配置底部导航 (注2)|
| timing-function | `String` |`N`| `-` | 页面切换动画函数 |
| wrap-bg-color | `String` |`N`| `#F2F3F4` |页面背景颜色|
| support-x-bar | `Boolean` |`Y`| `true` |假如设置为 false,iPhone X 类型机器将不会有 bar 增高的兼容|

### 注1:使用 iconFont

- 在 Weex Ui 0.3.8以后,我们可以使用 iconFont 来代替原有 tab title 中的图片配置,像下面这个配置即可:

```
// https://github.com/alibaba/weex-ui/blob/master/example/tab-bar/config.js#L51
// '&#xe608;' -> '\ue608'
Expand Down
8 changes: 6 additions & 2 deletions packages/wxc-tab-bar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ under the License.
type: Boolean,
default: true
},
supportXBar: {
type: Boolean,
default: true
},
duration: {
type: [Number, String],
default: 300
Expand All @@ -193,14 +197,14 @@ under the License.
translateX: 0
}),
created () {
const { titleType, tabStyles } = this;
const { titleType, tabStyles, supportXBar } = this;
if (titleType === 'iconFont' && tabStyles.iconFontUrl) {
dom.addRule('fontFace', {
'fontFamily': "wxcIconFont",
'src': `url('${tabStyles.iconFontUrl}')`
});
}
this.isIPhoneX = Utils.env.isIPhoneX();
this.isIPhoneX = Utils.env.isIPhoneX() && supportXBar;
},
methods: {
next () {
Expand Down

0 comments on commit 0866761

Please sign in to comment.