([
- { id: '1', src: [], href: 'a' },
- { id: '2', src: [], href: 'a' },
+ { id: '1', src: [], icon: '', href: 'a' },
+ { id: '2', src: [], icon: '', href: 'a' },
]);
const base_data = reactive({
// 头像大小
@@ -61,7 +65,10 @@ const base_data = reactive({
// 用户名字号
user_name_size: 16,
// 用户ID颜色
- user_id_color_list: [{color: 'rgba(254, 184, 143, 1)', color_percentage: ''}, {color: 'rgba(255, 227, 220, 1)', color_percentage: ''}],
+ user_id_color_list: [
+ { color: 'rgba(254, 184, 143, 1)', color_percentage: '' },
+ { color: 'rgba(255, 227, 220, 1)', color_percentage: '' },
+ ],
// 用户ID颜色
user_id_color: 'rgba(0, 0, 0, 1)',
// 用户ID方向
diff --git a/src/components/model-user-info/model-user-info-content.vue b/src/components/model-user-info/model-user-info-content.vue
index c548d907..f664d6d9 100644
--- a/src/components/model-user-info/model-user-info-content.vue
+++ b/src/components/model-user-info/model-user-info-content.vue
@@ -15,7 +15,7 @@
-
+
@@ -30,13 +30,7 @@ import { get_math } from '@/utils';
const props = defineProps({
value: {
type: Object,
- default: () => ({
- user_info: ['1', '2', '3', '4', '5'],
- icon_setting: [
- { id: '1', src: 'set', href: {} },
- { id: '2', src: 'notice', href: {} },
- ],
- }),
+ default: () => {},
},
});
const form = reactive(props.value);
@@ -52,12 +46,13 @@ const icon_setting_remove = (index: number) => {
form.icon_setting.splice(index, 1);
};
const icon_setting_sort = (item: any) => {
- form.icon_setting = item
+ form.icon_setting = item;
};
const add = () => {
form.icon_setting.push({
id: get_math(),
src: [],
+ icon: '',
href: {},
});
emit('update:value', form);
diff --git a/src/layout/components/main/default/user-info.ts b/src/layout/components/main/default/user-info.ts
index 2bdb51aa..8437f155 100644
--- a/src/layout/components/main/default/user-info.ts
+++ b/src/layout/components/main/default/user-info.ts
@@ -2,7 +2,7 @@ import defaultCommon from './index';
interface DefaultUserInfo {
content: {
user_info: string[];
- icon_setting: { id: string; src: uploadList[]; href: object }[];
+ icon_setting: { id: string; src: uploadList[]; href: object; icon: string }[];
};
style: {
user_avatar_size: string;
@@ -29,8 +29,8 @@ const defaultUserInfo: DefaultUserInfo = {
content: {
user_info: ['1', '2', '3', '4', '5'],
icon_setting: [
- { id: '1', src: [{ id: 1, url: '/src/assets/images/components/model-user-info/set.png', original: '设置', title: '设置', ext: '.png', type: 'img' }], href: {} },
- { id: '2', src: [{ id: 2, url: '/src/assets/images/components/model-user-info/notice.png', original: '消息', title: '消息', ext: '.png', type: 'img' }], href: {} },
+ { id: '1', src: [], icon: 'applet-me-settings-acquiesce', href: {} },
+ { id: '2', src: [], icon: 'applet-me-message-acquiesce', href: {} },
],
},
style: {
@@ -38,7 +38,10 @@ const defaultUserInfo: DefaultUserInfo = {
user_name_color: 'rgba(0, 0, 0, 1)',
user_name_weight: '500',
user_name_size: 16,
- user_id_color_list: [{color: 'rgba(254, 184, 143, 1)', color_percentage: ''}, {color: 'rgba(255, 227, 220, 1)', color_percentage: ''}],
+ user_id_color_list: [
+ { color: 'rgba(254, 184, 143, 1)', color_percentage: '' },
+ { color: 'rgba(255, 227, 220, 1)', color_percentage: '' },
+ ],
user_id_color: 'rgba(0, 0, 0, 1)',
user_id_direction: '90deg',
user_id_weight: '400',
diff --git a/src/layout/components/navbar/index.vue b/src/layout/components/navbar/index.vue
index 97dcacd8..9d9a2a18 100644
--- a/src/layout/components/navbar/index.vue
+++ b/src/layout/components/navbar/index.vue
@@ -49,6 +49,7 @@
+