定义了uploader的形状

This commit is contained in:
Xu Chang 2023-09-06 22:33:43 +08:00
parent ebf12a4b6e
commit 026bdfcb52
170 changed files with 423 additions and 148 deletions

View File

@ -37,5 +37,5 @@ export declare type Poi = {
email?: string; email?: string;
businessArea?: string; businessArea?: string;
}; };
declare const Location: (props: LocationProps) => import("react/jsx-runtime").JSX.Element; declare const Location: (props: LocationProps) => JSX.Element;
export default Location; export default Location;

View File

@ -29,5 +29,5 @@ export interface AMapProps extends APILoaderProps {
securityJsCode?: string; securityJsCode?: string;
serviceHost?: string; serviceHost?: string;
} }
declare const memo: (props: AMapProps) => import("react/jsx-runtime").JSX.Element; declare const memo: (props: AMapProps) => JSX.Element;
export default memo; export default memo;

View File

@ -7,4 +7,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'article', f
name: string; name: string;
width: string; width: string;
editor: any; editor: any;
}, {}>): import("react/jsx-runtime").JSX.Element; }, {}>): JSX.Element;

View File

@ -8,4 +8,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'article', f
content?: string; content?: string;
html?: string; html?: string;
origin?: string; origin?: string;
}, {}>): import("react/jsx-runtime").JSX.Element; }, {}>): JSX.Element;

View File

@ -8,4 +8,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'article', f
content?: string; content?: string;
html?: string; html?: string;
origin?: string; origin?: string;
}, {}>): import("react/jsx-runtime").JSX.Element; }, {}>): JSX.Element;

View File

@ -19,4 +19,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'articleMenu
setCurrentArticle: (id: string) => void; setCurrentArticle: (id: string) => void;
}, { }, {
createOne: () => Promise<void>; createOne: () => Promise<void>;
}>): import("react/jsx-runtime").JSX.Element | null; }>): JSX.Element | null;

View File

@ -26,4 +26,4 @@ export default function Render(props: WebComponentProps<EntityDict, "article", f
}>; }>;
clearContentTip: () => void; clearContentTip: () => void;
gotoPreview: (content?: string, title?: string) => void; gotoPreview: (content?: string, title?: string) => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -34,4 +34,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'articleMenu
createSubArticle: (name: string) => Promise<void>; createSubArticle: (name: string) => Promise<void>;
createSubArticleMenu: (name: string) => Promise<void>; createSubArticleMenu: (name: string) => Promise<void>;
gotoDoc: (articleMenuId: string) => void; gotoDoc: (articleMenuId: string) => void;
}>): import("react/jsx-runtime").JSX.Element | null; }>): JSX.Element | null;

View File

@ -33,4 +33,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'articleMenu
createOne: (name?: string) => Promise<void>; createOne: (name?: string) => Promise<void>;
getDefaultArticle: (rows: EntityDict['articleMenu']['OpSchema'][]) => void; getDefaultArticle: (rows: EntityDict['articleMenu']['OpSchema'][]) => void;
getSearchArticle: () => Promise<string[]>; getSearchArticle: () => Promise<string[]>;
}>): import("react/jsx-runtime").JSX.Element | null; }>): JSX.Element | null;

View File

@ -14,4 +14,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'articleMenu
searchArticle: (searchValue: string) => void; searchArticle: (searchValue: string) => void;
getArticleMenuIdByArticle: (articleId: string, type: string) => void; getArticleMenuIdByArticle: (articleId: string, type: string) => void;
gotoSearchArticleAndArticleMenu: (articleMenuId: string, articleId: string) => void; gotoSearchArticleAndArticleMenu: (articleMenuId: string, articleId: string) => void;
}>): import("react/jsx-runtime").JSX.Element | null; }>): JSX.Element | null;

View File

