Skip to content

Commit 064e842

Browse files
LeoYuanliujuping
authored andcommitted
feat(spec): support type NodeSchema when the Node is JSSlot
1 parent d7132fa commit 064e842

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/docs/specs/lowcode-spec.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ sidebar_position: 0
281281

282282
| 参数 | 说明 | 类型 | 变量支持 | 默认值 |
283283
| --------------- | ---------------------- | ------------------------- | -------- | ------ |
284-
| componentsMap[] | 描述组件映射关系的集合 | Array\<**ComponentMap**\> | - | null |
284+
| componentsMap[] | 描述组件映射关系的集合 | **ComponentMap**[] | - | null |
285285

286286
**ComponentMap 结构描述**如下:
287287

@@ -413,7 +413,7 @@ import { Input as CustomInput } from '@ali/custom/lib/input';
413413

414414
| 参数 | 说明 | 类型 | 支持变量 | 默认值 | 备注 |
415415
| ----------- | ---------------------- | -------------------------------------- | -------- | ------ | ----------------------------------------------------------------------------------------------------------- |
416-
| list[] | 数据源列表 | Array\<**ComponentDataSourceItem**\> | - | - | 成为为单个请求配置, 内容定义详见 [ComponentDataSourceItem 对象描述](#2314-componentdatasourceitem-对象描述) |
416+
| list[] | 数据源列表 | **ComponentDataSourceItem**[] | - | - | 成为为单个请求配置, 内容定义详见 [ComponentDataSourceItem 对象描述](#2314-componentdatasourceitem-对象描述) |
417417
| dataHandler | 所有请求数据的处理函数 | Function | - | - | 详见 [dataHandler Function 描述](#2317-datahandler-function 描述) |
418418

419419
##### 2.3.1.4 ComponentDataSourceItem 对象描述
@@ -607,7 +607,7 @@ try {
607607
| props { } | 组件属性对象 | **Props** | - | {} | 必填,详见 [Props 结构描述](#2311-props-结构描述) |
608608
| static | 低代码业务组件类的静态对象 | | | | |
609609
| defaultProps | 低代码业务组件默认属性 | Object | - | - | 选填,仅用于定义低代码业务组件的默认属性 |
610-
| propDefinitions | 低代码业务组件属性类型定义 | **Array\<ComponentPropDefinition\>** | - | - | 选填,仅用于定义低代码业务组件的属性数据类型。详见 [ComponentPropDefinition 对象描述](#2318-componentpropdefinition-对象描述) |
610+
| propDefinitions | 低代码业务组件属性类型定义 | **ComponentPropDefinition**[] | - | - | 选填,仅用于定义低代码业务组件的属性数据类型。详见 [ComponentPropDefinition 对象描述](#2318-componentpropdefinition-对象描述) |
611611
| condition | 渲染条件 | Boolean || true | 选填,根据表达式结果判断是否渲染物料;支持变量表达式 |
612612
| state | 容器初始数据 | Object || - | 选填,支持变量表达式 |
613613
| children | 子组件 | Array | - | | 选填,支持变量表达式 |
@@ -751,7 +751,7 @@ try {
751751
| 参数 | 说明 | 值类型 | 默认值 | 备注 |
752752
| ----- | ---------- | --------------------- | -------- | -------------------------------------------------------------- |
753753
| type | 值类型描述 | String | 'JSSlot' | 固定值 |
754-
| value | 具体的值 | Array\<NodeSchema\> | null | 内容为 NodeSchema 类型,详见[组件结构描述](#232-组件结构描述(A)) |
754+
| value | 具体的值 | NodeSchema \| NodeSchema[] | null | 内容为 NodeSchema 类型,详见[组件结构描述](#232-组件结构描述(A)) |
755755

756756

757757
举例描述:如 **Card** 的 **title** 属性
@@ -782,8 +782,8 @@ try {
782782
| 参数 | 说明 | 值类型 | 默认值 | 备注 |
783783
| ------ | ---------- | --------------------- | -------- | -------------------------------------------------------------- |
784784
| type | 值类型描述 | String | 'JSSlot' | 固定值 |
785-
| value | 具体的值 | Array\<NodeSchema\> | null | 内容为 NodeSchema 类型,详见[组件结构描述](#232-组件结构描述 a) |
786-
| params | 函数的参数 | Array\<String\> | null | 函数的入参,其子节点可以通过 `this[参数名]` 来获取对应的参数。 |
785+
| value | 具体的值 | NodeSchema \| NodeSchema[] | null | 内容为 NodeSchema 类型,详见[组件结构描述](#232-组件结构描述 a) |
786+
| params | 函数的参数 | String[] | null | 函数的入参,其子节点可以通过 `this[参数名]` 来获取对应的参数。 |
787787

788788

789789
举例描述:如 **Table.Column****cell** 属性
@@ -1106,7 +1106,7 @@ this.setState((prevState) => ({ count: prevState.count + 1 }));
11061106

11071107
| 参数 | 说明 | 类型 | 支持变量 | 默认值 |
11081108
| ------------------ | ------------------ | ---------------------------------------------------------------------------------------------------------------- | -------- | ------ |
1109-
| utils[] | 工具类扩展映射关系 | Array\<**UtilItem**\> | - | |
1109+
| utils[] | 工具类扩展映射关系 | **UtilItem**[] | - | |
11101110
| *UtilItem*.name | 工具类扩展项名称 | String | - | |
11111111
| *UtilItem*.type | 工具类扩展项类型 | 枚举, `'npm'` (代表公网 npm 类型) / `'tnpm'` (代表阿里巴巴内部 npm 类型) / `'function'` (代表 Javascript 函数类型) | - | |
11121112
| *UtilItem*.content | 工具类扩展项内容 | [ComponentMap 类型](#22-组件映射关系 a) 或 [JSFunction](#2432事件函数类型 a) | - | |

0 commit comments

Comments
 (0)