mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-25 12:35:15 +00:00
Update ForceEntry to script setup
This commit is contained in:
parent
872cf42753
commit
3884bc3f68
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user