-
Notifications
You must be signed in to change notification settings - Fork 1
/
e.we
61 lines (54 loc) · 971 Bytes
/
e.we
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
<element name="hi">
<template>
<div><text class="hi">{{hi}}</text></div>
</template>
<style>
.hi {
font-size: 26px;
color: green;
}
</style>
<script>
module.exports = {
data: function() {
return {
hi: ''
}
}
}
</script>
</element>
<we-element name="name">
<template>
<div><text class="name">{{name}}</text></div>
</template>
<style>
.name {
font-size: 26px;
color: red;
}
</style>
<script>
module.exports = {
data: function() {
return {
name: ''
}
}
}
</script>
</we-element>
<template>
<div style="flex-direction: row;">
<hi hi="{{hi}}"></hi>
<name name="{{name}}"></name>
</div>
</template>
<script>
export function data() {
return {
hi: 'Hello',
name: 'Weex'
}
}
</script>