diff --git a/components.d.ts b/components.d.ts index 350e4e9..bacd702 100644 --- a/components.d.ts +++ b/components.d.ts @@ -11,12 +11,14 @@ declare module '@vue/runtime-core' { Comment: typeof import('./src/components/Comment.vue')['default'] ElAvatar: typeof import('element-plus/es')['ElAvatar'] ElButton: typeof import('element-plus/es')['ElButton'] + ElButtonGroup: typeof import('element-plus/es')['ElButtonGroup'] ElCard: typeof import('element-plus/es')['ElCard'] ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] ElCol: typeof import('element-plus/es')['ElCol'] ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] ElDialog: typeof import('element-plus/es')['ElDialog'] ElDivider: typeof import('element-plus/es')['ElDivider'] + ElEmpty: typeof import('element-plus/es')['ElEmpty'] ElForm: typeof import('element-plus/es')['ElForm'] ElFormItem: typeof import('element-plus/es')['ElFormItem'] ElIcon: typeof import('element-plus/es')['ElIcon'] @@ -32,6 +34,7 @@ declare module '@vue/runtime-core' { ElUpload: typeof import('element-plus/es')['ElUpload'] Footer: typeof import('./src/components/Footer.vue')['default'] FriendLinks: typeof import('./src/components/FriendLinks.vue')['default'] + MessageBox: typeof import('./src/components/MessageBox.vue')['default'] MusicPlayer: typeof import('./src/components/MusicPlayer.vue')['default'] PersonalInfo: typeof import('./src/components/PersonalInfo.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/components/MessageBox.vue b/src/components/MessageBox.vue new file mode 100644 index 0000000..45ab253 --- /dev/null +++ b/src/components/MessageBox.vue @@ -0,0 +1,197 @@ + + + + + diff --git a/src/components/TopNavBar.vue b/src/components/TopNavBar.vue index 0dc0e6a..224b9d3 100644 --- a/src/components/TopNavBar.vue +++ b/src/components/TopNavBar.vue @@ -22,13 +22,13 @@
- + 登录
- + 注册 @@ -37,19 +37,19 @@
- + 个人中心
-
- +
+ - 消息 + 消息 {{newMessageCount}}
- + 设置 @@ -101,6 +101,7 @@
+