Iframe_wev8.js
486 Bytes
define(['mUtil', "Component"], function (mUtil, Component) {
var Iframe = function (options) {
Component.super(this, options);
this.type = "Iframe";
this.tpl = this.type + "_html";
this.css = this.type + "_css";
var vm = this.viewModel = {
width: "100%"
};
this.beforeMount = function () {
vm.width = vm.width ? (vm.width+"px") : "100%";
vm.height = vm.height || this.$container.height();
vm.height += "px";
};
};
return Component.init(Iframe);
});