mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-17 14:55:23 +00:00
refac
This commit is contained in:
parent
dd6b808e69
commit
f2c56fc839
1 changed files with 3 additions and 1 deletions
|
|
@ -6,6 +6,8 @@
|
||||||
export let indeterminate = false;
|
export let indeterminate = false;
|
||||||
export let disabled = false;
|
export let disabled = false;
|
||||||
|
|
||||||
|
export let disabledClassName = 'opacity-50 cursor-not-allowed';
|
||||||
|
|
||||||
let _state = 'unchecked';
|
let _state = 'unchecked';
|
||||||
|
|
||||||
$: _state = state;
|
$: _state = state;
|
||||||
|
|
@ -16,7 +18,7 @@
|
||||||
'unchecked'
|
'unchecked'
|
||||||
? 'bg-black outline-black '
|
? 'bg-black outline-black '
|
||||||
: 'hover:outline-gray-500 hover:bg-gray-50 dark:hover:bg-gray-800'} text-white transition-all rounded-sm inline-block w-3.5 h-3.5 relative {disabled
|
: 'hover:outline-gray-500 hover:bg-gray-50 dark:hover:bg-gray-800'} text-white transition-all rounded-sm inline-block w-3.5 h-3.5 relative {disabled
|
||||||
? 'opacity-50 cursor-not-allowed'
|
? disabledClassName
|
||||||
: ''}"
|
: ''}"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
if (disabled) return;
|
if (disabled) return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue