mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2026-11-21 19:03:35 +08:00
Share workspace packages between Ray Admin and the interactive docs. BREAKING CHANGE: v6 is a new major line. v5 stays on legacy/v5.
25 lines
744 B
TypeScript
25 lines
744 B
TypeScript
import AppRequestCancelerProvider from '@/app-components/provider/AppRequestCancelerProvider'
|
|
import { RTransitionComponent } from '@/components'
|
|
import { useRuntimeGetters, useSettingGetters } from '@/store'
|
|
|
|
export default defineComponent({
|
|
name: 'LayoutContentWrapper',
|
|
setup() {
|
|
const { globalMainLayoutLoad } = useRuntimeGetters()
|
|
const { getContentTransition } = useSettingGetters()
|
|
|
|
return () => (
|
|
<>
|
|
<AppRequestCancelerProvider />
|
|
{globalMainLayoutLoad.value ? (
|
|
<RTransitionComponent
|
|
class="content-wrapper"
|
|
transitionPropName={`${getContentTransition.value}-transform`}
|
|
transitionAppear={false}
|
|
/>
|
|
) : null}
|
|
</>
|
|
)
|
|
},
|
|
})
|