Browse Source

Merge remote-tracking branch 'origin/master'

es6
guy 3 years ago
parent
commit
64d7823d3d
  1. BIN
      dist/font/iconfont.eot
  2. 1492
      dist/font/iconfont.svg
  3. BIN
      dist/font/iconfont.ttf
  4. BIN
      dist/font/iconfont.woff
  5. BIN
      dist/font/iconfont.woff2
  6. 2
      package.json
  7. 4
      src/base/combination/searcher.js
  8. 11
      src/base/combination/tab.js
  9. 4
      src/component/treevaluechooser/combo.listtreevaluechooser.js
  10. 4
      src/component/treevaluechooser/combo.treevaluechooser.insert.js
  11. 4
      src/component/treevaluechooser/combo.treevaluechooser.js
  12. 14
      src/core/func/alias.js
  13. 3
      src/router/router.js
  14. 4
      src/widget/multilayerselecttree/multilayerselecttree.combo.js
  15. 4
      src/widget/multilayerselecttree/multilayerselecttree.trigger.js
  16. 4
      src/widget/multilayersingletree/multilayersingletree.combo.js
  17. 4
      src/widget/multilayersingletree/multilayersingletree.trigger.js
  18. 4
      src/widget/multiselect/multiselect.trigger.js
  19. 4
      src/widget/multiselect/trigger/editor.multiselect.js
  20. 4
      src/widget/multitree/multi.tree.combo.js
  21. 4
      src/widget/multitree/multi.tree.insert.combo.js
  22. 4
      src/widget/multitree/multi.tree.list.combo.js
  23. 4
      src/widget/multitree/trigger/searcher.list.multi.tree.js
  24. 4
      src/widget/multitree/trigger/searcher.multi.tree.js
  25. 1
      typescript/base/combination/tab.ts
  26. 8
      typescript/case/segment/segment.ts
  27. 2
      typescript/component/treevaluechooser/combo.listtreevaluechooser.ts
  28. 2
      typescript/component/treevaluechooser/combo.treevaluechooser.insert.ts
  29. 2
      typescript/component/treevaluechooser/combo.treevaluechooser.ts
  30. 3
      typescript/index.ts
  31. 2
      typescript/widget/multitree/multi.tree.combo.ts
  32. 2
      typescript/widget/multitree/multi.tree.insert.combo.ts
  33. 2
      typescript/widget/multitree/multi.tree.list.combo.ts

BIN
dist/font/iconfont.eot vendored

Binary file not shown.

1492
dist/font/iconfont.svg vendored

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 538 KiB

After

Width:  |  Height:  |  Size: 471 KiB

BIN
dist/font/iconfont.ttf vendored

Binary file not shown.

BIN
dist/font/iconfont.woff vendored

Binary file not shown.

BIN
dist/font/iconfont.woff2 vendored

Binary file not shown.

2
package.json

