chore: 增加了头部对齐方式功能
This commit is contained in:
@ -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>
|
||||||
|
Reference in New Issue
Block a user