feat: 优化编辑器位置
parent
09a0295c6f
commit
d7da0bd5f9
|
|
@ -5,13 +5,9 @@
|
||||||
<component v-else :is="Component"></component>
|
<component v-else :is="Component"></component>
|
||||||
</router-view>
|
</router-view>
|
||||||
</a-config-provider>
|
</a-config-provider>
|
||||||
<div v-if="true">
|
|
||||||
<my-editor></my-editor>
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import MyEditor from "@/components/editor/index.vue";
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped></style>
|
<style scoped></style>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<a-modal :visible="true" :fullscreen="true" :footer="false" class="ani-modal">
|
<a-modal :visible="visible" :fullscreen="true" :footer="false" class="ani-modal">
|
||||||
<div class="w-full h-full bg-slate-100 grid grid-rows-[auto_1fr] select-none">
|
<div class="w-full h-full bg-slate-100 grid grid-rows-[auto_1fr] select-none">
|
||||||
<div class="h-13 bg-white border-b border-slate-200 z-10">
|
<div class="h-13 bg-white border-b border-slate-200 z-10">
|
||||||
<panel-header></panel-header>
|
<panel-header></panel-header>
|
||||||
|
|
@ -28,6 +28,7 @@ import PanelMain from "./panel-main/index.vue";
|
||||||
import PanelRight from "./panel-right/index.vue";
|
import PanelRight from "./panel-right/index.vue";
|
||||||
import AppnifyPreview from "./preview/index.vue";
|
import AppnifyPreview from "./preview/index.vue";
|
||||||
|
|
||||||
|
const visible = defineModel("visible", { default: false });
|
||||||
const preview = ref(false);
|
const preview = ref(false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,12 @@
|
||||||
<div class="">
|
<div class="">
|
||||||
<div class="">
|
<div class="">
|
||||||
<a-alert :closable="true" class="mb-4"> 仅展示近 90 天内的数据,如需查看更多数据,请联系管理员。 </a-alert>
|
<a-alert :closable="true" class="mb-4"> 仅展示近 90 天内的数据,如需查看更多数据,请联系管理员。 </a-alert>
|
||||||
<Table v-bind="table"></Table>
|
<Table v-bind="table">
|
||||||
|
<template #action>
|
||||||
|
<a-button type="primary" @click="visible = true">添加</a-button>
|
||||||
|
<ani-editor v-model:visible="visible"></ani-editor>
|
||||||
|
</template>
|
||||||
|
</Table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</BreadPage>
|
</BreadPage>
|
||||||
|
|
@ -12,8 +17,10 @@
|
||||||
<script setup lang="tsx">
|
<script setup lang="tsx">
|
||||||
import { api } from "@/api";
|
import { api } from "@/api";
|
||||||
import { Table, useTable } from "@/components";
|
import { Table, useTable } from "@/components";
|
||||||
|
import aniEditor from "@/components/editor/index.vue";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
|
|
||||||
|
const visible = ref(false);
|
||||||
const table = useTable({
|
const table = useTable({
|
||||||
data: async (model, paging) => {
|
data: async (model, paging) => {
|
||||||
return api.log.getLoginLogs({ ...model, ...paging });
|
return api.log.getLoginLogs({ ...model, ...paging });
|
||||||
|
|
@ -27,9 +34,7 @@ const table = useTable({
|
||||||
return (
|
return (
|
||||||
<div class="flex flex-col overflow-hidden">
|
<div class="flex flex-col overflow-hidden">
|
||||||
<span>{record.nickname}</span>
|
<span>{record.nickname}</span>
|
||||||
<span class="text-gray-400 text-xs truncate">
|
<span class="text-gray-400 text-xs truncate">{dayjs(record.createdAt).format()}</span>
|
||||||
{dayjs(record.createdAt).format()}
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue