消息-A切换-添加选中样式

main
ysn 3 days ago
parent 4146946fdd
commit e4acdd4299
  1. 2
      src/views/message/components/MessageEditor.vue
  2. 3
      src/views/message/index.vue

@ -1334,7 +1334,7 @@ export default {
.el-dropdown-menu {
.font-size-selected {
color: #009393;
font-weight: 500;
font-weight: 700;
}
}
</style>

@ -13,6 +13,7 @@
<MessageEditor
ref="messageEditor"
:group-info="groupInfo"
:font-size="currentFontSize"
@send-message="handleSendMessage"
@update-message-status="handleUpdateMessageStatus"
@font-size-change="handleFontSizeChange"
@ -55,6 +56,7 @@ export default {
data() {
return {
groupInfo: null,
currentFontSize: 14,
};
},
@ -348,6 +350,7 @@ export default {
},
handleFontSizeChange(fontSize) {
this.currentFontSize = fontSize;
if (this.$refs.messageDisplay) {
this.$refs.messageDisplay.setFontSize(fontSize);
}

Loading…
Cancel
Save