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

Commit dfaf663

Browse files
committed
Merge branch 'dev'
2 parents 917889c + e4650a2 commit dfaf663

File tree

20 files changed

+76
-24
lines changed

20 files changed

+76
-24
lines changed

CHANGELOG.md

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

3+
## 0.6.12
4+
- [!] Fixed set transparency issues [wxc-lightbox](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-lightbox/).
5+
- [!] Fixed set transparency issues [wxc-mask](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-mask/).
6+
- [!] Fixed cannot click, the component cannot modify the internal style [wxc-special-rich-text](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-rich-text/).
7+
- [!] Fixed click no highlighting question [wxc-button](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-button/).
8+
39
## 0.6.11
410
- [!] Fixed the shake when change disabled about [wxc-button](https://alibaba.github.io/weex-ui/#/packages/wxc-button/).
511
- [!] Fixed the line-height bug about [wxc-stepper](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-stepper/).

CHANGELOG_cn.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# 升级日志
22

3+
## 0.6.12
4+
- [!] 修复 [wxc-lightbox](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-lightbox/) 设置透明度问题
5+
- [!] 修复 [wxc-mask](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-mask/) 设置透明度问题
6+
- [!] 修复 [wxc-special-rich-text](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-rich-text/) 不能单击,组件不能修改内部样式的问题
7+
- [!] 修复 [wxc-button](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-button/) 单击没有高亮显示问题
8+
39
## 0.6.11
410
- [!] 修复 [wxc-button](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-button/) 动态修改 disabled 时候抖动问题
511
- [!] 修复 [wxc-stepper](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-stepper/) line-height 对其问题

docs/_coverpage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<img src="https://img.alicdn.com/tfs/TB1kCs_er_I8KJjy1XaXXbsxpXa-419-495.png" width="146px">
22

3-
# <span style="font-weight:400;">Weex Ui</span> <span style="font-size:14px">0.6.10</span>
3+
# <span style="font-weight:400;">Weex Ui</span> <span style="font-size:14px">0.6.12</span>
44

55
> <span style="line-height:1.8rem;font-weight:400;font-size:1.3rem">A rich interaction, lightweight, high performance UI library.<span>
66

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.11",
3+
"version": "0.6.12",
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const Utils = {
110110
&& ((parseInt(window.screen.width, 10) === 375) && (parseInt(window.screen.height, 10) === 812)
111111
|| (parseInt(window.screen.width, 10) === 414) && (parseInt(window.screen.height, 10) === 896));
112112
}
113-
return Utils.env.isIOS() && (deviceHeight === 2436 || deviceHeight === 2688 || deviceHeight == 1792);
113+
return Utils.env.isIOS() && (deviceHeight === 2436 || deviceHeight === 2688 || deviceHeight === 1792 || deviceHeight === 1624);
114114
},
115115
isAndroid () {
116116
const { platform } = weex.config.env;

packages/wxc-button/index.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@
8181
opacity: 1;
8282
}
8383
84+
.wxc-btn:active {
85+
opacity: .8;
86+
}
87+
8488
.btn-text {
8589
text-overflow: ellipsis;
8690
lines: 1;

packages/wxc-lightbox/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ More details can be found in [here](https://github.com/alibaba/weex-ui/blob/mast
6969
| indicator-color | `Object` |`N`| `{}` | indicator style(*1)|
7070
| index | `Number` |`N`| `0` | the index of current shown slider|
7171
| interval | `Number` |`N`| `3000` | time interval for each page displayed in slider|
72+
| opacity | `Number` |`N`| `0.6` | set transparency |
7273

7374
*1 default style:
7475
```

packages/wxc-lightbox/README_cn.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
| indicator-color | `Object` |`N`| `{}` |索引样式配置(注 1)|
7272
| index | `Number` |`N`| `0` | 当前初始打开选择哪一页 |
7373
| interval | `Number` |`N`| `3000` | 设置自动播放时候的间隔时间 |
74+
| opacity | `Number` |`N`| `0.6` | 设置透明度 |
7475

7576
注 1 中样式:
7677
```

packages/wxc-lightbox/index.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
mask-bg-color="transparent"
99
overlay-opacity="0.8"
1010
:show="show"
11+
:opacity='opacity'
1112
:show-close="false"
1213
@wxcMaskSetHidden="maskOverlayClick">
1314
<slider auto-play="false"
@@ -75,7 +76,11 @@
7576
interval:{
7677
type: [Number, String],
7778
default: 3000
78-
}
79+
},
80+
opacity: {
81+
type: [Number, String],
82+
default: 0.6
83+
},
7984
},
8085
computed: {
8186
indicatorStyle () {

packages/wxc-loading/README_cn.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,20 @@
1414

1515
```vue
1616
<template>
17-
<wxc-loading :show="isShow" type="trip"></wxc-loading>
18-
<wxc-part-loading :show="isShow"></wxc-part-loading>
17+
<div>
18+
<wxc-loading :show="isShow" type="trip"></wxc-loading>
19+
<wxc-part-loading :show="isShow"></wxc-part-loading>
20+
</div>
1921
</template>
2022
<script>
2123
import { WxcLoading, WxcPartLoading } from 'weex-ui';
22-
components: { WxcLoading, WxcPartLoading },
23-
data () {
24-
return {
25-
isShow: true
26-
};
27-
}
24+
export default {
25+
components: { WxcLoading, WxcPartLoading },
26+
data () {
27+
return {
28+
isShow: true
29+
};
30+
}
2831
};
2932
</script>
3033
```

packages/wxc-mask/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ More details can be found in [here](https://github.com/alibaba/weex-ui/blob/mast
8585
| duration | `String` |`N`| `300` | animation duration time |
8686
| timing-function | `String` |`N`| `ease-in` | animation timing function |
8787
| overlay-cfg | `Object` |`N`| `{}` | [wxc-overlay](https://github.com/alibaba/weex-ui/blob/master/packages/wxc-overlay/README.md) configs |
88-
88+
| opacity | `Number` |`N`| `0.6` | set transparency |
8989

9090
### Event
9191

packages/wxc-mask/README_cn.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
| duration | `String` |`N`| `300` | 弹层出现时间 |
8888
| timing-function | `String` |`N`| `ease-in` | 弹层出现动画方式 |
8989
| overlay-cfg | `Object` |`N`| `{}` | 蒙层配置参数 [wxc-overlay](https://github.com/alibaba/weex-ui/blob/master/packages/wxc-overlay/README.md) |
90+
| opacity | `Number` |`N`| `0.6` | 设置透明度 |
9091

9192

9293
### 事件回调

packages/wxc-mask/index.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
v-if="show"
1010
v-bind="mergeOverlayCfg"
1111
:can-auto-close="overlayCanClose"
12+
:opacity='opacity'
1213
@wxcOverlayBodyClicking="wxcOverlayBodyClicking"
1314
@wxcOverlayBodyClicked="wxcOverlayBodyClicked"></wxc-overlay>
1415
<div ref="wxc-mask"
@@ -125,7 +126,11 @@
125126
maskBgColor: {
126127
type: String,
127128
default: '#ffffff'
128-
}
129+
},
130+
opacity: {
131+
type: [Number, String],
132+
default: 0.6
133+
},
129134
},
130135
data: () => ({
131136
closeIcon: 'https://gw.alicdn.com/tfs/TB1qDJUpwMPMeJjy1XdXXasrXXa-64-64.png',

packages/wxc-progress/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,7 @@ More details can be found in [here](https://github.com/alibaba/weex-ui/blob/mast
8484
|-------------|------------|--------|-----|-----|
8585
| value | `Number` |`Y`| `0` | percent `(0-100)` |
8686
| bar-height | `Number` |`N`| `8` | progress bar height |
87+
| bar-color | `String` |`N`| `#FFC900` | progress bar color |
8788
| bar-width | `Number` |`N`| `600` | progress bar width |
8889
| bar-radius | `number` |`n`| `0` | progress bar radius |
90+
| background-color | `String` |`N`| `#f2f3f4` | overall background color |

packages/wxc-progress/README_cn.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,4 @@
8787
| bar-width | `Number` |`N`| `600` | 长度 |
8888
| bar-color | `String` |`N`| `#FFC900` | 颜色 |
8989
| bar-radius | `Number` |`N`| `0` | 圆角 |
90+
| background-color | `String` |`N`| `#f2f3f4` | 整体背景色 |

packages/wxc-progress/index.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,20 @@
4343
value: {
4444
type: Number,
4545
default: 0
46+
},
47+
backgroundColor: {
48+
type: String,
49+
default: '#f2f3f4'
4650
}
4751
},
4852
computed: {
4953
runWayStyle () {
50-
const { barWidth, barHeight, barRadius } = this;
54+
const { barWidth, barHeight, barRadius, backgroundColor } = this;
5155
return {
5256
width: barWidth + 'px',
5357
height: barHeight + 'px',
54-
borderRadius: barRadius + 'px'
58+
borderRadius: barRadius + 'px',
59+
backgroundColor
5560
}
5661
},
5762
progressStyle () {

packages/wxc-radio/item.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@
1919

2020
<style scoped>
2121
.radio {
22-
width: 48px;
23-
height: 48px;
22+
width: 36px;
23+
height: 36px;
2424
}
2525
2626
.title-text {
2727
font-size: 30px;
28+
height: 40px;
29+
line-height: 40px;
2830
}
2931
</style>
3032

packages/wxc-rich-text/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<wxc-rich-text :config-list='configList'
2020
@wxcRichTextLinkClick='wxcRichTextLinkClick'></wxc-rich-text>
2121
<div class='special-rich'>
22-
<wxc-special-rich-text :config-list='specialConfigList'></wxc-special-rich-text>
22+
<wxc-special-rich-text @wxcSpecialRichTextClick="wxcSpecialRichTextClick" :config-list='specialConfigList'></wxc-special-rich-text>
2323
</div>
2424
</div>
2525
@@ -76,6 +76,9 @@
7676
borderColor: '#FFC900',
7777
backgroundColor: '#FFC900',
7878
borderRadius: 14,
79+
},
80+
tagDivStyle: {
81+
left: '50px'
7982
}
8083
},
8184
{
@@ -89,7 +92,8 @@
8992
],
9093
}),
9194
methods: {
92-
wxcRichTextLinkClick () {}
95+
wxcRichTextLinkClick () {},
96+
wxcSpecialRichTextClick () {}
9397
}
9498
};
9599
</script>
@@ -110,6 +114,7 @@ More details can be found in [here](https://github.com/alibaba/weex-ui/blob/mast
110114

111115
```
112116
@wxcRichTextLinkClick='wxcRichTextLinkClick'
117+
@wxcSpecialRichTextClick="wxcSpecialRichTextClick"
113118
```
114119

115120

packages/wxc-rich-text/README_cn.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<wxc-rich-text :config-list="configList"
2020
@wxcRichTextLinkClick="wxcRichTextLinkClick"></wxc-rich-text>
2121
<div class="special-rich">
22-
<wxc-special-rich-text :config-list="specialConfigList"></wxc-special-rich-text>
22+
<wxc-special-rich-text @wxcSpecialRichTextClick="wxcSpecialRichTextClick" :config-list="specialConfigList"></wxc-special-rich-text>
2323
</div>
2424
</div>
2525
@@ -76,6 +76,9 @@
7676
borderColor: '#FFC900',
7777
backgroundColor: '#FFC900',
7878
borderRadius: 14,
79+
},
80+
tagDivStyle: {
81+
left: '50px'
7982
}
8083
},
8184
{
@@ -89,7 +92,8 @@
8992
],
9093
}),
9194
methods: {
92-
wxcRichTextLinkClick () {}
95+
wxcRichTextLinkClick () {},
96+
wxcSpecialRichTextClick () {}
9397
}
9498
};
9599
</script>
@@ -110,6 +114,7 @@
110114

111115
```
112116
@wxcRichTextLinkClick="wxcRichTextLinkClick"
117+
@wxcSpecialRichTextClick="wxcSpecialRichTextClick"
113118
```
114119

115120

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<!-- just hack for babel-plugin-component !!!-->
44

55
<template>
6-
<div class="wxc-special-rich-text">
6+
<div class="wxc-special-rich-text" @click="$emit('wxcSpecialRichTextClick')">
77
<div class="tag-div"
8-
:style="{top:top+'px'}">
8+
:style="Object.assign({top:top+'px'}, newList[0].tagDivStyle)">
99
<image class="wxc-image"
1010
v-if="newList[0] && newList[0].type === 'icon' && newList[0].src"
1111
:src="newList[0].src"

0 commit comments

Comments
 (0)