小程序源码
This commit is contained in:
19
source/wx/xzs-student/component/iView/divider/index.wxml
Normal file
19
source/wx/xzs-student/component/iView/divider/index.wxml
Normal file
@@ -0,0 +1,19 @@
|
||||
<view class="i-divider i-class" style="{{parse.getStyle(color,size,height)}}">
|
||||
<view class="i-divider-content" wx:if="{{content !== ''}}">
|
||||
{{content}}
|
||||
</view>
|
||||
<view class="i-divider-content" wx:else>
|
||||
<slot></slot>
|
||||
</view>
|
||||
<view class="i-divider-line" style="background:{{lineColor}}"></view>
|
||||
</view>
|
||||
<wxs module="parse">
|
||||
module.exports = {
|
||||
getStyle : function(color,size,height){
|
||||
var color = 'color:' + color +';';
|
||||
var size = 'font-size:' + size + 'px;';
|
||||
var height = 'height:' + height+'px;'
|
||||
return color + size + height;
|
||||
}
|
||||
}
|
||||
</wxs>
|
||||
Reference in New Issue
Block a user