Naive-UI dark-theme 对 body 无效,只对样式有效的解决办法

yufei       1 天, 11 小时 前       19

Naive-UI dark-theme 对 body 无效,只对样式有效的解决办法,就是在 NConfigProvider 里添加 NGlobalStyle

例如

<template>
  <div>
  <NConfigProvider inline-theme-disabled :theme="darkTheme">
    <n-message-provider>
      <n-notification-provider>
        <n-loading-bar-provider>
          <n-dialog-provider>
          <NuxtPage />
          <n-global-style />
          </n-dialog-provider>
        </n-loading-bar-provider>
      </n-notification-provider>
    </n-message-provider>
  </NConfigProvider>
  </div>
</template>
目前尚无回复
简单教程 = 简单教程,简单编程
简单教程 是一个关于技术和学习的地方
现在注册
已注册用户请 登入
关于   |   FAQ   |   我们的愿景   |   广告投放   |  博客

  简单教程,简单编程 - IT 入门首选站

Copyright © 2013-2022 简单教程 twle.cn All Rights Reserved.