mirror of
https://fast.feibisi.com/https://github.com/parcelvoy/platform.git
synced 2025-09-01 12:26:08 +08:00
chore: add same day operator
This commit is contained in:
parent
3df6c003aa
commit
b42d022923
1 changed files with 3 additions and 2 deletions
|
@ -27,13 +27,13 @@ export const createWrapperRule = (): WrapperRule => ({
|
|||
children: [],
|
||||
})
|
||||
|
||||
export const createEventRule = (parent?: Rule): EventRule => {
|
||||
export const createEventRule = (parent?: Rule, value = ''): EventRule => {
|
||||
const base: EventRule = {
|
||||
uuid: createUuid(),
|
||||
path: '$.name',
|
||||
type: 'wrapper',
|
||||
group: 'event',
|
||||
value: '',
|
||||
value,
|
||||
operator: 'and',
|
||||
children: [],
|
||||
frequency: {
|
||||
|
@ -116,6 +116,7 @@ export const operatorTypes: Record<RuleType, OperatorOption[]> = {
|
|||
{ key: '<=', label: 'is on or before' },
|
||||
{ key: '>', label: 'is after' },
|
||||
{ key: '>=', label: 'is on or after' },
|
||||
{ key: 'is same day', label: 'is same day' },
|
||||
],
|
||||
array: [
|
||||
...baseOperators,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue