组件用法说明 1.4 KB

1234567891011121314151617181920
  1. 1.图片上传
  2. {:widget_view('common/upimg',['name'=>'img(表单名)','multi'=>0(0=单张 1=多张),'val'=>'默认值以逗号分隔','type'=>'0','max'=>'0最多文件数')}
  3. 2.百度富文本编辑器
  4. {:widget_view('common/ueditor',['name'=>'content(表单名)','height'=>300(高度),'val'=>'默认值')}
  5. 3.多选且可筛选
  6. {:widget_view('common/multiselect',['name'=>'labels(表单名)','lists' => $labellist(选项数组), 'val' => [](默认值)])}
  7. 4.多级联选择器(具体几级根据传的数组)
  8. {:widget_view('common/cascader',['name'=>'labels(表单名)','lists' => $labellist(选项数组), 'val' => [](默认值)])}
  9. 5.高德地图标注组件
  10. {:widget_view('common/gdmap',['name'=>'labels(表单名)', 'val' => 'lat-lng'(默认值)])}
  11. 6.选择月份组件
  12. {:widget_view('common/month',['name'=>'labels(表单名)', 'val' => ''(默认值)])}
  13. 7.时间范围组件
  14. {:widget_view('common/timerangepicker',['name'=>'labels(表单名)', 'val' => ''(默认值)])}
  15. 8.选择日期组件
  16. {:widget_view('common/datepicker',['name'=>'labels(表单名)', 'val' => ''(默认值)])}
  17. 9.选择日期h:i组件
  18. {:widget_view('common/datehipicker',['name'=>'labels(表单名)', 'val' => ''(默认值)])}
  19. 10.选择分组用户
  20. {:widget_view('common/user-group-select',['name'=>'labels(表单名)','multi'=>0(0多选1单选), 'val' => ''(默认值:多选为数组,单选为字符串),'msg']=>'注释说明')}