chore: fui-preview增加section标题栏功能

This commit is contained in:
Hefeng
2023-10-18 11:32:50 +08:00
parent 51c0d15008
commit e0f96cd5d1
2 changed files with 16 additions and 1 deletions

View File

@ -158,6 +158,10 @@ export default {
type: [Number, String],
default: 8,
},
isSection: {
type: Boolean,
default: false,
},
},
emits: ['click', 'valueClick'],
@ -253,7 +257,9 @@ export default {
:style="{ paddingLeft: `${padding}rpx`, paddingRight: `${padding}rpx` }"
>
<view class="fui-preview__item">
<fui-section v-if="isSection" :title="pvd[label] || ''" is-line line-width="8rpx" :padding="['0','0']" line-color="#0082ff" />
<text
v-else
class="fui-preview__label" style="color: #333;font-weight:600"
:style="{ color: labelColor, fontSize: `${hdLabelSize}rpx`, width: hdLabelWidth > 0 ? `${hdLabelWidth}rpx` : 'auto', marginRight: `${labelRight}rpx` }"
>