ForceExitForm -> script setup

This commit is contained in:
Matthias 2023-02-15 07:05:27 +01:00
parent 3884bc3f68
commit 9b009e8158

View File

@ -60,23 +60,20 @@
</div> </div>
</template> </template>
<script lang="ts"> <script setup lang="ts">
import { useBotStore } from '@/stores/ftbotwrapper'; import { useBotStore } from '@/stores/ftbotwrapper';
import { ForceSellPayload, Trade } from '@/types'; import { ForceSellPayload, Trade } from '@/types';
import { defineComponent, ref, computed } from 'vue'; import { ref, computed } from 'vue';
export default defineComponent({ const props = defineProps({
name: 'ForceExitForm',
props: {
trade: { trade: {
type: Object as () => Trade, type: Object as () => Trade,
required: true, required: true,
}, },
modelValue: { required: true, default: false, type: Boolean }, modelValue: { required: true, default: false, type: Boolean },
}, });
emits: ['update:modelValue'], const emit = defineEmits(['update:modelValue']);
setup(props, { emit }) {
const botStore = useBotStore(); const botStore = useBotStore();
const form = ref<HTMLFormElement>(); const form = ref<HTMLFormElement>();
@ -129,16 +126,4 @@ export default defineComponent({
// Trigger submit handler // Trigger submit handler
handleSubmit(); handleSubmit();
}; };
return {
handleSubmit,
botStore,
form,
handleEntry,
resetForm,
amount,
ordertype,
model,
};
},
});
</script> </script>