From f463b0c339c40b7ffef8f1daf98680ed16f459be Mon Sep 17 00:00:00 2001 From: RickCole21 Date: Wed, 2 Sep 2020 10:54:04 +0800 Subject: [PATCH 1/4] fix doc --- examples/components/Doc.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/components/Doc.tsx b/examples/components/Doc.tsx index ddda9ef1e..5f604eab5 100644 --- a/examples/components/Doc.tsx +++ b/examples/components/Doc.tsx @@ -144,6 +144,14 @@ export const docs = [ require(['../../docs/types/api.md'], doc => { cb(null, makeMarkdownRenderer(doc)); }) + }, + { + label: 'Definitions', + path: '/docs/types/definitions', + getComponent: (location, cb) => + require(['../../docs/types/definitions.md'], doc => { + cb(null, makeMarkdownRenderer(doc)); + }) } ] }, From 696d059820da065672fad78cc23a2953b5703de6 Mon Sep 17 00:00:00 2001 From: RickCole21 Date: Wed, 2 Sep 2020 15:29:26 +0800 Subject: [PATCH 2/4] fix doc --- docs/components/form/Radios.md | 55 ---------------------------------- 1 file changed, 55 deletions(-) delete mode 100755 docs/components/form/Radios.md diff --git a/docs/components/form/Radios.md b/docs/components/form/Radios.md deleted file mode 100755 index ce7954fb9..000000000 --- a/docs/components/form/Radios.md +++ /dev/null @@ -1,55 +0,0 @@ ---- -title: Radios 单选框 -description: -type: 0 -group: null -menuName: Radios 单选框 -icon: -order: 36 ---- - -## 基本用法 - -```schema:height="260" scope="body" -{ - "type": "form", - "controls": [ - { - "name": "radios", - "type": "radios", - "label": "radios", - "options": [ - { - "label": "OptionA", - "value": "a" - }, - { - "label": "OptionB", - "value": "b" - }, - { - "label": "OptionC", - "value": "c" - }, - { - "label": "OptionD", - "value": "d" - } - ] - } - ] -} -``` - -## 属性表 - -当做选择器表单项使用时,除了支持 [普通表单项属性表](./formitem#%E5%B1%9E%E6%80%A7%E8%A1%A8) 中的配置以外,还支持下面一些配置 - -| 属性名 | 类型 | 默认值 | 说明 | -| ------------ | --------------------------------- | --------- | ------------------------------------------------------------------------------------------- | -| options | `Array`或`Array` | | [选项组](./options#%E9%9D%99%E6%80%81%E9%80%89%E9%A1%B9%E7%BB%84-options) | -| source | `string`或 [API](../../types/api) | | [动态选项组](./options#%E5%8A%A8%E6%80%81%E9%80%89%E9%A1%B9%E7%BB%84-source) | -| labelField | `boolean` | `"label"` | [选项标签字段](./options#%E9%80%89%E9%A1%B9%E6%A0%87%E7%AD%BE%E5%AD%97%E6%AE%B5-labelfield) | -| valueField | `boolean` | `"value"` | [选项值字段](./options#%E9%80%89%E9%A1%B9%E5%80%BC%E5%AD%97%E6%AE%B5-valuefield) | -| columnsCount | `number` | `1` | 选项按几列显示,默认为一列 | -| autoFill | `object` | | [自动填充](./options#%E8%87%AA%E5%8A%A8%E5%A1%AB%E5%85%85-autofill) | From ce9736b6d77a92e557649c826b3a5559eb2c5af0 Mon Sep 17 00:00:00 2001 From: RickCole21 Date: Wed, 2 Sep 2020 15:30:16 +0800 Subject: [PATCH 3/4] fix doc --- docs/components/form/radios.md | 55 ++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 docs/components/form/radios.md diff --git a/docs/components/form/radios.md b/docs/components/form/radios.md new file mode 100644 index 000000000..ce7954fb9 --- /dev/null +++ b/docs/components/form/radios.md @@ -0,0 +1,55 @@ +--- +title: Radios 单选框 +description: +type: 0 +group: null +menuName: Radios 单选框 +icon: +order: 36 +--- + +## 基本用法 + +```schema:height="260" scope="body" +{ + "type": "form", + "controls": [ + { + "name": "radios", + "type": "radios", + "label": "radios", + "options": [ + { + "label": "OptionA", + "value": "a" + }, + { + "label": "OptionB", + "value": "b" + }, + { + "label": "OptionC", + "value": "c" + }, + { + "label": "OptionD", + "value": "d" + } + ] + } + ] +} +``` + +## 属性表 + +当做选择器表单项使用时,除了支持 [普通表单项属性表](./formitem#%E5%B1%9E%E6%80%A7%E8%A1%A8) 中的配置以外,还支持下面一些配置 + +| 属性名 | 类型 | 默认值 | 说明 | +| ------------ | --------------------------------- | --------- | ------------------------------------------------------------------------------------------- | +| options | `Array`或`Array` | | [选项组](./options#%E9%9D%99%E6%80%81%E9%80%89%E9%A1%B9%E7%BB%84-options) | +| source | `string`或 [API](../../types/api) | | [动态选项组](./options#%E5%8A%A8%E6%80%81%E9%80%89%E9%A1%B9%E7%BB%84-source) | +| labelField | `boolean` | `"label"` | [选项标签字段](./options#%E9%80%89%E9%A1%B9%E6%A0%87%E7%AD%BE%E5%AD%97%E6%AE%B5-labelfield) | +| valueField | `boolean` | `"value"` | [选项值字段](./options#%E9%80%89%E9%A1%B9%E5%80%BC%E5%AD%97%E6%AE%B5-valuefield) | +| columnsCount | `number` | `1` | 选项按几列显示,默认为一列 | +| autoFill | `object` | | [自动填充](./options#%E8%87%AA%E5%8A%A8%E5%A1%AB%E5%85%85-autofill) | From 103a364df2a85dae32f5060c7b86483dfcdded1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=A4=9A=E7=9B=8A?= Date: Wed, 2 Sep 2020 15:31:03 +0800 Subject: [PATCH 4/4] Create radios.md --- docs/components/radios.md | 55 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 docs/components/radios.md diff --git a/docs/components/radios.md b/docs/components/radios.md new file mode 100644 index 000000000..ce7954fb9 --- /dev/null +++ b/docs/components/radios.md @@ -0,0 +1,55 @@ +--- +title: Radios 单选框 +description: +type: 0 +group: null +menuName: Radios 单选框 +icon: +order: 36 +--- + +## 基本用法 + +```schema:height="260" scope="body" +{ + "type": "form", + "controls": [ + { + "name": "radios", + "type": "radios", + "label": "radios", + "options": [ + { + "label": "OptionA", + "value": "a" + }, + { + "label": "OptionB", + "value": "b" + }, + { + "label": "OptionC", + "value": "c" + }, + { + "label": "OptionD", + "value": "d" + } + ] + } + ] +} +``` + +## 属性表 + +当做选择器表单项使用时,除了支持 [普通表单项属性表](./formitem#%E5%B1%9E%E6%80%A7%E8%A1%A8) 中的配置以外,还支持下面一些配置 + +| 属性名 | 类型 | 默认值 | 说明 | +| ------------ | --------------------------------- | --------- | ------------------------------------------------------------------------------------------- | +| options | `Array`或`Array` | | [选项组](./options#%E9%9D%99%E6%80%81%E9%80%89%E9%A1%B9%E7%BB%84-options) | +| source | `string`或 [API](../../types/api) | | [动态选项组](./options#%E5%8A%A8%E6%80%81%E9%80%89%E9%A1%B9%E7%BB%84-source) | +| labelField | `boolean` | `"label"` | [选项标签字段](./options#%E9%80%89%E9%A1%B9%E6%A0%87%E7%AD%BE%E5%AD%97%E6%AE%B5-labelfield) | +| valueField | `boolean` | `"value"` | [选项值字段](./options#%E9%80%89%E9%A1%B9%E5%80%BC%E5%AD%97%E6%AE%B5-valuefield) | +| columnsCount | `number` | `1` | 选项按几列显示,默认为一列 | +| autoFill | `object` | | [自动填充](./options#%E8%87%AA%E5%8A%A8%E5%A1%AB%E5%85%85-autofill) |