feat: 更新支付渠道相关功能,修改渠道获取参数类型,重命名事件,新增渠道表单组件

This commit is contained in:
痴货
2025-05-05 16:29:59 +08:00
parent 61e06cce09
commit d0870beb40
9 changed files with 965 additions and 252 deletions

View File

@@ -55,7 +55,7 @@ const props = withDefaults(
showDescription: false,
},
);
const emit = defineEmits(['change', 'update:value', 'delete', 'getText']);
const emit = defineEmits(['change', 'update:value', 'delete', 'returnText']);
const { accept, helpText, maxNumber, maxSize } = toRefs(props);
const isInnerOperate = ref<boolean>(false);
const { getStringAccept } = useUploadType({
@@ -124,7 +124,7 @@ const handleRemove = async (file: UploadFile) => {
const beforeUpload = async (file: File) => {
// 使用现代的Blob.text()方法替代FileReader
const fileContent = await file.text();
emit('getText', fileContent);
emit('returnText', fileContent);
const { maxSize, accept } = props;
const isAct = checkFileType(file, accept);