fix: missing menuItemGroupCss

This commit is contained in:
chenos 2022-10-16 15:19:37 +08:00
parent 4d6363b47a
commit 347c0831f8
2 changed files with 3 additions and 7 deletions

View File

@ -5,6 +5,7 @@ import classNames from 'classnames';
import React, { createContext, useContext, useState } from 'react';
import { Icon } from '../icon';
import { useCompile, useDesignable } from '../schema-component/hooks';
import './style.less';
import {
SchemaInitializerButtonProps,
SchemaInitializerItemComponent,
@ -18,12 +19,7 @@ export const SchemaInitializerItemContext = createContext(null);
export const SchemaInitializer = () => null;
const menuItemGroupCss = css`
.menuItemGroup {
max-height: 60vh;
overflow: auto;
}
`;
const menuItemGroupCss = 'nb-menu-item-group';
SchemaInitializer.Button = observer((props: SchemaInitializerButtonProps) => {
const {

View File

@ -1,4 +1,4 @@
.menuItemGroup {
.nb-menu-item-group {
max-height: 60vh;
overflow: auto;
}