* zin: modify the thinkStepDetail of thinknode wg.

This commit is contained in:
wangzemei
2024-04-19 15:40:10 +08:00
parent b7e302a2fc
commit bdf9bc0140
+3 -3
View File
@@ -20,20 +20,20 @@ class thinkNode extends wg
set::type($item->type),
set::title($item->title),
set::desc($item->desc),
set::item($item),
);
}
else
{
$item->options = null;
if($item == 'node') return thinkNode(set($this->getRestProps()));
if($type == 'transition') return thinkTransition(set($this->getRestProps()));
if($type == 'question')
if($item->type == 'question')
{
$questionType = zget($item, 'questionType', 'radio');
if($questionType == 'radio') return thinkRadio(set($this->getRestProps()));
if($questionType == 'checkbox') return thinkCheckbox(set($this->getRestProps()));
}
return thinkStep(set($this->getRestProps()));
}
}