Browse Source

Pull request #1862: 无JIRA任务 整理整理代码

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit 'aadb473930359f85c7745e4e01cc9b42489c5b8e':
  整理整理代码
  整理整理代码
  整理整理代码
master
guy 4 years ago
parent
commit
aeb3ac26d4
  1. 37
      karma.conf.js
  2. 0
      src/base/0.base.js
  3. 0
      src/base/1.pane.js
  4. 0
      src/base/single/0.single.js
  5. 0
      src/base/single/1.text.js
  6. 0
      src/base/single/tip/0.tip.js
  7. 0
      src/case/ztree/0.treeview.js
  8. 0
      src/case/ztree/1.asynctree.js
  9. 0
      src/case/ztree/jquery.ztree.core-3.5.js
  10. 0
      src/case/ztree/jquery.ztree.excheck-3.5.js
  11. 0
      src/case/ztree/list/0.listtreeview.js
  12. 0
      src/case/ztree/list/1.listasynctree.js
  13. 0
      src/case/ztree/list/listparttree.js
  14. 0
      src/case/ztree/parttree.js
  15. 0
      src/case/ztree/tree.display.js
  16. 0
      src/case/ztree/tree.list.display.js
  17. 0
      src/case/ztree/tree.simple.js
  18. 0
      src/case/ztree/treerender.scroll.service.js
  19. 0
      src/case/ztree/treetrender.page.service.js
  20. 0
      src/core/0.foundation.js
  21. 0
      src/core/1.lodash.js
  22. 0
      src/core/2.base.js
  23. 0
      src/core/3.ob.js
  24. 0
      src/core/4.widget.js
  25. 0
      src/core/5.shortcut.js
  26. 0
      src/core/6.inject.js
  27. 0
      src/core/7.plugin.js
  28. 0
      src/core/behavior/0.behavior.js
  29. 0
      src/core/constant/date.i18n.js
  30. 0
      src/core/constant/events.js
  31. 0
      src/core/constant/var.js
  32. 0
      src/core/controller/0.controller.js
  33. 0
      src/core/func/alias.js
  34. 0
      src/core/platform/web/jquery/jquery.mousewheel.js
  35. 0
      src/core/structure/aes.js
  36. 0
      src/core/structure/aspect.js
  37. 0
      src/core/structure/base64.js
  38. 0
      src/core/structure/cache.js
  39. 0
      src/core/structure/cellSizeAndPositionManager.js
  40. 0
      src/core/structure/heap.js
  41. 0
      src/core/structure/linkedHashMap.js
  42. 0
      src/core/structure/lru.js
  43. 0
      src/core/structure/prefixIntervalTree.js
  44. 0
      src/core/structure/queue.js
  45. 0
      src/core/structure/sectionManager.js
  46. 0
      src/core/structure/tree.js
  47. 0
      src/core/structure/vector.js
  48. 0
      src/core/utils/events/eventlistener.js
  49. 0
      src/core/utils/i18n.js
  50. 3
      src/core/wrapper/layout/adapt/adapt.horizontal.js
  51. 4
      src/core/wrapper/layout/adapt/adapt.table.js
  52. 3
      src/core/wrapper/layout/adapt/adapt.vertical.js
  53. 3
      src/core/wrapper/layout/flex/flex.horizontal.center.js
  54. 3
      src/core/wrapper/layout/flex/flex.vertical.center.js
  55. 3
      src/core/wrapper/layout/flex/wrapper/flex.wrapper.horizontal.center.js
  56. 3
      src/core/wrapper/layout/flex/wrapper/flex.wrapper.vertical.center.js
  57. 173
      src/core/wrapper/layout/layout.horizontal.js
  58. 30
      src/core/wrapper/layout/layout.tape.js
  59. 16
      src/core/wrapper/layout/layout.window.js
  60. 84
      webpack/attachments.js

37
karma.conf.js

