feat: 添加表单构建功能 formCreate

This commit is contained in:
dhb52
2025-04-22 23:31:13 +08:00
parent a6f25d477b
commit e7934d81a1
26 changed files with 2003 additions and 11 deletions

View File

@@ -33,7 +33,7 @@ import {
type InitOptions = IPropTypes['init'];
defineOptions({ inheritAttrs: false });
defineOptions({ name: 'Tinymce', inheritAttrs: false });
const props = defineProps({
options: {
@@ -157,11 +157,11 @@ const initOptions = computed((): InitOptions => {
const { httpRequest } = useUpload();
httpRequest(file)
.then((url) => {
console.log('tinymce 上传图片成功:', url);
// console.log('tinymce 上传图片成功:', url);
resolve(url);
})
.catch((error) => {
console.error('tinymce 上传图片失败:', error);
// console.error('tinymce 上传图片失败:', error);
reject(error.message);
});
});