File tree 3 files changed +20
-26
lines changed 3 files changed +20
-26
lines changed Original file line number Diff line number Diff line change @@ -196,12 +196,6 @@ export const asyncRoutes = [
196
196
name : 'BackToTopDemo' ,
197
197
meta : { title : 'backToTop' }
198
198
} ,
199
- {
200
- path : 'count-to' ,
201
- component : 'views/components-demo/count-to' ,
202
- name : 'CountToDemo' ,
203
- meta : { title : 'countTo' }
204
- } ,
205
199
{
206
200
path : 'drag-dialog' ,
207
201
component : 'views/components-demo/dragDialog' ,
Original file line number Diff line number Diff line change @@ -50,12 +50,12 @@ const componentsRouter: RouteConfig = {
50
50
// name: 'StickyDemo',
51
51
// meta: { title: 'Sticky' }
52
52
// },
53
- // {
54
- // path: 'count-to',
55
- // component: () => import('@/views/components-demo/count-to'),
56
- // name: 'CountToDemo',
57
- // meta: { title: 'Count To ' }
58
- // },
53
+ {
54
+ path : 'count-to' ,
55
+ component : ( ) => import ( /* webpackChunkName: "CountTo" */ '@/views/components-demo/count-to.vue ' ) ,
56
+ name : 'CountToDemo' ,
57
+ meta : { title : 'countTo ' }
58
+ } ,
59
59
// {
60
60
// path: 'mixin',
61
61
// component: () => import('@/views/components-demo/mixin'),
Original file line number Diff line number Diff line change 8
8
</aside >
9
9
<count-to
10
10
ref =" count"
11
- :start-val =" _startVal "
12
- :end-val =" _endVal "
13
- :duration =" _duration "
14
- :decimals =" _decimals "
15
- :separator =" _separator "
16
- :prefix =" _prefix "
17
- :suffix =" _suffix "
11
+ :start-val =" startVal "
12
+ :end-val =" endVal "
13
+ :duration =" duration "
14
+ :decimals =" decimals "
15
+ :separator =" separator "
16
+ :prefix =" prefix "
17
+ :suffix =" suffix "
18
18
:autoplay =" false"
19
19
class =" count"
20
20
/>
@@ -133,28 +133,28 @@ export default class CountToDemo extends Vue {
133
133
private setSuffix = ' rmb'
134
134
private setPrefix = ' ¥ '
135
135
136
- get _startVal () {
136
+ get startVal () {
137
137
if (this .setStartVal ) {
138
138
return this .setStartVal
139
139
} else {
140
140
return 0
141
141
}
142
142
}
143
- get _endVal () {
143
+ get endVal () {
144
144
if (this .setEndVal ) {
145
145
return this .setEndVal
146
146
} else {
147
147
return 0
148
148
}
149
149
}
150
- get _duration () {
150
+ get duration () {
151
151
if (this .setDuration ) {
152
152
return this .setDuration
153
153
} else {
154
154
return 100
155
155
}
156
156
}
157
- get _decimals () {
157
+ get decimals () {
158
158
if (this .setDecimals ) {
159
159
if (this .setDecimals < 0 || this .setDecimals > 20 ) {
160
160
alert (' digits argument must be between 0 and 20' )
@@ -165,13 +165,13 @@ export default class CountToDemo extends Vue {
165
165
return 0
166
166
}
167
167
}
168
- get _separator () {
168
+ get separator () {
169
169
return this .setSeparator
170
170
}
171
- get _suffix () {
171
+ get suffix () {
172
172
return this .setSuffix
173
173
}
174
- get _prefix () {
174
+ get prefix () {
175
175
return this .setPrefix
176
176
}
177
177
private start() {
You can’t perform that action at this time.
0 commit comments