* [task#120474] fix issues of widget.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user