├── src ├── assets │ ├── fonts │ │ ├── readme.md │ │ └── icomoon │ │ │ ├── icomoon.eot │ │ │ ├── icomoon.ttf │ │ │ └── icomoon.woff │ ├── images │ │ ├── bg.jpg │ │ ├── logo.png │ │ ├── logo1.png │ │ ├── avatar.jpg │ │ ├── logo-r.png │ │ ├── pattern.png │ │ ├── topbar-bg.jpg │ │ └── topbar-bg2.jpg │ └── styles │ │ ├── transition.less │ │ └── animate.css ├── components │ ├── Mask │ │ ├── util.js │ │ └── style │ │ │ └── index.less │ ├── Icon │ │ ├── style │ │ │ └── index.less │ │ ├── index.js │ │ └── Icon.js │ ├── Modal │ │ ├── ModalSystem.js │ │ ├── index.js │ │ └── style │ │ │ └── index.less │ ├── Video │ │ ├── style │ │ │ └── index.less │ │ ├── index.js │ │ └── Video.js │ ├── Charts │ │ ├── G2 │ │ │ ├── style │ │ │ │ └── index.less │ │ │ ├── index.js │ │ │ └── G2.js │ │ └── ECharts │ │ │ └── index.js │ ├── Clock │ │ ├── index.js │ │ ├── style │ │ │ └── index.less │ │ └── Clock.js │ ├── Drag │ │ ├── index.js │ │ ├── test.js │ │ └── Drag.js │ ├── Form │ │ ├── index.js │ │ └── model │ │ │ ├── custom.js │ │ │ ├── number.js │ │ │ ├── treeselect.js │ │ │ ├── input.js │ │ │ ├── radio.js │ │ │ ├── checkbox.js │ │ │ ├── select.js │ │ │ ├── cascade.js │ │ │ └── editor.js │ ├── Image │ │ ├── index.js │ │ ├── util.js │ │ └── Image.js │ ├── Panel │ │ ├── index.js │ │ └── style │ │ │ └── index.less │ ├── Print │ │ └── index.js │ ├── Editor │ │ ├── index.js │ │ ├── style │ │ │ └── index.less │ │ ├── Editor.js │ │ └── config.js │ ├── NavBar │ │ ├── index.js │ │ ├── SearchBox.js │ │ └── style │ │ │ └── searchbox.less │ ├── TopBar │ │ └── index.js │ ├── Upload │ │ ├── index.js │ │ └── Upload.js │ ├── Toolbar │ │ └── index.js │ ├── LazyLoad │ │ └── index.js │ ├── BannerMng │ │ ├── index.js │ │ └── Form.js │ ├── SearchBar │ │ └── index.js │ ├── SideLayout │ │ ├── index.js │ │ ├── style │ │ │ └── index.less │ │ └── SideLayout.js │ ├── WaterFall │ │ ├── index.js │ │ └── style │ │ │ └── index.less │ ├── SkinToolbox │ │ ├── index.js │ │ ├── SideBarBox.js │ │ ├── LayoutBox.js │ │ └── NavBarBox.js │ ├── TransferTree │ │ ├── index.js │ │ └── Search.js │ ├── Pages │ │ ├── style │ │ │ ├── images │ │ │ │ ├── balk.png │ │ │ │ ├── saw.png │ │ │ │ ├── error.gif │ │ │ │ └── workers.png │ │ │ ├── 500.less │ │ │ ├── 403.less │ │ │ ├── index.less │ │ │ ├── screenLock.less │ │ │ └── result.less │ │ ├── index.js │ │ ├── 500.js │ │ ├── 403.js │ │ └── Result.js │ ├── Button │ │ ├── style │ │ │ ├── index.less │ │ │ └── ripple.less │ │ ├── index.js │ │ ├── Button.js │ │ └── Ripple.js │ ├── Notification │ │ ├── index.js │ │ ├── Notification.js │ │ ├── antdNotice.less │ │ ├── antdNotice.js │ │ └── normal.less │ ├── DataTable │ │ └── index.js │ ├── SideBar │ │ ├── index.js │ │ └── RightSideBar.js │ ├── Loading │ │ ├── PageLoading.js │ │ └── PageLoading.less │ ├── BaseComponent │ │ ├── BaseEventComponent.js │ │ └── index.js │ ├── index.js │ ├── PatternLock │ │ ├── index.js │ │ └── style │ │ │ └── index.less │ ├── Portal │ │ └── index.js │ └── CSSAnimate │ │ └── index.js ├── routes │ ├── Blank │ │ ├── service │ │ │ └── index.js │ │ ├── components │ │ │ ├── index.less │ │ │ ├── index.module.less │ │ │ └── index.js │ │ ├── model │ │ │ └── index.js │ │ └── index.js │ ├── Dashboard │ │ ├── service │ │ │ └── index.js │ │ ├── index.js │ │ ├── model │ │ │ └── index.js │ │ └── components │ │ │ └── index.less │ ├── Business │ │ └── CRUD │ │ │ ├── service │ │ │ └── index.js │ │ │ ├── components │ │ │ └── index.less │ │ │ ├── routers │ │ │ └── Detail │ │ │ │ ├── model │ │ │ │ └── index.js │ │ │ │ ├── index.js │ │ │ │ └── components │ │ │ │ └── index.js │ │ │ └── index.js │ ├── Widgets │ │ ├── Toolbar │ │ │ ├── service │ │ │ │ └── index.js │ │ │ ├── model │ │ │ │ └── index.js │ │ │ ├── components │ │ │ │ ├── index.less │ │ │ │ └── columns.js │ │ │ └── index.js │ │ ├── DataTable │ │ │ ├── service │ │ │ │ └── index.js │ │ │ ├── components │ │ │ │ └── index.less │ │ │ ├── index.js │ │ │ └── model │ │ │ │ └── index.js │ │ ├── TransferTree │ │ │ ├── service │ │ │ │ └── index.js │ │ │ ├── index.js │ │ │ └── model │ │ │ │ └── index.js │ │ ├── LevelRoute │ │ │ ├── routes │ │ │ │ └── SubRoute │ │ │ │ │ ├── components │ │ │ │ │ ├── index.less │ │ │ │ │ └── index.js │ │ │ │ │ ├── model │ │ │ │ │ └── index.js │ │ │ │ │ └── index.js │ │ │ ├── model │ │ │ │ └── index.js │ │ │ ├── index.js │ │ │ └── components │ │ │ │ ├── index.less │ │ │ │ └── index.js │ │ ├── Gallery │ │ │ ├── components │ │ │ │ └── index.less │ │ │ └── index.js │ │ ├── ScreenLock │ │ │ └── index.js │ │ ├── Print │ │ │ ├── index.js │ │ │ └── components │ │ │ │ ├── Dynamic.js │ │ │ │ └── report.less │ │ ├── Result │ │ │ ├── index.js │ │ │ └── components │ │ │ │ └── index.js │ │ ├── Charts │ │ │ ├── G2 │ │ │ │ ├── index.js │ │ │ │ └── components │ │ │ │ │ ├── Bar.js │ │ │ │ │ ├── Line.js │ │ │ │ │ ├── Pie.js │ │ │ │ │ ├── Scatter.js │ │ │ │ │ ├── Radar.js │ │ │ │ │ └── Pie2.js │ │ │ ├── EC │ │ │ │ ├── index.js │ │ │ │ └── components │ │ │ │ │ ├── Line.js │ │ │ │ │ ├── Radar.js │ │ │ │ │ ├── Bar.js │ │ │ │ │ └── Pie.js │ │ │ └── components │ │ │ │ ├── index.less │ │ │ │ └── SideLayout.js │ │ ├── Column │ │ │ ├── index.js │ │ │ └── components │ │ │ │ └── index.js │ │ ├── Banner │ │ │ ├── index.js │ │ │ └── components │ │ │ │ └── index.js │ │ ├── SearchBar │ │ │ └── index.js │ │ ├── BaseComponent │ │ │ ├── index.js │ │ │ └── components │ │ │ │ └── index.js │ │ ├── Form │ │ │ ├── index.js │ │ │ └── model │ │ │ │ └── index.js │ │ └── Coming │ │ │ └── index.js │ ├── UI │ │ ├── Button │ │ │ ├── components │ │ │ │ ├── index.less │ │ │ │ └── index.js │ │ │ └── index.js │ │ ├── Mask │ │ │ ├── index.js │ │ │ └── components │ │ │ │ └── index.js │ │ ├── Editor │ │ │ └── index.js │ │ ├── Icon │ │ │ └── index.js │ │ ├── Modal │ │ │ ├── index.js │ │ │ └── components │ │ │ │ ├── columns.js │ │ │ │ └── index.js │ │ ├── Image │ │ │ ├── index.js │ │ │ └── components │ │ │ │ └── index.js │ │ ├── Alerts │ │ │ ├── index.js │ │ │ └── components │ │ │ │ └── index.js │ │ └── CSSAnimate │ │ │ ├── index.js │ │ │ └── components │ │ │ └── index.less │ ├── Login │ │ ├── service │ │ │ └── index.js │ │ ├── index.js │ │ ├── components │ │ │ └── index.less │ │ └── model │ │ │ └── index.js │ ├── Register │ │ ├── service │ │ │ └── index.js │ │ ├── components │ │ │ ├── index.less │ │ │ └── Success.js │ │ ├── index.js │ │ └── model │ │ │ └── index.js │ └── Pages │ │ ├── 404.js │ │ ├── 403.js │ │ └── 500.js ├── decorator │ ├── index.js │ ├── breadcrumb.js │ └── coming.js ├── layouts │ ├── styles │ │ ├── user.less │ │ ├── card.less │ │ ├── tabs.less │ │ └── basic.less │ └── UserLayout.js ├── __mocks__ │ ├── index.js │ ├── form.js │ ├── charts.js │ ├── datatable.js │ ├── crud.js │ └── demo.js ├── setupProxy.js ├── utils │ ├── pageHelper │ │ └── index.js │ └── enquireScreen.js ├── models │ └── global.js └── index.js ├── templates └── routes │ ├── CRUD │ ├── service │ │ └── index.js │ ├── components │ │ ├── index.less │ │ └── columns.js │ ├── prompts.json │ └── index.js │ └── Blank │ ├── service │ └── index.js │ ├── components │ ├── index.less │ └── index.js │ ├── model │ └── index.js │ └── index.js ├── docs ├── components.md ├── index.md ├── pageHelper.md ├── build.md ├── mock.md └── columns.md ├── public ├── favicon.ico ├── manifest.json └── index.html ├── .eslintrc ├── .vscode ├── settings.json └── launch.json ├── .env ├── jsconfig.json ├── mock-server.js ├── .gitignore ├── LICENSE ├── config-overrides.js └── package.json /src/assets/fonts/readme.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/components/Mask/util.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/routes/Blank/service/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/components/Icon/style/index.less: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/components/Modal/ModalSystem.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/components/Video/style/index.less: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/routes/Blank/components/index.less: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/routes/Dashboard/service/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /templates/routes/CRUD/service/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/components/Charts/G2/style/index.less: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/routes/Business/CRUD/service/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/routes/Widgets/Toolbar/service/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /templates/routes/Blank/service/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/routes/Widgets/DataTable/service/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/routes/Widgets/TransferTree/service/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/components.md: -------------------------------------------------------------------------------- 1 | # Components 自带组件 2 | 3 | to be continued -------------------------------------------------------------------------------- /src/routes/Business/CRUD/components/index.less: -------------------------------------------------------------------------------- 1 | .crud-page { 2 | } 3 | -------------------------------------------------------------------------------- /src/components/Clock/index.js: -------------------------------------------------------------------------------- 1 | import Clock from './Clock'; 2 | 3 | export default Clock; -------------------------------------------------------------------------------- /src/components/Drag/index.js: -------------------------------------------------------------------------------- 1 | import Drag from './Drag'; 2 | 3 | export default Drag; -------------------------------------------------------------------------------- /src/components/Form/index.js: -------------------------------------------------------------------------------- 1 | import Form from './Form'; 2 | 3 | export default Form; -------------------------------------------------------------------------------- /src/components/Icon/index.js: -------------------------------------------------------------------------------- 1 | import Icon from './Icon'; 2 | 3 | export default Icon; -------------------------------------------------------------------------------- /src/components/Image/index.js: -------------------------------------------------------------------------------- 1 | import Image from './Image'; 2 | 3 | export default Image; -------------------------------------------------------------------------------- /src/components/Panel/index.js: -------------------------------------------------------------------------------- 1 | import Panel from './Panel'; 2 | 3 | export default Panel; -------------------------------------------------------------------------------- /src/components/Print/index.js: -------------------------------------------------------------------------------- 1 | import Print from './Print'; 2 | 3 | export default Print; -------------------------------------------------------------------------------- /src/components/Video/index.js: -------------------------------------------------------------------------------- 1 | import Video from './Video'; 2 | 3 | export default Video; -------------------------------------------------------------------------------- /src/decorator/index.js: -------------------------------------------------------------------------------- 1 | import coming from './coming'; 2 | 3 | export { coming }; 4 | -------------------------------------------------------------------------------- /templates/routes/Blank/components/index.less: -------------------------------------------------------------------------------- 1 | // 页面样式 2 | .<%=name %>-page { 3 | } 4 | -------------------------------------------------------------------------------- /templates/routes/CRUD/components/index.less: -------------------------------------------------------------------------------- 1 | // 页面样式 2 | .<%=name %>-page { 3 | } 4 | -------------------------------------------------------------------------------- /src/components/Editor/index.js: -------------------------------------------------------------------------------- 1 | import Editor from './Editor'; 2 | 3 | export default Editor; -------------------------------------------------------------------------------- /src/components/NavBar/index.js: -------------------------------------------------------------------------------- 1 | import NavBar from './NavBar'; 2 | 3 | export default NavBar; -------------------------------------------------------------------------------- /src/components/TopBar/index.js: -------------------------------------------------------------------------------- 1 | import TopBar from './TopBar'; 2 | 3 | export default TopBar; -------------------------------------------------------------------------------- /src/components/Upload/index.js: -------------------------------------------------------------------------------- 1 | import Upload from './Upload'; 2 | 3 | export default Upload; -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LANIF-UI/dva-boot-admin/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /src/components/Toolbar/index.js: -------------------------------------------------------------------------------- 1 | import Toolbar from './Toolbar'; 2 | 3 | export default Toolbar; -------------------------------------------------------------------------------- /src/components/LazyLoad/index.js: -------------------------------------------------------------------------------- 1 | import LazyLoad from './LazyLoad'; 2 | 3 | export default LazyLoad; -------------------------------------------------------------------------------- /src/assets/images/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LANIF-UI/dva-boot-admin/HEAD/src/assets/images/bg.jpg -------------------------------------------------------------------------------- /src/components/BannerMng/index.js: -------------------------------------------------------------------------------- 1 | import BannerMng from './BannerMng'; 2 | 3 | export default BannerMng; -------------------------------------------------------------------------------- /src/components/SearchBar/index.js: -------------------------------------------------------------------------------- 1 | import SearchBar from './SearchBar'; 2 | 3 | export default SearchBar; -------------------------------------------------------------------------------- /src/components/SideLayout/index.js: -------------------------------------------------------------------------------- 1 | import SideLayout from './SideLayout'; 2 | 3 | export default SideLayout; -------------------------------------------------------------------------------- /src/components/WaterFall/index.js: -------------------------------------------------------------------------------- 1 | import WaterFall from './WaterFall'; 2 | 3 | export default WaterFall; -------------------------------------------------------------------------------- /src/routes/Blank/components/index.module.less: -------------------------------------------------------------------------------- 1 | /* less-modules */ 2 | .className { 3 | color: red; 4 | } -------------------------------------------------------------------------------- /src/assets/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LANIF-UI/dva-boot-admin/HEAD/src/assets/images/logo.png -------------------------------------------------------------------------------- /src/assets/images/logo1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LANIF-UI/dva-boot-admin/HEAD/src/assets/images/logo1.png -------------------------------------------------------------------------------- /src/components/SkinToolbox/index.js: -------------------------------------------------------------------------------- 1 | import SkinToolbox from './SkinToolbox'; 2 | 3 | export default SkinToolbox; -------------------------------------------------------------------------------- /src/assets/images/avatar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LANIF-UI/dva-boot-admin/HEAD/src/assets/images/avatar.jpg -------------------------------------------------------------------------------- /src/assets/images/logo-r.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LANIF-UI/dva-boot-admin/HEAD/src/assets/images/logo-r.png -------------------------------------------------------------------------------- /src/assets/images/pattern.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LANIF-UI/dva-boot-admin/HEAD/src/assets/images/pattern.png -------------------------------------------------------------------------------- /src/components/TransferTree/index.js: -------------------------------------------------------------------------------- 1 | import TransferTree from './TransferTree'; 2 | 3 | export default TransferTree; -------------------------------------------------------------------------------- /src/assets/images/topbar-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LANIF-UI/dva-boot-admin/HEAD/src/assets/images/topbar-bg.jpg -------------------------------------------------------------------------------- /src/assets/images/topbar-bg2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LANIF-UI/dva-boot-admin/HEAD/src/assets/images/topbar-bg2.jpg -------------------------------------------------------------------------------- /src/routes/Widgets/LevelRoute/routes/SubRoute/components/index.less: -------------------------------------------------------------------------------- 1 | .level2-route-page { 2 | background: #fffde7; 3 | } -------------------------------------------------------------------------------- /src/routes/UI/Button/components/index.less: -------------------------------------------------------------------------------- 1 | .button-page { 2 | button, 3 | .ripple-btn { 4 | margin: 8px; 5 | } 6 | } -------------------------------------------------------------------------------- /src/assets/fonts/icomoon/icomoon.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LANIF-UI/dva-boot-admin/HEAD/src/assets/fonts/icomoon/icomoon.eot -------------------------------------------------------------------------------- /src/assets/fonts/icomoon/icomoon.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LANIF-UI/dva-boot-admin/HEAD/src/assets/fonts/icomoon/icomoon.ttf -------------------------------------------------------------------------------- /src/assets/fonts/icomoon/icomoon.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LANIF-UI/dva-boot-admin/HEAD/src/assets/fonts/icomoon/icomoon.woff -------------------------------------------------------------------------------- /src/routes/Widgets/Gallery/components/index.less: -------------------------------------------------------------------------------- 1 | .gallery-page { 2 | .antui-waterfall { 3 | margin: 16px auto 0; 4 | } 5 | } -------------------------------------------------------------------------------- /src/components/Pages/style/images/balk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LANIF-UI/dva-boot-admin/HEAD/src/components/Pages/style/images/balk.png -------------------------------------------------------------------------------- /src/components/Pages/style/images/saw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LANIF-UI/dva-boot-admin/HEAD/src/components/Pages/style/images/saw.png -------------------------------------------------------------------------------- /src/components/Pages/style/images/error.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LANIF-UI/dva-boot-admin/HEAD/src/components/Pages/style/images/error.gif -------------------------------------------------------------------------------- /src/components/Button/style/index.less: -------------------------------------------------------------------------------- 1 | .antui-button-tooltip { 2 | padding-bottom: 2px; 3 | .ant-tooltip-arrow { 4 | display: none; 5 | } 6 | } -------------------------------------------------------------------------------- /src/components/Pages/style/images/workers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LANIF-UI/dva-boot-admin/HEAD/src/components/Pages/style/images/workers.png -------------------------------------------------------------------------------- /src/components/WaterFall/style/index.less: -------------------------------------------------------------------------------- 1 | .antui-waterfall { 2 | .antui-waterfall-item { 3 | &:hover { 4 | z-index: 1; 5 | } 6 | } 7 | } -------------------------------------------------------------------------------- /src/routes/Blank/model/index.js: -------------------------------------------------------------------------------- 1 | import modelEnhance from '@/utils/modelEnhance'; 2 | 3 | export default modelEnhance({ 4 | namespace: 'blank', 5 | }); -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "react-app", 3 | "parserOptions": { 4 | "ecmaFeatures": { 5 | "legacyDecorators": true 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/components/Button/index.js: -------------------------------------------------------------------------------- 1 | import Button from './Button'; 2 | import Ripple from './Ripple'; 3 | 4 | Button.Ripple = Ripple; 5 | export default Button; -------------------------------------------------------------------------------- /src/routes/Login/service/index.js: -------------------------------------------------------------------------------- 1 | import $$ from 'cmn-utils'; 2 | 3 | export async function login(payload) { 4 | return $$.post('/user/login', payload); 5 | } -------------------------------------------------------------------------------- /src/components/Modal/index.js: -------------------------------------------------------------------------------- 1 | import ModalForm from './ModalForm'; 2 | import ModalTable from './ModalTable'; 3 | 4 | export { 5 | ModalForm, 6 | ModalTable 7 | } -------------------------------------------------------------------------------- /src/components/Notification/index.js: -------------------------------------------------------------------------------- 1 | import normal from './normal'; 2 | import antdNotice from './antdNotice'; 3 | 4 | export { 5 | normal, antdNotice 6 | }; 7 | -------------------------------------------------------------------------------- /src/routes/Widgets/LevelRoute/model/index.js: -------------------------------------------------------------------------------- 1 | import modelEnhance from '@/utils/modelEnhance'; 2 | 3 | export default modelEnhance({ 4 | namespace: 'level1', 5 | }); -------------------------------------------------------------------------------- /src/routes/Widgets/Toolbar/model/index.js: -------------------------------------------------------------------------------- 1 | import modelEnhance from '@/utils/modelEnhance'; 2 | 3 | export default modelEnhance({ 4 | namespace: 'toolbar', 5 | }); -------------------------------------------------------------------------------- /src/routes/Register/service/index.js: -------------------------------------------------------------------------------- 1 | import $$ from 'cmn-utils'; 2 | 3 | export async function register(payload) { 4 | return $$.post('/user/register', payload); 5 | } -------------------------------------------------------------------------------- /src/routes/Widgets/DataTable/components/index.less: -------------------------------------------------------------------------------- 1 | .datatable-page { 2 | .footer { 3 | text-align: center; 4 | background: #e9e9e9; 5 | padding: 14px; 6 | } 7 | } -------------------------------------------------------------------------------- /src/routes/Business/CRUD/routers/Detail/model/index.js: -------------------------------------------------------------------------------- 1 | import modelEnhance from '@/utils/modelEnhance'; 2 | 3 | export default modelEnhance({ 4 | namespace: 'crudDetail', 5 | }); -------------------------------------------------------------------------------- /src/components/Charts/ECharts/index.js: -------------------------------------------------------------------------------- 1 | // 引入全部echarts包,若想按需加载则直接引EC.js 2 | import 'echarts'; 3 | import EC, { echarts } from './EC'; 4 | 5 | export { echarts }; 6 | export default EC; 7 | -------------------------------------------------------------------------------- /src/routes/Widgets/LevelRoute/routes/SubRoute/model/index.js: -------------------------------------------------------------------------------- 1 | import modelEnhance from '@/utils/modelEnhance'; 2 | 3 | export default modelEnhance({ 4 | namespace: 'subRoute', 5 | }); -------------------------------------------------------------------------------- /src/routes/Widgets/Toolbar/components/index.less: -------------------------------------------------------------------------------- 1 | .toolbar-page { 2 | .antui-panel-body { 3 | background: #eee; 4 | } 5 | .toolbar-demo { 6 | background: #fff; 7 | border: 1px solid #e0e0e0; 8 | } 9 | } -------------------------------------------------------------------------------- /src/components/Editor/style/index.less: -------------------------------------------------------------------------------- 1 | .antui-editor { 2 | .w-e-toolbar { 3 | flex-wrap: wrap; 4 | .w-e-menu { 5 | &:hover { 6 | z-index: 10002 !important; 7 | } 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /src/components/DataTable/index.js: -------------------------------------------------------------------------------- 1 | import DataTable, { Tip, Oper, Paging } from './DataTable'; 2 | import { Editable, EditableOper } from './Editable'; 3 | export { Tip, Oper, Paging, Editable, EditableOper }; 4 | export default DataTable; 5 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | // 将设置放入此文件中以覆盖默认值和用户设置。 2 | { 3 | "editor.tabSize": 2, 4 | "editor.renderIndentGuides": true, 5 | "eslint.enable": true, 6 | "prettier.singleQuote": true, 7 | "javascript.implicitProjectConfig.experimentalDecorators": true, 8 | } -------------------------------------------------------------------------------- /src/components/SideBar/index.js: -------------------------------------------------------------------------------- 1 | import LeftSideBar from './LeftSideBar'; 2 | import RightSideBar from './RightSideBar'; 3 | 4 | export default { 5 | LeftSideBar, 6 | RightSideBar 7 | } 8 | 9 | export { 10 | LeftSideBar, 11 | RightSideBar 12 | } -------------------------------------------------------------------------------- /templates/routes/CRUD/prompts.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "api_0", 4 | "message": "⭐️ 列表查询接口" 5 | }, 6 | { 7 | "name": "api_1", 8 | "message": "⭐️ 保存接口" 9 | }, 10 | { 11 | "name": "api_2", 12 | "message": "⭐️ 删除接口" 13 | } 14 | ] -------------------------------------------------------------------------------- /src/components/Loading/PageLoading.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import './PageLoading.less' 3 | 4 | /** 5 | * 加载效果示例 6 | */ 7 | export default ({loading, style = 'style1'}) => 8 | loading ?
: null; -------------------------------------------------------------------------------- /templates/routes/Blank/model/index.js: -------------------------------------------------------------------------------- 1 | import modelEnhance from '@/utils/modelEnhance'; 2 | 3 | export default modelEnhance({ 4 | namespace: '<%=name %>', 5 | 6 | state: {}, 7 | 8 | subscriptions: {}, 9 | 10 | effects: {}, 11 | 12 | reducers: {} 13 | }); 14 | -------------------------------------------------------------------------------- /src/routes/Pages/404.js: -------------------------------------------------------------------------------- 1 | import { createRoute } from '@/utils/core'; 2 | import { P404 } from 'components/Pages'; 3 | 4 | const routesConfig = (app) => ({ 5 | title: '页面没有找到', 6 | component: P404, 7 | }); 8 | 9 | export default (app) => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /src/decorator/breadcrumb.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | 3 | /** 4 | * 在一个类上增加这个装饰器,可以改变页面的面包屑 5 | * @param {*} options 6 | */ 7 | const breadcrumb = options => WrappedComponent => { 8 | return WrappedComponent; 9 | }; 10 | 11 | export default breadcrumb; 12 | -------------------------------------------------------------------------------- /src/components/Form/model/custom.js: -------------------------------------------------------------------------------- 1 | /** 2 | * 自定义表单元件, 3 | * 在column中如果需要用form控制 4 | * 5 | return form.getFieldDecorator('xxx')( 6 | // ... 7 | ); 8 | */ 9 | export default ({form, render, record, ...otherProps}) => { 10 | return render(record, form, otherProps); 11 | }; -------------------------------------------------------------------------------- /src/routes/Pages/403.js: -------------------------------------------------------------------------------- 1 | import { createRoute } from '@/utils/core'; 2 | import { P403 } from 'components/Pages'; 3 | 4 | const routesConfig = app => ({ 5 | path: '/403', 6 | title: '403', 7 | component: P403 8 | }); 9 | 10 | export default app => createRoute(app, routesConfig); 11 | -------------------------------------------------------------------------------- /src/routes/Pages/500.js: -------------------------------------------------------------------------------- 1 | import { createRoute } from '@/utils/core'; 2 | import { P500 } from 'components/Pages'; 3 | 4 | const routesConfig = app => ({ 5 | path: '/500', 6 | title: '500', 7 | component: P500 8 | }); 9 | 10 | export default app => createRoute(app, routesConfig); 11 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.2.0", 3 | "configurations": [ 4 | { 5 | "type": "chrome", 6 | "request": "launch", 7 | "name": "启动 Chrome 并打开 localhost", 8 | "url": "http://localhost:3000", 9 | "webRoot": "${workspaceFolder}" 10 | } 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /src/routes/UI/Mask/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = app => ({ 4 | path: '/mask', 5 | title: '遮罩', 6 | component: dynamicWrapper(app, [], () => import('./components')) 7 | }); 8 | 9 | export default app => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /.env: -------------------------------------------------------------------------------- 1 | # By default port 3000 2 | # PORT=3000 3 | 4 | # When set to false, source maps are not generated for a production build. This solves out of memory (OOM) issues on some smaller machines. 5 | # GENERATE_SOURCEMAP=false 6 | 7 | # By default "CLIENT", set mock type [CLIENT|SERVER|DISABLED] 8 | REACT_APP_MOCK=SERVER 9 | -------------------------------------------------------------------------------- /src/routes/UI/Button/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = app => ({ 4 | path: '/button', 5 | title: '按钮', 6 | component: dynamicWrapper(app, [], () => import('./components')) 7 | }); 8 | 9 | export default app => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /src/routes/UI/Editor/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = app => ({ 4 | path: '/editor', 5 | title: '富文本', 6 | component: dynamicWrapper(app, [], () => import('./components')) 7 | }); 8 | 9 | export default app => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /src/routes/UI/Icon/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = app => ({ 4 | path: '/icons', 5 | title: '图标', 6 | component: dynamicWrapper(app, [], () => import('./components')) 7 | }); 8 | 9 | export default app => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /src/routes/UI/Modal/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = app => ({ 4 | path: '/modal', 5 | title: '模态窗', 6 | component: dynamicWrapper(app, [], () => import('./components')) 7 | }); 8 | 9 | export default app => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /src/routes/Widgets/ScreenLock/index.js: -------------------------------------------------------------------------------- 1 | import { createRoute } from '@/utils/core'; 2 | import { ScreenLock } from 'components/Pages'; 3 | 4 | const routesConfig = app => ({ 5 | path: '/lock', 6 | title: '锁屏', 7 | component: ScreenLock 8 | }); 9 | 10 | export default app => createRoute(app, routesConfig); 11 | -------------------------------------------------------------------------------- /src/components/BaseComponent/BaseEventComponent.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import BaseComponent from './index'; 3 | 4 | /** 5 | * 带基本事件支持的组件基类 6 | */ 7 | class BaseEventComponent extends BaseComponent { 8 | render() { 9 | return ; 10 | } 11 | } 12 | 13 | export default BaseEventComponent; 14 | -------------------------------------------------------------------------------- /src/routes/UI/Image/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = app => ({ 4 | path: '/image', 5 | title: 'Image page', 6 | component: dynamicWrapper(app, [], () => import('./components')) 7 | }); 8 | 9 | export default app => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /src/routes/Widgets/Print/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = app => ({ 4 | path: '/print', 5 | title: '打印', 6 | component: dynamicWrapper(app, [], () => import('./components')) 7 | }); 8 | 9 | export default app => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /src/routes/Widgets/Result/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = app => ({ 4 | path: '/result', 5 | title: '结果页', 6 | component: dynamicWrapper(app, [], () => import('./components')) 7 | }); 8 | 9 | export default app => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /src/routes/UI/Alerts/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = app => ({ 4 | path: '/alerts', 5 | title: 'Alerts page', 6 | component: dynamicWrapper(app, [], () => import('./components')) 7 | }); 8 | 9 | export default app => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /src/routes/UI/CSSAnimate/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = app => ({ 4 | path: '/animations', 5 | title: '动画', 6 | component: dynamicWrapper(app, [], () => import('./components')) 7 | }); 8 | 9 | export default app => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /src/routes/Widgets/Charts/G2/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = app => ({ 4 | path: '/charts/g2', 5 | title: 'G2', 6 | component: dynamicWrapper(app, [], () => import('./components')) 7 | }); 8 | 9 | export default app => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /src/routes/Widgets/Column/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = app => ({ 4 | path: '/column', 5 | title: 'Columns', 6 | component: dynamicWrapper(app, [], () => import('./components')) 7 | }); 8 | 9 | export default app => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /src/routes/Widgets/Gallery/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = app => ({ 4 | path: '/gallery', 5 | title: '画廊', 6 | component: dynamicWrapper(app, [], () => import('./components')) 7 | }); 8 | 9 | export default app => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /src/components/index.js: -------------------------------------------------------------------------------- 1 | // 2 | // import PageLoading from './Loading/PageLoading'; 3 | // import Notification from './Notification'; 4 | // import TransferTree from './TransferTree'; 5 | // import Panel from './Panel'; 6 | 7 | // export { 8 | // PageLoading, 9 | // Notification, 10 | // TransferTree, 11 | // Panel, 12 | // } -------------------------------------------------------------------------------- /src/routes/Blank/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = app => ({ 4 | path: '/blank', 5 | title: '空白页', 6 | component: dynamicWrapper(app, [import('./model')], () => import('./components')) 7 | }); 8 | 9 | export default app => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /src/routes/Widgets/Banner/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = app => ({ 4 | path: '/banner', 5 | title: 'Banner 管理', 6 | component: dynamicWrapper(app, [], () => import('./components')) 7 | }); 8 | 9 | export default app => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /src/routes/Widgets/Charts/EC/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = app => ({ 4 | path: '/charts/ec', 5 | title: 'ECharts', 6 | component: dynamicWrapper(app, [], () => import('./components')) 7 | }); 8 | 9 | export default app => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /src/routes/Widgets/SearchBar/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = app => ({ 4 | path: '/searchBar', 5 | title: '搜索条', 6 | component: dynamicWrapper(app, [], () => import('./components')) 7 | }); 8 | 9 | export default app => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /src/routes/Dashboard/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = app => ({ 4 | path: '/dashboard', 5 | title: '仪表盘', 6 | component: dynamicWrapper(app, [import('./model')], () => import('./components')) 7 | }); 8 | 9 | export default app => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /src/routes/Widgets/BaseComponent/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = app => ({ 4 | path: '/baseComponent', 5 | title: '组件父类', 6 | component: dynamicWrapper(app, [], () => import('./components')) 7 | }); 8 | 9 | export default app => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /src/routes/Widgets/Form/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = app => ({ 4 | path: '/form', 5 | title: '表单', 6 | component: dynamicWrapper(app, [import('./model')], () => import('./components')) 7 | }); 8 | 9 | export default app => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /src/components/Charts/G2/index.js: -------------------------------------------------------------------------------- 1 | // 全局 G2 设置 2 | import { track, setTheme } from 'bizcharts'; 3 | import G2 from './G2'; 4 | 5 | const config = { 6 | defaultColor: '#1089ff', 7 | shape: { 8 | interval: { 9 | fillOpacity: 1 10 | } 11 | } 12 | }; 13 | 14 | track(false); 15 | setTheme(config); 16 | export default G2; 17 | -------------------------------------------------------------------------------- /src/routes/Login/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = (app) => ({ 4 | path: '/sign/login', 5 | title: 'Login', 6 | component: dynamicWrapper(app, [import('./model')], () => import('./components')) 7 | }); 8 | 9 | export default (app) => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /src/routes/Widgets/Toolbar/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = app => ({ 4 | path: '/toolbar', 5 | title: '工具条', 6 | component: dynamicWrapper(app, [import('./model')], () => import('./components')) 7 | }); 8 | 9 | export default app => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /src/routes/Widgets/DataTable/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = app => ({ 4 | path: '/datatable', 5 | title: '数据表格', 6 | component: dynamicWrapper(app, [import('./model')], () => import('./components')) 7 | }); 8 | 9 | export default app => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /templates/routes/CRUD/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = app => ({ 4 | path: '/<%=name %>', 5 | title: '<%=title %>', 6 | component: dynamicWrapper(app, [import('./model')], () => import('./components')) 7 | }); 8 | 9 | export default app => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "experimentalDecorators": true, 4 | "target": "es2017", 5 | "baseUrl": "./", 6 | "paths": { 7 | "@/*": ["src/*"], 8 | "components/*": ["src/components/*"], 9 | "assets/*": ["src/assets/*"] 10 | } 11 | }, 12 | "exclude": ["node_modules", "build"] 13 | } 14 | -------------------------------------------------------------------------------- /src/routes/Register/components/index.less: -------------------------------------------------------------------------------- 1 | @import '~antd/lib/style/themes/default.less'; 2 | 3 | .register-page { 4 | .register-form-button { 5 | width: 100%; 6 | } 7 | .getCaptcha { 8 | width: 100%; 9 | } 10 | } 11 | 12 | .progress-pass.ant-progress { 13 | .ant-progress-bg { 14 | background-color: @warning-color; 15 | } 16 | } -------------------------------------------------------------------------------- /src/routes/Register/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = (app) => ({ 4 | path: '/sign/register', 5 | title: 'Register', 6 | component: dynamicWrapper(app, [import('./model')], () => import('./components')), 7 | }); 8 | 9 | export default (app) => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /src/routes/Widgets/TransferTree/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = app => ({ 4 | path: '/transferTree', 5 | title: '穿梭树', 6 | component: dynamicWrapper(app, [import('./model')], () => import('./components')) 7 | }); 8 | 9 | export default app => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /templates/routes/Blank/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = app => ({ 4 | path: '/<%=name %>', 5 | title: '<%=title %>', 6 | component: dynamicWrapper(app, [import('./model')], () => import('./components')) 7 | }); 8 | 9 | export default app => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /mock-server.js: -------------------------------------------------------------------------------- 1 | /** 2 | * mock-server 利用 express 来生成真实的模拟数据 3 | * 为了解决之前mock数据时,只针对fetch有效,且在开发人员工具Network面板中无法看到请求的问题 4 | */ 5 | 6 | exports.addMockServer = () => config => { 7 | config.before = app => { 8 | app.get('/test/get', (req, res) => { 9 | res.json({ get: 'response get' }); 10 | }); 11 | }; 12 | return config; 13 | }; 14 | 15 | -------------------------------------------------------------------------------- /src/routes/Business/CRUD/index.js: -------------------------------------------------------------------------------- 1 | import {dynamicWrapper, createRoute} from '@/utils/core'; 2 | 3 | const routesConfig = (app) => ({ 4 | path: '/crud', 5 | title: 'CRUD示例', 6 | component: dynamicWrapper(app, [import('./model')], () => import('./components')), 7 | exact: true 8 | }); 9 | 10 | export default (app) => createRoute(app, routesConfig); 11 | -------------------------------------------------------------------------------- /src/layouts/styles/user.less: -------------------------------------------------------------------------------- 1 | .user-layout { 2 | &.fixed.ant-layout, 3 | &.fixed .full-layout.ant-layout { 4 | position: absolute !important; 5 | top: 0; 6 | left: 0; 7 | right: 0; 8 | bottom: 0; 9 | .ant-layout-sider > .ant-layout-sider-children { 10 | overflow-y: auto; 11 | overflow-x: hidden; 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/routes/Business/CRUD/routers/Detail/index.js: -------------------------------------------------------------------------------- 1 | import {dynamicWrapper, createRoute} from '@/utils/core'; 2 | 3 | const routesConfig = (app) => ({ 4 | path: '/crud/detail', 5 | title: 'CRUD示例-详情页路由', 6 | component: dynamicWrapper(app, [import('./model')], () => import('./components')) 7 | }); 8 | 9 | export default (app) => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /src/routes/Widgets/LevelRoute/routes/SubRoute/index.js: -------------------------------------------------------------------------------- 1 | import { dynamicWrapper, createRoute } from '@/utils/core'; 2 | 3 | const routesConfig = (app) => ({ 4 | path: '/level-route/sub-route', 5 | title: '二级路由', 6 | component: dynamicWrapper(app, [import('./model')], () => import('./components')), 7 | }); 8 | 9 | export default (app) => createRoute(app, routesConfig); 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | 6 | # testing 7 | /coverage 8 | 9 | # production 10 | /build 11 | 12 | # misc 13 | .DS_Store 14 | .env.local 15 | .env.development.local 16 | .env.test.local 17 | .env.production.local 18 | 19 | npm-debug.log* 20 | yarn-debug.log* 21 | yarn-error.log* 22 | -------------------------------------------------------------------------------- /src/components/Video/Video.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import './style/index.less'; 3 | 4 | /** 5 | * 视频播放组件 6 | */ 7 | class Video extends Component { 8 | static defaultProps = { 9 | prefixCls: 'antui-video' 10 | }; 11 | 12 | render() { 13 | return ( 14 |18 | Need More Help? 19 |
20 |21 | Misc question two? Response Link 22 |
23 |所有路由页面都可以使用的基类,可以提取公共方法放到此类中,如基本的CRUD方法,路由跳转,基本弹窗等
17 |图片相关组件
17 |18 | 通过配制Column可同时生成我们页面中的三大块元素、搜索条(高级搜索)组件、新增修改的表单组件、带分页的数据表格组件。 19 | 25 | [配置说明] 26 | 27 |
28 | } 30 | type="primary" 31 | onClick={_ => this.history.push('/crud')} 32 | > 33 | CRUD页面 34 | 35 |19 | Need More Help? 20 |
21 |22 | Misc question two? Response Link 23 |
24 |{this.state.text}
54 |Some contents...
55 |Some contents...
56 |我们默认包含了两种通知样式,当您的组件继承于BaseCompoent时,可使用this.notice发出config.js中配置的默认通知样式,或者可以通过实现Notification接口实现自已的通知类
17 |
31 |
LoadTable组件异步加载数据
45 |Mask组件可以包含任意组件,形成遮罩效果
33 |