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

使用layout布局时,编辑框显示异常 #174

Open
quickapicn opened this issue Jun 2, 2024 · 4 comments
Open

使用layout布局时,编辑框显示异常 #174

quickapicn opened this issue Jun 2, 2024 · 4 comments

Comments

@quickapicn
Copy link

quickapicn commented Jun 2, 2024

基于最新的main分支代码开发
layout配置如下:

formOption: {
    viewType: 'modal',
    width: 800,
    layout: [
      { formType: 'grid', cols: [{ span: 12,  formList: [{ dataIndex: 'display_id' }]  }, {  span: 12, formList: [{ dataIndex: 'nick_name' }] }]},
      { formType: 'grid', cols: [{ span: 24, formList: [{ dataIndex: 'talent_level' }] }]},
      { formType: 'grid', cols: [{  span: 12, formList: [{ dataIndex: 'coopcode' }] },  { span: 12,  formList: [{ dataIndex: 'dy_uid' }] } ]},
      { formType: 'grid',  cols: [{ span: 24,  formList: [{ dataIndex: 'auth_status' }]}] },
     ]
  },

新增窗口是正常的,但是编辑窗口显示的字典字段会显示两次
image

@cqmstar
Copy link

cqmstar commented Jun 14, 2024

你可以看一下src\components\ma-crud\components\form.vue这个文件,
image
原本是这样的,在你提交这个问题前两天他们有个commit,将formColumns.value.push(item)移到下面去了,说是修复异步赋值问题,但是我测试了一下,移至下面会出现你这个问题,所以我放回来了

@zds-s
Copy link
Member

zds-s commented Jun 14, 2024

@kanyxmo

@kanyxmo
Copy link
Member

kanyxmo commented Jun 17, 2024

好的,我看一下

@kanyxmo
Copy link
Member

kanyxmo commented Jun 20, 2024

之前修复别的bug,引发的新bug,已经还原了,可以更新下

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

4 participants