mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-31 04:07:56 +01:00
fix(module): inject options in nuxt.options.ui
This commit is contained in:
@@ -26,6 +26,8 @@ export default defineNuxtModule<ModuleOptions>({
|
|||||||
|
|
||||||
options.colors = options.colors?.length ? ['primary', ...options.colors] : ['primary', 'red', 'orange', 'amber', 'yellow', 'lime', 'green', 'emerald', 'teal', 'cyan', 'sky', 'blue', 'indigo', 'violet', 'purple', 'fuchia', 'pink', 'rose']
|
options.colors = options.colors?.length ? ['primary', ...options.colors] : ['primary', 'red', 'orange', 'amber', 'yellow', 'lime', 'green', 'emerald', 'teal', 'cyan', 'sky', 'blue', 'indigo', 'violet', 'purple', 'fuchia', 'pink', 'rose']
|
||||||
|
|
||||||
|
nuxt.options.ui = options
|
||||||
|
|
||||||
nuxt.options.alias['#ui'] = resolve('./runtime')
|
nuxt.options.alias['#ui'] = resolve('./runtime')
|
||||||
|
|
||||||
nuxt.options.appConfig.ui = defu(nuxt.options.appConfig.ui || {}, {
|
nuxt.options.appConfig.ui = defu(nuxt.options.appConfig.ui || {}, {
|
||||||
|
|||||||
Reference in New Issue
Block a user