@@ -271,7 +272,7 @@ onMounted(async () => {
margin-top: 1.5em;
}
-.conflict-area{
+.conflict-area {
margin-top: 1.5em;
}
diff --git a/hwe/ts/PageNationGeneral.vue b/hwe/ts/PageNationGeneral.vue
index 5ca50076..3c755198 100644
--- a/hwe/ts/PageNationGeneral.vue
+++ b/hwe/ts/PageNationGeneral.vue
@@ -1,6 +1,6 @@
-
+
+
@@ -523,9 +524,9 @@ const columnRawDefs = ref
};
return style as CellStyle;
},
- comparator: (_lhs, _rhs, {data: lhs}: GenRowNode, {data: rhs}: GenRowNode)=>{
+ comparator: (_lhs, _rhs, { data: lhs }: GenRowNode, { data: rhs }: GenRowNode) => {
const npcDiff = lhs.npc - rhs.npc;
- if(npcDiff != 0){
+ if (npcDiff != 0) {
return npcDiff;
}
return lhs.name.localeCompare(rhs.name);
@@ -1154,7 +1155,7 @@ const columnRawDefs = ref
return "?";
}
const killRatePercent = Math.round((data.killcrew / Math.max(1, data.deathcrew)) * 100);
- return killRatePercent
+ return killRatePercent;
},
valueFormatter: numberFormatter("%"),
columnGroupShow: "open",
diff --git a/hwe/ts/components/MapViewer.vue b/hwe/ts/components/MapViewer.vue
index dc8f986a..742f1122 100644
--- a/hwe/ts/components/MapViewer.vue
+++ b/hwe/ts/components/MapViewer.vue
@@ -19,6 +19,7 @@
class="map_title"
:title="getTitleTooltip()"
>
+
{{ mapData?.year }}年 {{ mapData?.month }}月
@@ -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,
default: undefined,
required: false,
- }
+ },
});
const mapData = toRef(props, "mapData");