mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 17:51:20 -08:00
优化render
This commit is contained in:
1 parent
f8a7187530
commit
135b1b7536
1 file changed
+4
-9
@@ -33,14 +33,9 @@ export default class ArtplayerComponent extends React.Component {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { option, getInstance, ...rest } = this.props;
|
const { option, getInstance, ...rest } = this.props;
|
||||||
return React.createElement(
|
return React.createElement('div', {
|
||||||
'div',
|
ref: this.artRef,
|
||||||
Object.assign(
|
...rest,
|
||||||
{
|
});
|
||||||
ref: this.artRef,
|
|
||||||
},
|
|
||||||
rest,
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user