File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <div class =" tr person" @click =" edit" >
2
+ <div
3
+ class =" tr person"
4
+ @click =" edit"
5
+ >
3
6
<div class =" td index" >
4
- {{index}}
7
+ {{ index }}
5
8
</div >
6
9
<div class =" td" >
7
10
<div class =" info" >
8
11
<img
12
+ :key =" item.value.avatar"
9
13
class =" avatar"
10
14
:src =" item.value.avatar"
11
- :key =" item.value.avatar"
12
- />
13
- <span >{{item.value.name}}</span >
15
+ >
16
+ <span >{{ item.value.name }}</span >
14
17
</div >
15
18
</div >
16
19
</div >
@@ -30,6 +33,7 @@ export default {
30
33
31
34
methods: {
32
35
edit () {
36
+ // eslint-disable-next-line vue/no-mutating-props
33
37
this .item .value .name += ' #'
34
38
},
35
39
},
Original file line number Diff line number Diff line change 21
21
"build:es" : " rollup --config build/rollup.config.es.js" ,
22
22
"build:umd" : " rollup --config build/rollup.config.umd.js" ,
23
23
"prepublishOnly" : " npm run lint && npm run build" ,
24
- "dev" : " cross-env NODE_ENV=development rollup --config build/rollup.config.es.js --watch"
24
+ "dev" : " cross-env NODE_ENV=development rollup --config build/rollup.config.es.js --watch" ,
25
+ "lint" : " cd ../../ && yarn run lint"
25
26
},
26
27
"repository" : {
27
28
"type" : " git" ,
You can’t perform that action at this time.
0 commit comments