File tree 2 files changed +60
-0
lines changed
2 files changed +60
-0
lines changed Original file line number Diff line number Diff line change
1
+ import './style.scss' ;
2
+ import * as React from 'react' ;
3
+ import { classNames , prefixClaName } from "mo/common/className" ;
4
+ import ActionBar , { IActionBar , IActionBarItem } from 'mo/components/actionbar' ;
5
+
6
+ export interface IMenuItem extends IActionBarItem { }
7
+ export interface IMenu extends IActionBar { }
8
+
9
+ export function Menu ( props : IMenu ) {
10
+ const { className, ...others } = props ;
11
+ const claNames = classNames ( prefixClaName ( 'menu' ) , className ) ;
12
+
13
+ return (
14
+ < menu className = { claNames } >
15
+ < ActionBar { ...others } />
16
+ </ menu >
17
+ )
18
+ }
Original file line number Diff line number Diff line change
1
+ @import ' mo/style/const' ;
2
+ $menu : ' menu' ;
3
+
4
+ #{prefix ($menu )} {
5
+ margin : 0 ;
6
+ min-width : 130px ;
7
+ padding : 0 ;
8
+
9
+ #{prefix (' action-bar' )} {
10
+ padding : 0.5em 0 ;
11
+ }
12
+
13
+ .action-bar-container {
14
+ display : block ;
15
+ }
16
+
17
+ .action-item {
18
+ border : thin solid transparent ;
19
+ display : flex ;
20
+ overflow : visible ;
21
+ position : static ;
22
+ text-indent : 1em ;
23
+ transform : none ;
24
+ }
25
+
26
+ .action-label {
27
+ font-size : 13px ;
28
+ height : 1.8em ;
29
+ }
30
+
31
+ .action-label.codicon {
32
+ line-height : 1.8em ;
33
+ }
34
+
35
+ .disabled {
36
+ cursor : default ;
37
+ opacity : 0.4 ;
38
+ pointer-events : none ;
39
+ }
40
+ }
41
+
42
+
You can’t perform that action at this time.
0 commit comments