-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
43 lines (39 loc) · 842 Bytes
/
index.js
File metadata and controls
43 lines (39 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* Created by harry on 16/4/11.
*/
import React from 'react'
import {render, findDOMNode} from 'react-dom'
import readmin from 'readmin'
// 系统样式
import './css/app.css'
import './css/global.css'
import './css/treechart.css'
// 引用bootstrap css和js
import './node_modules/bootstrap/dist/css/bootstrap.css'
import './node_modules/bootstrap/dist/js/bootstrap.js'
import './node_modules/fixed-data-table/dist/fixed-data-table.css'
import Product from './components/product'
import Order from './components/order'
readmin({
components: [
{
id: "product",
text: "Product",
component: Product
},{
id: "order",
text: "Order",
component: Order
}
],
nav: [
"product",
"order"
],
componentDidMount: function () {
},
index: function () {
return <div>index</div>;
},
containerId: 'container'
});