diff --git a/examples/App.vue b/examples/App.vue index db100d4..3a09658 100644 --- a/examples/App.vue +++ b/examples/App.vue @@ -57,6 +57,7 @@ ($refs.IMUI ? $refs.IMUI.drawerVisible : false) ? "关闭" : "打开" }}抽屉 +
{ - console.log(IMUI.hasContact("cont1act-3")); - }, 2000); + IMUI.changeContact('contact-1'); + }, 500); IMUI.setLastContentRender("event", message => { return `[自定义通知内容]`; diff --git a/packages/components/index.vue b/packages/components/index.vue index 16ae082..5d68064 100644 --- a/packages/components/index.vue +++ b/packages/components/index.vue @@ -478,23 +478,34 @@ export default { curact )} - - +
+
+ + +
+
+ {useScopedSlot( + this.$scopedSlots["message-side"], + null, + curact + )} +
+
); nodes.push( @@ -1051,10 +1062,9 @@ bezier = cubic-bezier(0.645, 0.045, 0.355, 1) background #efefef display flex flex-direction column - +e(scroll){ + +e(scroll) overflow-y auto scrollbar-light() - } +e(label) padding 6px 14px 6px 14px color #666 @@ -1074,6 +1084,16 @@ bezier = cubic-bezier(0.645, 0.045, 0.355, 1) padding 15px 15px +e(displayname) font-size 16px ++b(lemon-vessel) + display flex + flex 1 + +e(left) + display flex + flex-direction column + height 100% + flex 1 + +e(right) + flex 0 +b(lemon-messages) flex 1 height auto