mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-28 16:58:43 +08:00 
			
		
		
		
	适配最新 vue3 代码生成
This commit is contained in:
		| @@ -1,8 +1,4 @@ | ||||
| import { reactive } from 'vue' | ||||
| import { useI18n } from '@/hooks/web/useI18n' | ||||
| import { DICT_TYPE } from '@/utils/dict' | ||||
| import { required } from '@/utils/formRules' | ||||
| import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas' | ||||
| import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas' | ||||
| const { t } = useI18n() // 国际化 | ||||
| // 表单校验 | ||||
| export const rules = reactive({ | ||||
|   | ||||
| @@ -75,11 +75,6 @@ | ||||
|   </XModal> | ||||
| </template> | ||||
| <script setup lang="ts" name="${simpleClassName}"> | ||||
| // 全局相关的 import | ||||
| import { ref, unref } from 'vue' | ||||
| import { useI18n } from '@/hooks/web/useI18n' | ||||
| import { useMessage } from '@/hooks/web/useMessage' | ||||
| import { useXTable } from '@/hooks/web/useXTable' | ||||
| import { FormExpose } from '@/components/Form' | ||||
| // 业务相关的 import | ||||
| import { rules, allSchemas } from './${classNameVar}.data' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 xingyu
					xingyu