liteng 3fb9ac6005 Revert "彻底分离出UI。"
This reverts commit 058ec5beac334a60313c681747aaa026d808ed75.
2018-11-18 10:13:30 +08:00

27 lines
505 B
JavaScript

import Control from './Control';
/**
* 原生html
* @author tengge / https://github.com/tengge1
* @param {*} options 选项
*/
function Html(options) {
Control.call(this, options);
options = options || {};
this.html = options.html || null;
}
Html.prototype = Object.create(Control.prototype);
Html.prototype.constructor = Html;
/**
* 渲染控件
*/
Html.prototype.render = function () {
if (this.html) {
this.parent.innerHTML += this.html;
}
};
export default Html;