KongQi Laravel Admin2.0 文档之Ui 生成修改

Ui生成修改

2020-09-11 已更新为blade模板设置,原来PHP控制已移除。换成了blade控制,更优化的代码编写。
定义在resources/views/admin/default/tpl/form/formSwitchTpl.blade.php

@switch($form_tpl_item['type'])
                    @case('text')
                    @case('type')
                    @case('email')
                    @case('number')
                    @case('date')
                    @case('datetime')
                    @include('admin.default.tpl.form.text',['form_item'=>$form_tpl_item])
                    @break
                    @case('select')
​
                    @include('admin.default.tpl.form.select',['form_item'=>$form_tpl_item])
                    @break
                    @case('textarea')
                    @include('admin.default.tpl.form.textarea',['form_item'=>$form_tpl_item])
                    @break
                    @case('radio')
                    @include('admin.default.tpl.form.radio',['form_item'=>$form_tpl_item])
                    @break
                    @case('checkbox')
                    @include('admin.default.tpl.form.checkbox',['form_item'=>$form_tpl_item])
                    @break
                    @case('editor')
                    @include('admin.default.tpl.form.textarea',['form_item'=>$form_tpl_item])
                    @break
                    @case('img')
                    @include('admin.default.tpl.form.img',['form_item'=>$form_tpl_item])
                    @break
                    @case('imgMore')
                    @include('admin.default.tpl.form.imgMore',['form_item'=>$form_tpl_item])
                    @break
                    @case('icon')
                    @include('admin.default.tpl.form.icon',['form_item'=>$form_tpl_item])
                    @break
                    @case('color')
                    @include('admin.default.tpl.form.color',['form_item'=>$form_tpl_item])
                    @break
                    @case('blade')
                    @include('admin.default.'.$form_tpl_item['blade_name'],['form_item'=>$form_tpl_item])
                    @break
                @endswitch

后台样式修改

public/static/admin/default/admin/css/app.less

1 人点赞

评论区 (0)

没有记录
支持 markdown,图片截图粘贴拖拽都可以自动上传。