Replies: 1 comment
-
|
经过两天的使用,已经有所提高,最后选择方案是在子组件的 acceptParams 里调用API和给个别字段设置默认值。 // 接收父组件传过来的参数
const acceptParams = (params: dialogProps): void => {
getRoleOptions();
getDepartmentOptions();
getPermissionOptions();
params.rowData = {
...params.rowData,
permissions: params.rowData.permissions ?? []
};
dialogProps.value = params;
dialogVisible.value = true;
}; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Discussion 破处贴我来吧!
问两个菜鸡小问题,纯后端,日后问题还很多,别见笑,别嫌烦哈哈!
新增/编辑表单 openDrawer , 在 新增 Add 的情况下,给个别字段设置默认值的正确姿势是什么?
在 新增/编辑表单 openDrawer 中,想给某个字段,如 Select 通过 Api 设置选项列表,符合GeekerAdmin风格的正确姿势是?
Beta Was this translation helpful? Give feedback.
All reactions