@next-core/next-docs 1.2.470 → 1.2.471
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/brick-kit.brickascomponent.md +3 -13
- package/dist/brick-kit.brickascomponentfactory.md +29 -0
- package/dist/brick-kit.forwardrefsinglebrickascomponentfactory.md +29 -0
- package/dist/brick-kit.md +4 -1
- package/dist/brick-kit.singlebrickascomponent.md +1 -1
- package/dist/brick-kit.singlebrickascomponentfactory.md +29 -0
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: brick-kit.brickascomponent
|
|
3
|
-
title: BrickAsComponent
|
|
3
|
+
title: BrickAsComponent
|
|
4
4
|
hide_title: true
|
|
5
5
|
custom_edit_url: null
|
|
6
6
|
---
|
|
@@ -9,26 +9,16 @@ custom_edit_url: null
|
|
|
9
9
|
|
|
10
10
|
[API Reference](./index.md) > [@next-core/brick-kit](./brick-kit.md) > [BrickAsComponent](./brick-kit.brickascomponent.md)
|
|
11
11
|
|
|
12
|
-
## BrickAsComponent
|
|
12
|
+
## BrickAsComponent variable
|
|
13
13
|
|
|
14
14
|
可以渲染 `useBrick` 的 React 组件。
|
|
15
15
|
|
|
16
16
|
**Signature:**
|
|
17
17
|
|
|
18
18
|
```typescript
|
|
19
|
-
|
|
19
|
+
BrickAsComponent: ({ useBrick, data, }: BrickAsComponentProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
## Parameters
|
|
23
|
-
|
|
24
|
-
| Parameter | Type | Description |
|
|
25
|
-
| --- | --- | --- |
|
|
26
|
-
| { useBrick, data, } | BrickAsComponentProps | |
|
|
27
|
-
|
|
28
|
-
**Returns:**
|
|
29
|
-
|
|
30
|
-
React.ReactElement
|
|
31
|
-
|
|
32
22
|
## Remarks
|
|
33
23
|
|
|
34
24
|
`useBrick` 可以传递单个或多个构件配置。
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: brick-kit.brickascomponentfactory
|
|
3
|
+
title: BrickAsComponentFactory()
|
|
4
|
+
hide_title: true
|
|
5
|
+
custom_edit_url: null
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
+
|
|
10
|
+
[API Reference](./index.md) > [@next-core/brick-kit](./brick-kit.md) > [BrickAsComponentFactory](./brick-kit.brickascomponentfactory.md)
|
|
11
|
+
|
|
12
|
+
## BrickAsComponentFactory() function
|
|
13
|
+
|
|
14
|
+
**Signature:**
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
export declare function BrickAsComponentFactory(React: typeof _React): ({ useBrick, data, }: BrickAsComponentProps) => React.ReactElement;
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Parameters
|
|
21
|
+
|
|
22
|
+
| Parameter | Type | Description |
|
|
23
|
+
| --- | --- | --- |
|
|
24
|
+
| React | typeof \_React | |
|
|
25
|
+
|
|
26
|
+
**Returns:**
|
|
27
|
+
|
|
28
|
+
({ useBrick, data, }: BrickAsComponentProps) => React.ReactElement
|
|
29
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: brick-kit.forwardrefsinglebrickascomponentfactory
|
|
3
|
+
title: ForwardRefSingleBrickAsComponentFactory()
|
|
4
|
+
hide_title: true
|
|
5
|
+
custom_edit_url: null
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
+
|
|
10
|
+
[API Reference](./index.md) > [@next-core/brick-kit](./brick-kit.md) > [ForwardRefSingleBrickAsComponentFactory](./brick-kit.forwardrefsinglebrickascomponentfactory.md)
|
|
11
|
+
|
|
12
|
+
## ForwardRefSingleBrickAsComponentFactory() function
|
|
13
|
+
|
|
14
|
+
**Signature:**
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
export declare function ForwardRefSingleBrickAsComponentFactory(React: typeof _React): React.MemoExoticComponent<React.ForwardRefExoticComponent<SingleBrickAsComponentProps & React.RefAttributes<HTMLElement>>>;
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Parameters
|
|
21
|
+
|
|
22
|
+
| Parameter | Type | Description |
|
|
23
|
+
| --- | --- | --- |
|
|
24
|
+
| React | typeof \_React | |
|
|
25
|
+
|
|
26
|
+
**Returns:**
|
|
27
|
+
|
|
28
|
+
React.MemoExoticComponent<React.ForwardRefExoticComponent<SingleBrickAsComponentProps & React.RefAttributes<HTMLElement>>>
|
|
29
|
+
|
package/dist/brick-kit.md
CHANGED
|
@@ -28,12 +28,13 @@ The core kit of Brick Next.
|
|
|
28
28
|
| --- | --- |
|
|
29
29
|
| [applyTheme](./brick-kit.applytheme.md) | |
|
|
30
30
|
| [batchSetAppsLocalTheme](./brick-kit.batchsetappslocaltheme.md) | |
|
|
31
|
-
| [
|
|
31
|
+
| [BrickAsComponentFactory](./brick-kit.brickascomponentfactory.md) | |
|
|
32
32
|
| [BrickWrapper](./brick-kit.brickwrapper.md) | 构件的 React 组件包装器,包含 ErrorBoundary, ConfigProvider, FeatureFlagsProvider。 |
|
|
33
33
|
| [constructEventListener](./brick-kit.constructeventlistener.md) | |
|
|
34
34
|
| [DisplayByFeatureFlags](./brick-kit.displaybyfeatureflags.md) | 特性开关 React 组件 |
|
|
35
35
|
| [EasyopsEmpty](./brick-kit.easyopsempty.md) | 用于展示空数据的 React 组件。 |
|
|
36
36
|
| [event\_2](./brick-kit.event_2.md) | 构件事件装饰器。 |
|
|
37
|
+
| [ForwardRefSingleBrickAsComponentFactory](./brick-kit.forwardrefsinglebrickascomponentfactory.md) | |
|
|
37
38
|
| [getAuth](./brick-kit.getauth.md) | 获取当前登录认证信息。 |
|
|
38
39
|
| [getCssPropertyValue](./brick-kit.getcsspropertyvalue.md) | |
|
|
39
40
|
| [getCurrentTheme](./brick-kit.getcurrenttheme.md) | |
|
|
@@ -50,6 +51,7 @@ The core kit of Brick Next.
|
|
|
50
51
|
| [method](./brick-kit.method.md) | 构件方法装饰器。 |
|
|
51
52
|
| [property](./brick-kit.property.md) | 构件属性装饰器。 |
|
|
52
53
|
| [renderEasyopsEmpty](./brick-kit.rendereasyopsempty.md) | 调用后获得一个默认的展示空数据的 React 组件。 |
|
|
54
|
+
| [SingleBrickAsComponentFactory](./brick-kit.singlebrickascomponentfactory.md) | |
|
|
53
55
|
| [useApplyPageTitle](./brick-kit.useapplypagetitle.md) | 设置页面标题,将更新浏览器标签页显示的标题。 |
|
|
54
56
|
| [useCurrentApp](./brick-kit.usecurrentapp.md) | 获取当前所在微应用信息的 React hooks。 |
|
|
55
57
|
| [useCurrentMode](./brick-kit.usecurrentmode.md) | |
|
|
@@ -76,6 +78,7 @@ The core kit of Brick Next.
|
|
|
76
78
|
|
|
77
79
|
| Variable | Description |
|
|
78
80
|
| --- | --- |
|
|
81
|
+
| [BrickAsComponent](./brick-kit.brickascomponent.md) | 可以渲染 <code>useBrick</code> 的 React 组件。 |
|
|
79
82
|
| [createWebSocket](./brick-kit.createwebsocket.md) | |
|
|
80
83
|
| [FeatureFlagsProvider](./brick-kit.featureflagsprovider.md) | |
|
|
81
84
|
| [ForwardRefSingleBrickAsComponent](./brick-kit.forwardrefsinglebrickascomponent.md) | |
|
|
@@ -16,7 +16,7 @@ custom_edit_url: null
|
|
|
16
16
|
**Signature:**
|
|
17
17
|
|
|
18
18
|
```typescript
|
|
19
|
-
SingleBrickAsComponent: React.
|
|
19
|
+
SingleBrickAsComponent: React.MemoExoticComponent<({ useBrick, data, refCallback, immediatelyRefCallback, }: SingleBrickAsComponentProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>>
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
## Example
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: brick-kit.singlebrickascomponentfactory
|
|
3
|
+
title: SingleBrickAsComponentFactory()
|
|
4
|
+
hide_title: true
|
|
5
|
+
custom_edit_url: null
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
+
|
|
10
|
+
[API Reference](./index.md) > [@next-core/brick-kit](./brick-kit.md) > [SingleBrickAsComponentFactory](./brick-kit.singlebrickascomponentfactory.md)
|
|
11
|
+
|
|
12
|
+
## SingleBrickAsComponentFactory() function
|
|
13
|
+
|
|
14
|
+
**Signature:**
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
export declare function SingleBrickAsComponentFactory(React: typeof _React): React.MemoExoticComponent<({ useBrick, data, refCallback, immediatelyRefCallback, }: SingleBrickAsComponentProps) => React.ReactElement>;
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Parameters
|
|
21
|
+
|
|
22
|
+
| Parameter | Type | Description |
|
|
23
|
+
| --- | --- | --- |
|
|
24
|
+
| React | typeof \_React | |
|
|
25
|
+
|
|
26
|
+
**Returns:**
|
|
27
|
+
|
|
28
|
+
React.MemoExoticComponent<({ useBrick, data, refCallback, immediatelyRefCallback, }: SingleBrickAsComponentProps) => React.ReactElement>
|
|
29
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-core/next-docs",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.471",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "https://github.com/easyops-cn/next-core/tree/master/packages/next-docs",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"sideEffects": false,
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@easyops-cn/brick-next-pipes": "^0.4.0",
|
|
35
|
-
"@next-core/brick-kit": "^2.178.
|
|
35
|
+
"@next-core/brick-kit": "^2.178.2",
|
|
36
36
|
"@next-core/brick-types": "^2.89.0",
|
|
37
37
|
"fs-extra": "^10.1.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "1c5b11a373af34f6434034d321259bb7ae2620f4"
|
|
40
40
|
}
|