You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.5 KiB
42 lines
1.5 KiB
export { default as Barrage } from '../../src/components/Barrage.vue' |
|
export { default as BottomRightFixed } from '../../src/components/BottomRightFixed.vue' |
|
export { default as CommonHeader } from '../../src/components/CommonHeader.vue' |
|
export { default as DoctorItem } from '../../src/components/DoctorItem.vue' |
|
export { default as DoctorVideoItem } from '../../src/components/DoctorVideoItem.vue' |
|
export { default as MobileHeader } from '../../src/components/MobileHeader.vue' |
|
export { default as NotLogin } from '../../src/components/NotLogin.vue' |
|
export { default as UserInfoCommon } from '../../src/components/UserInfoCommon.vue' |
|
export { default as VideoArticleListItem } from '../../src/components/VideoArticleListItem.vue' |
|
export { default as WebFooter } from '../../src/components/WebFooter.vue' |
|
export { default as WebHeader } from '../../src/components/WebHeader.vue' |
|
|
|
// nuxt/nuxt.js#8607 |
|
function wrapFunctional(options) { |
|
if (!options || !options.functional) { |
|
return options |
|
} |
|
|
|
const propKeys = Array.isArray(options.props) ? options.props : Object.keys(options.props || {}) |
|
|
|
return { |
|
render(h) { |
|
const attrs = {} |
|
const props = {} |
|
|
|
for (const key in this.$attrs) { |
|
if (propKeys.includes(key)) { |
|
props[key] = this.$attrs[key] |
|
} else { |
|
attrs[key] = this.$attrs[key] |
|
} |
|
} |
|
|
|
return h(options, { |
|
on: this.$listeners, |
|
attrs, |
|
props, |
|
scopedSlots: this.$scopedSlots, |
|
}, this.$slots.default) |
|
} |
|
} |
|
}
|
|
|