wip: 头像列表开发中

This commit is contained in:
kailong321200875 2024-02-28 15:06:37 +08:00
parent 4146716655
commit 7f6464abc4
7 changed files with 59 additions and 2 deletions

View File

@ -324,6 +324,14 @@ const adminList = [
meta: {
title: 'router.videoPlayer'
}
},
{
path: 'avatars',
component: 'views/Components/Avatars',
name: 'Avatars',
meta: {
title: 'router.avatars'
}
}
]
},
@ -686,6 +694,7 @@ const testList: string[] = [
'/components/waterfall',
'/components/image-cropping',
'/components/video-player',
'/components/avatars',
'function',
'/function/multiple-tabs',
'/function/multiple-tabs-demo/:id',

View File

@ -0,0 +1,3 @@
import Avatars from './src/Avatars.vue'
export { Avatars }

View File

@ -0,0 +1,15 @@
<script setup lang="ts">
import { ComponentSize } from 'element-plus'
import { PropType } from 'vue'
defineProps({
size: {
type: String as PropType<ComponentSize>,
default: ''
}
})
</script>
<template>
<div> 头像 </div>
</template>

View File

@ -186,7 +186,8 @@ export default {
tableVideoPreview: 'Table video preview',
cardTable: 'Card table',
personalCenter: 'Personal center',
personal: 'Personal'
personal: 'Personal',
avatars: 'Avatars'
},
permission: {
hasPermission: 'Please set the operation permission value'
@ -562,5 +563,9 @@ export default {
inputPasswordDemo: {
title: 'InputPassword',
inputPasswordDes: 'Secondary packaging of Input components based on ElementPlus'
},
avatarsDemo: {
title:
'Avatar component for avatar list, secondary packaging based on element plus Avatar component'
}
}

View File

@ -182,7 +182,8 @@ export default {
tableVideoPreview: '表格视频预览',
cardTable: '卡片表格',
personalCenter: '个人中心',
personal: '个人'
personal: '个人',
avatars: '头像列表'
},
permission: {
hasPermission: '请设置操作权限值'
@ -552,5 +553,8 @@ export default {
inputPasswordDemo: {
title: '密码输入框',
inputPasswordDes: '基于 ElementPlus 的 Input 组件二次封装'
},
avatarsDemo: {
title: '头像列表组件基于element-plus的Avatar组件二次封装'
}
}

View File

@ -390,6 +390,14 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [
meta: {
title: t('router.videoPlayer')
}
},
{
path: 'avatars',
component: () => import('@/views/Components/Avatars.vue'),
name: 'Avatars',
meta: {
title: t('router.avatars')
}
}
]
},

View File

@ -0,0 +1,13 @@
<script setup lang="ts">
import { ContentWrap } from '@/components/ContentWrap'
import { useI18n } from '@/hooks/web/useI18n'
import { Avatars } from '@/components/Avatars'
const { t } = useI18n()
</script>
<template>
<ContentWrap :title="t('router.avatars')" :message="t('avatarsDemo.title')">
<Avatars />
</ContentWrap>
</template>