-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathk.we
More file actions
43 lines (36 loc) · 721 Bytes
/
k.we
File metadata and controls
43 lines (36 loc) · 721 Bytes
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
<template lang="jade">
.wrap
text.text-hi {{hi}}
text.text-name {{name}}
</template>
<style lang="cssnext">
:root {
--mainColor: red;
--subColor: green;
--normalFont: {
font-size: 26px;
};
}
.wrap {
flex-direction: row;
}
.text-hi {
color: var(--mainColor);
@apply --normalFont;
}
.text-name {
color: var(--subColor);
@apply --normalFont;
}
</style>
<script lang="coffee">
modal = require '@weex-module/modal'
module.exports =
ready: () ->
modal.toast({'message': 'ready'})
data: () ->
return {
hi: 'Hello',
name: 'Weex'
}
</script>