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:
wjh 2024-07-01 20:48:05 +08:00 committed by sealday
parent e4166d7dec
commit c484545c39
2 changed files with 3 additions and 0 deletions

View File

@ -117,6 +117,7 @@ export const SchemaSettingsSortingRule = function SortRuleConfigure(props) {
});
_.set(fieldSchema, 'x-component-props.service.params.sort', sortArr);
props?.onSubmitCallBack?.(sortArr);
field.componentProps = fieldSchema['x-component-props'];
dn.emit('patch', {
schema: {
['x-uid']: fieldSchema['x-uid'],

View File

@ -11,6 +11,7 @@ import {
SchemaSettingsModalItem,
SchemaSettingsRemove,
SchemaSettingsSelectItem,
SchemaSettingsSortingRule,
useCollection_deprecated,
useCollectionManager_deprecated,
useCompile,
@ -366,6 +367,7 @@ export const ChartFilterItemDesigner: React.FC = () => {
{!isCustom && <EditOperator />}
<EditTitleField />
<EditDefaultValue />
<SchemaSettingsSortingRule />
{collectionField ? <SchemaSettingsDivider /> : null}
<SchemaSettingsRemove
key="remove"