@ -10,4 +10,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'message', f
setMobile: (value: string) => void; setMobile: (value: string) => void;
sendCaptcha: (mobile: string) => Promise<void>; sendCaptcha: (mobile: string) => Promise<void>;
onConfirmByMobile: (mobile: string, captcha: string, newPassword: string) => Promise<void>; onConfirmByMobile: (mobile: string, captcha: string, newPassword: string) => Promise<void>;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -5,4 +5,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'message', f
failTimes: number; failTimes: number;
}, { }, {
onConfirm: (prevPassword: string, password: string) => Promise<void>; onConfirm: (prevPassword: string, password: string) => Promise<void>;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -6,4 +6,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'message', f
oakId: string; oakId: string;
}, { }, {
goToMobile: () => void; goToMobile: () => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -7,7 +7,7 @@ declare type IDownloadProps = {
style?: React.CSSProperties; style?: React.CSSProperties;
filename?: string; filename?: string;
}; };
declare function Download(props: IDownloadProps): import("react/jsx-runtime").JSX.Element; declare function Download(props: IDownloadProps): JSX.Element;
declare namespace Download { declare namespace Download {
var onDownload: (arrayBuffer: ArrayBuffer, filename: string) => void; var onDownload: (arrayBuffer: ArrayBuffer, filename: string) => void;
var base64ToBlob: (base64String: string) => Blob; var base64ToBlob: (base64String: string) => Blob;

View File

@ -1,3 +1,3 @@
import './index.less'; import './index.less';
declare const Empty: () => import("react/jsx-runtime").JSX.Element; declare const Empty: () => JSX.Element;
export default Empty; export default Empty;

View File

@ -1,3 +1,3 @@
import './index.less'; import './index.less';
declare const Empty: () => import("react/jsx-runtime").JSX.Element; declare const Empty: () => JSX.Element;
export default Empty; export default Empty;

View File

@ -15,5 +15,5 @@ interface IErrorPageProps {
children?: React.ReactNode; children?: React.ReactNode;
icon?: React.ReactNode; icon?: React.ReactNode;
} }
declare function ErrorPage(props: IErrorPageProps): import("react/jsx-runtime").JSX.Element; declare function ErrorPage(props: IErrorPageProps): JSX.Element;
export default ErrorPage; export default ErrorPage;

View File

@ -15,5 +15,5 @@ declare type GridProps = {
list: Array<Item>; list: Array<Item>;
onChange?: (index: number, event?: React.MouseEvent<HTMLDivElement, MouseEvent>) => void; onChange?: (index: number, event?: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
}; };
declare const _default: React.MemoExoticComponent<(props: GridProps) => import("react/jsx-runtime").JSX.Element>; declare const _default: React.MemoExoticComponent<(props: GridProps) => JSX.Element>;
export default _default; export default _default;

View File

@ -17,5 +17,5 @@ declare type PageHeaderProps = {
children?: React.ReactNode; children?: React.ReactNode;
showHeader?: boolean; showHeader?: boolean;
}; };
declare const _default: React.MemoExoticComponent<(props: PageHeaderProps) => import("react/jsx-runtime").JSX.Element>; declare const _default: React.MemoExoticComponent<(props: PageHeaderProps) => JSX.Element>;
export default _default; export default _default;

View File

@ -14,5 +14,5 @@ declare type IQrCodeProps = {
successed?: boolean; successed?: boolean;
type?: EntityDict['wechatLogin']['Schema']['type']; type?: EntityDict['wechatLogin']['Schema']['type'];
}; };
declare function QrCode(props: IQrCodeProps): import("react/jsx-runtime").JSX.Element; declare function QrCode(props: IQrCodeProps): JSX.Element;
export default QrCode; export default QrCode;

View File

@ -5,5 +5,5 @@ declare type Props = {
description?: string; description?: string;
children?: React.ReactNode; children?: React.ReactNode;
}; };
declare const _default: React.MemoExoticComponent<(props: Props) => import("react/jsx-runtime").JSX.Element>; declare const _default: React.MemoExoticComponent<(props: Props) => JSX.Element>;
export default _default; export default _default;

View File

@ -5,5 +5,5 @@ declare type Props = {
description?: string; description?: string;
children?: React.ReactNode; children?: React.ReactNode;
}; };
declare const _default: React.MemoExoticComponent<(props: Props) => import("react/jsx-runtime").JSX.Element>; declare const _default: React.MemoExoticComponent<(props: Props) => JSX.Element>;
export default _default; export default _default;

View File

@ -14,5 +14,5 @@ interface GrantProps {
rootStyle?: React.CSSProperties; rootStyle?: React.CSSProperties;
rootClassName?: string; rootClassName?: string;
} }
declare function Grant(props: GrantProps): import("react/jsx-runtime").JSX.Element; declare function Grant(props: GrantProps): JSX.Element;
export default Grant; export default Grant;

View File

@ -14,5 +14,5 @@ interface QrCodeProps {
rootStyle?: React.CSSProperties; rootStyle?: React.CSSProperties;
rootClassName?: string; rootClassName?: string;
} }
declare function QrCode(props: QrCodeProps): import("react/jsx-runtime").JSX.Element; declare function QrCode(props: QrCodeProps): JSX.Element;
export default QrCode; export default QrCode;

