1 | /**
|
2 | * Created by zhangmike on 16/10/20.
|
3 | */
|
4 | /* global $ */
|
5 | import GMP from './jsframework/index';
|
6 | // import * as widgets from './uiframework/index';
|
7 | import BaseClass from './uiframework/base/Class';
|
8 |
|
9 | GMP.Widgets = function () {
|
10 |
|
11 | };
|
12 | GMP.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 |
|
20 | GMP.BaseClass = BaseClass;
|
21 |
|
22 | // Object.assign(GMP.Widgets, widgets);
|
23 |
|
24 | let uiInit = function() {
|
25 | // $('body').addClass('opg');
|
26 | };
|
27 | // UI初始化
|
28 | // uiInit();
|
29 |
|
30 | export default GMP;
|