npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

tingle-feedback

v1.0.0

Published

截图+反馈会话框

Downloads

3

Readme

tingle-component tnpm version

一句话描述 一张截图

Install

tnpm install @ali/tingle-component --save

Simple Usage


render() {
    return (
        <div>
            <Feedback title=""
                    label="是否截图" 
                    onStop={t.handleStop.bind(t)} 
                    onDrag={t.handleDrag.bind(t)}
                    submitUrl="//daily.hatrip.alibaba.net/taxi/feedback/feedbackInfo.jsonp"
                    uploadScreenUrl="//daily.hatrip.alibaba.net/taxi/feedback/uploadScreenshotWithBase64.json"
                    submitSuccess={t.submitSuccess.bind(t)}
                    submitError={t.submitError.bind(t)}
                    feedbackIconHandle={t.handleFeedBack.bind(t)}
                    padx={10}
                    padTop={10}
                    padBottom={10}
                    module="用车"
                    icon={{name: 'feedback-server', fill: '#666'}}
                    locale= "zh_CN"/>
        </div>
    )
}

Props

className

  • 描述:自定义样式的class名称。
  • 类型:String
  • 默认:''
  • 必选:否

title

  • 描述:弹出框显示的标题
  • 类型:String
  • 默认:''
  • 必选:否

label

  • 描述:弹出框左侧的说明文字,不写即为留白
  • 类型:String
  • 默认:''
  • 必选:否

onStop

  • 描述:松开图标时的回调函数
  • 类型:function
  • 默认:null
  • 必选:否
  • 参数:e The SyntheticEvent object

onDrag

  • 描述:滑动图标时的回调函数
  • 类型:function
  • 默认:null
  • 必选:否
  • 参数:e The SyntheticEvent object

submitUrl

  • 描述:提交反馈URL
  • 类型:String
  • 默认:''
  • 必选:是

uploadScreenUrl

  • 描述:上传图片URL
  • 类型:String
  • 默认:''
  • 必选:否

submitSuccess

  • 描述:成功回调函数
  • 类型:function
  • 默认:null
  • 必选:否
  • 参数:type 上传图片(UIMG)或者提交反馈(SFB)的回调函数
  • 参数:res 成功信息详情

submitError

  • 描述:成功回调函数
  • 类型:function
  • 默认:null
  • 必选:否
  • 参数:type 同submitSuccess
  • 参数:res 失败信息详情

feedbackIconHandle

  • 描述:点击图标回调函数
  • 类型:function
  • 默认:null
  • 必选:否
  • 参数:e The SyntheticEvent object

padx

  • 描述:图标停靠距离左端或者右端的距离
  • 类型:String
  • 默认:10px
  • 必选:否

padTop

  • 描述:图标停靠距离顶部的距离
  • 类型:String
  • 默认:10px
  • 必选:否

padBottom

  • 描述:图标停靠距离底部的距离
  • 类型:String
  • 默认:10px
  • 必选:否

icon

  • 描述:图标停靠距离底部的距离
  • 类型:object
  • 默认:{name: 'feedback-server', fill: '#666'}
  • 必选:否

locale

  • 描述:国际化(包括 zh_CN, en_US)
  • 类型:string
  • 默认:zh_CN
  • 必选:否

APIs

Links