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 },
showDetails: { default: false, required: false, type: Boolean },
});
const emit = defineEmits<{ 'update:modelValue': [value: boolean] }>();
const emit = defineEmits<{ 'update:modelValue': [value: string] }>();
const botStore = useBotStore();

View File

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

View File

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