File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed
views/system/mail/account Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,14 @@ export function createVitePlugins(VITE_APP_TITLE: string) {
39
39
imports : [
40
40
'vue' ,
41
41
'vue-router' ,
42
+ // 可额外添加需要 autoImport 的组件
42
43
{
43
44
'@/hooks/web/useI18n' : [ 'useI18n' ] ,
44
- '@/hooks/web/useXTable' : [ 'useXTable' ] ,
45
45
'@/hooks/web/useMessage' : [ 'useMessage' ] ,
46
+ '@/hooks/web/useXTable' : [ 'useXTable' ] ,
46
47
'@/hooks/web/useVxeCrudSchemas' : [ 'useVxeCrudSchemas' ] ,
48
+ '@/hooks/web/useTable' : [ 'useTable' ] ,
49
+ '@/hooks/web/useCrudSchemas' : [ 'useCrudSchemas' ] ,
47
50
'@/utils/formRules' : [ 'required' ] ,
48
51
'@/utils/dict' : [ 'DICT_TYPE' ]
49
52
}
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ declare global {
52
52
const triggerRef : typeof import ( 'vue' ) [ 'triggerRef' ]
53
53
const unref : typeof import ( 'vue' ) [ 'unref' ]
54
54
const useAttrs : typeof import ( 'vue' ) [ 'useAttrs' ]
55
+ const useCrudSchemas : typeof import ( '@/hooks/web/useCrudSchemas' ) [ 'useCrudSchemas' ]
55
56
const useCssModule : typeof import ( 'vue' ) [ 'useCssModule' ]
56
57
const useCssVars : typeof import ( 'vue' ) [ 'useCssVars' ]
57
58
const useI18n : typeof import ( '@/hooks/web/useI18n' ) [ 'useI18n' ]
@@ -60,6 +61,7 @@ declare global {
60
61
const useRoute : typeof import ( 'vue-router' ) [ 'useRoute' ]
61
62
const useRouter : typeof import ( 'vue-router' ) [ 'useRouter' ]
62
63
const useSlots : typeof import ( 'vue' ) [ 'useSlots' ]
64
+ const useTable : typeof import ( '@/hooks/web/useTable' ) [ 'useTable' ]
63
65
const useVxeCrudSchemas : typeof import ( '@/hooks/web/useVxeCrudSchemas' ) [ 'useVxeCrudSchemas' ]
64
66
const useXTable : typeof import ( '@/hooks/web/useXTable' ) [ 'useXTable' ]
65
67
const watch : typeof import ( 'vue' ) [ 'watch' ]
Original file line number Diff line number Diff line change 1
- import { CrudSchema , useCrudSchemas } from '@/hooks/web/useCrudSchemas'
1
+ import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
2
2
import { DictTag } from '@/components/DictTag'
3
3
import { TableColumn } from '@/types/table'
4
4
import { dateFormatter } from '@/utils/formatTime'
Original file line number Diff line number Diff line change 53
53
</template >
54
54
<script setup lang="ts" name="MailAccount">
55
55
import { allSchemas } from ' ./account.data'
56
- import { useTable } from ' @/hooks/web/useTable'
57
56
import * as MailAccountApi from ' @/api/system/mail/account'
58
57
import MailAccountForm from ' ./form.vue'
59
58
60
- // https://kailong110120130.gitee.io/vue-element-plus-admin-doc/components/table.html#usetable
61
59
// tableObject:表格的属性对象,可获得分页大小、条数等属性
62
60
// tableMethods:表格的操作对象,可进行获得分页、删除记录等操作
61
+ // 详细可见:https://kailong110120130.gitee.io/vue-element-plus-admin-doc/components/table.html#usetable
63
62
const { tableObject, tableMethods } = useTable ({
64
63
getListApi: MailAccountApi .getMailAccountPage , // 分页接口
65
64
delListApi: MailAccountApi .deleteMailAccount // 删除接口
You can’t perform that action at this time.
0 commit comments