File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 1919 "url" : " https://github.com/Johnathan/vue-context-menu-popup/issues" ,
2020 "email" : " johnathan.barrett@gmail.com"
2121 },
22- "version" : " 1.0.1 " ,
22+ "version" : " 1.0.2 " ,
2323 "private" : false ,
2424 "scripts" : {
2525 "serve" : " vue-cli-service serve ./example/main.js --open" ,
Original file line number Diff line number Diff line change @@ -120,6 +120,16 @@ export default {
120120 padding : .5em 1em ;
121121 cursor : pointer ;
122122
123+ .label {
124+ display : flex ;
125+ justify-content : space-between ;
126+ white-space : nowrap ;
127+
128+ .item-label {
129+ margin-right : 1em ;
130+ }
131+ }
132+
123133 & .item-disabled {
124134 cursor : not-allowed ;
125135 opacity : 0.3 ;
@@ -136,7 +146,7 @@ export default {
136146 left : calc (100% + 2px );
137147 top : 0 ;
138148 display : block ;
139- width : 100% ;
149+ min- width : 100% ;
140150 }
141151 }
142152 }
Original file line number Diff line number Diff line change 11<template >
22 <li @click =" handleClick(item, $event)" :class =" itemClass(item)" >
3- {{item.label}}
3+ <div class =" label" >
4+ <span class =" item-label" >{{item.label}}</span >
5+ <span class =" children-indicator" v-if =" item.children" >▶</span >
6+ </div >
47 <ul class =" context-menu" v-if =" item.children" >
58 <context-menu-item
69 v-for =" (childItem, index) in item.children"
You can’t perform that action at this time.
0 commit comments