mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
code refactor
This commit is contained in:
@@ -41,11 +41,11 @@ const finalMapStyle = computed<Record<string, unknown>>(() => {
|
|||||||
const styles: Record<string, unknown> = copyObjectTo(props.mapStyle, {});
|
const styles: Record<string, unknown> = copyObjectTo(props.mapStyle, {});
|
||||||
|
|
||||||
if (props.height) {
|
if (props.height) {
|
||||||
styles.height = props.height;
|
styles['height'] = props.height;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!mapSupported.value || !mapDependencyLoaded.value) {
|
if (!mapSupported.value || !mapDependencyLoaded.value) {
|
||||||
styles.height = '0';
|
styles['height'] = '0';
|
||||||
}
|
}
|
||||||
|
|
||||||
return styles;
|
return styles;
|
||||||
|
|||||||
Reference in New Issue
Block a user