sunzehua 3 months ago
commit 68352521b2

@ -13,7 +13,7 @@
</template>
<script lang="ts" setup>
import { BasicForm, useForm } from '/@/components/Form/index'
import { noteFormSchema } from './baseInfo.tsx'
// import { noteFormSchema } from './baseInfo.tsx'
import { ref, watch, defineProps, defineExpose, onMounted } from 'vue'
import { useRoute } from 'vue-router'
const route = useRoute()
@ -30,7 +30,7 @@
{ getFieldsValue, updateSchema, resetFields, setFieldsValue, validate },
] = useForm({
labelWidth: 200,
schemas: noteFormSchema,
schemas: [],
showActionButtonGroup: false,
})
watch(
@ -40,11 +40,11 @@
}
)
onMounted(() => {
if (source.value != 'edit') {
noteFormSchema.forEach(item => {
item.dynamicDisabled = true
})
}
// if (source.value != 'edit') {
// noteFormSchema.forEach(item => {
// item.dynamicDisabled = true
// })
// }
})
defineExpose({
// RefediFrom,

Loading…
Cancel
Save