surmon-china / videojs-player

@videojs player component for @vuejs(3) and React.
https://github.surmon.me/videojs-player
MIT License
5.25k stars 1.13k forks source link

用了这个一直报错这个"class" is a reserved attribute and cannot be used as component prop.想问问是什么原因呢 #447

Open fxzer opened 1 year ago

fxzer commented 1 year ago

Describe the bug

相关代码如下,我把class删了还是一直报错 ,找不到啥原因 image image image image

Reproduction

麻烦把使用方式统一下好吗?? npm上叫videojs-player, github上叫vue-video-player, 还有导入方式也不统一, 文档一点也不详细, 用的让人...... 有的这样 import { VideoJsPlayer } from 'video.js' import { VideoPlayer } from 'vue-video-player' import 'video.js/dist/video-js.css' 文档这样: import { VideoJsPlayer } from 'video.js' import { VideoPlayer } from '@videojs-player/vue' import 'video.js/dist/video-js.css' 结果报错 还有最恶心的就是文档模板代码连ctrl+v都复制不了, 一定要右键才能复制, 使用感受就是: 心累!!!!

System Info

麻烦把使用方式统一下好吗?? npm上叫videojs-player, github上叫vue-video-player, 还有导入方式也不统一, 文档一点也不详细, 需要安装video.js也不写, 用的让人......

Used Package Manager

npm

Validations

18856743789 commented 1 year ago

解决了吗

fxzer commented 1 year ago

没解决,我另外寻找的第三方库:"vue-video-player": "^6.0.0",