Update ForceEntry to script setup

This commit is contained in:
Matthias 2023-02-15 06:45:34 +01:00
parent 872cf42753
commit 3884bc3f68

View File

@ -107,20 +107,17 @@
</b-modal>
</template>
<script lang="ts">
<script setup lang="ts">
import { useBotStore } from '@/stores/ftbotwrapper';
import { ForceEnterPayload, OrderSides } from '@/types';
import { computed, defineComponent, nextTick, ref } from 'vue';
import { computed, nextTick, ref } from 'vue';
export default defineComponent({
name: 'ForceEntryForm',
props: {
const props = defineProps({
modelValue: { required: true, default: false, type: Boolean },
pair: { type: String, default: '' },
},
emits: ['update:modelValue'],
setup(props, { emit }) {
});
const emit = defineEmits(['update:modelValue']);
const botStore = useBotStore();
const form = ref<HTMLFormElement>();
@ -196,22 +193,4 @@ export default defineComponent({
const inputSelect = (bvModalEvt) => {
bvModalEvt.srcElement?.select();
};
return {
handleSubmit,
model,
botStore,
form,
handleEntry,
inputSelect,
resetForm,
selectedPair,
price,
stakeAmount,
ordertype,
orderSide,
leverage,
};
},
});
</script>