Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
赵扁扁啊
基于vue的头像自动生成器
提交
6af38b17
基
基于vue的头像自动生成器
项目概览
赵扁扁啊
/
基于vue的头像自动生成器
与 Fork 源项目一致
Fork自
虎纹鲨鱼 / avatar
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
基
基于vue的头像自动生成器
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
6af38b17
编写于
2月 26, 2022
作者:
L
LeoKu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update type modifier
上级
dbd6aa95
变更
10
显示空白变更内容
内联
并排
Showing
10 changed file
with
35 addition
and
31 deletion
+35
-31
src/App.vue
src/App.vue
+3
-2
src/components/Configurator.vue
src/components/Configurator.vue
+1
-2
src/components/VueColorAvatar.vue
src/components/VueColorAvatar.vue
+1
-1
src/components/widgets/Background.vue
src/components/widgets/Background.vue
+1
-1
src/env.d.ts
src/env.d.ts
+1
-1
src/hooks/useAvatarOption.ts
src/hooks/useAvatarOption.ts
+1
-1
src/store/index.ts
src/store/index.ts
+3
-4
src/types/index.ts
src/types/index.ts
+15
-15
src/utils/constant.ts
src/utils/constant.ts
+1
-1
src/utils/index.ts
src/utils/index.ts
+8
-3
未找到文件。
src/App.vue
浏览文件 @
6af38b17
...
...
@@ -71,8 +71,9 @@ import ActionBar from '@/components/ActionBar.vue'
import
CodeModal
from
'
@/components/CodeModal.vue
'
import
Configurator
from
'
@/components/Configurator.vue
'
import
DownloadModal
from
'
@/components/DownloadModal.vue
'
import
type
{
VueColorAvatarRef
}
from
'
@/components/VueColorAvatar.vue
'
import
VueColorAvatar
from
'
@/components/VueColorAvatar.vue
'
import
VueColorAvatar
,
{
type
VueColorAvatarRef
,
}
from
'
@/components/VueColorAvatar.vue
'
import
{
ActionType
}
from
'
@/enums
'
import
{
useAvatarOption
}
from
'
@/hooks
'
import
Container
from
'
@/layouts/Container.vue
'
...
...
src/components/Configurator.vue
浏览文件 @
6af38b17
...
...
@@ -70,8 +70,7 @@ import { useI18n } from 'vue-i18n'
import
PerfectScrollbar
from
'
@/components/PerfectScrollbar.vue
'
import
SectionWrapper
from
'
@/components/SectionWrapper.vue
'
import
type
{
WidgetShape
,
WrapperShape
}
from
'
@/enums
'
import
{
WidgetType
}
from
'
@/enums
'
import
{
type
WidgetShape
,
type
WrapperShape
,
WidgetType
}
from
'
@/enums
'
import
{
useAvatarOption
}
from
'
@/hooks
'
import
{
SETTINGS
}
from
'
@/utils/constant
'
import
{
previewData
}
from
'
@/utils/dynamic-data
'
...
...
src/components/VueColorAvatar.vue
浏览文件 @
6af38b17
...
...
@@ -24,7 +24,7 @@ export interface VueColorAvatarRef {
import
{
ref
,
toRefs
,
watchEffect
}
from
'
vue
'
import
{
WrapperShape
}
from
'
@/enums
'
import
type
{
AvatarOption
}
from
'
@/types
'
import
{
type
AvatarOption
}
from
'
@/types
'
import
{
getRandomAvatarOption
}
from
'
@/utils
'
import
{
AVATAR_LAYER
,
NONE
}
from
'
@/utils/constant
'
import
{
widgetData
}
from
'
@/utils/dynamic-data
'
...
...
src/components/widgets/Background.vue
浏览文件 @
6af38b17
...
...
@@ -3,7 +3,7 @@
</
template
>
<
script
lang=
"ts"
setup
>
import
type
{
AvatarOption
}
from
'
../../types
'
import
{
type
AvatarOption
}
from
'
../../types
'
interface
BackgroundProps
{
color
:
AvatarOption
[
'
background
'
][
'
color
'
]
...
...
src/env.d.ts
浏览文件 @
6af38b17
/// <reference types="vite/client" />
declare
module
'
*.vue
'
{
import
type
{
DefineComponent
}
from
'
vue
'
import
{
type
DefineComponent
}
from
'
vue
'
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
const
component
:
DefineComponent
<
{},
{},
any
>
export
default
component
...
...
src/hooks/useAvatarOption.ts
浏览文件 @
6af38b17
...
...
@@ -2,7 +2,7 @@ import { computed } from 'vue'
import
{
useStore
}
from
'
@/store
'
import
{
SET_AVATAR_OPTION
}
from
'
@/store/mutation-type
'
import
type
{
AvatarOption
}
from
'
@/types
'
import
{
type
AvatarOption
}
from
'
@/types
'
export
default
function
useAvatarOption
()
{
const
store
=
useStore
()
...
...
src/store/index.ts
浏览文件 @
6af38b17
import
type
{
InjectionKey
}
from
'
vue
'
import
type
{
Store
}
from
'
vuex
'
import
{
createStore
,
useStore
as
baseUseStore
}
from
'
vuex
'
import
{
type
InjectionKey
}
from
'
vue
'
import
{
type
Store
,
createStore
,
useStore
as
baseUseStore
}
from
'
vuex
'
import
{
WrapperShape
}
from
'
@/enums
'
import
type
{
AvatarOption
}
from
'
@/types
'
import
{
type
AvatarOption
}
from
'
@/types
'
import
{
getRandomAvatarOption
}
from
'
@/utils
'
import
{
SCREEN
}
from
'
@/utils/constant
'
...
...
src/types/index.ts
浏览文件 @
6af38b17
import
type
{
NONE
}
from
'
@/utils/constant
'
import
{
type
NONE
}
from
'
@/utils/constant
'
export
type
None
=
typeof
NONE
import
type
{
BeardShape
,
ClothesShape
,
EarringsShape
,
EarShape
,
EyebrowsShape
,
EyesShape
,
FaceShape
,
Gender
,
GlassesShape
,
MouthShape
,
NoseShape
,
TopsShape
,
WrapperShape
,
import
{
type
BeardShape
,
type
ClothesShape
,
type
EarringsShape
,
type
EarShape
,
type
EyebrowsShape
,
type
EyesShape
,
type
FaceShape
,
type
Gender
,
type
GlassesShape
,
type
MouthShape
,
type
NoseShape
,
type
TopsShape
,
type
WrapperShape
,
}
from
'
../enums
'
interface
Widget
<
Shape
>
{
...
...
src/utils/constant.ts
浏览文件 @
6af38b17
import
type
{
AvatarOption
,
AvatarSettings
}
from
'
@/types
'
import
{
type
AvatarOption
,
type
AvatarSettings
}
from
'
@/types
'
import
{
BeardShape
,
...
...
src/utils/index.ts
浏览文件 @
6af38b17
import
type
{
EarringsShape
,
GlassesShape
}
from
'
@/enums
'
import
{
BeardShape
,
Gender
,
TopsShape
}
from
'
@/enums
'
import
type
{
AvatarOption
,
None
}
from
'
@/types
'
import
{
type
EarringsShape
,
type
GlassesShape
,
BeardShape
,
Gender
,
TopsShape
,
}
from
'
@/enums
'
import
{
type
AvatarOption
,
type
None
}
from
'
@/types
'
import
{
NONE
,
SETTINGS
,
SPECIAL_AVATARS
}
from
'
./constant
'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录