chore: fui-preview增加section标题栏功能
This commit is contained in:
@ -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` }"
|
||||
>
|
||||
|
Reference in New Issue
Block a user