style: fix building info

This commit is contained in:
Qiuxia Fan 2022-01-20 15:52:53 +08:00
parent 8b0cab48ce
commit 86ec9c985b
34 changed files with 108 additions and 84 deletions

View File

@ -277,15 +277,9 @@ limitations under the License. -->
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { import { computed, onMounted, watch, reactive } from "vue";
defineProps,
computed,
defineEmits,
onMounted,
watch,
reactive,
} from "vue";
import { useI18n } from "vue-i18n"; import { useI18n } from "vue-i18n";
/*global defineProps, defineEmits */
const emit = defineEmits(["input", "setDates", "ok"]); const emit = defineEmits(["input", "setDates", "ok"]);
const { t } = useI18n(); const { t } = useI18n();
const props = defineProps({ const props = defineProps({
@ -580,11 +574,13 @@ onMounted(() => {
user-select: none; user-select: none;
color: #3d444f; color: #3d444f;
} }
.calendar + .calendar { .calendar + .calendar {
border-left: solid 1px #eaeaea; border-left: solid 1px #eaeaea;
margin-left: 5px; margin-left: 5px;
padding-left: 5px; padding-left: 5px;
} }
.calendar-head { .calendar-head {
line-height: 34px; line-height: 34px;
height: 34px; height: 34px;
@ -630,10 +626,12 @@ onMounted(() => {
.calendar-next-month-btn { .calendar-next-month-btn {
right: 24px; right: 24px;
} }
.calendar-next-month-btn .middle, .calendar-next-month-btn .middle,
.calendar-prev-month-btn .middle { .calendar-prev-month-btn .middle {
margin-top: 8px; margin-top: 8px;
} }
.calendar-body { .calendar-body {
position: relative; position: relative;
width: 196px; width: 196px;

View File

@ -16,20 +16,12 @@ limitations under the License. -->
<div ref="chartRef" :style="`height:${height};width:${width};`"></div> <div ref="chartRef" :style="`height:${height};width:${width};`"></div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { import { watch, ref, Ref, onMounted, onBeforeUnmount, unref } from "vue";
watch,
ref,
defineProps,
Ref,
onMounted,
onBeforeUnmount,
unref,
} from "vue";
import type { PropType } from "vue"; import type { PropType } from "vue";
import { useECharts } from "@/hooks/useEcharts"; import { useECharts } from "@/hooks/useEcharts";
import { addResizeListener, removeResizeListener } from "@/utils/event"; import { addResizeListener, removeResizeListener } from "@/utils/event";
/*global Nullable*/ /*global Nullable, defineProps*/
const chartRef = ref<Nullable<HTMLDivElement>>(null); const chartRef = ref<Nullable<HTMLDivElement>>(null);
const { setOptions, resize } = useECharts(chartRef as Ref<HTMLDivElement>); const { setOptions, resize } = useECharts(chartRef as Ref<HTMLDivElement>);
const props = defineProps({ const props = defineProps({

View File

@ -28,8 +28,9 @@ limitations under the License. -->
</svg> </svg>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { defineProps } from "vue";
import "@/assets/icons/index"; import "@/assets/icons/index";
/*global defineProps */
defineProps({ defineProps({
iconName: { type: String, default: "" }, iconName: { type: String, default: "" },
size: { type: String, default: "sm" }, size: { type: String, default: "sm" },
@ -42,25 +43,31 @@ defineProps({
height: 16px; height: 16px;
vertical-align: middle; vertical-align: middle;
fill: currentColor; fill: currentColor;
&.sm { &.sm {
width: 14px; width: 14px;
height: 14px; height: 14px;
} }
&.middle { &.middle {
width: 18px; width: 18px;
height: 18px; height: 18px;
} }
&.lg { &.lg {
width: 24px; width: 24px;
height: 24px; height: 24px;
} }
&.loading { &.loading {
animation: loading 1.5s linear infinite; animation: loading 1.5s linear infinite;
} }
&.logo { &.logo {
height: 30px; height: 30px;
width: 110px; width: 110px;
} }
&.xl { &.xl {
height: 30px; height: 30px;
width: 30px; width: 30px;

View File

@ -33,7 +33,7 @@ limitations under the License. -->
</el-select> </el-select>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { ref, defineEmits } from "vue"; import { ref } from "vue";
import type { PropType } from "vue"; import type { PropType } from "vue";
import { ElSelect, ElOption } from "element-plus"; import { ElSelect, ElOption } from "element-plus";
@ -42,8 +42,9 @@ interface Option {
value: string; value: string;
} }
/*global defineProps, defineEmits*/
const emit = defineEmits(["change"]); const emit = defineEmits(["change"]);
/*global defineProps*/
const props = defineProps({ const props = defineProps({
options: { options: {
type: Array as PropType<Option[]>, type: Array as PropType<Option[]>,

View File

@ -142,17 +142,10 @@ limitations under the License. -->
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { import { ref, computed, onMounted, onBeforeUnmount, watch } from "vue";
defineProps,
ref,
computed,
defineEmits,
onMounted,
onBeforeUnmount,
watch,
} from "vue";
import { useI18n } from "vue-i18n"; import { useI18n } from "vue-i18n";
import DateCalendar from "./DateCalendar.vue"; import DateCalendar from "./DateCalendar.vue";
/*global defineProps, defineEmits */
const datepicker = ref(null); const datepicker = ref(null);
const { t } = useI18n(); const { t } = useI18n();
const show = ref<boolean>(false); const show = ref<boolean>(false);
@ -339,6 +332,32 @@ watch(
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@keyframes datepicker-anim-in {
0% {
opacity: 0;
transform: scaleY(0.8);
}
to {
opacity: 1;
transform: scaleY(1);
}
}
@keyframes datepicker-anim-out {
0% {
opacity: 1;
transform: scaleY(1);
}
to {
opacity: 0;
transform: scaleY(0.8);
}
}
.datepicker { .datepicker {
display: inline-block; display: inline-block;
position: relative; position: relative;
@ -373,7 +392,6 @@ watch(
margin-left: -8px; margin-left: -8px;
margin-top: -8px; margin-top: -8px;
text-align: center; text-align: center;
background: #ccc;
color: #fff; color: #fff;
border-radius: 50%; border-radius: 50%;
background: #ccc background: #ccc
@ -384,6 +402,7 @@ watch(
.datepicker__clearable:hover:before { .datepicker__clearable:hover:before {
display: none; display: none;
} }
.datepicker__clearable:hover .datepicker-close { .datepicker__clearable:hover .datepicker-close {
display: block; display: block;
} }
@ -436,25 +455,30 @@ watch(
padding: 5px; padding: 5px;
overflow: hidden; overflow: hidden;
z-index: 999; z-index: 999;
&.top { &.top {
bottom: 30px; bottom: 30px;
right: 0; right: 0;
transform-origin: center bottom; transform-origin: center bottom;
} }
&.bottom { &.bottom {
top: 30px; top: 30px;
right: 0; right: 0;
transform-origin: center top; transform-origin: center top;
} }
&.left { &.left {
top: 30px; top: 30px;
transform-origin: center top; transform-origin: center top;
} }
&.right { &.right {
right: -80px; right: -80px;
top: 30px; top: 30px;
transform-origin: center top; transform-origin: center top;
} }
&__sidebar { &__sidebar {
position: absolute; position: absolute;
top: 0; top: 0;
@ -464,6 +488,7 @@ watch(
padding: 5px; padding: 5px;
border-right: solid 1px #eaeaea; border-right: solid 1px #eaeaea;
} }
&__shortcut { &__shortcut {
display: block; display: block;
width: 100%; width: 100%;
@ -476,10 +501,12 @@ watch(
outline: none; outline: none;
cursor: pointer; cursor: pointer;
white-space: nowrap; white-space: nowrap;
&:hover { &:hover {
color: #3f97e3; color: #3f97e3;
} }
} }
&__body { &__body {
margin-left: 100px; margin-left: 100px;
padding-left: 5px; padding-left: 5px;
@ -513,6 +540,7 @@ watch(
display: inline-block; display: inline-block;
cursor: pointer; cursor: pointer;
} }
.datepicker-anim-enter-active { .datepicker-anim-enter-active {
transform-origin: 0 0; transform-origin: 0 0;
animation: datepicker-anim-in 0.2s cubic-bezier(0.23, 1, 0.32, 1); animation: datepicker-anim-in 0.2s cubic-bezier(0.23, 1, 0.32, 1);
@ -545,26 +573,4 @@ watch(
.datepicker__buttons .datepicker__button-cancel { .datepicker__buttons .datepicker__button-cancel {
background: #666; background: #666;
} }
@keyframes datepicker-anim-in {
0% {
opacity: 0;
transform: scaleY(0.8);
}
to {
opacity: 1;
transform: scaleY(1);
}
}
@keyframes datepicker-anim-out {
0% {
opacity: 1;
transform: scaleY(1);
}
to {
opacity: 0;
transform: scaleY(0.8);
}
}
</style> </style>

View File

@ -172,11 +172,10 @@ export const dashboardStore = defineStore({
return res.data; return res.data;
}, },
async fetchMetricValue(config: LayoutConfig) { async fetchMetricValue() {
// if (!config.metricTypes) { // if (!config.metricTypes) {
// return; // return;
// } // }
// config.metricTypes = "readMetricsValues";
const appStoreWithOut = useAppStoreWithOut(); const appStoreWithOut = useAppStoreWithOut();
const variable = { const variable = {
condition: { condition: {

View File

@ -16,7 +16,7 @@ limitations under the License. -->
<div class="about">{{ props.msg }}</div> <div class="about">{{ props.msg }}</div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { defineProps } from "vue"; /*global defineProps */
const props = defineProps({ const props = defineProps({
msg: String, msg: String,
}); });

View File

@ -61,7 +61,7 @@ limitations under the License. -->
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { reactive, defineProps, defineEmits } from "vue"; import { reactive } from "vue";
import type { PropType } from "vue"; import type { PropType } from "vue";
import { useRoute } from "vue-router"; import { useRoute } from "vue-router";
import { Option } from "@/types/app"; import { Option } from "@/types/app";
@ -71,6 +71,7 @@ import { MetricTypes, TableChartTypes } from "../data";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
import Icon from "@/components/Icon.vue"; import Icon from "@/components/Icon.vue";
/*global defineProps, defineEmits */
const props = defineProps({ const props = defineProps({
graph: { graph: {
type: Object as PropType<GraphConfig>, type: Object as PropType<GraphConfig>,

View File

@ -116,12 +116,13 @@ limitations under the License. -->
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { reactive, defineProps, defineEmits } from "vue"; import { reactive } from "vue";
import { useI18n } from "vue-i18n"; import { useI18n } from "vue-i18n";
import { SortOrder } from "../data"; import { SortOrder } from "../data";
import { StandardConfig } from "@/types/dashboard"; import { StandardConfig } from "@/types/dashboard";
import type { PropType } from "vue"; import type { PropType } from "vue";
/*global defineProps, defineEmits */
const props = defineProps({ const props = defineProps({
config: { config: {
type: Object as PropType<StandardConfig>, type: Object as PropType<StandardConfig>,

View File

@ -35,11 +35,12 @@ limitations under the License. -->
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { ref, defineEmits, defineProps } from "vue"; import { ref } from "vue";
import { useI18n } from "vue-i18n"; import { useI18n } from "vue-i18n";
import { WidgetConfig } from "@/types/dashboard"; import { WidgetConfig } from "@/types/dashboard";
import type { PropType } from "vue"; import type { PropType } from "vue";
/*global defineProps, defineEmits */
const props = defineProps({ const props = defineProps({
config: { config: {
type: Object as PropType<WidgetConfig>, type: Object as PropType<WidgetConfig>,

View File

@ -28,11 +28,12 @@ limitations under the License. -->
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { defineProps, ref, defineEmits } from "vue"; import { ref } from "vue";
import type { PropType } from "vue"; import type { PropType } from "vue";
import { AreaConfig } from "@/types/dashboard"; import { AreaConfig } from "@/types/dashboard";
import { useI18n } from "vue-i18n"; import { useI18n } from "vue-i18n";
/*global defineProps, defineEmits */
const { t } = useI18n(); const { t } = useI18n();
const props = defineProps({ const props = defineProps({

View File

@ -24,11 +24,12 @@ limitations under the License. -->
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { defineProps, ref, defineEmits } from "vue"; import { ref } from "vue";
import type { PropType } from "vue"; import type { PropType } from "vue";
import { BarConfig } from "@/types/dashboard"; import { BarConfig } from "@/types/dashboard";
import { useI18n } from "vue-i18n"; import { useI18n } from "vue-i18n";
/*global defineProps, defineEmits */
const { t } = useI18n(); const { t } = useI18n();
const props = defineProps({ const props = defineProps({

View File

@ -28,11 +28,12 @@ limitations under the License. -->
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { defineProps, ref, defineEmits } from "vue"; import { ref } from "vue";
import type { PropType } from "vue"; import type { PropType } from "vue";
import { CardConfig } from "@/types/dashboard"; import { CardConfig } from "@/types/dashboard";
import { useI18n } from "vue-i18n"; import { useI18n } from "vue-i18n";
/*global defineProps, defineEmits */
const { t } = useI18n(); const { t } = useI18n();
const props = defineProps({ const props = defineProps({

View File

@ -28,11 +28,12 @@ limitations under the License. -->
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { defineProps, ref, defineEmits } from "vue"; import { ref } from "vue";
import type { PropType } from "vue"; import type { PropType } from "vue";
import { EndpointListConfig } from "@/types/dashboard"; import { EndpointListConfig } from "@/types/dashboard";
import { useI18n } from "vue-i18n"; import { useI18n } from "vue-i18n";
/*global defineProps, defineEmits */
const { t } = useI18n(); const { t } = useI18n();
const props = defineProps({ const props = defineProps({

View File

@ -28,11 +28,12 @@ limitations under the License. -->
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { defineProps, ref, defineEmits } from "vue"; import { ref } from "vue";
import type { PropType } from "vue"; import type { PropType } from "vue";
import { InstanceListConfig } from "@/types/dashboard"; import { InstanceListConfig } from "@/types/dashboard";
import { useI18n } from "vue-i18n"; import { useI18n } from "vue-i18n";
/*global defineProps, defineEmits */
const { t } = useI18n(); const { t } = useI18n();
const props = defineProps({ const props = defineProps({

View File

@ -42,11 +42,12 @@ limitations under the License. -->
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { defineProps, ref, defineEmits } from "vue"; import { ref } from "vue";
import type { PropType } from "vue"; import type { PropType } from "vue";
import { LineConfig } from "@/types/dashboard"; import { LineConfig } from "@/types/dashboard";
import { useI18n } from "vue-i18n"; import { useI18n } from "vue-i18n";
/*global defineProps, defineEmits */
const { t } = useI18n(); const { t } = useI18n();
const props = defineProps({ const props = defineProps({
config: { config: {

View File

@ -28,11 +28,12 @@ limitations under the License. -->
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { defineProps, ref, defineEmits } from "vue"; import { ref } from "vue";
import type { PropType } from "vue"; import type { PropType } from "vue";
import { ServiceListConfig } from "@/types/dashboard"; import { ServiceListConfig } from "@/types/dashboard";
import { useI18n } from "vue-i18n"; import { useI18n } from "vue-i18n";
/*global defineProps, defineEmits */
const { t } = useI18n(); const { t } = useI18n();
const props = defineProps({ const props = defineProps({

View File

@ -44,11 +44,12 @@ limitations under the License. -->
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { defineProps, ref, defineEmits } from "vue"; import { ref } from "vue";
import type { PropType } from "vue"; import type { PropType } from "vue";
import { TableConfig } from "@/types/dashboard"; import { TableConfig } from "@/types/dashboard";
import { useI18n } from "vue-i18n"; import { useI18n } from "vue-i18n";
/*global defineProps, defineEmits */
const { t } = useI18n(); const { t } = useI18n();
const props = defineProps({ const props = defineProps({
config: { config: {

View File

@ -28,11 +28,12 @@ limitations under the License. -->
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { defineProps, ref, defineEmits } from "vue"; import { ref } from "vue";
import type { PropType } from "vue"; import type { PropType } from "vue";
import { TopListConfig } from "@/types/dashboard"; import { TopListConfig } from "@/types/dashboard";
import { useI18n } from "vue-i18n"; import { useI18n } from "vue-i18n";
/*global defineProps, defineEmits */
const { t } = useI18n(); const { t } = useI18n();
const props = defineProps({ const props = defineProps({
config: { config: {

View File

@ -84,12 +84,12 @@ limitations under the License. -->
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { defineProps, reactive, ref, watch } from "vue"; import { ref, watch, reactive } from "vue";
import type { PropType } from "vue"; import type { PropType } from "vue";
import Widget from "./Widget.vue"; import Widget from "./Widget.vue";
import { LayoutConfig } from "@/types/dashboard"; import { LayoutConfig } from "@/types/dashboard";
import { useDashboardStore } from "@/store/modules/dashboard"; import { useDashboardStore } from "@/store/modules/dashboard";
/*global defineProps */
const props = defineProps({ const props = defineProps({
data: { data: {
type: Object as PropType<LayoutConfig>, type: Object as PropType<LayoutConfig>,

View File

@ -17,11 +17,11 @@ limitations under the License. -->
<Line :data="data" :intervalTime="intervalTime" :config="config" /> <Line :data="data" :intervalTime="intervalTime" :config="config" />
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { defineProps } from "vue";
import type { PropType } from "vue"; import type { PropType } from "vue";
import Line from "./Line.vue"; import Line from "./Line.vue";
import { AreaConfig } from "@/types/dashboard"; import { AreaConfig } from "@/types/dashboard";
/*global defineProps */
defineProps({ defineProps({
data: { data: {
type: Object as PropType<{ [key: string]: number[] }>, type: Object as PropType<{ [key: string]: number[] }>,

View File

@ -16,11 +16,12 @@ limitations under the License. -->
<Graph :option="option" /> <Graph :option="option" />
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { defineProps, computed } from "vue"; import { computed } from "vue";
import type { PropType } from "vue"; import type { PropType } from "vue";
import { Event } from "@/types/events"; import { Event } from "@/types/events";
import { BarConfig } from "@/types/dashboard"; import { BarConfig } from "@/types/dashboard";
/*global defineProps */
const props = defineProps({ const props = defineProps({
data: { data: {
type: Object as PropType<{ [key: string]: number[] }>, type: Object as PropType<{ [key: string]: number[] }>,

View File

@ -27,9 +27,9 @@ limitations under the License. -->
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { computed, PropType } from "vue"; import { computed, PropType } from "vue";
import { defineProps } from "vue";
import { CardConfig, StandardConfig } from "@/types/dashboard"; import { CardConfig, StandardConfig } from "@/types/dashboard";
/*global defineProps */
const props = defineProps({ const props = defineProps({
data: { data: {
type: Object as PropType<{ [key: string]: number }>, type: Object as PropType<{ [key: string]: number }>,

View File

@ -60,12 +60,13 @@ limitations under the License. -->
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { defineProps, onBeforeMount, ref } from "vue"; import { onBeforeMount, ref } from "vue";
import { useSelectorStore } from "@/store/modules/selectors"; import { useSelectorStore } from "@/store/modules/selectors";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
import type { PropType } from "vue"; import type { PropType } from "vue";
import { EndpointListConfig } from "@/types/dashboard"; import { EndpointListConfig } from "@/types/dashboard";
/*global defineProps */
defineProps({ defineProps({
data: { data: {
type: Object, type: Object,

View File

@ -16,10 +16,11 @@ limitations under the License. -->
<Graph :option="option" /> <Graph :option="option" />
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { defineProps, computed } from "vue"; import { computed } from "vue";
import type { PropType } from "vue"; import type { PropType } from "vue";
import { StandardConfig } from "@/types/dashboard"; import { StandardConfig } from "@/types/dashboard";
/*global defineProps */
const props = defineProps({ const props = defineProps({
data: { data: {
type: Object as PropType<{ nodes: number[][]; buckets: number[][] }>, type: Object as PropType<{ nodes: number[][]; buckets: number[][] }>,

View File

@ -60,12 +60,13 @@ limitations under the License. -->
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { defineProps, onBeforeMount, ref } from "vue"; import { onBeforeMount, ref } from "vue";
import { useSelectorStore } from "@/store/modules/selectors"; import { useSelectorStore } from "@/store/modules/selectors";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
import type { PropType } from "vue"; import type { PropType } from "vue";
import { InstanceListConfig } from "@/types/dashboard"; import { InstanceListConfig } from "@/types/dashboard";
/*global defineProps */
defineProps({ defineProps({
data: { data: {
type: Object, type: Object,

View File

@ -16,11 +16,12 @@ limitations under the License. -->
<Graph :option="option" /> <Graph :option="option" />
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { defineProps, computed } from "vue"; import { computed } from "vue";
import type { PropType } from "vue"; import type { PropType } from "vue";
import { Event } from "@/types/events"; import { Event } from "@/types/events";
import { LineConfig } from "@/types/dashboard"; import { LineConfig } from "@/types/dashboard";
/*global defineProps */
const props = defineProps({ const props = defineProps({
data: { data: {
type: Object as PropType<{ [key: string]: number[] }>, type: Object as PropType<{ [key: string]: number[] }>,

View File

@ -16,9 +16,10 @@ limitations under the License. -->
<Graph :option="option" /> <Graph :option="option" />
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { defineProps, computed } from "vue"; import { computed } from "vue";
import type { PropType } from "vue"; import type { PropType } from "vue";
/*global defineProps */
const props = defineProps({ const props = defineProps({
data: { data: {
type: Array as PropType<{ name: string; value: number }[]>, type: Array as PropType<{ name: string; value: number }[]>,

View File

@ -60,12 +60,13 @@ limitations under the License. -->
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { defineProps, onBeforeMount, ref } from "vue"; import { onBeforeMount, ref } from "vue";
import { useSelectorStore } from "@/store/modules/selectors"; import { useSelectorStore } from "@/store/modules/selectors";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
import type { PropType } from "vue"; import type { PropType } from "vue";
import { ServiceListConfig } from "@/types/dashboard"; import { ServiceListConfig } from "@/types/dashboard";
/*global defineProps */
defineProps({ defineProps({
data: { data: {
type: Object, type: Object,

View File

@ -45,8 +45,9 @@ limitations under the License. -->
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { defineProps, computed, ref, onMounted } from "vue"; import { computed, ref, onMounted } from "vue";
import type { PropType } from "vue"; import type { PropType } from "vue";
/*global defineProps */
const props = defineProps({ const props = defineProps({
data: { data: {
type: Object as PropType<{ [key: string]: number[][] }>, type: Object as PropType<{ [key: string]: number[][] }>,

View File

@ -35,8 +35,9 @@ limitations under the License. -->
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import type { PropType } from "vue"; import type { PropType } from "vue";
import { defineProps, computed } from "vue"; import { computed } from "vue";
import copy from "@/utils/copy"; import copy from "@/utils/copy";
/*global defineProps */
const props = defineProps({ const props = defineProps({
data: { data: {
type: Array as PropType< type: Array as PropType<

View File

@ -17,7 +17,7 @@ limitations under the License. -->
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { defineProps } from "vue"; /*global defineProps */
defineProps({ defineProps({
msg: { type: String }, msg: { type: String },
}); });

View File

@ -17,7 +17,7 @@ limitations under the License. -->
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { defineProps } from "vue"; /*global defineProps */
defineProps({ defineProps({
msg: { type: String }, msg: { type: String },
}); });

View File

@ -17,7 +17,7 @@ limitations under the License. -->
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { defineProps } from "vue"; /*global defineProps */
defineProps({ defineProps({
msg: { type: String }, msg: { type: String },
}); });