Browse Source

Merge branch 'master' of ssh://cloud.finedevelop.com:7999/~windy/fui

es6
windy 7 years ago
parent
commit
1445e3e1e9
  1. 6
      Gruntfile.js
  2. 1
      demo/version.js
  3. 94
      dist/_fineui.min.js
  4. 11
      dist/base.js
  5. 132
      dist/bundle.css
  6. 515
      dist/bundle.js
  7. 2
      dist/bundle.min.css
  8. 96
      dist/bundle.min.js
  9. 38
      dist/case.js
  10. 1
      dist/config.js
  11. 31
      dist/core.js
  12. 132
      dist/fineui.css
  13. 2
      dist/fineui.min.css
  14. 94
      dist/fineui.min.js
  15. 8
      dist/fix/fix.compact.js
  16. BIN
      dist/images/1x/background/auto_color.png
  17. BIN
      dist/images/1x/background/trans_color.png
  18. BIN
      dist/images/1x/icon/auto_disable.png
  19. BIN
      dist/images/1x/icon/auto_normal.png
  20. BIN
      dist/images/1x/icon/auto_select.png
  21. BIN
      dist/images/1x/icon/trans_disable.png
  22. BIN
      dist/images/1x/icon/trans_normal .png
  23. BIN
      dist/images/1x/icon/trans_select .png
  24. BIN
      dist/images/2x/background/auto_color.png
  25. BIN
      dist/images/2x/background/trans_color.png
  26. BIN
      dist/images/2x/icon/auto_disable.png
  27. BIN
      dist/images/2x/icon/auto_normal.png
  28. BIN
      dist/images/2x/icon/auto_select.png
  29. BIN
      dist/images/2x/icon/trans_disable.png
  30. BIN
      dist/images/2x/icon/trans_normal.png
  31. BIN
      dist/images/2x/icon/trans_select.png
  32. 5
      dist/index.html
  33. 132
      dist/resource.css
  34. 132
      public/css/icon.css
  35. 1
      public/js/index.js
  36. 2
      src/base/single/a/a.js
  37. 3
      src/base/single/input/file.js
  38. 3
      src/base/single/link/link.js
  39. 3
      src/base/tree/treeview.js
  40. 38
      src/case/colorchooser/colorpicker/editor.colorpicker.js
  41. 8
      src/core/base.js
  42. 21
      src/core/utils/load.js
  43. 132
      src/css/resource/icon.css
  44. 120
      src/less/image.less
  45. 8
      src/less/lib/icon.less
  46. 3
      src/less/resource/icon.less
  47. 132
      ui/css/icon.css
  48. 2
      ui/js/index.js
  49. 31
      utils/utils.js

6
Gruntfile.js

@ -101,7 +101,7 @@ module.exports = function (grunt) {
}, },
bundleJs: { bundleJs: {
src: ["dist/core.js", "dist/fix/fix.js", "dist/fix/fix.compact.js", "dist/base.js", "dist/case.js", "dist/widget.js", "dist/router.js", "public/js/**/*.js", "public/js/index.js"], src: ["dist/core.js", "dist/fix/fix.js", "dist/base.js", "dist/case.js", "dist/widget.js", "dist/fix/fix.compact.js", "dist/router.js", "public/js/**/*.js", "public/js/index.js"],
dest: "dist/bundle.js" dest: "dist/bundle.js"
}, },
@ -199,7 +199,7 @@ module.exports = function (grunt) {
dist: { dist: {
files: { files: {
"dist/bundle.min.js": ["<%= concat.bundleJs.dest %>"], "dist/bundle.min.js": ["<%= concat.bundleJs.dest %>"],
"dist/_fineui.min.js": ["dist/polyfill.js", "dist/core.js", "dist/fix/fix.js", "dist/fix/fix.compact.js", "src/third/**/*.js", "dist/_fineui.min.js": ["dist/polyfill.js", "dist/core.js", "dist/fix/fix.js", "src/third/**/*.js",
"src/base/formula/config.js", "src/base/formula/config.js",
"src/base/pane.js", "src/base/pane.js",
"src/base/single/single.js", "src/base/single/single.js",
@ -215,7 +215,7 @@ module.exports = function (grunt) {
"src/base/tree/parttree.js", "src/base/tree/parttree.js",
"src/base/**/*.js", "src/base/**/*.js",
"!src/base/formula/formulaeditor.js", "!src/base/formula/formulaeditor.js",
"dist/case.js", "dist/widget.js", "dist/router.js", "ui/js/**/*.js"] "dist/case.js", "dist/widget.js", "dist/fix/fix.compact.js", "dist/router.js", "ui/js/**/*.js"]
} }
} }
}, },

1
demo/version.js

