tim-chat-plugin
v1.0.0
Published
tim-chat-plugin from webpack
Downloads
1
Readme
依赖
- cos-js-sdk-v5(^0.5.22)
- tim-js-sdk(^2.6.6)
使用须知
使用webpack压缩过,webpack压缩过程中使用了bable对js兼容处理, 将class转成function,所以只能通过原型链继承,用法如下:
import chat from 'tim-chat'
class SingleChat {}
SingleChat.__proto__ = chat
export default SingleChat