Skip to content

Commit bfb8f35

Browse files
committed
style
1 parent f173768 commit bfb8f35

File tree

11 files changed

+26
-23
lines changed

11 files changed

+26
-23
lines changed

src/components/common-icon/common-icon.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import Icons from '_c/icons'
77
export default {
88
name: 'CommonIcon',
9-
components: {Icons},
9+
components: { Icons },
1010
props: {
1111
type: {
1212
type: String,

src/components/tables/tables.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export default {
176176
'on-save-edit': (params) => {
177177
this.value[params.row.initRowIndex][params.column.key] = this.edittingText
178178
this.$emit('input', this.value)
179-
this.$emit('on-save-edit', Object.assign(params, {value: this.edittingText}))
179+
this.$emit('on-save-edit', Object.assign(params, { value: this.edittingText }))
180180
this.edittingCellId = ''
181181
}
182182
}

src/locale/lang/en-US.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export default {
22
home: 'Home',
3+
login: 'Login',
34
components: 'Components',
45
count_to_page: 'Count-to',
56
tables_page: 'Table',

src/locale/lang/zh-CN.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export default {
22
home: '首页',
3+
login: '登录',
34
components: '组件',
45
count_to_page: '数字渐变',
56
tables_page: '多功能表格',

src/locale/lang/zh-TW.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export default {
22
home: '首頁',
3+
login: '登錄',
34
components: '组件',
45
count_to_page: '数字渐变',
56
tables_page: '多功能表格',

src/mock/login.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const USER_MAP = {
1818

1919
export const login = req => {
2020
req = JSON.parse(req.body)
21-
return {token: USER_MAP[req.userName].token}
21+
return { token: USER_MAP[req.userName].token }
2222
}
2323

2424
export const getUserInfo = req => {

src/store/module/user.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default {
7474
},
7575
actions: {
7676
// 登录
77-
handleLogin ({ commit }, {userName, password}) {
77+
handleLogin ({ commit }, { userName, password }) {
7878
userName = userName.trim()
7979
return new Promise((resolve, reject) => {
8080
login({

src/view/components/tables/tables.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ export default {
1818
data () {
1919
return {
2020
columns: [
21-
{title: 'Name', key: 'name', sortable: true},
22-
{title: 'Email', key: 'email', editable: true},
23-
{title: 'Create-Time', key: 'createTime'},
21+
{ title: 'Name', key: 'name', sortable: true },
22+
{ title: 'Email', key: 'email', editable: true },
23+
{ title: 'Create-Time', key: 'createTime' },
2424
{
2525
title: 'Handle',
2626
key: 'handle',

src/view/single-page/home/example.vue

+10-10
Original file line numberDiff line numberDiff line change
@@ -52,36 +52,36 @@ export default {
5252
name: '运营商/网络服务',
5353
type: 'line',
5454
stack: '总量',
55-
areaStyle: {normal: {
55+
areaStyle: { normal: {
5656
color: '#2d8cf0'
57-
}},
57+
} },
5858
data: [120, 132, 101, 134, 90, 230, 210]
5959
},
6060
{
6161
name: '银行/证券',
6262
type: 'line',
6363
stack: '总量',
64-
areaStyle: {normal: {
64+
areaStyle: { normal: {
6565
color: '#10A6FF'
66-
}},
66+
} },
6767
data: [257, 358, 278, 234, 290, 330, 310]
6868
},
6969
{
7070
name: '游戏/视频',
7171
type: 'line',
7272
stack: '总量',
73-
areaStyle: {normal: {
73+
areaStyle: { normal: {
7474
color: '#0C17A6'
75-
}},
75+
} },
7676
data: [379, 268, 354, 269, 310, 478, 358]
7777
},
7878
{
7979
name: '餐饮/外卖',
8080
type: 'line',
8181
stack: '总量',
82-
areaStyle: {normal: {
82+
areaStyle: { normal: {
8383
color: '#4608A6'
84-
}},
84+
} },
8585
data: [320, 332, 301, 334, 390, 330, 320]
8686
},
8787
{
@@ -94,9 +94,9 @@ export default {
9494
position: 'top'
9595
}
9696
},
97-
areaStyle: {normal: {
97+
areaStyle: { normal: {
9898
color: '#398DBF'
99-
}},
99+
} },
100100
data: [820, 645, 546, 745, 872, 624, 258]
101101
}
102102
]

src/view/single-page/home/home.vue

+5-5
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ export default {
5353
{ title: '新增页面', icon: 'md-map', count: 14, color: '#9A66E4' }
5454
],
5555
pieData: [
56-
{value: 335, name: '直接访问'},
57-
{value: 310, name: '邮件营销'},
58-
{value: 234, name: '联盟广告'},
59-
{value: 135, name: '视频广告'},
60-
{value: 1548, name: '搜索引擎'}
56+
{ value: 335, name: '直接访问' },
57+
{ value: 310, name: '邮件营销' },
58+
{ value: 234, name: '联盟广告' },
59+
{ value: 135, name: '视频广告' },
60+
{ value: 1548, name: '搜索引擎' }
6161
],
6262
barData: {
6363
Mon: 13253,

tests/unit/.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ module.exports = {
55
rules: {
66
'import/no-extraneous-dependencies': 'off'
77
}
8-
}
8+
}

0 commit comments

Comments
 (0)