layui.define(['table', 'jquery', 'element', 'dropdown'], function (exports) { "use strict"; var MOD_NAME = 'messageCenter', $ = layui.jquery, dropdown = layui.dropdown; var message = function (opt) { this.option = opt; }; message.prototype.render = function (opt) { var option = { elem: opt.elem, url: opt.url ? opt.url : false, height: opt.height, data: opt.data } if (option.url != false) { $.get(option.url, function (result) { const { code, success, data } = result; $(`${opt.elem}`).append(`