feat(docs): introduction of tree collection
45
docs/en-US/welcome/release/tree-collection.md
Normal file
@ -0,0 +1,45 @@
|
||||
# Tree collection
|
||||
|
||||
## Collection options
|
||||
|
||||
```ts
|
||||
{
|
||||
name: 'categories',
|
||||
tree: 'adjacency-list',
|
||||
fields: [
|
||||
{
|
||||
type: 'belongsTo',
|
||||
name: 'parent',
|
||||
treeParent: true,
|
||||
},
|
||||
{
|
||||
type: 'hasMany',
|
||||
name: 'children',
|
||||
treeChildren: true,
|
||||
},
|
||||
],
|
||||
}
|
||||
```
|
||||
|
||||
## UI
|
||||
|
||||
### Create tree collection
|
||||
|
||||
<img src="./tree-collection/tree-collection.jpg">
|
||||
|
||||
|
||||
### Default fields
|
||||
|
||||
<img src="./tree-collection/init.jpg">
|
||||
|
||||
### Table block
|
||||
|
||||
<img src="./tree-collection/tree-table.jpg">
|
||||
|
||||
### Add child
|
||||
|
||||
<img src="./tree-collection/add-child.jpg">
|
||||
|
||||
### Expend/Collapse
|
||||
|
||||
<img src="./tree-collection/expend-collapse.jpg">
|
BIN
docs/en-US/welcome/release/tree-collection/add-child.jpg
Normal file
After Width: | Height: | Size: 114 KiB |
BIN
docs/en-US/welcome/release/tree-collection/expend-collapse.jpg
Normal file
After Width: | Height: | Size: 126 KiB |
BIN
docs/en-US/welcome/release/tree-collection/init.jpg
Normal file
After Width: | Height: | Size: 194 KiB |
BIN
docs/en-US/welcome/release/tree-collection/tree-collection.jpg
Normal file
After Width: | Height: | Size: 61 KiB |
BIN
docs/en-US/welcome/release/tree-collection/tree-table.jpg
Normal file
After Width: | Height: | Size: 67 KiB |
45
docs/zh-CN/welcome/release/tree-collection.md
Normal file
@ -0,0 +1,45 @@
|
||||
# Tree collection
|
||||
|
||||
## Collection options
|
||||
|
||||
```ts
|
||||
{
|
||||
name: 'categories',
|
||||
tree: 'adjacency-list',
|
||||
fields: [
|
||||
{
|
||||
type: 'belongsTo',
|
||||
name: 'parent',
|
||||
treeParent: true,
|
||||
},
|
||||
{
|
||||
type: 'hasMany',
|
||||
name: 'children',
|
||||
treeChildren: true,
|
||||
},
|
||||
],
|
||||
}
|
||||
```
|
||||
|
||||
## UI
|
||||
|
||||
### Create tree collection
|
||||
|
||||
<img src="./tree-collection/tree-collection.jpg">
|
||||
|
||||
|
||||
### Default fields
|
||||
|
||||
<img src="./tree-collection/init.jpg">
|
||||
|
||||
### Table block
|
||||
|
||||
<img src="./tree-collection/tree-table.jpg">
|
||||
|
||||
### Add child
|
||||
|
||||
<img src="./tree-collection/add-child.jpg">
|
||||
|
||||
### Expend/Collapse
|
||||
|
||||
<img src="./tree-collection/expend-collapse.jpg">
|
BIN
docs/zh-CN/welcome/release/tree-collection/add-child.jpg
Normal file
After Width: | Height: | Size: 114 KiB |
BIN
docs/zh-CN/welcome/release/tree-collection/expend-collapse.jpg
Normal file
After Width: | Height: | Size: 126 KiB |
BIN
docs/zh-CN/welcome/release/tree-collection/init.jpg
Normal file
After Width: | Height: | Size: 194 KiB |
BIN
docs/zh-CN/welcome/release/tree-collection/tree-collection.jpg
Normal file
After Width: | Height: | Size: 61 KiB |
BIN
docs/zh-CN/welcome/release/tree-collection/tree-table.jpg
Normal file
After Width: | Height: | Size: 67 KiB |