@ -20,36 +20,9 @@ module.exports = function (config) {
// list of files / patterns to load in the browser
files: [
"dist/fineui.min.css",
"src/core/foundation.js",
"src/core/lodash.js",
"src/core/base.js",
"i18n/i18n.cn.js",
"src/core/ob.js",
"src/core/widget.js",
"src/core/shortcut.js",
"src/core/utils/**/*.js",
"src/core/behavior/behavior.js",
"src/core/wrapper/layout.js",
"src/core/plugin.js",
"src/core/**/*.js",
"src/data/**/*.js",
"src/data/**/*.js",
"src/data/**/*.js",
"src/third/**/*.js",
"src/base/pane.js",
"src/base/single/single.js",
"src/base/single/text.js",
"src/base/single/button/button.basic.js",
"src/base/single/button/button.node.js",
"src/base/single/tip/tip.js",
"src/base/combination/group.button.js",
"src/base/combination/tree.button.js",
"src/base/tree/ztree/treeview.js",
"src/base/tree/ztree/asynctree.js",
"src/base/tree/ztree/parttree.js",
"src/base/tree/ztree/list/listtreeview.js",
"src/base/tree/ztree/list/listasynctree.js",
"src/base/tree/ztree/list/listparttree.js",
"src/base/**/*.js",
"src/case/**/*.js",
"src/widget/**/*.js",
@ -61,12 +34,9 @@ module.exports = function (config) {
],
exclude: [
"src/base/tree/ztree/jquery.ztree.core-3.5.js",
"src/base/tree/ztree/jquery.ztree.excheck-3.5.js",
"src/base/single/input/file.js",
"src/case/loading/loading_pane.js",
"src/base/tree/ztree/**/*.js",
"src/case/tree/ztree/*.js",
"src/case/ztree/**/*.js",
"src/widget/multitree/**/*.js",
"src/widget/multiselecttree/**/*.js",
"src/component/treevaluechooser/*.js"
@ -76,9 +46,8 @@ module.exports = function (config) {
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
"src/core/alias.js": "coverage",
"src/core/base.js": "coverage",
"src/core/func/date.js": "coverage",
"src/core/1.base.js": "coverage",
"src/core/func/**/*.js": "coverage",
"src/base/**/!(*.test).js": "coverage",
"src/case/**/!(*.test).js": "coverage",
"src/widget/**/!(*.test).js": "coverage",

0
src/base/base.js → src/base/0.base.js

0
src/base/pane.js → src/base/1.pane.js

0
src/base/single/single.js → src/base/single/0.single.js

0
src/base/single/text.js → src/base/single/1.text.js

0
src/base/single/tip/tip.js → src/base/single/tip/0.tip.js

0
src/base/tree/ztree/treeview.js → src/case/ztree/0.treeview.js

0
src/base/tree/ztree/asynctree.js → src/case/ztree/1.asynctree.js

0
src/base/tree/ztree/jquery.ztree.core-3.5.js → src/case/ztree/jquery.ztree.core-3.5.js

0
src/base/tree/ztree/jquery.ztree.excheck-3.5.js → src/case/ztree/jquery.ztree.excheck-3.5.js

0
src/base/tree/ztree/list/listtreeview.js → src/case/ztree/list/0.listtreeview.js

0
src/base/tree/ztree/list/listasynctree.js → src/case/ztree/list/1.listasynctree.js

0
src/base/tree/ztree/list/listparttree.js → src/case/ztree/list/listparttree.js

0
src/base/tree/ztree/parttree.js → src/case/ztree/parttree.js

0
src/case/tree/ztree/tree.display.js → src/case/ztree/tree.display.js

0
src/case/tree/ztree/tree.list.display.js → src/case/ztree/tree.list.display.js

0
src/case/tree/ztree/tree.simple.js → src/case/ztree/tree.simple.js

0
src/base/tree/ztree/treerender.scroll.service.js → src/case/ztree/treerender.scroll.service.js

0
src/base/tree/ztree/treetrender.page.service.js → src/case/ztree/treetrender.page.service.js

0
src/core/foundation.js → src/core/0.foundation.js vendored

0
src/core/lodash.js → src/core/1.lodash.js

0
src/core/base.js → src/core/2.base.js

0
src/core/ob.js → src/core/3.ob.js

0
src/core/widget.js → src/core/4.widget.js

0
src/core/shortcut.js → src/core/5.shortcut.js

0
src/core/inject.js → src/core/6.inject.js

0
src/core/plugin.js → src/core/7.plugin.js

0
src/core/behavior/behavior.js → src/core/behavior/0.behavior.js

0
src/core/func/date.i18n.js → src/core/constant/date.i18n.js

0
src/core/events.js → src/core/constant/events.js

0
src/core/var.js → src/core/constant/var.js

0
src/core/controller.js → src/core/controller/0.controller.js

0
src/core/alias.js → src/core/func/alias.js

0
src/third/jquery.mousewheel.js → src/core/platform/web/jquery/jquery.mousewheel.js

0
src/core/utils/aes.js → src/core/structure/aes.js

0
src/core/utils/aspect.js → src/core/structure/aspect.js

0
src/core/utils/base64.js → src/core/structure/base64.js

0
src/core/utils/cache.js → src/core/structure/cache.js

0
src/core/utils/cellSizeAndPositionManager.js → src/core/structure/cellSizeAndPositionManager.js

0
src/core/utils/heap.js → src/core/structure/heap.js

0
src/core/utils/linkedHashMap.js → src/core/structure/linkedHashMap.js

0
src/core/utils/lru.js → src/core/structure/lru.js

0
src/core/utils/prefixIntervalTree.js → src/core/structure/prefixIntervalTree.js

0
src/core/utils/queue.js → src/core/structure/queue.js

0
src/core/utils/sectionManager.js → src/core/structure/sectionManager.js

0
src/core/utils/tree.js → src/core/structure/tree.js

0
src/core/utils/vector.js → src/core/structure/vector.js

0
src/core/platform/web/eventlistener.js → src/core/utils/events/eventlistener.js

0
src/core/i18n.js → src/core/utils/i18n.js

3
src/core/wrapper/layout/adapt/adapt.horizontal.js

@ -8,6 +8,7 @@ BI.HorizontalAdaptLayout = BI.inherit(BI.Layout, {
return BI.extend(BI.HorizontalAdaptLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-h-a",
verticalAlign: BI.VerticalAlign.Top,
horizontalAlign: BI.HorizontalAlign.Center,
columnSize: [],
scrollx: false,
hgap: 0,
@ -24,7 +25,7 @@ BI.HorizontalAdaptLayout = BI.inherit(BI.Layout, {
return {
type: "bi.horizontal",
verticalAlign: o.verticalAlign,
horizontalAlign: BI.HorizontalAlign.Center,
horizontalAlign: o.horizontalAlign,
columnSize: o.columnSize,
items: o.items,
scrollx: o.scrollx,

4
src/core/wrapper/layout/adapt/adapt.table.js

@ -26,7 +26,7 @@ BI.TableAdaptLayout = BI.inherit(BI.Layout, {
position: "relative",
display: "table",
width: (o.horizontalAlign === BI.HorizontalAlign.Center || o.horizontalAlign === BI.HorizontalAlign.Stretch) ? "100%" : "auto",
height: (o.verticalAlign === BI.VerticalAlign.Middle || o.verticalAlign === BI.VerticalAlign.Stretch) ? "100%" : "auto",
height: (o.verticalAlign !== BI.VerticalAlign.Top) ? "100%" : "auto",
"white-space": "nowrap"
});
this.populate(this.options.items);
@ -61,8 +61,6 @@ BI.TableAdaptLayout = BI.inherit(BI.Layout, {
position: "relative",
display: "table-cell",
"vertical-align": o.verticalAlign,
margin: "0",
padding: "0",
height: "100%"
});
if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) {

3
src/core/wrapper/layout/adapt/adapt.vertical.js

@ -7,6 +7,7 @@ BI.VerticalAdaptLayout = BI.inherit(BI.Layout, {
props: {
baseCls: "bi-v-a",
horizontalAlign: BI.HorizontalAlign.Left,
verticalAlign: BI.VerticalAlign.Middle,
columnSize: [],
scrollx: false,
hgap: 0,
@ -22,8 +23,8 @@ BI.VerticalAdaptLayout = BI.inherit(BI.Layout, {
BI.VerticalAdaptLayout.superclass.render.apply(this, arguments);
return {
type: "bi.horizontal",
verticalAlign: BI.VerticalAlign.Middle,
horizontalAlign: o.horizontalAlign,
verticalAlign: o.verticalAlign,
columnSize: o.columnSize,
items: o.items,
scrollx: o.scrollx,

3
src/core/wrapper/layout/flex/flex.horizontal.center.js

@ -8,6 +8,7 @@ BI.FlexHorizontalCenter = BI.inherit(BI.Layout, {
props: function () {
return BI.extend(BI.FlexHorizontalCenter.superclass.props.apply(this, arguments), {
baseCls: "bi-f-h-c",
horizontalAlign: BI.HorizontalAlign.Center,
verticalAlign: BI.VerticalAlign.Top,
rowSize: [],
scrolly: false,
@ -26,7 +27,7 @@ BI.FlexHorizontalCenter = BI.inherit(BI.Layout, {
ref: function (_ref) {
self.wrapper = _ref;
},
horizontalAlign: BI.HorizontalAlign.Center,
horizontalAlign: o.horizontalAlign,
verticalAlign: o.verticalAlign,
columnSize: o.columnSize,
rowSize: o.rowSize,

3
src/core/wrapper/layout/flex/flex.vertical.center.js

@ -10,6 +10,7 @@ BI.FlexVerticalCenter = BI.inherit(BI.Layout, {
return BI.extend(BI.FlexVerticalCenter.superclass.props.apply(this, arguments), {
baseCls: "bi-f-v-c",
horizontalAlign: BI.HorizontalAlign.Left,
verticalAlign: BI.VerticalAlign.Middle,
columnSize: [],
scrollx: false,
hgap: 0,
@ -27,7 +28,7 @@ BI.FlexVerticalCenter = BI.inherit(BI.Layout, {
ref: function (_ref) {
self.wrapper = _ref;
},
verticalAlign: BI.VerticalAlign.Middle,
verticalAlign: o.verticalAlign,
horizontalAlign: o.horizontalAlign,
columnSize: o.columnSize,
rowSize: o.rowSize,

3
src/core/wrapper/layout/flex/wrapper/flex.wrapper.horizontal.center.js

@ -9,6 +9,7 @@ BI.FlexWrapperHorizontalCenter = BI.inherit(BI.Layout, {
props: function () {
return BI.extend(BI.FlexWrapperHorizontalCenter.superclass.props.apply(this, arguments), {
baseCls: "bi-f-s-v-c clearfix",
horizontalAlign: BI.HorizontalAlign.Center,
verticalAlign: BI.VerticalAlign.Top,
rowSize: [],
scrollable: true,
@ -28,7 +29,7 @@ BI.FlexWrapperHorizontalCenter = BI.inherit(BI.Layout, {
ref: function (_ref) {
self.wrapper = _ref;
},
horizontalAlign: BI.HorizontalAlign.Center,
horizontalAlign: o.horizontalAlign,
verticalAlign: o.verticalAlign,
columnSize: o.columnSize,
rowSize: o.rowSize,

3
src/core/wrapper/layout/flex/wrapper/flex.wrapper.vertical.center.js

@ -10,6 +10,7 @@ BI.FlexWrapperVerticalCenter = BI.inherit(BI.Layout, {
return BI.extend(BI.FlexWrapperVerticalCenter.superclass.props.apply(this, arguments), {
baseCls: "bi-f-s-v-c clearfix",
horizontalAlign: BI.HorizontalAlign.Left,
verticalAlign: BI.VerticalAlign.Middle,
columnSize: [],
scrollx: false,
scrollable: true,
@ -28,7 +29,7 @@ BI.FlexWrapperVerticalCenter = BI.inherit(BI.Layout, {
ref: function (_ref) {
self.wrapper = _ref;
},
verticalAlign: BI.VerticalAlign.Middle,
verticalAlign: o.verticalAlign,
horizontalAlign: o.horizontalAlign,
columnSize: o.columnSize,
rowSize: o.rowSize,

173
src/core/wrapper/layout/layout.horizontal.js

@ -3,176 +3,5 @@
* @class BI.HorizontalLayout
* @extends BI.Layout
*/
BI.HorizontalLayout = BI.inherit(BI.Layout, {
props: function () {
return BI.extend(BI.HorizontalLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-h",
verticalAlign: BI.VerticalAlign.Top,
horizontalAlign: BI.HorizontalAlign.Left,
columnSize: [],
scrollx: true,
hgap: 0,
vgap: 0,
lgap: 0,
rgap: 0,
tgap: 0,
bgap: 0
});
},
render: function () {
var o = this.options;
BI.HorizontalLayout.superclass.render.apply(this, arguments);
this.$table = BI.Widget._renderEngine.createElement("<table>").attr({cellspacing: 0, cellpadding: 0}).css({
position: "relative",
"white-space": "nowrap",
width: (o.horizontalAlign === BI.HorizontalAlign.Center || o.horizontalAlign === BI.HorizontalAlign.Stretch) ? "100%" : "auto",
height: (o.verticalAlign === BI.VerticalAlign.Middle || o.verticalAlign === BI.VerticalAlign.Stretch) ? "100%" : "auto",
"border-spacing": "0px",
border: "none",
"border-collapse": "separate"
});
this.$tr = BI.Widget._renderEngine.createElement("<tr>");
this.$tr.appendTo(this.$table);
this.populate(this.options.items);
},
_addElement: function (i, item) {
var o = this.options;
var td;
var width = o.columnSize[i] === "" ? "" : (o.columnSize[i] <= 1 ? ((o.columnSize[i] * 100).toFixed(1) + "%") : (i === 0 ? o.hgap : 0) + o.hgap + o.lgap + o.rgap + o.columnSize[i]);
if (!this.hasWidget(this._getChildName(i))) {
var w = BI._lazyCreateWidget(item);
w.element.css({position: "relative", margin: "0px auto"});
td = BI._lazyCreateWidget({
type: "bi.default",
tagName: "td",
attributes: {
width: width
},
items: [w]
});
this.addWidget(this._getChildName(i), td);
} else {
td = this.getWidgetByName(this._getChildName(i));
td.element.attr("width", width);
}
// 对于表现为td的元素设置最大宽度,有几点需要注意
// 1、由于直接对td设置最大宽度是在规范中未定义的, 所以要使用类似td:firstChild来迂回实现
// 2、不能给多个td设置最大宽度,这样只会平分宽度
// 3、多百分比宽度就算了
td.element.css({"max-width": BI.isNumber(o.columnSize[i]) ? (o.columnSize[i] <= 1 ? width : width / BI.pixRatio + BI.pixUnit) : width});
if (i === 0) {
td.element.addClass("first-element");
}
td.element.css({
position: "relative",
"vertical-align": o.verticalAlign,
margin: "0",
padding: "0",
border: "none"
});
if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) {
w.element.css({
"margin-top": (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0)) / BI.pixRatio + BI.pixUnit
});
}
if (o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) !== 0) {
w.element.css({
"margin-left": ((i === 0 ? o.hgap : 0) + o.lgap + (item.lgap || 0) + (item.hgap || 0)) / BI.pixRatio + BI.pixUnit
});
}
if (o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) !== 0) {
w.element.css({
"margin-right": (o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0)) / BI.pixRatio + BI.pixUnit
});
}
if (o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) !== 0) {
w.element.css({
"margin-bottom": (o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0)) / BI.pixRatio + BI.pixUnit
});
}
return td;
},
appendFragment: function (frag) {
this.$tr.append(frag);
this.element.append(this.$table);
},
resize: function () {
// console.log("horizontal layout do not need to resize");
},
_getWrapper: function () {
return this.$tr;
},
populate: function (items) {
BI.HorizontalLayout.superclass.populate.apply(this, arguments);
this._mount();
}
});
BI.HorizontalLayout = BI.Layout;
BI.shortcut("bi.horizontal", BI.HorizontalLayout);
/**
* 水平布局
* @class BI.HorizontalCellLayout
* @extends BI.Layout
*/
BI.HorizontalCellLayout = BI.inherit(BI.Layout, {
props: function () {
return BI.extend(BI.HorizontalCellLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-horizontal-cell-layout",
scrollable: true,
hgap: 0,
vgap: 0,
lgap: 0,
rgap: 0,
tgap: 0,
bgap: 0
});
},
render: function () {
BI.HorizontalCellLayout.superclass.render.apply(this, arguments);
this.element.css({display: "table", "vertical-align": "top"});
this.populate(this.options.items);
},
_addElement: function (i, item) {
var o = this.options;
var w = BI.HorizontalCellLayout.superclass._addElement.apply(this, arguments);
w.element.css({position: "relative", display: "table-cell", "vertical-align": "middle"});
if (o.hgap + o.lgap > 0) {
w.element.css({
"margin-left": (o.hgap + o.lgap) / BI.pixRatio + BI.pixUnit
});
}
if (o.hgap + o.rgap > 0) {
w.element.css({
"margin-right": (o.hgap + o.rgap) / BI.pixRatio + BI.pixUnit
});
}
if (o.vgap + o.tgap > 0) {
w.element.css({
"margin-top": (o.vgap + o.tgap) / BI.pixRatio + BI.pixUnit
});
}
if (o.vgap + o.bgap > 0) {
w.element.css({
"margin-bottom": (o.vgap + o.bgap) / BI.pixRatio + BI.pixUnit
});
}
return w;
},
resize: function () {
// console.log("horizontal do not need to resize");
},
populate: function (items) {
BI.HorizontalCellLayout.superclass.populate.apply(this, arguments);
this._mount();
}
});
BI.shortcut("bi.horizontal_cell", BI.HorizontalCellLayout);

30
src/core/wrapper/layout/layout.tape.js

@ -13,20 +13,7 @@ BI.HTapeLayout = BI.inherit(BI.Layout, {
rgap: 0,
tgap: 0,
bgap: 0,
items: [
{
width: 100,
el: {type: "bi.button", text: "button1"}
},
{
width: "fill",
el: {type: "bi.button", text: "button2"}
},
{
width: 200,
el: {type: "bi.button", text: "button3"}
}
]
items: []
});
},
render: function () {
@ -129,20 +116,7 @@ BI.VTapeLayout = BI.inherit(BI.Layout, {
rgap: 0,
tgap: 0,
bgap: 0,
items: [
{
height: 100,
el: {type: "bi.button", text: "button1"}
},
{
height: "fill",
el: {type: "bi.button", text: "button2"}
},
{
height: 200,
el: {type: "bi.button", text: "button3"}
}
]
items: []
});
},
render: function () {

16
src/core/wrapper/layout/layout.window.js

@ -15,19 +15,9 @@ BI.WindowLayout = BI.inherit(BI.Layout, {
rgap: 0,
tgap: 0,
bgap: 0,
columnSize: [100, "fill", 200],
rowSize: [100, "fill"],
items: [[
{
el: {type: "bi.button", text: "button1"}
},
{
el: {type: "bi.button", text: "button2"}
},
{
el: {type: "bi.button", text: "button3"}
}
]]
columnSize: [],
rowSize: [],
items: []
});
},
render: function () {

84
webpack/attachments.js

@ -13,11 +13,11 @@ const fixIEJs = "./dist/fix/fix.ie.js";
const fixCompact = "./dist/fix/fix.compact.js";
const fixIECompact = './dist/fix/fix.compact.ie.js';
const workerCompact = './dist/fix/worker.compact.js';
const lodashJs = "src/core/lodash.js";
const lodashJs = "src/core/1.lodash.js";
const basicAttachmentMap = {
polyfill: sync(["src/core/foundation.js", "src/polyfill/**/*.js"]).concat(["@babel/polyfill", "es6-promise/auto"]),
polyfillIE: sync(["src/core/foundation.js", "src/polyfill/**/*.js"]).concat([
polyfill: sync(["src/core/0.foundation.js", "src/polyfill/**/*.js"]).concat(["@babel/polyfill", "es6-promise/auto"]),
polyfillIE: sync(["src/core/0.foundation.js", "src/polyfill/**/*.js"]).concat([
"core-js/features/object/define-property",
"core-js/features/object/create",
"core-js/features/object/assign",
@ -34,46 +34,18 @@ const basicAttachmentMap = {
core: sync([
"src/less/core/**/*.less",
"src/less/theme/**/*.less",
"src/core/foundation.js",
lodashJs,
// 'src/core/mvc/**/*.js',
"src/core/base.js",
"src/core/ob.js",
"src/core/widget.js",
// 'src/core/model.js',
// 'src/core/view.js',
"src/core/shortcut.js",
"src/core/utils/**/*.js",
"src/core/behavior/behavior.js",
"src/core/wrapper/layout.js",
"src/core/plugin.js",
"src/core/**/*.js",
"src/data/data.js",
"src/data/**/*.js",
]),
// 最基础的控件
base: sync([
"src/less/base/**/*.less",
"src/third/**/*.js",
"src/base/pane.js",
"src/base/single/single.js",
"src/base/single/text.js",
"src/base/single/button/button.basic.js",
"src/base/single/button/button.node.js",
"src/base/single/tip/tip.js",
"src/base/combination/group.button.js",
"src/base/combination/tree.button.js",
"src/base/tree/ztree/treeview.js",
"src/base/tree/ztree/asynctree.js",
"src/base/tree/ztree/parttree.js",
"src/base/tree/ztree/list/listtreeview.js",
"src/base/tree/ztree/list/listasynctree.js",
"src/base/tree/ztree/list/listparttree.js",
"src/base/**/*.js",
]),
// 实现好的一些基础实例
case: sync([
"src/case/combo/popup.bubble.js",
"src/case/**/*.js",
]),
widget: sync([
@ -97,23 +69,16 @@ const basicAttachmentMap = {
]),
config: sync(["demo/version.js", "i18n/i18n.cn.js"]),
utils: sync([
"src/core/foundation.js",
"src/core/0.foundation.js",
lodashJs,
"src/core/var.js",
"src/core/func/array.js",
"src/core/func/number.js",
"src/core/func/string.js",
"src/core/func/date.js",
"src/core/func/function.js",
"src/core/base.js",
"src/core/ob.js",
"src/core/alias.js",
"src/core/inject.js",
"src/core/i18n.js",
"src/core/constant/**/*.js",
"src/core/func/**/*.js",
"src/core/2.base.js",
"src/core/3.ob.js",
"src/core/6.inject.js",
"src/core/utils/*.js",
"i18n/i18n.cn.js",
"_mobile/date.i18n.cn.js",
"src/data/data.js",
"src/data/**/*.js",
]),
fix: [fixJs],
@ -205,38 +170,15 @@ const fineuiWithoutJqueryAndPolyfillJs = [].concat(
sync([
"src/core/foundation.js",
lodashJs,
// 'src/core/mvc/**/*.js',
"src/core/base.js",
"src/core/ob.js",
"src/core/widget.js",
// 'src/core/model.js',
// 'src/core/view.js',
"src/core/shortcut.js",
"src/core/utils/*.js",
"src/core/behavior/behavior.js",
"src/core/wrapper/layout.js",
"src/core/plugin.js",
"src/core/**/*.js",
"!src/core/platform/web/**/*.js",
"src/data/data.js",
"src/data/**/*.js",
"dist/fix/fix.js",
"src/base/pane.js",
"src/base/single/single.js",
"src/base/single/text.js",
"src/base/single/button/button.basic.js",
"src/base/single/button/button.node.js",
"src/base/single/tip/tip.js",
"src/base/combination/group.button.js",
"src/base/combination/tree.button.js",
"src/base/combination/map.button.js",
"src/base/**/*.js",
"!src/base/tree/ztree/**/*.js",
"!src/base/single/input/file.js",
"src/case/combo/popup.bubble.js",
"src/case/**/*.js",
"!src/case/colorchooser/**/*.js",
"!src/case/tree/ztree/**/*.js",
"!src/core/platform/web/**/*.js",
"!src/base/single/input/file.js",
"!src/case/ztree/**/*.js",
]),
basicAttachmentMap.widget,
sync([fixCompact, workerCompact, "ui/js/**/*.js"]),

Loading…
Cancel
Save