fix
This commit is contained in:
parent
d7c0cf4887
commit
31edc294bd
|
|
@ -9,7 +9,7 @@ export declare function createWechatQrCode<ED extends EntityDict, T extends keyo
|
|||
lifetimeLength?: number;
|
||||
permanent?: boolean;
|
||||
props: WechatQrCodeProps;
|
||||
}, context: Cxt): Promise<Omit<Omit<import("general-app-domain/WechatQrCode/Schema").OpSchema, "applicationId" | "entity" | "entityId">, import("oak-domain/lib/types").InstinctiveAttributes> & {
|
||||
}, context: Cxt): Promise<Omit<Omit<import("general-app-domain/WechatQrCode/Schema").OpSchema, "entity" | "entityId" | "applicationId">, import("oak-domain/lib/types").InstinctiveAttributes> & {
|
||||
id: string;
|
||||
} & {
|
||||
applicationId: string;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
declare const _default: (import("oak-domain/lib/types").Checker<import("general-app-domain").EntityDict, "address", import("..").GeneralRuntimeContext<import("general-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("general-app-domain").EntityDict, "token", import("..").GeneralRuntimeContext<import("general-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("general-app-domain").EntityDict, "user", import("..").GeneralRuntimeContext<import("general-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("general-app-domain").EntityDict, "userEntityGrant", import("..").GeneralRuntimeContext<import("general-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("general-app-domain").EntityDict, "wechatQrCode", import("..").GeneralRuntimeContext<import("general-app-domain").EntityDict>>)[];
|
||||
declare const _default: (import("oak-domain/lib/types").Checker<import("general-app-domain").EntityDict, "userEntityGrant", import("..").GeneralRuntimeContext<import("general-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("general-app-domain").EntityDict, "address", import("..").GeneralRuntimeContext<import("general-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("general-app-domain").EntityDict, "token", import("..").GeneralRuntimeContext<import("general-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("general-app-domain").EntityDict, "wechatQrCode", import("..").GeneralRuntimeContext<import("general-app-domain").EntityDict>> | import("oak-domain/lib/types").Checker<import("general-app-domain").EntityDict, "user", import("..").GeneralRuntimeContext<import("general-app-domain").EntityDict>>)[];
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -16,5 +16,5 @@ export declare class Token<ED extends EntityDict, Cxt extends GeneralRuntimeCont
|
|||
syncUserInfoWechatMp(): Promise<void>;
|
||||
logout(): Promise<void>;
|
||||
getToken(): Promise<string | undefined>;
|
||||
getUserId(): Promise<("userId" extends keyof ED["token"]["Schema"] ? ED["token"]["Selection"]["data"][keyof ED["token"]["Schema"] & "userId"] extends 1 | undefined ? ED["token"]["Schema"][keyof ED["token"]["Schema"] & "userId"] : ED["token"]["Selection"]["data"][keyof ED["token"]["Schema"] & "userId"] extends import("oak-domain/lib/types").OtmSubProjection ? never[] | import("oak-domain/lib/types").SelectRowShape<Required<ED["token"]["Schema"]>[keyof ED["token"]["Schema"] & "userId"][0], ED["token"]["Selection"]["data"][keyof ED["token"]["Schema"] & "userId"]["data"]>[] : keyof ED["token"]["Schema"] & "userId" extends import("oak-domain/lib/types").OptionalKeys<ED["token"]["Schema"]> ? import("oak-domain/lib/types").SelectRowShape<NonNullable<Required<ED["token"]["Schema"]>[import("oak-domain/lib/types").OptionalKeys<ED["token"]["Schema"]> & keyof ED["token"]["Schema"] & "userId"]>, ED["token"]["Selection"]["data"][import("oak-domain/lib/types").OptionalKeys<ED["token"]["Schema"]> & keyof ED["token"]["Schema"] & "userId"]> | null : import("oak-domain/lib/types").SelectRowShape<NonNullable<Required<ED["token"]["Schema"]>[keyof ED["token"]["Schema"] & "userId"]>, ED["token"]["Selection"]["data"][keyof ED["token"]["Schema"] & "userId"]> : never) | undefined>;
|
||||
getUserId(): Promise<("userId" extends infer T ? T extends "userId" ? T extends keyof ED["token"]["Schema"] ? ED["token"]["Selection"]["data"][T] extends 1 | undefined ? ED["token"]["Schema"][T] : ED["token"]["Selection"]["data"][T] extends import("oak-domain/lib/types").OtmSubProjection ? never[] | import("oak-domain/lib/types").SelectRowShape<Required<ED["token"]["Schema"]>[T][0], ED["token"]["Selection"]["data"][T]["data"]>[] : T extends import("oak-domain/lib/types").OptionalKeys<ED["token"]["Schema"]> ? import("oak-domain/lib/types").SelectRowShape<NonNullable<Required<ED["token"]["Schema"]>[T]>, ED["token"]["Selection"]["data"][T]> | null : import("oak-domain/lib/types").SelectRowShape<NonNullable<Required<ED["token"]["Schema"]>[T]>, ED["token"]["Selection"]["data"][T]> : never : never : never) | undefined>;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
Component({
|
||||
properties: {
|
||||
// circle || square
|
||||
mode: {
|
||||
type: String,
|
||||
value: ''
|
||||
},
|
||||
// small || large || default
|
||||
flexItem: {
|
||||
type: Boolean,
|
||||
value: false,
|
||||
},
|
||||
}
|
||||
});
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"component": true
|
||||
}
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
/** index.wxss **/
|
||||
.divider {
|
||||
margin: 0;
|
||||
flex-shrink: 0;
|
||||
border-width: 0;
|
||||
border-style: solid;
|
||||
border-color: rgb(0 0 0 / 12%);
|
||||
border-bottom-width: thin;
|
||||
}
|
||||
|
||||
.flexItem {
|
||||
align-self: stretch;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.vertical {
|
||||
height: 100%;
|
||||
border-bottom-width: 0;
|
||||
border-right-width: thin;
|
||||
margin: 0rpx 8rpx;
|
||||
}
|
||||
|
||||
.horizontal {
|
||||
display: block;
|
||||
unicode-bidi: isolate;
|
||||
margin-block-start: 0.5em;
|
||||
margin-block-end: 0.5em;
|
||||
margin-inline-start: auto;
|
||||
margin-inline-end: auto;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
|
||||
Component({
|
||||
properties: {
|
||||
// circle || square
|
||||
mode: {
|
||||
type: String,
|
||||
value: ''
|
||||
},
|
||||
// small || large || default
|
||||
flexItem: {
|
||||
type: Boolean,
|
||||
value: false,
|
||||
},
|
||||
}
|
||||
});
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
<!-- index.wxml -->
|
||||
<hr class="divider {{mode === 'vertical' ? mode : 'horizontal'}} {{flexItem === true ? 'flexItem' : ''}}" />
|
||||
|
|
@ -0,0 +1 @@
|
|||
export {};
|
||||
|
|
@ -0,0 +1 @@
|
|||
export {};
|
||||
|
|
@ -0,0 +1 @@
|
|||
export {};
|
||||
|
|
@ -0,0 +1 @@
|
|||
export {};
|
||||
|
|
@ -0,0 +1 @@
|
|||
export {};
|
||||
|
|
@ -0,0 +1 @@
|
|||
export {};
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
declare const GenderOptions: {
|
||||
value: string;
|
||||
label: string;
|
||||
}[];
|
||||
declare const IDCardTypeOptions: {
|
||||
value: string;
|
||||
label: string;
|
||||
}[];
|
||||
|
|
@ -0,0 +1 @@
|
|||
export {};
|
||||
|
|
@ -0,0 +1 @@
|
|||
export {};
|
||||
|
|
@ -80,7 +80,7 @@ OakPage(
|
|||
const filter = await this.getFilterByName('name');
|
||||
|
||||
return {
|
||||
users: users?.map((ele) => {
|
||||
users: users?.map((ele: any) => {
|
||||
const { mobile$user, extraFile$entity } =
|
||||
ele || {};
|
||||
const userEntity = ele![`user${entityStr}$user`];
|
||||
|
|
@ -89,7 +89,7 @@ OakPage(
|
|||
extraFile$entity &&
|
||||
extraFile$entity[0] &&
|
||||
composeFileUrl(extraFile$entity[0]);
|
||||
const relations = userEntity?.map((ele) => ele.relation);
|
||||
const relations = userEntity?.map((ele: any) => ele.relation);
|
||||
const user2 = Object.assign({}, ele, {
|
||||
mobile,
|
||||
avatar,
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
export {};
|
||||
Loading…
Reference in New Issue