fix: update time range

This commit is contained in:
Qiuxia Fan
2022-01-12 16:06:25 +08:00
parent 299980b2d5
commit 5b95557905
3 changed files with 37 additions and 29 deletions

View File

@@ -16,21 +16,26 @@ limitations under the License. -->
<div class="widget">
<div class="header flex-h">
<div>{{ data.widget.title || "" }}</div>
<el-popover
placement="bottom"
trigger="click"
:style="{ width: '100px' }"
>
<template #reference>
<Icon iconName="ellipsis_v" size="middle" class="operation" />
</template>
<div class="tools" @click="editConfig">
<span>{{ t("edit") }}</span>
</div>
<div class="tools" @click="removeWidget">
<span>{{ t("delete") }}</span>
</div>
</el-popover>
<div>
<el-tooltip :content="data.widget.tips">
<Icon iconName="info_outline" size="sm" class="operation" />
</el-tooltip>
<el-popover
placement="bottom"
trigger="click"
:style="{ width: '100px' }"
>
<template #reference>
<Icon iconName="ellipsis_v" size="middle" class="operation" />
</template>
<div class="tools" @click="editConfig">
<span>{{ t("edit") }}</span>
</div>
<div class="tools" @click="removeWidget">
<span>{{ t("delete") }}</span>
</div>
</el-popover>
</div>
</div>
<div class="body" v-if="data.graph.type" v-loading="loading">
<component