chore: update deps

This commit is contained in:
kailong321200875
2022-06-05 20:39:16 +08:00
parent 1c339a6039
commit a4526d7cb4
9 changed files with 182 additions and 182 deletions

View File

@@ -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 {

View File

@@ -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)
}

View File

@@ -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)
})

View File

@@ -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)

View File

@@ -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)
}

View File

@@ -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)
}

View File

@@ -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