@ -1,6 +1,6 @@
{
"name": "fineui",
"version": "2.0.20220308103259",
"version": "2.0.20220309184345",
"description": "fineui",
"main": "dist/fineui.min.js",
"types": "dist/lib/index.d.ts",

4
src/base/combination/searcher.js

@ -315,6 +315,10 @@ BI.Searcher = BI.inherit(BI.Widget, {
blur: function () {
this.editor.blur();
},
setWaterMark: function (v) {
this.editor.setWaterMark(v);
}
});
BI.Searcher.EVENT_CHANGE = "EVENT_CHANGE";

11
src/base/combination/tab.js

@ -15,7 +15,8 @@ BI.Tab = BI.inherit(BI.Widget, {
tab: false,
cardCreator: function (v) {
return BI.createWidget();
}
},
keepAlives: []
});
},
@ -66,7 +67,7 @@ BI.Tab = BI.inherit(BI.Widget, {
var self = this, o = this.options;
if (o.single === true) {
BI.each(this.cardMap, function (name, card) {
if (name !== (currCardName + "")) {
if (name !== (currCardName + "") && self._keepAlive(name) !== true) {
self.layout.deleteCardByName(name);
delete self.cardMap[name];
}
@ -82,6 +83,12 @@ BI.Tab = BI.inherit(BI.Widget, {
}
},
_keepAlive: function (v) {
var o = this.options;
return BI.isFunction(o.keepAlives) ? o.keepAlives(v) : BI.contains(o.keepAlives, v);
},
created: function () {
var o = this.options;
if (o.showIndex !== false) {

4
src/component/treevaluechooser/combo.listtreevaluechooser.js

@ -110,6 +110,10 @@ BI.ListTreeValueChooserInsertCombo = BI.inherit(BI.AbstractListTreeValueChooser,
blur: function () {
this.combo.blur();
},
setWaterMark: function (v) {
this.combo.setWaterMark(v);
}
});

4
src/component/treevaluechooser/combo.treevaluechooser.insert.js

@ -109,6 +109,10 @@ BI.TreeValueChooserInsertCombo = BI.inherit(BI.AbstractTreeValueChooser, {
blur: function () {
this.combo.blur();
},
setWaterMark: function (v) {
this.combo.setWaterMark(v);
}
});

4
src/component/treevaluechooser/combo.treevaluechooser.js

@ -113,6 +113,10 @@ BI.TreeValueChooserCombo = BI.inherit(BI.AbstractTreeValueChooser, {
blur: function () {
this.combo.blur();
},
setWaterMark: function (v) {
this.combo.setWaterMark(v);
}
});

14
src/core/func/alias.js

@ -417,16 +417,17 @@
"\"": """,
"<": "&lt;",
">": "&gt;",
" ": "&nbsp;"
"\x20": "&nbsp;",
"\n": "&#10;"
};
BI.htmlEncode = function (text) {
return BI.isNull(text) ? "" : BI.replaceAll(text + "", "&|\"|<|>|\\s", function (v) {
return SPECIAL_TAGS[v] ? SPECIAL_TAGS[v] : "&nbsp;";
return BI.isNull(text) ? "" : BI.replaceAll(text + "", BI.keys(SPECIAL_TAGS).join("|"), function (v) {
return SPECIAL_TAGS[v] ? SPECIAL_TAGS[v] : v;
});
};
// html decode
BI.htmlDecode = function (text) {
return BI.isNull(text) ? "" : BI.replaceAll(text + "", "&amp;|&quot;|&lt;|&gt;|&nbsp;", function (v) {
return BI.isNull(text) ? "" : BI.replaceAll(text + "", BI.values(SPECIAL_TAGS).join("|"), function (v) {
switch (v) {
case "&amp;":
return "&";
@ -437,8 +438,11 @@
case "&gt;":
return ">";
case "&nbsp;":
default:
return " ";
case "&#10;":
return "\n";
default:
return v;
}
});
};

3
src/router/router.js

@ -3179,7 +3179,8 @@
ref: function (_ref) {
self.tab = _ref;
},
single: false, // 是不是单页面
single: o.single, // 是不是单页面
keepAlives: o.keepAlives,
logic: {
dynamic: false
},

4
src/widget/multilayerselecttree/multilayerselecttree.combo.js

@ -250,6 +250,10 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
showView: function () {
this.combo.showView();
},
setWaterMark: function (v) {
this.trigger.setWaterMark(v);
}
});

4
src/widget/multilayerselecttree/multilayerselecttree.trigger.js

@ -245,6 +245,10 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
blur: function () {
this.searcher.blur();
},
setWaterMark: function (v) {
this.searcher.setWaterMark(v);
}
});

4
src/widget/multilayersingletree/multilayersingletree.combo.js

@ -251,6 +251,10 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
showView: function () {
this.combo.showView();
},
setWaterMark: function (v) {
this.trigger.setWaterMark(v);
}
});

4
src/widget/multilayersingletree/multilayersingletree.trigger.js

@ -247,6 +247,10 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
blur: function () {
this.searcher.blur();
},
setWaterMark: function (v) {
this.searcher.setWaterMark(v);
}
});
BI.MultiLayerSingleTreeTrigger.EVENT_FOCUS = "EVENT_FOCUS";

4
src/widget/multiselect/multiselect.trigger.js

@ -144,6 +144,10 @@ BI.MultiSelectTrigger = BI.inherit(BI.Trigger, {
blur: function () {
this.searcher.blur();
},
setWaterMark: function (v) {
this.searcher.setWaterMark(v);
}
});

4
src/widget/multiselect/trigger/editor.multiselect.js

@ -93,6 +93,10 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
populate: function (items) {
},
setWaterMark: function (v) {
this.editor.setWaterMark(v);
}
});

4
src/widget/multitree/multi.tree.combo.js

@ -352,6 +352,10 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, {
blur: function () {
this.trigger.blur();
},
setWaterMark: function (v) {
this.trigger.setWaterMark(v);
}
});

4
src/widget/multitree/multi.tree.insert.combo.js

@ -368,6 +368,10 @@ BI.MultiTreeInsertCombo = BI.inherit(BI.Single, {
blur: function () {
this.trigger.blur();
},
setWaterMark: function (v) {
this.trigger.setWaterMark(v);
}
});

4
src/widget/multitree/multi.tree.list.combo.js

@ -386,6 +386,10 @@ BI.MultiTreeListCombo = BI.inherit(BI.Single, {
blur: function () {
this.trigger.blur();
},
setWaterMark: function (v) {
this.trigger.setWaterMark(v);
}
});

4
src/widget/multitree/trigger/searcher.list.multi.tree.js

@ -172,6 +172,10 @@ BI.MultiListTreeSearcher = BI.inherit(BI.Widget, {
blur: function () {
this.editor.blur();
},
setWaterMark: function (v) {
this.editor.setWaterMark(v);
}
});

4
src/widget/multitree/trigger/searcher.multi.tree.js

@ -192,6 +192,10 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, {
blur: function () {
this.editor.blur();
},
setWaterMark: function (v) {
this.editor.setWaterMark(v);
}
});

1
typescript/base/combination/tab.ts

@ -15,6 +15,7 @@ export declare class Tab extends Widget {
dynamic: boolean;
};
tab?: Obj;
keepAlives?: string[] | ((cardName: string) => boolean)
}
setSelect(v: string | number, action?: Action, callback?: Function): void;

8
typescript/case/segment/segment.ts

@ -0,0 +1,8 @@
import { Widget } from "../../core/widget";
export declare class Segment extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
setEnabledValue(v: any): void;
}

2
typescript/component/treevaluechooser/combo.listtreevaluechooser.ts

@ -27,4 +27,6 @@ export declare class ListTreeValueChooserInsertCombo extends AbstractListTreeVal
focus(): void;
blur(): void;
setWaterMark(v: string): void;
}

2
typescript/component/treevaluechooser/combo.treevaluechooser.insert.ts

@ -26,4 +26,6 @@ export declare class TreeValueChooserInsertCombo extends AbstractTreeValueChoose
focus(): void;
blur(): void;
setWaterMark(v: string): void;
}

2
typescript/component/treevaluechooser/combo.treevaluechooser.ts

@ -28,4 +28,6 @@ export declare class TreeValueChooserCombo extends AbstractTreeValueChooser {
focus(): void;
blur(): void;
setWaterMark(v: string): void;
}

3
typescript/index.ts

@ -146,6 +146,7 @@ import { MultiSelectInsertList } from "./widget/multiselectlist/multiselectlist.
import { YearMonthInterval } from "./widget/yearmonthinterval/yearmonthinterval";
import { NumberEditor } from "./widget/numbereditor/numbereditor";
import { TextValueCheckCombo } from "./case/combo/textvaluecheckcombo/combo.textvaluecheck";
import { Segment } from "./case/segment/segment";
import { LinearSegment } from "./case/linersegment/linear.segment";
import { Img } from "./base/single/img/img";
import { EditorIconCheckCombo } from "./case/combo/editoriconcheckcombo/combo.editiconcheck";
@ -345,6 +346,7 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
YearMonthInterval: typeof YearMonthInterval;
TextValueCheckCombo: typeof TextValueCheckCombo;
NumberEditor: typeof NumberEditor;
Segment: typeof Segment;
LinearSegment: typeof LinearSegment;
Img: typeof Img;
EditorIconCheckCombo: typeof EditorIconCheckCombo;
@ -534,6 +536,7 @@ export {
YearMonthInterval,
TextValueCheckCombo,
NumberEditor,
Segment,
LinearSegment,
Img,
EditorIconCheckCombo,

2
typescript/widget/multitree/multi.tree.combo.ts

@ -19,4 +19,6 @@ export declare class MultiTreeCombo extends Single {
focus(): void;
blur(): void;
setWaterMark(v: string): void;
}

2
typescript/widget/multitree/multi.tree.insert.combo.ts

@ -27,4 +27,6 @@ export declare class MultiTreeInsertCombo extends Single {
focus(): void;
blur(): void;
setWaterMark(v: string): void;
}

2
typescript/widget/multitree/multi.tree.list.combo.ts

@ -26,4 +26,6 @@ export declare class MultiTreeListCombo extends Single {
focus(): void;
blur(): void;
setWaterMark(v: string): void;
}

Loading…
Cancel
Save