默认导出 react声明,小程序用不到
This commit is contained in:
parent
760b9d4943
commit
0aebc53fc3
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -26,8 +26,6 @@ function customCheckImageFn(src, alt, url) {
|
|||
// 2. 返回一个字符串,说明检查未通过,编辑器会阻止插入。会 alert 出错误信息(即返回的字符串)
|
||||
// 3. 返回 undefined(即没有任何返回),说明检查未通过,编辑器会阻止插入。但不会提示任何信息
|
||||
}
|
||||
//@ts-ignore
|
||||
var CustomOakGallery = gallery_1.default;
|
||||
function render() {
|
||||
var _this = this;
|
||||
var _a = this, t = _a.t, features = _a.features, addExtraFile = _a.addExtraFile;
|
||||
|
|
@ -167,7 +165,7 @@ function render() {
|
|||
}, mode: "default", style: {
|
||||
minHeight: '520px',
|
||||
overflowY: 'hidden',
|
||||
} }), (0, jsx_runtime_1.jsx)("div", tslib_1.__assign({ className: web_module_less_1.default.abstract }, { children: (0, jsx_runtime_1.jsx)(tdesign_react_1.Card, tslib_1.__assign({ title: "\u5C01\u9762\u53CA\u6458\u8981", theme: "normal", bordered: false }, { children: (0, jsx_runtime_1.jsxs)(tdesign_react_1.Row, { children: [(0, jsx_runtime_1.jsx)(tdesign_react_1.Col, tslib_1.__assign({ flex: "none" }, { children: (0, jsx_runtime_1.jsx)(CustomOakGallery, { maxNumber: 1, oakPath: "extraFile$entity", oakParent: this.state.oakFullpath, type: "image", origin: "qiniu", tag1: "cover", entity: "article" }) })), (0, jsx_runtime_1.jsx)(tdesign_react_1.Col, tslib_1.__assign({ flex: "auto" }, { children: (0, jsx_runtime_1.jsx)(tdesign_react_1.Textarea, { autosize: {
|
||||
} }), (0, jsx_runtime_1.jsx)("div", tslib_1.__assign({ className: web_module_less_1.default.abstract }, { children: (0, jsx_runtime_1.jsx)(tdesign_react_1.Card, tslib_1.__assign({ title: "\u5C01\u9762\u53CA\u6458\u8981", theme: "normal", bordered: false }, { children: (0, jsx_runtime_1.jsxs)(tdesign_react_1.Row, { children: [(0, jsx_runtime_1.jsx)(tdesign_react_1.Col, tslib_1.__assign({ flex: "none" }, { children: (0, jsx_runtime_1.jsx)(gallery_1.default, { maxNumber: 1, oakPath: "extraFile$entity", oakParent: this.state.oakFullpath, type: "image", origin: "qiniu", tag1: "cover", entity: "article" }) })), (0, jsx_runtime_1.jsx)(tdesign_react_1.Col, tslib_1.__assign({ flex: "auto" }, { children: (0, jsx_runtime_1.jsx)(tdesign_react_1.Textarea, { autosize: {
|
||||
minRows: 4,
|
||||
}, maxlength: 120, placeholder: t('placeholder.abstract'), onChange: function (value) {
|
||||
_this.setUpdateData('abstract', value);
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,4 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
import React from '../../../utils/react';
|
||||
declare const _default: React.ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
declare const _default: string | JSX.Element;
|
||||
/// <reference types="react" />
|
||||
declare const _default: import("react").ComponentType<any>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -49,21 +49,6 @@ function customCheckImageFn(
|
|||
// 3. 返回 undefined(即没有任何返回),说明检查未通过,编辑器会阻止插入。但不会提示任何信息
|
||||
}
|
||||
|
||||
interface OakGalleryProps {
|
||||
maxNumber?: number;
|
||||
oakPath?: string;
|
||||
oakParent?: string;
|
||||
type: string;
|
||||
origin: 'qiniu';
|
||||
tag1?: string;
|
||||
entity: string;
|
||||
}
|
||||
|
||||
//@ts-ignore
|
||||
const CustomOakGallery: React.ForwardRefExoticComponent<
|
||||
OakGalleryProps & React.RefAttributes<unknown>
|
||||
> = OakGallery;
|
||||
|
||||
export default function render(this: any) {
|
||||
const { t, features, addExtraFile } = this;
|
||||
const {
|
||||
|
|
@ -271,7 +256,7 @@ export default function render(this: any) {
|
|||
>
|
||||
<Row>
|
||||
<Col flex="none">
|
||||
<CustomOakGallery
|
||||
<OakGallery
|
||||
maxNumber={1}
|
||||
oakPath="extraFile$entity"
|
||||
oakParent={this.state.oakFullpath}
|
||||
|
|
@ -279,7 +264,7 @@ export default function render(this: any) {
|
|||
origin="qiniu"
|
||||
tag1="cover"
|
||||
entity="article"
|
||||
></CustomOakGallery>
|
||||
></OakGallery>
|
||||
</Col>
|
||||
<Col flex="auto">
|
||||
<Textarea
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
import { MakeOakComponent, MakeOakPage } from 'oak-frontend-base/lib/page.mp';
|
||||
import {
|
||||
MakeOakComponent as MakeOakWebComponent,
|
||||
MakeOakPage as MakeOakWebPage,
|
||||
} from 'oak-frontend-base/lib/page.web';
|
||||
import { MakeOakComponent, MakeOakPage } from 'oak-frontend-base/lib/types/Page';
|
||||
import { EntityDict } from '../general-app-domain';
|
||||
import { GeneralRuntimeContext } from '../src/RuntimeContext';
|
||||
import { aspectDict } from '../src/aspects';
|
||||
|
|
@ -11,27 +7,13 @@ import { initialize } from '../src/features';
|
|||
declare global {
|
||||
const generateNewId: (options?: { timestamp?: boolean }) => Promise<string>;
|
||||
|
||||
const OakPage:
|
||||
| MakeOakPage<
|
||||
EntityDict,
|
||||
RuntimeContext,
|
||||
typeof aspectDict,
|
||||
ReturnType<typeof initialize>['features']
|
||||
>
|
||||
| MakeOakWebPage<
|
||||
const OakPage: MakeOakPage<
|
||||
EntityDict,
|
||||
RuntimeContext,
|
||||
typeof aspectDict,
|
||||
ReturnType<typeof initialize>['features']
|
||||
>;
|
||||
const OakComponent:
|
||||
| MakeOakComponent<
|
||||
EntityDict,
|
||||
RuntimeContext,
|
||||
typeof aspectDict,
|
||||
ReturnType<typeof initialize>['features']
|
||||
>
|
||||
| MakeOakWebComponent<
|
||||
const OakComponent: MakeOakComponent<
|
||||
EntityDict,
|
||||
RuntimeContext,
|
||||
typeof aspectDict,
|
||||
|
|
|
|||
Loading…
Reference in New Issue