View File

@ -15,5 +15,5 @@ export default function render(props: WebComponentProps<EntityDict, 'user', fals
setValue: (path: string, value: string) => void; setValue: (path: string, value: string) => void;
removeItem: (path: string, index: number) => void; removeItem: (path: string, index: number) => void;
cleanKey: (path: string, key: string) => void; cleanKey: (path: string, key: string) => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;
export {}; export {};

View File

@ -4,4 +4,4 @@ export default function Web(props: {
setValue: (path: string, value: any) => void; setValue: (path: string, value: any) => void;
removeItem: (path: string, index: number) => void; removeItem: (path: string, index: number) => void;
cleanKey: (path: string, key: string) => void; cleanKey: (path: string, key: string) => void;
}): import("react/jsx-runtime").JSX.Element; }): JSX.Element;

View File

@ -4,4 +4,4 @@ export default function WechatMp(props: {
setValue: (path: string, value: any) => void; setValue: (path: string, value: any) => void;
removeItem: (path: string, index: number) => void; removeItem: (path: string, index: number) => void;
cleanKey: (path: string, key: string) => void; cleanKey: (path: string, key: string) => void;
}): import("react/jsx-runtime").JSX.Element; }): JSX.Element;

View File

@ -5,4 +5,4 @@ export default function WechatPublic(props: {
setValue: (path: string, value: any) => void; setValue: (path: string, value: any) => void;
removeItem: (path: string, index: number) => void; removeItem: (path: string, index: number) => void;
cleanKey: (path: string, key: string) => void; cleanKey: (path: string, key: string) => void;
}): import("react/jsx-runtime").JSX.Element; }): JSX.Element;

View File

@ -3,5 +3,5 @@ declare type StyleProps = {
value?: StyleType | null; value?: StyleType | null;
onChange: (value: StyleType) => void; onChange: (value: StyleType) => void;
}; };
export default function Render(props: StyleProps): import("react/jsx-runtime").JSX.Element; export default function Render(props: StyleProps): JSX.Element;
export {}; export {};

View File

@ -3,4 +3,4 @@ export default function Account(props: {
account: Required<Config>['Account']; account: Required<Config>['Account'];
setValue: (path: string, value: any) => void; setValue: (path: string, value: any) => void;
removeItem: (path: string, index: number) => void; removeItem: (path: string, index: number) => void;
}): import("react/jsx-runtime").JSX.Element; }): JSX.Element;

View File

@ -2,4 +2,4 @@ import { Config } from '../../../../types/Config';
export default function Cos(props: { export default function Cos(props: {
cos: Required<Config>['Cos']; cos: Required<Config>['Cos'];
setValue: (path: string, value: any) => void; setValue: (path: string, value: any) => void;
}): import("react/jsx-runtime").JSX.Element; }): JSX.Element;

View File

@ -2,4 +2,4 @@ import { Config } from '../../../../types/Config';
export default function Cos(props: { export default function Cos(props: {
live: Required<Config>['Live']; live: Required<Config>['Live'];
setValue: (path: string, value: any) => void; setValue: (path: string, value: any) => void;
}): import("react/jsx-runtime").JSX.Element; }): JSX.Element;

View File

@ -2,4 +2,4 @@ import { Config } from '../../../../types/Config';
export default function Cos(props: { export default function Cos(props: {
map: Required<Config>['Map']; map: Required<Config>['Map'];
setValue: (path: string, value: any) => void; setValue: (path: string, value: any) => void;
}): import("react/jsx-runtime").JSX.Element; }): JSX.Element;

View File

@ -4,4 +4,4 @@ export default function Sms(props: {
setValue: (path: string, value: any) => void; setValue: (path: string, value: any) => void;
removeItem: (path: string, index: number) => void; removeItem: (path: string, index: number) => void;
cleanKey: (path: string, key: string) => void; cleanKey: (path: string, key: string) => void;
}): import("react/jsx-runtime").JSX.Element; }): JSX.Element;

View File

