mano-code / filesystem
支持 本地 OSS COS 七牛云,文件上传、线上预览、程序调用、等功能。
1.0.6
2024-05-11 08:37 UTC
Requires
- php: >=8.0
- iidestiny/laravel-filesystem-oss: 3.3
- overtrue/laravel-filesystem-cos: 3.5.0
- slowlyo/owl-admin: *
- slowlyo/owl-dict: *
- zgldh/qiniu-laravel-storage: ^9.0
README
扩展使用Laravel FileSystem 作为存储底层驱动
1. 表单使用
return $this->baseForm()->body([ amis()->HiddenControl('id','ID','local'), ManoImageControl('goods_image','商品主图')->required(), // local为默认存储驱动 也可以配置七牛 或者腾讯OCS 或者阿里云OSS ]);
2. 富文本图片存储
return $this->baseForm()->body([ amis()->HiddenControl('id','ID'), ManoRichTextControl('content','商品详情','local')->required(), // local为默认存储驱动 也可以配置七牛 或者腾讯OCS 或者阿里云OSS ]);
列表展示图片
$crud = $this->baseCRUD() ->filterTogglable(false) ->headerToolbar([ $this->createButton(true), ...$this->baseHeaderToolBar() ]) ->bulkActions('') ->columns([ // ......... amis()->TableColumn('goods_image')->type('image') // ......... ]);