提交 d8cb3e78 authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 a9b8569d
差异被折叠。
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
"preview": "vite preview" "preview": "vite preview"
}, },
"dependencies": { "dependencies": {
"@ant-design/charts": "^2.2.7",
"@ant-design/icons": "^6.0.0", "@ant-design/icons": "^6.0.0",
"@antv/g2": "^5.2.12", "@antv/g2": "^5.2.12",
"@dnd-kit/core": "^6.3.1", "@dnd-kit/core": "^6.3.1",
...@@ -23,6 +22,8 @@ ...@@ -23,6 +22,8 @@
"antd": "^5.24.5", "antd": "^5.24.5",
"axios": "^1.8.4", "axios": "^1.8.4",
"blueimp-md5": "^2.19.0", "blueimp-md5": "^2.19.0",
"echarts": "^5.6.0",
"echarts-for-react": "^3.0.2",
"lodash-es": "^4.17.21", "lodash-es": "^4.17.21",
"lucide-react": "^0.484.0", "lucide-react": "^0.484.0",
"react": "^18.3.1", "react": "^18.3.1",
......
...@@ -106,7 +106,15 @@ export function useDataFieldQuery() { ...@@ -106,7 +106,15 @@ export function useDataFieldQuery() {
return values.map((value) => getFieldName(value)) return values.map((value) => getFieldName(value))
} }
return { ...query, fields, fieldOptions: fields, getFieldName, getFieldNames } const getFieldOptions = (type: string) => {
return fields.filter((option) => {
if (type === 'string') return option.type.includes('VARCHAR')
if (type === 'number') return option.type.includes('DECIMAL') || option.type.includes('SMALLINT')
return true
})
}
return { ...query, fields, fieldOptions: fields, getFieldName, getFieldNames, getFieldOptions }
} }
// 进度查询 // 进度查询
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论