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

Commit 02ebab5

Browse files
committed
[+] update for ep
1 parent 92b00b9 commit 02ebab5

File tree

6 files changed

+40
-44
lines changed

6 files changed

+40
-44
lines changed

CHANGELOG.md

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

33
## 0.3.10
4-
- [+] New component: [wxc-icon](https://github.com/alibaba/weex-ui/blob/master/packages/wxc-icon/README.md) 🎉🎉
4+
- [+] New component: [`wxc-icon`](https://github.com/alibaba/weex-ui/blob/master/packages/wxc-icon/README.md) 🎉🎉
5+
- New component: [`wxc-city`](https://github.com/alibaba/weex-ui/blob/master/packages/wxc-city/README.md)
56
- [-] Remove the default position relative style.
6-
- [+] `wxc-indexlist` add a head slot. [issue](https://github.com/alibaba/weex-ui/issues/105)
7+
- [+] `wxc-indexlist` add a head slot. [issue105](https://github.com/alibaba/weex-ui/issues/105)
8+
- [+] `wxc-tab-bar` [supports for IPhoneX](https://img.alicdn.com/tfs/TB1_qrtkf2H8KJjy0FcXXaDlFXa-768-354.png).
79

810
## 0.3.9
911
- [+] `wxc-minibar` supports slot.
@@ -27,7 +29,7 @@
2729
- [+] Add a [`chat`](https://alibaba.github.io/weex-ui/) of the website.
2830

2931
## 0.3.3
30-
- [+] [wxc-tab-bar](https://github.com/alibaba/weex-ui/blob/master/packages/wxc-page-bar/README.md) supports `bedge``dot`
32+
- [+] [wxc-tab-bar](https://github.com/alibaba/weex-ui/blob/master/packages/wxc-page-bar/README.md) supports `bedge``dot` setting.
3133
- [+] Add component [demo page](https://alibaba.github.io/weex-ui/docc/demo.html) of the website.
3234

3335
## 0.3.2

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ More details can be found in [How to use with weex-toolkit](/docs/with-weex-tool
148148
|[wxc-stepper](packages/wxc-stepper/)|Data Entry|Quantity changer|
149149
|[wxc-searchbar](packages/wxc-searchbar/)|Data Entry|Search bar component|
150150
|[wxc-grid-select](packages/wxc-grid-select/)|Data Display|Grid selection component|
151+
|[wxc-icon](packages/wxc-icon/)|Data Display|Common iconFont summary |
151152
|[wxc-indexlist](packages/wxc-indexlist/)|Data Display|Index list component|
152153
|[wxc-page-calendar](packages/wxc-page-calendar/)|Data Display|Full page calendar|
153154
|[wxc-rich-text](packages/wxc-rich-text/)|Data Display|Dynamic template|

README_cn.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ npm i babel-preset-stage-0 babel-plugin-component -D
136136
|[wxc-stepper](packages/wxc-stepper/README_cn.md)|数据输入|计数器|
137137
|[wxc-searchbar](packages/wxc-searchbar/README_cn.md)|数据输入|搜索栏|
138138
|[wxc-grid-select](packages/wxc-grid-select/README_cn.md)|数据展示|网格选择|
139+
|[wxc-icon](packages/wxc-icon/README_cn.md)|数据展示|通用 iconFont 汇集 |
139140
|[wxc-indexlist](packages/wxc-indexlist/README_cn.md)|数据展示|索引列表|
140141
|[wxc-page-calendar](packages/wxc-page-calendar/README_cn.md)|数据展示|全屏日历|
141142
|[wxc-rich-text](packages/wxc-rich-text/README_cn.md)|数据展示|动态模块 富文本|

packages/wxc-tab-bar/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</div>
1313
</div>
1414
<div class="tab-title-list"
15-
:style="{ backgroundColor: tabStyles.bgColor, height: (tabStyles.height)+'px'}">
15+
:style="{ backgroundColor: tabStyles.bgColor, height: (tabStyles.height + (isIPhoneX ? 78 : 0))+'px',paddingBottom:isIPhoneX?'78px':'0'}">
1616
<div class="title-item"
1717
v-for="(v,index) in tabTitles"
1818
:key="index"
@@ -185,6 +185,7 @@
185185
'src': `url(${tabStyles.iconFontUrl})`
186186
});
187187
}
188+
this.isIPhoneX = Utils.env.isIPhoneX();
188189
},
189190
methods: {
190191
decode (text) {

packages/wxc-tab-page/README.md

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
> Tab page make it easy to switch between different views
44
5+
!> The effect of sliding with hand is based on [expressionBinding](https://github.com/alibaba/weex/issues/1730) feature. Make sure your app [support it](https://github.com/alibaba/weex-ui/issues/6).
6+
57
### Rule
68
- Allow configuration of the head, support `ExpressionBinding` gesture to follow the effect, H5 support downgrade slide switch.
79
- Commonly used in Tab switch pages, currently supports **icon 、text and iconFont** form the top bar, You can see in [here](https://github.com/alibaba/weex-ui/blob/master/example/tab-page/config.js)
@@ -35,13 +37,9 @@
3537
<wxc-pan-item :ext-id="'1-' + (v) + '-' + (key)"
3638
url="https://h5.m.taobao.com/trip/ticket/detail/index.html?scenicId=2675"
3739
@wxcPanItemPan="wxcPanItemPan">
38-
<wxc-item image="https://gtd.alicdn.com/imgextra/TB12yGaNVXXXXX7aXXXSutbFXXX.jpg"
39-
:image-text="tabTitles[index].title"
40-
title="this is title,this is title,this is title,this is title"
41-
:desc="desc"
42-
:tags="tags"
43-
price="219"
44-
price-desc="price-desc"></wxc-item>
40+
<div class="content">
41+
<text>{{key}}</text>
42+
</div>
4543
</wxc-pan-item>
4644
</cell>
4745
</list>
@@ -68,6 +66,14 @@
6866
.cell {
6967
background-color: #ffffff;
7068
}
69+
70+
.content{
71+
width:750px;
72+
height:300px;
73+
border-bottom-width:1px;
74+
align-items: center;
75+
justify-content: center;
76+
}
7177
</style>
7278
<script>
7379
const dom = weex.requireModule('dom');
@@ -77,7 +83,7 @@
7783
import Config from './config'
7884
7985
export default {
80-
components: { WxcTabPage, WxcPanItem, WxcItem },
86+
components: { WxcTabPage, WxcPanItem },
8187
data: () => ({
8288
tabTitles: Config.tabTitles,
8389
tabStyles: Config.tabStyles,
@@ -86,17 +92,7 @@
8692
demoList: [1, 2, 3, 4, 5, 6, 7, 8, 9],
8793
supportSlide: true,
8894
isTabView: true,
89-
tabPageHeight: 1334,
90-
desc: [{
91-
type: 'text',
92-
value: 'rich-text',
93-
theme: 'gray'
94-
}],
95-
tags: [{
96-
type: 'tag',
97-
value: 'rich tag text',
98-
theme: 'yellow'
99-
}]
95+
tabPageHeight: 1334
10096
}),
10197
created () {
10298
this.tabPageHeight = Utils.env.getPageHeight();

packages/wxc-tab-page/README_cn.md

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
> Weex tab 页面滑动切换组件
44
5+
!> 随手滑动的效果依赖于 [expressionBinding](https://github.com/alibaba/weex/issues/1730) 特性,使用前请确定你的App[是否支持](https://github.com/alibaba/weex-ui/issues/6)
6+
57
### 规则
68
- 允许对头部进行配置,支持 ExpressionBinding 手势跟随效果,H5 支持降级效果滑动切换
79
- 常用于 Tab 切换页面,目前支持**icon、text、iconFont**形式的顶栏,详细可见[config.js](https://github.com/alibaba/weex-ui/blob/master/example/tab-page/config.js)
@@ -35,13 +37,9 @@
3537
<wxc-pan-item :ext-id="'1-' + (v) + '-' + (key)"
3638
url="https://h5.m.taobao.com/trip/ticket/detail/index.html?scenicId=2675"
3739
@wxcPanItemPan="wxcPanItemPan">
38-
<wxc-item image="https://gtd.alicdn.com/imgextra/TB12yGaNVXXXXX7aXXXSutbFXXX.jpg"
39-
:image-text="tabTitles[index].title"
40-
title="飞猪专线|四川成都出发到九寨沟牟尼沟 温泉3天2晚纯玩跟团旅游"
41-
:desc="desc"
42-
:tags="tags"
43-
price="219"
44-
price-desc="月售58笔|999+条评论"></wxc-item>
40+
<div class="content">
41+
<text>{{key}}</text>
42+
</div>
4543
</wxc-pan-item>
4644
</cell>
4745
</list>
@@ -68,6 +66,14 @@
6866
.cell {
6967
background-color: #ffffff;
7068
}
69+
70+
.content{
71+
width:750px;
72+
height:300px;
73+
border-bottom-width:1px;
74+
align-items: center;
75+
justify-content: center;
76+
}
7177
</style>
7278
<script>
7379
const dom = weex.requireModule('dom');
@@ -77,7 +83,7 @@
7783
import Config from './config'
7884
7985
export default {
80-
components: { WxcTabPage, WxcPanItem, WxcItem },
86+
components: { WxcTabPage, WxcPanItem },
8187
data: () => ({
8288
tabTitles: Config.tabTitles,
8389
tabStyles: Config.tabStyles,
@@ -86,17 +92,7 @@
8692
demoList: [1, 2, 3, 4, 5, 6, 7, 8, 9],
8793
supportSlide: true,
8894
isTabView: true,
89-
tabPageHeight: 1334,
90-
desc: [{
91-
type: 'text',
92-
value: '特价机票|班期:清明 3/27-4/2等',
93-
theme: 'gray'
94-
}],
95-
tags: [{
96-
type: 'tag',
97-
value: '满100减20测试',
98-
theme: 'yellow'
99-
}]
95+
tabPageHeight: 1334
10096
}),
10197
created () {
10298
this.tabPageHeight = Utils.env.getPageHeight();
@@ -107,7 +103,7 @@
107103
wxcTabPageCurrentTabSelected (e) {
108104
const self = this;
109105
const index = e.page;
110-
/* 未加载tab模拟数据请求 */
106+
/* Unloaded tab analog data request */
111107
if (!Utils.isNonEmptyArray(self.tabList[index])) {
112108
setTimeout(() => {
113109
Vue.set(self.tabList, index, self.demoList);
@@ -122,7 +118,6 @@
122118
}
123119
};
124120
</script>
125-
126121
```
127122
更详细代码可以参考 [demo](https://github.com/alibaba/weex-ui/blob/master/example/tab-page/index.vue)
128123

0 commit comments

Comments
 (0)