dtable-ui-component 4.3.3-alpha1 → 4.3.3-alpha2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,10 +5,22 @@
|
|
|
5
5
|
cursor: pointer;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
+
.role-status-permission-editor .dropdown-toggle-button .dtable-icon-drop-down.hide{
|
|
9
|
+
display: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
8
12
|
.role-status-permission-editor .dropdown-toggle-button .dtable-icon-drop-down:hover {
|
|
9
13
|
color: #555;
|
|
10
14
|
}
|
|
11
15
|
|
|
16
|
+
.role-status-permission-editor .dropdown-toggle-button .dropdown-icon-container {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
flex: 1 0 auto;
|
|
20
|
+
width: 20px;
|
|
21
|
+
height: 20px;
|
|
22
|
+
}
|
|
23
|
+
|
|
12
24
|
.role-status-permission-editor .dropdown-menu {
|
|
13
25
|
max-width: 200px;
|
|
14
26
|
}
|
|
@@ -22,6 +34,11 @@
|
|
|
22
34
|
min-height: 28px;
|
|
23
35
|
}
|
|
24
36
|
|
|
37
|
+
.role-status-permission-editor .dropdown-menu .dropdown-item .label-container span {
|
|
38
|
+
word-wrap: normal;
|
|
39
|
+
white-space: pre-wrap;
|
|
40
|
+
}
|
|
41
|
+
|
|
25
42
|
.role-status-permission-editor .dropdown-menu .dropdown-item:hover {
|
|
26
43
|
color: #212529;
|
|
27
44
|
background: #f5f5f5;
|
|
@@ -34,14 +51,6 @@
|
|
|
34
51
|
background-color: unset;
|
|
35
52
|
}
|
|
36
53
|
|
|
37
|
-
.role-status-permission-editor .dropdown-toggle-button div,
|
|
38
|
-
.role-status-permission-editor .dropdown-menu .dropdown-item div {
|
|
39
|
-
white-space: pre-wrap;
|
|
40
|
-
word-wrap: break-word;
|
|
41
|
-
word-break: break-all;
|
|
42
|
-
user-select: none;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
54
|
.role-status-permission-editor .dropdown-menu .dropdown-item .dtable-icon-check-mark {
|
|
46
55
|
font-size: 12px;
|
|
47
56
|
color: #798d99;
|
|
@@ -4,7 +4,8 @@ import { Dropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap
|
|
|
4
4
|
import classnames from 'classnames';
|
|
5
5
|
import './index.css';
|
|
6
6
|
var RoleStatusPermissionEditor = function RoleStatusPermissionEditor(_ref) {
|
|
7
|
-
var
|
|
7
|
+
var isShowDropdownIcon = _ref.isShowDropdownIcon,
|
|
8
|
+
currentOption = _ref.currentOption,
|
|
8
9
|
menuOptions = _ref.menuOptions,
|
|
9
10
|
onChangeOption = _ref.onChangeOption;
|
|
10
11
|
var _useState = useState(false),
|
|
@@ -25,9 +26,13 @@ var RoleStatusPermissionEditor = function RoleStatusPermissionEditor(_ref) {
|
|
|
25
26
|
}, /*#__PURE__*/React.createElement(DropdownToggle, {
|
|
26
27
|
className: "dropdown-toggle-button d-flex align-items-center",
|
|
27
28
|
tag: "div"
|
|
28
|
-
}, currentOption.label, /*#__PURE__*/React.createElement("
|
|
29
|
-
className: "
|
|
30
|
-
}
|
|
29
|
+
}, currentOption.label, /*#__PURE__*/React.createElement("div", {
|
|
30
|
+
className: "dropdown-icon-container ml-2"
|
|
31
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
32
|
+
className: classnames('dtable-font dtable-icon-drop-down', {
|
|
33
|
+
'hide': !isShowDropdownIcon
|
|
34
|
+
})
|
|
35
|
+
}))), /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
31
36
|
positionFixed: true,
|
|
32
37
|
modifiers: {
|
|
33
38
|
preventOverflow: {
|
|
@@ -47,7 +52,7 @@ var RoleStatusPermissionEditor = function RoleStatusPermissionEditor(_ref) {
|
|
|
47
52
|
return handleClickMenuOption(option);
|
|
48
53
|
}
|
|
49
54
|
}, label, value === currentOption.value && /*#__PURE__*/React.createElement("i", {
|
|
50
|
-
className: "dtable-font dtable-icon-check-mark"
|
|
55
|
+
className: "dtable-font dtable-icon-check-mark ml-2"
|
|
51
56
|
})));
|
|
52
57
|
})));
|
|
53
58
|
};
|