-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (72 loc) · 1.78 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>App 1</title>
</head>
<body>
<!-- <div id="bbb"></div> -->
<div id="aaa"></div>
<template hfz mount="#bbb">bbbabb</template>
<script>
setTimeout(() => {
const e = document.createElement("div");
e.id = "bbb";
document.body.appendChild(e);
}, 1000);
</script>
<template
hfz
mount="#aaa"
import:flex-box:box="1"
import:remote-ok="./r-comp.html"
:data="{bb: 12232, hobby: 1}"
>
<remote-ok :a="bb"></remote-ok>
<div>baej</div>
<block @mounted="bb = 123123434">bbss</block>
aaaa {{bb}} {{hobby}}
<comp2></comp2>
<button @click="hello">ewe</button>
<box> flex-box </box>
<script>
export default {
data: {
bb: 234234,
hobby: 4,
},
methods: {
hello() {
this.hobby = 6;
},
},
};
</script>
<style>
button {
color: red;
}
</style>
<!-- <hfc-btn1 :name="'afei'" :hobby="hobby" :wakadA="bb" @hatEseFE="hello">
<div>demo hfc</div>
<template #header="{ a }">
<h1>slot {{a}} {{bb}}</h1>
</template>
<template #heAderr="{ a }">
<h1>slot {{a}} {{bb}}</h1>
</template>
</hfc-btn1> -->
</template>
<template hfz name="comp2">
<div>comp 2</div>
</template>
<script>
setTimeout(() => {
const d = document.createElement("div");
d.innerHTML = "<template hfz> <div>lazy hfz template</div> </template>";
document.body.appendChild(d);
}, 2000);
</script>
<script src="./dist/index.js"></script>
</body>
</html>