mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 08:01:20 -08:00
bugfix
This commit is contained in:
1 parent
cf119d4dc5
commit
11cf4f4455
8 files changed
+44
-37
No files matched your search
@@ -148,6 +148,7 @@ export default class Artplayer extends Emitter {
|
||||
subtitle: {
|
||||
url: '',
|
||||
style: {},
|
||||
bilingual: false,
|
||||
},
|
||||
moreVideoAttr: {
|
||||
controls: false,
|
||||
|
||||
@@ -90,6 +90,7 @@ export default {
|
||||
subtitle: {
|
||||
url: 'string',
|
||||
style: 'object',
|
||||
bilingual: 'boolean',
|
||||
},
|
||||
moreVideoAttr: 'object',
|
||||
icons: 'object',
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
&.art-control-show {
|
||||
.art-subtitle {
|
||||
bottom: 40px;
|
||||
bottom: 50px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -30,7 +30,8 @@ export default class Component {
|
||||
}
|
||||
}
|
||||
|
||||
add(option) {
|
||||
add(getOption) {
|
||||
const option = typeof getOption === 'function' ? getOption(this.art) : getOption;
|
||||
if (!this.$parent || !this.name || option.disable) return;
|
||||
const name = option.name || `${this.name}${this.id}`;
|
||||
errorHandle(!has(this, name), `Cannot add an existing name [${name}] to the [${this.name}]`);
|
||||
|
||||
Reference in new issue
Block a user