...
 
Commits (3)
    https://gitcode.net/vk-uni/vk-uview-ui/-/commit/2d6b6a4f50045e7fc44858a4e037acb2e5035aae 1 2023-06-02T14:24:01+08:00 VK 370725567@qq.com https://gitcode.net/vk-uni/vk-uview-ui/-/commit/ec66d6e6043ff3463007c9c428978ca7128df9ce Merge branch 'master' of https://gitee.com/vk-uni/vk-uview-ui into master 2023-06-02T14:24:05+08:00 VK 370725567@qq.com https://gitcode.net/vk-uni/vk-uview-ui/-/commit/9d378760ccaf18ecb2885340e4d2c059fee65d40 u-divider 新增 paddingBottom 属性 下内边距(如果本组件下面没有其他元素了,则用marginBottom会无效,需要用paddin... 2023-06-02T14:44:09+08:00 VK 370725567@qq.com
......@@ -30,7 +30,7 @@
@error="error"
@opensetting="opensetting"
@launchapp="launchapp"
@chooseavatar="chooseavatar"
@chooseavatar="chooseavatar"
:style="[customStyle, {
overflow: ripple ? 'hidden' : 'visible'
}]"
......
......@@ -3,7 +3,8 @@
height: height == 'auto' ? 'auto' : height + 'rpx',
backgroundColor: bgColor,
marginBottom: marginBottom + 'rpx',
marginTop: marginTop + 'rpx'
marginTop: marginTop + 'rpx',
paddingBottom: paddingBottom + 'rpx',
}" @tap="click">
<view class="u-divider-line" :class="[type ? 'u-divider-line--bordercolor--' + type : '']" :style="[lineStyle]"></view>
<view v-if="useSlot" class="u-divider-text" :style="{
......@@ -80,6 +81,11 @@ export default {
type: [String, Number],
default: 0
},
// 下内边距(如果本组件下面没有其他元素了,则用marginBottom会无效,需要用paddingBottom)
paddingBottom: {
type: [String, Number],
default: 0
},
// 是否使用slot传入内容,如果不用slot传入内容,先的中间就不会有空隙
useSlot: {
type: Boolean,
......