mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 06:05:11 +00:00
chore: lint
This commit is contained in:
parent
221047b074
commit
f7b13427cf
@ -31,7 +31,6 @@ export default defineComponent({
|
|||||||
setup (props, ctx) {
|
setup (props, ctx) {
|
||||||
const mounted = ref(false)
|
const mounted = ref(false)
|
||||||
// This is deliberate - `uid` should not be provided by user but by a transform plugin and will not be reactive.
|
// This is deliberate - `uid` should not be provided by user but by a transform plugin and will not be reactive.
|
||||||
// eslint-disable-next-line vue/no-setup-props-destructure
|
|
||||||
const ssrFailed = useState(`${props.uid}`)
|
const ssrFailed = useState(`${props.uid}`)
|
||||||
|
|
||||||
if (ssrFailed.value) {
|
if (ssrFailed.value) {
|
||||||
|
@ -10,7 +10,6 @@ const props = defineProps({
|
|||||||
})
|
})
|
||||||
|
|
||||||
// Deliberately prevent reactive update when error is cleared
|
// Deliberately prevent reactive update when error is cleared
|
||||||
// eslint-disable-next-line vue/no-setup-props-destructure
|
|
||||||
const _error = props.error
|
const _error = props.error
|
||||||
|
|
||||||
// TODO: extract to a separate utility
|
// TODO: extract to a separate utility
|
||||||
|
@ -26,7 +26,6 @@ const LayoutLoader = defineComponent({
|
|||||||
// This is a deliberate hack - this component must always be called with an explicit key to ensure
|
// This is a deliberate hack - this component must always be called with an explicit key to ensure
|
||||||
// that setup reruns when the name changes.
|
// that setup reruns when the name changes.
|
||||||
|
|
||||||
// eslint-disable-next-line vue/no-setup-props-destructure
|
|
||||||
const LayoutComponent = await layouts[props.name]().then((r: any) => r.default || r)
|
const LayoutComponent = await layouts[props.name]().then((r: any) => r.default || r)
|
||||||
|
|
||||||
return () => h(LayoutComponent, props.layoutProps, context.slots)
|
return () => h(LayoutComponent, props.layoutProps, context.slots)
|
||||||
@ -103,7 +102,7 @@ const LayoutProvider = defineComponent({
|
|||||||
},
|
},
|
||||||
setup (props, context) {
|
setup (props, context) {
|
||||||
// Prevent reactivity when the page will be rerendered in a different suspense fork
|
// Prevent reactivity when the page will be rerendered in a different suspense fork
|
||||||
// eslint-disable-next-line vue/no-setup-props-destructure
|
|
||||||
const name = props.name
|
const name = props.name
|
||||||
if (props.shouldProvide) {
|
if (props.shouldProvide) {
|
||||||
provide(LayoutMetaSymbol, {
|
provide(LayoutMetaSymbol, {
|
||||||
|
@ -27,7 +27,6 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
setup (props, { slots }) {
|
setup (props, { slots }) {
|
||||||
// TODO: use computed values in useLoadingIndicator
|
// TODO: use computed values in useLoadingIndicator
|
||||||
// eslint-disable-next-line vue/no-setup-props-destructure
|
|
||||||
const indicator = useLoadingIndicator({
|
const indicator = useLoadingIndicator({
|
||||||
duration: props.duration,
|
duration: props.duration,
|
||||||
throttle: props.throttle
|
throttle: props.throttle
|
||||||
|
@ -20,9 +20,7 @@ export const RouteProvider = defineComponent({
|
|||||||
},
|
},
|
||||||
setup (props) {
|
setup (props) {
|
||||||
// Prevent reactivity when the page will be rerendered in a different suspense fork
|
// Prevent reactivity when the page will be rerendered in a different suspense fork
|
||||||
// eslint-disable-next-line vue/no-setup-props-destructure
|
|
||||||
const previousKey = props.renderKey
|
const previousKey = props.renderKey
|
||||||
// eslint-disable-next-line vue/no-setup-props-destructure
|
|
||||||
const previousRoute = props.route
|
const previousRoute = props.route
|
||||||
|
|
||||||
// Provide a reactive route within the page
|
// Provide a reactive route within the page
|
||||||
|
Loading…
Reference in New Issue
Block a user