review:【antd/ele】【mp】代码迁移的 review

This commit is contained in:
YunaiV
2025-11-27 16:24:39 +08:00
parent a976ca88f6
commit 7d9285de96
12 changed files with 18 additions and 16 deletions

View File

@@ -43,6 +43,7 @@ const queryParams = reactive({
pageSize: 10,
}); // 查询参数
// TODO @dylan可以把【点击上传】3 个 tab 的按钮,放到右侧的 toolbar 一起,和刷新按钮放在一行;
const voiceGridColumns: VxeTableGridOptions<MpMaterialApi.Material>['columns'] =
[
{

View File

@@ -31,10 +31,8 @@ const emit = defineEmits<{
(e: 'update:modelValue', v: Reply): void;
}>();
const accessStore = useAccessStore();
const UPLOAD_URL = `${import.meta.env.VITE_BASE_URL}/admin-api/mp/material/upload-temporary`;
const HEADERS = { Authorization: `Bearer ${accessStore.accessToken}` };
const HEADERS = { Authorization: `Bearer ${useAccessStore().accessToken}` };
const reply = computed<Reply>({
get: () => props.modelValue,
set: (val) => emit('update:modelValue', val),
@@ -94,6 +92,7 @@ async function customRequest(options: any) {
}
}
/** 选择素材 */
function selectMaterial(item: any) {
showDialog.value = false;
reply.value.thumbMediaId = item.mediaId;

View File

@@ -63,7 +63,6 @@ function amrStop() {
playing.value = false;
amr.value.stop();
}
// TODO 芋艿:下面样式有点问题
</script>
<template>

View File

@@ -1,6 +1,7 @@
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import type { MpMaterialApi } from '#/api/mp/material';
// TODO @dylan看看 ele 要迁移一个么?
/** 视频表格列配置 */
export function useVideoGridColumns(): VxeTableGridOptions<MpMaterialApi.Material>['columns'] {
return [

View File

@@ -9,6 +9,7 @@ import { formatDate2 } from '@vben/utils';
import { Button, Image, Tag } from 'ant-design-vue';
// TODO @dylan看看 ele 要迁移一个么?
import { useVbenVxeGrid } from '#/adapter/vxe-table';
import {
WxLocation,