@ -12,4 +12,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
setValue: (path: string, value: string) => void; setValue: (path: string, value: string) => void;
removeItem: (path: string, index: number) => void; removeItem: (path: string, index: number) => void;
cleanKey: (path: string, key: string) => void; cleanKey: (path: string, key: string) => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -6,4 +6,4 @@ export default function render(props: WebComponentProps<EntityDict, 'extraFile',
avatarUrl?: string; avatarUrl?: string;
}, { }, {
onPickByWeb: (files: File[]) => void; onPickByWeb: (files: File[]) => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -1 +1 @@
export default function render(): import("react/jsx-runtime").JSX.Element; export default function render(): JSX.Element;

View File

@ -19,5 +19,5 @@ export default function render(props: WebComponentProps<EntityDict, "extraFile",
closeModal: () => void; closeModal: () => void;
onModal1Confirm: (value: number) => void; onModal1Confirm: (value: number) => void;
setSelectedId: (id: number) => void; setSelectedId: (id: number) => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;
export {}; export {};

View File

@ -33,5 +33,5 @@ export default function render(props: WebComponentProps<EntityDict, "extraFile",
getUrl: (extraFile: EntityDict['extraFile']['OpSchema']) => string; getUrl: (extraFile: EntityDict['extraFile']['OpSchema']) => string;
getFileName: (extraFile: EntityDict['extraFile']['OpSchema']) => string; getFileName: (extraFile: EntityDict['extraFile']['OpSchema']) => string;
eFFormatBytes: (value: number) => string; eFFormatBytes: (value: number) => string;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;
export {}; export {};

View File

@ -10,4 +10,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
}>; }>;
}, { }, {
onClick: (action: string) => void; onClick: (action: string) => void;
}>): import("react/jsx-runtime").JSX.Element | null; }>): JSX.Element | null;

View File

@ -10,4 +10,4 @@ export default function render(props: WebComponentProps<EntityDict, 'address', t
resetInitialData: () => void; resetInitialData: () => void;
downloadEnv: () => void; downloadEnv: () => void;
resetEnv: (data: Record<string, any>) => void; resetEnv: (data: Record<string, any>) => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -8,4 +8,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
size?: string; size?: string;
className?: string; className?: string;
style?: React.CSSProperties; style?: React.CSSProperties;
}, {}>): import("react/jsx-runtime").JSX.Element; }, {}>): JSX.Element;

View File

@ -11,4 +11,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'message', f
router: EntityDict['message']['Schema']['router']; router: EntityDict['message']['Schema']['router'];
visitState: EntityDict['message']['Schema']['visitState']; visitState: EntityDict['message']['Schema']['visitState'];
id: string; id: string;
}, {}>): import("react/jsx-runtime").JSX.Element; }, {}>): JSX.Element;

View File

@ -10,4 +10,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'message', f
router: EntityDict['message']['Schema']['router']; router: EntityDict['message']['Schema']['router'];
}, { }, {
goPage: () => void; goPage: () => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -10,4 +10,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'message', f
router: EntityDict['message']['Schema']['router']; router: EntityDict['message']['Schema']['router'];
}, { }, {
goPage: () => void; goPage: () => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -4,4 +4,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'message', t
messages: EntityDict['message']['Schema'][]; messages: EntityDict['message']['Schema'][];
}, { }, {
goDetailById: (id: string) => void; goDetailById: (id: string) => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -4,4 +4,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'message', t
messages: RowWithActions<EntityDict, 'message'>[]; messages: RowWithActions<EntityDict, 'message'>[];
}, { }, {
goDetailById: (id: string) => void; goDetailById: (id: string) => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -3,4 +3,4 @@ export default function render(props: {
data: { data: {
data: MessageProps; data: MessageProps;
}; };
}): import("react/jsx-runtime").JSX.Element; }): JSX.Element;

View File

@ -5,4 +5,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'messageType
dirtyIds: string[]; dirtyIds: string[];
messageTypes: string[]; messageTypes: string[];
applicationId: string; applicationId: string;
}, {}>): import("react/jsx-runtime").JSX.Element; }, {}>): JSX.Element;

View File

@ -9,4 +9,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'token', fal
iconName?: string; iconName?: string;
iconLarger?: string; iconLarger?: string;
onClick?: () => void; onClick?: () => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -13,4 +13,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'token', fal
}, { }, {
logout: () => void; logout: () => void;
updateAttribute: (attr: string, value: any) => Promise<void>; updateAttribute: (attr: string, value: any) => Promise<void>;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -13,4 +13,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'token', fal
}, { }, {
logout: () => void; logout: () => void;
updateAttribute: (attr: string, value: any) => Promise<void>; updateAttribute: (attr: string, value: any) => Promise<void>;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -8,4 +8,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
style?: React.CSSProperties; style?: React.CSSProperties;
}, { }, {
goMessageList: () => void; goMessageList: () => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -10,4 +10,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
buttonClassName?: string; buttonClassName?: string;
}, { }, {
goMessageList: () => void; goMessageList: () => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -6,4 +6,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'userEntityG
url: string; url: string;
expiresAt: number; expiresAt: number;
title?: string; title?: string;
}, {}>): import("react/jsx-runtime").JSX.Element; }, {}>): JSX.Element;

