Skip to content

Commit 605c675

Browse files
aQingYun7insummer
authored andcommitted
feat:新增water-flow组件column-gap属性 (#312)
1 parent fcc0ebe commit 605c675

File tree

6 files changed

+16
-10
lines changed

6 files changed

+16
-10
lines changed

dist/water-flow/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ Component({
44
* 组件的属性列表
55
*/
66
properties: {
7-
7+
columnGap: {
8+
type: String,
9+
value: '20rpx'
10+
}
811
},
912

1013
/**

dist/water-flow/index.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<view class="l-class water-flow-container">
2-
<view class="water-column">
2+
<view class="water-column" style="margin-right:{{columnGap}}">
33
<view id="left">
44
<block wx:for="{{leftData}}" wx:key="{{index}}">
55
<l-water-flow-item data="{{item}}" />

examples/dist/water-flow/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ Component({
44
* 组件的属性列表
55
*/
66
properties: {
7-
columnGap:{
8-
type:String,
9-
value:'20rpx'
10-
}
7+
columnGap: {
8+
type: String,
9+
value: '20rpx'
10+
}
1111
},
1212

1313
/**
@@ -31,7 +31,7 @@ Component({
3131
wx.lin = wx.lin || {}
3232
wx.lin.renderWaterFlow = (data = [], success) => {
3333
if (Object.prototype.toString.call(data) !== '[object Array]') {
34-
console.error("[masonry]参数类型错误,渲染失败");
34+
console.error("[data]参数类型错误,渲染失败");
3535
return false;
3636
}
3737
this._select(data).then(() => {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.water-flow-container{display:flex;width:100%;box-sizing:border-box}.water-column{flex:1;transition: all .5s ease-in-out;}
1+
.water-flow-container{display:flex;width:100%;box-sizing:border-box}.water-column{flex:1}

src/water-flow/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ Component({
44
* 组件的属性列表
55
*/
66
properties: {
7-
7+
columnGap: {
8+
type: String,
9+
value: '20rpx'
10+
}
811
},
912

1013
/**

src/water-flow/index.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<view class="l-class water-flow-container">
2-
<view class="water-column">
2+
<view class="water-column" style="margin-right:{{columnGap}}">
33
<view id="left">
44
<block wx:for="{{leftData}}" wx:key="{{index}}">
55
<l-water-flow-item data="{{item}}" />

0 commit comments

Comments
 (0)