article list 加上filter条件
This commit is contained in:
parent
7b42581b9b
commit
0a11378e58
|
|
@ -1,5 +1,7 @@
|
|||
/// <reference types="wechat-miniprogram" />
|
||||
/// <reference types="react" />
|
||||
import { EntityDict } from '../../../general-app-domain';
|
||||
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, "articleMenu", true, WechatMiniprogram.Component.DataOption>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
||||
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, "articleMenu", true, {
|
||||
entity: string;
|
||||
entityId: string;
|
||||
}>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -71,7 +71,21 @@ exports.default = OakComponent({
|
|||
treeData: treeData,
|
||||
};
|
||||
},
|
||||
filters: [],
|
||||
properties: {
|
||||
entity: '',
|
||||
entityId: '',
|
||||
},
|
||||
filters: [
|
||||
{
|
||||
filter: function () {
|
||||
return {
|
||||
entity: this.props.entity,
|
||||
entityId: this.props.entityId,
|
||||
};
|
||||
},
|
||||
'#name': 'entityId',
|
||||
}
|
||||
],
|
||||
lifetimes: {},
|
||||
data: {
|
||||
selectedArticleId: '',
|
||||
|
|
|
|||
|
|
@ -80,7 +80,21 @@ export default OakComponent({
|
|||
treeData,
|
||||
};
|
||||
},
|
||||
filters: [],
|
||||
properties: {
|
||||
entity: '',
|
||||
entityId: '',
|
||||
},
|
||||
filters: [
|
||||
{
|
||||
filter() {
|
||||
return {
|
||||
entity: this.props.entity,
|
||||
entityId: this.props.entityId,
|
||||
}
|
||||
},
|
||||
'#name': 'entityId',
|
||||
}
|
||||
],
|
||||
lifetimes: {
|
||||
},
|
||||
data: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue