File tree Expand file tree Collapse file tree 6 files changed +16
-10
lines changed Expand file tree Collapse file tree 6 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,10 @@ Component({
4
4
* 组件的属性列表
5
5
*/
6
6
properties : {
7
-
7
+ columnGap : {
8
+ type : String ,
9
+ value : '20rpx'
10
+ }
8
11
} ,
9
12
10
13
/**
Original file line number Diff line number Diff line change 1
1
<view class="l-class water-flow-container">
2
- <view class="water-column">
2
+ <view class="water-column" style="margin-right:{{columnGap}}" >
3
3
<view id="left">
4
4
<block wx:for="{{leftData}}" wx:key="{{index}}">
5
5
<l-water-flow-item data="{{item}}" />
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ Component({
4
4
* 组件的属性列表
5
5
*/
6
6
properties : {
7
- columnGap :{
8
- type :String ,
9
- value :'20rpx'
10
- }
7
+ columnGap : {
8
+ type : String ,
9
+ value : '20rpx'
10
+ }
11
11
} ,
12
12
13
13
/**
@@ -31,7 +31,7 @@ Component({
31
31
wx . lin = wx . lin || { }
32
32
wx . lin . renderWaterFlow = ( data = [ ] , success ) => {
33
33
if ( Object . prototype . toString . call ( data ) !== '[object Array]' ) {
34
- console . error ( "[masonry ]参数类型错误,渲染失败" ) ;
34
+ console . error ( "[data ]参数类型错误,渲染失败" ) ;
35
35
return false ;
36
36
}
37
37
this . _select ( data ) . then ( ( ) => {
Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change @@ -4,7 +4,10 @@ Component({
4
4
* 组件的属性列表
5
5
*/
6
6
properties : {
7
-
7
+ columnGap : {
8
+ type : String ,
9
+ value : '20rpx'
10
+ }
8
11
} ,
9
12
10
13
/**
Original file line number Diff line number Diff line change 1
1
<view class="l-class water-flow-container">
2
- <view class="water-column">
2
+ <view class="water-column" style="margin-right:{{columnGap}}" >
3
3
<view id="left">
4
4
<block wx:for="{{leftData}}" wx:key="{{index}}">
5
5
<l-water-flow-item data="{{item}}" />
You can’t perform that action at this time.
0 commit comments