guy 8 years ago
parent
commit
832bc250a3
  1. 2
      Gruntfile.js
  2. 1
      demo/config.js
  3. 11
      demo/js/base/demo.button.js
  4. 8
      demo/js/config/base.js
  5. 8
      demo/js/config/case.js
  6. 14
      demo/js/config/layout.js
  7. 8
      demo/js/config/widget.js
  8. 4464
      dist/core.js
  9. 4463
      src/core/proto/moment.js

2
Gruntfile.js

@ -73,7 +73,7 @@ module.exports = function (grunt) {
},
demoJs: {
src: ['demo/version.js', 'demo/config.js', 'demo/app.js', 'demo/js/**/*.js'],
src: ['demo/version.js', 'demo/app.js', 'demo/js/**/*.js', 'demo/config.js'],
dest: 'demo/dist/demo.js'
},
demoCss: {

1
demo/config.js

@ -0,0 +1 @@
Demo.CONFIG = Demo.LAYOUT_CONFIG.concat(Demo.BASE_CONFIG).concat(Demo.CASE_CONFIG).concat(Demo.WIDGET_CONFIG);

11
demo/js/base/demo.button.js

@ -0,0 +1,11 @@
Demo.Button = BI.inherit(BI.Widget, {
props: {
baseCls: "demo-face"
},
render: function () {
return {
type: "bi.vertical",
}
}
});
$.shortcut("demo.button", Demo.Button);

8
demo/js/config/base.js

@ -0,0 +1,8 @@
Demo.BASE_CONFIG = [{
id: 2,
text: "基础控件"
}, {
pId: 2,
text: "bi.center_adapt",
value: "demo.center_adapt"
}];

8
demo/js/config/case.js

@ -0,0 +1,8 @@
Demo.CASE_CONFIG = [{
id: 3,
text: "基础控件"
}, {
pId: 3,
text: "bi.center_adapt",
value: "demo.center_adapt"
}];

14
demo/js/config.js → demo/js/config/layout.js

@ -1,18 +1,6 @@
Demo.CONFIG = [{
Demo.LAYOUT_CONFIG = [{
id: 1,
text: "布局"
}, {
id: 2,
text: "基础控件"
}, {
id: 3,
text: "实例控件"
}, {
id: 4,
text: "详细控件"
}, {
id: 5,
text: "通用组件"
}, {
pId: 1,
text: "bi.center_adapt",

8
demo/js/config/widget.js

@ -0,0 +1,8 @@
Demo.WIDGET_CONFIG = [{
id: 4,
text: "基础控件"
}, {
pId: 4,
text: "bi.center_adapt",
value: "demo.center_adapt"
}];

4464
dist/core.js vendored

File diff suppressed because it is too large Load Diff

4463
src/core/proto/moment.js

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save