Browse Source

Pull request #2286: JSY-11473 feat:数值区间支持选中输入框

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

* commit 'e59c2a0943e4d7fe6efe3980cd9511f95c4ec8f7':
  JSY-11473 feat:数值区间支持选中输入框
es6
Guyi 3 years ago
parent
commit
b10082c78e
  1. 8
      src/widget/numberinterval/numberinterval.js
  2. 4
      src/widget/numberinterval/singleeditor/single.editor.js
  3. 4
      typescript/widget/numberinterval/numberinterval.ts

8
src/widget/numberinterval/numberinterval.js

@ -529,6 +529,14 @@ BI.NumberInterval = BI.inherit(BI.Single, {
return value;
},
focusMinEditor: function () {
this.smallEditor.focus();
},
focusMaxEditor: function () {
this.bigEditor.focus();
},
destroyed: function () {
var c = this.constants;
BI.Bubbles.remove(c.typeError);

4
src/widget/numberinterval/singleeditor/single.editor.js

@ -71,6 +71,10 @@ BI.NumberIntervalSingleEidtor = BI.inherit(BI.Single, {
setValue: function (v) {
return this.editor.setValue(v);
},
focus: function () {
this.editor.focus();
}
});

4
typescript/widget/numberinterval/numberinterval.ts

@ -35,4 +35,8 @@ export declare class NumberInterval extends Single {
setNumTip(v: string): void;
getNumTip(): void;
focusMinEditor(): void;
focusMaxEditor(): void;
}

Loading…
Cancel
Save