Browse Source

详情组件 开放里面formRef属性

master
陈薪名 10 months ago
parent
commit
ebf6680fe9
  1. 4
      src/components/Detail/src/Detail.vue

4
src/components/Detail/src/Detail.vue

@ -379,6 +379,7 @@ const HeadButttondata = ref()
const buttondata = ref()
/** 打开弹窗 */
const formRef = ref()
const titleNameRef = ref()
const titleValueRef = ref()
const openDetail = async (row: any, titleName: any, titleValue: any, tableName: any) => {
@ -458,7 +459,7 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName:
}
}
}
defineExpose({ openDetail }) // open
defineExpose({ openDetail, formRef }) // open
//
const getRemarkList = async () => {
@ -544,7 +545,6 @@ const buttonTableClick = async (val, row) => {
}
}
/** 添加/修改操作 */
const formRef = ref()
const openForm = async (type: string, row?: number) => {
emit('detailOpenForm', type, row)
formRef.value.open(type, row, masterParmas.value)

Loading…
Cancel
Save