$refs.vForm } defineExpose({ submitForm }) 父组件在template中引入子组件 <workDay ref="workDayRef"></workDay> <CustomButton type="primary" class="my-5" @click="addOverPlane">保存</CustomButton> <CustomButton class="my-5">取消</CustomButton> const addOverPlane=()=>{ } 子组件和...
const state = reactive({ formData1: { allow: true, planTimeType: '0', planPay: true, planTimeAfter: 0, planTimeMin: 0, planPayType: '0', planPayNum: 0, planPayDay: '0' }, transformOptions: [ { label: '每月结转', value: '0' } ] }) const { formData1, transformOptions } ...