mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
## Summary we need to add root div to avoid warning > Extraneous non-props attributes (data-v-inspector) were passed to > component but could not be automatically inherited because component renders fragment or text or teleport root > nodes. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6650-fix-warning-log-2a86d73d365081a89c5af0c60cdaa618) by [Unito](https://www.unito.io)
32 lines
784 B
Vue
32 lines
784 B
Vue
<template>
|
|
<div class="space-y-4">
|
|
<label>{{ $t('load3d.lightIntensity') }}</label>
|
|
|
|
<Slider
|
|
v-model="lightIntensity"
|
|
class="w-full"
|
|
:min="lightIntensityMinimum"
|
|
:max="lightIntensityMaximum"
|
|
:step="lightAdjustmentIncrement"
|
|
/>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import Slider from 'primevue/slider'
|
|
|
|
import { useSettingStore } from '@/platform/settings/settingStore'
|
|
|
|
const lightIntensity = defineModel<number>('lightIntensity')
|
|
|
|
const lightIntensityMaximum = useSettingStore().get(
|
|
'Comfy.Load3D.LightIntensityMaximum'
|
|
)
|
|
const lightIntensityMinimum = useSettingStore().get(
|
|
'Comfy.Load3D.LightIntensityMinimum'
|
|
)
|
|
const lightAdjustmentIncrement = useSettingStore().get(
|
|
'Comfy.Load3D.LightAdjustmentIncrement'
|
|
)
|
|
</script>
|