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 3434 <label >collapsedOnClickBrackets</label >
3535 <input v-model =" collapsedOnClickBrackets" type =" checkbox" />
3636 </div >
37- <div >
38- <label >useNodeValueSlot</label >
39- <input v-model =" useNodeValueSlot" type =" checkbox" />
40- </div >
4137 <div >
4238 <label >deep</label >
4339 <select v-model =" deep" >
4642 <option :value =" 4" >4</option >
4743 </select >
4844 </div >
45+ </div >
46+
47+ <h3 >Slots:</h3 >
48+ <div class =" options" >
4949 <div >
50- <label >deepCollapseChildren </label >
51- <input v-model =" deepCollapseChildren " type =" checkbox" />
50+ <label >nodeValue </label >
51+ <input v-model =" useNodeValueSlot " type =" checkbox" />
5252 </div >
5353 </div >
5454 </div >
5757 <vue-json-pretty
5858 :data =" data"
5959 :deep =" deep"
60- :deepCollapseChildren =" deepCollapseChildren"
6160 :show-double-quotes =" showDoubleQuotes"
6261 :show-length =" showLength"
6362 :show-line =" showLine"
@@ -124,7 +123,6 @@ export default {
124123 collapsedOnClickBrackets: true ,
125124 useNodeValueSlot: false ,
126125 deep: 3 ,
127- deepCollapseChildren: false ,
128126 showIcon: false ,
129127 };
130128 },
Original file line number Diff line number Diff line change 11<template >
2- <span class =" vjs-tree__brackets " @click.stop =" toggleBrackets" >{{ data }}</span >
2+ <span class =" vjs-tree-brackets " @click.stop =" toggleBrackets" >{{ data }}</span >
33</template >
44
55<script >
Original file line number Diff line number Diff line change 11@import ' ~src/themes.less' ;
22
3- .@{css-prefix} -tree__brackets {
3+ .@{css-prefix} -tree-brackets {
44 cursor : pointer ;
55 & :hover {
66 color : @color-primary ;
Original file line number Diff line number Diff line change 11<template >
22 <span
33 v-if =" isOpen || isClose"
4- :class =" `vjs-carets vjs-carets__ ${isOpen ? 'open' : 'close'}`"
4+ :class =" `vjs-carets vjs-carets- ${isOpen ? 'open' : 'close'}`"
55 @click =" handleClick"
66 >
77 <svg
Original file line number Diff line number Diff line change 1414 }
1515}
1616
17- .@{css-prefix} -carets__close {
17+ .@{css-prefix} -carets-close {
1818 transform : rotate (-90deg );
1919}
Original file line number Diff line number Diff line change 11<template >
22 <!-- click.stop 避免向上冒泡触发 tree.vue 的 click 事件-->
33 <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}`" />
55 <input
66 :checked =" model"
7- :class =" `vjs-check-controller__original is-${uiType}`"
7+ :class =" `vjs-check-controller-original is-${uiType}`"
88 :type =" uiType"
99 @change =" $emit('change', model)"
1010 />
Original file line number Diff line number Diff line change 44 position : absolute ;
55 left : 0 ;
66
7- & .is-checked .@{css-prefix} -check-controller__inner {
7+ & .is-checked .@{css-prefix} -check-controller-inner {
88 background-color : @color-primary ;
99 border-color : darken (@color-primary , 10% );
1010
1717 }
1818 }
1919
20- .@{css-prefix} -check-controller__inner {
20+ .@{css-prefix} -check-controller-inner {
2121 display : inline-block ;
2222 position : relative ;
2323 border : 1px solid @border-color ;
6161 }
6262 }
6363
64- .@{css-prefix} -check-controller__original {
64+ .@{css-prefix} -check-controller-original {
6565 opacity : 0 ;
6666 outline : none ;
6767 position : absolute ;
Original file line number Diff line number Diff line change 1212 >
1313 <div class =" vjs-tree-list" :style =" virtual && { height: `${height}px` }" >
1414 <div
15- class =" vjs-tree-list__holder "
15+ class =" vjs-tree-list-holder "
1616 :style =" virtual && { height: `${flatData.length * itemHeight}px` }"
1717 >
1818 <div
19- class =" vjs-tree-list__holder -inner"
19+ class =" vjs-tree-list-holder -inner"
2020 :style =" virtual && { transform: `translateY(${translateY}px)` }"
2121 >
2222 <tree-node
Original file line number Diff line number Diff line change 88 & .is-virtual {
99 overflow : auto ;
1010
11- .@{css-prefix} -tree__node {
11+ .@{css-prefix} -tree-node {
1212 white-space : nowrap ;
1313 }
1414 }
Original file line number Diff line number Diff line change 11<template >
22 <div
33 :class =" {
4- 'vjs-tree__node ': true,
4+ 'vjs-tree-node ': true,
55 'has-selector': showSelectController,
66 'has-carets': showIcon,
77 'is-highlight': highlightSelectedNode && checked,
88 }"
99 @click =" handleNodeClick"
1010 >
11- <span v-if =" showLineNumber" class =" vjs-node__index " >
11+ <span v-if =" showLineNumber" class =" vjs-node-index " >
1212 {{ node.id + 1 }}
1313 </span >
1414
2626 v-for =" (item, index) in node.level"
2727 :key =" index"
2828 :class =" {
29- 'vjs-indent__unit ': true,
29+ 'vjs-indent-unit ': true,
3030 'has-line': showLine,
3131 }"
3232 />
@@ -148,7 +148,7 @@ export default {
148148 },
149149 computed: {
150150 valueClass () {
151- return ` vjs-value vjs-value__ ${ this .dataType } ` ;
151+ return ` vjs-value vjs-value- ${ this .dataType } ` ;
152152 },
153153
154154 dataType () {
You can’t perform that action at this time.
0 commit comments