mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-13 03:33:50 +00:00
ForceExitForm -> script setup
This commit is contained in:
parent
3884bc3f68
commit
9b009e8158
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user