Skip to content

Commit 8ee0abd

Browse files
committed
camelcase edit
1 parent 0867b3c commit 8ee0abd

File tree

3 files changed

+20
-26
lines changed

3 files changed

+20
-26
lines changed

mock/role/routes.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,6 @@ export const asyncRoutes = [
196196
name: 'BackToTopDemo',
197197
meta: { title: 'backToTop' }
198198
},
199-
{
200-
path: 'count-to',
201-
component: 'views/components-demo/count-to',
202-
name: 'CountToDemo',
203-
meta: { title: 'countTo' }
204-
},
205199
{
206200
path: 'drag-dialog',
207201
component: 'views/components-demo/dragDialog',

src/router/modules/components.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ const componentsRouter: RouteConfig = {
5050
// name: 'StickyDemo',
5151
// meta: { title: 'Sticky' }
5252
// },
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+
},
5959
// {
6060
// path: 'mixin',
6161
// component: () => import('@/views/components-demo/mixin'),

src/views/components-demo/count-to.vue

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
</aside>
99
<count-to
1010
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"
1818
:autoplay="false"
1919
class="count"
2020
/>
@@ -133,28 +133,28 @@ export default class CountToDemo extends Vue {
133133
private setSuffix = ' rmb'
134134
private setPrefix = '¥ '
135135
136-
get _startVal() {
136+
get startVal() {
137137
if (this.setStartVal) {
138138
return this.setStartVal
139139
} else {
140140
return 0
141141
}
142142
}
143-
get _endVal() {
143+
get endVal() {
144144
if (this.setEndVal) {
145145
return this.setEndVal
146146
} else {
147147
return 0
148148
}
149149
}
150-
get _duration() {
150+
get duration() {
151151
if (this.setDuration) {
152152
return this.setDuration
153153
} else {
154154
return 100
155155
}
156156
}
157-
get _decimals() {
157+
get decimals() {
158158
if (this.setDecimals) {
159159
if (this.setDecimals < 0 || this.setDecimals > 20) {
160160
alert('digits argument must be between 0 and 20')
@@ -165,13 +165,13 @@ export default class CountToDemo extends Vue {
165165
return 0
166166
}
167167
}
168-
get _separator() {
168+
get separator() {
169169
return this.setSeparator
170170
}
171-
get _suffix() {
171+
get suffix() {
172172
return this.setSuffix
173173
}
174-
get _prefix() {
174+
get prefix() {
175175
return this.setPrefix
176176
}
177177
private start() {

0 commit comments

Comments
 (0)