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

[vue] vue的is这个特性你有用过吗?主要用在哪些方面? #438

Open
haizhilin2013 opened this issue Jun 22, 2019 · 6 comments
Labels
vue vue

Comments

@haizhilin2013
Copy link
Collaborator

[vue] vue的is这个特性你有用过吗?主要用在哪些方面?

@haizhilin2013 haizhilin2013 added the vue vue label Jun 22, 2019
@pygo1
Copy link

pygo1 commented Jul 4, 2019

vue中is的属性引入是为了解决dom结构中对放入html的元素有限制的问题

@censek
Copy link

censek commented Oct 29, 2019

vue中is的属性引入是为了解决dom结构中对放入html的元素有限制的问题

<ul>
  <li is='my-component'></li>
</ul>

@eastFang
Copy link

切换组件用的

@langhuanyudong
Copy link

tab组件用is的例子
https://jsfiddle.net/chrisvfritz/o3nycadu/

@sc950828
Copy link

动态组件

@2860754963
Copy link

2860754963 commented Jan 10, 2023

1.限制组件,是为了解决在ul,或者ol中的li中;select的options中;table的tr中不能使用特定内容的问题

<ul>
  <li is="my-component"></li>
</ul>

2.动态组件,动态显示不同组件

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

No branches or pull requests

7 participants