+ [task#135043 0.2h 2h] add preview content for the thinkBcg widget.
This commit is contained in:
@@ -16,6 +16,23 @@ class thinkBcg extends thinkModel
|
||||
$app->loadLang('thinkwizard');
|
||||
list($mode, $wizard, $previewKey) = $this->prop(array('mode', 'wizard', 'previewKey'));
|
||||
|
||||
if($mode == 'preview')
|
||||
{
|
||||
$config = $wizard->config;
|
||||
$xAxisName = $config['configureDimension']['xAxisName'];
|
||||
$yAxisName = $config['configureDimension']['yAxisName'];
|
||||
return div
|
||||
(
|
||||
setClass('col items-center'),
|
||||
div
|
||||
(
|
||||
setClass('flex gap-1 mt-4'),
|
||||
div(setClass('m-auto text-gray-600'), setStyle(array('writing-mode' => 'vertical-rl')), $lang->thinkwizard->dimension->yAxisNameList[$yAxisName]),
|
||||
img(set::src("data/thinmory/wizardsetting/bcg/blockGroup$previewKey.svg")),
|
||||
),
|
||||
div(setClass('pl-6 text-center text-gray-600'), $lang->thinkwizard->dimension->xAxisNameList[$xAxisName]),
|
||||
);
|
||||
}
|
||||
return div();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user