|
|
@@ -3,6 +3,7 @@ import { Form, Select, Tag, Cascader, Dropdown, Menu } from 'antd'
|
|
|
import { connect } from 'dva'
|
|
|
import '../../../models/chartDesigner'
|
|
|
import GAUGE from './gauge.json'
|
|
|
+import GRANULARITY from './granularity.json'
|
|
|
const FormItem = Form.Item
|
|
|
const { Option } = Select
|
|
|
const formItemLayout = {
|
|
|
@@ -45,7 +46,8 @@ const LineConfigForm = ({ autoRefresh, chartDesigner, dispatch }) => {
|
|
|
return {
|
|
|
type: c.type,
|
|
|
value: c.name,
|
|
|
- label: c.label
|
|
|
+ label: c.label,
|
|
|
+ children: GRANULARITY[c.type]
|
|
|
}
|
|
|
})}
|
|
|
onChange={(value, items) => {
|