feedback-web
TypeScript icon, indicating that this package has built-in type declarations

0.0.12 • Public • Published

简介

feedback-web 是用于在系统使用过程中反馈使用问题的组件。使用场景包含了常用的文字和截图反馈,同时还能选择和 Meego 、飞书话题群聊的打通。

API文档

Props

参数 类型 说明
originApi string 项目域名
feedbackConfig Partial<Record<FeedbackConfigEnum, IFeedbackConfig>> 自定义基础配置
customForm ReactNode 自定义表单配置
themeColor 'brandblue' | 'skyblue' | 'ultramarine' | 'purple' | 'pastelblue' | 'cyan' | 'amber' | 'orange' 主题
onSubmit (params: object) => void 自定义提交方式
uploadAction string | ((file: File) => Promise<string>) 自定义上传方式
lock boolean 是否锁定组件移动

FeedbackConfigEnum

参数 说明
feedbackCategoryConfig 问题类型
feedbackContentConfig 反馈内容
FeedbackScreenshotConfig 全屏截图
feedbackScoreConfig 产品评分

IFeedbackConfig

参数 类型 说明
title string | ReactNode 标题
require boolean 是否必填
message string 校验信息
hidden boolean 是否展示
textLimit number 内容模块字数限制
feedbackCategoryList {id: string , title: string}[] 类型模块数据

更新日志

0.0.12

初版功能上传

Readme

Keywords

none

Package Sidebar

Install

npm i feedback-web

Weekly Downloads

2

Version

0.0.12

License

ISC

Unpacked Size

326 kB

Total Files

118

Last publish

Collaborators

  • panchaoheng