infra:code review 表单增强

This commit is contained in:
YunaiV 2024-03-30 21:15:01 +08:00
parent 5ca3358237
commit d05c67ffaa
2 changed files with 4 additions and 3 deletions

View File

@ -14,7 +14,7 @@ export const useFormCreateDesigner = (designer: Ref) => {
const uploadImgsRule = useUploadImgsRule() const uploadImgsRule = useUploadImgsRule()
onMounted(() => { onMounted(() => {
// 移除自带的上传组件规则 // 移除自带的上传组件规则,使用 uploadFileRule、uploadImgRule、uploadImgsRule 替代
designer.value?.removeMenuItem('upload') designer.value?.removeMenuItem('upload')
const components = [uploadFileRule, uploadImgRule, uploadImgsRule] const components = [uploadFileRule, uploadImgRule, uploadImgsRule]
components.forEach((component) => { components.forEach((component) => {

View File

@ -51,6 +51,7 @@ const dialogTitle = ref('') // 弹窗的标题
const formType = ref(-1) // 0 - JSON1 - Options2 - const formType = ref(-1) // 0 - JSON1 - Options2 -
const formData = ref('') // const formData = ref('') //
useFormCreateDesigner(designer) // useFormCreateDesigner(designer) //
/** 打开弹窗 */ /** 打开弹窗 */
const openModel = (title: string) => { const openModel = (title: string) => {
dialogVisible.value = true dialogVisible.value = true