diff --git a/packages/vant/docs/markdown/quickstart.en-US.md b/packages/vant/docs/markdown/quickstart.en-US.md index ce094d49c..8feb3b2fe 100644 --- a/packages/vant/docs/markdown/quickstart.en-US.md +++ b/packages/vant/docs/markdown/quickstart.en-US.md @@ -152,7 +152,7 @@ export default { { libraryName: 'vant', esModule: true, - resolveStyle: (name) => `vant/es/${name}/style`, + resolveStyle: (name) => `vant/es/${name}/style/index`, }, ], }), @@ -163,8 +163,8 @@ export default { ### 3. Manually import ```js -import Button from 'vant/es/button'; -import 'vant/es/button/style'; +import Button from 'vant/es/button/index'; +import 'vant/es/button/style/index'; ``` ### 4. Import all components diff --git a/packages/vant/docs/markdown/quickstart.zh-CN.md b/packages/vant/docs/markdown/quickstart.zh-CN.md index f97ef73c0..0f686985c 100644 --- a/packages/vant/docs/markdown/quickstart.zh-CN.md +++ b/packages/vant/docs/markdown/quickstart.zh-CN.md @@ -172,7 +172,7 @@ export default { { libraryName: 'vant', esModule: true, - resolveStyle: (name) => `vant/es/${name}/style`, + resolveStyle: (name) => `vant/es/${name}/style/index`, }, ], }), @@ -186,9 +186,9 @@ export default { ```js // 引入组件 -import Button from 'vant/es/button'; +import Button from 'vant/es/button/index'; // 引入组件对应的样式,若组件没有样式文件,则无须引入 -import 'vant/es/button/style'; +import 'vant/es/button/style/index'; ``` ### 方式四. 导入所有组件