@next-core/next-docs 1.2.577 → 1.2.578

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.
@@ -152,6 +152,7 @@ The core types of Brick Next.
152
152
  | [UpdateQueryOptions](./brick-types.updatequeryoptions.md) | 更新 query 参数时的选项 |
153
153
  | [UseBackendConf](./brick-types.usebackendconf.md) | 在 <code>useBackend</code> 中使用provider的配置 \* |
154
154
  | [UseBrickConf](./brick-types.usebrickconf.md) | 使用 <code>useBrick</code> 自行渲染子构件的配置。 |
155
+ | [UseBrickRenderFunction](./brick-types.usebrickrenderfunction.md) | useBrick 的 render 函数类型。 |
155
156
  | [UseBrickSlotConf](./brick-types.usebrickslotconf.md) | 在 <code>useBrick</code> 中使用的插槽配置。 |
156
157
  | [UseBrickSlotsConf](./brick-types.usebrickslotsconf.md) | 在 <code>useBrick</code> 中使用的插槽配置表。 |
157
158
  | [UseProviderEventHandler](./brick-types.useprovidereventhandler.md) | 使用 Provider 构件进行事件处理的配置。 |
@@ -16,8 +16,8 @@ custom_edit_url: null
16
16
  **Signature:**
17
17
 
18
18
  ```typescript
19
- export declare type UseBrickConf = UseSingleBrickConf | UseSingleBrickConf[];
19
+ export declare type UseBrickConf<T = unknown> = UseSingleBrickConf | UseSingleBrickConf[] | UseBrickRenderFunction<T>;
20
20
  ```
21
21
 
22
- **Reference:** [UseSingleBrickConf](./brick-types.usesinglebrickconf.md)
22
+ **Reference:** [UseSingleBrickConf](./brick-types.usesinglebrickconf.md)<!-- -->, [UseBrickRenderFunction](./brick-types.usebrickrenderfunction.md)
23
23
 
@@ -0,0 +1,34 @@
1
+ ---
2
+ id: brick-types.usebrickrenderfunction
3
+ title: UseBrickRenderFunction
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) &gt; [@next-core/brick-types](./brick-types.md) &gt; [UseBrickRenderFunction](./brick-types.usebrickrenderfunction.md)
11
+
12
+ ## UseBrickRenderFunction interface
13
+
14
+ useBrick 的 render 函数类型。
15
+
16
+ **Signature:**
17
+
18
+ ```typescript
19
+ export declare type UseBrickRenderFunction<T = unknown> = (data: T) => unknown;
20
+ ```
21
+
22
+ ## Example
23
+
24
+
25
+ ```tsx
26
+ const columns = [
27
+ {
28
+ key: "status",
29
+ useBrick: (data) => <WrappedEoTag textContent={data.cellData} />
30
+ }
31
+ ];
32
+ ```
33
+
34
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-core/next-docs",
3
- "version": "1.2.577",
3
+ "version": "1.2.578",
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.7.6",
35
- "@next-core/brick-kit": "^2.208.9",
36
- "@next-core/brick-types": "^2.101.0",
35
+ "@next-core/brick-kit": "^2.209.0",
36
+ "@next-core/brick-types": "^2.102.0",
37
37
  "fs-extra": "^10.1.0"
38
38
  },
39
- "gitHead": "c26d891625028504c23c292490b812c27ec5ef82"
39
+ "gitHead": "ac302b57ea243cb7b1b42c2175b94688f195e1b2"
40
40
  }