mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-17 01:56:16 -08:00
修复打包错误
This commit is contained in:
1 parent
18fbb79dab
commit
f8a7187530
29 files changed
+2859
-225
No files matched your search
@@ -1,7 +1,8 @@
|
||||
import React, { Component } from 'react';
|
||||
import React from 'react';
|
||||
import Artplayer from 'artplayer';
|
||||
import 'artplayer/dist/artplayer.css';
|
||||
|
||||
export default class ArtplayerComponent extends Component {
|
||||
export default class ArtplayerComponent extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
Artplayer.utils.errorHandle(
|
||||
@@ -32,6 +33,14 @@ export default class ArtplayerComponent extends Component {
|
||||
|
||||
render() {
|
||||
const { option, getInstance, ...rest } = this.props;
|
||||
return <div ref={this.artRef} {...rest} />;
|
||||
return React.createElement(
|
||||
'div',
|
||||
Object.assign(
|
||||
{
|
||||
ref: this.artRef,
|
||||
},
|
||||
rest,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user