diff --git a/ShadowEditor.Web/src/ui/index.js b/ShadowEditor.Web/src/ui/index.js index 29fc5880..98c0d3fd 100644 --- a/ShadowEditor.Web/src/ui/index.js +++ b/ShadowEditor.Web/src/ui/index.js @@ -52,6 +52,9 @@ export { default as MenuItemSeparator } from './menu/MenuItemSeparator.jsx'; // panel export { default as Panel } from './panel/Panel.jsx'; +// progress +export { default as LoadMask } from './progress/LoadMask.jsx'; + // property export { default as PropertyGrid } from './property/PropertyGrid.jsx'; export { default as PropertyGroup } from './property/PropertyGroup.jsx'; diff --git a/ShadowEditor.Web/src/ui/progress/LoadMask.jsx b/ShadowEditor.Web/src/ui/progress/LoadMask.jsx new file mode 100644 index 00000000..02337bce --- /dev/null +++ b/ShadowEditor.Web/src/ui/progress/LoadMask.jsx @@ -0,0 +1,39 @@ +import './css/LoadMask.css'; +import classNames from 'classnames/bind'; +import PropTypes from 'prop-types'; + +/** + * 加载动画 + * @author tengge / https://github.com/tengge1 + */ +class LoadMask extends React.Component { + constructor(props) { + super(props); + } + + render() { + const { className, style, show, text } = this.props; + + return