Skip to content

Commit f4e058e

Browse files
author
二一
authored
feat(src): 发布0.7.5版本
- 修复gulp watch无法监听文件改变的问题 (#714) - 修改rules组件不能正确校验的bug(#716) - 修复segment组件滚动时获取属性报错问题 (#719)
2 parents c8711d4 + 3d78757 commit f4e058e

File tree

22 files changed

+69
-47
lines changed

22 files changed

+69
-47
lines changed

build/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ module.exports = {
7474
),
7575
watch: parallel(
7676
() => {
77-
watch(`${srcDevPath}/*.less`, buildWxss(`${srcDevPath}/*.less`, `!${srcDevPath}/_*.less`, examplePath));
78-
watch(`${srcDevPath}/*.wxml`, copy(srcDevPath, examplePath, 'wxml'));
79-
watch(`${srcDevPath}/*.wxs`, copy(srcDevPath, examplePath, 'wxs'));
80-
watch(`${srcDevPath}/*.json`, copy(srcDevPath, examplePath, 'json'));
81-
watch(`${srcDevPath}/*.js`, copy(srcDevPath, examplePath, 'js'));
77+
watch("../src/**/*.less", buildWxss(`${srcDevPath}/*.less`, `!${srcDevPath}/_*.less`, examplePath));
78+
watch("../src/**/*.wxml", copy(srcDevPath, examplePath, 'wxml'));
79+
watch("../src/**/*.wxs", copy(srcDevPath, examplePath, 'wxs'));
80+
watch("../src/**/*.json", copy(srcDevPath, examplePath, 'json'));
81+
watch("../src/**/*.js", copy(srcDevPath, examplePath, 'js'));
8282
}
8383
)
8484
};

dist/behaviors/scrollCenter.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/checkbox-group/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/input/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/radio-group/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/sticky-item/index.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
{
2-
"component": true,
3-
"usingComponents": {}
4-
}
1+
{"component":true,"usingComponents":{}}

dist/sticky-item/index.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<view class="l-sticky-item l-class">
2-
2+
33
<view class="l-sticky-item-header-wrapper l-header-wrapper-class" style="height:{{isFixedTop&&stickyItemWrapperHeight?stickyItemWrapperHeight+'px':'auto'}}"></view>
44
<view style="{{mode==='js'?(isFixedTop?'position:fixed;':''):''}} top:{{top}}rpx" class="l-sticky-item-header l-sticky-item-header{{mode==='js'?(isFixedTop?'-fixed l-header-sticky-class':''):(mode==='css'?'-sticky l-header-sticky-class':'')}} l-header-class">
55
<slot name="header"></slot>

dist/sticky/index.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
{
2-
"component": true,
3-
"usingComponents": {}
4-
}
1+
{"component":true,"usingComponents":{}}

dist/textarea/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/dist/behaviors/scrollCenter.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@ export default Behavior({
1212
});
1313
},
1414
queryScrollNode(res, currentIndex, type = 'width') {
15+
if(currentIndex<0) return;
1516
const currentRect = res[currentIndex];
16-
1717
this.getRect('.l-tabsscroll').then(_ => {
18+
if(!_) return console.error('找不到元素');
1819
const scrollWidth = _[type];
19-
2020
let transformDistance = res
2121
.slice(0, currentIndex)
2222
.reduce((prev, curr) => prev + curr[type], 0);
23-
2423
transformDistance += (currentRect[type] - scrollWidth) / 2;
2524

2625
if (type === 'width') {

0 commit comments

Comments
 (0)