Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
210 changes: 209 additions & 1 deletion packages/canvas/render/src/builtin/builtin.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@
"props": {
"language": "json",
"tips": {
"title": { "zh_CN": "提示:数据为数组类型" },
"title": {
"zh_CN": "提示:数据为数组类型"
},
"demo": {
"zh_CN": "示例:\n[\n {\n \"name\": \"text\",\n \"value\": {\n \"type\": \"JSExpression\",\n \"value\": \"this.state.greetingMessage\"\n }\n },\n {\n \"name\": \"count\",\n \"value\": 1\n }\n]"
}
Expand Down Expand Up @@ -641,6 +643,212 @@
]
}
},
{
"name": {
"zh_CN": "导航条"
},
"snippetName": "Navigation",
"icon": "navigation",
"schema": {
"componentName": "div",
"props": {
"style": "text-align: center; padding: 8px 12px; box-shadow: 0 0 4px #0003;"
},
"children": [
{
"componentName": "RouterLink",
"props": {
"to": "",
"style": "display: inline-flex; gap: 8px; padding: 10px 20px;"
},
"children": [
{
"componentName": "Icon",
"props": {
"name": "IconPublicHome",
"style": "margin-top: 3px;"
}
},
{
"componentName": "Text",
"props": {
"text": "首页"
}
}
]
},
{
"componentName": "RouterLink",
"props": {
"to": "",
"style": "display: inline-flex; gap: 8px; padding: 10px 20px;"
},
"children": [
{
"componentName": "Icon",
"props": {
"name": "IconTaskCooperation",
"style": "margin-top: 3px;"
}
},
{
"componentName": "Text",
"props": {
"text": "介绍"
}
}
]
},
{
"componentName": "RouterLink",
"props": {
"to": "",
"style": "display: inline-flex; gap: 8px; padding: 10px 20px;"
},
"children": [
{
"componentName": "Icon",
"props": {
"name": "IconText",
"style": "margin-top: 3px;"
}
},
{
"componentName": "Text",
"props": {
"text": "文档"
}
}
]
}
]
}
},
{
"name": {
"zh_CN": "纵向导航"
},
"snippetName": "NavigationV",
"icon": "NavigationV",
"schema": {
"componentName": "div",
"props": {
"style": "padding: 8px 12px; border-right: 1px solid #0003;"
},
"children": [
{
"componentName": "RouterLink",
"props": {
"to": "",
"style": "display: flex; gap: 8px; padding: 10px 20px;"
},
"children": [
{
"componentName": "Icon",
"props": {
"name": "IconPublicHome",
"style": "margin-top: 3px;"
}
},
{
"componentName": "Text",
"props": {
"text": "首页"
}
}
]
},
{
"componentName": "RouterLink",
"props": {
"to": "",
"style": "display: flex; gap: 8px; padding: 10px 20px;"
},
"children": [
{
"componentName": "Icon",
"props": {
"name": "IconTaskCooperation",
"style": "margin-top: 3px;"
}
},
{
"componentName": "Text",
"props": {
"text": "介绍"
}
}
]
},
{
"componentName": "RouterLink",
"props": {
"to": "",
"style": "display: flex; gap: 8px; padding: 10px 20px;"
},
"children": [
{
"componentName": "Icon",
"props": {
"name": "IconText",
"style": "margin-top: 3px;"
}
},
{
"componentName": "Text",
"props": {
"text": "文档"
}
}
]
},
{
"componentName": "RouterLink",
"props": {
"to": "",
"style": "display: flex; gap: 8px; padding: 10px 20px;"
},
"children": [
{
"componentName": "Icon",
"props": {
"name": "IconText",
"style": "margin-top: 3px;"
}
},
{
"componentName": "Text",
"props": {
"text": "文档"
}
}
]
},
{
"componentName": "RouterLink",
"props": {
"to": "",
"style": "display: flex; gap: 8px; padding: 10px 20px;"
},
"children": [
{
"componentName": "Icon",
"props": {
"name": "IconText",
"style": "margin-top: 3px;"
}
},
{
"componentName": "Text",
"props": {
"text": "文档"
}
}
]
}
]
}
},
{
"name": {
"zh_CN": "数据源容器"
Expand Down
18 changes: 18 additions & 0 deletions packages/design-core/assets/navigation.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions packages/design-core/assets/navigationv.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions packages/design-core/assets/routerlink.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions packages/design-core/assets/routerview.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.