chore: 增加了头部对齐方式功能
This commit is contained in:
@ -90,6 +90,10 @@ export default {
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
hdAlign: {
|
||||
type: String,
|
||||
default: 'right',
|
||||
},
|
||||
// #endif
|
||||
bdSize: {
|
||||
type: [Number, String],
|
||||
@ -241,8 +245,9 @@ export default {
|
||||
{{ pvd[label] || '' }}
|
||||
</text>
|
||||
<text
|
||||
style="text-align: right;"
|
||||
class="fui-preview__value-hd" :class="{ 'fui-preview__color': !hdValColor }"
|
||||
:style="{ color: hdValColor, fontSize: `${hdValSize}rpx`, textAlign: bdAlign }"
|
||||
:style="{ color: hdValColor, fontSize: `${hdValSize}rpx`, textAlign: hdAlign }"
|
||||
>
|
||||
{{ pvd[value] || '' }}
|
||||
</text>
|
||||
|
Reference in New Issue
Block a user