This commit is contained in:
Nex Zhu 2022-01-04 18:40:20 +08:00
commit fa8cbdbc35
No known key found for this signature in database
GPG Key ID: 15C6254AD19362B4
9 changed files with 1175 additions and 117 deletions

1278
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -43,7 +43,7 @@
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^16.0.0", "@commitlint/cli": "^16.0.0",
"@commitlint/config-conventional": "^16.0.0", "@commitlint/config-conventional": "^16.0.0",
"@daotl/eslint-config-vue": "0.2.3", "@daotl/eslint-config-vue": "0.2.4",
"@daotl/prettier-config": "^0.1.2", "@daotl/prettier-config": "^0.1.2",
"@daotl/tsconfig": "^0.0.4", "@daotl/tsconfig": "^0.0.4",
"@fesjs/plugin-sass": "^2.0.0", "@fesjs/plugin-sass": "^2.0.0",

View File

@ -1,6 +1,6 @@
import { access } from '@fesjs/fes' import { access } from '@fesjs/fes'
import type { App } from 'vue'
import { createPinia } from 'pinia' import { createPinia } from 'pinia'
import type { App } from 'vue'
import PageLoading from '~/components/PageLoading.vue' import PageLoading from '~/components/PageLoading.vue'
import UserCenter from '~/components/UserCenter.vue' import UserCenter from '~/components/UserCenter.vue'

View File

@ -22,6 +22,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { enums } from '@fesjs/fes' import { enums } from '@fesjs/fes'
import useCounterStore from '~/stores/counter' import useCounterStore from '~/stores/counter'
const store = useCounterStore() const store = useCounterStore()

View File

@ -1,4 +1,4 @@
import { defineStore, acceptHMRUpdate } from 'pinia' import { acceptHMRUpdate, defineStore } from 'pinia'
const useCounterStore = defineStore('counter', { const useCounterStore = defineStore('counter', {
state: () => { state: () => {

View File

@ -1,4 +1,4 @@
import { defineStore, acceptHMRUpdate } from 'pinia' import { acceptHMRUpdate, defineStore } from 'pinia'
const useUserStore = defineStore('user', { const useUserStore = defineStore('user', {
state: () => { state: () => {

View File

@ -9,6 +9,7 @@ declare global {
const effectScope: typeof import('vue')['effectScope'] const effectScope: typeof import('vue')['effectScope']
const EffectScope: typeof import('vue')['EffectScope'] const EffectScope: typeof import('vue')['EffectScope']
const ElButton: typeof import('element-plus/es')['ElButton'] const ElButton: typeof import('element-plus/es')['ElButton']
const ElLoadingDirective: typeof import('element-plus/es')['ElLoadingDirective']
const getCurrentInstance: typeof import('vue')['getCurrentInstance'] const getCurrentInstance: typeof import('vue')['getCurrentInstance']
const getCurrentScope: typeof import('vue')['getCurrentScope'] const getCurrentScope: typeof import('vue')['getCurrentScope']
const h: typeof import('vue')['h'] const h: typeof import('vue')['h']

View File

@ -6,6 +6,7 @@ declare module 'vue' {
export interface GlobalComponents { export interface GlobalComponents {
ElButton: typeof import('element-plus/es')['ElButton'] ElButton: typeof import('element-plus/es')['ElButton']
IMdiAccountBox: typeof import('~icons/mdi/account-box')['default'] IMdiAccountBox: typeof import('~icons/mdi/account-box')['default']
Loading: typeof import('element-plus/es')['ElLoadingDirective']
PageLoading: typeof import('./../components/PageLoading.vue')['default'] PageLoading: typeof import('./../components/PageLoading.vue')['default']
UserCenter: typeof import('./../components/UserCenter.vue')['default'] UserCenter: typeof import('./../components/UserCenter.vue')['default']
} }

View File

@ -1,6 +1,7 @@
// shims.d.ts // shims.d.ts
declare module '*.vue' { declare module '*.vue' {
import { ComponentOptions } from 'vue' import type { ComponentOptions } from 'vue'
const component: ComponentOptions const component: ComponentOptions
export default component export default component
} }