Commit 603b624b authored by 莫坚培's avatar 莫坚培

fix: 修改数值显示的默认颜色bug

parent b7b5ca5b
......@@ -459,7 +459,7 @@ async function initCanvas() {
</span>
</div>`
renderDataText(index)
// renderDataText(index)
} else if (item.ControlType === 'statictextblock') { //静态文本
let align = ''
......@@ -1575,10 +1575,10 @@ function loopRenderDatatextblock(poolData, resData, label) {
if (label === 'datatextblock') {
resDataValue = resDataValue.toFixed(Number(dight))
$(`#datatextblock${poolData.dataPoolMapIndex}`).text(resDataValue)
$(`#datatextblock${poolData.dataPoolMapIndex}`).css('color', '#000')
$(`#datatextblock${poolData.dataPoolMapIndex}`).css('color', poolData.PropertyList?.Color || '#000')
} else {
$(`#rwtextbox-text${poolData.dataPoolMapIndex}`).val(resDataValue)
$(`#rwtextbox-text${poolData.dataPoolMapIndex}`).css('color', '#000')
$(`#rwtextbox-text${poolData.dataPoolMapIndex}`).css('color', poolData.PropertyList?.Color || '#000')
}
if(!['number', 'string'].includes(typeof resDataValue)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment