arco-design / arco-design-vue

A Vue.js 3 UI Library based on Arco Design
https://arco.design/vue
MIT License
2.73k stars 536 forks source link

暗黑模式a-layout-content不生效 #2496

Open lovelytan opened 1 year ago

lovelytan commented 1 year ago

Discussed in https://github.com/arco-design/arco-design-vue/discussions/2493

Originally posted by **lovelytan** June 15, 2023 布局如下,content暗黑不生效,是需要css手动设置背景色吗 ```vue ``` 效果如下: image package.json ```json { "dependencies": { "@midwayjs/hooks": "^3.1.0", "@midwayjs/hooks-kit": "^3.1.0", "@midwayjs/koa": "^3.10.6", "@midwayjs/rpc": "^3.1.0", "@midwayjs/serve": "^3.1.0", "isomorphic-unfetch": "^3.1.0", "less": "^4.1.3", "vue": "^3.2.25" }, "devDependencies": { "@arco-design/web-vue": "^2.47.1", "@vitejs/plugin-vue": "^4.0.0", "typescript": "^4.9.4", "unplugin-auto-import": "^0.16.4", "unplugin-vue-components": "^0.25.1" } } ```
mingyue329 commented 10 months ago

我也遇到了,这个bug现在还没修复,"@arco-design/web-vue": "^2.54.1".我是在a-layout 标签上添加个class, <a-layout class="arco-card">就可以了

mingyue329 commented 10 months ago

<a-layout class="arco-card"

mingyue329 commented 10 months ago

如果是按需引入的话,当前页面必须用了a-card这个组件