-
Hello, my needs are:
when module_type ==banner
'id' => 'image', showBut the setting doesn't work. Can't this dependency across levels
// 模块内容 array( 'title' => '模块内容', 'icon' => 'fas fa-list', 'fields' => array( // 模块选择 array( 'id' => 'module_type', 'type' => 'radio', 'title' => '模块类型', 'options' => array( 'banner_card' => '卡片轮播图', 'banner_title' => '标题轮播图', 'banner' => '默认轮播图', 'gird_big' => '宫格大', 'gird_small' => '宫格小', 'columns_2' => '双栏', 'columns_1_2' => '左一右二', 'columns_2_1' => '左二右一', 'columns_1_4' => '左一右四', 'scrollx' => '横向滑动', 'gird_12' => '12栅格', 'search' => '搜索', 'offiaccount' => '公众号', 'floatbtn' => '悬浮按钮', ), 'inline' => 'true', ), // 内容列表 array( 'id' => 'module_lists', 'type' => 'group', 'title' => '内容列表', 'button_title' => '+ 添加内容', 'accordion_title_fix' => 'title', 'fields' => array( array( 'id' => 'list_sources', 'type' => 'radio', 'title' => '内容来源', 'options' => array( 'custom' => '自定义', 'system' => '系统数据', ), 'default' => 'default', 'inline' => 'true', ), array( 'id' => 'title', 'type' => 'text', 'title' => '标题/', ), array( 'id' => 'image', 'type' => 'media', 'title' => '图片', 'preview' => false, 'button_title' => '上传图片', 'library' => 'image', 'dependency' => array('module_type', '==', 'banner'), ), array( 'id' => 'subtitle', 'type' => 'text', 'title' => '副标题/简介', ), array( 'id' => 'col', 'type' => 'number', 'title' => 'Number', 'desc' => '12栅格布局,如果是1:1,那么就填写6(12➗2);如果1<img src="https://s.w.org/images/core/emoji/11/svg/32-20e3.svg" class="emoji" draggable="false" alt=""/>1', 'after' => '/12', 'default' => 6, ), array( 'id' => 'path', 'type' => 'text', 'title' => '页面路径', ), ), ), ), ),
CopyCopied!Posted 1 year ago # -
It has been solved. Thank you
Posted 1 year ago # -
Hi,
You're welcome, Sorry for delay, When you need any help again write to me
Regards, Codestar
Posted 1 year ago #