Explicitly set the SVG width and height

This commit is contained in:
jiaming743
2019-07-05 13:49:42 +08:00
parent 72433f8ff1
commit 6d4baac3b6
10 changed files with 12 additions and 12 deletions

View File

@ -1,6 +1,6 @@
<template>
<div class="dv-border-box-2" :ref="ref">
<svg class="dv-border-svg-container">
<svg class="dv-border-svg-container" :width="width" :height="height">
<polyline class="dv-bb2-line1"
:points="`2, 2 ${width - 2} ,2 ${width - 2}, ${height - 2} 2, ${height - 2} 2, 2`" />
<polyline class="dv-bb2-line2"