Skip to content

Commit

Permalink
fix: 解决了一些代码规范上的警告
Browse files Browse the repository at this point in the history
  • Loading branch information
elpwc committed Jun 20, 2024
1 parent 838144f commit 80311b8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
5 changes: 3 additions & 2 deletions src/components/MapView.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<script lang="ts">
// leaflet 需要 leaflet.css, 这里通过 rollup-plugin-css-only 将其打包到 bundle.css
import '../../node_modules/leaflet/dist/leaflet.css';
import L, { LeafletMouseEvent } from 'leaflet';
import L from 'leaflet';
import type { LeafletMouseEvent } from 'leaflet';
import { afterUpdate, onMount } from 'svelte';
import Modal from './Modal.svelte';
import { fly } from 'svelte/transition';
Expand Down Expand Up @@ -1535,7 +1536,7 @@

<!--锁定-->
<button disabled={!$isAdminModeStore}>
<label disabled={!$isAdminModeStore} style="color: rgb(208, 200, 181);">
<label style="color: rgb(208, 200, 181);">
<input disabled={!$isAdminModeStore} type="checkbox" checked={config.default.isLockAllMarkers ? true : currentClickedMarker?.is_lock} on:change={onSetLockChecked} />{$t(
'map.modals.info.lock',
)}</label
Expand Down
4 changes: 2 additions & 2 deletions src/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="svelte" />

declare module '*.svg' {
const src: string;
const src: ConstructorOfATypedSvelteComponent;
export default src;
}
}
14 changes: 6 additions & 8 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
"declaration": true,
"target": "esnext",
"module": "esnext",
"strict": false
"strict": false,
"verbatimModuleSyntax": true,
"ignoreDeprecations": "5.0"
},
"include": [
"src/**/*",
"rollup.config.ts"
],
"exclude": [
]
}
"include": ["src/**/*", "rollup.config.ts"],
"exclude": []
}

0 comments on commit 80311b8

Please sign in to comment.