Download the PHP package quansitech/qscmf-formitem-tengxun-cos without Composer
On this page you can find all versions of the php package quansitech/qscmf-formitem-tengxun-cos. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download quansitech/qscmf-formitem-tengxun-cos
More information about quansitech/qscmf-formitem-tengxun-cos
Files in quansitech/qscmf-formitem-tengxun-cos
Download quansitech/qscmf-formitem-tengxun-cos
More information about quansitech/qscmf-formitem-tengxun-cos
Files in quansitech/qscmf-formitem-tengxun-cos
Vendor quansitech
Package qscmf-formitem-tengxun-cos
Short Description qscmf form item cos
License MIT
Package qscmf-formitem-tengxun-cos
Short Description qscmf form item cos
License MIT
Please rate this library. Is it a good library?
Informations about the package qscmf-formitem-tengxun-cos
FormBuilder腾讯云cos上传组件
用法
1.安装及配置
1.1安装
1.2在env文件中加入
1.3在config.php中对应的上传类型更改配置
示例
2.使用
上传
默认采用image和file类型上传,可通过定义data-url参数来设置需要的类型
前端组件
在页面加载js文件
用法:
配置项说明:
配置项 | 类型 | 说明 | 默认值 |
---|---|---|---|
value | array | 初始化fileList, file 的属性有 name 文件名称, file_id 文件id, thumbUrl 缩略图, file_url 文件的地址 | [] |
listType | string | antd说明文档 | picture-card |
policyUrl | string | 获取cos上传策略地址 | /extends/TengxunCos/policyGet/type/image |
maxCount | number | antd说明文档 | 1 |
showUploadList | antd说明文档 | antd说明文档 | true |
onChange | callback | 文件上传完成触发change回调,返回当前文件列表,文件列表格式:[{file_id:1, file_url:'url'}] | |
crop | object | antd-img-crop说明文档 | false |
3.升级
升级至1.1.0
获取文件url
支持私有读bucket
在上传文件配置中加入 'security' => true,即可
All versions of qscmf-formitem-tengxun-cos with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2.0
tiderjian/think-core Version >=11.0
guzzlehttp/guzzle Version ^6.2
qcloud/cos-sdk-v5 Version >=2.0
tiderjian/think-core Version >=11.0
guzzlehttp/guzzle Version ^6.2
qcloud/cos-sdk-v5 Version >=2.0
The package quansitech/qscmf-formitem-tengxun-cos contains the following files
Loading the files please wait ....