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

编辑组件只有input select textarea 可选吗? #374

Closed
hasbug opened this issue Sep 20, 2019 · 2 comments
Closed

编辑组件只有input select textarea 可选吗? #374

hasbug opened this issue Sep 20, 2019 · 2 comments

Comments

@hasbug
Copy link

hasbug commented Sep 20, 2019

(必填)请填写问题描述 Describe

我看到目前V2版本编辑的控件只有input select textarea,就按照https://xuliangzhan.github.io/vxe-table/#/table/other/element,使用了element-ui组件,但时间控件那些选完后,立马被关闭了。怎么回事?并没有选到时间,值也没改变。

请填写版本号 Version

  • os:windows
  • browser: chrome
  • vue: 2.X
  • vxe-table: v2
@MoreMu
Copy link

MoreMu commented Sep 20, 2019

如果是自定义组件,也是选中不上值的

<vxe-table-column field="tabIndex" title="列所属页签" min-width="180px" :edit-render="{autofocus: '.custom-input'}"> <template v-slot:edit="{row}"> <selector-for-row-tab :tabIndex.sync="row.tabIndex" class="custom-input"></selector-for-row-tab> </template> <template v-slot="{row}">{{row.tabIndex}}</template> </vxe-table-column>

@hasbug
Copy link
Author

hasbug commented Sep 21, 2019

因为我用的是element-ui,我后面按照文档中的提示安装了npm包:vxe-table-plugin-element
可以用了。

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