Skip to content

Commit 60040e6

Browse files
committed
VueUiQuickChart fixed minor issues in fullscreen mode (tooltip & hidden content)
1 parent efdf76f commit 60040e6

File tree

3 files changed

+21
-20
lines changed

3 files changed

+21
-20
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-data-ui",
33
"private": false,
4-
"version": "2.1.9",
4+
"version": "2.1.10",
55
"type": "module",
66
"description": "A user-empowering data visualization Vue components library",
77
"keywords": [

src/components/vue-ui-quick-chart.vue

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ defineExpose({
617617
v-if="isProcessable"
618618
:id="`${chartType}_${uid}`"
619619
ref="quickChart"
620-
class="vue-ui-quick-chart"
620+
:class="{'vue-ui-quick-chart': true, 'vue-data-ui-wrapper-fullscreen' : isFullscreen }"
621621
:style="`background:${quickConfig.backgroundColor};color:${quickConfig.color};font-family:${quickConfig.fontFamily}; position: relative`"
622622
>
623623

@@ -1168,30 +1168,31 @@ defineExpose({
11681168
</div>
11691169
</template>
11701170
</div>
1171+
1172+
<Tooltip
1173+
:show="quickConfig.showTooltip && isTooltip"
1174+
:backgroundColor="quickConfig.backgroundColor"
1175+
:color="quickConfig.color"
1176+
:parent="quickChart"
1177+
:content="tooltipContent"
1178+
:isCustom="isFunction(quickConfig.tooltipCustomFormat)"
1179+
>
1180+
<template #tooltip-before>
1181+
<slot name="tooltip-before" v-bind="{...dataTooltipSlot}"></slot>
1182+
</template>
1183+
<template #tooltip-after>
1184+
<slot name="tooltip-after" v-bind="{...dataTooltipSlot}"></slot>
1185+
</template>
1186+
</Tooltip>
11711187
</div>
11721188
<div v-else class="vue-ui-quick-chart-not-processable">
11731189
<BaseIcon name="circleCancel" stroke="red"/>
11741190
<span>Dataset is not processable</span>
11751191
</div>
1176-
1177-
<Tooltip
1178-
:show="quickConfig.showTooltip && isTooltip"
1179-
:backgroundColor="quickConfig.backgroundColor"
1180-
:color="quickConfig.color"
1181-
:parent="quickChart"
1182-
:content="tooltipContent"
1183-
:isCustom="isFunction(quickConfig.tooltipCustomFormat)"
1184-
>
1185-
<template #tooltip-before>
1186-
<slot name="tooltip-before" v-bind="{...dataTooltipSlot}"></slot>
1187-
</template>
1188-
<template #tooltip-after>
1189-
<slot name="tooltip-after" v-bind="{...dataTooltipSlot}"></slot>
1190-
</template>
1191-
</Tooltip>
11921192
</template>
11931193

11941194
<style scoped>
1195+
@import "../vue-data-ui.css";
11951196
.vue-ui-quick-chart * {
11961197
transition: unset;
11971198
}

0 commit comments

Comments
 (0)