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 CHANGED
@@ -3134,7 +3134,8 @@ var SiteMenu = function SiteMenu(_ref5) {
3134
3134
  var children = _ref5.children,
3135
3135
  min = _ref5.min;
3136
3136
  var context = React.useContext(SiteContext);
3137
- var sideNav = context.sideNav,
3137
+ var page = context.page,
3138
+ sideNav = context.sideNav,
3138
3139
  setSideNav = context.setSideNav,
3139
3140
  showNav = context.showNav;
3140
3141
  React.useEffect(function () {
@@ -3177,8 +3178,9 @@ var SiteMenu = function SiteMenu(_ref5) {
3177
3178
  _ref6$icon = _ref6.icon,
3178
3179
  icon = _ref6$icon === void 0 ? 'info' : _ref6$icon,
3179
3180
  title = _ref6.title;
3181
+ var styleItem = id === page ? 'selected' : '';
3180
3182
  return /*#__PURE__*/React__default["default"].createElement("div", {
3181
- className: "site-menu-item",
3183
+ className: "site-menu-item " + styleItem,
3182
3184
  key: id,
3183
3185
  onClick: function onClick() {
3184
3186
  return _goto(id);
@@ -3187,7 +3189,6 @@ var SiteMenu = function SiteMenu(_ref5) {
3187
3189
  key: id,
3188
3190
  icon: icon,
3189
3191
  clickable: true,
3190
- checked: id === context.page,
3191
3192
  action: function action() {
3192
3193
  return _goto(id);
3193
3194
  }
@@ -5518,7 +5519,6 @@ var TableEditor = function TableEditor(props) {
5518
5519
  var option = options.find(function (option) {
5519
5520
  return option.value === groupName;
5520
5521
  });
5521
- console.log(groupName, options, option);
5522
5522
  return option ? option.label : groupName;
5523
5523
  } else {
5524
5524
  return groupName;