mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 14:39:25 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
50e6dc296e
@ -215,6 +215,7 @@ export const querySchema: ISchema = {
|
||||
'x-component-props': {
|
||||
onChange: '{{ onCollectionChange }}',
|
||||
placeholder: '{{t("Collection")}}',
|
||||
showSearch: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -41,9 +41,10 @@ export type FieldOption = {
|
||||
|
||||
export const useChartDataSource = (dataSource?: string) => {
|
||||
const { current } = useContext(ChartConfigContext);
|
||||
const { dataSource: _dataSource = dataSource || DEFAULT_DATA_SOURCE_KEY, collection } = current || {};
|
||||
const { dataSource: currentDataSource, collection } = current || {};
|
||||
dataSource = dataSource || currentDataSource || DEFAULT_DATA_SOURCE_KEY;
|
||||
const dm = useDataSourceManager();
|
||||
const ds = dm.getDataSource(_dataSource);
|
||||
const ds = dm.getDataSource(dataSource);
|
||||
const fim = dm.collectionFieldInterfaceManager;
|
||||
const cm = ds?.collectionManager;
|
||||
return { cm, fim, collection };
|
||||
|
Loading…
x
Reference in New Issue
Block a user