Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some splits #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions oh3-widgetHeating.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
uid: widget_HeatingCSS_2.0.0
uid: widget_HeatingCSS_2.0.1
tags: []
props:
parameters:
Expand Down Expand Up @@ -939,10 +939,10 @@ slots:
default:
- component: Label
config:
text: =items[props.humItem].state
text: =items[props.humItem].state.split(' ')[0]
- component: Label
config:
text: =items[props.humItem].displayState.split(' ')[1]
text: =items[props.humItem].state.split(' ')[1]
style:
font-size: "=props.fontSizeCenter ? 'calc(' + props.fontSizeCenter + ' * 0.2 )' : '0.6em'"
vertical-align: top
Expand All @@ -969,10 +969,10 @@ slots:
default:
- component: Label
config:
text: =Number(items[props.currentPointItem].state).toFixed(1)
text: =Number(items[props.currentPointItem].state.split(' ')[0]).toFixed(1)
- component: Label
config:
text: "=props.unit ? props.unit : items[props.currentPointItem].displayState.split(' ')[1]"
text: "=props.unit ? props.unit : items[props.currentPointItem].state.split(' ')[1]"
style:
font-size: "=props.fontSizeCenter ? 'calc(' + props.fontSizeCenter + ' * 0.2 )' : '0.6em'"
vertical-align: top
Expand Down Expand Up @@ -1162,4 +1162,4 @@ slots:
default:
- component: Label
config:
text: =items[props["extensionItem" + loop.i]].displayState
text: =items[props["extensionItem" + loop.i]].state