updated MatchesTable.vue
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user