View File

@ -4,4 +4,4 @@ export default function render(props: WebComponentProps<EntityDict, 'parasite',
loading: boolean; loading: boolean;
illegal: boolean; illegal: boolean;
expired: boolean; expired: boolean;
}, {}>): import("react/jsx-runtime").JSX.Element; }, {}>): JSX.Element;

View File

@ -7,4 +7,4 @@ export default function render(props: WebComponentProps<EntityDict, 'parasite',
}, { }, {
cancel: () => void; cancel: () => void;
getQrCode: () => Promise<void>; getQrCode: () => Promise<void>;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -19,4 +19,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'parasite',
onSearch: (value: string) => void; onSearch: (value: string) => void;
onSelect: (value: string) => void; onSelect: (value: string) => void;
setSearchValue: (value: string) => void; setSearchValue: (value: string) => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -16,4 +16,4 @@ export default function render(props: WebComponentProps<EntityDict, 'area', true
setCheckedList: (station: string, flag: boolean) => void; setCheckedList: (station: string, flag: boolean) => void;
cancel: () => void; cancel: () => void;
confirm: () => void; confirm: () => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -3,5 +3,5 @@ interface IProps {
defaultValue?: number | string; defaultValue?: number | string;
onChange: (color: string) => void; onChange: (color: string) => void;
} }
declare const _default: React.MemoExoticComponent<(props: IProps) => import("react/jsx-runtime").JSX.Element>; declare const _default: React.MemoExoticComponent<(props: IProps) => JSX.Element>;
export default _default; export default _default;

View File

@ -9,5 +9,5 @@ interface IProps {
onChange: (value?: any) => void; onChange: (value?: any) => void;
options: IOption[]; options: IOption[];
} }
declare const _default: React.MemoExoticComponent<(props: IProps) => import("react/jsx-runtime").JSX.Element>; declare const _default: React.MemoExoticComponent<(props: IProps) => JSX.Element>;
export default _default; export default _default;

View File

@ -1 +1 @@
export default function Render(this: any): import("react/jsx-runtime").JSX.Element; export default function Render(this: any): JSX.Element;

View File

@ -19,4 +19,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'token', fal
sendCaptcha: (mobile: string) => Promise<void>; sendCaptcha: (mobile: string) => Promise<void>;
loginByMobile: (mobile: string, password?: string, captcha?: string) => Promise<void>; loginByMobile: (mobile: string, password?: string, captcha?: string) => Promise<void>;
setLoginMode: (value: number) => void; setLoginMode: (value: number) => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -17,4 +17,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', true
goUpsert: () => void; goUpsert: () => void;
confirmDelete: (id: string) => Promise<void>; confirmDelete: (id: string) => Promise<void>;
goUpdate: (id: string) => void; goUpdate: (id: string) => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -11,4 +11,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', true
goUpsert: () => void; goUpsert: () => void;
goUpdate: (id: string) => void; goUpdate: (id: string) => void;
confirmDelete: (id: string) => Promise<void>; confirmDelete: (id: string) => Promise<void>;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -1 +1 @@
export default function render(this: any): import("react/jsx-runtime").JSX.Element; export default function render(this: any): JSX.Element;

View File

