mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2026-11-24 13:04:29 +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
792 B
TypeScript
25 lines
792 B
TypeScript
import { useI18n } from '@/hooks'
|
|
import { useSettingActions, useSettingGetters } from '@/store'
|
|
import { getDefaultSettingConfig } from '@/store/modules/setting/constant'
|
|
import { LayoutSettings } from '@ray-template/admin-shell'
|
|
|
|
export default defineComponent({
|
|
name: 'LayoutSettings',
|
|
props: { showDescription: Boolean },
|
|
setup(props) {
|
|
const { t } = useI18n('layout')
|
|
const { getLayoutConfig } = useSettingGetters()
|
|
const { updateSettingState } = useSettingActions()
|
|
|
|
return () => (
|
|
<LayoutSettings
|
|
showDescription={props.showDescription}
|
|
layout={getLayoutConfig.value}
|
|
defaults={getDefaultSettingConfig().layoutConfig}
|
|
translate={t}
|
|
update={(value) => updateSettingState('layoutConfig', value)}
|
|
/>
|
|
)
|
|
},
|
|
})
|