* [task#127432] modify diabled style of thinkbasecheckbox and thinkmulticolumn.

This commit is contained in:
Zhangyu
2024-09-07 17:42:16 +08:00
committed by 刘刚
parent 42919827d1
commit 3314ee7a67
3 changed files with 5 additions and 2 deletions
+2
View File
@@ -9,3 +9,5 @@
.think-check-list .checkbox-primary.checked>label, .think-check-list .radio-primary>label {font-family: ZentaoIcon !important; padding-left: 14px;}
.think-check-list .radio-primary>label:before, .think-check-list .radio-primary.checked>label:before, .think-check-list .radio-primary>input[type=radio]:checked+label:before {display: none;}
.think-check-list .radio-primary>label:after {--tw-content: "\e5ca"; color: var(--color-primary-500); font-size: 14px; background-color: unset; top: -2px; left: 2px; font-weight: 600;}
.think-check-list[disabled] .item-control {background-color: rgba(var(--color-gray-100-rgb),var(--tw-bg-opacity)); border-color: rgba(var(--color-gray-300-rgb),var(--tw-border-opacity)); --tw-bg-opacity: .6; color: rgba(var(--color-black-rgb),var(--tw-text-opacity));}
.think-check-list[disabled] .item-control.is-checked {background-color: rgba(var(--color-gray-300-rgb),var(--tw-bg-opacity)); --tw-bg-opacity: .4;}
+2 -2
View File
@@ -64,7 +64,7 @@ class thinkBaseCheckbox extends wg
{
return div
(
setClass('item-control has-input w-full py-2 px-3 flex gap-3 items-center justify-between border cursor-pointer ' . $itemClass),
setClass('item-control has-input w-full py-2 px-3 flex gap-3 items-center justify-between border cursor-pointer rounded ' . $itemClass),
setData('type', $this->prop('type')),
!$disabled ? on::click('toggleChecked') : null,
div
@@ -98,7 +98,7 @@ class thinkBaseCheckbox extends wg
(
setData('type', $this->prop('type')),
!$disabled ? on::click('toggleChecked') : null,
setClass('item-control w-full py-2 px-3 flex gap-3 items-center justify-between border cursor-pointer ' . $itemClass),
setClass('item-control w-full py-2 px-3 flex gap-3 items-center justify-between border cursor-pointer rounded ' . $itemClass),
div(setClass('text-md flex-1 break-all'), $text),
new checkbox
(
+1
View File
@@ -6,3 +6,4 @@
.think-form-batch .form-batch-head[data-name="ACTIONS"], .think-form-batch .form-batch-row-actions {width: 3.325rem; position: sticky; right: 0; background: var(--color-canvas);}
.think-form-batch .form-batch-head[data-name="ACTIONS"] .form-label {display: none;}
.think-form-batch .form-batch-row-actions .btn {color: var(--color-primary-500);}
.think-form-batch .form-control[disabled] {background-color: rgba(var(--color-gray-100-rgb),var(--tw-bg-opacity)); --tw-bg-opacity: .4; color:rgba(var(--color-gray-700-rgb),var(--tw-bg-opacity))}