* [task#133321 doing 0.1h 1.2h] modify readonly value of thinktableinput.
This commit is contained in:
@@ -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))}
|
||||
@@ -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 ++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user