From 2eda6cd069e497bb4b4d1a87a5f2ee915f544600 Mon Sep 17 00:00:00 2001 From: "stan.yang" Date: Thu, 7 Nov 2024 09:55:22 +0800 Subject: [PATCH] =?UTF-8?q?report-136587=20feat:=20=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E5=8C=BA=E9=97=B4=E7=BB=84=E4=BB=B6=E5=A2=9E=E5=8A=A0=E6=A0=BC?= =?UTF-8?q?=E5=BC=8Foptions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../demo/widget/yearmonthinterval/demo.year_month_interval.js | 1 + packages/fineui/src/widget/timeinterval/dateinterval.js | 2 ++ packages/fineui/src/widget/timeinterval/timeinterval.js | 2 ++ 3 files changed, 5 insertions(+) diff --git a/packages/demo/src/demo/widget/yearmonthinterval/demo.year_month_interval.js b/packages/demo/src/demo/widget/yearmonthinterval/demo.year_month_interval.js index 014c80565..a3ea66721 100644 --- a/packages/demo/src/demo/widget/yearmonthinterval/demo.year_month_interval.js +++ b/packages/demo/src/demo/widget/yearmonthinterval/demo.year_month_interval.js @@ -20,6 +20,7 @@ export class YearMonthIntervalDemo extends Widget { ref(_ref) { self.interval = _ref; }, + format: "%Y/%X", value: { start: { type: 2, diff --git a/packages/fineui/src/widget/timeinterval/dateinterval.js b/packages/fineui/src/widget/timeinterval/dateinterval.js index d98510c7b..180785b39 100644 --- a/packages/fineui/src/widget/timeinterval/dateinterval.js +++ b/packages/fineui/src/widget/timeinterval/dateinterval.js @@ -41,6 +41,7 @@ export class DateInterval extends Single { minDate: "1900-01-01", maxDate: "2099-12-31", height: 24, + format: "", supportDynamic: true, simple: false, }); @@ -96,6 +97,7 @@ export class DateInterval extends Single { maxDate: o.maxDate, simple: o.simple, behaviors: o.behaviors, + format: o.format, watermark, value: v, height: o.height, diff --git a/packages/fineui/src/widget/timeinterval/timeinterval.js b/packages/fineui/src/widget/timeinterval/timeinterval.js index 4ae530169..f84971e69 100644 --- a/packages/fineui/src/widget/timeinterval/timeinterval.js +++ b/packages/fineui/src/widget/timeinterval/timeinterval.js @@ -40,6 +40,7 @@ export class TimeInterval extends Single { minDate: "1900-01-01", maxDate: "2099-12-31", height: 24, + format: "", supportDynamic: true, }); } @@ -94,6 +95,7 @@ export class TimeInterval extends Single { supportDynamic: o.supportDynamic, minDate: o.minDate, maxDate: o.maxDate, + format: o.format, behaviors: o.behaviors, watermark, value: v,