1 | /*
|
2 | This file 'examples' is part of Firebird Integrated Solution 1.0
|
3 |
|
4 | Copyright (c) 2019 Lincong
|
5 |
|
6 | Contact:
|
7 | Email: lincong1987@gmail.com
|
8 |
|
9 | QQ: 159257119
|
10 |
|
11 | See Usage at http://www.jplatformx.com/firebird
|
12 |
|
13 | Create date: 2019-01-16 21:55
|
14 | */
|
15 |
|
16 | import {FireBird} from "./index"
|
17 |
|
18 | new FireBird({
|
19 | el: "#app",
|
20 | template: `
|
21 | <div>
|
22 | Hello World, <span style="color:{{color}}">{{now}}</span>
|
23 | </div>
|
24 | `,
|
25 | data() {
|
26 | return {
|
27 | now: new Date()
|
28 | }
|
29 | },
|
30 | afterMount() {
|
31 |
|
32 | setInterval(() => {
|
33 | this.set("now", new Date());
|
34 | this.set("color", "red");
|
35 | }, 500);
|
36 |
|
37 | // document.title = "mounted"
|
38 | }
|
39 | }); |
\ | No newline at end of file |