File tree Expand file tree Collapse file tree 11 files changed +33
-31
lines changed Expand file tree Collapse file tree 11 files changed +33
-31
lines changed Original file line number Diff line number Diff line change 34
34
<label >collapsedOnClickBrackets</label >
35
35
<input v-model =" collapsedOnClickBrackets" type =" checkbox" />
36
36
</div >
37
- <div >
38
- <label >useNodeValueSlot</label >
39
- <input v-model =" useNodeValueSlot" type =" checkbox" />
40
- </div >
41
37
<div >
42
38
<label >deep</label >
43
39
<select v-model =" deep" >
46
42
<option :value =" 4" >4</option >
47
43
</select >
48
44
</div >
45
+ </div >
46
+
47
+ <h3 >Slots:</h3 >
48
+ <div class =" options" >
49
49
<div >
50
- <label >deepCollapseChildren </label >
51
- <input v-model =" deepCollapseChildren " type =" checkbox" />
50
+ <label >nodeValue </label >
51
+ <input v-model =" useNodeValueSlot " type =" checkbox" />
52
52
</div >
53
53
</div >
54
54
</div >
57
57
<vue-json-pretty
58
58
:data =" data"
59
59
:deep =" deep"
60
- :deepCollapseChildren =" deepCollapseChildren"
61
60
:show-double-quotes =" showDoubleQuotes"
62
61
:show-length =" showLength"
63
62
:show-line =" showLine"
@@ -124,7 +123,6 @@ export default {
124
123
collapsedOnClickBrackets: true ,
125
124
useNodeValueSlot: false ,
126
125
deep: 3 ,
127
- deepCollapseChildren: false ,
128
126
showIcon: false ,
129
127
};
130
128
},
Original file line number Diff line number Diff line change 1
1
<template >
2
- <span class =" vjs-tree__brackets " @click.stop =" toggleBrackets" >{{ data }}</span >
2
+ <span class =" vjs-tree-brackets " @click.stop =" toggleBrackets" >{{ data }}</span >
3
3
</template >
4
4
5
5
<script >
Original file line number Diff line number Diff line change 1
1
@import ' ~src/themes.less' ;
2
2
3
- .@{css-prefix} -tree__brackets {
3
+ .@{css-prefix} -tree-brackets {
4
4
cursor : pointer ;
5
5
& :hover {
6
6
color : @color-primary ;
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<span
3
3
v-if =" isOpen || isClose"
4
- :class =" `vjs-carets vjs-carets__ ${isOpen ? 'open' : 'close'}`"
4
+ :class =" `vjs-carets vjs-carets- ${isOpen ? 'open' : 'close'}`"
5
5
@click =" handleClick"
6
6
>
7
7
<svg
Original file line number Diff line number Diff line change 14
14
}
15
15
}
16
16
17
- .@{css-prefix} -carets__close {
17
+ .@{css-prefix} -carets-close {
18
18
transform : rotate (-90deg );
19
19
}
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<!-- click.stop 避免向上冒泡触发 tree.vue 的 click 事件-->
3
3
<label :class =" [`vjs-check-controller`, checked ? 'is-checked' : '']" @click.stop >
4
- <span :class =" `vjs-check-controller__inner is-${uiType}`" />
4
+ <span :class =" `vjs-check-controller-inner is-${uiType}`" />
5
5
<input
6
6
:checked =" model"
7
- :class =" `vjs-check-controller__original is-${uiType}`"
7
+ :class =" `vjs-check-controller-original is-${uiType}`"
8
8
:type =" uiType"
9
9
@change =" $emit('change', model)"
10
10
/>
Original file line number Diff line number Diff line change 4
4
position : absolute ;
5
5
left : 0 ;
6
6
7
- & .is-checked .@{css-prefix} -check-controller__inner {
7
+ & .is-checked .@{css-prefix} -check-controller-inner {
8
8
background-color : @color-primary ;
9
9
border-color : darken (@color-primary , 10% );
10
10
17
17
}
18
18
}
19
19
20
- .@{css-prefix} -check-controller__inner {
20
+ .@{css-prefix} -check-controller-inner {
21
21
display : inline-block ;
22
22
position : relative ;
23
23
border : 1px solid @border-color ;
61
61
}
62
62
}
63
63
64
- .@{css-prefix} -check-controller__original {
64
+ .@{css-prefix} -check-controller-original {
65
65
opacity : 0 ;
66
66
outline : none ;
67
67
position : absolute ;
Original file line number Diff line number Diff line change 12
12
>
13
13
<div class =" vjs-tree-list" :style =" virtual && { height: `${height}px` }" >
14
14
<div
15
- class =" vjs-tree-list__holder "
15
+ class =" vjs-tree-list-holder "
16
16
:style =" virtual && { height: `${flatData.length * itemHeight}px` }"
17
17
>
18
18
<div
19
- class =" vjs-tree-list__holder -inner"
19
+ class =" vjs-tree-list-holder -inner"
20
20
:style =" virtual && { transform: `translateY(${translateY}px)` }"
21
21
>
22
22
<tree-node
Original file line number Diff line number Diff line change 8
8
& .is-virtual {
9
9
overflow : auto ;
10
10
11
- .@{css-prefix} -tree__node {
11
+ .@{css-prefix} -tree-node {
12
12
white-space : nowrap ;
13
13
}
14
14
}
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div
3
3
:class =" {
4
- 'vjs-tree__node ': true,
4
+ 'vjs-tree-node ': true,
5
5
'has-selector': showSelectController,
6
6
'has-carets': showIcon,
7
7
'is-highlight': highlightSelectedNode && checked,
8
8
}"
9
9
@click =" handleNodeClick"
10
10
>
11
- <span v-if =" showLineNumber" class =" vjs-node__index " >
11
+ <span v-if =" showLineNumber" class =" vjs-node-index " >
12
12
{{ node.id + 1 }}
13
13
</span >
14
14
26
26
v-for =" (item, index) in node.level"
27
27
:key =" index"
28
28
:class =" {
29
- 'vjs-indent__unit ': true,
29
+ 'vjs-indent-unit ': true,
30
30
'has-line': showLine,
31
31
}"
32
32
/>
@@ -148,7 +148,7 @@ export default {
148
148
},
149
149
computed: {
150
150
valueClass () {
151
- return ` vjs-value vjs-value__ ${ this .dataType } ` ;
151
+ return ` vjs-value vjs-value- ${ this .dataType } ` ;
152
152
},
153
153
154
154
dataType () {
You can’t perform that action at this time.
0 commit comments