会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
StephenZYH
博客园
首页
博问
闪存
新随笔
订阅
管理
vue 中如何将标签组件转为html标签
使用tag="div",就将该标签转为div。下面举个例子。element-ui也是这样使用。
<router-link
class
=
"footer-item"
tag
=
"div"
:
to
=
"
`/articles/
${
item
.
_id
}
`
"
v-for
=
"
item
in
model
.
related
"
:
key
=
"
item
.
_id
"
>
{{
item
.
title
}}
</router-link>
posted on
2021-02-03 17:06
StephenZYH
阅读(
1553
) 评论(
0
)
收藏
举报
刷新页面
返回顶部