Browse Source

BI-160928 fix:日期区间绑定字段,勾选显示时间,设置值下拉,有对应值的内容没有高亮显示

master
chenzeyu 4 weeks ago
parent
commit
47b705ed64
  1. 9
      packages/fineui/src/widget/timeinterval/timeinterval.js
  2. 1
      packages/fineui/typescript/widget/timeinterval/timeinterval.ts

9
packages/fineui/src/widget/timeinterval/timeinterval.js

@ -31,6 +31,7 @@ export class TimeInterval extends Single {
static EVENT_CHANGE = "EVENT_CHANGE";
static EVENT_BEFORE_START_POPUPVIEW = "EVENT_BEFORE_START_POPUPVIEW";
static EVENT_BEFORE_END_POPUPVIEW = "EVENT_BEFORE_END_POPUPVIEW";
static EVENT_BEFORE_YEAR_MONTH_POPUPVIEW = "EVENT_BEFORE_YEAR_MONTH_POPUPVIEW";
_defaultConfig() {
const conf = super._defaultConfig(...arguments);
@ -102,6 +103,14 @@ export class TimeInterval extends Single {
watermark,
value: v,
height: o.height,
listeners: [
{
eventName: DynamicDateTimeCombo.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW,
action: () => {
this.fireEvent(TimeInterval.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW);
},
},
],
});
combo.on(DynamicDateTimeCombo.EVENT_ERROR, () => {
this._clearTitle();

1
packages/fineui/typescript/widget/timeinterval/timeinterval.ts

@ -8,6 +8,7 @@ export declare class TimeInterval extends Single {
static EVENT_ERROR: string;
static EVENT_BEFORE_START_POPUPVIEW: string;
static EVENT_BEFORE_END_POPUPVIEW: string;
static EVENT_BEFORE_YEAR_MONTH_POPUPVIEW: string;
props: {
minDate?: string;

Loading…
Cancel
Save