Skip to content

Commit 999ed64

Browse files
committed
📃 docs: tips
1 parent 69ac8b4 commit 999ed64

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/docs/guide/quick-start.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ ni @vue-cmd/element-plus
5252

5353
::: warning 使用注意事项
5454
`useDialog`等适配层hooks必须在setup顶部同步调用,因为其内部依赖`getCurrentInstance`API来获取当前组件实例。
55+
56+
对于采用按需加载(或使用自动导入插件)的项目,可能需要您手动导入目标组件的样式文件,否则组件样式将无法正确呈现。建议在项目初始化时提前导入所需的组件样式,例如在 `main.ts` 中添加:
57+
58+
```ts
59+
// main.ts
60+
import 'element-plus/theme-chalk/el-dialog.css'
61+
```
5562
:::
5663

5764
```jsx

0 commit comments

Comments
 (0)