tenjin-ui-kit 0.2.103 → 0.2.109
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.
- package/components/tree/index.js +15 -14
- package/components/tree/style.js +12 -12
- package/package.json +1 -1
package/components/tree/index.js
CHANGED
|
@@ -110,19 +110,20 @@ function Tree(props) {
|
|
|
110
110
|
}
|
|
111
111
|
}, /*#__PURE__*/React.createElement(_material.Typography, {
|
|
112
112
|
style: {
|
|
113
|
-
fontWeight: isFirstLevel ? 500 : "initial",
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
// fontWeight: isFirstLevel ? 500 : "initial",
|
|
114
|
+
fontWeight: nodes.type === "project" ? 600 : nodes.type === "module" ? 600 : 500,
|
|
115
|
+
// fontSize: "1rem",
|
|
116
|
+
fontSize: nodes.type === "project" ? "1rem" : nodes.type === "module" ? "1rem" : "0.92rem",
|
|
117
|
+
fontFamily: "sans-serif segoe ui",
|
|
118
|
+
padding: nodes.type === "sc" ? "inherit" : "6px"
|
|
116
119
|
}
|
|
117
|
-
}, nodes.type === "project" ? expandedNodeIds.includes(nodes.nodeId) ?
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
125
|
-
}) : nodes.type === "module" ? expandedNodeIds.includes(nodes.nodeId) ? /*#__PURE__*/React.createElement(_bi.BiMicrochip, {
|
|
120
|
+
}, nodes.type === "project" ? expandedNodeIds.includes(nodes.nodeId) ?
|
|
121
|
+
/*#__PURE__*/
|
|
122
|
+
// <FcOpenedFolder style={{ marginRight: "10px" }} />
|
|
123
|
+
React.createElement(React.Fragment, null) :
|
|
124
|
+
/*#__PURE__*/
|
|
125
|
+
// <FcFolder style={{ marginRight: "10px" }} />
|
|
126
|
+
React.createElement(React.Fragment, null) : nodes.type === "module" ? expandedNodeIds.includes(nodes.nodeId) ? /*#__PURE__*/React.createElement(_bi.BiMicrochip, {
|
|
126
127
|
style: {
|
|
127
128
|
marginRight: "10px",
|
|
128
129
|
color: "#03c988"
|
|
@@ -186,9 +187,9 @@ function Tree(props) {
|
|
|
186
187
|
root: classes.treeView
|
|
187
188
|
},
|
|
188
189
|
sx: {
|
|
189
|
-
height:
|
|
190
|
+
height: "calc(100vh - 118px)",
|
|
190
191
|
flexGrow: 1,
|
|
191
|
-
|
|
192
|
+
minWidth: 450,
|
|
192
193
|
overflowY: "auto",
|
|
193
194
|
overflowX: "hidden"
|
|
194
195
|
}
|
package/components/tree/style.js
CHANGED
|
@@ -8,22 +8,22 @@ var _styles = require("@mui/styles");
|
|
|
8
8
|
var _default = (0, _styles.makeStyles)(function (theme) {
|
|
9
9
|
return {
|
|
10
10
|
treeView: {
|
|
11
|
-
height:
|
|
11
|
+
height: "calc(100vh - 118px)",
|
|
12
12
|
flexGrow: 1,
|
|
13
|
-
overflowY:
|
|
14
|
-
overflowX:
|
|
15
|
-
|
|
16
|
-
width:
|
|
13
|
+
overflowY: "auto",
|
|
14
|
+
overflowX: "hidden",
|
|
15
|
+
"&::-webkit-scrollbar": {
|
|
16
|
+
width: "6px"
|
|
17
17
|
},
|
|
18
|
-
|
|
19
|
-
background:
|
|
18
|
+
"&::-webkit-scrollbar-track": {
|
|
19
|
+
background: "#f1f1f1"
|
|
20
20
|
},
|
|
21
|
-
|
|
22
|
-
backgroundColor:
|
|
23
|
-
borderRadius:
|
|
21
|
+
"&::-webkit-scrollbar-thumb": {
|
|
22
|
+
backgroundColor: "#e4e4e4",
|
|
23
|
+
borderRadius: "3px",
|
|
24
24
|
opacity: 0.5,
|
|
25
|
-
|
|
26
|
-
background:
|
|
25
|
+
"&:hover": {
|
|
26
|
+
background: "#555"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}
|