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 { LiveDanmaku } from '@/components/live/live-socket'
import { VIcon, VButton } from '@/ui' import { VIcon, VButton } from '@/ui'
export default { export default Vue.extend({
components: { components: {
VIcon, VIcon,
VButton, VButton,
@ -115,7 +115,7 @@ export default {
console.log(xml) console.log(xml)
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <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'], // props: ['data', 'orientation'],
components: { components: {
DpiImage, DpiImage,
@ -196,7 +196,7 @@ export default {
methods: { methods: {
toggleWatchlater, toggleWatchlater,
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View File

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

View File

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

View File

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