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