updated MatchesTable.vue

This commit is contained in:
2022-03-25 16:05:38 +01:00
parent 3ad55c7fc4
commit 67cc06abdf

View File

@@ -226,7 +226,7 @@
</div>
</template>
<script>
<script setup lang="ts">
import {
DisplayRank,
FixMapName,
@@ -238,42 +238,20 @@ import {
GetWinLoss,
GoToMatch,
MatchNotParsedTime,
} from "/src/utils";
} from "@/utils";
import { defineProps } from "vue";
import type { Match } from "@/types";
export default {
name: "MatchesTable",
props: {
colorFront: {
type: Boolean,
required: false,
default: false,
},
matches: {
type: Array,
required: false,
},
explore: {
type: Boolean,
required: false,
default: false,
},
},
setup(props) {
return {
props,
FormatDate,
FormatFullDate,
FormatDuration,
FormatFullDuration,
GetHLTV_1,
GetWinLoss,
GoToMatch,
MatchNotParsedTime,
DisplayRank,
FixMapName,
};
},
};
interface Props {
colorFront?: boolean;
matches?: Match[];
explore?: boolean;
}
const props = withDefaults(defineProps<Props>(), {
colorFront: false,
explore: false,
});
</script>
<style lang="scss" scoped>