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

[CheckboxGroup] 在和 Col 一起用的时候无法勾选 #1152

Closed
ghost opened this issue Nov 17, 2016 · 5 comments
Closed

[CheckboxGroup] 在和 Col 一起用的时候无法勾选 #1152

ghost opened this issue Nov 17, 2016 · 5 comments

Comments

@ghost
Copy link

ghost commented Nov 17, 2016

ElementUI version

1.0.0

OS/Browers version

macOS/Chrome 53

Vue version

2.0.6

Reproduction Link

Steps to reproduce

What is Expected?

What is actually happening?

<el-row> <el-checkbox-group v-model="checkList"> <el-col :span="3"> <el-checkbox label="售价" name="售价"></el-checkbox> </el-col> </el-checkbox-group> </el-row>

这种情况下,el-checkbox无法响应勾选事件.

@reverland
Copy link
Contributor

为啥这样嵌套,你把el-col作为el-row的直接子元素

@ghost
Copy link
Author

ghost commented Nov 18, 2016

大量的checkbox超过一行时,需要这样嵌套,否则就是参差不齐.

@furybean furybean changed the title el-checkbox-group 发现bug [CheckboxGroup] 在和 Col 一起用的时候无法勾选 Nov 18, 2016
QingWei-Li added a commit to QingWei-Li/element that referenced this issue Nov 24, 2016
baiyaaaaa added a commit that referenced this issue Nov 26, 2016
Radio/Checkbox: fix radio-radiogroup checkbox-checkboxgroup nested bug fixed #1152
@reverland
Copy link
Contributor

所以这是什么bug,是要支持这种嵌套方式?

@QingWei-Li
Copy link
Contributor

算是 bug,下一版支持这种用法

@reverland
Copy link
Contributor

就是说允许

el-row
  other-tags
    el-col
  another-tag
    el-col

的用法?好奇怪啊,如果other-tags设定宽度了,el-col怎么办

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants