Browse Source

JSY-46272 feat: 动态日期时间支持屏蔽工作日

master^2
stan.yang 1 day ago
parent
commit
f562dc17dc
  1. 2
      packages/fineui/src/widget/dynamicdate/dynamicdate.card.js
  2. 4
      packages/fineui/src/widget/dynamicdate/dynamicdate.combo.js
  3. 2
      packages/fineui/src/widget/dynamicdate/dynamicdate.popup.js
  4. 2
      packages/fineui/src/widget/dynamicdatetime/dynamicdatetime.combo.js
  5. 2
      packages/fineui/src/widget/timeinterval/dateinterval.js
  6. 2
      packages/fineui/src/widget/timeinterval/timeinterval.js
  7. 1
      packages/fineui/typescript/widget/dynamicdatetime/dynamicdatetime.combo.ts
  8. 1
      packages/fineui/typescript/widget/timeinterval/dateinterval.ts

2
packages/fineui/src/widget/dynamicdate/dynamicdate.card.js

@ -45,6 +45,7 @@ export class DynamicDateCard extends Widget {
props = {
baseCls: "bi-dynamic-date-card",
supportWorkDay: true,
};
render() {
@ -162,6 +163,7 @@ export class DynamicDateCard extends Widget {
logic: {
dynamic: true,
},
invisible: !this.options.supportWorkDay,
text: i18nText("BI-Basic_Work_Day"),
value: DynamicDateCard.TYPE.WORK_DAY,
listeners: [

4
packages/fineui/src/widget/dynamicdate/dynamicdate.combo.js

@ -28,7 +28,7 @@ export class DynamicDateCombo extends Single {
static EVENT_ERROR = "EVENT_ERROR";
static EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW";
static EVENT_BEFORE_YEAR_MONTH_POPUPVIEW = "EVENT_BEFORE_YEAR_MONTH_POPUPVIEW";
static Static = 1;
static Dynamic = 2;
@ -51,6 +51,7 @@ export class DynamicDateCombo extends Single {
attributes: {
tabIndex: -1,
},
supportWorkDay: true,
isNeedAdjustHeight: false,
isNeedAdjustWidth: false,
isPreview: false, // 是否是预览状态
@ -204,6 +205,7 @@ export class DynamicDateCombo extends Single {
isPreview: opts.isPreview,
width: opts.isNeedAdjustWidth ? opts.width : undefined,
supportDynamic: opts.supportDynamic,
supportWorkDay: opts.supportWorkDay,
behaviors: opts.behaviors,
min: opts.minDate,
max: opts.maxDate,

2
packages/fineui/src/widget/dynamicdate/dynamicdate.popup.js

@ -34,6 +34,7 @@ export class DynamicDatePopup extends Widget {
baseCls: "bi-dynamic-date-popup",
width: 272,
supportDynamic: true,
supportWorkDay: true,
isPreview: false, // 是否是预览状态
};
@ -164,6 +165,7 @@ export class DynamicDatePopup extends Widget {
return {
type: DynamicDateCard.xtype,
cls: "dynamic-date-pane",
supportWorkDay: this.options.supportWorkDay,
listeners: [
{
eventName: "EVENT_CHANGE",

2
packages/fineui/src/widget/dynamicdatetime/dynamicdatetime.combo.js

@ -39,6 +39,7 @@ export class DynamicDateTimeCombo extends Single {
format: "",
allowEdit: true,
supportDynamic: true,
supportWorkDay: true,
attributes: {
tabIndex: -1,
},
@ -212,6 +213,7 @@ export class DynamicDateTimeCombo extends Single {
timeSelectTypes: opts.timeSelectTypes,
width: opts.isNeedAdjustWidth ? opts.width : undefined,
supportDynamic: opts.supportDynamic,
supportWorkDay: opts.supportWorkDay,
behaviors: opts.behaviors,
min: opts.minDate,
max: opts.maxDate,

2
packages/fineui/src/widget/timeinterval/dateinterval.js

@ -43,6 +43,7 @@ export class DateInterval extends Single {
height: 24,
format: "",
supportDynamic: true,
supportWorkDay: true,
simple: false,
});
}
@ -93,6 +94,7 @@ export class DateInterval extends Single {
popup: o.popup,
isPreview: o.isPreview,
supportDynamic: o.supportDynamic,
supportWorkDay: o.supportWorkDay,
minDate: o.minDate,
maxDate: o.maxDate,
simple: o.simple,

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

@ -42,6 +42,7 @@ export class TimeInterval extends Single {
height: 24,
format: "",
supportDynamic: true,
supportWorkDay: true,
});
}
@ -91,6 +92,7 @@ export class TimeInterval extends Single {
popup: o.popup,
isPreview: o.isPreview,
timeSelectTypes: o.timeSelectTypes,
supportWorkDay: o.supportWorkDay,
simple: o.simple,
supportDynamic: o.supportDynamic,
minDate: o.minDate,

1
packages/fineui/typescript/widget/dynamicdatetime/dynamicdatetime.combo.ts

@ -20,6 +20,7 @@ export declare class DynamicDateTimeCombo extends Single {
format?: string;
allowEdit?: boolean;
supportDynamic?: boolean;
supportWorkDay?: boolean;
attributes?: {
tabIndex?: number;
};

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

@ -14,6 +14,7 @@ export declare class DateInterval extends Single {
minDate?: string;
maxDate?: string;
supportDynamic?: boolean;
supportWorkDay?: boolean;
watermark?: string;
container?: string;
popup?: any;

Loading…
Cancel
Save