【发布时间】:2018-06-07 10:58:14
【问题描述】:
我需要打开一个具有一定高度和宽度的新窗口。
在 vuejs2 我有这样的东西:
<el-table-column label="Link" width="80"> <template scope="props"> <a v-bind:href="''+props.row.link+''" target="chart"> Link to chart </a> </template> </el-table-column>在 props.row.link 中有:http://host/charts/index.php?par=sth 所以这个href在新标签中打开,但没有高度和宽度,也没有在新窗口中。
在 html 上就是这么简单:
<a href="http://host/charts/index.php?par=1" onclick="window.open('http://host/charts/index.php?par=1', 'chart', 'width=1225, height=770'); return false;">Link to chart</a>
如何在 vue js 2 中实现这一点, 也许作为点击方法?
【问题讨论】:
-
试试这个:链接到图表
标签: vuejs2 element-ui