From e50267d64cc3825a84019c7afb3572aa07832703 Mon Sep 17 00:00:00 2001 From: chenos Date: Tue, 13 Jul 2021 00:31:38 +0800 Subject: [PATCH] node tree of all components --- packages/client/src/schemas/action/index.md | 56 ++++++++ packages/client/src/schemas/add-new/index.md | 25 +++- packages/client/src/schemas/cascader/index.md | 10 +- packages/client/src/schemas/checkbox/index.md | 9 ++ .../client/src/schemas/color-select/index.md | 10 ++ .../src/schemas/database-field/index.md | 8 ++ .../client/src/schemas/date-picker/index.md | 6 + packages/client/src/schemas/filter/index.md | 17 +++ packages/client/src/schemas/form/index.md | 10 ++ packages/client/src/schemas/grid/index.md | 15 +++ .../client/src/schemas/icon-picker/index.md | 8 ++ .../client/src/schemas/input-number/index.md | 8 ++ packages/client/src/schemas/input/index.md | 7 + packages/client/src/schemas/markdown/index.md | 6 + packages/client/src/schemas/menu/index.md | 30 +++++ packages/client/src/schemas/menu/index.tsx | 122 +++++++++--------- packages/client/src/schemas/password/index.md | 7 + packages/client/src/schemas/radio/index.md | 9 ++ packages/client/src/schemas/select/index.md | 25 ++++ packages/client/src/schemas/table/index.md | 46 ++++++- packages/client/src/schemas/tabs/index.md | 13 ++ .../client/src/schemas/time-picker/index.md | 6 + packages/client/src/schemas/upload/index.md | 6 + 23 files changed, 391 insertions(+), 68 deletions(-) diff --git a/packages/client/src/schemas/action/index.md b/packages/client/src/schemas/action/index.md index 703e20227..109a4c4d1 100644 --- a/packages/client/src/schemas/action/index.md +++ b/packages/client/src/schemas/action/index.md @@ -11,6 +11,62 @@ group: # Action - 操作 + +## 组件节点树 + +
+////////// 单节点 //////////
+
+// 常规按钮操作
+
+// 内链
+
+// 外链
+
+
+////////// 弹出层相关操作 //////////
+
+// 对话框
+
+  
+    // 添加其他节点
+  
+
+
+// 抽屉
+
+  
+    // 添加其他节点
+  
+
+
+// 气泡
+
+  
+    // 添加其他节点
+  
+
+
+// 指定容器
+
+  
+    // 添加其他节点
+  
+
+
+////////// 操作分组 //////////
+
+// 下拉操作
+
+  
+  
+    
+      // 添加其他节点
+    
+  
+
+
+ 操作有三类: - 常规操作:Action diff --git a/packages/client/src/schemas/add-new/index.md b/packages/client/src/schemas/add-new/index.md index 58a507013..47af7df69 100644 --- a/packages/client/src/schemas/add-new/index.md +++ b/packages/client/src/schemas/add-new/index.md @@ -11,12 +11,29 @@ group: # AddNew - 新增 -包括两部分 +## 组件节点树 -- AddNew.BlockItem 新增区块项 -- AddNew.FormItem 新增表单项 +
+// 简单场景,只支持上下拖拽布局
+
+  // 常规区块
+  
+  // 或表单控件
+  
+
 
-支持常规布局也支持 Grid 布局
+// 栅格布局,支持行列等复杂的拖拽操作
+
+  
+    
+      // 常规区块
+      
+      // 或表单控件
+      
+    
+  
+
+
## 代码演示 diff --git a/packages/client/src/schemas/cascader/index.md b/packages/client/src/schemas/cascader/index.md index ada3c3fb3..d9a07d863 100644 --- a/packages/client/src/schemas/cascader/index.md +++ b/packages/client/src/schemas/cascader/index.md @@ -11,7 +11,15 @@ group: # Cascader - 级联选择 -## 省市区级联 +## 组件节点树 + +
+  
+
+ +## 代码演示 + +### 省市区级联 ```tsx /** diff --git a/packages/client/src/schemas/checkbox/index.md b/packages/client/src/schemas/checkbox/index.md index 1eb98e554..d4969e556 100644 --- a/packages/client/src/schemas/checkbox/index.md +++ b/packages/client/src/schemas/checkbox/index.md @@ -11,6 +11,15 @@ group: # Checkbox - 多选框 +## 组件节点树 + +
+// 勾选
+
+// 多选框
+
+
+ ## 代码演示 ### 勾选 diff --git a/packages/client/src/schemas/color-select/index.md b/packages/client/src/schemas/color-select/index.md index f02eea629..472bbaf5e 100644 --- a/packages/client/src/schemas/color-select/index.md +++ b/packages/client/src/schemas/color-select/index.md @@ -11,6 +11,16 @@ group: # ColorSelect - 颜色选择器 +## 组件节点树 + +
+
+
+ +## 代码演示 + +### 颜色选择器 + ```tsx /** * title: 颜色选择器 diff --git a/packages/client/src/schemas/database-field/index.md b/packages/client/src/schemas/database-field/index.md index ba833f6a5..8bf5d06b7 100644 --- a/packages/client/src/schemas/database-field/index.md +++ b/packages/client/src/schemas/database-field/index.md @@ -11,6 +11,14 @@ group: # DatabaseField - 数据表字段 +## 组件节点树 + +
+
+
+ +## 代码演示 + ```tsx import React from 'react'; import { createForm } from '@formily/core'; diff --git a/packages/client/src/schemas/date-picker/index.md b/packages/client/src/schemas/date-picker/index.md index 872de8a1b..17215d016 100644 --- a/packages/client/src/schemas/date-picker/index.md +++ b/packages/client/src/schemas/date-picker/index.md @@ -11,6 +11,12 @@ group: # DatePicker - 日期选择器 +## 组件节点树 + +
+
+
+ ## 代码演示 ### 日期选择器 diff --git a/packages/client/src/schemas/filter/index.md b/packages/client/src/schemas/filter/index.md index 78f6470de..682f3efce 100644 --- a/packages/client/src/schemas/filter/index.md +++ b/packages/client/src/schemas/filter/index.md @@ -9,6 +9,23 @@ group: path: /client/schemas --- +# Filter - 筛选器 + +## 组件节点树 + +
+
+  
+    
+  
+  
+    
+  
+
+
+ +## 代码演示 +