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]iview3.0 introduces Tree components on demand, and how size sets up when it is introduced on demand. #4165

Closed
ycyucan opened this issue Jul 30, 2018 · 3 comments

Comments

@ycyucan
Copy link

ycyucan commented Jul 30, 2018

Environment

ivew3.0

Reproduction link

https://github.com/iview/iview/issues/new

Steps to reproduce

import Tree form ‘iview’ Vue.component('Tree",Tree)

What is expected?

怎么实现按需引入时候size 的设置

What is actually happening?

size报错

@iview-bot iview-bot changed the title [Bug Report]iview3.0 按需引入Tree 组件 size 报错 按需引入的时候 怎么全局设置 [Bug Report]iview3.0 introduces Tree components on demand, and how size sets up when it is introduced on demand. Jul 30, 2018
@iview-bot
Copy link
Collaborator

Translation of this issue:
Environment
Ivew3.0
Reproduction link
https://github.com/iview/iview/issues/new
Steps to reproduce
Import Tree form "iView" Vue.component ('Tree ", Tree)
What is expected?
How to implement size settings when required to be introduced
What is actually happening?
Size is wrong

@leafiy
Copy link

leafiy commented Jul 30, 2018

when using import on demand , always "TypeError: Cannot read property 'size' of undefined"
happens on import { *** } from 'iview' , not only Tree component

image

@leafiy
Copy link

leafiy commented Jul 30, 2018

there is temporary solution, add this line to main.js
Vue.prototype.$IVIEW = {}

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

4 participants