Browse Source

BI-33536 分析表修改字段名的同时鼠标点击空白地方,这时候字段名可以为空了

es6
王瑞 6 years ago
parent
commit
f3213f53ed
  1. 11
      dist/base.js
  2. 11
      dist/bundle.ie.js
  3. 4
      dist/bundle.ie.min.js
  4. 11
      dist/bundle.js
  5. 4
      dist/bundle.min.js
  6. 6
      dist/demo.js
  7. 11
      dist/fineui.ie.js
  8. 4
      dist/fineui.ie.min.js
  9. 11
      dist/fineui.js
  10. 4
      dist/fineui.min.js
  11. 11
      dist/fineui_without_jquery_polyfill.js
  12. 2
      dist/utils.min.js
  13. 10
      src/base/single/input/input.js

11
dist/base.js vendored

@ -9763,6 +9763,7 @@ BI.Input = BI.inherit(BI.Single, {
BI.Input.superclass._init.apply(this, arguments);
var self = this;
var ctrlKey = false;
var keyCode = null;
var inputEventValid = false;
var _keydown = BI.debounce(function (keyCode) {
self.onKeyDown(keyCode, ctrlKey);
@ -9784,20 +9785,23 @@ BI.Input = BI.inherit(BI.Single, {
.keydown(function (e) {
inputEventValid = false;
ctrlKey = e.ctrlKey;
keyCode = e.keyCode;
self.fireEvent(BI.Input.EVENT_QUICK_DOWN, arguments);
})
.keyup(function (e) {
keyCode = null;
if (!(inputEventValid && e.keyCode === BI.KeyCode.ENTER)) {
self._keydown_ = true;
_keydown(e.keyCode);
}
})
.on("input propertychange", function (e) {
// 输入内容全选并直接删光,如果按键没放开就失去焦点不会触发keyup,被focusout覆盖了
// 这个事件在input的属性发生改变的时候就会触发(class的变化也算)
if (BI.isNotNull(e.keyCode)) {
if (BI.isNotNull(keyCode)) {
inputEventValid = true;
self._keydown_ = true;
_keydown(e.keyCode);
_keydown(keyCode);
}
})
.click(function (e) {
@ -10041,7 +10045,8 @@ BI.Input.EVENT_VALID = "EVENT_VALID";
BI.Input.EVENT_ERROR = "EVENT_ERROR";
BI.Input.EVENT_ENTER = "EVENT_ENTER";
BI.Input.EVENT_RESTRICT = "EVENT_RESTRICT";
BI.shortcut("bi.input", BI.Input);/**
BI.shortcut("bi.input", BI.Input);
/**
* guy
* @extends BI.Single
* @type {*|void|Object}

11
dist/bundle.ie.js vendored

@ -44657,6 +44657,7 @@ BI.Input = BI.inherit(BI.Single, {
BI.Input.superclass._init.apply(this, arguments);
var self = this;
var ctrlKey = false;
var keyCode = null;
var inputEventValid = false;
var _keydown = BI.debounce(function (keyCode) {
self.onKeyDown(keyCode, ctrlKey);
@ -44678,20 +44679,23 @@ BI.Input = BI.inherit(BI.Single, {
.keydown(function (e) {
inputEventValid = false;
ctrlKey = e.ctrlKey;
keyCode = e.keyCode;
self.fireEvent(BI.Input.EVENT_QUICK_DOWN, arguments);
})
.keyup(function (e) {
keyCode = null;
if (!(inputEventValid && e.keyCode === BI.KeyCode.ENTER)) {
self._keydown_ = true;
_keydown(e.keyCode);
}
})
.on("input propertychange", function (e) {
// 输入内容全选并直接删光,如果按键没放开就失去焦点不会触发keyup,被focusout覆盖了
// 这个事件在input的属性发生改变的时候就会触发(class的变化也算)
if (BI.isNotNull(e.keyCode)) {
if (BI.isNotNull(keyCode)) {
inputEventValid = true;
self._keydown_ = true;
_keydown(e.keyCode);
_keydown(keyCode);
}
})
.click(function (e) {
@ -44935,7 +44939,8 @@ BI.Input.EVENT_VALID = "EVENT_VALID";
BI.Input.EVENT_ERROR = "EVENT_ERROR";
BI.Input.EVENT_ENTER = "EVENT_ENTER";
BI.Input.EVENT_RESTRICT = "EVENT_RESTRICT";
BI.shortcut("bi.input", BI.Input);/**
BI.shortcut("bi.input", BI.Input);
/**
* guy
* @extends BI.Single
* @type {*|void|Object}

4
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

11
dist/bundle.js vendored

@ -45196,6 +45196,7 @@ BI.Input = BI.inherit(BI.Single, {
BI.Input.superclass._init.apply(this, arguments);
var self = this;
var ctrlKey = false;
var keyCode = null;
var inputEventValid = false;
var _keydown = BI.debounce(function (keyCode) {
self.onKeyDown(keyCode, ctrlKey);
@ -45217,20 +45218,23 @@ BI.Input = BI.inherit(BI.Single, {
.keydown(function (e) {
inputEventValid = false;
ctrlKey = e.ctrlKey;
keyCode = e.keyCode;
self.fireEvent(BI.Input.EVENT_QUICK_DOWN, arguments);
})
.keyup(function (e) {
keyCode = null;
if (!(inputEventValid && e.keyCode === BI.KeyCode.ENTER)) {
self._keydown_ = true;
_keydown(e.keyCode);
}
})
.on("input propertychange", function (e) {
// 输入内容全选并直接删光,如果按键没放开就失去焦点不会触发keyup,被focusout覆盖了
// 这个事件在input的属性发生改变的时候就会触发(class的变化也算)
if (BI.isNotNull(e.keyCode)) {
if (BI.isNotNull(keyCode)) {
inputEventValid = true;
self._keydown_ = true;
_keydown(e.keyCode);
_keydown(keyCode);
}
})
.click(function (e) {
@ -45474,7 +45478,8 @@ BI.Input.EVENT_VALID = "EVENT_VALID";
BI.Input.EVENT_ERROR = "EVENT_ERROR";
BI.Input.EVENT_ENTER = "EVENT_ENTER";
BI.Input.EVENT_RESTRICT = "EVENT_RESTRICT";
BI.shortcut("bi.input", BI.Input);/**
BI.shortcut("bi.input", BI.Input);
/**
* guy
* @extends BI.Single
* @type {*|void|Object}

4
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

6
dist/demo.js vendored

@ -625,6 +625,7 @@ BI.shortcut("demo.pager", Demo.Func);Demo.Editor = BI.inherit(BI.Widget, {
var editor1 = BI.createWidget({
type: "bi.editor",
cls: "bi-border",
value: "我先给个默认值",
watermark: "alert信息显示在下面",
errorText: "字段不可重名!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!",
width: 200,
@ -636,6 +637,7 @@ BI.shortcut("demo.pager", Demo.Func);Demo.Editor = BI.inherit(BI.Widget, {
var editor2 = BI.createWidget({
type: "bi.editor",
cls: "mvc-border",
value: "我先给个默认值",
watermark: "输入'a'会有错误信息",
disabled: true,
errorText: "字段不可重名",
@ -645,7 +647,6 @@ BI.shortcut("demo.pager", Demo.Func);Demo.Editor = BI.inherit(BI.Widget, {
}
return true;
},
allowBlank: true,
width: 200,
height: 24
});
@ -713,7 +714,8 @@ BI.shortcut("demo.pager", Demo.Func);Demo.Editor = BI.inherit(BI.Widget, {
});
}
});
BI.shortcut("demo.editor", Demo.Editor);Demo.CodeEditor = BI.inherit(BI.Widget, {
BI.shortcut("demo.editor", Demo.Editor);
Demo.CodeEditor = BI.inherit(BI.Widget, {
props: {
baseCls: "demo-editor"
},

11
dist/fineui.ie.js vendored

@ -44899,6 +44899,7 @@ BI.Input = BI.inherit(BI.Single, {
BI.Input.superclass._init.apply(this, arguments);
var self = this;
var ctrlKey = false;
var keyCode = null;
var inputEventValid = false;
var _keydown = BI.debounce(function (keyCode) {
self.onKeyDown(keyCode, ctrlKey);
@ -44920,20 +44921,23 @@ BI.Input = BI.inherit(BI.Single, {
.keydown(function (e) {
inputEventValid = false;
ctrlKey = e.ctrlKey;
keyCode = e.keyCode;
self.fireEvent(BI.Input.EVENT_QUICK_DOWN, arguments);
})
.keyup(function (e) {
keyCode = null;
if (!(inputEventValid && e.keyCode === BI.KeyCode.ENTER)) {
self._keydown_ = true;
_keydown(e.keyCode);
}
})
.on("input propertychange", function (e) {
// 输入内容全选并直接删光,如果按键没放开就失去焦点不会触发keyup,被focusout覆盖了
// 这个事件在input的属性发生改变的时候就会触发(class的变化也算)
if (BI.isNotNull(e.keyCode)) {
if (BI.isNotNull(keyCode)) {
inputEventValid = true;
self._keydown_ = true;
_keydown(e.keyCode);
_keydown(keyCode);
}
})
.click(function (e) {
@ -45177,7 +45181,8 @@ BI.Input.EVENT_VALID = "EVENT_VALID";
BI.Input.EVENT_ERROR = "EVENT_ERROR";
BI.Input.EVENT_ENTER = "EVENT_ENTER";
BI.Input.EVENT_RESTRICT = "EVENT_RESTRICT";
BI.shortcut("bi.input", BI.Input);/**
BI.shortcut("bi.input", BI.Input);
/**
* guy
* @extends BI.Single
* @type {*|void|Object}

4
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

11
dist/fineui.js vendored

@ -45438,6 +45438,7 @@ BI.Input = BI.inherit(BI.Single, {
BI.Input.superclass._init.apply(this, arguments);
var self = this;
var ctrlKey = false;
var keyCode = null;
var inputEventValid = false;
var _keydown = BI.debounce(function (keyCode) {
self.onKeyDown(keyCode, ctrlKey);
@ -45459,20 +45460,23 @@ BI.Input = BI.inherit(BI.Single, {
.keydown(function (e) {
inputEventValid = false;
ctrlKey = e.ctrlKey;
keyCode = e.keyCode;
self.fireEvent(BI.Input.EVENT_QUICK_DOWN, arguments);
})
.keyup(function (e) {
keyCode = null;
if (!(inputEventValid && e.keyCode === BI.KeyCode.ENTER)) {
self._keydown_ = true;
_keydown(e.keyCode);
}
})
.on("input propertychange", function (e) {
// 输入内容全选并直接删光,如果按键没放开就失去焦点不会触发keyup,被focusout覆盖了
// 这个事件在input的属性发生改变的时候就会触发(class的变化也算)
if (BI.isNotNull(e.keyCode)) {
if (BI.isNotNull(keyCode)) {
inputEventValid = true;
self._keydown_ = true;
_keydown(e.keyCode);
_keydown(keyCode);
}
})
.click(function (e) {
@ -45716,7 +45720,8 @@ BI.Input.EVENT_VALID = "EVENT_VALID";
BI.Input.EVENT_ERROR = "EVENT_ERROR";
BI.Input.EVENT_ENTER = "EVENT_ENTER";
BI.Input.EVENT_RESTRICT = "EVENT_RESTRICT";
BI.shortcut("bi.input", BI.Input);/**
BI.shortcut("bi.input", BI.Input);
/**
* guy
* @extends BI.Single
* @type {*|void|Object}

4
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

11
dist/fineui_without_jquery_polyfill.js vendored

@ -32489,6 +32489,7 @@ BI.Input = BI.inherit(BI.Single, {
BI.Input.superclass._init.apply(this, arguments);
var self = this;
var ctrlKey = false;
var keyCode = null;
var inputEventValid = false;
var _keydown = BI.debounce(function (keyCode) {
self.onKeyDown(keyCode, ctrlKey);
@ -32510,20 +32511,23 @@ BI.Input = BI.inherit(BI.Single, {
.keydown(function (e) {
inputEventValid = false;
ctrlKey = e.ctrlKey;
keyCode = e.keyCode;
self.fireEvent(BI.Input.EVENT_QUICK_DOWN, arguments);
})
.keyup(function (e) {
keyCode = null;
if (!(inputEventValid && e.keyCode === BI.KeyCode.ENTER)) {
self._keydown_ = true;
_keydown(e.keyCode);
}
})
.on("input propertychange", function (e) {
// 输入内容全选并直接删光,如果按键没放开就失去焦点不会触发keyup,被focusout覆盖了
// 这个事件在input的属性发生改变的时候就会触发(class的变化也算)
if (BI.isNotNull(e.keyCode)) {
if (BI.isNotNull(keyCode)) {
inputEventValid = true;
self._keydown_ = true;
_keydown(e.keyCode);
_keydown(keyCode);
}
})
.click(function (e) {
@ -32767,7 +32771,8 @@ BI.Input.EVENT_VALID = "EVENT_VALID";
BI.Input.EVENT_ERROR = "EVENT_ERROR";
BI.Input.EVENT_ENTER = "EVENT_ENTER";
BI.Input.EVENT_RESTRICT = "EVENT_RESTRICT";
BI.shortcut("bi.input", BI.Input);/**
BI.shortcut("bi.input", BI.Input);
/**
* guy
* @extends BI.Single
* @type {*|void|Object}

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

10
src/base/single/input/input.js

@ -20,6 +20,7 @@ BI.Input = BI.inherit(BI.Single, {
BI.Input.superclass._init.apply(this, arguments);
var self = this;
var ctrlKey = false;
var keyCode = null;
var inputEventValid = false;
var _keydown = BI.debounce(function (keyCode) {
self.onKeyDown(keyCode, ctrlKey);
@ -41,20 +42,23 @@ BI.Input = BI.inherit(BI.Single, {
.keydown(function (e) {
inputEventValid = false;
ctrlKey = e.ctrlKey;
keyCode = e.keyCode;
self.fireEvent(BI.Input.EVENT_QUICK_DOWN, arguments);
})
.keyup(function (e) {
keyCode = null;
if (!(inputEventValid && e.keyCode === BI.KeyCode.ENTER)) {
self._keydown_ = true;
_keydown(e.keyCode);
}
})
.on("input propertychange", function (e) {
// 输入内容全选并直接删光,如果按键没放开就失去焦点不会触发keyup,被focusout覆盖了
// 这个事件在input的属性发生改变的时候就会触发(class的变化也算)
if (BI.isNotNull(e.keyCode)) {
if (BI.isNotNull(keyCode)) {
inputEventValid = true;
self._keydown_ = true;
_keydown(e.keyCode);
_keydown(keyCode);
}
})
.click(function (e) {
@ -298,4 +302,4 @@ BI.Input.EVENT_VALID = "EVENT_VALID";
BI.Input.EVENT_ERROR = "EVENT_ERROR";
BI.Input.EVENT_ENTER = "EVENT_ENTER";
BI.Input.EVENT_RESTRICT = "EVENT_RESTRICT";
BI.shortcut("bi.input", BI.Input);
BI.shortcut("bi.input", BI.Input);

Loading…
Cancel
Save