modi在abandon时多余的filter
This commit is contained in:
parent
127a84bff0
commit
c65d4ade31
|
|
@ -58,14 +58,6 @@ function abandonModis(filter, context, option) {
|
||||||
_d.action = 'abandon',
|
_d.action = 'abandon',
|
||||||
_d.data = {},
|
_d.data = {},
|
||||||
_d.filter = filter,
|
_d.filter = filter,
|
||||||
_d.sorter = [
|
|
||||||
{
|
|
||||||
$attr: {
|
|
||||||
$$createAt$$: 1,
|
|
||||||
},
|
|
||||||
$direction: 'asc',
|
|
||||||
}
|
|
||||||
],
|
|
||||||
_d), Object.assign({}, option, {
|
_d), Object.assign({}, option, {
|
||||||
blockTrigger: false,
|
blockTrigger: false,
|
||||||
})]))];
|
})]))];
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ export declare type RefOrExpression<A> = RefAttr<A> | Expression<A>;
|
||||||
declare type MathType<A> = RefOrExpression<A> | number;
|
declare type MathType<A> = RefOrExpression<A> | number;
|
||||||
declare type StringType<A> = RefOrExpression<A> | string;
|
declare type StringType<A> = RefOrExpression<A> | string;
|
||||||
interface Add<A> {
|
interface Add<A> {
|
||||||
$add: (MathType<A> | StringType<A>)[];
|
$add: (MathType<A>)[];
|
||||||
}
|
}
|
||||||
interface Subtract<A> {
|
interface Subtract<A> {
|
||||||
$subtract: [MathType<A>, MathType<A>];
|
$subtract: [MathType<A>, MathType<A>];
|
||||||
|
|
|
||||||
|
|
@ -52,14 +52,14 @@ export async function abandonModis<ED extends EntityDict & BaseEntityDict, Cxt e
|
||||||
action: 'abandon',
|
action: 'abandon',
|
||||||
data: {},
|
data: {},
|
||||||
filter,
|
filter,
|
||||||
sorter: [
|
/* sorter: [
|
||||||
{
|
{
|
||||||
$attr: {
|
$attr: {
|
||||||
$$createAt$$: 1,
|
$$createAt$$: 1,
|
||||||
},
|
},
|
||||||
$direction: 'asc',
|
$direction: 'asc',
|
||||||
}
|
}
|
||||||
]
|
] */
|
||||||
}, Object.assign({}, option, {
|
}, Object.assign({}, option, {
|
||||||
blockTrigger: false,
|
blockTrigger: false,
|
||||||
}));
|
}));
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ export type RefOrExpression<A> = RefAttr<A> | Expression<A>;
|
||||||
type MathType<A> = RefOrExpression<A> | number;
|
type MathType<A> = RefOrExpression<A> | number;
|
||||||
type StringType<A> = RefOrExpression<A> | string
|
type StringType<A> = RefOrExpression<A> | string
|
||||||
interface Add<A> {
|
interface Add<A> {
|
||||||
$add: (MathType<A> | StringType<A>)[];
|
$add: (MathType<A>)[];
|
||||||
};
|
};
|
||||||
interface Subtract<A> {
|
interface Subtract<A> {
|
||||||
$subtract: [MathType<A>, MathType<A>];
|
$subtract: [MathType<A>, MathType<A>];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue