advanced-chat / vue-advanced-chat

A beautiful chat rooms web component compatible with all Javascript frameworks
https://advanced-chat.github.io/vue-advanced-chat/
MIT License
1.72k stars 467 forks source link

2.0.0 bugs #348

Closed 1259549061 closed 2 years ago

1259549061 commented 2 years ago

:show-files="0" :show-audio="0" :show-emojis="0" :show-reaction-emojis="0" :styles=" JSON.stringify({ container: { border: 1px solid ${variable.gray2}, boxShadow: 'none', }, room: { //colorUsername: '#fff', }, sidemenu: { background: variable.white, backgroundHover: '#fafbfe', backgroundActive: variable.elPrimary, colorActive: variable.white, borderColorSearch: '#e1e5e8', }, }) "

show-files set false can not work, but 0 is ok. styles can not work

:show-search = "false"

show-search false or 0 can not work.

antoine92190 commented 2 years ago

I cannot reproduce any of those issues. Could you share your repo so I can have a look?

antoine92190 commented 2 years ago

Closing this until I can reproduce

1259549061 commented 2 years ago

I cannot reproduce any of those issues. Could you share your repo so I can have a look?

I'm sorry to reply you so late~

image

look at this, It is easy to appear

demo code : https://github.com/1259549061/advanced-chat-demo.git

NINI1988 commented 2 years ago

You have to remove the colons before the boolean properties. So write:

show-emojis="false"

instead of:

:show-emojis="false"