Skip to content
New issue

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

当操作按钮为 info的时候 bug #67

Closed
rainscode opened this issue Aug 18, 2022 · 1 comment
Closed

当操作按钮为 info的时候 bug #67

rainscode opened this issue Aug 18, 2022 · 1 comment

Comments

@rainscode
Copy link

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
这样会导致一个问题 无法判断 当前是预览还是添加新数据

@icssoa
Copy link
Collaborator

icssoa commented Jan 7, 2023

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 用这个判断

@icssoa icssoa closed this as completed Jan 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants