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

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
tw93 committed Apr 29, 2019
2 parents 917889c + e4650a2 commit dfaf663
Show file tree
Hide file tree
Showing 20 changed files with 76 additions and 24 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## 0.6.12
- [!] Fixed set transparency issues [wxc-lightbox](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-lightbox/).
- [!] Fixed set transparency issues [wxc-mask](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-mask/).
- [!] 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/).
- [!] Fixed click no highlighting question [wxc-button](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-button/).

## 0.6.11
- [!] Fixed the shake when change disabled about [wxc-button](https://alibaba.github.io/weex-ui/#/packages/wxc-button/).
- [!] Fixed the line-height bug about [wxc-stepper](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-stepper/).
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG_cn.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# 升级日志

## 0.6.12
- [!] 修复 [wxc-lightbox](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-lightbox/) 设置透明度问题
- [!] 修复 [wxc-mask](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-mask/) 设置透明度问题
- [!] 修复 [wxc-special-rich-text](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-rich-text/) 不能单击,组件不能修改内部样式的问题
- [!] 修复 [wxc-button](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-button/) 单击没有高亮显示问题

## 0.6.11
- [!] 修复 [wxc-button](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-button/) 动态修改 disabled 时候抖动问题
- [!] 修复 [wxc-stepper](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-stepper/) line-height 对其问题
Expand Down
2 changes: 1 addition & 1 deletion docs/_coverpage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<img src="https://img.alicdn.com/tfs/TB1kCs_er_I8KJjy1XaXXbsxpXa-419-495.png" width="146px">

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

> <span style="line-height:1.8rem;font-weight:400;font-size:1.3rem">A rich interaction, lightweight, high performance UI library.<span>
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.11",
"version": "0.6.12",
"description": "A rich interaction, lightweight, high performance UI library based on Weex",
"main": "index.js",
"lib": "vue",
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const Utils = {
&& ((parseInt(window.screen.width, 10) === 375) && (parseInt(window.screen.height, 10) === 812)
|| (parseInt(window.screen.width, 10) === 414) && (parseInt(window.screen.height, 10) === 896));
}
return Utils.env.isIOS() && (deviceHeight === 2436 || deviceHeight === 2688 || deviceHeight == 1792);
return Utils.env.isIOS() && (deviceHeight === 2436 || deviceHeight === 2688 || deviceHeight === 1792 || deviceHeight === 1624);
},
isAndroid () {
const { platform } = weex.config.env;
Expand Down
4 changes: 4 additions & 0 deletions packages/wxc-button/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@
opacity: 1;
}

.wxc-btn:active {
opacity: .8;
}

