25 lines
479 B
JavaScript
25 lines
479 B
JavaScript
#include utility.js
|
|
#include ui/chat-message-list.js
|
|
|
|
Umi.UI.ChatInterface = function(chatForm) {
|
|
const messages = new Umi.UI.ChatMessageList;
|
|
|
|
const html = $e({
|
|
attrs: {
|
|
className: 'main',
|
|
},
|
|
child: [
|
|
messages,
|
|
chatForm,
|
|
],
|
|
});
|
|
|
|
return {
|
|
getMessageList: function() {
|
|
return messages;
|
|
},
|
|
getElement: function() {
|
|
return html;
|
|
},
|
|
};
|
|
};
|