Add Vue.extend

Signed-off-by: timongh <46739861+timongh@users.noreply.github.com>
This commit is contained in:
timongh 2023-02-02 21:03:31 +08:00
parent d5b40b04bc
commit a5cc1143b8
5 changed files with 10 additions and 10 deletions

View File

@ -39,7 +39,7 @@ import { DownloadPackage } from '@/core/download'
import { LiveDanmaku } from '@/components/live/live-socket'
import { VIcon, VButton } from '@/ui'
export default {
export default Vue.extend({
components: {
VIcon,
VButton,
@ -115,7 +115,7 @@ export default {
console.log(xml)
},
},
}
})
</script>
<style lang="scss" scoped>

View File

@ -134,7 +134,7 @@ import { watchlaterList, toggleWatchlater } from '@/components/video/watchlater'
============
*/
export default {
export default Vue.extend({
// props: ['data', 'orientation'],
components: {
DpiImage,
@ -196,7 +196,7 @@ export default {
methods: {
toggleWatchlater,
},
}
})
</script>
<style lang="scss" scoped>

View File

@ -65,7 +65,7 @@ function valueChange(newValue: unknown) {
settings.options[this.name] = newValue
this.value = newValue
}
export default {
export default Vue.extend({
name: 'ComponentOption',
components: {
SwitchOptions,
@ -156,7 +156,7 @@ export default {
debounceValueChange: lodash.debounce(valueChange, 200),
valueChange,
},
}
})
</script>
<style lang="scss" scoped>

View File

@ -47,7 +47,7 @@
import { VPopup, VIcon } from '@/ui'
import { externalApis } from '@/core/core-apis'
export default {
export default Vue.extend({
name: 'SettingsContainer',
components: {
VPopup,
@ -87,7 +87,7 @@ export default {
}
},
},
}
})
</script>
<style lang="scss">

View File

@ -84,7 +84,7 @@ import { getDescriptionText } from '../description'
import { SearchBarActionContext, searchBarActions } from './search-bar-actions'
const defaultSearchFilter = (items: ComponentMetadata[]) => items
export default {
export default Vue.extend({
name: 'SettingsPanel',
components: {
VIcon,
@ -253,7 +253,7 @@ export default {
this.renderedComponents = this.searchFilter(internalFiltered)
},
},
}
})
</script>
<style lang="scss">