跳转到内容

不同的选项联动触发不同的表单项

如下图所示。选择不同的单项项,就显示不同的表单项

$this->form_items = [
['text','name','链接名称'],
['text','link','链接网址'],
['radio','type','链接类型','',['1'=>'图片链接','0'=>'文字链接'],'img'],
['image','image','LOGO'],
['textarea','image_about','LOGO描述'],
['textarea','name_about','文字描述'],
['radio','status','状态','',['隐藏','显示'],1],
['text','sort','排序值'],
];
//触动显示,这里就是关键
$this->tab_ext['trigger'] = [
['type','1','image,image_about'],
['type','0','name_about'],
];

img

12

大家可以下载友情链接安装研究学习

https://x1.php168.com/appstore/content/show/id/3.html