@ -11,4 +11,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'mobile', fa
onMobileChange: (value: string) => Promise<void>; onMobileChange: (value: string) => Promise<void>;
onConfirm: () => Promise<void>; onConfirm: () => Promise<void>;
onReset: () => void; onReset: () => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -13,4 +13,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'mobile', fa
onMobileChange: (value: string) => Promise<void>; onMobileChange: (value: string) => Promise<void>;
onConfirm: () => Promise<void>; onConfirm: () => Promise<void>;
onReset: () => void; onReset: () => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -8,4 +8,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
}, { }, {
onConfirm: () => Promise<void>; onConfirm: () => Promise<void>;
onReset: () => void; onReset: () => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -8,4 +8,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
}, { }, {
onConfirm: () => Promise<void>; onConfirm: () => Promise<void>;
onReset: () => void; onReset: () => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -14,5 +14,5 @@ export default function render(props: WebComponentProps<EntityDict, 'userEntityG
setInit: () => void; setInit: () => void;
setPeriod: (p: number) => void; setPeriod: (p: number) => void;
setUnit: (u: Unit) => void; setUnit: (u: Unit) => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;
export {}; export {};

View File

@ -18,5 +18,5 @@ export default function render(props: WebComponentProps<EntityDict, 'userEntityG
setInit: () => void; setInit: () => void;
setPeriod: (p: number) => void; setPeriod: (p: number) => void;
setUnit: (u: Unit) => void; setUnit: (u: Unit) => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;
export {}; export {};

View File

@ -8,4 +8,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
}[]; }[];
}, { }, {
onRelationChange: (relation: EntityDict['relation']['OpSchema'], checked: boolean) => void; onRelationChange: (relation: EntityDict['relation']['OpSchema'], checked: boolean) => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -8,4 +8,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
}[]; }[];
}, { }, {
onRelationChange: (relation: EntityDict['relation']['OpSchema'], checked: boolean) => void; onRelationChange: (relation: EntityDict['relation']['OpSchema'], checked: boolean) => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -15,4 +15,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
onMobileChange: (value: string) => Promise<void>; onMobileChange: (value: string) => Promise<void>;
onConfirm: () => Promise<void>; onConfirm: () => Promise<void>;
onReset: () => void; onReset: () => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -16,4 +16,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
onMobileChange: (value: string) => Promise<void>; onMobileChange: (value: string) => Promise<void>;
onConfirm: () => Promise<void>; onConfirm: () => Promise<void>;
onReset: () => void; onReset: () => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -11,4 +11,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'relation',
entityId: string; entityId: string;
relations: EntityDict['relation']['OpSchema'][]; relations: EntityDict['relation']['OpSchema'][];
qrCodeType?: QrCodeType; qrCodeType?: QrCodeType;
}, {}>): import("react/jsx-runtime").JSX.Element; }, {}>): JSX.Element;

View File

@ -6,4 +6,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'wechatLogin
loading: boolean; loading: boolean;
successed: boolean; successed: boolean;
type: EntityDict['wechatLogin']['Schema']['type']; type: EntityDict['wechatLogin']['Schema']['type'];
}, {}>): import("react/jsx-runtime").JSX.Element; }, {}>): JSX.Element;

View File

@ -2,4 +2,4 @@ import { EntityDict } from '../../../oak-app-domain';
import { WebComponentProps } from 'oak-frontend-base'; import { WebComponentProps } from 'oak-frontend-base';
export default function Render(props: WebComponentProps<EntityDict, 'wechatUser', true, { export default function Render(props: WebComponentProps<EntityDict, 'wechatUser', true, {
wechatUsers: EntityDict['wechatUser']['Schema'][]; wechatUsers: EntityDict['wechatUser']['Schema'][];
}, {}>): import("react/jsx-runtime").JSX.Element; }, {}>): JSX.Element;

View File

@ -4,4 +4,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'wechatUser'
wechatLoginId: string; wechatLoginId: string;
qrCodeUrl: string; qrCodeUrl: string;
loading: boolean; loading: boolean;
}, {}>): import("react/jsx-runtime").JSX.Element; }, {}>): JSX.Element;

View File

@ -17,4 +17,5 @@ export interface Schema extends EntityShape {
sort?: Float<22, 10>; sort?: Float<22, 10>;
fileType?: String<128>; fileType?: String<128>;
isBridge?: Boolean; isBridge?: Boolean;
uploadMeta?: Object;
} }

View File

