23 lines
758 B
Vue
23 lines
758 B
Vue
<script setup lang="ts">
|
|
|
|
import ImportResource from "./ImportResource.vue";
|
|
import {computed, ref} from "vue";
|
|
const emit = defineEmits<{addAtlas: [data: unknown]}>();
|
|
const showImportResource = ref<boolean>(false);
|
|
const tableData = computed<unknown[]>(() => []);
|
|
</script>
|
|
|
|
<template>
|
|
<el-button @click="showImportResource = true">导入</el-button>
|
|
<el-table :data="tableData" style="width: 100%">
|
|
<el-table-column prop="name" label="名称" width="180" />
|
|
<el-table-column prop="data" :formatter="(row:unknown,col:unknown,cellValue: Blob) => cellValue.size" label="大小" width="180" />
|
|
</el-table>
|
|
<el-dialog v-model="showImportResource" title="导入材质">
|
|
<ImportResource />
|
|
</el-dialog>
|
|
</template>
|
|
|
|
<style scoped>
|
|
|
|
</style> |