mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-03 13:44:47 +08:00
chore: 依赖更新到vue3.3+以及删除unplugin-vue-define-options插件
This commit is contained in:
@@ -1,27 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import { formRules } from "./rule";
|
||||
import { FormProps } from "./types";
|
||||
import ReCol from "@/components/ReCol";
|
||||
import { usePublicHooks } from "../hooks";
|
||||
|
||||
/** TODO
|
||||
* 针对类型的props/emit声明,vue3.3.0版本以下不支持复杂的类型和从其他文件进行类型导入,等后续vue正式发布3.3.0版本再优化
|
||||
* https://cn.vuejs.org/api/sfc-script-setup.html#typescript-only-features
|
||||
*/
|
||||
interface FormProps {
|
||||
formInline: {
|
||||
higherDeptOptions: Record<string, unknown>[];
|
||||
parentId: number;
|
||||
name: string;
|
||||
principal: string;
|
||||
phone: string | number;
|
||||
email: string;
|
||||
sort: number;
|
||||
status: number;
|
||||
remark: string;
|
||||
};
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<FormProps>(), {
|
||||
formInline: () => ({
|
||||
higherDeptOptions: [],
|
||||
|
||||
Reference in New Issue
Block a user