* zin: modify the trigger of textarea of thinkchecklist wg.

This commit is contained in:
wangzemei
2024-05-08 16:03:48 +08:00
parent 47dac3a04f
commit 6b22863bde
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
.think-check-list .item-control.is-checked {border: 1px solid var(--color-primary-500); color: var(--color-primary-500);}
.think-check-list .item-control:hover {box-shadow: 0px 0.25rem 0.5rem 0px rgba(var(--color-primary-500-rgb), .3); border: 1px solid var(--color-primary-500);}
.think-check-list .item-control textarea {background-color: #fff;}
.think-check-list .checkbox-primary {--checkbox-size: 16px;}
.think-check-list .checkbox-primary {--checkbox-size: 16px; width: 16px;}
.think-check-list .checkbox-primary>input[type=checkbox]:checked+label:after {left: 1px; --tw-content: "\e5ca"; color: var(--color-primary-500); font-weight: 600;}
.think-check-list .checkbox-primary.checked>label:before, .think-check-list .checkbox-primary>input[type=checkbox]:checked+label:before {background-color: unset; border-color: var(--color-primary-500); color: var(--color-primary-500);}
.think-check-list .checkbox-primary.checked>label, .think-check-list .radio-primary>label {font-family: ZentaoIcon !important;}
+1
View File
@@ -23,6 +23,7 @@ window.toggleChecked = function()
if($(this).hasClass('has-input'))
{
$(this).find('textarea').prop('disabled', !$(this).find('input').prop('checked'));
if($(this).find('input').prop('checked')) $(this).find('textarea').trigger('focus');
}
else
{