mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +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 disabled = false;
|
||||
|
||||
export let disabledClassName = 'opacity-50 cursor-not-allowed';
|
||||
|
||||
let _state = 'unchecked';
|
||||
|
||||
$: _state = state;
|
||||
|
|
@ -16,7 +18,7 @@
|
|||
'unchecked'
|
||||
? '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
|
||||
? 'opacity-50 cursor-not-allowed'
|
||||
? disabledClassName
|
||||
: ''}"
|
||||
on:click={() => {
|
||||
if (disabled) return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue