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

能不能加个selection-change的回调 #3

Open
xuzixian opened this issue Sep 12, 2018 · 8 comments
Open

能不能加个selection-change的回调 #3

xuzixian opened this issue Sep 12, 2018 · 8 comments

Comments

@xuzixian
Copy link

你好,这个组件好像没有selection-change的回调是吗,能不能加一个,谢谢

@wfwfwf
Copy link
Owner

wfwfwf commented Sep 13, 2018

ok

@wfwfwf
Copy link
Owner

wfwfwf commented Sep 13, 2018

已经支持所有的element table的方法

@xuzixian
Copy link
Author

拖动固定了的列,拖不了

@wfwfwf
Copy link
Owner

wfwfwf commented Sep 15, 2018

固定列的拖动,这个是不支持的,这个要支持就复杂了,而且也可以通过拖动不固定的列来拖动那一行

@Kitty2015
Copy link

hi,能支持element table 相关的props属性么,比如stripe 斑马纹属性、固定表头等

@wfwfwf
Copy link
Owner

wfwfwf commented Nov 15, 2018

你可以先将我的代码引入你的工程,我这个工程,我有一个较大的改动,暂时不会去做你说的这些。

@Kitty2015
Copy link

666,嗯嗯,代码拉下来了,试着在props属性加了下,没成功。麻烦问下支持stripe 斑马纹属性、固定表头等属性,在哪个些地方需要改动的呢?

@xuzixian
Copy link
Author

packages/draggable/index.js文件下的render方法里的“// 对element tabel行点击事件”下面的几句代码换成下面这个即可
// 对element tabel行点击事件进行兼容
if (JSON.stringify(this.$attrs) === '{}') {
update('attrs', {data: this.list})
} else {
update('attrs', Object.assign(this.$attrs,{data: this.list}))
}

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

3 participants