-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
79 lines (71 loc) · 1.9 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>test</title>
<style>
* {
box-sizing: border-box;
}
*::before,
*::after {
box-sizing: border-box;
}
:root {
--font-size: 14px;
--color: #333;
--button-height: 30px;
--border-radius: 4px;
--border-color: #999;
--border-color-hover: #666;
--button-bg: white;
--button-active-bg: #eee;
}
body {
margin: 0;
font-size: var(--font-size);
padding: 50px;
/*border: 1px solid green;*/
}
.column {
border: 1px solid green;
width: 100%;
}
.g-row1 {
height: 30px;
background: gray;
}
.wrapper {
height: 100vh;
}
.box {
border: 1px solid green;
}
</style>
</head>
<body >
<div id="app" style="border:1px solid transparent;overflow: hidden;" @click="test">
<y-popover>
<div slot="content">this is top</div>
<button>向上</button>
</y-popover>
<y-popover position="bottom">
<div slot="content">this is bottom</div>
<button>向下</button>
</y-popover>
<y-popover position="left">
<div slot="content" >this is left</div>
<button>向左</button>
</y-popover>
<y-popover position="right">
<div slot="content">this is right</div>
<button>向右</button>
</y-popover>
</div>
<script src="src/app.js"></script>
<script src="//at.alicdn.com/t/font_936378_wymsm87uqni.js"></script>
</body>
</html>