UNPKG

638 BJavaScriptView Raw
1/**
2 * Created by zhangmike on 16/10/20.
3 */
4/* global $ */
5import GMP from './jsframework/index';
6// import * as widgets from './uiframework/index';
7import BaseClass from './uiframework/base/Class';
8
9GMP.Widgets = function () {
10
11};
12GMP.Widgets['register'] = function (name, options) {
13 if (this[name] != null) {
14 throw new Error('已存在该名称的Widgets,请改名!');
15 } else {
16 this[name] = BaseClass.inherits(options);
17 }
18};
19
20GMP.BaseClass = BaseClass;
21
22// Object.assign(GMP.Widgets, widgets);
23
24let uiInit = function() {
25 // $('body').addClass('opg');
26};
27// UI初始化
28// uiInit();
29
30export default GMP;