chore: fui-preview 增加value值的 paddingTop、paddingBottom属性
This commit is contained in:
@ -198,6 +198,8 @@ export default {
|
||||
this.buttons = this.fields.buttons || 'buttons'
|
||||
this.text = this.fields.text || 'text'
|
||||
this.color = this.fields.color || 'color'
|
||||
this.paddingTop = this.fields.paddingTop || 'paddingTop'
|
||||
this.paddingBottom = this.fields.paddingTop || 'paddingBottom'
|
||||
}
|
||||
},
|
||||
initData(val) {
|
||||
@ -271,7 +273,7 @@ export default {
|
||||
v-if="pvd[list] && pvd[list].length > 0" class="fui-preview__bd"
|
||||
:style="{ paddingLeft: `${padding}rpx`, paddingRight: `${padding}rpx` }"
|
||||
>
|
||||
<view v-for="(item, index) in pvd[list]" :key="index" class="fui-preview__item">
|
||||
<view v-for="(item, index) in pvd[list]" :key="index" class="fui-preview__item" :style="{ paddingTop: `${item[paddingTop] || 8}rpx`,paddingBottom: `${item[paddingBottom] || 8}rpx` }">
|
||||
<text
|
||||
class="fui-preview__label"
|
||||
:class="[!labelColor && !item[lColor] ? 'fui-preview__gray' : '', `fui-preview__label-${labelAlign}`]"
|
||||
|
Reference in New Issue
Block a user