* [task#133321 doing 0.1h 1.2h] modify readonly value of thinktableinput.

This commit is contained in:
zhangyu
2024-11-28 16:50:36 +08:00
committed by 孙浩
parent 82375e6759
commit 45d4b6f256
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
.form-horz .form-group {align-items: center;}
.result-width {width: calc(100% - 148px);}
.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))}
.form-control[readonly] {cursor: not-allowed; 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))}
+1 -2
View File
@@ -86,7 +86,7 @@ class thinkTableInput extends thinkQuestion
'min' => 1,
'max' => 100,
'value' => $value,
'disabled' => ($value && !$canConfigureRatio),
'readonly' => ($value && !$canConfigureRatio),
'placeholder' => $lang->thinkrun->pleaseInput
)),
on::input('changePercentInput')
@@ -109,7 +109,6 @@ class thinkTableInput extends thinkQuestion
) : null,
)
),
(!empty($inputType) && $value && !$canConfigureRatio) ? formHidden('result[' . $index . ']', $value) : null
);
$index ++;
}