We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const Upsert = useUpsert({ items: [ { label: "名称", prop: "userName", required: true, component: { name: "el-input" } }, { label: "接口地址", prop: "apiUrl", required: true, component: { name: "el-input" } }, { label: "创建时间", prop: "createTime", component: { name: "el-input" },hidden:(data:{ scope: any; isEdit: boolean; isAdd: boolean }) =>{ console.log(data) return data.isEdit }}, ] });
当我点击info按钮的时候 isAdd 也为true 这样会导致一个问题 无法判断 当前是预览还是添加新数据
The text was updated successfully, but these errors were encountered:
const Upsert = useUpsert({ items: [ { label: "名称", prop: "userName", required: true, component: { name: "el-input" } }, { label: "接口地址", prop: "apiUrl", required: true, component: { name: "el-input" } }, { label: "创建时间", prop: "createTime", component: { name: "el-input" },hidden:(data:{ scope: any; isEdit: boolean; isAdd: boolean }) =>{ console.log(data) return data.isEdit }}, ] }); 当我点击info按钮的时候 isAdd 也为true 这样会导致一个问题 无法判断 当前是预览还是添加新数据
Upsert.value.mode 用这个判断
Upsert.value.mode
Sorry, something went wrong.
No branches or pull requests
const Upsert = useUpsert({ items: [ { label: "名称", prop: "userName", required: true, component: { name: "el-input" } }, { label: "接口地址", prop: "apiUrl", required: true, component: { name: "el-input" } }, { label: "创建时间", prop: "createTime", component: { name: "el-input" },hidden:(data:{ scope: any; isEdit: boolean; isAdd: boolean }) =>{ console.log(data) return data.isEdit }}, ] });
当我点击info按钮的时候 isAdd 也为true
这样会导致一个问题 无法判断 当前是预览还是添加新数据
The text was updated successfully, but these errors were encountered: