mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 09:29:16 +00:00
refactor: adjust the markdown field to use the input component in filtering (#4899)
Some checks are pending
auto-merge / push-commit (push) Waiting to run
Build Docker Image / build-and-push (push) Waiting to run
Build Pro Image / build-and-push (push) Waiting to run
deploy client docs / Build (push) Waiting to run
E2E / Build (push) Waiting to run
E2E / Core and plugins (push) Blocked by required conditions
E2E / plugin-workflow (push) Blocked by required conditions
E2E / plugin-workflow-approval (push) Blocked by required conditions
E2E / plugin-data-source-main (push) Blocked by required conditions
E2E / Comment on PR (push) Blocked by required conditions
NocoBase FrontEnd Test / frontend-test (18) (push) Waiting to run
Some checks are pending
auto-merge / push-commit (push) Waiting to run
Build Docker Image / build-and-push (push) Waiting to run
Build Pro Image / build-and-push (push) Waiting to run
deploy client docs / Build (push) Waiting to run
E2E / Build (push) Waiting to run
E2E / Core and plugins (push) Blocked by required conditions
E2E / plugin-workflow (push) Blocked by required conditions
E2E / plugin-workflow-approval (push) Blocked by required conditions
E2E / plugin-data-source-main (push) Blocked by required conditions
E2E / Comment on PR (push) Blocked by required conditions
NocoBase FrontEnd Test / frontend-test (18) (push) Waiting to run
This commit is contained in:
parent
b25bc369d4
commit
a39df74a49
@ -79,6 +79,6 @@ export class MarkdownFieldInterface extends CollectionFieldInterface {
|
||||
};
|
||||
}
|
||||
filterable = {
|
||||
operators: operators.string,
|
||||
operators: operators.bigField,
|
||||
};
|
||||
}
|
||||
|
@ -184,7 +184,7 @@ export const collection = [
|
||||
{ label: '{{t("is not empty")}}', value: '$notEmpty', noValue: true },
|
||||
];
|
||||
|
||||
export const richText = [
|
||||
export const bigField = [
|
||||
{
|
||||
label: '{{t("contains")}}',
|
||||
value: '$includes',
|
||||
@ -218,6 +218,22 @@ export const richText = [
|
||||
'x-component': 'Input',
|
||||
},
|
||||
},
|
||||
{ label: '{{t("is empty")}}', value: '$empty', noValue: true },
|
||||
{ label: '{{t("is not empty")}}', value: '$notEmpty', noValue: true },
|
||||
{
|
||||
label: '{{t("is empty")}}',
|
||||
value: '$empty',
|
||||
noValue: true,
|
||||
schema: {
|
||||
type: 'string',
|
||||
'x-component': 'Input',
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '{{t("is not empty")}}',
|
||||
value: '$notEmpty',
|
||||
noValue: true,
|
||||
schema: {
|
||||
type: 'string',
|
||||
'x-component': 'Input',
|
||||
},
|
||||
},
|
||||
];
|
||||
|
@ -79,6 +79,6 @@ export class RichTextFieldInterface extends CollectionFieldInterface {
|
||||
};
|
||||
};
|
||||
filterable = {
|
||||
operators: operators.richText,
|
||||
operators: operators.bigField,
|
||||
};
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ export class MarkdownVditorFieldInterface extends CollectionFieldInterface {
|
||||
}
|
||||
}
|
||||
filterable = {
|
||||
operators: operators.number,
|
||||
operators: operators.bigField,
|
||||
};
|
||||
titleUsable = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user