-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
68 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
registry=https://registry.npmmirror.com/ | ||
shamefully-hoist=true | ||
strict-peer-dependencies=false | ||
auto-install-peers=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
<template> | ||
<n-icon :size="props.size" :depth="props.depth" :color="props.color"> | ||
<n-icon | ||
:size="props.size" | ||
:depth="props.depth" | ||
:color="props.color" | ||
> | ||
<Icon :icon="props.icon" /> | ||
</n-icon> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { Icon } from '@iconify/vue'; | ||
const props = withDefaults( | ||
defineProps<{ | ||
icon?: string; | ||
color?: string; | ||
size?: number; | ||
depth?: 1 | 2 | 3 | 4 | 5; | ||
}>(), | ||
{ | ||
size: 18, | ||
icon: 'icon-park-outline:baby-feet', | ||
}, | ||
); | ||
interface iconPorps { | ||
icon?: string; | ||
color?: string; | ||
size?: number; | ||
depth?: 1 | 2 | 3 | 4 | 5; | ||
} | ||
const props = withDefaults(defineProps<iconPorps>(), { | ||
size: 18, | ||
icon: 'icon-park-outline:baby-feet', | ||
}); | ||
</script> | ||
|
||
<style scoped></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './sdk'; | ||
export * from './service'; | ||
export * from './env'; | ||
export * from './system'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** 本地存储信息字段 */ | ||
export const storageKey = { | ||
/* 用户信息 */ | ||
userInfo: '__USER_INFO__', | ||
/* token */ | ||
token: '__TOKEN__', | ||
/* refreshToken */ | ||
refreshToken: '__REFRESH_TOKEN__', | ||
/* 标签栏信息 */ | ||
tabsRoutes: '__TABS_ROUTES__', | ||
}; | ||
|
||
/** 本地存储前缀 */ | ||
export const STORAGE_PREFIX = ''; | ||
|
||
/** 本地存储加密密钥 */ | ||
export const STORAGE_ENCRYPT_SECRET = '__CryptoJS_Secret__'; | ||
|
||
/** 本地存储缓存时长 */ | ||
export const STORAGE_DEFAULT_CACHE_TIME = 60 * 60 * 24 * 7; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters