Refactor code structure and remove redundant changes
This commit is contained in:
12
types/auto-imports.d.ts
vendored
Normal file
12
types/auto-imports.d.ts
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
/* eslint-disable */
|
||||
/* prettier-ignore */
|
||||
// @ts-nocheck
|
||||
// noinspection JSUnusedGlobalSymbols
|
||||
// Generated by unplugin-auto-import
|
||||
// biome-ignore lint: disable
|
||||
export {}
|
||||
declare global {
|
||||
const ElMessage: typeof import('element-plus/es')['ElMessage']
|
||||
const ElMessageBox: typeof import('element-plus/es')['ElMessageBox']
|
||||
const ElNotification: typeof import('element-plus/es')['ElNotification']
|
||||
}
|
||||
73
types/components.d.ts
vendored
Normal file
73
types/components.d.ts
vendored
Normal file
@ -0,0 +1,73 @@
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
// Generated by unplugin-vue-components
|
||||
// Read more: https://github.com/vuejs/core/pull/3399
|
||||
export {}
|
||||
|
||||
/* prettier-ignore */
|
||||
declare module 'vue' {
|
||||
export interface GlobalComponents {
|
||||
CommentSection: typeof import('./../src/components/comment-section/index.vue')['default']
|
||||
ElAvatar: typeof import('element-plus/es')['ElAvatar']
|
||||
ElBadge: typeof import('element-plus/es')['ElBadge']
|
||||
ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb']
|
||||
ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem']
|
||||
ElButton: typeof import('element-plus/es')['ElButton']
|
||||
ElCarousel: typeof import('element-plus/es')['ElCarousel']
|
||||
ElCarouselItem: typeof import('element-plus/es')['ElCarouselItem']
|
||||
ElCascader: typeof import('element-plus/es')['ElCascader']
|
||||
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
|
||||
ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup']
|
||||
ElCol: typeof import('element-plus/es')['ElCol']
|
||||
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
|
||||
ElDialog: typeof import('element-plus/es')['ElDialog']
|
||||
ElDropdown: typeof import('element-plus/es')['ElDropdown']
|
||||
ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
|
||||
ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
|
||||
ElEmpty: typeof import('element-plus/es')['ElEmpty']
|
||||
ElForm: typeof import('element-plus/es')['ElForm']
|
||||
ElFormItem: typeof import('element-plus/es')['ElFormItem']
|
||||
ElIcon: typeof import('element-plus/es')['ElIcon']
|
||||
ElImage: typeof import('element-plus/es')['ElImage']
|
||||
ElImageViewer: typeof import('element-plus/es')['ElImageViewer']
|
||||
ElInput: typeof import('element-plus/es')['ElInput']
|
||||
ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
|
||||
ElLink: typeof import('element-plus/es')['ElLink']
|
||||
ElOption: typeof import('element-plus/es')['ElOption']
|
||||
ElPagination: typeof import('element-plus/es')['ElPagination']
|
||||
ElPopover: typeof import('element-plus/es')['ElPopover']
|
||||
ElRadio: typeof import('element-plus/es')['ElRadio']
|
||||
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
|
||||
ElRow: typeof import('element-plus/es')['ElRow']
|
||||
ElSelect: typeof import('element-plus/es')['ElSelect']
|
||||
ElTable: typeof import('element-plus/es')['ElTable']
|
||||
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
|
||||
ElTabPane: typeof import('element-plus/es')['ElTabPane']
|
||||
ElTabs: typeof import('element-plus/es')['ElTabs']
|
||||
ElTag: typeof import('element-plus/es')['ElTag']
|
||||
ElTooltip: typeof import('element-plus/es')['ElTooltip']
|
||||
ElUpload: typeof import('element-plus/es')['ElUpload']
|
||||
KlCardDetail: typeof import('./../src/components/kl-card-detail/index.vue')['default']
|
||||
KlCardPicture: typeof import('./../src/components/kl-card-picture/index.vue')['default']
|
||||
KlEmail: typeof import('./../src/components/kl-email/index.vue')['default']
|
||||
KlFormTitle: typeof import('./../src/components/kl-form-title/index.vue')['default']
|
||||
KlLogin: typeof import('./../src/components/kl-login/index.vue')['default']
|
||||
KlNavTab: typeof import('./../src/components/kl-nav-tab/index.vue')['default']
|
||||
KlQueryFilter: typeof import('./../src/components/kl-query-filter/index.vue')['default']
|
||||
KlQuickMenu: typeof import('./../src/components/kl-quick-menu/index.vue')['default']
|
||||
KlRegister: typeof import('./../src/components/kl-register/index.vue')['default']
|
||||
KlService: typeof import('./../src/components/kl-quick-menu/components/kl-service.vue')['default']
|
||||
KlSvgIcon: typeof import('./../src/components/kl-svg-icon/index.vue')['default']
|
||||
KlTabBar: typeof import('./../src/components/kl-tab-bar/index.vue')['default']
|
||||
KlTag: typeof import('./../src/components/kl-tag/index.vue')['default']
|
||||
KlUploader: typeof import('./../src/components/kl-uploader/index.vue')['default']
|
||||
KlVip: typeof import('./../src/components/kl-quick-menu/components/kl-vip.vue')['default']
|
||||
KlWallpaperCategory: typeof import('./../src/components/kl-wallpaper-category/index.vue')['default']
|
||||
RouterLink: typeof import('vue-router')['RouterLink']
|
||||
RouterView: typeof import('vue-router')['RouterView']
|
||||
V2: typeof import('./../src/components/kl-tab-bar/v2/index.vue')['default']
|
||||
}
|
||||
export interface ComponentCustomProperties {
|
||||
vLoading: typeof import('element-plus/es')['ElLoadingDirective']
|
||||
}
|
||||
}
|
||||
38
types/global.d.ts
vendored
Normal file
38
types/global.d.ts
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
/// <reference types="vite/client" />
|
||||
interface IResponse<T = any> {
|
||||
statusCode: string
|
||||
code: number | string
|
||||
data: T
|
||||
message: string
|
||||
msg: string
|
||||
}
|
||||
|
||||
interface Window {
|
||||
/**
|
||||
* 当前APP运行环境
|
||||
* */
|
||||
APP_RUN_ENV: 'local' | 'dev' | 'test' | 'prod' | 'pre'
|
||||
// 是否存在无界
|
||||
__POWERED_BY_WUJIE__?: boolean
|
||||
// 子应用公共加载路径
|
||||
__WUJIE_PUBLIC_PATH__: string
|
||||
// 原生的querySelector
|
||||
__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__: typeof Document.prototype.querySelector
|
||||
// 原生的querySelectorAll
|
||||
__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR_ALL__: typeof Document.prototype.querySelectorAll
|
||||
// 原生的window对象
|
||||
__WUJIE_RAW_WINDOW__: Window
|
||||
// 子应用沙盒实例
|
||||
__WUJIE: WuJie
|
||||
// 子应用mount函数
|
||||
__WUJIE_MOUNT: () => void
|
||||
// 子应用unmount函数
|
||||
__WUJIE_UNMOUNT: () => void
|
||||
// 注入对象
|
||||
$wujie: {
|
||||
bus: EventBus
|
||||
shadowRoot?: ShadowRoot
|
||||
props?: { [key: string]: any }
|
||||
location?: object
|
||||
}
|
||||
}
|
||||
1
types/vite-env.d.ts
vendored
Normal file
1
types/vite-env.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
/// <reference types="vite/client" />
|
||||
Reference in New Issue
Block a user