.btn-text {
text-overflow: ellipsis;
lines: 1;
Expand Down
1 change: 1 addition & 0 deletions packages/wxc-lightbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ More details can be found in [here](https://github.com/alibaba/weex-ui/blob/mast
| indicator-color | `Object` |`N`| `{}` | indicator style(*1)|
| index | `Number` |`N`| `0` | the index of current shown slider|
| interval | `Number` |`N`| `3000` | time interval for each page displayed in slider|
| opacity | `Number` |`N`| `0.6` | set transparency |

*1 default style:
```
Expand Down
1 change: 1 addition & 0 deletions packages/wxc-lightbox/README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
| indicator-color | `Object` |`N`| `{}` |索引样式配置(注 1)|
| index | `Number` |`N`| `0` | 当前初始打开选择哪一页 |
| interval | `Number` |`N`| `3000` | 设置自动播放时候的间隔时间 |
| opacity | `Number` |`N`| `0.6` | 设置透明度 |

注 1 中样式:
```
Expand Down
7 changes: 6 additions & 1 deletion packages/wxc-lightbox/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
mask-bg-color="transparent"
overlay-opacity="0.8"
:show="show"
:opacity='opacity'
:show-close="false"
@wxcMaskSetHidden="maskOverlayClick">
<slider auto-play="false"
Expand Down Expand Up @@ -75,7 +76,11 @@
interval:{
type: [Number, String],
default: 3000
}
},
opacity: {
type: [Number, String],
default: 0.6
},
},
computed: {
indicatorStyle () {
Expand Down
19 changes: 11 additions & 8 deletions packages/wxc-loading/README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,20 @@

```vue
<template>
<wxc-loading :show="isShow" type="trip"></wxc-loading>
<wxc-part-loading :show="isShow"></wxc-part-loading>
<div>
<wxc-loading :show="isShow" type="trip"></wxc-loading>
<wxc-part-loading :show="isShow"></wxc-part-loading>
</div>
</template>
<script>
import { WxcLoading, WxcPartLoading } from 'weex-ui';
components: { WxcLoading, WxcPartLoading },
data () {
return {
isShow: true
};
}
export default {
components: { WxcLoading, WxcPartLoading },
data () {
return {
isShow: true
};
}
};
</script>
```
Expand Down
2 changes: 1 addition & 1 deletion packages/wxc-mask/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ More details can be found in [here](https://github.com/alibaba/weex-ui/blob/mast
| duration | `String` |`N`| `300` | animation duration time |
| timing-function | `String` |`N`| `ease-in` | animation timing function |
| overlay-cfg | `Object` |`N`| `{}` | [wxc-overlay](https://github.com/alibaba/weex-ui/blob/master/packages/wxc-overlay/README.md) configs |

| opacity | `Number` |`N`| `0.6` | set transparency |

### Event

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


### 事件回调
Expand Down
7 changes: 6 additions & 1 deletion packages/wxc-mask/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
v-if="show"
v-bind="mergeOverlayCfg"
:can-auto-close="overlayCanClose"
:opacity='opacity'
@wxcOverlayBodyClicking="wxcOverlayBodyClicking"
@wxcOverlayBodyClicked="wxcOverlayBodyClicked"></wxc-overlay>
<div ref="wxc-mask"
Expand Down Expand Up @@ -125,7 +126,11 @@
maskBgColor: {
type: String,
default: '#ffffff'
}
},
opacity: {
type: [Number, String],
default: 0.6
},
},
data: () => ({
closeIcon: 'https://gw.alicdn.com/tfs/TB1qDJUpwMPMeJjy1XdXXasrXXa-64-64.png',
Expand Down
2 changes: 2 additions & 0 deletions packages/wxc-progress/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,7 @@ More details can be found in [here](https://github.com/alibaba/weex-ui/blob/mast
|-------------|------------|--------|-----|-----|
| value | `Number` |`Y`| `0` | percent `(0-100)` |
| bar-height | `Number` |`N`| `8` | progress bar height |
| bar-color | `String` |`N`| `#FFC900` | progress bar color |
| bar-width | `Number` |`N`| `600` | progress bar width |
| bar-radius | `number` |`n`| `0` | progress bar radius |
| background-color | `String` |`N`| `#f2f3f4` | overall background color |
1 change: 1 addition & 0 deletions packages/wxc-progress/README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,4 @@
| bar-width | `Number` |`N`| `600` | 长度 |
| bar-color | `String` |`N`| `#FFC900` | 颜色 |
| bar-radius | `Number` |`N`| `0` | 圆角 |
| background-color | `String` |`N`| `#f2f3f4` | 整体背景色 |
9 changes: 7 additions & 2 deletions packages/wxc-progress/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,20 @@
value: {
type: Number,
default: 0
},
backgroundColor: {
type: String,
default: '#f2f3f4'
}
},
computed: {
runWayStyle () {
const { barWidth, barHeight, barRadius } = this;
const { barWidth, barHeight, barRadius, backgroundColor } = this;
return {
width: barWidth + 'px',
height: barHeight + 'px',
borderRadius: barRadius + 'px'
borderRadius: barRadius + 'px',
backgroundColor
}
},
progressStyle () {
Expand Down
6 changes: 4 additions & 2 deletions packages/wxc-radio/item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@

<style scoped>
.radio {
width: 48px;
height: 48px;
width: 36px;
height: 36px;
}

.title-text {
font-size: 30px;
height: 40px;
line-height: 40px;
}
</style>

Expand Down
9 changes: 7 additions & 2 deletions packages/wxc-rich-text/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<wxc-rich-text :config-list='configList'
@wxcRichTextLinkClick='wxcRichTextLinkClick'></wxc-rich-text>
<div class='special-rich'>
<wxc-special-rich-text :config-list='specialConfigList'></wxc-special-rich-text>
<wxc-special-rich-text @wxcSpecialRichTextClick="wxcSpecialRichTextClick" :config-list='specialConfigList'></wxc-special-rich-text>
</div>
</div>
Expand Down Expand Up @@ -76,6 +76,9 @@
borderColor: '#FFC900',
backgroundColor: '#FFC900',
borderRadius: 14,
},
tagDivStyle: {
left: '50px'
}
},
{
Expand All @@ -89,7 +92,8 @@
],
}),
methods: {
wxcRichTextLinkClick () {}
wxcRichTextLinkClick () {},
wxcSpecialRichTextClick () {}
}
};
</script>
Expand All @@ -110,6 +114,7 @@ More details can be found in [here](https://github.com/alibaba/weex-ui/blob/mast

```
@wxcRichTextLinkClick='wxcRichTextLinkClick'
@wxcSpecialRichTextClick="wxcSpecialRichTextClick"
```


9 changes: 7 additions & 2 deletions packages/wxc-rich-text/README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<wxc-rich-text :config-list="configList"
@wxcRichTextLinkClick="wxcRichTextLinkClick"></wxc-rich-text>
<div class="special-rich">
<wxc-special-rich-text :config-list="specialConfigList"></wxc-special-rich-text>
<wxc-special-rich-text @wxcSpecialRichTextClick="wxcSpecialRichTextClick" :config-list="specialConfigList"></wxc-special-rich-text>
</div>
</div>
Expand Down Expand Up @@ -76,6 +76,9 @@
borderColor: '#FFC900',
backgroundColor: '#FFC900',
borderRadius: 14,
},
tagDivStyle: {
left: '50px'
}
},
{
Expand All @@ -89,7 +92,8 @@
],
}),
methods: {
wxcRichTextLinkClick () {}
wxcRichTextLinkClick () {},
wxcSpecialRichTextClick () {}
}
};
</script>
Expand All @@ -110,6 +114,7 @@

```
@wxcRichTextLinkClick="wxcRichTextLinkClick"
@wxcSpecialRichTextClick="wxcSpecialRichTextClick"
```


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 @@ -3,9 +3,9 @@
<!-- just hack for babel-plugin-component !!!-->

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

0 comments on commit dfaf663

Please sign in to comment.