hookehuyr

✨ feat: vant引入样式入口调整

...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 * @Author: hookehuyr hookehuyr@gmail.com 2 * @Author: hookehuyr hookehuyr@gmail.com
3 * @Date: 2022-05-31 12:06:19 3 * @Date: 2022-05-31 12:06:19
4 * @LastEditors: hookehuyr hookehuyr@gmail.com 4 * @LastEditors: hookehuyr hookehuyr@gmail.com
5 - * @LastEditTime: 2022-09-06 16:25:52 5 + * @LastEditTime: 2022-09-07 15:14:40
6 * @FilePath: /data-table/src/main.js 6 * @FilePath: /data-table/src/main.js
7 * @Description: 7 * @Description:
8 */ 8 */
...@@ -15,6 +15,7 @@ import axios from '@/utils/axios'; ...@@ -15,6 +15,7 @@ import axios from '@/utils/axios';
15 // import 'default-passive-events'; // 解决Chrome控制台non-passive event listener输出问题 15 // import 'default-passive-events'; // 解决Chrome控制台non-passive event listener输出问题
16 import { createPinia } from 'pinia'; 16 import { createPinia } from 'pinia';
17 import vueEsign from 'vue-esign' 17 import vueEsign from 'vue-esign'
18 +import 'vant/lib/index.css';
18 19
19 const pinia = createPinia(); 20 const pinia = createPinia();
20 const app = createApp(App); 21 const app = createApp(App);
......
...@@ -25,16 +25,16 @@ export default ({ command, mode }) => { ...@@ -25,16 +25,16 @@ export default ({ command, mode }) => {
25 // define: '', // 定义全局常量替换方式。其中每项在开发环境下会被定义在全局,而在构建时被静态替换。 25 // define: '', // 定义全局常量替换方式。其中每项在开发环境下会被定义在全局,而在构建时被静态替换。
26 plugins: [ // 将要用到的插件数组。Falsy 虚值的插件将被忽略,插件数组将被扁平化(flatten)。查看 插件 API 获取 Vite 插件的更多细节。 26 plugins: [ // 将要用到的插件数组。Falsy 虚值的插件将被忽略,插件数组将被扁平化(flatten)。查看 插件 API 获取 Vite 插件的更多细节。
27 vue(), 27 vue(),
28 - styleImport({ 28 + // styleImport({
29 - resolves: [VantResolve()], 29 + // resolves: [VantResolve()],
30 - libs: [ 30 + // libs: [
31 - { 31 + // {
32 - libraryName: 'vant', 32 + // libraryName: 'vant',
33 - esModule: true, 33 + // esModule: true,
34 - resolveStyle: name => `../es/${name}/style` 34 + // resolveStyle: name => `../es/${name}/style`
35 - } 35 + // }
36 - ] 36 + // ]
37 - }), // 按需引入 vant 位置报错问题 37 + // }), // 按需引入 vant 位置报错问题
38 dynamicImport(), // 增强 Vite 内置的 dynamic import, 支持在 import() 中使用别名 38 dynamicImport(), // 增强 Vite 内置的 dynamic import, 支持在 import() 中使用别名
39 // legacy({ 39 // legacy({
40 // targets: ['defaults', 'not IE 11'] 40 // targets: ['defaults', 'not IE 11']
......