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

checkbox组如何能够动态勾选上 #699

Closed
Xiaohantx opened this issue Mar 24, 2020 · 2 comments
Closed

checkbox组如何能够动态勾选上 #699

Xiaohantx opened this issue Mar 24, 2020 · 2 comments
Labels
question Further information is requested

Comments

@Xiaohantx
Copy link

Question (问题描述)
采用的https://preview.pro.loacg.com/other/list/user-list这个页面的布局

      this.mdl.permissions.forEach(permission => {
        permission.actionsOptions = permission.actionEntitySet.map(action => {
          return { label: action.describe, value: action.action, defaultCheck: action.defaultCheck }
        })
      })

这里是处理代码,返回给到options上

defaultCheck没有钩上

Describe the solution you'd like (你期待的是什么?)
A clear and concise description of what you want to happen.

Additional context(附加信息)

@Xiaohantx Xiaohantx added the question Further information is requested label Mar 24, 2020
@Xiaohantx
Copy link
Author

在组件上添加默认值解决,return 中貌似无法设置

sendya added a commit that referenced this issue Mar 25, 2020
@sendya
Copy link
Member

sendya commented Mar 25, 2020

added 685977e

@sendya sendya closed this as completed Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants