xto-fronted 0.4.92 → 0.4.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/404-C9Uh6Uu-.css +1 -0
- package/dist/assets/404-zjGLLssH.js +1 -0
- package/dist/assets/_plugin-vue_export-helper-DlAUqK2U.js +1 -0
- package/dist/assets/index-B5xc4gQB.css +1 -0
- package/dist/assets/index-BDgOY6Rp.js +1 -0
- package/dist/assets/index-BIoRANs0.js +1 -0
- package/dist/assets/index-BRR97dc6.js +1 -0
- package/dist/assets/index-Bz0BgZQ1.js +1 -0
- package/dist/assets/index-CAdztNsv.css +1 -0
- package/dist/assets/index-CCXrcISf.css +1 -0
- package/dist/assets/index-CfpZmcpk.css +1 -0
- package/dist/assets/index-CwJSA85U.js +1 -0
- package/dist/assets/index-CwRA10ac.js +1 -0
- package/dist/assets/index-D8NDxq9d.js +1 -0
- package/dist/assets/index-DEB6-Iv_.js +2 -0
- package/dist/assets/index-DM4Ezclc.css +1 -0
- package/dist/assets/index-DYv7nImj.css +1 -0
- package/dist/assets/index-t-2Y0KhA.css +1 -0
- package/dist/assets/vendor-CUVPinTg.js +13 -0
- package/dist/assets/vue-vendor-DeJXJVbN.js +29 -0
- package/dist/assets/xto-base-CL2NKZJJ.css +1 -0
- package/dist/assets/xto-base-PwLGsxxb.js +1 -0
- package/dist/assets/xto-business--V1F5Gwb.css +1 -0
- package/dist/assets/xto-core-CtL4zKiV.js +1 -0
- package/dist/assets/xto-data-MxZsiJgi.css +1 -0
- package/dist/assets/xto-data-bCXQa7fT.js +1 -0
- package/dist/assets/xto-feedback-Bxx38c3P.css +1 -0
- package/dist/assets/xto-feedback-CPydp0kn.js +1 -0
- package/dist/assets/xto-form-Cu6q3VLG.css +1 -0
- package/dist/assets/xto-form-bywohdAf.js +1 -0
- package/dist/assets/xto-layout-BDD6sSlM.css +1 -0
- package/dist/assets/xto-navigation-Bbdpine9.js +1 -0
- package/dist/assets/xto-navigation-XfpyMpEo.css +1 -0
- package/dist/{index-CsjBlLrl.js → index-3ekBp4iW.js} +2 -2
- package/dist/{index-CvYIvRSW.js → index-58aI1w0v.js} +2 -2
- package/dist/{index--qRfsJ32.js → index-A_B_Ap_A.js} +1510 -1537
- package/dist/{index-DAPLMrmP.js → index-B5DLfOYb.js} +23 -23
- package/dist/index-BAmYUT0G.js +189 -0
- package/dist/index-BRvi9qW-.js +515 -0
- package/dist/index-BVGW4DDQ.js +189 -0
- package/dist/index-Bmf0YbVq.js +189 -0
- package/dist/index-C2-a5KSQ.js +4233 -0
- package/dist/{index-DjkSMw-x.js → index-CeZ0CSSs.js} +2 -2
- package/dist/index-Cf8E7FM1.js +4270 -0
- package/dist/index-ChowNrlU.js +641 -0
- package/dist/index-D25KzR0I.js +479 -0
- package/dist/index-DCBIjLHy.js +515 -0
- package/dist/index-DEYOivza.js +641 -0
- package/dist/index-DReodgBw.js +4233 -0
- package/dist/index-DjERNRXX.js +515 -0
- package/dist/index-LSdsO2Ox.js +479 -0
- package/dist/index-gBlRG4kk.js +479 -0
- package/dist/index-xWU3J3OH.js +641 -0
- package/dist/index.es.js +1 -1
- package/dist/index.html +28 -0
- package/dist/index.umd.js +8 -8
- package/dist/style.css +1 -1
- package/package.json +91 -91
- package/src/App.vue +48 -48
- package/src/assets/styles/_dark.scss +639 -639
- package/src/assets/styles/_root.scss +183 -183
- package/src/assets/styles/_variables.scss +69 -69
- package/src/assets/styles/index.scss +460 -460
- package/src/components/Layout/MixTopMenu.vue +4 -1
- package/src/components/Layout/Sidebar.vue +201 -198
- package/src/components/Layout/SidebarMenuItem.vue +158 -158
- package/src/components/Layout/TopMenu.vue +1173 -1170
- package/src/components/Layout/index.vue +192 -192
- package/src/composables/useI18n.ts +43 -43
- package/src/index.ts +100 -100
- package/src/router/layoutRoute.ts +59 -59
- package/src/stores/index.ts +15 -15
- package/src/stores/locale.ts +66 -66
- package/src/types/json-bigint.d.ts +18 -18
- package/src/types/xto.d.ts +172 -172
- package/src/utils/request.ts +184 -184
- package/src/views/dashboard/index.vue +545 -545
- package/src/views/error/403.vue +251 -251
- package/src/views/error/404.vue +253 -253
- package/src/views/login/index.vue +586 -586
- package/src/views/system/menu/index.vue +690 -690
- package/src/views/system/role/index.vue +583 -583
- package/src/views/system/user/index.vue +655 -655
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 布局路由工厂函数
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { createRouter as vueCreateRouter, createWebHistory } from 'vue-router'
|
|
6
|
-
import type { RouteRecordRaw, Router } from 'vue-router'
|
|
7
|
-
import Layout from '@/components/Layout/index.vue'
|
|
8
|
-
|
|
9
|
-
interface LayoutRouteOptions {
|
|
10
|
-
indexPath?: string
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
interface CreateRouterOptions {
|
|
14
|
-
base?: string
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* 创建布局路由
|
|
19
|
-
* @param children 子路由配置
|
|
20
|
-
* @param options 配置选项
|
|
21
|
-
* @returns 布局路由配置
|
|
22
|
-
*/
|
|
23
|
-
export function createLayoutRoute(
|
|
24
|
-
children: RouteRecordRaw[],
|
|
25
|
-
options: LayoutRouteOptions = {}
|
|
26
|
-
): RouteRecordRaw {
|
|
27
|
-
const indexPath = options.indexPath || '/dashboard'
|
|
28
|
-
|
|
29
|
-
// 添加 catch-all 路由,让404在Layout内部渲染,保持左侧菜单显示
|
|
30
|
-
const catchAllRoute: RouteRecordRaw = {
|
|
31
|
-
path: '/:pathMatch(.*)*',
|
|
32
|
-
name: 'CatchAll',
|
|
33
|
-
component: () => import('@/views/error/404.vue'),
|
|
34
|
-
meta: {
|
|
35
|
-
title: '404'
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
return {
|
|
40
|
-
path: '/',
|
|
41
|
-
name: 'Layout',
|
|
42
|
-
component: Layout,
|
|
43
|
-
redirect: indexPath,
|
|
44
|
-
children: [...children, catchAllRoute]
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* 创建路由实例
|
|
50
|
-
* @param routes 路由配置数组
|
|
51
|
-
* @param options 配置选项
|
|
52
|
-
* @returns 路由实例
|
|
53
|
-
*/
|
|
54
|
-
export function createRouter(routes: RouteRecordRaw[], options: CreateRouterOptions = {}): Router {
|
|
55
|
-
return vueCreateRouter({
|
|
56
|
-
history: createWebHistory(options.base),
|
|
57
|
-
routes,
|
|
58
|
-
scrollBehavior: () => ({ left: 0, top: 0 })
|
|
59
|
-
})
|
|
1
|
+
/**
|
|
2
|
+
* 布局路由工厂函数
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { createRouter as vueCreateRouter, createWebHistory } from 'vue-router'
|
|
6
|
+
import type { RouteRecordRaw, Router } from 'vue-router'
|
|
7
|
+
import Layout from '@/components/Layout/index.vue'
|
|
8
|
+
|
|
9
|
+
interface LayoutRouteOptions {
|
|
10
|
+
indexPath?: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface CreateRouterOptions {
|
|
14
|
+
base?: string
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* 创建布局路由
|
|
19
|
+
* @param children 子路由配置
|
|
20
|
+
* @param options 配置选项
|
|
21
|
+
* @returns 布局路由配置
|
|
22
|
+
*/
|
|
23
|
+
export function createLayoutRoute(
|
|
24
|
+
children: RouteRecordRaw[],
|
|
25
|
+
options: LayoutRouteOptions = {}
|
|
26
|
+
): RouteRecordRaw {
|
|
27
|
+
const indexPath = options.indexPath || '/dashboard'
|
|
28
|
+
|
|
29
|
+
// 添加 catch-all 路由,让404在Layout内部渲染,保持左侧菜单显示
|
|
30
|
+
const catchAllRoute: RouteRecordRaw = {
|
|
31
|
+
path: '/:pathMatch(.*)*',
|
|
32
|
+
name: 'CatchAll',
|
|
33
|
+
component: () => import('@/views/error/404.vue'),
|
|
34
|
+
meta: {
|
|
35
|
+
title: '404'
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
return {
|
|
40
|
+
path: '/',
|
|
41
|
+
name: 'Layout',
|
|
42
|
+
component: Layout,
|
|
43
|
+
redirect: indexPath,
|
|
44
|
+
children: [...children, catchAllRoute]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* 创建路由实例
|
|
50
|
+
* @param routes 路由配置数组
|
|
51
|
+
* @param options 配置选项
|
|
52
|
+
* @returns 路由实例
|
|
53
|
+
*/
|
|
54
|
+
export function createRouter(routes: RouteRecordRaw[], options: CreateRouterOptions = {}): Router {
|
|
55
|
+
return vueCreateRouter({
|
|
56
|
+
history: createWebHistory(options.base),
|
|
57
|
+
routes,
|
|
58
|
+
scrollBehavior: () => ({ left: 0, top: 0 })
|
|
59
|
+
})
|
|
60
60
|
}
|
package/src/stores/index.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pinia Store 入口
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { createPinia } from 'pinia'
|
|
6
|
-
|
|
7
|
-
const pinia = createPinia()
|
|
8
|
-
|
|
9
|
-
export default pinia
|
|
10
|
-
|
|
11
|
-
// 导出所有 stores
|
|
12
|
-
export * from './user'
|
|
13
|
-
export * from './auth'
|
|
14
|
-
export * from './menu'
|
|
15
|
-
export * from './app'
|
|
1
|
+
/**
|
|
2
|
+
* Pinia Store 入口
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { createPinia } from 'pinia'
|
|
6
|
+
|
|
7
|
+
const pinia = createPinia()
|
|
8
|
+
|
|
9
|
+
export default pinia
|
|
10
|
+
|
|
11
|
+
// 导出所有 stores
|
|
12
|
+
export * from './user'
|
|
13
|
+
export * from './auth'
|
|
14
|
+
export * from './menu'
|
|
15
|
+
export * from './app'
|
|
16
16
|
export * from './locale'
|
package/src/stores/locale.ts
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 国际化状态管理
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { defineStore } from 'pinia'
|
|
6
|
-
import { ref, computed } from 'vue'
|
|
7
|
-
import { local } from '@/utils/storage'
|
|
8
|
-
import {
|
|
9
|
-
useLocale,
|
|
10
|
-
createLocaleProvider,
|
|
11
|
-
getSupportedLocales,
|
|
12
|
-
type LocaleCode,
|
|
13
|
-
type LocaleMessages
|
|
14
|
-
} from '@xto/core/locale'
|
|
15
|
-
|
|
16
|
-
export type { LocaleCode, LocaleMessages }
|
|
17
|
-
|
|
18
|
-
export const useLocaleStore = defineStore('locale', () => {
|
|
19
|
-
// 从本地存储获取语言设置
|
|
20
|
-
const savedLocale = local.get<LocaleCode>('locale') || 'zh-CN'
|
|
21
|
-
|
|
22
|
-
// 创建国际化提供者
|
|
23
|
-
const provider = createLocaleProvider(savedLocale)
|
|
24
|
-
|
|
25
|
-
// 状态
|
|
26
|
-
const locale = ref<LocaleCode>(savedLocale)
|
|
27
|
-
const locales = getSupportedLocales()
|
|
28
|
-
|
|
29
|
-
// 使用国际化组合式函数
|
|
30
|
-
const { t, messages, setLocale, mergeMessages } = useLocale()
|
|
31
|
-
|
|
32
|
-
// 当前语言名称
|
|
33
|
-
const localeName = computed(() => {
|
|
34
|
-
const found = locales.find(l => l.code === locale.value)
|
|
35
|
-
return found?.name || locale.value
|
|
36
|
-
})
|
|
37
|
-
|
|
38
|
-
// 设置语言
|
|
39
|
-
const changeLocale = (code: LocaleCode) => {
|
|
40
|
-
locale.value = code
|
|
41
|
-
setLocale(code)
|
|
42
|
-
local.set('locale', code)
|
|
43
|
-
provider.setLocale(code)
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// 添加自定义翻译
|
|
47
|
-
const addMessages = (msgs: LocaleMessages) => {
|
|
48
|
-
mergeMessages(msgs)
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// 初始化
|
|
52
|
-
const initLocale = () => {
|
|
53
|
-
setLocale(savedLocale)
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
return {
|
|
57
|
-
locale,
|
|
58
|
-
localeName,
|
|
59
|
-
locales,
|
|
60
|
-
messages,
|
|
61
|
-
t,
|
|
62
|
-
changeLocale,
|
|
63
|
-
addMessages,
|
|
64
|
-
initLocale,
|
|
65
|
-
provider
|
|
66
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* 国际化状态管理
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { defineStore } from 'pinia'
|
|
6
|
+
import { ref, computed } from 'vue'
|
|
7
|
+
import { local } from '@/utils/storage'
|
|
8
|
+
import {
|
|
9
|
+
useLocale,
|
|
10
|
+
createLocaleProvider,
|
|
11
|
+
getSupportedLocales,
|
|
12
|
+
type LocaleCode,
|
|
13
|
+
type LocaleMessages
|
|
14
|
+
} from '@xto/core/locale'
|
|
15
|
+
|
|
16
|
+
export type { LocaleCode, LocaleMessages }
|
|
17
|
+
|
|
18
|
+
export const useLocaleStore = defineStore('locale', () => {
|
|
19
|
+
// 从本地存储获取语言设置
|
|
20
|
+
const savedLocale = local.get<LocaleCode>('locale') || 'zh-CN'
|
|
21
|
+
|
|
22
|
+
// 创建国际化提供者
|
|
23
|
+
const provider = createLocaleProvider(savedLocale)
|
|
24
|
+
|
|
25
|
+
// 状态
|
|
26
|
+
const locale = ref<LocaleCode>(savedLocale)
|
|
27
|
+
const locales = getSupportedLocales()
|
|
28
|
+
|
|
29
|
+
// 使用国际化组合式函数
|
|
30
|
+
const { t, messages, setLocale, mergeMessages } = useLocale()
|
|
31
|
+
|
|
32
|
+
// 当前语言名称
|
|
33
|
+
const localeName = computed(() => {
|
|
34
|
+
const found = locales.find(l => l.code === locale.value)
|
|
35
|
+
return found?.name || locale.value
|
|
36
|
+
})
|
|
37
|
+
|
|
38
|
+
// 设置语言
|
|
39
|
+
const changeLocale = (code: LocaleCode) => {
|
|
40
|
+
locale.value = code
|
|
41
|
+
setLocale(code)
|
|
42
|
+
local.set('locale', code)
|
|
43
|
+
provider.setLocale(code)
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// 添加自定义翻译
|
|
47
|
+
const addMessages = (msgs: LocaleMessages) => {
|
|
48
|
+
mergeMessages(msgs)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// 初始化
|
|
52
|
+
const initLocale = () => {
|
|
53
|
+
setLocale(savedLocale)
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return {
|
|
57
|
+
locale,
|
|
58
|
+
localeName,
|
|
59
|
+
locales,
|
|
60
|
+
messages,
|
|
61
|
+
t,
|
|
62
|
+
changeLocale,
|
|
63
|
+
addMessages,
|
|
64
|
+
initLocale,
|
|
65
|
+
provider
|
|
66
|
+
}
|
|
67
67
|
})
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
declare module 'json-bigint' {
|
|
2
|
-
interface JSONBigintOptions {
|
|
3
|
-
storeAsString?: boolean
|
|
4
|
-
alwaysParseAsBig?: boolean
|
|
5
|
-
useNativeBigInt?: boolean
|
|
6
|
-
protoAction?: 'error' | 'ignore' | 'preserve'
|
|
7
|
-
constructorAction?: 'error' | 'ignore' | 'preserve'
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
interface JSONBigint {
|
|
11
|
-
parse(text: string): any
|
|
12
|
-
stringify(value: any, replacer?: any, space?: string | number): string
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function JSONBig(options?: JSONBigintOptions): JSONBigint
|
|
16
|
-
|
|
17
|
-
export = JSONBig
|
|
18
|
-
}
|
|
1
|
+
declare module 'json-bigint' {
|
|
2
|
+
interface JSONBigintOptions {
|
|
3
|
+
storeAsString?: boolean
|
|
4
|
+
alwaysParseAsBig?: boolean
|
|
5
|
+
useNativeBigInt?: boolean
|
|
6
|
+
protoAction?: 'error' | 'ignore' | 'preserve'
|
|
7
|
+
constructorAction?: 'error' | 'ignore' | 'preserve'
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface JSONBigint {
|
|
11
|
+
parse(text: string): any
|
|
12
|
+
stringify(value: any, replacer?: any, space?: string | number): string
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function JSONBig(options?: JSONBigintOptions): JSONBigint
|
|
16
|
+
|
|
17
|
+
export = JSONBig
|
|
18
|
+
}
|
package/src/types/xto.d.ts
CHANGED
|
@@ -1,173 +1,173 @@
|
|
|
1
|
-
declare module '@xto/core' {
|
|
2
|
-
export const version: string
|
|
3
|
-
export function install(app: any): void
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
declare module '@xto/core/locale' {
|
|
7
|
-
export type LocaleCode = 'zh-CN' | 'en-US' | 'ja-JP' | 'ko-KR'
|
|
8
|
-
export interface LocaleMessages {
|
|
9
|
-
[key: string]: string | LocaleMessages
|
|
10
|
-
}
|
|
11
|
-
export interface LocaleConfig {
|
|
12
|
-
code: LocaleCode
|
|
13
|
-
name: string
|
|
14
|
-
messages: LocaleMessages
|
|
15
|
-
}
|
|
16
|
-
export interface UseLocaleReturn {
|
|
17
|
-
locale: import('vue').Ref<LocaleCode>
|
|
18
|
-
messages: import('vue').ComputedRef<LocaleMessages>
|
|
19
|
-
t: (key: string, ...args: (string | number)[]) => string
|
|
20
|
-
setLocale: (code: LocaleCode) => void
|
|
21
|
-
mergeMessages: (messages: LocaleMessages) => void
|
|
22
|
-
}
|
|
23
|
-
export function useLocale(): UseLocaleReturn
|
|
24
|
-
export function createLocaleProvider(initialLocale?: LocaleCode): any
|
|
25
|
-
export function getSupportedLocales(): { code: LocaleCode; name: string }[]
|
|
26
|
-
export const localeNames: Record<LocaleCode, string>
|
|
27
|
-
export const locales: Record<LocaleCode, LocaleMessages>
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
declare module '@xto/core/es/index/index.mjs' {
|
|
31
|
-
export * from '@xto/core'
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
declare module '@xto/core/es/theme/index.mjs' {
|
|
35
|
-
export const theme: any
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
declare module '@xto/core/es/hooks/index.mjs' {
|
|
39
|
-
export const hooks: any
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
declare module '@xto/core/es/utils/index.mjs' {
|
|
43
|
-
export const utils: any
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
declare module '@xto/base' {
|
|
47
|
-
import { DefineComponent } from 'vue'
|
|
48
|
-
export const Button: DefineComponent<any, any, any>
|
|
49
|
-
export const Loading: DefineComponent<any, any, any>
|
|
50
|
-
export const Icon: DefineComponent<any, any, any>
|
|
51
|
-
export const Avatar: DefineComponent<any, any, any>
|
|
52
|
-
export const Badge: DefineComponent<any, any, any>
|
|
53
|
-
export const Tag: DefineComponent<any, any, any>
|
|
54
|
-
export const Divider: DefineComponent<any, any, any>
|
|
55
|
-
export const Space: DefineComponent<any, any, any>
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
declare module '@xto/base/es/style.css' {
|
|
59
|
-
const content: string
|
|
60
|
-
export default content
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
declare module '@xto/form' {
|
|
64
|
-
import { DefineComponent } from 'vue'
|
|
65
|
-
export const Input: DefineComponent<any, any, any>
|
|
66
|
-
export const InputNumber: DefineComponent<any, any, any>
|
|
67
|
-
export const Select: DefineComponent<any, any, any>
|
|
68
|
-
export const Checkbox: DefineComponent<any, any, any>
|
|
69
|
-
export const Radio: DefineComponent<any, any, any>
|
|
70
|
-
export const Switch: DefineComponent<any, any, any>
|
|
71
|
-
export const DatePicker: DefineComponent<any, any, any>
|
|
72
|
-
export const Form: DefineComponent<any, any, any>
|
|
73
|
-
export const FormItem: DefineComponent<any, any, any>
|
|
74
|
-
export const Upload: DefineComponent<any, any, any>
|
|
75
|
-
export const FormRule: any
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
declare module '@xto/form/es/style.css' {
|
|
79
|
-
const content: string
|
|
80
|
-
export default content
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
declare module '@xto/data' {
|
|
84
|
-
import { DefineComponent } from 'vue'
|
|
85
|
-
export const Table: DefineComponent<any, any, any>
|
|
86
|
-
export const Pagination: DefineComponent<any, any, any>
|
|
87
|
-
export const Tree: DefineComponent<any, any, any>
|
|
88
|
-
export const TreeNode: DefineComponent<any, any, any>
|
|
89
|
-
export const List: DefineComponent<any, any, any>
|
|
90
|
-
export const Card: DefineComponent<any, any, any>
|
|
91
|
-
export const Descriptions: DefineComponent<any, any, any>
|
|
92
|
-
export const Tag: DefineComponent<any, any, any>
|
|
93
|
-
export const Progress: DefineComponent<any, any, any>
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
declare module '@xto/data/es/style.css' {
|
|
97
|
-
const content: string
|
|
98
|
-
export default content
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
declare module '@xto/feedback' {
|
|
102
|
-
import { DefineComponent } from 'vue'
|
|
103
|
-
export const Message: {
|
|
104
|
-
success: (msg: string) => void
|
|
105
|
-
error: (msg: string) => void
|
|
106
|
-
warning: (msg: string) => void
|
|
107
|
-
info: (msg: string) => void
|
|
108
|
-
}
|
|
109
|
-
export const Notification: {
|
|
110
|
-
success: (options: any) => void
|
|
111
|
-
error: (options: any) => void
|
|
112
|
-
warning: (options: any) => void
|
|
113
|
-
info: (options: any) => void
|
|
114
|
-
}
|
|
115
|
-
export const Modal: DefineComponent<any, any, any>
|
|
116
|
-
export const Drawer: DefineComponent<any, any, any>
|
|
117
|
-
export const Popconfirm: DefineComponent<any, any, any>
|
|
118
|
-
export const Tooltip: DefineComponent<any, any, any>
|
|
119
|
-
export const Popover: DefineComponent<any, any, any>
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
declare module '@xto/feedback/es/style.css' {
|
|
123
|
-
const content: string
|
|
124
|
-
export default content
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
declare module '@xto/navigation' {
|
|
128
|
-
import { DefineComponent } from 'vue'
|
|
129
|
-
export const Menu: DefineComponent<any, any, any>
|
|
130
|
-
export const MenuItem: DefineComponent<any, any, any>
|
|
131
|
-
export const SubMenu: DefineComponent<any, any, any>
|
|
132
|
-
export const Tabs: DefineComponent<any, any, any>
|
|
133
|
-
export const TabPane: DefineComponent<any, any, any>
|
|
134
|
-
export const Breadcrumb: DefineComponent<any, any, any>
|
|
135
|
-
export const BreadcrumbItem: DefineComponent<any, any, any>
|
|
136
|
-
export const Dropdown: DefineComponent<any, any, any>
|
|
137
|
-
export const DropdownMenu: DefineComponent<any, any, any>
|
|
138
|
-
export const DropdownItem: DefineComponent<any, any, any>
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
declare module '@xto/navigation/es/style.css' {
|
|
142
|
-
const content: string
|
|
143
|
-
export default content
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
declare module '@xto/layout' {
|
|
147
|
-
import { DefineComponent } from 'vue'
|
|
148
|
-
export const Layout: DefineComponent<any, any, any>
|
|
149
|
-
export const Header: DefineComponent<any, any, any>
|
|
150
|
-
export const Sider: DefineComponent<any, any, any>
|
|
151
|
-
export const Content: DefineComponent<any, any, any>
|
|
152
|
-
export const Footer: DefineComponent<any, any, any>
|
|
153
|
-
export const Container: DefineComponent<any, any, any>
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
declare module '@xto/layout/es/style.css' {
|
|
157
|
-
const content: string
|
|
158
|
-
export default content
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
declare module '@xto/business' {
|
|
162
|
-
import { DefineComponent } from 'vue'
|
|
163
|
-
export const LoginForm: DefineComponent<any, any, any>
|
|
164
|
-
export const RegisterForm: DefineComponent<any, any, any>
|
|
165
|
-
export const SearchResult: DefineComponent<any, any, any>
|
|
166
|
-
export const Comment: DefineComponent<any, any, any>
|
|
167
|
-
export const Statistic: DefineComponent<any, any, any>
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
declare module '@xto/business/es/style.css' {
|
|
171
|
-
const content: string
|
|
172
|
-
export default content
|
|
1
|
+
declare module '@xto/core' {
|
|
2
|
+
export const version: string
|
|
3
|
+
export function install(app: any): void
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
declare module '@xto/core/locale' {
|
|
7
|
+
export type LocaleCode = 'zh-CN' | 'en-US' | 'ja-JP' | 'ko-KR'
|
|
8
|
+
export interface LocaleMessages {
|
|
9
|
+
[key: string]: string | LocaleMessages
|
|
10
|
+
}
|
|
11
|
+
export interface LocaleConfig {
|
|
12
|
+
code: LocaleCode
|
|
13
|
+
name: string
|
|
14
|
+
messages: LocaleMessages
|
|
15
|
+
}
|
|
16
|
+
export interface UseLocaleReturn {
|
|
17
|
+
locale: import('vue').Ref<LocaleCode>
|
|
18
|
+
messages: import('vue').ComputedRef<LocaleMessages>
|
|
19
|
+
t: (key: string, ...args: (string | number)[]) => string
|
|
20
|
+
setLocale: (code: LocaleCode) => void
|
|
21
|
+
mergeMessages: (messages: LocaleMessages) => void
|
|
22
|
+
}
|
|
23
|
+
export function useLocale(): UseLocaleReturn
|
|
24
|
+
export function createLocaleProvider(initialLocale?: LocaleCode): any
|
|
25
|
+
export function getSupportedLocales(): { code: LocaleCode; name: string }[]
|
|
26
|
+
export const localeNames: Record<LocaleCode, string>
|
|
27
|
+
export const locales: Record<LocaleCode, LocaleMessages>
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
declare module '@xto/core/es/index/index.mjs' {
|
|
31
|
+
export * from '@xto/core'
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare module '@xto/core/es/theme/index.mjs' {
|
|
35
|
+
export const theme: any
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare module '@xto/core/es/hooks/index.mjs' {
|
|
39
|
+
export const hooks: any
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare module '@xto/core/es/utils/index.mjs' {
|
|
43
|
+
export const utils: any
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
declare module '@xto/base' {
|
|
47
|
+
import { DefineComponent } from 'vue'
|
|
48
|
+
export const Button: DefineComponent<any, any, any>
|
|
49
|
+
export const Loading: DefineComponent<any, any, any>
|
|
50
|
+
export const Icon: DefineComponent<any, any, any>
|
|
51
|
+
export const Avatar: DefineComponent<any, any, any>
|
|
52
|
+
export const Badge: DefineComponent<any, any, any>
|
|
53
|
+
export const Tag: DefineComponent<any, any, any>
|
|
54
|
+
export const Divider: DefineComponent<any, any, any>
|
|
55
|
+
export const Space: DefineComponent<any, any, any>
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
declare module '@xto/base/es/style.css' {
|
|
59
|
+
const content: string
|
|
60
|
+
export default content
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare module '@xto/form' {
|
|
64
|
+
import { DefineComponent } from 'vue'
|
|
65
|
+
export const Input: DefineComponent<any, any, any>
|
|
66
|
+
export const InputNumber: DefineComponent<any, any, any>
|
|
67
|
+
export const Select: DefineComponent<any, any, any>
|
|
68
|
+
export const Checkbox: DefineComponent<any, any, any>
|
|
69
|
+
export const Radio: DefineComponent<any, any, any>
|
|
70
|
+
export const Switch: DefineComponent<any, any, any>
|
|
71
|
+
export const DatePicker: DefineComponent<any, any, any>
|
|
72
|
+
export const Form: DefineComponent<any, any, any>
|
|
73
|
+
export const FormItem: DefineComponent<any, any, any>
|
|
74
|
+
export const Upload: DefineComponent<any, any, any>
|
|
75
|
+
export const FormRule: any
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
declare module '@xto/form/es/style.css' {
|
|
79
|
+
const content: string
|
|
80
|
+
export default content
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
declare module '@xto/data' {
|
|
84
|
+
import { DefineComponent } from 'vue'
|
|
85
|
+
export const Table: DefineComponent<any, any, any>
|
|
86
|
+
export const Pagination: DefineComponent<any, any, any>
|
|
87
|
+
export const Tree: DefineComponent<any, any, any>
|
|
88
|
+
export const TreeNode: DefineComponent<any, any, any>
|
|
89
|
+
export const List: DefineComponent<any, any, any>
|
|
90
|
+
export const Card: DefineComponent<any, any, any>
|
|
91
|
+
export const Descriptions: DefineComponent<any, any, any>
|
|
92
|
+
export const Tag: DefineComponent<any, any, any>
|
|
93
|
+
export const Progress: DefineComponent<any, any, any>
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
declare module '@xto/data/es/style.css' {
|
|
97
|
+
const content: string
|
|
98
|
+
export default content
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
declare module '@xto/feedback' {
|
|
102
|
+
import { DefineComponent } from 'vue'
|
|
103
|
+
export const Message: {
|
|
104
|
+
success: (msg: string) => void
|
|
105
|
+
error: (msg: string) => void
|
|
106
|
+
warning: (msg: string) => void
|
|
107
|
+
info: (msg: string) => void
|
|
108
|
+
}
|
|
109
|
+
export const Notification: {
|
|
110
|
+
success: (options: any) => void
|
|
111
|
+
error: (options: any) => void
|
|
112
|
+
warning: (options: any) => void
|
|
113
|
+
info: (options: any) => void
|
|
114
|
+
}
|
|
115
|
+
export const Modal: DefineComponent<any, any, any>
|
|
116
|
+
export const Drawer: DefineComponent<any, any, any>
|
|
117
|
+
export const Popconfirm: DefineComponent<any, any, any>
|
|
118
|
+
export const Tooltip: DefineComponent<any, any, any>
|
|
119
|
+
export const Popover: DefineComponent<any, any, any>
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
declare module '@xto/feedback/es/style.css' {
|
|
123
|
+
const content: string
|
|
124
|
+
export default content
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
declare module '@xto/navigation' {
|
|
128
|
+
import { DefineComponent } from 'vue'
|
|
129
|
+
export const Menu: DefineComponent<any, any, any>
|
|
130
|
+
export const MenuItem: DefineComponent<any, any, any>
|
|
131
|
+
export const SubMenu: DefineComponent<any, any, any>
|
|
132
|
+
export const Tabs: DefineComponent<any, any, any>
|
|
133
|
+
export const TabPane: DefineComponent<any, any, any>
|
|
134
|
+
export const Breadcrumb: DefineComponent<any, any, any>
|
|
135
|
+
export const BreadcrumbItem: DefineComponent<any, any, any>
|
|
136
|
+
export const Dropdown: DefineComponent<any, any, any>
|
|
137
|
+
export const DropdownMenu: DefineComponent<any, any, any>
|
|
138
|
+
export const DropdownItem: DefineComponent<any, any, any>
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
declare module '@xto/navigation/es/style.css' {
|
|
142
|
+
const content: string
|
|
143
|
+
export default content
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
declare module '@xto/layout' {
|
|
147
|
+
import { DefineComponent } from 'vue'
|
|
148
|
+
export const Layout: DefineComponent<any, any, any>
|
|
149
|
+
export const Header: DefineComponent<any, any, any>
|
|
150
|
+
export const Sider: DefineComponent<any, any, any>
|
|
151
|
+
export const Content: DefineComponent<any, any, any>
|
|
152
|
+
export const Footer: DefineComponent<any, any, any>
|
|
153
|
+
export const Container: DefineComponent<any, any, any>
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
declare module '@xto/layout/es/style.css' {
|
|
157
|
+
const content: string
|
|
158
|
+
export default content
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
declare module '@xto/business' {
|
|
162
|
+
import { DefineComponent } from 'vue'
|
|
163
|
+
export const LoginForm: DefineComponent<any, any, any>
|
|
164
|
+
export const RegisterForm: DefineComponent<any, any, any>
|
|
165
|
+
export const SearchResult: DefineComponent<any, any, any>
|
|
166
|
+
export const Comment: DefineComponent<any, any, any>
|
|
167
|
+
export const Statistic: DefineComponent<any, any, any>
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
declare module '@xto/business/es/style.css' {
|
|
171
|
+
const content: string
|
|
172
|
+
export default content
|
|
173
173
|
}
|