test(e2e): add test for svg example (#551)

This commit is contained in:
CodinCat
2019-12-21 01:56:36 +09:00
committed by Evan You
parent 755c7b581c
commit 2e3c5aaf5f
3 changed files with 94 additions and 31 deletions

View File

@@ -92,20 +92,21 @@ const Polygraph = {
</div>
<script>
const globalStats = [
{ label: 'A', value: 100 },
{ label: 'B', value: 100 },
{ label: 'C', value: 100 },
{ label: 'D', value: 100 },
{ label: 'E', value: 100 },
{ label: 'F', value: 100 }
]
const App = {
components: {
Polygraph
},
setup() {
const newLabel = ref('')
const stats = reactive([
{ label: 'A', value: 100 },
{ label: 'B', value: 100 },
{ label: 'C', value: 100 },
{ label: 'D', value: 100 },
{ label: 'E', value: 100 },
{ label: 'F', value: 100 }
])
const stats = reactive(globalStats)
function add(e) {
e.preventDefault()