-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
155 lines (116 loc) · 3.24 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
</style>
</head>
<body>
<div id='app'>
<p>Hello App</p>
<div>
<a v-link="{path:'/home'}">Home</a>
<a v-link="{path:'/list'}">List</a>
<a v-link="{path:'/biz'}">biz</a>
</div>
<router-view></router-view>
</div>
<!-- <div id='app'>
<ul>
<li @click="currentView = 'home' ">Home</li>
<li @click="currentView = 'list' ">List</li>
<li @click="currentView = 'detail' ">Detail</li>
</ul>
<component v-bind:is='currentView'></component>
</div> -->
<!-- <div id='app'>
<my-slot>
<p slot='title'>{{title + '1'}}</p>
<p slot='title'>{{title + '2'}}</p>
<div slot='content'>{{content}}</div>
</my-slot>
</div> -->
<!-- <div id='app'>
<parent></parent>
</div> -->
<!--
<div id='app'>
<my-slot>
<p slot='title'>{{title}}</p>
<div slot='content'>{{content}}</div>
<div slot='thrid'>{{childData}}</div>
</my-slot>
</div> -->
<!-- <div id='app'>
<parent></parent>
</div> -->
<!-- <div id='app'>
<button v-on:click='triggerCustomerEvent'>Click</button>
{{todo}}
</div> -->
<!-- <div id='vuex'>
<Counter></Counter>
</div> -->
<!-- <div id='app'>
<input type='text' v-model='message' />
<span>Your input is:{{message}}</span>
<label><input type='radio' value='male' v-model='gender'>男</label>
<label><input type='radio' value='female' v-model='gender'>女</label>
{{gender}}
<label><input type='checkbox' value="1" v-model='multiChecked'>1</label>
<label><input type='checkbox' value="2" v-model='multiChecked'>2</label>
<label><input type='checkbox' value="3" v-model='multiChecked'>3</label>
<p>multiChecked:{{multiChecked.join('|')}}</p>
<select v-model='selected'>
<option>A</option>
<option selected>B</option>
<option>C</option>
</select>
<span>selected:{{selected}}</span>
<select v-model='multiSelected' multiple>
<option selected>A</option>
<option>B</option>
<option>C</option>
<option>D</option>
</select>
<p>multipleselected:{{multiSelected.join('|')}}</p>
<input v-model='query' lazy /><span>{{query}}</span>
<input v-model='age' number /><span>{{age}}</span>
<input v-model='q' debounce='3000 '/><span>{{q}}</span>
<a v-bind:href='href'>163</a>
<p v-bind:class="[classA, classB]">some text here</p>
<p class='tab' v-bind:class="{'av1':ac, 'av2':!ac}">Some texts</p>
<div v-bind:style='myStyle'>Some words here</div>
<div v-if='isShow'>show here</div>
<div v-else>show there</div>
<div v-show='isShow'>show here2</div>
<div v-else>show there2</div>
<div v-if='yes'>
<div v-if='inner'>inner</div>
<div v-else>not inner</div>
</div>
<ul v-for='item in items'>
<li><span>{{$index}}</span><div>{{item.title}}</div><div>{{item.description}}</div></li>
</ul>
<div v-for="(key, value) in objItems">
<div>{{$key}}:{{key}}:{{value}}</div>
</div>
<div v-for='x in 3'>
{{x}}
</div>
<template v-if='temYes'>
<p>123</p>
<p>456</p>
</template>
<div v-for='temItem in temItems'>
<div>{{temItem.name}}</div>
<div>{{temItem.des}}</div>
</div>
<button v-on:click='say'>Say</button>
<button v-on:click="sayFrom('fucked')">FF</button>
<button v-on:click="showEvent($event)">show event target</button>
<button v-on:click="showEvent2">show event target</button>
</div> -->
<script src="bundle.js"></script>
</body>
</html>