diff --git a/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue b/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue
index 6e3012bd66..93b1823b27 100644
--- a/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue
+++ b/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue
@@ -1,7 +1,7 @@
@@ -454,6 +493,7 @@ const showPositionActive = computed(() =>
@mousedown="onWrapperClickCur"
>
{
: next.defaultMapValue
}
+ if (
+ next.defaultValueCheck &&
+ [1, 7].includes(+next.displayType) &&
+ next.timeType === 'dynamic'
+ ) {
+ if (+next.displayType === 1) {
+ let selectValue = getDynamicRange(next) || []
+ next.defaultValue = new Date(selectValue[0])
+ next.selectValue = new Date(selectValue[0])
+ } else {
+ const {
+ timeNum,
+ relativeToCurrentType,
+ around,
+ relativeToCurrentRange,
+ arbitraryTime,
+ timeGranularity,
+ timeNumRange,
+ relativeToCurrentTypeRange,
+ aroundRange,
+ timeGranularityMultiple,
+ arbitraryTimeRange
+ } = next
+
+ let startTime = getCustomTime(
+ timeNum,
+ relativeToCurrentType,
+ timeGranularity,
+ around,
+ arbitraryTime,
+ timeGranularityMultiple,
+ 'start-panel'
+ )
+ let endTime = getCustomTime(
+ timeNumRange,
+ relativeToCurrentTypeRange,
+ timeGranularity,
+ aroundRange,
+ arbitraryTimeRange,
+ timeGranularityMultiple,
+ 'end-panel'
+ )
+
+ if (!!relativeToCurrentRange && relativeToCurrentRange !== 'custom') {
+ ;[startTime, endTime] = getCustomRange(relativeToCurrentRange)
+ }
+ next.defaultValue = [startTime, endTime]
+ next.selectValue = [startTime, endTime]
+ }
+ }
+
;(props.element.cascade || []).forEach(ele => {
ele.forEach(item => {
const comId = item.datasetId.split('--')[1]
diff --git a/core/core-frontend/src/style/index.less b/core/core-frontend/src/style/index.less
index 1f1ac7fe3b..f1cbccf2fc 100644
--- a/core/core-frontend/src/style/index.less
+++ b/core/core-frontend/src/style/index.less
@@ -817,4 +817,7 @@ strong {
.ed-card.ed-card {
--ed-card-border-radius: 12px !important;
-}
\ No newline at end of file
+}
+.ed-message-box {
+ --ed-messagebox-border-radius: 12px !important;
+}