chore: update deps
This commit is contained in:
@@ -65,7 +65,7 @@ const dialogStyle = computed(() => {
|
||||
draggable
|
||||
:close-on-click-modal="false"
|
||||
>
|
||||
<template #title>
|
||||
<template #header>
|
||||
<div class="flex justify-between">
|
||||
<slot name="title">
|
||||
{{ title }}
|
||||
@@ -92,8 +92,8 @@ const dialogStyle = computed(() => {
|
||||
|
||||
<style lang="less">
|
||||
.@{elNamespace}-dialog__header {
|
||||
border-bottom: 1px solid var(--tags-view-border-color);
|
||||
margin-right: 0 !important;
|
||||
border-bottom: 1px solid var(--tags-view-border-color);
|
||||
}
|
||||
|
||||
.@{elNamespace}-dialog__footer {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { App } from 'vue'
|
||||
// import type { App } from 'vue'
|
||||
import { Icon } from './Icon'
|
||||
|
||||
export const setupGlobCom = (app: App<Element>): void => {
|
||||
export const setupGlobCom = (app: any): void => {
|
||||
app.component('Icon', Icon)
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { App } from 'vue'
|
||||
// import type { App } from 'vue'
|
||||
|
||||
// 需要全局引入一些组件,如ElScrollbar,不然一些下拉项样式有问题
|
||||
import { ElLoading, ElScrollbar } from 'element-plus'
|
||||
@@ -7,7 +7,7 @@ const plugins = [ElLoading]
|
||||
|
||||
const components = [ElScrollbar]
|
||||
|
||||
export const setupElementPlus = (app: App) => {
|
||||
export const setupElementPlus = (app: any) => {
|
||||
plugins.forEach((plugin) => {
|
||||
app.use(plugin)
|
||||
})
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { App } from 'vue'
|
||||
// import type { App } from 'vue'
|
||||
import { createI18n } from 'vue-i18n'
|
||||
import { useLocaleStoreWithOut } from '@/store/modules/locale'
|
||||
import type { I18n, I18nOptions } from 'vue-i18n'
|
||||
@@ -35,7 +35,7 @@ const createI18nOptions = async (): Promise<I18nOptions> => {
|
||||
}
|
||||
}
|
||||
|
||||
export const setupI18n = async (app: App) => {
|
||||
export const setupI18n = async (app: any) => {
|
||||
const options = await createI18nOptions()
|
||||
i18n = createI18n(options) as I18n
|
||||
app.use(i18n)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { createRouter, createWebHashHistory } from 'vue-router'
|
||||
import type { RouteRecordRaw } from 'vue-router'
|
||||
import type { App } from 'vue'
|
||||
// import type { App } from 'vue'
|
||||
import { Layout, getParentLayout } from '@/utils/routerHelper'
|
||||
import { useI18n } from '@/hooks/web/useI18n'
|
||||
|
||||
@@ -552,7 +552,7 @@ export const resetRouter = (): void => {
|
||||
})
|
||||
}
|
||||
|
||||
export const setupRouter = (app: App<Element>) => {
|
||||
export const setupRouter = (app: any) => {
|
||||
app.use(router)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { App } from 'vue'
|
||||
// import type { App } from 'vue'
|
||||
import { createPinia } from 'pinia'
|
||||
import piniaPluginPersist from 'pinia-plugin-persist'
|
||||
|
||||
@@ -6,7 +6,7 @@ const store = createPinia()
|
||||
|
||||
store.use(piniaPluginPersist)
|
||||
|
||||
export const setupStore = (app: App<Element>) => {
|
||||
export const setupStore = (app: any) => {
|
||||
app.use(store)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { App, Plugin } from 'vue'
|
||||
// import type { Plugin } from 'vue'
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -8,7 +8,7 @@ import type { App, Plugin } from 'vue'
|
||||
*/
|
||||
export const withInstall = <T>(component: T, alias?: string) => {
|
||||
const comp = component as any
|
||||
comp.install = (app: App) => {
|
||||
comp.install = (app: any) => {
|
||||
app.component(comp.name || comp.displayName, component)
|
||||
if (alias) {
|
||||
app.config.globalProperties[alias] = component
|
||||
|
||||
Reference in New Issue
Block a user