File tree Expand file tree Collapse file tree 2 files changed +9
-14
lines changed
react/application/src/components/user-panel
vue/application/src/components Expand file tree Collapse file tree 2 files changed +9
-14
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import ContextMenu from 'devextreme-react/context-menu' ;
2+ import ContextMenu , { Position } from 'devextreme-react/context-menu' ;
33import List from 'devextreme-react/list' ;
44import './user-panel.scss' ;
55
@@ -21,9 +21,10 @@ export default class UserPanel extends React.Component {
2121 target = { '.user-button' }
2222 showEvent = { 'dxclick' }
2323 width = { 170 }
24- position = { { my : 'top center' , at : 'bottom center' } }
2524 cssClass = { 'user-menu' }
26- />
25+ >
26+ < Position my = { 'top center' } at = { 'bottom center' } />
27+ </ ContextMenu >
2728 ) }
2829 { menuMode === 'list' && (
2930 < List className = { 'dx-toolbar-menu-action' } items = { menuItems } />
Original file line number Diff line number Diff line change 1212 target =" .user-button"
1313 :items =" menuItems"
1414 :width =" 170"
15- :position =" menuPositionConfig"
1615 show-event =" dxclick"
1716 css-class =" user-menu"
18- />
17+ >
18+ <dx-position my =" top center" at =" bottom center" />
19+ </dx-context-menu >
1920
2021 <dx-list
2122 v-if =" menuMode === 'list'"
2627</template >
2728
2829<script >
29- import DxContextMenu from " devextreme-vue/context-menu" ;
30+ import DxContextMenu , { DxPosition } from " devextreme-vue/context-menu" ;
3031import DxList from " devextreme-vue/list" ;
3132
3233export default {
3334 props: {
3435 menuMode: String ,
3536 menuItems: Array
3637 },
37- data () {
38- return {
39- menuPositionConfig: {
40- my: " top center" ,
41- at: " bottom center"
42- }
43- };
44- },
4538 components: {
4639 DxContextMenu,
40+ DxPosition,
4741 DxList
4842 }
4943};
You can’t perform that action at this time.
0 commit comments