-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathindex.html
84 lines (82 loc) · 2.72 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0">
<title>vue-inline-svg</title>
<script src="https://unpkg.com/vue@3"></script>
<script src="../dist/vue-inline-svg.js"></script>
<script src="./index.js" defer></script>
</head>
<body>
<div id="app">
<div>
<div>
<inline-svg
id="svg1" width="150" height="150"
:src="`./img/${currentIcon}.svg`"
:fill="false"
:title="currentTitle"
@click="logClick"
@loaded="logLoaded($event, 'svg1')"
@unloaded="logUnloaded('svg1')"
></inline-svg>
<inline-svg
id="svg2"
:src="`./img/${currentIcon}.svg`"
:width="currentSize"
:height="currentSize"
:transform-source="transform"
:fill="''"
:title="currentTitle"
:keep-during-loading="false"
@loaded="logLoaded($event, 'svg2')"
@unloaded="logUnloaded('svg2')"
></inline-svg>
<inline-svg id="svg3" src="./index.html" v-on:error="logError($event, 'svg3')"></inline-svg>
<inline-svg
width="150" height="150"
src="./img/test-style.svg"
></inline-svg>
</div>
<div>
src:
<label>
<input type="radio" name="icon" value="firefox" v-model="currentIcon">
Firefox
</label>
<label>
<input type="radio" name="icon" value="safari" v-model="currentIcon">
Safari
</label>
</div>
<div>
attributes:
<label>
<input type="radio" name="size" value="150" v-model="currentSize">
150
</label>
<label>
<input type="radio" name="size" value="100" v-model="currentSize">
100
</label>
</div>
<div>
transform-source:
<label>
<input type="radio" name="transform" value="none" v-model="currentTransform">
none
</label>
<label>
<input type="radio" name="transform" value="black" v-model="currentTransform">
black
</label>
<label>
<input type="radio" name="transform" value="green" v-model="currentTransform">
green
</label>
</div>
</div>
</div>
</body>
</html>