review:【ANTD】【Pay 支付】chihuo 关于支付应用、订单的提交
parent
acc65c3b06
commit
013f3f3d2d
|
@ -100,7 +100,6 @@ async function handleRemove(file: UploadFile) {
|
|||
}
|
||||
|
||||
async function beforeUpload(file: File) {
|
||||
// 使用现代的Blob.text()方法替代FileReader
|
||||
const fileContent = await file.text();
|
||||
emit('returnText', fileContent);
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
// TODO @xingyu:这个组件,只有 pay 在用,和现有的 file-upload 和 image-upload 有点不一致。是不是可以考虑移除,只在 pay 那搞个复用的组件;
|
||||
import type { InputProps, TextAreaProps } from 'ant-design-vue';
|
||||
|
||||
import type { FileUploadProps } from './typing';
|
||||
|
|
|
@ -162,6 +162,7 @@ export function useGridColumns<T = PayAppApi.App>(
|
|||
},
|
||||
];
|
||||
}
|
||||
|
||||
/** 新增/修改的表单 */
|
||||
export function useFormSchema(): VbenFormSchema[] {
|
||||
return [
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<script lang="ts" setup>
|
||||
// TODO @xingyu:是不是不引入 @form-create/ant-design-vue 组件哈;保持和 vben 一致~;
|
||||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||
import type { PayAppApi } from '#/api/pay/app';
|
||||
|
||||
|
@ -139,6 +140,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||
<DocAlert title="支付功能开启" url="https://doc.iocoder.cn/pay/build/" />
|
||||
</template>
|
||||
|
||||
<!-- TODO @xingyu:建议和别的一致,Modal => FormModal -->
|
||||
<AppModal @success="onRefresh" />
|
||||
<ChannelModal @success="onRefresh" />
|
||||
|
||||
|
@ -281,6 +283,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||
/>
|
||||
</template>
|
||||
<template #alipayBarConfig="{ row }">
|
||||
<!-- TODO @xingyu:建议用小图标 -->
|
||||
<TableAction
|
||||
:actions="[
|
||||
{
|
||||
|
|
|
@ -159,6 +159,7 @@ const [Modal, modalApi] = useVbenModal({
|
|||
},
|
||||
});
|
||||
</script>
|
||||
<!-- TODO @xingyu:支付宝的证书,也是支持上传的哈 -->
|
||||
<template>
|
||||
<Modal :close-on-click-modal="false" :title="title" class="w-[40%]">
|
||||
<Form :schema="channelSchema(formType)" />
|
||||
|
|
|
@ -9,6 +9,7 @@ export function getPopupContainer(node?: HTMLElement): HTMLElement {
|
|||
);
|
||||
}
|
||||
|
||||
// TODO @xingyu:这个需要 pr 给 vben 官方么?体感上,这个是全局性的哈;
|
||||
/**
|
||||
* VxeTable专用弹窗层
|
||||
* 解决问题: https://gitee.com/dapppp/ruoyi-plus-vben5/issues/IB1DM3
|
||||
|
|
Loading…
Reference in New Issue