@ -22,6 +22,7 @@ var entityDesc = {
sort: '排序', sort: '排序',
fileType: '文件类型', fileType: '文件类型',
isBridge: '是否桥接访问', isBridge: '是否桥接访问',
uploadMeta: '上传需要的metadata',
}, },
v: { v: {
origin: { origin: {

1
lib/index.d.ts vendored
View File

@ -13,3 +13,4 @@ export { BackendRuntimeContext } from './context/BackendRuntimeContext';
export { FrontendRuntimeContext, SerializedData, } from './context/FrontendRuntimeContext'; export { FrontendRuntimeContext, SerializedData, } from './context/FrontendRuntimeContext';
export { RuntimeContext } from './context/RuntimeContext'; export { RuntimeContext } from './context/RuntimeContext';
export { registerWechatPublicTags } from './config/constants'; export { registerWechatPublicTags } from './config/constants';
export { registerUploader } from './utils/uploader';

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.registerWechatPublicTags = exports.FrontendRuntimeContext = exports.BackendRuntimeContext = exports.getStreamObj = exports.getPlayBackUrl = exports.getLivestream = exports.decomposeFileUrl = exports.composeFileUrl = exports.registerWeChatPublicEventCallback = exports.registerMessageNotificationConverters = void 0; exports.registerUploader = exports.registerWechatPublicTags = exports.FrontendRuntimeContext = exports.BackendRuntimeContext = exports.getStreamObj = exports.getPlayBackUrl = exports.getLivestream = exports.decomposeFileUrl = exports.composeFileUrl = exports.registerWeChatPublicEventCallback = exports.registerMessageNotificationConverters = void 0;
var tslib_1 = require("tslib"); var tslib_1 = require("tslib");
// export * from './exceptionHandlers'; // export * from './exceptionHandlers';
var message_1 = require("./triggers/message"); var message_1 = require("./triggers/message");
@ -24,3 +24,5 @@ var FrontendRuntimeContext_1 = require("./context/FrontendRuntimeContext");
Object.defineProperty(exports, "FrontendRuntimeContext", { enumerable: true, get: function () { return FrontendRuntimeContext_1.FrontendRuntimeContext; } }); Object.defineProperty(exports, "FrontendRuntimeContext", { enumerable: true, get: function () { return FrontendRuntimeContext_1.FrontendRuntimeContext; } });
var constants_1 = require("./config/constants"); var constants_1 = require("./config/constants");
Object.defineProperty(exports, "registerWechatPublicTags", { enumerable: true, get: function () { return constants_1.registerWechatPublicTags; } }); Object.defineProperty(exports, "registerWechatPublicTags", { enumerable: true, get: function () { return constants_1.registerWechatPublicTags; } });
var uploader_1 = require("./utils/uploader");
Object.defineProperty(exports, "registerUploader", { enumerable: true, get: function () { return uploader_1.registerUploader; } });

View File

@ -25,6 +25,7 @@ export declare type OpSchema = EntityShape & {
sort?: Float<22, 10> | null; sort?: Float<22, 10> | null;
fileType?: String<128> | null; fileType?: String<128> | null;
isBridge?: Boolean | null; isBridge?: Boolean | null;
uploadMeta?: Object | null;
}; };
export declare type OpAttr = keyof OpSchema; export declare type OpAttr = keyof OpSchema;
export declare type Schema = EntityShape & { export declare type Schema = EntityShape & {
@ -44,6 +45,7 @@ export declare type Schema = EntityShape & {
sort?: Float<22, 10> | null; sort?: Float<22, 10> | null;
fileType?: String<128> | null; fileType?: String<128> | null;
isBridge?: Boolean | null; isBridge?: Boolean | null;
uploadMeta?: Object | null;
article?: Article.Schema; article?: Article.Schema;
articleMenu?: ArticleMenu.Schema; articleMenu?: ArticleMenu.Schema;
user?: User.Schema; user?: User.Schema;
@ -71,6 +73,7 @@ declare type AttrFilter = {
sort: Q_NumberValue; sort: Q_NumberValue;
fileType: Q_StringValue; fileType: Q_StringValue;
isBridge: Q_BooleanValue; isBridge: Q_BooleanValue;
uploadMeta: Object;
article: Article.Filter; article: Article.Filter;
articleMenu: ArticleMenu.Filter; articleMenu: ArticleMenu.Filter;
user: User.Filter; user: User.Filter;
@ -99,6 +102,7 @@ export declare type Projection = {
sort?: number; sort?: number;
fileType?: number; fileType?: number;
isBridge?: number; isBridge?: number;
uploadMeta?: number | Object;
article?: Article.Projection; article?: Article.Projection;
articleMenu?: ArticleMenu.Projection; articleMenu?: ArticleMenu.Projection;
user?: User.Projection; user?: User.Projection;

View File

@ -96,6 +96,9 @@ exports.desc = {
}, },
isBridge: { isBridge: {
type: "boolean" type: "boolean"
},
uploadMeta: {
type: "object"
} }
}, },
actionType: "crud", actionType: "crud",

View File

@ -1 +1 @@
{ "name": "文件", "attr": { "origin": "源", "type": "类型", "bucket": "桶", "objectId": "对象编号", "tag1": "标签一", "tag2": "标签二", "filename": "文件名", "md5": "md5", "entity": "关联对象", "entityId": "关联对象id", "extra1": "额外信息", "extension": "后缀名", "size": "文件大小", "sort": "排序", "fileType": "文件类型", "isBridge": "是否桥接访问" }, "v": { "origin": { "qiniu": "七牛云", "unknown": "未知" }, "type": { "image": "图像", "video": "视频", "audio": "音频", "file": "文件" } } } { "name": "文件", "attr": { "origin": "源", "type": "类型", "bucket": "桶", "objectId": "对象编号", "tag1": "标签一", "tag2": "标签二", "filename": "文件名", "md5": "md5", "entity": "关联对象", "entityId": "关联对象id", "extra1": "额外信息", "extension": "后缀名", "size": "文件大小", "sort": "排序", "fileType": "文件类型", "isBridge": "是否桥接访问", "uploadMeta": "上传需要的metadata" }, "v": { "origin": { "qiniu": "七牛云", "unknown": "未知" }, "type": { "image": "图像", "video": "视频", "audio": "音频", "file": "文件" } } }

View File

@ -5,4 +5,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'address', t
}, { }, {
gotoUpsert: (id: string) => void; gotoUpsert: (id: string) => void;
goNewAddress: () => void; goNewAddress: () => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -9,4 +9,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'address', f
}, { }, {
callAreaPicker: () => void; callAreaPicker: () => void;
confirm: () => Promise<void>; confirm: () => Promise<void>;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -8,5 +8,5 @@ export default function render(props: WebComponentProps<EntityDict, 'application
oakId: string; oakId: string;
config: Config; config: Config;
type: AppType; type: AppType;
}, {}>): import("react/jsx-runtime").JSX.Element; }, {}>): JSX.Element;
export {}; export {};

View File

@ -14,5 +14,5 @@ export default function Render(props: WebComponentProps<EntityDict, 'application
}, { }, {
onTabClick: (key: string) => void; onTabClick: (key: string) => void;
goWechatPublicTagList: () => void; goWechatPublicTagList: () => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;
export {}; export {};

View File

@ -12,4 +12,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'application
goSetConfig: (id: string) => void; goSetConfig: (id: string) => void;
goUpdate: (id: string) => void; goUpdate: (id: string) => void;
removeApplication: (id: string) => void; removeApplication: (id: string) => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -15,4 +15,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'application
style: EntityDict['system']['Schema']['style']; style: EntityDict['system']['Schema']['style'];
}, { }, {
confirm: () => void; confirm: () => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -4,4 +4,4 @@ export default function render(props: WebComponentProps<EntityDict, 'mobile', tr
showBack: boolean; showBack: boolean;
userId: string; userId: string;
currentUserId: string; currentUserId: string;
}, {}>): import("react/jsx-runtime").JSX.Element; }, {}>): JSX.Element;

