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

Commit 741a8bc

Browse files
committed
Merge branch 'dev'
2 parents fe16699 + b36d15a commit 741a8bc

File tree

13 files changed

+154
-112
lines changed

13 files changed

+154
-112
lines changed

CHANGELOG.md

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

3+
## 0.7.1
4+
- [+] [wxc-slider-bar](https://alibaba.github.io/weex-ui/#/cn/packages/slider-bar) add `wxcSliderBarTouchEnd` event.
5+
- [!] Fixed [wxc-mask](https://alibaba.github.io/weex-ui/#/cn/packages/mask) jitter bug when inputting.
6+
- [!] Fixed the problem that the QR code does not display when debugging.
7+
38
## 0.7.0
49
- [-] Remove alipay util,Preventing audit issues [issue/467](https://github.com/alibaba/weex-ui/issues/467)
510
- [!] [wxc-tab-bar](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-tab-bar) add `supportXBar` param.

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.7.1
4+
- [+] [wxc-slider-bar](https://alibaba.github.io/weex-ui/#/cn/packages/slider-bar) 新增 `wxcSliderBarTouchEnd` 事件.
5+
- [!] 修复 [wxc-mask](https://alibaba.github.io/weex-ui/#/cn/packages/mask) 输入时候抖动问题
6+
- [!] 修复调试时候 console 不显示二维码的问题
7+
8+
39
## 0.7.0
410
- [-] 移除支付宝判断,防止审核问题 [issue/467](https://github.com/alibaba/weex-ui/issues/467)
511
- [!] [wxc-tab-bar](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-tab-bar) 增加 `supportXBar` 参数可用于设置不要 iPhone X 底部 bar 的增高兼容效果

example/_public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
<script src="//h5.m.taobao.com/js/trip/weex-ui/vue.runtime.min.js"></script>
3131
<script src="//h5.m.taobao.com/js/trip/weex-ui/weex-vue-render-next.min.js"></script>
3232
<script src="./index.web.js"></script>
33-
<script src="//h5.m.taobao.com/js/trip/weex-ui/qrcode.js"></script>
33+
<script src="//qpluspicture.oss-cn-beijing.aliyuncs.com/ts-upload/1573807857-qrcode.js"></script>
3434
</body>
3535
</html>

example/popup/index.vue

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ under the License.
6262
<div class="demo-content">
6363
<image src="https://img.alicdn.com/tfs/TB1ojYvOXXXXXaOXFXXXXXXXXXX-180-41.png"
6464
class="demo-image"></image>
65-
<text>与 Web App、HTML5 App 或 hybrid App 不同,您可以使用 Weex 构建一个真正的原生应用。更贴心的是你的代码只需使用 HTML、CSS、JavaScript 可以构建原生应用,上手非常简单。</text>
65+
<text>与 Web App、HTML5 App 或 hybrid App 不同,您可以使用 Weex 构建一个真正的原生应用。更贴心的是你的代码只需使用 HTML、CSS、JavaScript
66+
可以构建原生应用,上手非常简单。</text>
6667
</div>
6768
</wxc-popup>
6869

@@ -75,6 +76,7 @@ under the License.
7576
:show="isRightShow"
7677
pos="right"
7778
ref="wxcPopup"
79+
:overlay-cfg="{'can-auto-close': false}"
7880
@wxcPopupOverlayClicked="popupOverlayRightClick">
7981
<div @click="onHideClick"
8082
class="btn blue hide-auto">
@@ -183,47 +185,47 @@ under the License.
183185
isRightShow: false,
184186
isAutoShow: false,
185187
isTrue: true,
186-
height: 400
188+
height: 400,
187189
}),
188-
created () {
190+
created() {
189191
setTitle('Popup');
190192
},
191193
methods: {
192-
openBottomPopup () {
194+
openBottomPopup() {
193195
this.isBottomShow = true;
194196
},
195-
openTopPopup () {
197+
openTopPopup() {
196198
this.isTopShow = true;
197199
},
198-
openLeftPopup () {
200+
openLeftPopup() {
199201
this.isLeftShow = true;
200202
},
201-
openRightPopup () {
203+
openRightPopup() {
202204
this.isRightShow = true;
203205
},
204-
popupOverlayTopClick () {
206+
popupOverlayTopClick() {
205207
this.isTopShow = false;
206208
},
207-
popupOverlayBottomClick () {
209+
popupOverlayBottomClick() {
208210
this.isBottomShow = false;
209211
},
210-
popupOverlayLeftClick () {
212+
popupOverlayLeftClick() {
211213
this.isLeftShow = false;
212214
},
213-
popupOverlayRightClick () {
215+
popupOverlayRightClick() {
214216
this.isRightShow = false;
215217
},
216218
217-
popupOverlayAutoClick () {
219+
popupOverlayAutoClick() {
218220
this.isAutoShow = false;
219221
},
220222
221-
openAutoPopup () {
223+
openAutoPopup() {
222224
const height = this.height;
223225
this.height = height === 400 ? 800 : 400;
224226
this.isAutoShow = true;
225227
},
226-
onHideClick () {
228+
onHideClick() {
227229
this.$refs.wxcPopup.hide();
228230
}
229231
}

example/slider-bar/index.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ under the License.
2727
<div class="demo-container">
2828
<text class="label">单滑块水平选择条</text>
2929
<text class="value-text">取值:{{barValue}}</text>
30-
<wxc-slider-bar v-bind="sliderBarCfg1" @updateValue="updateValue"></wxc-slider-bar>
30+
<wxc-slider-bar v-bind="sliderBarCfg1" @updateValue="updateValue"
31+
@wxcSliderBarTouchEnd="wxcSliderBarTouchEnd"></wxc-slider-bar>
3132
</div>
3233
<div class="demo-container">
3334
<text class="label">双滑块范围水平选择条</text>
3435
<text class="value-text">取值范围:{{minValue}} --- {{maxValue}}</text>
35-
<wxc-slider-bar v-bind="sliderBarCfg2" @updateValue="updateValue"></wxc-slider-bar>
36+
<wxc-slider-bar v-bind="sliderBarCfg2" @updateValue="updateValue" @wxcSliderBarTouchEnd="wxcSliderBarTouchEnd"></wxc-slider-bar>
3637
</div>
3738
<div class="demo-container">
3839
<text class="label">单滑块水平选择条禁用</text>
@@ -91,6 +92,8 @@ under the License.
9192
import { WxcSliderBar } from '../../index';
9293
import { setTitle } from '../_mods/set-nav';
9394
95+
const modal = weex.requireModule("modal");
96+
9497
export default {
9598
components: { Title, Category, WxcSliderBar },
9699
data: () => ({
@@ -148,6 +151,11 @@ under the License.
148151
this.minValue = value[0];
149152
this.maxValue = value[1];
150153
}
154+
},
155+
wxcSliderBarTouchEnd(value) {
156+
modal.toast({
157+
message: `end touch: ${value}`
158+
})
151159
}
152160
}
153161
}

package-lock.json

Lines changed: 56 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "weex-ui",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"description": "A rich interaction, lightweight, high performance UI library based on Weex",
55
"main": "index.js",
66
"lib": "vue",
@@ -67,10 +67,10 @@
6767
"vue-loader": "^12.2.2",
6868
"vue-template-compiler": "^2.5.3",
6969
"webpack": "^2.7.0",
70-
"weex-loader": "^0.6.0",
71-
"weex-vue-loader": "^0.5.0",
72-
"weex-vue-precompiler": "^0.1.17",
73-
"weex-vue-render": "^1.0.17"
70+
"weex-loader": "^0.7.12",
71+
"weex-vue-loader": "^0.7.0",
72+
"weex-vue-precompiler": "^0.1.26",
73+
"weex-vue-render": "^1.0.36"
7474
},
7575
"dependencies": {
7676
"url-parse": "^1.4.3",

packages/wxc-mask/index.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@ under the License.
5959
6060
.wxc-mask {
6161
position: fixed;
62-
top: 300px;
63-
left: 60px;
64-
width: 702px;
65-
height: 800px;
6662
}
6763
6864
.mask-bottom {

packages/wxc-overlay/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ More details can be found in [here](https://github.com/alibaba/weex-ui/blob/mast
4747
### API
4848

4949
| Prop | Type | Required | Default | Description |
50-
|-------------|------------|--------|-----|
50+
|-------------|------------|--------|-----|-----|
5151
| show | `Boolean` |`Y`| `false` | whether to show |
5252
| opacity | `Number` |`N`| `0.6` | opacity `0-1` |
5353
| left | `Number` |`N`| `0` | move left distance |

packages/wxc-overlay/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ under the License.
5555
default: 0
5656
},
5757
left: {
58-
default: Number,
58+
type: Number,
5959
default: 0
6060
},
6161
hasAnimation: {

0 commit comments

Comments
 (0)