在新版本 v 5.3.0(ol 地图库)中更改了行为归因。在我有图标“i”之前,在它下面显示图层的所有属性。
现在我有一些扁平化的信息。
开发者给出了使用之前行为的说明:
归因不可折叠
ol/source/OSM当地图包含来自
ol/source/OSM源的图层时,ol/control/Attribution控件将显示为“可折叠:假”行为。要获得以前的行为,请
ol/control/Attribution使用collapsible: true.
但如何实现这一目标?
我需要打开一个具有一定高度和宽度的新窗口。
在 vuejs2 中我有这样的东西:
Run Code Online (Sandbox Code Playgroud)<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>
Run Code Online (Sandbox Code Playgroud)
如何在 vue js 2 中实现这一点,也许作为点击方法?