Browse Source

线图钻取字段限制为时间类型

zhuth 6 years ago
parent
commit
65a5c02a6f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/chartDesigner/sections/lineConfigForm.jsx

+ 1 - 1
src/components/chartDesigner/sections/lineConfigForm.jsx

@@ -75,7 +75,7 @@ const LineConfigForm = ({ autoRefresh, chartDesigner, dispatch }) => {
 			{lineConfig.xAxis.column.value && lineConfig.drillable && <FormItem label='钻取层级' {...formItemLayout}>
 				<DrillList
 					// 可选钻取字段包括时间、类别类型,且当x轴选择的是时间类型时允许重复作为钻取字段(之后会限制年月周等维度的选择)
-					list={columns.filter(c => ['categorical', 'time'].indexOf(c.type) > -1)}
+					list={columns.filter(c => ['time'].indexOf(c.type) > -1)}
 					value={lineConfig.drillList || []}
 					onChange={list => {
 						dispatch({ type: 'chartDesigner/changeField', name: 'lineConfig', value: { ...lineConfig, drillList: list }, autoRefresh });