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

[Bug Report] el-select err in electron-vue #10124

Closed
cobola opened this issue Mar 12, 2018 · 5 comments
Closed

[Bug Report] el-select err in electron-vue #10124

cobola opened this issue Mar 12, 2018 · 5 comments

Comments

@cobola
Copy link

cobola commented Mar 12, 2018

Element UI version

2.2.1

OS/Browsers version

vue-electron 1.0.6

Vue version

2.5.15

Reproduction Link

https://jsfiddle.net/mmx38qxw/

Steps to reproduce

it works in web,
i cannot reproduct in jsfiddle

just use
el-select in electron-vue

只是简单的把el-select 加在界面里面 没有增加任何处理
在electron 环境中报错
http://ww1.sinaimg.cn/large/3e646cdcly1fpa01sndoaj22j61ba7m3.jpg

What is Expected?

select element as the result

What is actually happening?

[Vue warn]: Error in nextTick: "TypeError: _this12.$refs.reference.$el.getBoundingClientRect is not a function"

[Vue warn]: Error in nextTick: "TypeError: Cannot read property 'style' of undefined"

http://ww1.sinaimg.cn/large/3e646cdcly1fpa01sndoaj22j61ba7m3.jpg

@element-bot
Copy link
Member

Translation of this issue:

Element UI version

2.2.1

OS/Browsers version

Vue-electron 1.0.6

Vue version

2.5.15

Reproduction Link

https://jsfiddle.net/mmx38qxw/

Steps to reproduce

It works in web,

I cannot reproduct in jsfiddle
Just use

El-select in electron-vue
Just simply adding el-select to the interface does not add any processing

Make a mistake in the electron environment
Http://ww1.sinaimg.cn/large/3e646cdcly1fpa01sndoaj22j61ba7m3.jpg

What is Expected?

Select element as the result

What is actually happening?

[Vue warn]: Error in nextTick: "TypeError: _this12.$refs.reference.$el.getBoundingClientRect is not a function"

[Vue warn]: Error in nextTick: "TypeError: Cannot read property'style'of undefined"
Http://ww1.sinaimg.cn/large/3e646cdcly1fpa01sndoaj22j61ba7m3.jpg

@furybean
Copy link
Contributor

抱歉,我们没人任何人有使用 vue-electron 的经验,目前当做 need: repro 处理。
如果你能解决这个问题,欢迎你提 PR,谢谢。

@Leopoldthecoder
Copy link
Contributor

从报错来看,应该是因为使用了 2.5.14 版本的 Vue(参考#10093)。升级 Vue 到 2.5.15 试试。

@cobola
Copy link
Author

cobola commented Mar 13, 2018

搞定了 是这个原因 多谢

@cobola cobola closed this as completed Mar 13, 2018
@gaolongxin062
Copy link

搞定了 是这个原因 多谢

升级到2.5.15可以吗,我也遇到了这个问题

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

5 participants