Skip to content

Commit 9779135

Browse files
committed
fix: solved prettier issue
1 parent 04f5523 commit 9779135

2 files changed

Lines changed: 30 additions & 19 deletions

File tree

frontend/src2/charts/components/NumberChart.vue

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ const cards = computed(() => {
6969
suffix,
7070
color,
7171
label_bold,
72-
label_italic,
73-
label_color,
72+
label_italic,
73+
label_color,
7474
label_size,
7575
}
7676
})
@@ -124,12 +124,13 @@ function onDoubleClick(measure_name: string) {
124124
@dblclick="onDoubleClick(measure_name)"
125125
>
126126
<div class="flex w-full flex-col">
127-
<span class="truncate text-sm font-medium"
127+
<span
128+
class="truncate text-sm font-medium"
128129
:style="{
129-
fontWeight: label_bold ? 'bold' : '500',
130-
fontStyle: label_italic ? 'italic' : 'normal',
131-
color: label_color || undefined,
132-
fontSize: label_size ? `${label_size}px` : undefined,
130+
fontWeight: label_bold ? 'bold' : '500',
131+
fontStyle: label_italic ? 'italic' : 'normal',
132+
color: label_color || undefined,
133+
fontSize: label_size ? `${label_size}px` : undefined,
133134
}"
134135
>
135136
{{ measure_name }}
@@ -149,8 +150,8 @@ function onDoubleClick(measure_name: string) {
149150
? 'text-red-500'
150151
: 'text-green-500'
151152
: delta >= 0
152-
? 'text-green-500'
153-
: 'text-red-500',
153+
? 'text-green-500'
154+
: 'text-red-500',
154155
]"
155156
>
156157
<span class="">

frontend/src2/charts/components/NumberChartConfigForm.vue

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,11 @@ function setNumberOption(index: number, option: keyof NumberColumnOptions, value
109109
</InlineFormControlLabel>
110110
<InlineFormControlLabel label="Color">
111111
<ColorInput
112-
:model-value="getNumberOption(index, 'color')as string | undefined"
112+
:model-value="
113+
getNumberOption(index, 'color') as
114+
| string
115+
| undefined
116+
"
113117
@update:model-value="
114118
setNumberOption(index, 'color', $event)
115119
"
@@ -118,21 +122,27 @@ function setNumberOption(index: number, option: keyof NumberColumnOptions, value
118122
</InlineFormControlLabel>
119123
<InlineFormControlLabel label="Label Color">
120124
<ColorInput
121-
:model-value="getNumberOption(index, 'label_color')as string| undefined"
125+
:model-value="
126+
getNumberOption(index, 'label_color') as
127+
| string
128+
| undefined
129+
"
122130
@update:model-value="
123131
setNumberOption(index, 'label_color', $event)
124132
"
125133
placement="left-start"
126134
/>
127135
</InlineFormControlLabel>
128136
<InlineFormControlLabel label="Label Size">
129-
<FormControl
130-
type="number"
131-
autocomplete="off"
132-
:modelValue="getNumberOption(index, 'label_size')"
133-
@update:modelValue="setNumberOption(index, 'label_size', Number($event))"
134-
placeholder="14"
135-
/>
137+
<FormControl
138+
type="number"
139+
autocomplete="off"
140+
:modelValue="getNumberOption(index, 'label_size')"
141+
@update:modelValue="
142+
setNumberOption(index, 'label_size', Number($event))
143+
"
144+
placeholder="14"
145+
/>
136146
</InlineFormControlLabel>
137147
<Toggle
138148
label="Bold Label"
@@ -210,4 +220,4 @@ function setNumberOption(index: number, option: keyof NumberColumnOptions, value
210220
</InlineFormControlLabel>
211221
</div>
212222
</CollapsibleSection>
213-
</template>
223+
</template>

0 commit comments

Comments
 (0)