31 lines
585 B
JavaScript
31 lines
585 B
JavaScript
|
#include utility.js
|
||
|
#include ui/chat-input-main.js
|
||
|
#include ui/chat-input-menus.js
|
||
|
|
||
|
Umi.UI.ChatInput = function() {
|
||
|
const menus = new Umi.UI.ChatInputMenus,
|
||
|
main = new Umi.UI.ChatInputMain;
|
||
|
|
||
|
const html = $e({
|
||
|
attrs: {
|
||
|
className: 'input',
|
||
|
},
|
||
|
child: [
|
||
|
menus,
|
||
|
main,
|
||
|
],
|
||
|
});
|
||
|
|
||
|
return {
|
||
|
getMenus: function() {
|
||
|
return menus;
|
||
|
},
|
||
|
getMain: function() {
|
||
|
return main;
|
||
|
},
|
||
|
getElement: function() {
|
||
|
return html;
|
||
|
},
|
||
|
};
|
||
|
};
|