Browse Source

Merge branch 'master' of ssh://cloud.finedevelop.com:7999/~dailer/fineui

es6
dailer 6 years ago
parent
commit
3a6dda3524
  1. 2
      demo/js/case/combo/demo.bubble_combo.js
  2. 1
      public/css/font.css
  3. 2
      src/base/single/editor/editor.js
  4. 10
      src/base/single/editor/editor.textarea.js
  5. 1
      src/css/core/normalize2.css
  6. 1
      src/css/resource/font.css
  7. 1
      src/less/core/normalize2.less
  8. 1
      src/less/image.less
  9. 1
      src/widget/dynamicdate/dynamicdate.combo.js
  10. 7
      src/widget/dynamicdate/dynamicdate.trigger.js
  11. 1
      src/widget/dynamicdatetime/dynamicdatetime.combo.js
  12. 5
      src/widget/dynamicdatetime/dynamicdatetime.trigger.js
  13. 2
      src/widget/selecttree/selecttree.combo.js
  14. 3
      src/widget/time/time.combo.js
  15. 2
      src/widget/time/time.trigger.js
  16. 1
      ui/css/font.css

2
demo/js/case/combo/demo.bubble_combo.js

@ -100,7 +100,7 @@ Demo.Func = BI.inherit(BI.Widget, {
element: this, element: this,
items: [{ items: [{
el: combo1, el: combo1,
left: 10, left: 150,
top: 10 top: 10
}, { }, {
el: combo2, el: combo2,

1
public/css/font.css

@ -8,7 +8,6 @@
font-family: 'fineui'; font-family: 'fineui';
font-style: normal; font-style: normal;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.close-font .b-font { .close-font .b-font {

2
src/base/single/editor/editor.js

@ -240,7 +240,7 @@ BI.Editor = BI.inherit(BI.Single, {
var o = this.options; var o = this.options;
var errorText = o.errorText; var errorText = o.errorText;
if (BI.isFunction(errorText)) { if (BI.isFunction(errorText)) {
errorText = errorText(this.editor.getValue()); errorText = errorText(BI.trim(this.editor.getValue()));
} }
if (!this.disabledError && BI.isKey(errorText)) { if (!this.disabledError && BI.isKey(errorText)) {
BI.Bubbles[b ? "show" : "hide"](this.getName(), errorText, this, { BI.Bubbles[b ? "show" : "hide"](this.getName(), errorText, this, {

10
src/base/single/editor/editor.textarea.js

@ -30,9 +30,9 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
type: "bi.adaptive", type: "bi.adaptive",
items: [this.content] items: [this.content]
}, },
left: 10, left: 4,
right: 10, right: 10,
top: 8, top: 4,
bottom: 8 bottom: 8
}] }]
}); });
@ -81,9 +81,9 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
if (!this.watermark) { if (!this.watermark) {
this.watermark = BI.createWidget({ this.watermark = BI.createWidget({
type: "bi.text_button", type: "bi.text_button",
cls: "bi-water-mark", cls: "bi-water-mark cursor-default",
textAlign: "left", textAlign: "left",
height: 30, height: 20,
text: o.watermark, text: o.watermark,
invalid: o.invalid, invalid: o.invalid,
disabled: o.disabled disabled: o.disabled
@ -96,7 +96,7 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
element: this, element: this,
items: [{ items: [{
el: this.watermark, el: this.watermark,
left: 10, left: 4,
top: 4, top: 4,
right: 0 right: 0
}] }]

1
src/css/core/normalize2.css

@ -46,6 +46,5 @@ li {
} }
i { i {
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }

1
src/css/resource/font.css

@ -8,7 +8,6 @@
font-family: 'fineui'; font-family: 'fineui';
font-style: normal; font-style: normal;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.close-font .b-font { .close-font .b-font {

1
src/less/core/normalize2.less

@ -59,6 +59,5 @@ li {
i { i {
//font-style: normal; //font-style: normal;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }

1
src/less/image.less

@ -342,7 +342,6 @@
@baseProperty: { @baseProperty: {
font-style: normal; font-style: normal;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
}; };

1
src/widget/dynamicdate/dynamicdate.combo.js

@ -52,6 +52,7 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, {
max: opts.maxDate, max: opts.maxDate,
format: opts.format, format: opts.format,
allowEdit: opts.allowEdit, allowEdit: opts.allowEdit,
watermark: opts.watermark,
height: opts.height, height: opts.height,
value: opts.value, value: opts.value,
ref: function () { ref: function () {

7
src/widget/dynamicdate/dynamicdate.trigger.js

@ -14,7 +14,8 @@ BI.DynamicDateTrigger = BI.inherit(BI.Trigger, {
max: "2099-12-31", // 最大日期 max: "2099-12-31", // 最大日期
height: 24, height: 24,
format: "", // 显示的日期格式化方式 format: "", // 显示的日期格式化方式
allowEdit: true // 是否允许编辑 allowEdit: true, // 是否允许编辑
watermark: ""
}, },
_init: function () { _init: function () {
@ -40,11 +41,11 @@ BI.DynamicDateTrigger = BI.inherit(BI.Trigger, {
hgap: c.hgap, hgap: c.hgap,
vgap: c.vgap, vgap: c.vgap,
allowBlank: true, allowBlank: true,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.isKey(o.watermark) ? o.watermark : BI.i18nText("BI-Basic_Unrestricted"),
errorText: function () { errorText: function () {
var str = ""; var str = "";
if (!BI.isKey(o.format)) { if (!BI.isKey(o.format)) {
str = self.editor.isEditing() ? BI.i18nText("BI-Date_Trigger_Error_Text"): BI.i18nText("BI-Year_Trigger_Invalid_Text"); str = self.editor.isEditing() ? BI.i18nText("BI-Date_Trigger_Error_Text") : BI.i18nText("BI-Year_Trigger_Invalid_Text");
} }
return str; return str;
}, },

1
src/widget/dynamicdatetime/dynamicdatetime.combo.js

@ -51,6 +51,7 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
min: opts.minDate, min: opts.minDate,
max: opts.maxDate, max: opts.maxDate,
allowEdit: opts.allowEdit, allowEdit: opts.allowEdit,
watermark: opts.watermark,
format: opts.format, format: opts.format,
height: opts.height, height: opts.height,
value: opts.value, value: opts.value,

5
src/widget/dynamicdatetime/dynamicdatetime.trigger.js

@ -14,7 +14,8 @@ BI.DynamicDateTimeTrigger = BI.inherit(BI.Trigger, {
max: "2099-12-31", // 最大日期 max: "2099-12-31", // 最大日期
height: 24, height: 24,
format: "", // 显示的日期格式化方式 format: "", // 显示的日期格式化方式
allowEdit: true // 是否允许编辑 allowEdit: true, // 是否允许编辑
watermark: ""
}, },
_init: function () { _init: function () {
@ -40,7 +41,7 @@ BI.DynamicDateTimeTrigger = BI.inherit(BI.Trigger, {
hgap: c.hgap, hgap: c.hgap,
vgap: c.vgap, vgap: c.vgap,
allowBlank: true, allowBlank: true,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.isKey(o.watermark) ? o.watermark : BI.i18nText("BI-Basic_Unrestricted"),
errorText: function () { errorText: function () {
var str = ""; var str = "";
if (!BI.isKey(o.format)) { if (!BI.isKey(o.format)) {

2
src/widget/selecttree/selecttree.combo.js

@ -7,7 +7,7 @@ BI.SelectTreeCombo = BI.inherit(BI.Widget, {
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.SelectTreeCombo.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.SelectTreeCombo.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-select-tree-combo", baseCls: "bi-select-tree-combo",
height: 30, height: 24,
text: "", text: "",
items: [], items: [],
value: "", value: "",

3
src/widget/time/time.combo.js

@ -66,6 +66,7 @@
el: { el: {
type: "bi.time_trigger", type: "bi.time_trigger",
allowEdit: opts.allowEdit, allowEdit: opts.allowEdit,
watermark: opts.watermark,
format: opts.format, format: opts.format,
value: opts.value, value: opts.value,
ref: function (_ref) { ref: function (_ref) {
@ -212,6 +213,8 @@
BI.TimeCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; BI.TimeCombo.EVENT_CONFIRM = "EVENT_CONFIRM";
BI.TimeCombo.EVENT_CHANGE = "EVENT_CHANGE"; BI.TimeCombo.EVENT_CHANGE = "EVENT_CHANGE";
BI.TimeCombo.EVENT_VALID = "EVENT_VALID";
BI.TimeCombo.EVENT_ERROR = "EVENT_ERROR";
BI.TimeCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW"; BI.TimeCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW";
BI.shortcut("bi.time_combo", BI.TimeCombo); BI.shortcut("bi.time_combo", BI.TimeCombo);
})(); })();

2
src/widget/time/time.trigger.js

@ -49,7 +49,7 @@
value: this._formatValue(o.value), value: this._formatValue(o.value),
hgap: 4, hgap: 4,
allowBlank: true, allowBlank: true,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.isKey(o.watermark) ? o.watermark : BI.i18nText("BI-Basic_Unrestricted"),
title: BI.bind(this._getTitle, this), title: BI.bind(this._getTitle, this),
listeners: [{ listeners: [{
eventName: "EVENT_KEY_DOWN", eventName: "EVENT_KEY_DOWN",

1
ui/css/font.css

@ -8,7 +8,6 @@
font-family: 'fineui'; font-family: 'fineui';
font-style: normal; font-style: normal;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.close-font .b-font { .close-font .b-font {

Loading…
Cancel
Save