Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2024-06-24 17:55:08 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
89e616dd3f960863bf995ae1deb3a58d59080321
89e616dd
1 parent
587cbb45
fix 组件导入规则优化,样式混乱问题
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
41 deletions
components.d.ts
src/App.vue
vite.config.js
components.d.ts
View file @
89e616d
...
...
@@ -44,40 +44,6 @@ declare module '@vue/runtime-core' {
TextareaField
:
typeof
import
(
'./src/components/TextareaField/index.vue'
)[
'default'
]
TextField
:
typeof
import
(
'./src/components/TextField/index.vue'
)[
'default'
]
TimePickerField
:
typeof
import
(
'./src/components/TimePickerField/index.vue'
)[
'default'
]
VanActionSheet
:
typeof
import
(
'vant/es'
)[
'ActionSheet'
]
VanArea
:
typeof
import
(
'vant/es'
)[
'Area'
]
VanButton
:
typeof
import
(
'vant/es'
)[
'Button'
]
VanCalendar
:
typeof
import
(
'vant/es'
)[
'Calendar'
]
VanCellGroup
:
typeof
import
(
'vant/es'
)[
'CellGroup'
]
VanCheckbox
:
typeof
import
(
'vant/es'
)[
'Checkbox'
]
VanCheckboxGroup
:
typeof
import
(
'vant/es'
)[
'CheckboxGroup'
]
VanCol
:
typeof
import
(
'vant/es'
)[
'Col'
]
VanConfigProvider
:
typeof
import
(
'vant/es'
)[
'ConfigProvider'
]
VanDatePicker
:
typeof
import
(
'vant/es'
)[
'DatePicker'
]
VanDivider
:
typeof
import
(
'vant/es'
)[
'Divider'
]
VanField
:
typeof
import
(
'vant/es'
)[
'Field'
]
VanForm
:
typeof
import
(
'vant/es'
)[
'Form'
]
VanIcon
:
typeof
import
(
'vant/es'
)[
'Icon'
]
VanImage
:
typeof
import
(
'vant/es'
)[
'Image'
]
VanImagePreview
:
typeof
import
(
'vant/es'
)[
'ImagePreview'
]
VanLoading
:
typeof
import
(
'vant/es'
)[
'Loading'
]
VanNoticeBar
:
typeof
import
(
'vant/es'
)[
'NoticeBar'
]
VanNumberKeyboard
:
typeof
import
(
'vant/es'
)[
'NumberKeyboard'
]
VanOverlay
:
typeof
import
(
'vant/es'
)[
'Overlay'
]
VanPicker
:
typeof
import
(
'vant/es'
)[
'Picker'
]
VanPickerGroup
:
typeof
import
(
'vant/es'
)[
'PickerGroup'
]
VanPopover
:
typeof
import
(
'vant/es'
)[
'Popover'
]
VanPopup
:
typeof
import
(
'vant/es'
)[
'Popup'
]
VanRadio
:
typeof
import
(
'vant/es'
)[
'Radio'
]
VanRadioGroup
:
typeof
import
(
'vant/es'
)[
'RadioGroup'
]
VanRate
:
typeof
import
(
'vant/es'
)[
'Rate'
]
VanRow
:
typeof
import
(
'vant/es'
)[
'Row'
]
VanSwipe
:
typeof
import
(
'vant/es'
)[
'Swipe'
]
VanSwipeItem
:
typeof
import
(
'vant/es'
)[
'SwipeItem'
]
VanTab
:
typeof
import
(
'vant/es'
)[
'Tab'
]
VanTabs
:
typeof
import
(
'vant/es'
)[
'Tabs'
]
VanTimePicker
:
typeof
import
(
'vant/es'
)[
'TimePicker'
]
VanUploader
:
typeof
import
(
'vant/es'
)[
'Uploader'
]
VideoField
:
typeof
import
(
'./src/components/VideoField/index.vue'
)[
'default'
]
VolunteerGroupField
:
typeof
import
(
'./src/components/VolunteerGroupField/index.vue'
)[
'default'
]
}
...
...
src/App.vue
View file @
89e616d
...
...
@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-26 23:52:36
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-06-24 17:
43:51
* @LastEditTime: 2024-06-24 17:
54:38
* @FilePath: /data-table/src/App.vue
* @Description:
-->
...
...
@@ -30,7 +30,7 @@ import { apiList } from '@/api/wx/jsApiList.js'
import { wxInfo, getUrlParams, stringifyQuery } from "@/utils/tools";
import { styleColor } from "@/constant.js";
import { getFormSettingAPI } from "@/api/form.js";
import { showDialog } from 'vant';
import { showDialog
, showConfirmDialog
} from 'vant';
import fp3 from '@/utils/fp3';
import { Updater } from '@/utils/versionUpdater';
...
...
@@ -200,15 +200,15 @@ onMounted(async () => {
// console.log('还没更新')
})
upDater.on('update', () => {
showDialog({
show
Confirm
Dialog({
title: '温馨提示',
message: '检测到新版本,将会刷新页面!',
message: '检测到新版本,是否刷新页面!',
confirmButtonColor: styleColor.baseColor
}).then(() => {
window.location.reload();
});
})
}
});
</script>
...
...
vite.config.js
View file @
89e616d
...
...
@@ -3,7 +3,7 @@ import dynamicImport from 'vite-plugin-dynamic-import';
// import legacy from '@vitejs/plugin-legacy';
// import styleImport, { VantResolve } from 'vite-plugin-style-import';
import
Components
from
'unplugin-vue-components/vite'
;
import
{
VantResolver
}
from
'unplugin-vue-components/resolvers'
;
//
import { VantResolver } from 'unplugin-vue-components/resolvers';
import
{
defineConfig
,
loadEnv
}
from
'vite'
;
import
{
createProxy
}
from
'./build/proxy'
import
DefineOptions
from
'unplugin-vue-define-options/vite'
;
...
...
@@ -28,7 +28,7 @@ export default ({ command, mode }) => {
plugins
:
[
// 将要用到的插件数组。Falsy 虚值的插件将被忽略,插件数组将被扁平化(flatten)。查看 插件 API 获取 Vite 插件的更多细节。
vue
(),
Components
({
resolvers
:
[
VantResolver
()],
//
resolvers: [VantResolver()],
}),
// styleImport({
// resolves: [VantResolve()],
...
...
Please
register
or
login
to post a comment