= $form->field($model, 'content')->textInput(); ?>
= $form->field($model, 'size')->textInput(); ?>
= $form->field($model, 'margin')->textInput(); ?>
= $form->field($model, 'error_correction_level')->radioList([
'low' => '低',
'medium' => '中等',
'quartile' => '高',
'high' => '超高',
]); ?>
= $form->field($model, 'foreground')->widget(kartik\color\ColorInput::class, [
'options' => [
'placeholder' => '请选择颜色',
'readonly' => true
],
]);?>
= $form->field($model, 'background')->widget(kartik\color\ColorInput::class, [
'options' => [
'placeholder' => '请选择颜色',
'readonly' => true
],
]);?>
= $form->field($model, 'logo')->widget('common\widgets\webuploader\Files', [
'themeConfig' => [
'select' => false,// 选择在线图片
],
'config' => [
'pick' => [
'multiple' => false,
],
'accept' => [
'extensions' => ['png', 'jpeg', 'jpg'],
],
'formData' => [
'drive' => 'local',
],
'fileSingleSizeLimit' => 1024 * 500,// 图片大小限制
'independentUrl' => true,
]
])->hint('只支持 png/jpeg/jpg 格式,大小不超过为500K'); ?>
= $form->field($model, 'logo_size')->textInput(); ?>
= $form->field($model, 'label')->textInput(); ?>
= $form->field($model, 'label_size')->textInput(); ?>
= $form->field($model, 'label_location')->radioList([
'left' => '左边',
'center' => '居中',
'right' => '右边',
]); ?>