瀏覽代碼

docs: Added explanation of the difference between Cascader and treeSelect

zhangyumei.0319 1 月之前
父節點
當前提交
38db1ea481
共有 2 個文件被更改,包括 14 次插入0 次删除
  1. 7 0
      content/input/cascader/index-en-US.md
  2. 7 0
      content/input/cascader/index.md

+ 7 - 0
content/input/cascader/index-en-US.md

@@ -8,6 +8,13 @@ icon: doc-cascader
 brief: Used to select an option under a multi-level classification.
 ---
 
+## Usage scenarios
+
+Differences from TreeSelect component:
+
+- TreeSelect: The core value lies in **target node**. The structure is to facilitate users to quickly filter out target options. The final node is what the user wants. It is commonly used in file/folder selection, organizational structure, permission allocation and other scenarios.
+- Cascader: The core selection value lies in the **path**. What the user selects is not an isolated point, but a complete path from root to leaf, which is often used in scenarios such as geographical location and product classification.
+
 
 ## Demos
 

+ 7 - 0
content/input/cascader/index.md

@@ -7,6 +7,13 @@ icon: doc-cascader
 brief: 用于选择多级分类下的某个选项。
 ---
 
+## 使用场景
+
+与 TreeSelect 组件的区别:
+
+- TreeSelect: 核心价值在于**目标节点**,层级结构是为了方便用户快速筛选出目标选项,最终的节点才是用户想要的内容,常见于文件/文件夹选择、组织架构、权限分配等场景。
+- Cascader: 核心价值在于**路径**,用户选择的不是一个孤立的点,而是一条从根到叶的完整路径,常用于地理位置,商品分类等场景。
+
 ## 代码演示