ywana-core8 0.0.289 → 0.0.290
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/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +10 -0
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +4 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +0 -1
- package/src/site/site.css +10 -0
- package/src/site/site.js +4 -4
- package/src/site/site.test.js +15 -7
package/dist/index.umd.js
CHANGED
@@ -3129,7 +3129,8 @@
|
|
3129
3129
|
var children = _ref5.children,
|
3130
3130
|
min = _ref5.min;
|
3131
3131
|
var context = React.useContext(SiteContext);
|
3132
|
-
var
|
3132
|
+
var page = context.page,
|
3133
|
+
sideNav = context.sideNav,
|
3133
3134
|
setSideNav = context.setSideNav,
|
3134
3135
|
showNav = context.showNav;
|
3135
3136
|
React.useEffect(function () {
|
@@ -3172,8 +3173,9 @@
|
|
3172
3173
|
_ref6$icon = _ref6.icon,
|
3173
3174
|
icon = _ref6$icon === void 0 ? 'info' : _ref6$icon,
|
3174
3175
|
title = _ref6.title;
|
3176
|
+
var styleItem = id === page ? 'selected' : '';
|
3175
3177
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
3176
|
-
className: "site-menu-item",
|
3178
|
+
className: "site-menu-item " + styleItem,
|
3177
3179
|
key: id,
|
3178
3180
|
onClick: function onClick() {
|
3179
3181
|
return _goto(id);
|
@@ -3182,7 +3184,6 @@
|
|
3182
3184
|
key: id,
|
3183
3185
|
icon: icon,
|
3184
3186
|
clickable: true,
|
3185
|
-
checked: id === context.page,
|
3186
3187
|
action: function action() {
|
3187
3188
|
return _goto(id);
|
3188
3189
|
}
|
@@ -5513,7 +5514,6 @@
|
|
5513
5514
|
var option = options.find(function (option) {
|
5514
5515
|
return option.value === groupName;
|
5515
5516
|
});
|
5516
|
-
console.log(groupName, options, option);
|
5517
5517
|
return option ? option.label : groupName;
|
5518
5518
|
} else {
|
5519
5519
|
return groupName;
|