misc: warning 제거

This commit is contained in:
2022-05-08 01:44:16 +09:00
parent cb7eb3b711
commit 68aae0bec1
7 changed files with 21 additions and 12 deletions
+11 -6
View File
@@ -19,6 +19,7 @@
class="map_title"
:title="getTitleTooltip()"
>
<!-- eslint-disable-next-line vue/max-attributes-per-line -->
<span class="map_title_text" :style="{ color: getTitleColor() }"
>{{ mapData?.year }} {{ mapData?.month }}</span
>
@@ -191,16 +192,20 @@ const { elementX: cursorX, elementY: cursorY, isOutside } = useMouseInElement(ma
const tooltipWidth = ref(0);
const { width: tooltipCurrWidth } = useElementSize(tooltipDom);
watch(tooltipCurrWidth, (newWidth)=>{
if(newWidth == 0) return;
tooltipWidth.value = newWidth;
}, {immediate: true});
watch(
tooltipCurrWidth,
(newWidth) => {
if (newWidth == 0) return;
tooltipWidth.value = newWidth;
},
{ immediate: true }
);
const { sourceType: cursorType } = useMouse();
const emit = defineEmits<{
(event: "city-click", city: MapCityParsed, e: MouseEvent | TouchEvent): void;
(event: "parsed", drawable: MapCityDrawable): void;
(event: 'update:modelValue', value: MapCityParsed): void;
(event: "update:modelValue", value: MapCityParsed): void;
}>();
const isFullWidth = ref(true);
@@ -256,7 +261,7 @@ const props = defineProps({
type: Object as PropType<MapCityParsed>,
default: undefined,
required: false,
}
},
});
const mapData = toRef(props, "mapData");