lib
This commit is contained in:
parent
d0ad33c959
commit
425d250ea2
|
|
@ -37,5 +37,5 @@ export declare type Poi = {
|
|||
email?: string;
|
||||
businessArea?: string;
|
||||
};
|
||||
declare const Location: (props: LocationProps) => JSX.Element;
|
||||
declare const Location: (props: LocationProps) => import("react/jsx-runtime").JSX.Element;
|
||||
export default Location;
|
||||
|
|
|
|||
|
|
@ -29,5 +29,5 @@ export interface AMapProps extends APILoaderProps {
|
|||
securityJsCode?: string;
|
||||
serviceHost?: string;
|
||||
}
|
||||
declare const memo: (props: AMapProps) => JSX.Element;
|
||||
declare const memo: (props: AMapProps) => import("react/jsx-runtime").JSX.Element;
|
||||
export default memo;
|
||||
|
|
|
|||
|
|
@ -7,4 +7,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'article', f
|
|||
name: string;
|
||||
width: string;
|
||||
editor: any;
|
||||
}, {}>): JSX.Element;
|
||||
}, {}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -8,4 +8,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'article', f
|
|||
content?: string;
|
||||
html?: string;
|
||||
origin?: string;
|
||||
}, {}>): JSX.Element;
|
||||
}, {}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -8,4 +8,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'article', f
|
|||
content?: string;
|
||||
html?: string;
|
||||
origin?: string;
|
||||
}, {}>): JSX.Element;
|
||||
}, {}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -12,4 +12,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'articleMenu
|
|||
openArray: string[];
|
||||
}, {
|
||||
createOne: () => Promise<void>;
|
||||
}>): JSX.Element | null;
|
||||
}>): import("react/jsx-runtime").JSX.Element | null;
|
||||
|
|
|
|||
|
|
@ -25,4 +25,4 @@ export default function Render(props: WebComponentProps<EntityDict, "article", f
|
|||
}>;
|
||||
clearContentTip: () => void;
|
||||
gotoPreview: (content?: string, title?: string) => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -21,4 +21,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'articleMenu
|
|||
createSubArticle: (name: string) => Promise<void>;
|
||||
createSubArticleMenu: (name: string) => Promise<void>;
|
||||
gotoDoc: (articleMenuId: string) => void;
|
||||
}>): JSX.Element | null;
|
||||
}>): import("react/jsx-runtime").JSX.Element | null;
|
||||
|
|
|
|||
|
|
@ -18,4 +18,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'articleMenu
|
|||
}, {
|
||||
createOne: (name?: string) => Promise<void>;
|
||||
getDefaultArticle: (rows: EntityDict['articleMenu']['OpSchema'][]) => void;
|
||||
}>): JSX.Element | null;
|
||||
}>): import("react/jsx-runtime").JSX.Element | null;
|
||||
|
|
|
|||
|
|
@ -9,4 +9,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'articleMenu
|
|||
}, {
|
||||
gotoDoc: () => void;
|
||||
gotoArticleDetail: (oakId: string) => void;
|
||||
}>): JSX.Element | null;
|
||||
}>): import("react/jsx-runtime").JSX.Element | null;
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@ import { WebComponentProps } from 'oak-frontend-base';
|
|||
import { EntityDict } from '../../general-app-domain';
|
||||
export default function Render(props: WebComponentProps<EntityDict, 'message', false, {
|
||||
user: EntityDict['user']['Schema'];
|
||||
}, {}>): JSX.Element;
|
||||
}, {}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ declare type IDownloadProps = {
|
|||
style?: React.CSSProperties;
|
||||
filename?: string;
|
||||
};
|
||||
declare function Download(props: IDownloadProps): JSX.Element;
|
||||
declare function Download(props: IDownloadProps): import("react/jsx-runtime").JSX.Element;
|
||||
declare namespace Download {
|
||||
var onDownload: (arrayBuffer: ArrayBuffer, filename: string) => void;
|
||||
var base64ToBlob: (base64String: string) => Blob;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
import './index.less';
|
||||
declare const Empty: () => JSX.Element;
|
||||
declare const Empty: () => import("react/jsx-runtime").JSX.Element;
|
||||
export default Empty;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
import './index.less';
|
||||
declare const Empty: () => JSX.Element;
|
||||
declare const Empty: () => import("react/jsx-runtime").JSX.Element;
|
||||
export default Empty;
|
||||
|
|
|
|||
|
|
@ -15,5 +15,5 @@ interface IErrorPageProps {
|
|||
children?: React.ReactNode;
|
||||
icon?: React.ReactNode;
|
||||
}
|
||||
declare function ErrorPage(props: IErrorPageProps): JSX.Element;
|
||||
declare function ErrorPage(props: IErrorPageProps): import("react/jsx-runtime").JSX.Element;
|
||||
export default ErrorPage;
|
||||
|
|
|
|||
|
|
@ -15,5 +15,5 @@ declare type GridProps = {
|
|||
list: Array<Item>;
|
||||
onChange?: (index: number, event?: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
||||
};
|
||||
declare const _default: React.MemoExoticComponent<(props: GridProps) => JSX.Element>;
|
||||
declare const _default: React.MemoExoticComponent<(props: GridProps) => import("react/jsx-runtime").JSX.Element>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -17,5 +17,5 @@ declare type PageHeaderProps = {
|
|||
children?: React.ReactNode;
|
||||
showHeader?: boolean;
|
||||
};
|
||||
declare const _default: React.MemoExoticComponent<(props: PageHeaderProps) => JSX.Element>;
|
||||
declare const _default: React.MemoExoticComponent<(props: PageHeaderProps) => import("react/jsx-runtime").JSX.Element>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -14,5 +14,5 @@ declare type IQrCodeProps = {
|
|||
successed?: boolean;
|
||||
type?: EntityDict['wechatLogin']['Schema']['type'];
|
||||
};
|
||||
declare function QrCode(props: IQrCodeProps): JSX.Element;
|
||||
declare function QrCode(props: IQrCodeProps): import("react/jsx-runtime").JSX.Element;
|
||||
export default QrCode;
|
||||
|
|
|
|||
|
|
@ -5,5 +5,5 @@ declare type Props = {
|
|||
description?: string;
|
||||
children?: React.ReactNode;
|
||||
};
|
||||
declare const _default: React.MemoExoticComponent<(props: Props) => JSX.Element>;
|
||||
declare const _default: React.MemoExoticComponent<(props: Props) => import("react/jsx-runtime").JSX.Element>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -5,5 +5,5 @@ declare type Props = {
|
|||
description?: string;
|
||||
children?: React.ReactNode;
|
||||
};
|
||||
declare const _default: React.MemoExoticComponent<(props: Props) => JSX.Element>;
|
||||
declare const _default: React.MemoExoticComponent<(props: Props) => import("react/jsx-runtime").JSX.Element>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -14,5 +14,5 @@ interface GrantProps {
|
|||
rootStyle?: React.CSSProperties;
|
||||
rootClassName?: string;
|
||||
}
|
||||
declare function Grant(props: GrantProps): JSX.Element;
|
||||
declare function Grant(props: GrantProps): import("react/jsx-runtime").JSX.Element;
|
||||
export default Grant;
|
||||
|
|
|
|||
|
|
@ -14,5 +14,5 @@ interface QrCodeProps {
|
|||
rootStyle?: React.CSSProperties;
|
||||
rootClassName?: string;
|
||||
}
|
||||
declare function QrCode(props: QrCodeProps): JSX.Element;
|
||||
declare function QrCode(props: QrCodeProps): import("react/jsx-runtime").JSX.Element;
|
||||
export default QrCode;
|
||||
|
|
|
|||
|
|
@ -15,5 +15,5 @@ export default function render(props: WebComponentProps<EntityDict, 'user', fals
|
|||
setValue: (path: string, value: string) => void;
|
||||
removeItem: (path: string, index: number) => void;
|
||||
cleanKey: (path: string, key: string) => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
export {};
|
||||
|
|
|
|||
|
|
@ -4,4 +4,4 @@ export default function Web(props: {
|
|||
setValue: (path: string, value: any) => void;
|
||||
removeItem: (path: string, index: number) => void;
|
||||
cleanKey: (path: string, key: string) => void;
|
||||
}): JSX.Element;
|
||||
}): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -4,4 +4,4 @@ export default function WechatMp(props: {
|
|||
setValue: (path: string, value: any) => void;
|
||||
removeItem: (path: string, index: number) => void;
|
||||
cleanKey: (path: string, key: string) => void;
|
||||
}): JSX.Element;
|
||||
}): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -5,4 +5,4 @@ export default function WechatPublic(props: {
|
|||
setValue: (path: string, value: any) => void;
|
||||
removeItem: (path: string, index: number) => void;
|
||||
cleanKey: (path: string, key: string) => void;
|
||||
}): JSX.Element;
|
||||
}): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -3,5 +3,5 @@ declare type StyleProps = {
|
|||
value?: StyleType | null;
|
||||
onChange: (value: StyleType) => void;
|
||||
};
|
||||
export default function Render(props: StyleProps): JSX.Element;
|
||||
export default function Render(props: StyleProps): import("react/jsx-runtime").JSX.Element;
|
||||
export {};
|
||||
|
|
|
|||
|
|
@ -3,4 +3,4 @@ export default function Account(props: {
|
|||
account: Required<Config>['Account'];
|
||||
setValue: (path: string, value: any) => void;
|
||||
removeItem: (path: string, index: number) => void;
|
||||
}): JSX.Element;
|
||||
}): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@ import { Config } from '../../../../types/Config';
|
|||
export default function Cos(props: {
|
||||
cos: Required<Config>['Cos'];
|
||||
setValue: (path: string, value: any) => void;
|
||||
}): JSX.Element;
|
||||
}): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@ import { Config } from '../../../../types/Config';
|
|||
export default function Cos(props: {
|
||||
live: Required<Config>['Live'];
|
||||
setValue: (path: string, value: any) => void;
|
||||
}): JSX.Element;
|
||||
}): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@ import { Config } from '../../../../types/Config';
|
|||
export default function Cos(props: {
|
||||
map: Required<Config>['Map'];
|
||||
setValue: (path: string, value: any) => void;
|
||||
}): JSX.Element;
|
||||
}): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -4,4 +4,4 @@ export default function Sms(props: {
|
|||
setValue: (path: string, value: any) => void;
|
||||
removeItem: (path: string, index: number) => void;
|
||||
cleanKey: (path: string, key: string) => void;
|
||||
}): JSX.Element;
|
||||
}): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -12,4 +12,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
|
|||
setValue: (path: string, value: string) => void;
|
||||
removeItem: (path: string, index: number) => void;
|
||||
cleanKey: (path: string, key: string) => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@ export default function render(props: WebComponentProps<EntityDict, 'extraFile',
|
|||
avatarUrl?: string;
|
||||
}, {
|
||||
onPickByWeb: (files: File[]) => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
export default function render(): JSX.Element;
|
||||
export default function render(): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -19,5 +19,5 @@ export default function render(props: WebComponentProps<EntityDict, "extraFile",
|
|||
closeModal: () => void;
|
||||
onModal1Confirm: (value: number) => void;
|
||||
setSelectedId: (id: number) => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
export {};
|
||||
|
|
|
|||
|
|
@ -27,5 +27,5 @@ export default function render(props: WebComponentProps<EntityDict, "extraFile",
|
|||
}, {
|
||||
onPickByWeb: (files: UploadFile[], callback?: (file: any, status: string) => void) => void;
|
||||
onDeleteByWeb: (file: UploadFile) => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
export {};
|
||||
|
|
|
|||
|
|
@ -10,4 +10,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
|
|||
}>;
|
||||
}, {
|
||||
onClick: (action: string) => void;
|
||||
}>): JSX.Element | null;
|
||||
}>): import("react/jsx-runtime").JSX.Element | null;
|
||||
|
|
|
|||
|
|
@ -10,4 +10,4 @@ export default function render(props: WebComponentProps<EntityDict, 'address', t
|
|||
resetInitialData: () => void;
|
||||
downloadEnv: () => void;
|
||||
resetEnv: (data: Record<string, any>) => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -8,4 +8,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
|
|||
size?: string;
|
||||
className?: string;
|
||||
style?: React.CSSProperties;
|
||||
}, {}>): JSX.Element;
|
||||
}, {}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -11,4 +11,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'message', f
|
|||
router: EntityDict['message']['Schema']['router'];
|
||||
visitState: EntityDict['message']['Schema']['visitState'];
|
||||
id: string;
|
||||
}, {}>): JSX.Element;
|
||||
}, {}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -3,4 +3,4 @@ export default function render(props: {
|
|||
data: {
|
||||
data: MessageProps;
|
||||
};
|
||||
}): JSX.Element;
|
||||
}): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -5,4 +5,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'messageType
|
|||
dirtyIds: string[];
|
||||
messageTypes: string[];
|
||||
applicationId: string;
|
||||
}, {}>): JSX.Element;
|
||||
}, {}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -9,4 +9,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'token', fal
|
|||
iconName?: string;
|
||||
iconLarger?: string;
|
||||
onClick?: () => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -13,4 +13,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'token', fal
|
|||
}, {
|
||||
logout: () => void;
|
||||
updateAttribute: (attr: string, value: any) => Promise<void>;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -13,4 +13,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'token', fal
|
|||
}, {
|
||||
logout: () => void;
|
||||
updateAttribute: (attr: string, value: any) => Promise<void>;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -8,4 +8,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
|
|||
style?: React.CSSProperties;
|
||||
}, {
|
||||
goMessageList: () => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -10,4 +10,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
|
|||
buttonClassName?: string;
|
||||
}, {
|
||||
goMessageList: () => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
|
||||
|
||||
.container {
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
|
@ -8,4 +8,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'userEntityG
|
|||
title?: string;
|
||||
}, {
|
||||
copy: (text: string) => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -1,11 +0,0 @@
|
|||
import { WebComponentProps } from 'oak-frontend-base';
|
||||
import { EntityDict } from '../../../general-app-domain';
|
||||
export default function Render(props: WebComponentProps<EntityDict, 'userEntityGrant', true, {
|
||||
showBack: boolean;
|
||||
variant: 'alone' | 'inline' | 'dialog';
|
||||
url: string;
|
||||
expiresAt: number;
|
||||
title?: string;
|
||||
}, {
|
||||
copy: (text: string) => void;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var tslib_1 = require("tslib");
|
||||
var jsx_runtime_1 = require("react/jsx-runtime");
|
||||
var qrCode_1 = tslib_1.__importDefault(require("../../../components/common/qrCode"));
|
||||
var antd_1 = require("antd");
|
||||
var icons_1 = require("@ant-design/icons");
|
||||
function Render(props) {
|
||||
var _a = props.data, url = _a.url, expiresAt = _a.expiresAt, oakLoading = _a.oakLoading;
|
||||
var copy = props.methods.copy;
|
||||
return oakLoading ? ((0, jsx_runtime_1.jsx)("div", tslib_1.__assign({ style: {
|
||||
display: 'flex',
|
||||
justifyContent: 'center',
|
||||
padding: '48px',
|
||||
} }, { children: (0, jsx_runtime_1.jsx)(antd_1.Spin, { size: "large" }) }))) : ((0, jsx_runtime_1.jsxs)("div", tslib_1.__assign({ style: {
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
padding: '48px',
|
||||
} }, { children: [(0, jsx_runtime_1.jsx)(qrCode_1.default, { url: url, expiresAt: expiresAt }), (0, jsx_runtime_1.jsxs)("div", tslib_1.__assign({ style: {
|
||||
display: 'flex',
|
||||
flexDirection: 'row',
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
} }, { children: [url, (0, jsx_runtime_1.jsx)(antd_1.Button, tslib_1.__assign({ type: "text", icon: (0, jsx_runtime_1.jsx)(icons_1.CopyOutlined, {}), onClick: function () { return copy(url); } }, { children: "\u590D\u5236\u94FE\u63A5" }))] }))] })));
|
||||
}
|
||||
exports.default = Render;
|
||||
|
|
@ -4,4 +4,4 @@ export default function render(props: WebComponentProps<EntityDict, 'parasite',
|
|||
loading: boolean;
|
||||
illegal: boolean;
|
||||
expired: boolean;
|
||||
}, {}>): JSX.Element;
|
||||
}, {}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -2,12 +2,9 @@ import { WebComponentProps, RowWithActions } from 'oak-frontend-base';
|
|||
import { EntityDict } from '../../../general-app-domain';
|
||||
export default function render(props: WebComponentProps<EntityDict, 'parasite', true, {
|
||||
searchValue: string;
|
||||
nameLabel: string;
|
||||
list: RowWithActions<EntityDict, 'userEntityGrant'>[];
|
||||
showBack: boolean;
|
||||
variant?: 'inline' | 'alone' | 'dialog';
|
||||
qrCodeUrl: string;
|
||||
qrCodeExpiresAt: number;
|
||||
}, {
|
||||
cancel: () => void;
|
||||
getQrCode: () => Promise<void>;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ var detail_1 = tslib_1.__importDefault(require("../detail"));
|
|||
var react_1 = require("react");
|
||||
function render(props) {
|
||||
var _this = this;
|
||||
var _a = props.data, oakPagination = _a.oakPagination, oakFullpath = _a.oakFullpath, _b = _a.list, list = _b === void 0 ? [] : _b, oakLoading = _a.oakLoading;
|
||||
var _a = props.data, oakPagination = _a.oakPagination, oakFullpath = _a.oakFullpath, _b = _a.list, list = _b === void 0 ? [] : _b, oakLoading = _a.oakLoading, nameLabel = _a.nameLabel;
|
||||
var _c = oakPagination || {}, pageSize = _c.pageSize, total = _c.total, currentPage = _c.currentPage;
|
||||
var _d = props.methods, t = _d.t, setPageSize = _d.setPageSize, setCurrentPage = _d.setCurrentPage, updateItem = _d.updateItem, execute = _d.execute, getQrCode = _d.getQrCode;
|
||||
var _e = tslib_1.__read((0, react_1.useState)(false), 2), qrCodeOpen = _e[0], setQrCodeOpen = _e[1];
|
||||
|
|
@ -24,9 +24,9 @@ function render(props) {
|
|||
},
|
||||
{
|
||||
dataIndex: ['user', 'nickname'],
|
||||
title: '姓名',
|
||||
title: nameLabel || '名称',
|
||||
render: function (value, record, index) {
|
||||
return value || '--';
|
||||
return value !== 'shadow_user' && value || '--';
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,5 +11,6 @@ declare const _default: (props: import("oak-frontend-base").ReactComponentProps<
|
|||
} | undefined;
|
||||
multiple: boolean;
|
||||
nameLabel: string;
|
||||
nameRequired: boolean;
|
||||
}>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ exports.default = OakComponent({
|
|||
redirectTo: undefined,
|
||||
multiple: false,
|
||||
nameLabel: '',
|
||||
nameRequired: true
|
||||
},
|
||||
lifetimes: {
|
||||
ready: function () { },
|
||||
|
|
@ -136,15 +137,21 @@ exports.default = OakComponent({
|
|||
},
|
||||
confirm: function () {
|
||||
var _a, _b;
|
||||
var _c = this.props, entityId = _c.entityId, entity = _c.entity, redirectTo = _c.redirectTo, relation = _c.relation, multiple = _c.multiple;
|
||||
var _c = this.props, entityId = _c.entityId, entity = _c.entity, redirectTo = _c.redirectTo, relation = _c.relation, multiple = _c.multiple, nameRequired = _c.nameRequired;
|
||||
var _d = this.state, period = _d.period, userId = _d.userId, searchValue = _d.searchValue;
|
||||
var nickname = searchValue;
|
||||
var time = period * 24 * 60 * 60 * 1000;
|
||||
if (!userId && !searchValue) {
|
||||
this.setMessage({
|
||||
type: 'error',
|
||||
content: '请输入名称',
|
||||
});
|
||||
return;
|
||||
if (nameRequired) {
|
||||
if (!userId && !searchValue) {
|
||||
this.setMessage({
|
||||
type: 'error',
|
||||
content: '请输入名称',
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
else {
|
||||
nickname = 'shadow_user';
|
||||
}
|
||||
if (!period) {
|
||||
this.setMessage({
|
||||
|
|
@ -167,7 +174,7 @@ exports.default = OakComponent({
|
|||
action: 'create',
|
||||
data: (_a = {
|
||||
id: (0, uuid_1.generateNewId)(),
|
||||
nickname: searchValue
|
||||
nickname: nickname
|
||||
},
|
||||
_a["".concat(userRelationRelativePath)] = [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
.container {
|
||||
display: flex;
|
||||
}
|
||||
|
|
@ -18,4 +18,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'parasite',
|
|||
onSearch: (value: string) => void;
|
||||
onSelect: (value: string) => void;
|
||||
setSearchValue: (value: string) => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -1,20 +0,0 @@
|
|||
import { WebComponentProps } from 'oak-frontend-base';
|
||||
import { EntityDict } from '../../../general-app-domain';
|
||||
export default function Render(props: WebComponentProps<EntityDict, 'parasite', false, {
|
||||
entity: keyof EntityDict;
|
||||
entityId: string;
|
||||
relation: string;
|
||||
period: number;
|
||||
parasiteId: string;
|
||||
options: {
|
||||
value: string;
|
||||
}[];
|
||||
}, {
|
||||
search: (value: string) => void;
|
||||
setPeriod: (period: number) => void;
|
||||
confirm: () => void;
|
||||
setInit: () => void;
|
||||
onSearch: (value: string) => void;
|
||||
onSelect: (value: string) => void;
|
||||
setSearchValue: (value: string) => void;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var tslib_1 = require("tslib");
|
||||
var jsx_runtime_1 = require("react/jsx-runtime");
|
||||
var antd_1 = require("antd");
|
||||
var web_module_less_1 = tslib_1.__importDefault(require("./web.module.less"));
|
||||
var detail_1 = tslib_1.__importDefault(require("../detail"));
|
||||
function Render(props) {
|
||||
var methods = props.methods, data = props.data;
|
||||
var _a = props.data, entity = _a.entity, entityId = _a.entityId, relation = _a.relation, period = _a.period, parasiteId = _a.parasiteId, options = _a.options;
|
||||
var setPeriod = methods.setPeriod, confirm = methods.confirm, setInit = methods.setInit, onSelect = methods.onSelect, onSearch = methods.onSearch, setSearchValue = methods.setSearchValue;
|
||||
if (!!parasiteId) {
|
||||
return ((0, jsx_runtime_1.jsxs)("div", tslib_1.__assign({ className: web_module_less_1.default.container }, { children: [(0, jsx_runtime_1.jsx)(detail_1.default, { oakId: parasiteId, oakAutoUnmount: true, oakPath: "$parasite/upsert-parasite/detail" }), (0, jsx_runtime_1.jsx)("div", tslib_1.__assign({ style: {
|
||||
width: '100%',
|
||||
display: 'flex',
|
||||
justifyContent: 'flex-end',
|
||||
} }, { children: (0, jsx_runtime_1.jsx)(antd_1.Button, tslib_1.__assign({ type: "primary", onClick: function () {
|
||||
setInit();
|
||||
} }, { children: "\u91CD\u65B0\u751F\u6210" })) }))] })));
|
||||
}
|
||||
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)("div", tslib_1.__assign({ className: web_module_less_1.default.container }, { children: (0, jsx_runtime_1.jsxs)(antd_1.Form, tslib_1.__assign({ labelCol: { span: 4 }, wrapperCol: { span: 8 } }, { children: [(0, jsx_runtime_1.jsx)(antd_1.Form.Item, tslib_1.__assign({ label: "\u540D\u79F0" }, { children: (0, jsx_runtime_1.jsx)(antd_1.AutoComplete, { options: options, style: { width: 200 }, onSelect: onSelect, onSearch: function (text) { return onSearch(text); }, placeholder: "\u8BF7\u8F93\u5165", onChange: function (value) {
|
||||
setSearchValue(value);
|
||||
} }) })), (0, jsx_runtime_1.jsx)(antd_1.Form.Item, tslib_1.__assign({ label: "\u6709\u6548\u671F" }, { children: (0, jsx_runtime_1.jsx)(antd_1.InputNumber, { min: 1, max: 30, placeholder: "\u8BF7\u8F93\u5165", onChange: function (value) {
|
||||
setPeriod(value);
|
||||
}, value: period, addonAfter: (0, jsx_runtime_1.jsx)(antd_1.Typography, { children: "\u5929" }) }) })), (0, jsx_runtime_1.jsx)(antd_1.Form.Item, tslib_1.__assign({ wrapperCol: { offset: 4 } }, { children: (0, jsx_runtime_1.jsx)(antd_1.Space, { children: (0, jsx_runtime_1.jsx)(antd_1.Button, tslib_1.__assign({ type: "primary", onClick: function () {
|
||||
confirm();
|
||||
} }, { children: "\u63D0\u4EA4" })) }) }))] })) })) }));
|
||||
}
|
||||
exports.default = Render;
|
||||
|
|
@ -16,4 +16,4 @@ export default function render(props: WebComponentProps<EntityDict, 'area', true
|
|||
setCheckedList: (station: string, flag: boolean) => void;
|
||||
cancel: () => void;
|
||||
confirm: () => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -3,5 +3,5 @@ interface IProps {
|
|||
defaultValue?: number | string;
|
||||
onChange: (color: string) => void;
|
||||
}
|
||||
declare const _default: React.MemoExoticComponent<(props: IProps) => JSX.Element>;
|
||||
declare const _default: React.MemoExoticComponent<(props: IProps) => import("react/jsx-runtime").JSX.Element>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -9,5 +9,5 @@ interface IProps {
|
|||
onChange: (value?: any) => void;
|
||||
options: IOption[];
|
||||
}
|
||||
declare const _default: React.MemoExoticComponent<(props: IProps) => JSX.Element>;
|
||||
declare const _default: React.MemoExoticComponent<(props: IProps) => import("react/jsx-runtime").JSX.Element>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
export default function Render(this: any): JSX.Element;
|
||||
export default function Render(this: any): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'wechatLogin
|
|||
loading: boolean;
|
||||
successed: boolean;
|
||||
type: EntityDict['wechatLogin']['Schema']['type'];
|
||||
}, {}>): JSX.Element;
|
||||
}, {}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@ import { EntityDict } from '../../../general-app-domain';
|
|||
import { WebComponentProps } from 'oak-frontend-base';
|
||||
export default function Render(props: WebComponentProps<EntityDict, 'wechatUser', true, {
|
||||
wechatUsers: EntityDict['wechatUser']['Schema'][];
|
||||
}, {}>): JSX.Element;
|
||||
}, {}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -4,4 +4,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'wechatUser'
|
|||
wechatLoginId: string;
|
||||
qrCodeUrl: string;
|
||||
loading: boolean;
|
||||
}, {}>): JSX.Element;
|
||||
}, {}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -5,4 +5,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'address', t
|
|||
}, {
|
||||
gotoUpsert: (id: string) => void;
|
||||
goNewAddress: () => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -9,4 +9,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'address', f
|
|||
}, {
|
||||
callAreaPicker: () => void;
|
||||
confirm: () => Promise<void>;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -8,5 +8,5 @@ export default function render(props: WebComponentProps<EntityDict, 'application
|
|||
oakId: string;
|
||||
config: Config;
|
||||
type: AppType;
|
||||
}, {}>): JSX.Element;
|
||||
}, {}>): import("react/jsx-runtime").JSX.Element;
|
||||
export {};
|
||||
|
|
|
|||
|
|
@ -14,5 +14,5 @@ export default function Render(props: WebComponentProps<EntityDict, 'application
|
|||
}, {
|
||||
onTabClick: (key: string) => void;
|
||||
goWechatPublicTagList: () => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
export {};
|
||||
|
|
|
|||
|
|
@ -12,4 +12,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'application
|
|||
goSetConfig: (id: string) => void;
|
||||
goUpdate: (id: string) => void;
|
||||
removeApplication: (id: string) => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -15,4 +15,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'application
|
|||
style: EntityDict['system']['Schema']['style'];
|
||||
}, {
|
||||
confirm: () => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -3,4 +3,4 @@ import { EntityDict } from '../../general-app-domain';
|
|||
export default function render(props: WebComponentProps<EntityDict, 'mobile', true, {
|
||||
showBack: boolean;
|
||||
userId: string;
|
||||
}, {}>): JSX.Element;
|
||||
}, {}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -11,4 +11,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'domain', fa
|
|||
system: EntityDict['system']['Schema'];
|
||||
}, {
|
||||
onTabClick: (key: string) => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -10,4 +10,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'domain', tr
|
|||
goDetail: (id: string) => void;
|
||||
goCreate: () => void;
|
||||
goUpdate: (id: string) => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -11,4 +11,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'domain', fa
|
|||
showBack: boolean;
|
||||
}, {
|
||||
confirm: () => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
import { EntityDict } from '../../general-app-domain';
|
||||
import { WebComponentProps } from 'oak-frontend-base';
|
||||
export default function Render(props: WebComponentProps<EntityDict, 'token', true, {}, {}>): JSX.Element;
|
||||
export default function Render(props: WebComponentProps<EntityDict, 'token', true, {}, {}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -12,4 +12,4 @@ export default function render(props: WebComponentProps<EntityDict, 'token', fal
|
|||
sendCaptcha: (mobile: string) => Promise<void>;
|
||||
loginByMobileWeb: (mobile: string, loginAgreed: boolean, password?: string, captcha?: string, loginMode?: number) => Promise<void>;
|
||||
goPage: (destination: string) => Promise<void>;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -10,4 +10,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'message', f
|
|||
router: EntityDict['message']['Schema']['router'];
|
||||
}, {
|
||||
goPage: () => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -10,4 +10,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'message', f
|
|||
router: EntityDict['message']['Schema']['router'];
|
||||
}, {
|
||||
goPage: () => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -7,4 +7,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'message', f
|
|||
}, {
|
||||
goDetailById: (id: string) => void;
|
||||
goMessageList: () => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -4,4 +4,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'message', t
|
|||
messages: EntityDict['message']['Schema'][];
|
||||
}, {
|
||||
goDetailById: (id: string) => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -4,4 +4,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'message', t
|
|||
messages: RowWithActions<EntityDict, 'message'>[];
|
||||
}, {
|
||||
goDetailById: (id: string) => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -17,4 +17,4 @@ export default function render(props: WebComponentProps<EntityDict, 'token', fal
|
|||
setMobile: (mobile: string) => void;
|
||||
sendCaptcha: () => Promise<void>;
|
||||
loginByMobile: () => Promise<void>;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -16,4 +16,4 @@ export default function render(props: WebComponentProps<EntityDict, 'token', fal
|
|||
setMobile: (mobile: string) => void;
|
||||
sendCaptcha: () => Promise<void>;
|
||||
loginByMobile: () => Promise<void>;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -5,4 +5,4 @@ export default function render(props: WebComponentProps<EntityDict, 'mobile', tr
|
|||
allowRemove: boolean;
|
||||
}, {
|
||||
goAddMobile: () => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@ export default function render(props: WebComponentProps<EntityDict, 'mobile', tr
|
|||
showBack: boolean;
|
||||
}, {
|
||||
goAddMobile: () => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@ export default function render(props: WebComponentProps<EntityDict, 'article', f
|
|||
abstract?: string;
|
||||
content?: string;
|
||||
html?: string;
|
||||
}, {}>): JSX.Element;
|
||||
}, {}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -13,4 +13,4 @@ export default function render(props: WebComponentProps<EntityDict, 'article', t
|
|||
searchValueChange: (v: string) => Promise<void>;
|
||||
searchConfirm: () => Promise<void>;
|
||||
onRemove: (id: string) => Promise<void>;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -8,4 +8,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'article', f
|
|||
content?: string;
|
||||
html?: string;
|
||||
origin?: string;
|
||||
}, {}>): JSX.Element;
|
||||
}, {}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -21,4 +21,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'article', f
|
|||
url: string;
|
||||
}>;
|
||||
clearContentTip: () => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
export default function Render(): JSX.Element;
|
||||
export default function Render(): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
export default function Render(): JSX.Element;
|
||||
export default function Render(): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -4,4 +4,4 @@ export default function render(props: WebComponentProps<EntityDict, 'area', true
|
|||
areas?: EntityDict['area']['OpSchema'][];
|
||||
}, {
|
||||
onItemClicked: (area: EntityDict['area']['OpSchema']) => Promise<void>;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'platform',
|
|||
description: string;
|
||||
oakId: string;
|
||||
config: Config;
|
||||
}, {}>): JSX.Element;
|
||||
}, {}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -9,4 +9,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'platform',
|
|||
tabValue: 'detail' | 'system_list';
|
||||
}, {
|
||||
onTabClick: (key: string) => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -11,4 +11,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'platform',
|
|||
goCreate: () => void;
|
||||
goSetConfig: (id: string) => void;
|
||||
goUpdate: (id: string) => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'platform',
|
|||
style: EntityDict['system']['Schema']['style'];
|
||||
}, {
|
||||
confirm: () => void;
|
||||
}>): JSX.Element;
|
||||
}>): import("react/jsx-runtime").JSX.Element;
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue