hookehuyr

fix 组件导入规则优化,样式混乱问题

...@@ -44,40 +44,6 @@ declare module '@vue/runtime-core' { ...@@ -44,40 +44,6 @@ declare module '@vue/runtime-core' {
44 TextareaField: typeof import('./src/components/TextareaField/index.vue')['default'] 44 TextareaField: typeof import('./src/components/TextareaField/index.vue')['default']
45 TextField: typeof import('./src/components/TextField/index.vue')['default'] 45 TextField: typeof import('./src/components/TextField/index.vue')['default']
46 TimePickerField: typeof import('./src/components/TimePickerField/index.vue')['default'] 46 TimePickerField: typeof import('./src/components/TimePickerField/index.vue')['default']
47 - VanActionSheet: typeof import('vant/es')['ActionSheet']
48 - VanArea: typeof import('vant/es')['Area']
49 - VanButton: typeof import('vant/es')['Button']
50 - VanCalendar: typeof import('vant/es')['Calendar']
51 - VanCellGroup: typeof import('vant/es')['CellGroup']
52 - VanCheckbox: typeof import('vant/es')['Checkbox']
53 - VanCheckboxGroup: typeof import('vant/es')['CheckboxGroup']
54 - VanCol: typeof import('vant/es')['Col']
55 - VanConfigProvider: typeof import('vant/es')['ConfigProvider']
56 - VanDatePicker: typeof import('vant/es')['DatePicker']
57 - VanDivider: typeof import('vant/es')['Divider']
58 - VanField: typeof import('vant/es')['Field']
59 - VanForm: typeof import('vant/es')['Form']
60 - VanIcon: typeof import('vant/es')['Icon']
61 - VanImage: typeof import('vant/es')['Image']
62 - VanImagePreview: typeof import('vant/es')['ImagePreview']
63 - VanLoading: typeof import('vant/es')['Loading']
64 - VanNoticeBar: typeof import('vant/es')['NoticeBar']
65 - VanNumberKeyboard: typeof import('vant/es')['NumberKeyboard']
66 - VanOverlay: typeof import('vant/es')['Overlay']
67 - VanPicker: typeof import('vant/es')['Picker']
68 - VanPickerGroup: typeof import('vant/es')['PickerGroup']
69 - VanPopover: typeof import('vant/es')['Popover']
70 - VanPopup: typeof import('vant/es')['Popup']
71 - VanRadio: typeof import('vant/es')['Radio']
72 - VanRadioGroup: typeof import('vant/es')['RadioGroup']
73 - VanRate: typeof import('vant/es')['Rate']
74 - VanRow: typeof import('vant/es')['Row']
75 - VanSwipe: typeof import('vant/es')['Swipe']
76 - VanSwipeItem: typeof import('vant/es')['SwipeItem']
77 - VanTab: typeof import('vant/es')['Tab']
78 - VanTabs: typeof import('vant/es')['Tabs']
79 - VanTimePicker: typeof import('vant/es')['TimePicker']
80 - VanUploader: typeof import('vant/es')['Uploader']
81 VideoField: typeof import('./src/components/VideoField/index.vue')['default'] 47 VideoField: typeof import('./src/components/VideoField/index.vue')['default']
82 VolunteerGroupField: typeof import('./src/components/VolunteerGroupField/index.vue')['default'] 48 VolunteerGroupField: typeof import('./src/components/VolunteerGroupField/index.vue')['default']
83 } 49 }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 * @Author: hookehuyr hookehuyr@gmail.com 2 * @Author: hookehuyr hookehuyr@gmail.com
3 * @Date: 2022-05-26 23:52:36 3 * @Date: 2022-05-26 23:52:36
4 * @LastEditors: hookehuyr hookehuyr@gmail.com 4 * @LastEditors: hookehuyr hookehuyr@gmail.com
5 - * @LastEditTime: 2024-06-24 17:43:51 5 + * @LastEditTime: 2024-06-24 17:54:38
6 * @FilePath: /data-table/src/App.vue 6 * @FilePath: /data-table/src/App.vue
7 * @Description: 7 * @Description:
8 --> 8 -->
...@@ -30,7 +30,7 @@ import { apiList } from '@/api/wx/jsApiList.js' ...@@ -30,7 +30,7 @@ import { apiList } from '@/api/wx/jsApiList.js'
30 import { wxInfo, getUrlParams, stringifyQuery } from "@/utils/tools"; 30 import { wxInfo, getUrlParams, stringifyQuery } from "@/utils/tools";
31 import { styleColor } from "@/constant.js"; 31 import { styleColor } from "@/constant.js";
32 import { getFormSettingAPI } from "@/api/form.js"; 32 import { getFormSettingAPI } from "@/api/form.js";
33 -import { showDialog } from 'vant'; 33 +import { showDialog, showConfirmDialog } from 'vant';
34 import fp3 from '@/utils/fp3'; 34 import fp3 from '@/utils/fp3';
35 import { Updater } from '@/utils/versionUpdater'; 35 import { Updater } from '@/utils/versionUpdater';
36 36
...@@ -200,15 +200,15 @@ onMounted(async () => { ...@@ -200,15 +200,15 @@ onMounted(async () => {
200 // console.log('还没更新') 200 // console.log('还没更新')
201 }) 201 })
202 upDater.on('update', () => { 202 upDater.on('update', () => {
203 - showDialog({ 203 + showConfirmDialog({
204 title: '温馨提示', 204 title: '温馨提示',
205 - message: '检测到新版本,将会刷新页面!', 205 + message: '检测到新版本,是否刷新页面!',
206 + confirmButtonColor: styleColor.baseColor
206 }).then(() => { 207 }).then(() => {
207 window.location.reload(); 208 window.location.reload();
208 }); 209 });
209 }) 210 })
210 } 211 }
211 -
212 }); 212 });
213 </script> 213 </script>
214 214
......
...@@ -3,7 +3,7 @@ import dynamicImport from 'vite-plugin-dynamic-import'; ...@@ -3,7 +3,7 @@ import dynamicImport from 'vite-plugin-dynamic-import';
3 // import legacy from '@vitejs/plugin-legacy'; 3 // import legacy from '@vitejs/plugin-legacy';
4 // import styleImport, { VantResolve } from 'vite-plugin-style-import'; 4 // import styleImport, { VantResolve } from 'vite-plugin-style-import';
5 import Components from 'unplugin-vue-components/vite'; 5 import Components from 'unplugin-vue-components/vite';
6 -import { VantResolver } from 'unplugin-vue-components/resolvers'; 6 +// import { VantResolver } from 'unplugin-vue-components/resolvers';
7 import { defineConfig, loadEnv } from 'vite'; 7 import { defineConfig, loadEnv } from 'vite';
8 import { createProxy } from './build/proxy' 8 import { createProxy } from './build/proxy'
9 import DefineOptions from 'unplugin-vue-define-options/vite'; 9 import DefineOptions from 'unplugin-vue-define-options/vite';
...@@ -28,7 +28,7 @@ export default ({ command, mode }) => { ...@@ -28,7 +28,7 @@ export default ({ command, mode }) => {
28 plugins: [ // 将要用到的插件数组。Falsy 虚值的插件将被忽略,插件数组将被扁平化(flatten)。查看 插件 API 获取 Vite 插件的更多细节。 28 plugins: [ // 将要用到的插件数组。Falsy 虚值的插件将被忽略,插件数组将被扁平化(flatten)。查看 插件 API 获取 Vite 插件的更多细节。
29 vue(), 29 vue(),
30 Components({ 30 Components({
31 - resolvers: [VantResolver()], 31 + // resolvers: [VantResolver()],
32 }), 32 }),
33 // styleImport({ 33 // styleImport({
34 // resolves: [VantResolve()], 34 // resolves: [VantResolve()],
......