File tree Expand file tree Collapse file tree 6 files changed +25
-25
lines changed
02.Components/Part-2/demo Expand file tree Collapse file tree 6 files changed +25
-25
lines changed Original file line number Diff line number Diff line change 22
22
</ div >
23
23
</ div >
24
24
25
- < template id ="grid-template ">
25
+ < script type =" text/x- template" id ="grid-template ">
26
26
< table >
27
27
< thead >
28
28
< tr >
45
45
</ tr >
46
46
</ tbody >
47
47
</ table >
48
- </ template >
48
+ </ script >
49
49
50
50
< script src ="../js/vue.js "> </ script >
51
51
< script >
Original file line number Diff line number Diff line change 22
22
</ div >
23
23
</ div >
24
24
25
- < template id ="grid-template ">
25
+ < script type =" text/x- template" id ="grid-template ">
26
26
< table >
27
27
< thead >
28
28
< tr >
47
47
</ table >
48
48
< modal - dialog :mode = "mode" :title = "title" :fields = "columns" :item = "item" >
49
49
< / modal-dialog >
50
- </ template >
50
+ </ script >
51
51
52
- < template id ="dialog-template ">
52
+ < script type =" text/x- template" id ="dialog-template ">
53
53
< div class = "dialogs" >
54
54
< div class = "dialog" v-bind :class = "{ 'dialog-active': show }" >
55
55
< div class = "dialog-content" >
@@ -67,7 +67,7 @@ <h1 class="dialog-title">{{ title }}</h1>
67
67
</ div >
68
68
< div class = "dialog-overlay" > </ div >
69
69
</ div >
70
- </ template >
70
+ </ script >
71
71
72
72
< script src ="../js/vue.js "> </ script >
73
73
< script >
Original file line number Diff line number Diff line change 22
22
</ div >
23
23
</ div >
24
24
25
- < template id ="grid-template ">
25
+ < script type =" text/x- template" id ="grid-template ">
26
26
< table >
27
27
< thead >
28
28
< tr >
52
52
< modal-dialog :mode = "mode" :title = "title" :fields = "columns" :item = "item" v - on :create - item = "createItem" >
53
53
< / modal-dialog >
54
54
55
- </ template >
55
+ </ script >
56
56
57
- < template id ="dialog-template ">
57
+ < script type =" text/x- template" id ="dialog-template ">
58
58
< div class = "dialogs" >
59
59
< div class = "dialog" v-bind :class = "{ 'dialog-active': show }" >
60
60
< div class = "dialog-content" >
@@ -81,7 +81,7 @@ <h1 class="dialog-title">{{ title }}</h1>
81
81
</ div >
82
82
< div class = "dialog-overlay" > </ div >
83
83
</ div >
84
- </ template >
84
+ </ script >
85
85
86
86
< script src ="../js/vue.js "> </ script >
87
87
< script >
Original file line number Diff line number Diff line change 22
22
</ div >
23
23
</ div >
24
24
25
- < template id ="grid-template ">
25
+ < script type =" text/x- template" id ="grid-template ">
26
26
< table >
27
27
< thead >
28
28
< tr >
53
53
< modal-dialog :mode = "mode" :title = "title" :item = "item" :fields = "columns" v - on :create - item = "createItem" v - on :update - item = "updateItem" >
54
54
< / modal-dialog >
55
55
56
- </ template >
56
+ </ script >
57
57
58
- < template id ="dialog-template ">
58
+ < script type =" text/x- template" id ="dialog-template ">
59
59
< div class = "dialogs" >
60
60
< div class = "dialog" v-bind :class = "{ 'dialog-active': show }" >
61
61
< div class = "dialog-content" >
@@ -84,7 +84,7 @@ <h1 class="dialog-title">{{ title }}</h1>
84
84
</ div >
85
85
< div class = "dialog-overlay" > </ div >
86
86
</ div >
87
- </ template >
87
+ </ script >
88
88
89
89
< script src ="../js/vue.js "> </ script >
90
90
< script >
@@ -99,7 +99,7 @@ <h1 class="dialog-title">{{ title }}</h1>
99
99
item : { }
100
100
}
101
101
} ,
102
- ready ( ) {
102
+ ready : function ( ) {
103
103
for ( var i = 0 ; i < this . columns . length ; i ++ ) {
104
104
if ( this . columns [ i ] . isKey ) {
105
105
this . keyColumn = this . columns [ i ] [ 'name' ]
Original file line number Diff line number Diff line change 22
22
</ div >
23
23
</ div >
24
24
25
- < template id ="grid-template ">
25
+ < script type =" text/x- template" id ="grid-template ">
26
26
< table >
27
27
< thead >
28
28
< tr >
53
53
< modal-dialog :mode = "mode" :title = "title" :item = "item" :fields = "columns" v - on :create - item = "createItem" v - on :update - item = "updateItem" >
54
54
< / modal-dialog >
55
55
56
- </ template >
56
+ </ script >
57
57
58
- < template id ="dialog-template ">
58
+ < script type =" text/x- template" id ="dialog-template ">
59
59
< div class = "dialogs" >
60
60
< div class = "dialog" v-bind :class = "{ 'dialog-active': show }" >
61
61
< div class = "dialog-content" >
@@ -82,7 +82,7 @@ <h1 class="dialog-title">{{ title }}</h1>
82
82
</ div >
83
83
< div class = "dialog-overlay" > </ div >
84
84
</ div >
85
- </ template >
85
+ </ script >
86
86
87
87
< script src ="../js/vue.js "> </ script >
88
88
< script >
@@ -97,7 +97,7 @@ <h1 class="dialog-title">{{ title }}</h1>
97
97
item : { }
98
98
}
99
99
} ,
100
- ready ( ) {
100
+ ready : function ( ) {
101
101
for ( var i = 0 ; i < this . columns . length ; i ++ ) {
102
102
if ( this . columns [ i ] . isKey ) {
103
103
this . keyColumn = this . columns [ i ] [ 'name' ]
Original file line number Diff line number Diff line change 22
22
</ div >
23
23
</ div >
24
24
25
- < template id ="grid-template ">
25
+ < script type =" text/x- template" id ="grid-template ">
26
26
< table >
27
27
< thead >
28
28
< tr >
53
53
< modal-dialog :mode = "mode" :title = "title" :item = "item" :fields = "columns" v - on :create - item = "createItem" v - on :update - item = "updateItem" >
54
54
< / modal-dialog >
55
55
56
- </ template >
56
+ </ script >
57
57
58
- < template id ="dialog-template ">
58
+ < script type =" text/x- template" id ="dialog-template ">
59
59
< div class = "dialogs" >
60
60
< div class = "dialog" v-bind :class = "{ 'dialog-active': show }" >
61
61
< div class = "dialog-content" >
@@ -82,7 +82,7 @@ <h1 class="dialog-title">{{ title }}</h1>
82
82
</ div >
83
83
< div class = "dialog-overlay" > </ div >
84
84
</ div >
85
- </ template >
85
+ </ script >
86
86
87
87
< script src ="../js/vue.js "> </ script >
88
88
< script >
@@ -134,7 +134,7 @@ <h1 class="dialog-title">{{ title }}</h1>
134
134
item : { }
135
135
}
136
136
} ,
137
- ready ( ) {
137
+ ready : function ( ) {
138
138
for ( var i = 0 ; i < this . columns . length ; i ++ ) {
139
139
if ( this . columns [ i ] . isKey ) {
140
140
this . keyColumn = this . columns [ i ] [ 'name' ]
You can’t perform that action at this time.
0 commit comments