From 420730d1ccf4734d21fb45aea58f8e7fd85bdc06 Mon Sep 17 00:00:00 2001 From: Tw93 Date: Mon, 30 Sep 2019 19:14:08 +0800 Subject: [PATCH] remove alipay and support x bar --- CHANGELOG.md | 4 ++++ CHANGELOG_cn.md | 6 ++++++ package.json | 2 +- packages/utils/index.js | 4 ---- packages/wxc-special-rich-text/index.vue | 4 ++-- packages/wxc-tab-bar/README.md | 11 ++++++----- packages/wxc-tab-bar/README_cn.md | 13 +++++++------ packages/wxc-tab-bar/index.vue | 8 ++++++-- 8 files changed, 32 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e1f31c22..9cd38737 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/CHANGELOG_cn.md b/CHANGELOG_cn.md index cf2cbf45..4112afc3 100644 --- a/CHANGELOG_cn.md +++ b/CHANGELOG_cn.md @@ -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) diff --git a/package.json b/package.json index 285bc487..a9674ead 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/utils/index.js b/packages/utils/index.js index 962fa56d..ace10e85 100644 --- a/packages/utils/index.js +++ b/packages/utils/index.js @@ -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); diff --git a/packages/wxc-special-rich-text/index.vue b/packages/wxc-special-rich-text/index.vue index 5468342e..57e4948e 100644 --- a/packages/wxc-special-rich-text/index.vue +++ b/packages/wxc-special-rich-text/index.vue @@ -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'; @@ -107,7 +107,7 @@ under the License. export default { components: { WxcRichTextText, - WxcRichTextTag, + WxcRichTextTag }, props: { configList: { diff --git a/packages/wxc-tab-bar/README.md b/packages/wxc-tab-bar/README.md index 1a5a5a6e..efc814e9 100644 --- a/packages/wxc-tab-bar/README.md +++ b/packages/wxc-tab-bar/README.md @@ -21,13 +21,13 @@ @wxcTabBarCurrentTabSelected="wxcTabBarCurrentTabSelected">
Home
- +
Hot
- +
Message
- +
My
@@ -43,8 +43,8 @@