fix: 修复图表筛选区块字段支持排序 (#1252)
Reviewed-on: daoyoucloud/tachybase#1252 Co-authored-by: wjh <wwwjh0710@163.com> Co-committed-by: wjh <wwwjh0710@163.com>
This commit is contained in:
parent
e4166d7dec
commit
c484545c39
@ -117,6 +117,7 @@ export const SchemaSettingsSortingRule = function SortRuleConfigure(props) {
|
|||||||
});
|
});
|
||||||
_.set(fieldSchema, 'x-component-props.service.params.sort', sortArr);
|
_.set(fieldSchema, 'x-component-props.service.params.sort', sortArr);
|
||||||
props?.onSubmitCallBack?.(sortArr);
|
props?.onSubmitCallBack?.(sortArr);
|
||||||
|
field.componentProps = fieldSchema['x-component-props'];
|
||||||
dn.emit('patch', {
|
dn.emit('patch', {
|
||||||
schema: {
|
schema: {
|
||||||
['x-uid']: fieldSchema['x-uid'],
|
['x-uid']: fieldSchema['x-uid'],
|
||||||
|
@ -11,6 +11,7 @@ import {
|
|||||||
SchemaSettingsModalItem,
|
SchemaSettingsModalItem,
|
||||||
SchemaSettingsRemove,
|
SchemaSettingsRemove,
|
||||||
SchemaSettingsSelectItem,
|
SchemaSettingsSelectItem,
|
||||||
|
SchemaSettingsSortingRule,
|
||||||
useCollection_deprecated,
|
useCollection_deprecated,
|
||||||
useCollectionManager_deprecated,
|
useCollectionManager_deprecated,
|
||||||
useCompile,
|
useCompile,
|
||||||
@ -366,6 +367,7 @@ export const ChartFilterItemDesigner: React.FC = () => {
|
|||||||
{!isCustom && <EditOperator />}
|
{!isCustom && <EditOperator />}
|
||||||
<EditTitleField />
|
<EditTitleField />
|
||||||
<EditDefaultValue />
|
<EditDefaultValue />
|
||||||
|
<SchemaSettingsSortingRule />
|
||||||
{collectionField ? <SchemaSettingsDivider /> : null}
|
{collectionField ? <SchemaSettingsDivider /> : null}
|
||||||
<SchemaSettingsRemove
|
<SchemaSettingsRemove
|
||||||
key="remove"
|
key="remove"
|
||||||
|
Loading…
Reference in New Issue
Block a user