mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Add Vue.extend
Signed-off-by: timongh <46739861+timongh@users.noreply.github.com>
This commit is contained in:
parent
d5b40b04bc
commit
a5cc1143b8
@ -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>
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
@ -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">
|
||||||
|
|||||||
@ -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">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user