fix: ele mp 素材管理

This commit is contained in:
dylanmay
2025-12-05 09:35:49 +08:00
parent 6214c33c86
commit 5021f2487d
6 changed files with 5 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { UploadProps, UploadRawFile } from 'element-plus';
import type { UploadProps } from 'element-plus';
import type { UploadData } from './upload';

View File

@@ -163,4 +163,3 @@ const customRequest: UploadProps['httpRequest'] = async function (options) {
</ElForm>
</ElDialog>
</template>

View File

@@ -74,7 +74,7 @@ onMounted(async () => {
<template>
<Grid class="image-table-grid mt-4 pb-0">
<template #toolbar-tools>
<slot name="toolbar-tools" />
<slot name="toolbar-tools"></slot>
</template>
<template #image="{ row }">
<div class="flex items-center justify-center" style="height: 192px">
@@ -104,4 +104,3 @@ onMounted(async () => {
</template>
</Grid>
</template>

View File

@@ -66,7 +66,7 @@ watch(
<template>
<Grid class="mt-4">
<template #toolbar-tools>
<slot name="toolbar-tools" />
<slot name="toolbar-tools"></slot>
</template>
<template #video="{ row }">
<WxVideoPlayer v-if="row.url" :url="row.url" />
@@ -96,4 +96,3 @@ watch(
</template>
</Grid>
</template>

View File

@@ -96,4 +96,3 @@ watch(
</template>
</Grid>
</template>

View File

@@ -114,7 +114,7 @@ function showTotal(total: number) {
<template>
<Page auto-content-height class="flex flex-col">
<!-- 搜索工作栏 -->
<div class="bg-background mb-4 rounded-lg p-4">
<div class="mb-4 rounded-lg bg-background p-4">
<ElForm
ref="queryFormRef"
:model="queryParams"
@@ -174,7 +174,7 @@ function showTotal(total: number) {
</div>
<!-- 列表 -->
<div class="bg-background flex-1 rounded-lg p-4">
<div class="flex-1 rounded-lg bg-background p-4">
<MessageTable :list="list" :loading="loading" @send="handleSend" />
<div v-show="total > 0" class="mt-4 flex justify-end">
<ElPagination
@@ -208,4 +208,3 @@ function showTotal(total: number) {
margin-bottom: 16px;
}
</style>