@ -1,4 +1,3 @@
BI.servletURL = "";
BI.resourceURL = "resource/"; BI.resourceURL = "resource/";
BI.i18n = { BI.i18n = {
"BI-Multi_Date_Quarter_End": "季度末", "BI-Multi_Date_Quarter_End": "季度末",

94
dist/_fineui.min.js vendored

File diff suppressed because one or more lines are too long

11
dist/base.js vendored

@ -1711,7 +1711,7 @@ BI.TreeView = BI.inherit(BI.Pane, {
+ "&parentValues= " + window.encodeURIComponent(BI.jsonEncode(parentNode)) + "&parentValues= " + window.encodeURIComponent(BI.jsonEncode(parentNode))
+ "&checkState=" + window.encodeURIComponent(BI.jsonEncode(treeNode.getCheckStatus())); + "&checkState=" + window.encodeURIComponent(BI.jsonEncode(treeNode.getCheckStatus()));
return BI.servletURL + "?op=" + self.options.op + "&cmd=" + self.options.cmd + "&" + param; return "&" + param;
} }
function beforeExpand (treeId, treeNode) { function beforeExpand (treeId, treeNode) {
@ -1760,7 +1760,6 @@ BI.TreeView = BI.inherit(BI.Pane, {
function ajaxGetNodes (treeNode, reloadType) { function ajaxGetNodes (treeNode, reloadType) {
var zTree = self.nodes; var zTree = self.nodes;
if (reloadType == "refresh") { if (reloadType == "refresh") {
// treeNode.icon = BI.servletURL +"?op=resource&resource=/com/fr/bi/web/css/base/third/ztree/img/loading.gif";
zTree.updateNode(treeNode); zTree.updateNode(treeNode);
} }
zTree.reAsyncChildNodes(treeNode, reloadType, true); zTree.reAsyncChildNodes(treeNode, reloadType, true);
@ -16426,7 +16425,7 @@ BI.A = BI.inherit(BI.Text, {
href: "", href: "",
target: "_blank", target: "_blank",
el: null, el: null,
element: "<a/>" tagName: "a"
}); });
}, },
_init: function () { _init: function () {
@ -19475,8 +19474,7 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/**
// enable again the submit button/element // enable again the submit button/element
}, 1000); }, 1000);
}; };
_wrap.url = o.url ? o.url : BI.servletURL _wrap.url = o.url;
+ "?op=fr_attach&cmd=ah_upload";
_wrap.fileType = o.accept; // 文件类型限制 _wrap.fileType = o.accept; // 文件类型限制
_wrap.attach_array = []; _wrap.attach_array = [];
_wrap.attach_names = []; _wrap.attach_names = [];
@ -20422,7 +20420,8 @@ BI.Link = BI.inherit(BI.Label, {
_defaultConfig: function () { _defaultConfig: function () {
var conf = BI.Link.superclass._defaultConfig.apply(this, arguments); var conf = BI.Link.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, { return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-link", baseCls: (conf.baseCls || "") + " bi-link display-block",
tagName: "a",
href: "", href: "",
target: "_blank" target: "_blank"
}); });

132
dist/bundle.css vendored

@ -6559,149 +6559,149 @@ textarea::-webkit-scrollbar-thumb:hover {
} }
.check-box-icon .x-icon { .check-box-icon .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_normal.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon .x-icon.hack { .check-box-icon .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_normal.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_normal.png');
_background: none; _background: none;
} }
.check-box-icon:hover .x-icon, .check-box-icon:hover .x-icon,
.check-box-icon.hover .x-icon { .check-box-icon.hover .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_normal.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon:hover .x-icon.hack, .check-box-icon:hover .x-icon.hack,
.check-box-icon.hover .x-icon.hack { .check-box-icon.hover .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_normal.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_normal.png');
_background: none; _background: none;
} }
.check-box-icon:active .x-icon { .check-box-icon:active .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_normal.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon:active .x-icon.hack { .check-box-icon:active .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_normal.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_normal.png');
_background: none; _background: none;
} }
.check-box-icon.active .x-icon { .check-box-icon.active .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_active.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_active.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_active.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_active.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon.active .x-icon.hack { .check-box-icon.active .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_active.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_active.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_active.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_active.png');
_background: none; _background: none;
} }
.check-box-icon.disabled .x-icon { .check-box-icon.disabled .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_disable.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_disable.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_disable.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon.disabled .x-icon.hack { .check-box-icon.disabled .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_disable.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_disable.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_disable.png');
_background: none; _background: none;
} }
.check-box-icon.disabled.active .x-icon { .check-box-icon.disabled.active .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_disable2.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_disable2.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_disable2.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_disable2.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon.disabled.active .x-icon.hack { .check-box-icon.disabled.active .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_disable2.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_disable2.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_disable2.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_disable2.png');
_background: none; _background: none;
} }
.radio-icon .x-icon { .radio-icon .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_normal.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon .x-icon.hack { .radio-icon .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_normal.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_normal.png');
_background: none; _background: none;
} }
.radio-icon:hover .x-icon, .radio-icon:hover .x-icon,
.radio-icon.hover .x-icon { .radio-icon.hover .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_normal.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon:hover .x-icon.hack, .radio-icon:hover .x-icon.hack,
.radio-icon.hover .x-icon.hack { .radio-icon.hover .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_normal.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_normal.png');
_background: none; _background: none;
} }
.radio-icon:active .x-icon { .radio-icon:active .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_normal.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon:active .x-icon.hack { .radio-icon:active .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_normal.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_normal.png');
_background: none; _background: none;
} }
.radio-icon.active .x-icon { .radio-icon.active .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_active.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_active.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_active.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_active.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon.active .x-icon.hack { .radio-icon.active .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_active.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_active.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_active.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_active.png');
_background: none; _background: none;
} }
.radio-icon.disabled .x-icon { .radio-icon.disabled .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_disable.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_disable.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_disable.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon.disabled .x-icon.hack { .radio-icon.disabled .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_disable.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_disable.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_disable.png');
_background: none; _background: none;
} }
.radio-icon.disabled.active .x-icon { .radio-icon.disabled.active .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_disable2.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_disable2.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_disable2.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_disable2.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon.disabled.active .x-icon.hack { .radio-icon.disabled.active .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_disable2.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_disable2.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_disable2.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_disable2.png');
_background: none; _background: none;
} }
@ -6719,39 +6719,111 @@ textarea::-webkit-scrollbar-thumb:hover {
} }
.slider-icon .x-icon { .slider-icon .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/slider_normal_small.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/slider_normal_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/slider_normal_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/slider_normal_small.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.slider-icon .x-icon.hack { .slider-icon .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/slider_normal_small.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/slider_normal_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/slider_normal_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/slider_normal_small.png');
_background: none; _background: none;
} }
.slider-icon:hover .x-icon, .slider-icon:hover .x-icon,
.slider-icon.hover .x-icon { .slider-icon.hover .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/slider_active_small.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/slider_active_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/slider_active_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/slider_active_small.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.slider-icon:hover .x-icon.hack, .slider-icon:hover .x-icon.hack,
.slider-icon.hover .x-icon.hack { .slider-icon.hover .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/slider_active_small.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/slider_active_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/slider_active_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/slider_active_small.png');
_background: none; _background: none;
} }
.slider-icon.disabled .x-icon { .slider-icon.disabled .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/slider_normal_small.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/slider_normal_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/slider_normal_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/slider_normal_small.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.slider-icon.disabled .x-icon.hack { .slider-icon.disabled .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/slider_normal_small.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/slider_normal_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/slider_normal_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/slider_normal_small.png');
_background: none; _background: none;
} }
.auto-color-icon .x-icon {
display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/auto_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/auto_normal.png');
background-size: contain;
_background: none;
}
.auto-color-icon .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/auto_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/auto_normal.png');
_background: none;
}
.auto-color-icon.active .x-icon {
display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/auto_select.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/auto_select.png');
background-size: contain;
_background: none;
}
.auto-color-icon.active .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/auto_select.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/auto_select.png');
_background: none;
}
.auto-color-icon.disabled .x-icon {
display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/auto_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/auto_disable.png');
background-size: contain;
_background: none;
}
.auto-color-icon.disabled .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/auto_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/auto_disable.png');
_background: none;
}
.trans-color-icon .x-icon {
display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/trans_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/trans_normal.png');
background-size: contain;
_background: none;
}
.trans-color-icon .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/trans_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/trans_normal.png');
_background: none;
}
.trans-color-icon.active .x-icon {
display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/trans_select.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/trans_select.png');
background-size: contain;
_background: none;
}
.trans-color-icon.active .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/trans_select.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/trans_select.png');
_background: none;
}
.trans-color-icon.disabled .x-icon {
display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/trans_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/trans_disable.png');
background-size: contain;
_background: none;
}
.trans-color-icon.disabled .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/trans_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/trans_disable.png');
_background: none;
}

515
dist/bundle.js vendored

@ -19435,10 +19435,16 @@ if (!window.BI) {
return widget instanceof BI.Widget || (BI.View && widget instanceof BI.View); return widget instanceof BI.Widget || (BI.View && widget instanceof BI.View);
}, },
createWidgets: function (items, options) { createWidgets: function (items, options, context) {
if (!BI.isArray(items)) { if (!BI.isArray(items)) {
throw new Error("cannot create Widgets"); throw new Error("cannot create Widgets");
} }
if (BI.isWidget(options)) {
context = options;
options = {};
} else {
options || (options = {});
}
return BI.map(BI.flatten(items), function (i, item) { return BI.map(BI.flatten(items), function (i, item) {
return BI.createWidget(item, BI.deepClone(options)); return BI.createWidget(item, BI.deepClone(options));
}); });
@ -23235,28 +23241,7 @@ BI.IntegerBufferSet.prototype = {
return array; return array;
} }
}; };
})();window.BI = window.BI || {}; })();_.extend(BI, {
_.extend(BI, {
$defaultImport: function (options, type) {
var config;
if (BI.isObject(options)) {
config = $.extend({
op: "resource",
path: null,
type: null,
must: false
}, options);
config.url = BI.servletURL + "?op=" + config.op + "&resource=" + config.path;
} else {
config = {
url: BI.servletURL + "?op=resource&resource=" + options,
type: arguments[1],
must: arguments[2]
};
}
this.$import(config.url, config.type, config.must);
},
$import: function () { $import: function () {
var _LOADED = {}; // alex:保存加载过的 var _LOADED = {}; // alex:保存加载过的
function loadReady (src, must) { function loadReady (src, must) {
@ -35274,217 +35259,7 @@ Data.Source = BISource = {
exports.toJSON = toJSON; exports.toJSON = toJSON;
exports.__esModule = true; exports.__esModule = true;
});;(function () { });/* !
function initWatch (vm, watch) {
vm._watchers || (vm._watchers = []);
for (var key in watch) {
var handler = watch[key];
if (BI.isArray(handler)) {
for (var i = 0; i < handler.length; i++) {
vm._watchers.push(createWatcher(vm, key, handler[i]));
}
} else {
vm._watchers.push(createWatcher(vm, key, handler));
}
}
}
function createWatcher (vm, keyOrFn, handler) {
return Fix.watch(vm.model, keyOrFn, _.bind(handler, vm), {
store: vm.store
});
}
var target = null;
var targetStack = [];
function pushTarget (_target) {
if (target) targetStack.push(target);
Fix.Model.target = target = _target;
}
function popTarget () {
Fix.Model.target = target = targetStack.pop();
}
var context = null;
var contextStack = [];
function pushContext (_context) {
if (context) contextStack.push(context);
Fix.Model.context = context = _context;
}
function popContext () {
Fix.Model.context = context = contextStack.pop();
}
var oldWatch = Fix.watch;
Fix.watch = function (model, expOrFn, cb, options) {
if (BI.isPlainObject(cb)) {
options = cb;
cb = cb.handler;
}
if (typeof cb === "string") {
cb = model[cb];
}
return oldWatch.call(this, model, expOrFn, function () {
options && options.store && pushTarget(options.store);
var res = cb.apply(this, arguments);
options && options.store && popTarget();
return res;
}, options);
};
function findStore (widget) {
if (target != null) {
return target;
}
widget = widget || context;
var p = widget;
while (p) {
if (p.store || p.__cacheStore) {
break;
}
p = p._parent || (p.options && p.options.element);
}
if (p) {
widget.__cacheStore = p.store || p.__cacheStore;
return p.__cacheStore || p.store;
}
}
var _create = BI.createWidget;
BI.createWidget = function (item, options, context) {
var pushed = false;
if (BI.isWidget(options)) {
pushContext(options);
pushed = true;
} else if (context != null) {
pushContext(context);
pushed = true;
}
var result = _create.apply(this, arguments);
pushed && popContext();
return result;
};
var _init = BI.Widget.prototype._init;
BI.Widget.prototype._init = function () {
var self = this;
var needPop = false;
if (window.Fix && this._store) {
var store = findStore(this.options.element);
if (store) {
pushTarget(store);
needPop = true;
}
this.store = this._store();
needPop && popTarget();
needPop = false;
pushTarget(this.store);
if (this.store instanceof Fix.Model) {
this.model = this.store.model;
} else {
this.model = this.store;
}
needPop = true;
}
_init.apply(this, arguments);
needPop && popTarget();
};
var _render = BI.Widget.prototype._render;
BI.Widget.prototype._render = function () {
var needPop = false;
if (window.Fix && this._store) {
needPop = true;
pushTarget(this.store);
initWatch(this, this.watch);
}
_render.apply(this, arguments);
needPop && popTarget();
};
var unMount = BI.Widget.prototype.__d;
BI.Widget.prototype.__d = function () {
unMount.apply(this, arguments);
this.store && BI.isFunction(this.store.destroy) && this.store.destroy();
BI.each(this._watchers, function (i, unwatches) {
unwatches = BI.isArray(unwatches) ? unwatches : [unwatches];
BI.each(unwatches, function (j, unwatch) {
unwatch();
});
});
this._watchers && (this._watchers = []);
if (this.store) {
this.store._parent && (this.store._parent = null);
this.store = null;
}
delete this.__cacheStore;
};
_.each(["_mount"], function (name) {
var old = BI.Widget.prototype[name];
old && (BI.Widget.prototype[name] = function () {
this.store && pushTarget(this.store);
var res = old.apply(this, arguments);
this.store && popTarget();
return res;
});
});
if (BI.isIE9Below()) {
_.each(["each", "map", "reduce", "reduceRight", "find", "filter", "reject", "every", "all", "some", "any", "max", "min",
"sortBy", "groupBy", "indexBy", "countBy", "partition",
"keys", "allKeys", "values", "pairs", "invert",
"mapObject", "findKey", "pick", "omit", "tap"], function (name) {
var old = BI[name];
BI[name] = function (obj, fn) {
return typeof fn === "function" ? old(obj, function (key, value) {
if (!(key in Fix.$$skipArray)) {
return fn.apply(this, arguments);
}
}) : old.apply(this, arguments);
};
});
BI.isEmpty = function (ob) {
if (BI.isPlainObject(ob) && ob.__ob__) {
return BI.keys(ob).length === 0;
}
return _.isEmpty(ob);
};
BI.keys = function (ob) {
var keys = _.keys(ob);
var nKeys = [];
for (var i = 0; i < keys.length; i++) {
if (!(keys[i] in Fix.$$skipArray)) {
nKeys.push(keys[i]);
}
}
return nKeys;
};
BI.values = function (ob) {
var keys = BI.keys(obj);
var length = keys.length;
var values = [];
for (var i = 0; i < length; i++) {
values[i] = obj[keys[i]];
}
return values;
};
BI.size = function (ob) {
if (BI.isPlainObject(ob) && ob.__ob__) {
return BI.keys(ob).length;
}
return _.size(ob);
};
BI.isEmptyObject = function (ob) {
return BI.size(ob) === 0;
};
}
BI.watch = Fix.watch;
}());/* !
* jQuery Mousewheel 3.1.13 * jQuery Mousewheel 3.1.13
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors
@ -37197,7 +36972,7 @@ BI.TreeView = BI.inherit(BI.Pane, {
+ "&parentValues= " + window.encodeURIComponent(BI.jsonEncode(parentNode)) + "&parentValues= " + window.encodeURIComponent(BI.jsonEncode(parentNode))
+ "&checkState=" + window.encodeURIComponent(BI.jsonEncode(treeNode.getCheckStatus())); + "&checkState=" + window.encodeURIComponent(BI.jsonEncode(treeNode.getCheckStatus()));
return BI.servletURL + "?op=" + self.options.op + "&cmd=" + self.options.cmd + "&" + param; return "&" + param;
} }
function beforeExpand (treeId, treeNode) { function beforeExpand (treeId, treeNode) {
@ -37246,7 +37021,6 @@ BI.TreeView = BI.inherit(BI.Pane, {
function ajaxGetNodes (treeNode, reloadType) { function ajaxGetNodes (treeNode, reloadType) {
var zTree = self.nodes; var zTree = self.nodes;
if (reloadType == "refresh") { if (reloadType == "refresh") {
// treeNode.icon = BI.servletURL +"?op=resource&resource=/com/fr/bi/web/css/base/third/ztree/img/loading.gif";
zTree.updateNode(treeNode); zTree.updateNode(treeNode);
} }
zTree.reAsyncChildNodes(treeNode, reloadType, true); zTree.reAsyncChildNodes(treeNode, reloadType, true);
@ -51912,7 +51686,7 @@ BI.A = BI.inherit(BI.Text, {
href: "", href: "",
target: "_blank", target: "_blank",
el: null, el: null,
element: "<a/>" tagName: "a"
}); });
}, },
_init: function () { _init: function () {
@ -54961,8 +54735,7 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/**
// enable again the submit button/element // enable again the submit button/element
}, 1000); }, 1000);
}; };
_wrap.url = o.url ? o.url : BI.servletURL _wrap.url = o.url;
+ "?op=fr_attach&cmd=ah_upload";
_wrap.fileType = o.accept; // 文件类型限制 _wrap.fileType = o.accept; // 文件类型限制
_wrap.attach_array = []; _wrap.attach_array = [];
_wrap.attach_names = []; _wrap.attach_names = [];
@ -55908,7 +55681,8 @@ BI.Link = BI.inherit(BI.Label, {
_defaultConfig: function () { _defaultConfig: function () {
var conf = BI.Link.superclass._defaultConfig.apply(this, arguments); var conf = BI.Link.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, { return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-link", baseCls: (conf.baseCls || "") + " bi-link display-block",
tagName: "a",
href: "", href: "",
target: "_blank" target: "_blank"
}); });
@ -76435,15 +76209,20 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
this.B = Ws[2]; this.B = Ws[2];
this.none = BI.createWidget({ this.none = BI.createWidget({
type: "bi.checkbox", type: "bi.icon_button",
cls: "auto-color-icon",
width: 16,
height: 16,
iconWidth: 16,
iconHeight: 16,
title: BI.i18nText("BI-Basic_Auto") title: BI.i18nText("BI-Basic_Auto")
}); });
this.none.on(BI.Checkbox.EVENT_CHANGE, function () { this.none.on(BI.IconButton.EVENT_CHANGE, function () {
if (this.isSelected()) { if (this.isSelected()) {
self.lastColor = self.getValue(); self.lastColor = self.getValue();
self.setValue(""); self.setValue("");
} else { } else {
self.setValue(self.lastColor || "#000000"); self.setValue(self.lastColor || "#ffffff");
} }
if (self.R.isValid() && self.G.isValid() && self.B.isValid()) { if (self.R.isValid() && self.G.isValid() && self.B.isValid()) {
self.colorShow.element.css("background-color", self.getValue()); self.colorShow.element.css("background-color", self.getValue());
@ -76452,15 +76231,23 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
}); });
this.transparent = BI.createWidget({ this.transparent = BI.createWidget({
type: "bi.checkbox", type: "bi.icon_button",
cls: "trans-color-icon",
width: 16,
height: 16,
iconWidth: 16,
iconHeight: 16,
title: BI.i18nText("BI-Transparent_Color") title: BI.i18nText("BI-Transparent_Color")
}); });
this.transparent.on(BI.Checkbox.EVENT_CHANGE, function () { this.transparent.on(BI.IconButton.EVENT_CHANGE, function () {
if (this.isSelected()) { if (this.isSelected()) {
self.lastColor = self.getValue(); self.lastColor = self.getValue();
self.setValue("transparent"); self.setValue("transparent");
} else { } else {
self.setValue(self.lastColor || "#000000"); if (self.lastColor === "transparent") {
self.lastColor = "";
}
self.setValue(self.lastColor || "#ffffff");
} }
if (self.R.isValid() && self.G.isValid() && self.B.isValid()) { if (self.R.isValid() && self.G.isValid() && self.B.isValid()) {
self.colorShow.element.css("background-color", self.getValue()); self.colorShow.element.css("background-color", self.getValue());
@ -76511,10 +76298,21 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
}); });
}, },
_showPreColor: function (color) {
if (color === "") {
this.colorShow.element.css("background-color", "").removeClass("trans-color-background").addClass("auto-color-background");
} else if (color === "transparent") {
this.colorShow.element.css("background-color", "").removeClass("auto-color-background").addClass("trans-color-background");
} else {
this.colorShow.element.css({"background-color": color}).removeClass("auto-color-background").removeClass("trans-color-background");
}
},
setValue: function (color) { setValue: function (color) {
if (color === "transparent") { if (color === "transparent") {
this.transparent.setSelected(true); this.transparent.setSelected(true);
this.none.setSelected(false); this.none.setSelected(false);
this._showPreColor("transparent");
this.R.setValue(""); this.R.setValue("");
this.G.setValue(""); this.G.setValue("");
this.B.setValue(""); this.B.setValue("");
@ -76527,7 +76325,7 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
this.none.setSelected(false); this.none.setSelected(false);
} }
this.transparent.setSelected(false); this.transparent.setSelected(false);
this.colorShow.element.css("background-color", color); this._showPreColor(color);
var json = BI.DOM.rgb2json(BI.DOM.hex2rgb(color)); var json = BI.DOM.rgb2json(BI.DOM.hex2rgb(color));
this.R.setValue(BI.isNull(json.r) ? "" : json.r); this.R.setValue(BI.isNull(json.r) ? "" : json.r);
this.G.setValue(BI.isNull(json.g) ? "" : json.g); this.G.setValue(BI.isNull(json.g) ? "" : json.g);
@ -111356,7 +111154,225 @@ BI.ValueChooserPane = BI.inherit(BI.AbstractValueChooser, {
} }
}); });
BI.ValueChooserPane.EVENT_CHANGE = "ValueChooserPane.EVENT_CHANGE"; BI.ValueChooserPane.EVENT_CHANGE = "ValueChooserPane.EVENT_CHANGE";
BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);(function () { BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
function initWatch (vm, watch) {
vm._watchers || (vm._watchers = []);
for (var key in watch) {
var handler = watch[key];
if (BI.isArray(handler)) {
for (var i = 0; i < handler.length; i++) {
vm._watchers.push(createWatcher(vm, key, handler[i]));
}
} else {
vm._watchers.push(createWatcher(vm, key, handler));
}
}
}
function createWatcher (vm, keyOrFn, handler) {
return Fix.watch(vm.model, keyOrFn, _.bind(handler, vm), {
store: vm.store
});
}
var target = null;
var targetStack = [];
function pushTarget (_target) {
if (target) targetStack.push(target);
Fix.Model.target = target = _target;
}
function popTarget () {
Fix.Model.target = target = targetStack.pop();
}
var context = null;
var contextStack = [];
function pushContext (_context) {
if (context) contextStack.push(context);
Fix.Model.context = context = _context;
}
function popContext () {
Fix.Model.context = context = contextStack.pop();
}
var oldWatch = Fix.watch;
Fix.watch = function (model, expOrFn, cb, options) {
if (BI.isPlainObject(cb)) {
options = cb;
cb = cb.handler;
}
if (typeof cb === "string") {
cb = model[cb];
}
return oldWatch.call(this, model, expOrFn, function () {
options && options.store && pushTarget(options.store);
var res = cb.apply(this, arguments);
options && options.store && popTarget();
return res;
}, options);
};
function findStore (widget) {
if (target != null) {
return target;
}
widget = widget || context;
var p = widget;
while (p) {
if (p.store || p.__cacheStore) {
break;
}
p = p._parent || (p.options && p.options.element);
}
if (p) {
widget.__cacheStore = p.store || p.__cacheStore;
return p.__cacheStore || p.store;
}
}
var _create = BI.createWidget;
BI.createWidget = function (item, options, context) {
var pushed = false;
if (BI.isWidget(options)) {
pushContext(options);
pushed = true;
} else if (context != null) {
pushContext(context);
pushed = true;
}
var result = _create.apply(this, arguments);
pushed && popContext();
return result;
};
var populate = BI.Loader.prototype.populate;
BI.Loader.prototype.populate = function () {
pushContext(this);
var result = populate.apply(this, arguments);
popContext();
return result;
};
var _init = BI.Widget.prototype._init;
BI.Widget.prototype._init = function () {
var self = this;
var needPop = false;
if (window.Fix && this._store) {
var store = findStore(this.options.element);
if (store) {
pushTarget(store);
needPop = true;
}
this.store = this._store();
needPop && popTarget();
needPop = false;
pushTarget(this.store);
if (this.store instanceof Fix.Model) {
this.model = this.store.model;
} else {
this.model = this.store;
}
needPop = true;
}
_init.apply(this, arguments);
needPop && popTarget();
};
var _render = BI.Widget.prototype._render;
BI.Widget.prototype._render = function () {
var needPop = false;
if (window.Fix && this._store) {
needPop = true;
pushTarget(this.store);
initWatch(this, this.watch);
}
_render.apply(this, arguments);
needPop && popTarget();
};
var unMount = BI.Widget.prototype.__d;
BI.Widget.prototype.__d = function () {
unMount.apply(this, arguments);
this.store && BI.isFunction(this.store.destroy) && this.store.destroy();
BI.each(this._watchers, function (i, unwatches) {
unwatches = BI.isArray(unwatches) ? unwatches : [unwatches];
BI.each(unwatches, function (j, unwatch) {
unwatch();
});
});
this._watchers && (this._watchers = []);
if (this.store) {
this.store._parent && (this.store._parent = null);
this.store = null;
}
delete this.__cacheStore;
};
_.each(["_mount"], function (name) {
var old = BI.Widget.prototype[name];
old && (BI.Widget.prototype[name] = function () {
this.store && pushTarget(this.store);
var res = old.apply(this, arguments);
this.store && popTarget();
return res;
});
});
if (BI.isIE9Below()) {
_.each(["each", "map", "reduce", "reduceRight", "find", "filter", "reject", "every", "all", "some", "any", "max", "min",
"sortBy", "groupBy", "indexBy", "countBy", "partition",
"keys", "allKeys", "values", "pairs", "invert",
"mapObject", "findKey", "pick", "omit", "tap"], function (name) {
var old = BI[name];
BI[name] = function (obj, fn) {
return typeof fn === "function" ? old(obj, function (key, value) {
if (!(key in Fix.$$skipArray)) {
return fn.apply(this, arguments);
}
}) : old.apply(this, arguments);
};
});
BI.isEmpty = function (ob) {
if (BI.isPlainObject(ob) && ob.__ob__) {
return BI.keys(ob).length === 0;
}
return _.isEmpty(ob);
};
BI.keys = function (ob) {
var keys = _.keys(ob);
var nKeys = [];
for (var i = 0; i < keys.length; i++) {
if (!(keys[i] in Fix.$$skipArray)) {
nKeys.push(keys[i]);
}
}
return nKeys;
};
BI.values = function (ob) {
var keys = BI.keys(obj);
var length = keys.length;
var values = [];
for (var i = 0; i < length; i++) {
values[i] = obj[keys[i]];
}
return values;
};
BI.size = function (ob) {
if (BI.isPlainObject(ob) && ob.__ob__) {
return BI.keys(ob).length;
}
return _.size(ob);
};
BI.isEmptyObject = function (ob) {
return BI.size(ob) === 0;
};
}
BI.watch = Fix.watch;
}());(function () {
var Events = { var Events = {
// Bind an event to a `callback` function. Passing `"all"` will bind // Bind an event to a `callback` function. Passing `"all"` will bind
@ -111940,8 +111956,7 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);(function () {
// Create the default BI.history. // Create the default BI.history.
BI.history = new History; BI.history = new History;
}());BI.servletURL = "https://fanruan.coding.me/fineui/dist/"; }());BI.resourceURL = "https://fanruan.coding.me/fineui/dist/resource/";
BI.resourceURL = "https://fanruan.coding.me/fineui/dist/resource/";
BI.i18n = { BI.i18n = {
"BI-Multi_Date_Quarter_End": "季度末", "BI-Multi_Date_Quarter_End": "季度末",
"BI-Multi_Date_Month_Begin": "月初", "BI-Multi_Date_Month_Begin": "月初",

2
dist/bundle.min.css vendored

File diff suppressed because one or more lines are too long

96
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

38
dist/case.js vendored

@ -4267,15 +4267,20 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
this.B = Ws[2]; this.B = Ws[2];
this.none = BI.createWidget({ this.none = BI.createWidget({
type: "bi.checkbox", type: "bi.icon_button",
cls: "auto-color-icon",
width: 16,
height: 16,
iconWidth: 16,
iconHeight: 16,
title: BI.i18nText("BI-Basic_Auto") title: BI.i18nText("BI-Basic_Auto")
}); });
this.none.on(BI.Checkbox.EVENT_CHANGE, function () { this.none.on(BI.IconButton.EVENT_CHANGE, function () {
if (this.isSelected()) { if (this.isSelected()) {
self.lastColor = self.getValue(); self.lastColor = self.getValue();
self.setValue(""); self.setValue("");
} else { } else {
self.setValue(self.lastColor || "#000000"); self.setValue(self.lastColor || "#ffffff");
} }
if (self.R.isValid() && self.G.isValid() && self.B.isValid()) { if (self.R.isValid() && self.G.isValid() && self.B.isValid()) {
self.colorShow.element.css("background-color", self.getValue()); self.colorShow.element.css("background-color", self.getValue());
@ -4284,15 +4289,23 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
}); });
this.transparent = BI.createWidget({ this.transparent = BI.createWidget({
type: "bi.checkbox", type: "bi.icon_button",
cls: "trans-color-icon",
width: 16,
height: 16,
iconWidth: 16,
iconHeight: 16,
title: BI.i18nText("BI-Transparent_Color") title: BI.i18nText("BI-Transparent_Color")
}); });
this.transparent.on(BI.Checkbox.EVENT_CHANGE, function () { this.transparent.on(BI.IconButton.EVENT_CHANGE, function () {
if (this.isSelected()) { if (this.isSelected()) {
self.lastColor = self.getValue(); self.lastColor = self.getValue();
self.setValue("transparent"); self.setValue("transparent");
} else { } else {
self.setValue(self.lastColor || "#000000"); if (self.lastColor === "transparent") {
self.lastColor = "";
}
self.setValue(self.lastColor || "#ffffff");
} }
if (self.R.isValid() && self.G.isValid() && self.B.isValid()) { if (self.R.isValid() && self.G.isValid() && self.B.isValid()) {
self.colorShow.element.css("background-color", self.getValue()); self.colorShow.element.css("background-color", self.getValue());
@ -4343,10 +4356,21 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
}); });
}, },
_showPreColor: function (color) {
if (color === "") {
this.colorShow.element.css("background-color", "").removeClass("trans-color-background").addClass("auto-color-background");
} else if (color === "transparent") {
this.colorShow.element.css("background-color", "").removeClass("auto-color-background").addClass("trans-color-background");
} else {
this.colorShow.element.css({"background-color": color}).removeClass("auto-color-background").removeClass("trans-color-background");
}
},
setValue: function (color) { setValue: function (color) {
if (color === "transparent") { if (color === "transparent") {
this.transparent.setSelected(true); this.transparent.setSelected(true);
this.none.setSelected(false); this.none.setSelected(false);
this._showPreColor("transparent");
this.R.setValue(""); this.R.setValue("");
this.G.setValue(""); this.G.setValue("");
this.B.setValue(""); this.B.setValue("");
@ -4359,7 +4383,7 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
this.none.setSelected(false); this.none.setSelected(false);
} }
this.transparent.setSelected(false); this.transparent.setSelected(false);
this.colorShow.element.css("background-color", color); this._showPreColor(color);
var json = BI.DOM.rgb2json(BI.DOM.hex2rgb(color)); var json = BI.DOM.rgb2json(BI.DOM.hex2rgb(color));
this.R.setValue(BI.isNull(json.r) ? "" : json.r); this.R.setValue(BI.isNull(json.r) ? "" : json.r);
this.G.setValue(BI.isNull(json.g) ? "" : json.g); this.G.setValue(BI.isNull(json.g) ? "" : json.g);

1
dist/config.js vendored

@ -1,4 +1,3 @@
BI.servletURL = "";
BI.resourceURL = "resource/"; BI.resourceURL = "resource/";
BI.i18n = { BI.i18n = {
"BI-Multi_Date_Quarter_End": "季度末", "BI-Multi_Date_Quarter_End": "季度末",

31
dist/core.js vendored

@ -19435,10 +19435,16 @@ if (!window.BI) {
return widget instanceof BI.Widget || (BI.View && widget instanceof BI.View); return widget instanceof BI.Widget || (BI.View && widget instanceof BI.View);
}, },
createWidgets: function (items, options) { createWidgets: function (items, options, context) {
if (!BI.isArray(items)) { if (!BI.isArray(items)) {
throw new Error("cannot create Widgets"); throw new Error("cannot create Widgets");
} }
if (BI.isWidget(options)) {
context = options;
options = {};
} else {
options || (options = {});
}
return BI.map(BI.flatten(items), function (i, item) { return BI.map(BI.flatten(items), function (i, item) {
return BI.createWidget(item, BI.deepClone(options)); return BI.createWidget(item, BI.deepClone(options));
}); });
@ -23235,28 +23241,7 @@ BI.IntegerBufferSet.prototype = {
return array; return array;
} }
}; };
})();window.BI = window.BI || {}; })();_.extend(BI, {
_.extend(BI, {
$defaultImport: function (options, type) {
var config;
if (BI.isObject(options)) {
config = $.extend({
op: "resource",
path: null,
type: null,
must: false
}, options);
config.url = BI.servletURL + "?op=" + config.op + "&resource=" + config.path;
} else {
config = {
url: BI.servletURL + "?op=resource&resource=" + options,
type: arguments[1],
must: arguments[2]
};
}
this.$import(config.url, config.type, config.must);
},
$import: function () { $import: function () {
var _LOADED = {}; // alex:保存加载过的 var _LOADED = {}; // alex:保存加载过的
function loadReady (src, must) { function loadReady (src, must) {

132
dist/fineui.css vendored

@ -6559,149 +6559,149 @@ textarea::-webkit-scrollbar-thumb:hover {
} }
.check-box-icon .x-icon { .check-box-icon .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/check_box_normal.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/check_box_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon .x-icon.hack { .check-box-icon .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/check_box_normal.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/check_box_normal.png');
_background: none; _background: none;
} }
.check-box-icon:hover .x-icon, .check-box-icon:hover .x-icon,
.check-box-icon.hover .x-icon { .check-box-icon.hover .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/check_box_normal.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/check_box_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon:hover .x-icon.hack, .check-box-icon:hover .x-icon.hack,
.check-box-icon.hover .x-icon.hack { .check-box-icon.hover .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/check_box_normal.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/check_box_normal.png');
_background: none; _background: none;
} }
.check-box-icon:active .x-icon { .check-box-icon:active .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/check_box_normal.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/check_box_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon:active .x-icon.hack { .check-box-icon:active .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/check_box_normal.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/check_box_normal.png');
_background: none; _background: none;
} }
.check-box-icon.active .x-icon { .check-box-icon.active .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/check_box_active.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/check_box_active.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/check_box_active.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/check_box_active.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon.active .x-icon.hack { .check-box-icon.active .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/check_box_active.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/check_box_active.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/check_box_active.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/check_box_active.png');
_background: none; _background: none;
} }
.check-box-icon.disabled .x-icon { .check-box-icon.disabled .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/check_box_disable.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/check_box_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/check_box_disable.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/check_box_disable.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon.disabled .x-icon.hack { .check-box-icon.disabled .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/check_box_disable.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/check_box_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/check_box_disable.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/check_box_disable.png');
_background: none; _background: none;
} }
.check-box-icon.disabled.active .x-icon { .check-box-icon.disabled.active .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/check_box_disable2.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/check_box_disable2.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/check_box_disable2.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/check_box_disable2.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon.disabled.active .x-icon.hack { .check-box-icon.disabled.active .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/check_box_disable2.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/check_box_disable2.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/check_box_disable2.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/check_box_disable2.png');
_background: none; _background: none;
} }
.radio-icon .x-icon { .radio-icon .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/radio_normal.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/radio_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon .x-icon.hack { .radio-icon .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/radio_normal.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/radio_normal.png');
_background: none; _background: none;
} }
.radio-icon:hover .x-icon, .radio-icon:hover .x-icon,
.radio-icon.hover .x-icon { .radio-icon.hover .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/radio_normal.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/radio_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon:hover .x-icon.hack, .radio-icon:hover .x-icon.hack,
.radio-icon.hover .x-icon.hack { .radio-icon.hover .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/radio_normal.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/radio_normal.png');
_background: none; _background: none;
} }
.radio-icon:active .x-icon { .radio-icon:active .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/radio_normal.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/radio_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon:active .x-icon.hack { .radio-icon:active .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/radio_normal.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/radio_normal.png');
_background: none; _background: none;
} }
.radio-icon.active .x-icon { .radio-icon.active .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/radio_active.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/radio_active.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/radio_active.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/radio_active.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon.active .x-icon.hack { .radio-icon.active .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/radio_active.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/radio_active.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/radio_active.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/radio_active.png');
_background: none; _background: none;
} }
.radio-icon.disabled .x-icon { .radio-icon.disabled .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/radio_disable.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/radio_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/radio_disable.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/radio_disable.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon.disabled .x-icon.hack { .radio-icon.disabled .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/radio_disable.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/radio_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/radio_disable.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/radio_disable.png');
_background: none; _background: none;
} }
.radio-icon.disabled.active .x-icon { .radio-icon.disabled.active .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/radio_disable2.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/radio_disable2.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/radio_disable2.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/radio_disable2.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon.disabled.active .x-icon.hack { .radio-icon.disabled.active .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/radio_disable2.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/radio_disable2.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/radio_disable2.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/radio_disable2.png');
_background: none; _background: none;
} }
@ -6719,39 +6719,111 @@ textarea::-webkit-scrollbar-thumb:hover {
} }
.slider-icon .x-icon { .slider-icon .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/slider_normal_small.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/slider_normal_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/slider_normal_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/slider_normal_small.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.slider-icon .x-icon.hack { .slider-icon .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/slider_normal_small.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/slider_normal_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/slider_normal_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/slider_normal_small.png');
_background: none; _background: none;
} }
.slider-icon:hover .x-icon, .slider-icon:hover .x-icon,
.slider-icon.hover .x-icon { .slider-icon.hover .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/slider_active_small.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/slider_active_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/slider_active_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/slider_active_small.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.slider-icon:hover .x-icon.hack, .slider-icon:hover .x-icon.hack,
.slider-icon.hover .x-icon.hack { .slider-icon.hover .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/slider_active_small.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/slider_active_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/slider_active_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/slider_active_small.png');
_background: none; _background: none;
} }
.slider-icon.disabled .x-icon { .slider-icon.disabled .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/slider_normal_small.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/slider_normal_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/slider_normal_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/slider_normal_small.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.slider-icon.disabled .x-icon.hack { .slider-icon.disabled .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/slider_normal_small.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/slider_normal_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/slider_normal_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/slider_normal_small.png');
_background: none; _background: none;
} }
.auto-color-icon .x-icon {
display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/auto_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/auto_normal.png');
background-size: contain;
_background: none;
}
.auto-color-icon .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/auto_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/auto_normal.png');
_background: none;
}
.auto-color-icon.active .x-icon {
display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/auto_select.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/auto_select.png');
background-size: contain;
_background: none;
}
.auto-color-icon.active .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/auto_select.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/auto_select.png');
_background: none;
}
.auto-color-icon.disabled .x-icon {
display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/auto_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/auto_disable.png');
background-size: contain;
_background: none;
}
.auto-color-icon.disabled .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/auto_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/auto_disable.png');
_background: none;
}
.trans-color-icon .x-icon {
display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/trans_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/trans_normal.png');
background-size: contain;
_background: none;
}
.trans-color-icon .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/trans_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/trans_normal.png');
_background: none;
}
.trans-color-icon.active .x-icon {
display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/trans_select.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/trans_select.png');
background-size: contain;
_background: none;
}
.trans-color-icon.active .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/trans_select.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/trans_select.png');
_background: none;
}
.trans-color-icon.disabled .x-icon {
display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/trans_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/trans_disable.png');
background-size: contain;
_background: none;
}
.trans-color-icon.disabled .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/trans_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/trans_disable.png');
_background: none;
}

2
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

94
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

8
dist/fix/fix.compact.js vendored

@ -93,6 +93,14 @@
return result; return result;
}; };
var populate = BI.Loader.prototype.populate;
BI.Loader.prototype.populate = function () {
pushContext(this);
var result = populate.apply(this, arguments);
popContext();
return result;
};
var _init = BI.Widget.prototype._init; var _init = BI.Widget.prototype._init;
BI.Widget.prototype._init = function () { BI.Widget.prototype._init = function () {
var self = this; var self = this;

BIN
dist/images/1x/background/auto_color.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 461 B

After

Width:  |  Height:  |  Size: 865 B

BIN
dist/images/1x/background/trans_color.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 B

After

Width:  |  Height:  |  Size: 301 B

BIN
dist/images/1x/icon/auto_disable.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 B

BIN
dist/images/1x/icon/auto_normal.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 637 B

BIN
dist/images/1x/icon/auto_select.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 617 B

BIN
dist/images/1x/icon/trans_disable.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 B

BIN
dist/images/1x/icon/trans_normal .png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 B

BIN
dist/images/1x/icon/trans_select .png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B

BIN
dist/images/2x/background/auto_color.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1007 B

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
dist/images/2x/background/trans_color.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 342 B

After

Width:  |  Height:  |  Size: 534 B

BIN
dist/images/2x/icon/auto_disable.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
dist/images/2x/icon/auto_normal.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
dist/images/2x/icon/auto_select.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
dist/images/2x/icon/trans_disable.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 B

BIN
dist/images/2x/icon/trans_normal.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 B

BIN
dist/images/2x/icon/trans_select.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 B

5
dist/index.html vendored

@ -25,8 +25,6 @@
<script src="fix/fix-1.0.js"></script> <script src="fix/fix-1.0.js"></script>
<!--fix2.0版本框架, 只用ui的话不用引入, 引入的顺序需在core.js之后--> <!--fix2.0版本框架, 只用ui的话不用引入, 引入的顺序需在core.js之后-->
<script src="fix/fix.js"></script> <script src="fix/fix.js"></script>
<!--fix2.0版本框架, 只用ui的话不用引入, 引入的顺序需在core.js之后-->
<script src="fix/fix.compact.js"></script>
<!--基础js, 包括最基本的控件--> <!--基础js, 包括最基本的控件-->
<script src="base.js"></script> <script src="base.js"></script>
@ -35,6 +33,9 @@
<!--BI控件js--> <!--BI控件js-->
<script src="widget.js"></script> <script src="widget.js"></script>
<!--fix2.0版本框架与fineui结合的代码, 只用ui的话不用引入, 引入的顺序需在fix和控件库(core/base/case/widget)之后之后-->
<script src="fix/fix.compact.js"></script>
<!--工程配置文件,主要是BI.servletURL(根目录)、BI.resourceURL(资源路径)、BI.i18n(国际化)--> <!--工程配置文件,主要是BI.servletURL(根目录)、BI.resourceURL(资源路径)、BI.i18n(国际化)-->
<script src="config.js"></script> <script src="config.js"></script>

132
dist/resource.css vendored

@ -1406,149 +1406,149 @@ textarea::-webkit-scrollbar-thumb:hover {
} }
.check-box-icon .x-icon { .check-box-icon .x-icon {
display: block; display: block;
background: url('images/2x/icon/check_box_normal.png') no-repeat 0 0; background: url('images/2x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/check_box_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon .x-icon.hack { .check-box-icon .x-icon.hack {
background: url('images/1x/icon/check_box_normal.png') no-repeat 0 0; background: url('images/1x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/check_box_normal.png');
_background: none; _background: none;
} }
.check-box-icon:hover .x-icon, .check-box-icon:hover .x-icon,
.check-box-icon.hover .x-icon { .check-box-icon.hover .x-icon {
display: block; display: block;
background: url('images/2x/icon/check_box_normal.png') no-repeat 0 0; background: url('images/2x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/check_box_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon:hover .x-icon.hack, .check-box-icon:hover .x-icon.hack,
.check-box-icon.hover .x-icon.hack { .check-box-icon.hover .x-icon.hack {
background: url('images/1x/icon/check_box_normal.png') no-repeat 0 0; background: url('images/1x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/check_box_normal.png');
_background: none; _background: none;
} }
.check-box-icon:active .x-icon { .check-box-icon:active .x-icon {
display: block; display: block;
background: url('images/2x/icon/check_box_normal.png') no-repeat 0 0; background: url('images/2x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/check_box_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon:active .x-icon.hack { .check-box-icon:active .x-icon.hack {
background: url('images/1x/icon/check_box_normal.png') no-repeat 0 0; background: url('images/1x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/check_box_normal.png');
_background: none; _background: none;
} }
.check-box-icon.active .x-icon { .check-box-icon.active .x-icon {
display: block; display: block;
background: url('images/2x/icon/check_box_active.png') no-repeat 0 0; background: url('images/2x/icon/check_box_active.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/check_box_active.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/check_box_active.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon.active .x-icon.hack { .check-box-icon.active .x-icon.hack {
background: url('images/1x/icon/check_box_active.png') no-repeat 0 0; background: url('images/1x/icon/check_box_active.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/check_box_active.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/check_box_active.png');
_background: none; _background: none;
} }
.check-box-icon.disabled .x-icon { .check-box-icon.disabled .x-icon {
display: block; display: block;
background: url('images/2x/icon/check_box_disable.png') no-repeat 0 0; background: url('images/2x/icon/check_box_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/check_box_disable.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/check_box_disable.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon.disabled .x-icon.hack { .check-box-icon.disabled .x-icon.hack {
background: url('images/1x/icon/check_box_disable.png') no-repeat 0 0; background: url('images/1x/icon/check_box_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/check_box_disable.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/check_box_disable.png');
_background: none; _background: none;
} }
.check-box-icon.disabled.active .x-icon { .check-box-icon.disabled.active .x-icon {
display: block; display: block;
background: url('images/2x/icon/check_box_disable2.png') no-repeat 0 0; background: url('images/2x/icon/check_box_disable2.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/check_box_disable2.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/check_box_disable2.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon.disabled.active .x-icon.hack { .check-box-icon.disabled.active .x-icon.hack {
background: url('images/1x/icon/check_box_disable2.png') no-repeat 0 0; background: url('images/1x/icon/check_box_disable2.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/check_box_disable2.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/check_box_disable2.png');
_background: none; _background: none;
} }
.radio-icon .x-icon { .radio-icon .x-icon {
display: block; display: block;
background: url('images/2x/icon/radio_normal.png') no-repeat 0 0; background: url('images/2x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/radio_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon .x-icon.hack { .radio-icon .x-icon.hack {
background: url('images/1x/icon/radio_normal.png') no-repeat 0 0; background: url('images/1x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/radio_normal.png');
_background: none; _background: none;
} }
.radio-icon:hover .x-icon, .radio-icon:hover .x-icon,
.radio-icon.hover .x-icon { .radio-icon.hover .x-icon {
display: block; display: block;
background: url('images/2x/icon/radio_normal.png') no-repeat 0 0; background: url('images/2x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/radio_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon:hover .x-icon.hack, .radio-icon:hover .x-icon.hack,
.radio-icon.hover .x-icon.hack { .radio-icon.hover .x-icon.hack {
background: url('images/1x/icon/radio_normal.png') no-repeat 0 0; background: url('images/1x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/radio_normal.png');
_background: none; _background: none;
} }
.radio-icon:active .x-icon { .radio-icon:active .x-icon {
display: block; display: block;
background: url('images/2x/icon/radio_normal.png') no-repeat 0 0; background: url('images/2x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/radio_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon:active .x-icon.hack { .radio-icon:active .x-icon.hack {
background: url('images/1x/icon/radio_normal.png') no-repeat 0 0; background: url('images/1x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/radio_normal.png');
_background: none; _background: none;
} }
.radio-icon.active .x-icon { .radio-icon.active .x-icon {
display: block; display: block;
background: url('images/2x/icon/radio_active.png') no-repeat 0 0; background: url('images/2x/icon/radio_active.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/radio_active.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/radio_active.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon.active .x-icon.hack { .radio-icon.active .x-icon.hack {
background: url('images/1x/icon/radio_active.png') no-repeat 0 0; background: url('images/1x/icon/radio_active.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/radio_active.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/radio_active.png');
_background: none; _background: none;
} }
.radio-icon.disabled .x-icon { .radio-icon.disabled .x-icon {
display: block; display: block;
background: url('images/2x/icon/radio_disable.png') no-repeat 0 0; background: url('images/2x/icon/radio_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/radio_disable.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/radio_disable.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon.disabled .x-icon.hack { .radio-icon.disabled .x-icon.hack {
background: url('images/1x/icon/radio_disable.png') no-repeat 0 0; background: url('images/1x/icon/radio_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/radio_disable.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/radio_disable.png');
_background: none; _background: none;
} }
.radio-icon.disabled.active .x-icon { .radio-icon.disabled.active .x-icon {
display: block; display: block;
background: url('images/2x/icon/radio_disable2.png') no-repeat 0 0; background: url('images/2x/icon/radio_disable2.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/radio_disable2.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/radio_disable2.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon.disabled.active .x-icon.hack { .radio-icon.disabled.active .x-icon.hack {
background: url('images/1x/icon/radio_disable2.png') no-repeat 0 0; background: url('images/1x/icon/radio_disable2.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/radio_disable2.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/radio_disable2.png');
_background: none; _background: none;
} }
@ -1566,39 +1566,111 @@ textarea::-webkit-scrollbar-thumb:hover {
} }
.slider-icon .x-icon { .slider-icon .x-icon {
display: block; display: block;
background: url('images/2x/icon/slider_normal_small.png') no-repeat 0 0; background: url('images/2x/icon/slider_normal_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/slider_normal_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/slider_normal_small.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.slider-icon .x-icon.hack { .slider-icon .x-icon.hack {
background: url('images/1x/icon/slider_normal_small.png') no-repeat 0 0; background: url('images/1x/icon/slider_normal_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/slider_normal_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/slider_normal_small.png');
_background: none; _background: none;
} }
.slider-icon:hover .x-icon, .slider-icon:hover .x-icon,
.slider-icon.hover .x-icon { .slider-icon.hover .x-icon {
display: block; display: block;
background: url('images/2x/icon/slider_active_small.png') no-repeat 0 0; background: url('images/2x/icon/slider_active_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/slider_active_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/slider_active_small.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.slider-icon:hover .x-icon.hack, .slider-icon:hover .x-icon.hack,
.slider-icon.hover .x-icon.hack { .slider-icon.hover .x-icon.hack {
background: url('images/1x/icon/slider_active_small.png') no-repeat 0 0; background: url('images/1x/icon/slider_active_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/slider_active_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/slider_active_small.png');
_background: none; _background: none;
} }
.slider-icon.disabled .x-icon { .slider-icon.disabled .x-icon {
display: block; display: block;
background: url('images/2x/icon/slider_normal_small.png') no-repeat 0 0; background: url('images/2x/icon/slider_normal_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/slider_normal_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/slider_normal_small.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.slider-icon.disabled .x-icon.hack { .slider-icon.disabled .x-icon.hack {
background: url('images/1x/icon/slider_normal_small.png') no-repeat 0 0; background: url('images/1x/icon/slider_normal_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/slider_normal_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/slider_normal_small.png');
_background: none; _background: none;
} }
.auto-color-icon .x-icon {
display: block;
background: url('images/2x/icon/auto_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/auto_normal.png');
background-size: contain;
_background: none;
}
.auto-color-icon .x-icon.hack {
background: url('images/1x/icon/auto_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/auto_normal.png');
_background: none;
}
.auto-color-icon.active .x-icon {
display: block;
background: url('images/2x/icon/auto_select.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/auto_select.png');
background-size: contain;
_background: none;
}
.auto-color-icon.active .x-icon.hack {
background: url('images/1x/icon/auto_select.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/auto_select.png');
_background: none;
}
.auto-color-icon.disabled .x-icon {
display: block;
background: url('images/2x/icon/auto_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/auto_disable.png');
background-size: contain;
_background: none;
}
.auto-color-icon.disabled .x-icon.hack {
background: url('images/1x/icon/auto_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/auto_disable.png');
_background: none;
}
.trans-color-icon .x-icon {
display: block;
background: url('images/2x/icon/trans_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/trans_normal.png');
background-size: contain;
_background: none;
}
.trans-color-icon .x-icon.hack {
background: url('images/1x/icon/trans_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/trans_normal.png');
_background: none;
}
.trans-color-icon.active .x-icon {
display: block;
background: url('images/2x/icon/trans_select.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/trans_select.png');
background-size: contain;
_background: none;
}
.trans-color-icon.active .x-icon.hack {
background: url('images/1x/icon/trans_select.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/trans_select.png');
_background: none;
}
.trans-color-icon.disabled .x-icon {
display: block;
background: url('images/2x/icon/trans_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/trans_disable.png');
background-size: contain;
_background: none;
}
.trans-color-icon.disabled .x-icon.hack {
background: url('images/1x/icon/trans_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/trans_disable.png');
_background: none;
}

132
public/css/icon.css

@ -264,149 +264,149 @@
} }
.check-box-icon .x-icon { .check-box-icon .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_normal.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon .x-icon.hack { .check-box-icon .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_normal.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_normal.png');
_background: none; _background: none;
} }
.check-box-icon:hover .x-icon, .check-box-icon:hover .x-icon,
.check-box-icon.hover .x-icon { .check-box-icon.hover .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_normal.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon:hover .x-icon.hack, .check-box-icon:hover .x-icon.hack,
.check-box-icon.hover .x-icon.hack { .check-box-icon.hover .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_normal.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_normal.png');
_background: none; _background: none;
} }
.check-box-icon:active .x-icon { .check-box-icon:active .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_normal.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon:active .x-icon.hack { .check-box-icon:active .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_normal.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_normal.png');
_background: none; _background: none;
} }
.check-box-icon.active .x-icon { .check-box-icon.active .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_active.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_active.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_active.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_active.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon.active .x-icon.hack { .check-box-icon.active .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_active.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_active.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_active.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_active.png');
_background: none; _background: none;
} }
.check-box-icon.disabled .x-icon { .check-box-icon.disabled .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_disable.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_disable.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_disable.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon.disabled .x-icon.hack { .check-box-icon.disabled .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_disable.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_disable.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_disable.png');
_background: none; _background: none;
} }
.check-box-icon.disabled.active .x-icon { .check-box-icon.disabled.active .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_disable2.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_disable2.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_disable2.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/check_box_disable2.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon.disabled.active .x-icon.hack { .check-box-icon.disabled.active .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_disable2.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_disable2.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_disable2.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/check_box_disable2.png');
_background: none; _background: none;
} }
.radio-icon .x-icon { .radio-icon .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_normal.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon .x-icon.hack { .radio-icon .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_normal.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_normal.png');
_background: none; _background: none;
} }
.radio-icon:hover .x-icon, .radio-icon:hover .x-icon,
.radio-icon.hover .x-icon { .radio-icon.hover .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_normal.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon:hover .x-icon.hack, .radio-icon:hover .x-icon.hack,
.radio-icon.hover .x-icon.hack { .radio-icon.hover .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_normal.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_normal.png');
_background: none; _background: none;
} }
.radio-icon:active .x-icon { .radio-icon:active .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_normal.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon:active .x-icon.hack { .radio-icon:active .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_normal.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_normal.png');
_background: none; _background: none;
} }
.radio-icon.active .x-icon { .radio-icon.active .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_active.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_active.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_active.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_active.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon.active .x-icon.hack { .radio-icon.active .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_active.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_active.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_active.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_active.png');
_background: none; _background: none;
} }
.radio-icon.disabled .x-icon { .radio-icon.disabled .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_disable.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_disable.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_disable.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon.disabled .x-icon.hack { .radio-icon.disabled .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_disable.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_disable.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_disable.png');
_background: none; _background: none;
} }
.radio-icon.disabled.active .x-icon { .radio-icon.disabled.active .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_disable2.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_disable2.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_disable2.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/radio_disable2.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon.disabled.active .x-icon.hack { .radio-icon.disabled.active .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_disable2.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_disable2.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_disable2.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/radio_disable2.png');
_background: none; _background: none;
} }
@ -424,39 +424,111 @@
} }
.slider-icon .x-icon { .slider-icon .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/slider_normal_small.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/slider_normal_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/slider_normal_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/slider_normal_small.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.slider-icon .x-icon.hack { .slider-icon .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/slider_normal_small.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/slider_normal_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/slider_normal_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/slider_normal_small.png');
_background: none; _background: none;
} }
.slider-icon:hover .x-icon, .slider-icon:hover .x-icon,
.slider-icon.hover .x-icon { .slider-icon.hover .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/slider_active_small.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/slider_active_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/slider_active_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/slider_active_small.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.slider-icon:hover .x-icon.hack, .slider-icon:hover .x-icon.hack,
.slider-icon.hover .x-icon.hack { .slider-icon.hover .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/slider_active_small.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/slider_active_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/slider_active_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/slider_active_small.png');
_background: none; _background: none;
} }
.slider-icon.disabled .x-icon { .slider-icon.disabled .x-icon {
display: block; display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/slider_normal_small.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/slider_normal_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/slider_normal_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/slider_normal_small.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.slider-icon.disabled .x-icon.hack { .slider-icon.disabled .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/slider_normal_small.png') no-repeat 0 0; background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/slider_normal_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/slider_normal_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/slider_normal_small.png');
_background: none; _background: none;
} }
.auto-color-icon .x-icon {
display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/auto_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/auto_normal.png');
background-size: contain;
_background: none;
}
.auto-color-icon .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/auto_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/auto_normal.png');
_background: none;
}
.auto-color-icon.active .x-icon {
display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/auto_select.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/auto_select.png');
background-size: contain;
_background: none;
}
.auto-color-icon.active .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/auto_select.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/auto_select.png');
_background: none;
}
.auto-color-icon.disabled .x-icon {
display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/auto_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/auto_disable.png');
background-size: contain;
_background: none;
}
.auto-color-icon.disabled .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/auto_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/auto_disable.png');
_background: none;
}
.trans-color-icon .x-icon {
display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/trans_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/trans_normal.png');
background-size: contain;
_background: none;
}
.trans-color-icon .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/trans_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/trans_normal.png');
_background: none;
}
.trans-color-icon.active .x-icon {
display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/trans_select.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/trans_select.png');
background-size: contain;
_background: none;
}
.trans-color-icon.active .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/trans_select.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/trans_select.png');
_background: none;
}
.trans-color-icon.disabled .x-icon {
display: block;
background: url('https://fanruan.coding.me/fineui/dist/images/2x/icon/trans_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/2x/icon/trans_disable.png');
background-size: contain;
_background: none;
}
.trans-color-icon.disabled .x-icon.hack {
background: url('https://fanruan.coding.me/fineui/dist/images/1x/icon/trans_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://fanruan.coding.me/fineui/dist/images/1x/icon/trans_disable.png');
_background: none;
}

1
public/js/index.js

@ -1,4 +1,3 @@
BI.servletURL = "https://fanruan.coding.me/fineui/dist/";
BI.resourceURL = "https://fanruan.coding.me/fineui/dist/resource/"; BI.resourceURL = "https://fanruan.coding.me/fineui/dist/resource/";
BI.i18n = { BI.i18n = {
"BI-Multi_Date_Quarter_End": "季度末", "BI-Multi_Date_Quarter_End": "季度末",

2
src/base/single/a/a.js

@ -14,7 +14,7 @@ BI.A = BI.inherit(BI.Text, {
href: "", href: "",
target: "_blank", target: "_blank",
el: null, el: null,
element: "<a/>" tagName: "a"
}); });
}, },
_init: function () { _init: function () {

3
src/base/single/input/file.js

@ -473,8 +473,7 @@
// enable again the submit button/element // enable again the submit button/element
}, 1000); }, 1000);
}; };
_wrap.url = o.url ? o.url : BI.servletURL _wrap.url = o.url;
+ "?op=fr_attach&cmd=ah_upload";
_wrap.fileType = o.accept; // 文件类型限制 _wrap.fileType = o.accept; // 文件类型限制
_wrap.attach_array = []; _wrap.attach_array = [];
_wrap.attach_names = []; _wrap.attach_names = [];

3
src/base/single/link/link.js

@ -7,7 +7,8 @@ BI.Link = BI.inherit(BI.Label, {
_defaultConfig: function () { _defaultConfig: function () {
var conf = BI.Link.superclass._defaultConfig.apply(this, arguments); var conf = BI.Link.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, { return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-link", baseCls: (conf.baseCls || "") + " bi-link display-block",
tagName: "a",
href: "", href: "",
target: "_blank" target: "_blank"
}); });

3
src/base/tree/treeview.js

@ -114,7 +114,7 @@ BI.TreeView = BI.inherit(BI.Pane, {
+ "&parentValues= " + window.encodeURIComponent(BI.jsonEncode(parentNode)) + "&parentValues= " + window.encodeURIComponent(BI.jsonEncode(parentNode))
+ "&checkState=" + window.encodeURIComponent(BI.jsonEncode(treeNode.getCheckStatus())); + "&checkState=" + window.encodeURIComponent(BI.jsonEncode(treeNode.getCheckStatus()));
return BI.servletURL + "?op=" + self.options.op + "&cmd=" + self.options.cmd + "&" + param; return "&" + param;
} }
function beforeExpand (treeId, treeNode) { function beforeExpand (treeId, treeNode) {
@ -163,7 +163,6 @@ BI.TreeView = BI.inherit(BI.Pane, {
function ajaxGetNodes (treeNode, reloadType) { function ajaxGetNodes (treeNode, reloadType) {
var zTree = self.nodes; var zTree = self.nodes;
if (reloadType == "refresh") { if (reloadType == "refresh") {
// treeNode.icon = BI.servletURL +"?op=resource&resource=/com/fr/bi/web/css/base/third/ztree/img/loading.gif";
zTree.updateNode(treeNode); zTree.updateNode(treeNode);
} }
zTree.reAsyncChildNodes(treeNode, reloadType, true); zTree.reAsyncChildNodes(treeNode, reloadType, true);

38
src/case/colorchooser/colorpicker/editor.colorpicker.js

@ -56,15 +56,20 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
this.B = Ws[2]; this.B = Ws[2];
this.none = BI.createWidget({ this.none = BI.createWidget({
type: "bi.checkbox", type: "bi.icon_button",
cls: "auto-color-icon",
width: 16,
height: 16,
iconWidth: 16,
iconHeight: 16,
title: BI.i18nText("BI-Basic_Auto") title: BI.i18nText("BI-Basic_Auto")
}); });
this.none.on(BI.Checkbox.EVENT_CHANGE, function () { this.none.on(BI.IconButton.EVENT_CHANGE, function () {
if (this.isSelected()) { if (this.isSelected()) {
self.lastColor = self.getValue(); self.lastColor = self.getValue();
self.setValue(""); self.setValue("");
} else { } else {
self.setValue(self.lastColor || "#000000"); self.setValue(self.lastColor || "#ffffff");
} }
if (self.R.isValid() && self.G.isValid() && self.B.isValid()) { if (self.R.isValid() && self.G.isValid() && self.B.isValid()) {
self.colorShow.element.css("background-color", self.getValue()); self.colorShow.element.css("background-color", self.getValue());
@ -73,15 +78,23 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
}); });
this.transparent = BI.createWidget({ this.transparent = BI.createWidget({
type: "bi.checkbox", type: "bi.icon_button",
cls: "trans-color-icon",
width: 16,
height: 16,
iconWidth: 16,
iconHeight: 16,
title: BI.i18nText("BI-Transparent_Color") title: BI.i18nText("BI-Transparent_Color")
}); });
this.transparent.on(BI.Checkbox.EVENT_CHANGE, function () { this.transparent.on(BI.IconButton.EVENT_CHANGE, function () {
if (this.isSelected()) { if (this.isSelected()) {
self.lastColor = self.getValue(); self.lastColor = self.getValue();
self.setValue("transparent"); self.setValue("transparent");
} else { } else {
self.setValue(self.lastColor || "#000000"); if (self.lastColor === "transparent") {
self.lastColor = "";
}
self.setValue(self.lastColor || "#ffffff");
} }
if (self.R.isValid() && self.G.isValid() && self.B.isValid()) { if (self.R.isValid() && self.G.isValid() && self.B.isValid()) {
self.colorShow.element.css("background-color", self.getValue()); self.colorShow.element.css("background-color", self.getValue());
@ -132,10 +145,21 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
}); });
}, },
_showPreColor: function (color) {
if (color === "") {
this.colorShow.element.css("background-color", "").removeClass("trans-color-background").addClass("auto-color-background");
} else if (color === "transparent") {
this.colorShow.element.css("background-color", "").removeClass("auto-color-background").addClass("trans-color-background");
} else {
this.colorShow.element.css({"background-color": color}).removeClass("auto-color-background").removeClass("trans-color-background");
}
},
setValue: function (color) { setValue: function (color) {
if (color === "transparent") { if (color === "transparent") {
this.transparent.setSelected(true); this.transparent.setSelected(true);
this.none.setSelected(false); this.none.setSelected(false);
this._showPreColor("transparent");
this.R.setValue(""); this.R.setValue("");
this.G.setValue(""); this.G.setValue("");
this.B.setValue(""); this.B.setValue("");
@ -148,7 +172,7 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
this.none.setSelected(false); this.none.setSelected(false);
} }
this.transparent.setSelected(false); this.transparent.setSelected(false);
this.colorShow.element.css("background-color", color); this._showPreColor(color);
var json = BI.DOM.rgb2json(BI.DOM.hex2rgb(color)); var json = BI.DOM.rgb2json(BI.DOM.hex2rgb(color));
this.R.setValue(BI.isNull(json.r) ? "" : json.r); this.R.setValue(BI.isNull(json.r) ? "" : json.r);
this.G.setValue(BI.isNull(json.g) ? "" : json.g); this.G.setValue(BI.isNull(json.g) ? "" : json.g);

8
src/core/base.js

@ -78,10 +78,16 @@ if (!window.BI) {
return widget instanceof BI.Widget || (BI.View && widget instanceof BI.View); return widget instanceof BI.Widget || (BI.View && widget instanceof BI.View);
}, },
createWidgets: function (items, options) { createWidgets: function (items, options, context) {
if (!BI.isArray(items)) { if (!BI.isArray(items)) {
throw new Error("cannot create Widgets"); throw new Error("cannot create Widgets");
} }
if (BI.isWidget(options)) {
context = options;
options = {};
} else {
options || (options = {});
}
return BI.map(BI.flatten(items), function (i, item) { return BI.map(BI.flatten(items), function (i, item) {
return BI.createWidget(item, BI.deepClone(options)); return BI.createWidget(item, BI.deepClone(options));
}); });

21
src/core/utils/load.js

@ -1,25 +1,4 @@
window.BI = window.BI || {};
_.extend(BI, { _.extend(BI, {
$defaultImport: function (options, type) {
var config;
if (BI.isObject(options)) {
config = $.extend({
op: "resource",
path: null,
type: null,
must: false
}, options);
config.url = BI.servletURL + "?op=" + config.op + "&resource=" + config.path;
} else {
config = {
url: BI.servletURL + "?op=resource&resource=" + options,
type: arguments[1],
must: arguments[2]
};
}
this.$import(config.url, config.type, config.must);
},
$import: function () { $import: function () {
var _LOADED = {}; // alex:保存加载过的 var _LOADED = {}; // alex:保存加载过的
function loadReady (src, must) { function loadReady (src, must) {

132
src/css/resource/icon.css

@ -264,149 +264,149 @@
} }
.check-box-icon .x-icon { .check-box-icon .x-icon {
display: block; display: block;
background: url('images/2x/icon/check_box_normal.png') no-repeat 0 0; background: url('images/2x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/check_box_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon .x-icon.hack { .check-box-icon .x-icon.hack {
background: url('images/1x/icon/check_box_normal.png') no-repeat 0 0; background: url('images/1x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/check_box_normal.png');
_background: none; _background: none;
} }
.check-box-icon:hover .x-icon, .check-box-icon:hover .x-icon,
.check-box-icon.hover .x-icon { .check-box-icon.hover .x-icon {
display: block; display: block;
background: url('images/2x/icon/check_box_normal.png') no-repeat 0 0; background: url('images/2x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/check_box_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon:hover .x-icon.hack, .check-box-icon:hover .x-icon.hack,
.check-box-icon.hover .x-icon.hack { .check-box-icon.hover .x-icon.hack {
background: url('images/1x/icon/check_box_normal.png') no-repeat 0 0; background: url('images/1x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/check_box_normal.png');
_background: none; _background: none;
} }
.check-box-icon:active .x-icon { .check-box-icon:active .x-icon {
display: block; display: block;
background: url('images/2x/icon/check_box_normal.png') no-repeat 0 0; background: url('images/2x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/check_box_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon:active .x-icon.hack { .check-box-icon:active .x-icon.hack {
background: url('images/1x/icon/check_box_normal.png') no-repeat 0 0; background: url('images/1x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/check_box_normal.png');
_background: none; _background: none;
} }
.check-box-icon.active .x-icon { .check-box-icon.active .x-icon {
display: block; display: block;
background: url('images/2x/icon/check_box_active.png') no-repeat 0 0; background: url('images/2x/icon/check_box_active.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/check_box_active.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/check_box_active.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon.active .x-icon.hack { .check-box-icon.active .x-icon.hack {
background: url('images/1x/icon/check_box_active.png') no-repeat 0 0; background: url('images/1x/icon/check_box_active.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/check_box_active.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/check_box_active.png');
_background: none; _background: none;
} }
.check-box-icon.disabled .x-icon { .check-box-icon.disabled .x-icon {
display: block; display: block;
background: url('images/2x/icon/check_box_disable.png') no-repeat 0 0; background: url('images/2x/icon/check_box_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/check_box_disable.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/check_box_disable.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon.disabled .x-icon.hack { .check-box-icon.disabled .x-icon.hack {
background: url('images/1x/icon/check_box_disable.png') no-repeat 0 0; background: url('images/1x/icon/check_box_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/check_box_disable.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/check_box_disable.png');
_background: none; _background: none;
} }
.check-box-icon.disabled.active .x-icon { .check-box-icon.disabled.active .x-icon {
display: block; display: block;
background: url('images/2x/icon/check_box_disable2.png') no-repeat 0 0; background: url('images/2x/icon/check_box_disable2.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/check_box_disable2.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/check_box_disable2.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon.disabled.active .x-icon.hack { .check-box-icon.disabled.active .x-icon.hack {
background: url('images/1x/icon/check_box_disable2.png') no-repeat 0 0; background: url('images/1x/icon/check_box_disable2.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/check_box_disable2.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/check_box_disable2.png');
_background: none; _background: none;
} }
.radio-icon .x-icon { .radio-icon .x-icon {
display: block; display: block;
background: url('images/2x/icon/radio_normal.png') no-repeat 0 0; background: url('images/2x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/radio_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon .x-icon.hack { .radio-icon .x-icon.hack {
background: url('images/1x/icon/radio_normal.png') no-repeat 0 0; background: url('images/1x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/radio_normal.png');
_background: none; _background: none;
} }
.radio-icon:hover .x-icon, .radio-icon:hover .x-icon,
.radio-icon.hover .x-icon { .radio-icon.hover .x-icon {
display: block; display: block;
background: url('images/2x/icon/radio_normal.png') no-repeat 0 0; background: url('images/2x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/radio_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon:hover .x-icon.hack, .radio-icon:hover .x-icon.hack,
.radio-icon.hover .x-icon.hack { .radio-icon.hover .x-icon.hack {
background: url('images/1x/icon/radio_normal.png') no-repeat 0 0; background: url('images/1x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/radio_normal.png');
_background: none; _background: none;
} }
.radio-icon:active .x-icon { .radio-icon:active .x-icon {
display: block; display: block;
background: url('images/2x/icon/radio_normal.png') no-repeat 0 0; background: url('images/2x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/radio_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon:active .x-icon.hack { .radio-icon:active .x-icon.hack {
background: url('images/1x/icon/radio_normal.png') no-repeat 0 0; background: url('images/1x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/radio_normal.png');
_background: none; _background: none;
} }
.radio-icon.active .x-icon { .radio-icon.active .x-icon {
display: block; display: block;
background: url('images/2x/icon/radio_active.png') no-repeat 0 0; background: url('images/2x/icon/radio_active.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/radio_active.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/radio_active.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon.active .x-icon.hack { .radio-icon.active .x-icon.hack {
background: url('images/1x/icon/radio_active.png') no-repeat 0 0; background: url('images/1x/icon/radio_active.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/radio_active.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/radio_active.png');
_background: none; _background: none;
} }
.radio-icon.disabled .x-icon { .radio-icon.disabled .x-icon {
display: block; display: block;
background: url('images/2x/icon/radio_disable.png') no-repeat 0 0; background: url('images/2x/icon/radio_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/radio_disable.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/radio_disable.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon.disabled .x-icon.hack { .radio-icon.disabled .x-icon.hack {
background: url('images/1x/icon/radio_disable.png') no-repeat 0 0; background: url('images/1x/icon/radio_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/radio_disable.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/radio_disable.png');
_background: none; _background: none;
} }
.radio-icon.disabled.active .x-icon { .radio-icon.disabled.active .x-icon {
display: block; display: block;
background: url('images/2x/icon/radio_disable2.png') no-repeat 0 0; background: url('images/2x/icon/radio_disable2.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/radio_disable2.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/radio_disable2.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon.disabled.active .x-icon.hack { .radio-icon.disabled.active .x-icon.hack {
background: url('images/1x/icon/radio_disable2.png') no-repeat 0 0; background: url('images/1x/icon/radio_disable2.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/radio_disable2.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/radio_disable2.png');
_background: none; _background: none;
} }
@ -424,39 +424,111 @@
} }
.slider-icon .x-icon { .slider-icon .x-icon {
display: block; display: block;
background: url('images/2x/icon/slider_normal_small.png') no-repeat 0 0; background: url('images/2x/icon/slider_normal_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/slider_normal_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/slider_normal_small.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.slider-icon .x-icon.hack { .slider-icon .x-icon.hack {
background: url('images/1x/icon/slider_normal_small.png') no-repeat 0 0; background: url('images/1x/icon/slider_normal_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/slider_normal_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/slider_normal_small.png');
_background: none; _background: none;
} }
.slider-icon:hover .x-icon, .slider-icon:hover .x-icon,
.slider-icon.hover .x-icon { .slider-icon.hover .x-icon {
display: block; display: block;
background: url('images/2x/icon/slider_active_small.png') no-repeat 0 0; background: url('images/2x/icon/slider_active_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/slider_active_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/slider_active_small.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.slider-icon:hover .x-icon.hack, .slider-icon:hover .x-icon.hack,
.slider-icon.hover .x-icon.hack { .slider-icon.hover .x-icon.hack {
background: url('images/1x/icon/slider_active_small.png') no-repeat 0 0; background: url('images/1x/icon/slider_active_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/slider_active_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/slider_active_small.png');
_background: none; _background: none;
} }
.slider-icon.disabled .x-icon { .slider-icon.disabled .x-icon {
display: block; display: block;
background: url('images/2x/icon/slider_normal_small.png') no-repeat 0 0; background: url('images/2x/icon/slider_normal_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/slider_normal_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/slider_normal_small.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.slider-icon.disabled .x-icon.hack { .slider-icon.disabled .x-icon.hack {
background: url('images/1x/icon/slider_normal_small.png') no-repeat 0 0; background: url('images/1x/icon/slider_normal_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/slider_normal_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/slider_normal_small.png');
_background: none; _background: none;
} }
.auto-color-icon .x-icon {
display: block;
background: url('images/2x/icon/auto_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/auto_normal.png');
background-size: contain;
_background: none;
}
.auto-color-icon .x-icon.hack {
background: url('images/1x/icon/auto_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/auto_normal.png');
_background: none;
}
.auto-color-icon.active .x-icon {
display: block;
background: url('images/2x/icon/auto_select.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/auto_select.png');
background-size: contain;
_background: none;
}
.auto-color-icon.active .x-icon.hack {
background: url('images/1x/icon/auto_select.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/auto_select.png');
_background: none;
}
.auto-color-icon.disabled .x-icon {
display: block;
background: url('images/2x/icon/auto_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/auto_disable.png');
background-size: contain;
_background: none;
}
.auto-color-icon.disabled .x-icon.hack {
background: url('images/1x/icon/auto_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/auto_disable.png');
_background: none;
}
.trans-color-icon .x-icon {
display: block;
background: url('images/2x/icon/trans_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/trans_normal.png');
background-size: contain;
_background: none;
}
.trans-color-icon .x-icon.hack {
background: url('images/1x/icon/trans_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/trans_normal.png');
_background: none;
}
.trans-color-icon.active .x-icon {
display: block;
background: url('images/2x/icon/trans_select.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/trans_select.png');
background-size: contain;
_background: none;
}
.trans-color-icon.active .x-icon.hack {
background: url('images/1x/icon/trans_select.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/trans_select.png');
_background: none;
}
.trans-color-icon.disabled .x-icon {
display: block;
background: url('images/2x/icon/trans_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/2x/icon/trans_disable.png');
background-size: contain;
_background: none;
}
.trans-color-icon.disabled .x-icon.hack {
background: url('images/1x/icon/trans_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/1x/icon/trans_disable.png');
_background: none;
}

120
src/less/image.less

@ -32,71 +32,71 @@
} }
// 有悬浮效果的icon // 有悬浮效果的icon
.icon_hover(@class, @iconPath, @hoverPath: @iconPath) { .icon_hover(@class, @iconPath, @hoverPath: @iconPath, @disablePath: @iconPath) {
.@{class} { .@{class} {
& .x-icon { & .x-icon {
display: block; display: block;
.image2xPath(@iconPath, 0, 0); .image2xPath(@iconPath);
&.hack { &.hack {
.imagePath(@iconPath, 0, 0); .imagePath(@iconPath);
} }
} }
&:hover .x-icon, &:hover .x-icon,
&.hover .x-icon { &.hover .x-icon {
display: block; display: block;
.image2xPath(@hoverPath, 0, 0); .image2xPath(@hoverPath);
&.hack { &.hack {
.imagePath(@hoverPath, 0, 0); .imagePath(@hoverPath);
} }
} }
&.disabled .x-icon { &.disabled .x-icon {
display: block; display: block;
.image2xPath(@iconPath, 0, 0); .image2xPath(@disablePath);
&.hack { &.hack {
.imagePath(@iconPath, 0, 0); .imagePath(@disablePath);
} }
} }
} }
} }
// 有悬浮、激活(选中)的icon // 有悬浮、激活(选中)的icon
.icon_hover_active(@class, @iconPath, @hoverPath: @iconPath, @activePath: @iconPath) { .icon_hover_active(@class, @iconPath, @hoverPath: @iconPath, @activePath: @iconPath, @disablePath: @iconPath) {
.@{class} { .@{class} {
& .x-icon { & .x-icon {
display: block; display: block;
.image2xPath(@iconPath, 0, 0); .image2xPath(@iconPath);
&.hack { &.hack {
.imagePath(@iconPath, 0, 0); .imagePath(@iconPath);
} }
} }
&:hover .x-icon, &:hover .x-icon,
&.hover .x-icon { &.hover .x-icon {
display: block; display: block;
.image2xPath(@hoverPath, 0, 0); .image2xPath(@hoverPath);
&.hack { &.hack {
.imagePath(@hoverPath, 0, 0); .imagePath(@hoverPath);
} }
} }
&:active .x-icon, &:active .x-icon,
&.active .x-icon { &.active .x-icon {
display: block; display: block;
.image2xPath(@activePath, 0, 0); .image2xPath(@activePath);
&.hack { &.hack {
.imagePath(@activePath, 0, 0); .imagePath(@activePath);
} }
} }
&.disabled .x-icon { &.disabled .x-icon {
display: block; display: block;
.image2xPath(@iconPath, 0, 0); .image2xPath(@disablePath);
&.hack { &.hack {
.imagePath(@iconPath, 0, 0); .imagePath(@disablePath);
} }
} }
} }
} }
// 有悬浮、选中的icon // 只有有选中的icon
.icon_select(@class, @iconPath, @selectPath: @iconPath) { .icon_select(@class, @iconPath, @selectPath: @iconPath, @disablePath: @iconPath) {
.@{class} { .@{class} {
& .x-icon { & .x-icon {
display: block; display: block;
@ -114,9 +114,9 @@
} }
&.disabled .x-icon { &.disabled .x-icon {
display: block; display: block;
.image2xPath(@iconPath); .image2xPath(@disablePath);
&.hack { &.hack {
.imagePath(@iconPath); .imagePath(@disablePath);
} }
} }
} }
@ -127,17 +127,17 @@
.@{class} { .@{class} {
& .x-icon { & .x-icon {
display: block; display: block;
.image2xPath(@iconPath, 0, 0); .image2xPath(@iconPath);
&.hack { &.hack {
.imagePath(@iconPath, 0, 0); .imagePath(@iconPath);
} }
} }
&.disabled .x-icon { &.disabled .x-icon {
display: block; display: block;
.image2xPath(@disablePath, 0, 0); .image2xPath(@disablePath);
&.hack { &.hack {
.imagePath(@disablePath, 0, 0); .imagePath(@disablePath);
} }
} }
} }
@ -148,26 +148,26 @@
.@{class} { .@{class} {
& .x-icon { & .x-icon {
display: block; display: block;
.image2xPath(@iconPath, 0, 0); .image2xPath(@iconPath);
&.hack { &.hack {
.imagePath(@iconPath, 0, 0); .imagePath(@iconPath);
} }
} }
&:hover .x-icon, &:hover .x-icon,
&.hover .x-icon { &.hover .x-icon {
display: block; display: block;
.image2xPath(@hoverPath, 0, 0); .image2xPath(@hoverPath);
&.hack { &.hack {
.imagePath(@hoverPath, 0, 0); .imagePath(@hoverPath);
} }
} }
&.disabled .x-icon { &.disabled .x-icon {
display: block; display: block;
.image2xPath(@disablePath, 0, 0); .image2xPath(@disablePath);
&.hack { &.hack {
.imagePath(@disablePath, 0, 0); .imagePath(@disablePath);
} }
} }
} }
@ -178,35 +178,35 @@
.@{class} { .@{class} {
& .x-icon { & .x-icon {
display: block; display: block;
.image2xPath(@iconPath, 0, 0); .image2xPath(@iconPath);
&.hack { &.hack {
.imagePath(@iconPath, 0, 0); .imagePath(@iconPath);
} }
} }
&:hover .x-icon, &:hover .x-icon,
&.hover .x-icon { &.hover .x-icon {
display: block; display: block;
.image2xPath(@hoverPath, 0, 0); .image2xPath(@hoverPath);
&.hack { &.hack {
.imagePath(@hoverPath, 0, 0); .imagePath(@hoverPath);
} }
} }
&:active .x-icon, &:active .x-icon,
&.active .x-icon { &.active .x-icon {
display: block; display: block;
.image2xPath(@activePath, 0, 0); .image2xPath(@activePath);
&.hack { &.hack {
.imagePath(@activePath, 0, 0); .imagePath(@activePath);
} }
} }
&.disabled .x-icon { &.disabled .x-icon {
display: block; display: block;
.image2xPath(@disablePath, 0, 0); .image2xPath(@disablePath);
&.hack { &.hack {
.imagePath(@disablePath, 0, 0); .imagePath(@disablePath);
} }
} }
} }
@ -217,42 +217,42 @@
.@{class} { .@{class} {
& .x-icon { & .x-icon {
display: block; display: block;
.image2xPath(@iconPath, 0, 0); .image2xPath(@iconPath);
&.hack { &.hack {
.imagePath(@iconPath, 0, 0); .imagePath(@iconPath);
} }
} }
&:hover .x-icon, &:hover .x-icon,
&.hover .x-icon { &.hover .x-icon {
display: block; display: block;
.image2xPath(@hoverPath, 0, 0); .image2xPath(@hoverPath);
&.hack { &.hack {
.imagePath(@hoverPath, 0, 0); .imagePath(@hoverPath);
} }
} }
&:active .x-icon { &:active .x-icon {
display: block; display: block;
.image2xPath(@activePath, 0, 0); .image2xPath(@activePath);
&.hack { &.hack {
.imagePath(@activePath, 0, 0); .imagePath(@activePath);
} }
} }
&.active .x-icon { &.active .x-icon {
display: block; display: block;
.image2xPath(@selectedPath, 0, 0); .image2xPath(@selectedPath);
&.hack { &.hack {
.imagePath(@selectedPath, 0, 0); .imagePath(@selectedPath);
} }
} }
&.disabled .x-icon { &.disabled .x-icon {
display: block; display: block;
.image2xPath(@disablePath, 0, 0); .image2xPath(@disablePath);
&.hack { &.hack {
.imagePath(@disablePath, 0, 0); .imagePath(@disablePath);
} }
} }
} }
@ -263,48 +263,48 @@
.@{class} { .@{class} {
& .x-icon { & .x-icon {
display: block; display: block;
.image2xPath(@iconPath, 0, 0); .image2xPath(@iconPath);
&.hack { &.hack {
.imagePath(@iconPath, 0, 0); .imagePath(@iconPath);
} }
} }
&:hover .x-icon, &:hover .x-icon,
&.hover .x-icon { &.hover .x-icon {
display: block; display: block;
.image2xPath(@hoverPath, 0, 0); .image2xPath(@hoverPath);
&.hack { &.hack {
.imagePath(@hoverPath, 0, 0); .imagePath(@hoverPath);
} }
} }
&:active .x-icon { &:active .x-icon {
display: block; display: block;
.image2xPath(@activePath, 0, 0); .image2xPath(@activePath);
&.hack { &.hack {
.imagePath(@activePath, 0, 0); .imagePath(@activePath);
} }
} }
&.active .x-icon { &.active .x-icon {
display: block; display: block;
.image2xPath(@selectedPath, 0, 0); .image2xPath(@selectedPath);
&.hack { &.hack {
.imagePath(@selectedPath, 0, 0); .imagePath(@selectedPath);
} }
} }
&.disabled .x-icon { &.disabled .x-icon {
display: block; display: block;
.image2xPath(@disablePath, 0, 0); .image2xPath(@disablePath);
&.hack { &.hack {
.imagePath(@disablePath, 0, 0); .imagePath(@disablePath);
} }
} }
&.disabled.active .x-icon { &.disabled.active .x-icon {
display: block; display: block;
.image2xPath(@activeDisablePath, 0, 0); .image2xPath(@activeDisablePath);
&.hack { &.hack {
.imagePath(@activeDisablePath, 0, 0); .imagePath(@activeDisablePath);
} }
} }
} }

8
src/less/lib/icon.less

@ -45,3 +45,11 @@
//滑块 //滑块
@icon-slider-normal: "icon/slider_normal_small.png"; @icon-slider-normal: "icon/slider_normal_small.png";
@icon-slider-active: "icon/slider_active_small.png"; @icon-slider-active: "icon/slider_active_small.png";
//颜色自动、透明
@icon-auto-normal: "icon/auto_normal.png";
@icon-auto-select: "icon/auto_select.png";
@icon-auto-disable: "icon/auto_disable.png";
@icon-trans-normal: "icon/trans_normal.png";
@icon-trans-select: "icon/trans_select.png";
@icon-trans-disable: "icon/trans_disable.png";

3
src/less/resource/icon.less

@ -69,3 +69,6 @@
//滑块 //滑块
.icon_hover(slider-icon, @icon-slider-normal, @icon-slider-active); .icon_hover(slider-icon, @icon-slider-normal, @icon-slider-active);
//颜色自动、透明
.icon_select(auto-color-icon, @icon-auto-normal, @icon-auto-select, @icon-auto-disable);
.icon_select(trans-color-icon, @icon-trans-normal, @icon-trans-select, @icon-trans-disable);

132
ui/css/icon.css

@ -264,149 +264,149 @@
} }
.check-box-icon .x-icon { .check-box-icon .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/check_box_normal.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/check_box_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon .x-icon.hack { .check-box-icon .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/check_box_normal.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/check_box_normal.png');
_background: none; _background: none;
} }
.check-box-icon:hover .x-icon, .check-box-icon:hover .x-icon,
.check-box-icon.hover .x-icon { .check-box-icon.hover .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/check_box_normal.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/check_box_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon:hover .x-icon.hack, .check-box-icon:hover .x-icon.hack,
.check-box-icon.hover .x-icon.hack { .check-box-icon.hover .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/check_box_normal.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/check_box_normal.png');
_background: none; _background: none;
} }
.check-box-icon:active .x-icon { .check-box-icon:active .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/check_box_normal.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/check_box_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon:active .x-icon.hack { .check-box-icon:active .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/check_box_normal.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/check_box_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/check_box_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/check_box_normal.png');
_background: none; _background: none;
} }
.check-box-icon.active .x-icon { .check-box-icon.active .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/check_box_active.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/check_box_active.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/check_box_active.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/check_box_active.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon.active .x-icon.hack { .check-box-icon.active .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/check_box_active.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/check_box_active.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/check_box_active.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/check_box_active.png');
_background: none; _background: none;
} }
.check-box-icon.disabled .x-icon { .check-box-icon.disabled .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/check_box_disable.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/check_box_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/check_box_disable.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/check_box_disable.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon.disabled .x-icon.hack { .check-box-icon.disabled .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/check_box_disable.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/check_box_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/check_box_disable.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/check_box_disable.png');
_background: none; _background: none;
} }
.check-box-icon.disabled.active .x-icon { .check-box-icon.disabled.active .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/check_box_disable2.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/check_box_disable2.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/check_box_disable2.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/check_box_disable2.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.check-box-icon.disabled.active .x-icon.hack { .check-box-icon.disabled.active .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/check_box_disable2.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/check_box_disable2.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/check_box_disable2.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/check_box_disable2.png');
_background: none; _background: none;
} }
.radio-icon .x-icon { .radio-icon .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/radio_normal.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/radio_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon .x-icon.hack { .radio-icon .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/radio_normal.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/radio_normal.png');
_background: none; _background: none;
} }
.radio-icon:hover .x-icon, .radio-icon:hover .x-icon,
.radio-icon.hover .x-icon { .radio-icon.hover .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/radio_normal.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/radio_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon:hover .x-icon.hack, .radio-icon:hover .x-icon.hack,
.radio-icon.hover .x-icon.hack { .radio-icon.hover .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/radio_normal.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/radio_normal.png');
_background: none; _background: none;
} }
.radio-icon:active .x-icon { .radio-icon:active .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/radio_normal.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/radio_normal.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon:active .x-icon.hack { .radio-icon:active .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/radio_normal.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/radio_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/radio_normal.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/radio_normal.png');
_background: none; _background: none;
} }
.radio-icon.active .x-icon { .radio-icon.active .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/radio_active.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/radio_active.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/radio_active.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/radio_active.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon.active .x-icon.hack { .radio-icon.active .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/radio_active.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/radio_active.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/radio_active.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/radio_active.png');
_background: none; _background: none;
} }
.radio-icon.disabled .x-icon { .radio-icon.disabled .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/radio_disable.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/radio_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/radio_disable.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/radio_disable.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon.disabled .x-icon.hack { .radio-icon.disabled .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/radio_disable.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/radio_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/radio_disable.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/radio_disable.png');
_background: none; _background: none;
} }
.radio-icon.disabled.active .x-icon { .radio-icon.disabled.active .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/radio_disable2.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/radio_disable2.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/radio_disable2.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/radio_disable2.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.radio-icon.disabled.active .x-icon.hack { .radio-icon.disabled.active .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/radio_disable2.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/radio_disable2.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/radio_disable2.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/radio_disable2.png');
_background: none; _background: none;
} }
@ -424,39 +424,111 @@
} }
.slider-icon .x-icon { .slider-icon .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/slider_normal_small.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/slider_normal_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/slider_normal_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/slider_normal_small.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.slider-icon .x-icon.hack { .slider-icon .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/slider_normal_small.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/slider_normal_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/slider_normal_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/slider_normal_small.png');
_background: none; _background: none;
} }
.slider-icon:hover .x-icon, .slider-icon:hover .x-icon,
.slider-icon.hover .x-icon { .slider-icon.hover .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/slider_active_small.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/slider_active_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/slider_active_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/slider_active_small.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.slider-icon:hover .x-icon.hack, .slider-icon:hover .x-icon.hack,
.slider-icon.hover .x-icon.hack { .slider-icon.hover .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/slider_active_small.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/slider_active_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/slider_active_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/slider_active_small.png');
_background: none; _background: none;
} }
.slider-icon.disabled .x-icon { .slider-icon.disabled .x-icon {
display: block; display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/slider_normal_small.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/2x/icon/slider_normal_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/slider_normal_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/slider_normal_small.png');
background-size: contain; background-size: contain;
_background: none; _background: none;
} }
.slider-icon.disabled .x-icon.hack { .slider-icon.disabled .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/slider_normal_small.png') no-repeat 0 0; background: url('resources?path=/com/fr/web/ui/images/1x/icon/slider_normal_small.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/slider_normal_small.png'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/slider_normal_small.png');
_background: none; _background: none;
} }
.auto-color-icon .x-icon {
display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/auto_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/auto_normal.png');
background-size: contain;
_background: none;
}
.auto-color-icon .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/auto_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/auto_normal.png');
_background: none;
}
.auto-color-icon.active .x-icon {
display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/auto_select.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/auto_select.png');
background-size: contain;
_background: none;
}
.auto-color-icon.active .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/auto_select.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/auto_select.png');
_background: none;
}
.auto-color-icon.disabled .x-icon {
display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/auto_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/auto_disable.png');
background-size: contain;
_background: none;
}
.auto-color-icon.disabled .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/auto_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/auto_disable.png');
_background: none;
}
.trans-color-icon .x-icon {
display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/trans_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/trans_normal.png');
background-size: contain;
_background: none;
}
.trans-color-icon .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/trans_normal.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/trans_normal.png');
_background: none;
}
.trans-color-icon.active .x-icon {
display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/trans_select.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/trans_select.png');
background-size: contain;
_background: none;
}
.trans-color-icon.active .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/trans_select.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/trans_select.png');
_background: none;
}
.trans-color-icon.disabled .x-icon {
display: block;
background: url('resources?path=/com/fr/web/ui/images/2x/icon/trans_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/2x/icon/trans_disable.png');
background-size: contain;
_background: none;
}
.trans-color-icon.disabled .x-icon.hack {
background: url('resources?path=/com/fr/web/ui/images/1x/icon/trans_disable.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='resources?path=/com/fr/web/ui/images/1x/icon/trans_disable.png');
_background: none;
}

2
ui/js/index.js

@ -1,5 +1,3 @@
BI.serverURL = "${serverURL}";
BI.servletURL = "${servletURL}";
BI.resourceURL = "file?path=/com/fr/web/ui/resource"; BI.resourceURL = "file?path=/com/fr/web/ui/resource";
BI.i18n = { BI.i18n = {
"BI-Multi_Date_Quarter_End": "季度末", "BI-Multi_Date_Quarter_End": "季度末",

31
utils/utils.js

@ -10643,10 +10643,16 @@ if (!window.BI) {
return widget instanceof BI.Widget || (BI.View && widget instanceof BI.View); return widget instanceof BI.Widget || (BI.View && widget instanceof BI.View);
}, },
createWidgets: function (items, options) { createWidgets: function (items, options, context) {
if (!BI.isArray(items)) { if (!BI.isArray(items)) {
throw new Error("cannot create Widgets"); throw new Error("cannot create Widgets");
} }
if (BI.isWidget(options)) {
context = options;
options = {};
} else {
options || (options = {});
}
return BI.map(BI.flatten(items), function (i, item) { return BI.map(BI.flatten(items), function (i, item) {
return BI.createWidget(item, BI.deepClone(options)); return BI.createWidget(item, BI.deepClone(options));
}); });
@ -14853,28 +14859,7 @@ BI.IntegerBufferSet.prototype = {
return array; return array;
} }
}; };
})();window.BI = window.BI || {}; })();_.extend(BI, {
_.extend(BI, {
$defaultImport: function (options, type) {
var config;
if (BI.isObject(options)) {
config = $.extend({
op: "resource",
path: null,
type: null,
must: false
}, options);
config.url = BI.servletURL + "?op=" + config.op + "&resource=" + config.path;
} else {
config = {
url: BI.servletURL + "?op=resource&resource=" + options,
type: arguments[1],
must: arguments[2]
};
}
this.$import(config.url, config.type, config.must);
},
$import: function () { $import: function () {
var _LOADED = {}; // alex:保存加载过的 var _LOADED = {}; // alex:保存加载过的
function loadReady (src, must) { function loadReady (src, must) {

Loading…
Cancel
Save