chore: update

This commit is contained in:
xiaoxian521
2022-08-11 22:23:41 +08:00
parent 243c8f71a7
commit bcbc110883
5 changed files with 385 additions and 346 deletions

View File

@@ -8,7 +8,7 @@ defineOptions({
});
const { t } = useI18n();
const loading = ref(false);
const loading = ref(true);
const currentRoute = useRoute();
const frameSrc = ref<string>("");
const frameRef = ref<HTMLElement | null>(null);
@@ -16,6 +16,7 @@ const frameRef = ref<HTMLElement | null>(null);
if (unref(currentRoute.meta)?.frameSrc) {
frameSrc.value = unref(currentRoute.meta)?.frameSrc as string;
}
unref(currentRoute.meta)?.frameLoading === false && hideLoading();
function hideLoading() {
loading.value = false;
@@ -39,7 +40,6 @@ function init() {
}
onMounted(() => {
loading.value = true;
init();
});
</script>

View File

@@ -11,7 +11,6 @@ import {
// 核心
VXETable,
// 表格功能
Header,
Footer,
Icon,
Filter,
@@ -79,7 +78,6 @@ VXETable.setup({
export function useTable(app: App) {
app
.use(Header)
.use(Footer)
.use(Icon)
.use(Filter)

View File

@@ -18,6 +18,7 @@ const pptRouter = {
meta: {
title: "PPT",
frameSrc: "https://pipipi-pikachu.github.io/PPTist/",
frameLoading: false,
extraIcon: {
svg: true,
name: "team-iconxinpin"