* [task#120474] fix issues of widget.

This commit is contained in:
wangzemei
2024-06-17 10:05:51 +08:00
committed by 刘刚
parent 04b845c966
commit aa494ae97c
4 changed files with 9 additions and 3 deletions
+3 -1
View File
@@ -20,7 +20,9 @@ class thinkRadio extends thinkQuestion
{
global $lang;
$detailWg = parent::buildDetail();
$step = $this->prop('step');
list($step, $mode) = $this->prop(array('step', 'mode'));
if($mode != 'detail') return array();
$answer = $step->answer;
$result = isset($answer->result) ? $answer->result : array();
if(!empty($step->options->fields)) $step->options->fields = is_string($step->options->fields) ? explode(', ', $step->options->fields) : array_values((array)$step->options->fields);
+1
View File
@@ -5,5 +5,6 @@
.think-result-content .bg-think-blue {background-color: rgba(34, 148, 251, var(--tw-bg-opacity));}
.think-result-content .text-think-blue {color: #2294FB;}
.think-result-content .border-think-blue {border-color: #2294FB;}
.think-result-content .bg-think-yellow {background-color: rgba(250, 174, 26, var(--tw-bg-opacity));}
.think-result-content .text-think-yellow {color: #FAAE1A;}
+2 -1
View File
@@ -37,8 +37,9 @@ class thinkStepBase extends wg
global $lang, $app;
$app->loadLang('thinkrun');
$app->loadLang('thinkstep');
list($step, $mode) = $this->prop(array('step', 'mode'));
if($mode != 'detail') return array();
$step = $this->prop('step');
$options = $step->options;
if($options)
{
+3 -1
View File
@@ -31,7 +31,9 @@ class thinkTableInput extends thinkQuestion
{
global $lang;
$detailWg = parent::buildDetail();
list($step, $fields, $supportAdd, $canAddRows) = $this->prop(array('step', 'fields', 'supportAdd', 'canAddRows'));
list($step, $fields, $supportAdd, $canAddRows, $mode) = $this->prop(array('step', 'fields', 'supportAdd', 'canAddRows', 'mode'));
if($mode != 'detail') return array();
if($step)
{
$fields = $step->options->fields;