@aliretail/react-material-mng

1.1.1 • Public • Published

material-mng

素材管理页面大组件

API

参数名 说明 必填 类型 默认值 备注
apis 接口集合 Y object
showTabs 显示 tab Y array ['img', 'icon', 'video', 'other']
defaultChoose 默认选中 tab Y string 例如'img'
bizName 业务场景 Y string 例如'crm'
bizType 业务类型 Y string 例如'articleMaterial'
sideDirLength 左侧目录名长度 N number 10
permission 按钮权限 N object 默认可操作

apis 字段

参数名 说明 必填 类型 默认值 备注
createSidebar 创建左侧目录的 api 的 url Y string
deleteSidebar 删除左侧目录的 api 的 url Y string
changeSidebar 修改左侧目录的 api 的 url Y string
querySidebar 查询左侧目录的 api 的 url Y string
queryMaterial 查询素材的 api 的 url Y string
changeMaterial 修改素材的 api 的 url Y string
deleteMaterial 删除素材的 api 的 url Y string
createMaterial 上传素材的 api 的 url Y string
transferMaterial 移动素材到其他目录的 api 的 url Y string
getOSSInfo 获取上传 oss 信息的 api 的 url Y string

permission 字段

参数名 说明 必填 类型 默认值 备注
delPermission 素材删除权限 N boolean 会员 720 素材管理添加删除按钮权限控制

参数说明

bizType 与 uploadType、uploadScene 的对应关系如下。 其中,xls 代表 excel 文件,image 代表图片,video 代表视频,all 代表全部类型

[
  {
    "uploadScene": "crm",
    "bizType": "articleMaterial",
    "title": "CRM图文素材图片",
    "uploadType": "xls"
  },
  {
    "uploadScene": "category",
    "bizType": "frontImage",
    "title": "前台类目上传小图标",
    "uploadType": "image"
  },
  {
    "uploadScene": "category",
    "bizType": "brandLogo",
    "title": "品牌logo",
    "uploadType": "image"
  },
  {
    "uploadScene": "reverse",
    "bizType": "buyerProof",
    "title": "C端上传举证图片",
    "uploadType": "image"
  },
  {
    "uploadScene": "reverse",
    "bizType": "sellerProof",
    "title": "B端上传举证图片",
    "uploadType": "image"
  },
  {
    "uploadScene": "reverse",
    "bizType": "counselorProof",
    "title": "智慧营养顾问上传举证图片",
    "uploadType": "image"
  },
  {
    "uploadScene": "reverse",
    "bizType": "merchantProof",
    "title": "商家端上传举证图片",
    "uploadType": "image"
  },
  {
    "uploadScene": "store",
    "bizType": "idcardImage",
    "title": "新增店铺负责人身份证上传",
    "uploadType": "image"
  },
  {
    "uploadScene": "item",
    "bizType": "itemImage",
    "title": "商品发布上传图片",
    "uploadType": "image"
  },
  {
    "uploadScene": "item",
    "bizType": "itemVideo",
    "title": "商品发布上传视频",
    "uploadType": "video"
  },
  {
    "uploadScene": "trade",
    "bizType": "snapshot",
    "title": "交易快照",
    "uploadType": "all"
  },
  {
    "uploadScene": "item",
    "bizType": "itemDescription",
    "title": "商品发布上传文描",
    "uploadType": "all"
  }
]

Package Sidebar

Install

npm i @aliretail/react-material-mng

Weekly Downloads

3

Version

1.1.1

License

MIT

Unpacked Size

1.59 MB

Total Files

57

Last publish

Collaborators

  • aliretail