mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-10 12:46:15 -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() {
|
||||
const { option, getInstance, ...rest } = this.props;
|
||||
return React.createElement(
|
||||
'div',
|
||||
Object.assign(
|
||||
{
|
||||
ref: this.artRef,
|
||||
},
|
||||
rest,
|
||||
),
|
||||
);
|
||||
return React.createElement('div', {
|
||||
ref: this.artRef,
|
||||
...rest,
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user