chore: 增加了头部对齐方式功能

This commit is contained in:
Hefeng
2023-08-24 20:08:57 +08:00
parent 6d441215a0
commit 92b6e7ce0b

View File

@ -90,6 +90,10 @@ export default {
type: String, type: String,
default: '', default: '',
}, },
hdAlign: {
type: String,
default: 'right',
},
// #endif // #endif
bdSize: { bdSize: {
type: [Number, String], type: [Number, String],
@ -241,8 +245,9 @@ export default {
{{ pvd[label] || '' }} {{ pvd[label] || '' }}
</text> </text>
<text <text
style="text-align: right;"
class="fui-preview__value-hd" :class="{ 'fui-preview__color': !hdValColor }" 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] || '' }} {{ pvd[value] || '' }}
</text> </text>