chore: Fix remaining emit styles

This commit is contained in:
Matthias 2024-07-20 11:23:05 +02:00
parent a44ff57032
commit 78001c3b91
3 changed files with 17 additions and 17 deletions

View File

@ -29,7 +29,7 @@ const props = defineProps({
modelValue: { type: String, required: true }, modelValue: { type: String, required: true },
showDetails: { default: false, required: false, type: Boolean }, showDetails: { default: false, required: false, type: Boolean },
}); });
const emit = defineEmits<{ 'update:modelValue': [value: boolean] }>(); const emit = defineEmits<{ 'update:modelValue': [value: string] }>();
const botStore = useBotStore(); const botStore = useBotStore();

View File

@ -92,14 +92,14 @@ defineProps({
default: false, default: false,
}, },
}); });
defineEmits([ defineEmits<{
'forceExit', forceExit: [trade: Trade, type?: 'limit' | 'market'];
'forceExitPartial', forceExitPartial: [trade: Trade];
'cancelOpenOrder', cancelOpenOrder: [trade: Trade];
'reloadTrade', reloadTrade: [trade: Trade];
'deleteTrade', deleteTrade: [trade: Trade];
'forceEntry', forceEntry: [trade: Trade];
]); }>();
</script> </script>
<style scoped lang="scss"></style> <style scoped lang="scss"></style>

View File

@ -7,14 +7,14 @@ defineProps({
botApiVersion: { type: Number, required: true }, botApiVersion: { type: Number, required: true },
enableForceEntry: { type: Boolean, default: false }, enableForceEntry: { type: Boolean, default: false },
}); });
const emit = defineEmits([ const emit = defineEmits<{
'forceExit', forceExit: [trade: Trade, type?: string];
'forceExitPartial', forceExitPartial: [trade: Trade];
'cancelOpenOrder', cancelOpenOrder: [trade: Trade];
'reloadTrade', reloadTrade: [trade: Trade];
'deleteTrade', deleteTrade: [trade: Trade];
'forceEntry', forceEntry: [trade: Trade];
]); }>();
const popoverOpen = ref(false); const popoverOpen = ref(false);
function forceExitHandler(item: Trade, ordertype: string | undefined = undefined) { function forceExitHandler(item: Trade, ordertype: string | undefined = undefined) {