We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b066df2 commit ce79304Copy full SHA for ce79304
src/main.ts
@@ -9,6 +9,17 @@ import './app.less'
9
// Vant 桌面端适配
10
import '@vant/touch-emulator'
11
12
+/* --------------------------------
13
+Vant 中有个别组件是以函数的形式提供的,
14
+包括 Toast,Dialog,Notify 和 ImagePreview 组件。
15
+在使用函数组件时,unplugin-vue-components
16
+无法自动引入对应的样式,因此需要手动引入样式。
17
+------------------------------------- */
18
+import 'vant/es/toast/style'
19
+import 'vant/es/dialog/style'
20
+import 'vant/es/notify/style'
21
+import 'vant/es/image-preview/style'
22
+
23
const app = createApp(App)
24
const pinia = createPinia()
25
pinia.use(piniaPluginPersistedstate)
0 commit comments