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

ProTable显示 可以适配下cascader吗,如下列的city #382

Closed
hirohitosann opened this issue Jan 12, 2024 · 2 comments
Closed

ProTable显示 可以适配下cascader吗,如下列的city #382

hirohitosann opened this issue Jan 12, 2024 · 2 comments

Comments

@hirohitosann
Copy link

/* 表格*/ const columns: ColumnProps<any>[] = [ { type: "index", label: "序号", width: 80 }, { prop: "username", label: "用户名", }, { prop: "bindRoleID", label: "权限" , tag: true,enum:getRoleOptionsAPI,fieldNames: { label: "label", value: "value"}}, { prop: "loginStatus", label: "状态" , tag: true,enum:getUserStatausOptionsAPI,fieldNames: { label: "label", value: "value"}}, { prop: "city", label: "所在城市",enum:regionData,fieldNames: { label: "label", value: "value", children:[label: "label", value: "value", children:[label: "label", value: "value"]]},} { prop: "createTime", label: "创建时间" }, { prop: "updateTime", label: "更新时间" }, { prop: "mark", label: "备注" }, { prop: "operation", label: "操作", fixed: "right", width: 120 } ];

@hirohitosann
Copy link
Author

{ prop: "city", label: "所在城市",enum:regionData,fieldNames: { label: "label", value: "value", children:[label: "label", value: "value", children:[label: "label", value: "value"]]},}

@HalseySpicy
Copy link
Owner

默认支持的

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