View File

@ -4,4 +4,4 @@ export default function render(props: WebComponentProps<EntityDict, 'mobile', tr
showBack: boolean; showBack: boolean;
userId: string; userId: string;
currentUserId: string; currentUserId: string;
}, {}>): import("react/jsx-runtime").JSX.Element; }, {}>): JSX.Element;

View File

@ -11,4 +11,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'domain', fa
system: EntityDict['system']['Schema']; system: EntityDict['system']['Schema'];
}, { }, {
onTabClick: (key: string) => void; onTabClick: (key: string) => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -10,4 +10,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'domain', tr
goDetail: (id: string) => void; goDetail: (id: string) => void;
goCreate: () => void; goCreate: () => void;
goUpdate: (id: string) => void; goUpdate: (id: string) => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -11,4 +11,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'domain', fa
showBack: boolean; showBack: boolean;
}, { }, {
confirm: () => void; confirm: () => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

View File

@ -1,3 +1,3 @@
import { EntityDict } from '../../oak-app-domain'; import { EntityDict } from '../../oak-app-domain';
import { WebComponentProps } from 'oak-frontend-base'; import { WebComponentProps } from 'oak-frontend-base';
export default function Render(props: WebComponentProps<EntityDict, 'token', true, {}, {}>): import("react/jsx-runtime").JSX.Element; export default function Render(props: WebComponentProps<EntityDict, 'token', true, {}, {}>): JSX.Element;

View File

@ -10,4 +10,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'message', f
router: EntityDict['message']['Schema']['router']; router: EntityDict['message']['Schema']['router'];
}, { }, {
goPage: () => void; goPage: () => void;
}>): import("react/jsx-runtime").JSX.Element; }>): JSX.Element;

Some files were not shown because too many files have changed in this diff Show More