mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-26 13:05:15 +00:00
Update tradeActions to script setup
This commit is contained in:
parent
8df7406d02
commit
33e988798b
|
@ -49,16 +49,12 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script setup lang="ts">
|
||||||
import { Trade } from '@/types';
|
import { Trade } from '@/types';
|
||||||
import { defineComponent } from 'vue';
|
|
||||||
import DeleteIcon from 'vue-material-design-icons/Delete.vue';
|
import DeleteIcon from 'vue-material-design-icons/Delete.vue';
|
||||||
import ForceSellIcon from 'vue-material-design-icons/CloseBoxMultiple.vue';
|
import ForceSellIcon from 'vue-material-design-icons/CloseBoxMultiple.vue';
|
||||||
|
|
||||||
export default defineComponent({
|
defineProps({
|
||||||
name: 'TradeActions',
|
|
||||||
components: { DeleteIcon, ForceSellIcon },
|
|
||||||
props: {
|
|
||||||
botApiVersion: {
|
botApiVersion: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 1.0,
|
default: 1.0,
|
||||||
|
@ -67,12 +63,8 @@ export default defineComponent({
|
||||||
type: Object as () => Trade,
|
type: Object as () => Trade,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
},
|
|
||||||
emits: ['forceExit', 'forceExitPartial', 'deleteTrade'],
|
|
||||||
setup() {
|
|
||||||
return {};
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
defineEmits(['forceExit', 'forceExitPartial', 'deleteTrade']);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss"></style>
|
<style scoped lang="scss"></style>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user