@next-core/next-docs 1.2.561 → 1.2.563
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.
|
@@ -11,12 +11,12 @@ custom_edit_url: null
|
|
|
11
11
|
|
|
12
12
|
## UseSingleBrickConf.lifeCycle property
|
|
13
13
|
|
|
14
|
-
构件生命周期配置。在 `useBrick` 中仅支持 `useResolves`<!-- -->、`onMount` 和 `onUnmount`<!-- -->。
|
|
14
|
+
构件生命周期配置。在 `useBrick` 中仅支持 `useResolves`<!-- -->、`onScrollIntoView`<!-- -->、`onMount` 和 `onUnmount`<!-- -->。
|
|
15
15
|
|
|
16
16
|
**Signature:**
|
|
17
17
|
|
|
18
18
|
```typescript
|
|
19
|
-
lifeCycle?: Pick<BrickLifeCycle, "useResolves"> & {
|
|
19
|
+
lifeCycle?: Pick<BrickLifeCycle, "useResolves" | "onScrollIntoView"> & {
|
|
20
20
|
onMount?: BrickEventHandler | BrickEventHandler[];
|
|
21
21
|
onUnmount?: BrickEventHandler | BrickEventHandler[];
|
|
22
22
|
};
|
|
@@ -27,7 +27,7 @@ export interface UseSingleBrickConf
|
|
|
27
27
|
| [events](./brick-types.usesinglebrickconf.events.md) | [BrickEventsMap](./brick-types.brickeventsmap.md) | 构件的事件配置表。 |
|
|
28
28
|
| [if](./brick-types.usesinglebrickconf.if.md) | string \| boolean \| [ResolveConf](./brick-types.resolveconf.md) | 条件渲染配置,根据 <code>if</code> 的计算结果来决定是否渲染该构件。 |
|
|
29
29
|
| [iid](./brick-types.usesinglebrickconf.iid.md) | string | 构件编排 ID |
|
|
30
|
-
| [lifeCycle](./brick-types.usesinglebrickconf.lifecycle.md) | Pick<[BrickLifeCycle](./brick-types.bricklifecycle.md)<!-- -->, "useResolves"> & { onMount?: [BrickEventHandler](./brick-types.brickeventhandler.md) \| [BrickEventHandler](./brick-types.brickeventhandler.md)<!-- -->\[\]; onUnmount?: [BrickEventHandler](./brick-types.brickeventhandler.md) \| [BrickEventHandler](./brick-types.brickeventhandler.md)<!-- -->\[\]; } | 构件生命周期配置。在 <code>useBrick</code> 中仅支持 <code>useResolves</code>、<code>onMount</code> 和 <code>onUnmount</code>。 |
|
|
30
|
+
| [lifeCycle](./brick-types.usesinglebrickconf.lifecycle.md) | Pick<[BrickLifeCycle](./brick-types.bricklifecycle.md)<!-- -->, "useResolves" \| "onScrollIntoView"> & { onMount?: [BrickEventHandler](./brick-types.brickeventhandler.md) \| [BrickEventHandler](./brick-types.brickeventhandler.md)<!-- -->\[\]; onUnmount?: [BrickEventHandler](./brick-types.brickeventhandler.md) \| [BrickEventHandler](./brick-types.brickeventhandler.md)<!-- -->\[\]; } | 构件生命周期配置。在 <code>useBrick</code> 中仅支持 <code>useResolves</code>、<code>onScrollIntoView</code>、<code>onMount</code> 和 <code>onUnmount</code>。 |
|
|
31
31
|
| [properties](./brick-types.usesinglebrickconf.properties.md) | Record<string, unknown> | 构件属性。 |
|
|
32
32
|
| [ref](./brick-types.usesinglebrickconf.ref.md) | string | 用于在自定义模板内部引用的 ID。 |
|
|
33
33
|
| [slots](./brick-types.usesinglebrickconf.slots.md) | [UseBrickSlotsConf](./brick-types.usebrickslotsconf.md) | 在 <code>useBrick</code> 中使用的插槽配置表。 |
|
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.563",
|
|
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",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
},
|
|
32
32
|
"sideEffects": false,
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@easyops-cn/brick-next-pipes": "^0.7.
|
|
35
|
-
"@next-core/brick-kit": "^2.
|
|
36
|
-
"@next-core/brick-types": "^2.
|
|
34
|
+
"@easyops-cn/brick-next-pipes": "^0.7.2",
|
|
35
|
+
"@next-core/brick-kit": "^2.205.0",
|
|
36
|
+
"@next-core/brick-types": "^2.100.0",
|
|
37
37
|
"fs-extra": "^10.1.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "8d212e9f95cf3f08fa1fb24c417632e542666942"
|
|
40
40
|
}
|