From 8aa7981029acf65e3e895df34cbe376f72b0d4b4 Mon Sep 17 00:00:00 2001 From: MokujinMap Date: Tue, 16 Jul 2024 19:49:51 +0300 Subject: [PATCH] remove default values in vue option --- src/controls/MMapRouteControl/vue/index.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/controls/MMapRouteControl/vue/index.ts b/src/controls/MMapRouteControl/vue/index.ts index f899881..d23a3a6 100644 --- a/src/controls/MMapRouteControl/vue/index.ts +++ b/src/controls/MMapRouteControl/vue/index.ts @@ -6,16 +6,13 @@ import type TVue from '@vue/runtime-core'; export const MMapRouteControlVuefyOptions: CustomVuefyOptions = { props: { - geolocationTextInput: {type: String, default: 'My location'}, - clearFieldsText: {type: String, default: 'Clear all'}, - changeOrderText: {type: String, default: 'Change the order'}, - availableTypes: { - type: Array as TVue.PropType, - default: ['driving', 'truck', 'walking', 'transit'] - }, + geolocationTextInput: String, + clearFieldsText: String, + changeOrderText: String, + availableTypes: Array as TVue.PropType, truckParameters: Object as TVue.PropType, waypoints: Array as unknown as TVue.PropType<[LngLat | null, LngLat | null]>, - waypointsPlaceholders: {type: Array as unknown as TVue.PropType<[string, string]>, default: ['From', 'To']}, + waypointsPlaceholders: Array as unknown as TVue.PropType<[string, string]>, search: Function as TVue.PropType, suggest: Function as TVue.PropType, route: Function as TVue.PropType,