Browse Source

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

es6
Guyi 3 years ago
parent
commit
7ce830380a
  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