Breadcrumb 组件 update

This commit is contained in:
金禅 2020-08-09 21:51:40 +08:00
parent 7a769fe484
commit 9fa5b91400
2 changed files with 61 additions and 12 deletions

View File

@ -984,7 +984,8 @@
],
"configure": {
"component": {
"isContainer": true
"isModel": true,
"rootSelector": "div.next-balloon"
}
}
},
@ -1268,7 +1269,22 @@
"configure": {
"component": {
"isContainer": true
}
},
"props": [
{
"name": "maxNode",
"title": {
"label": "最大节点数",
"tip": "默认 100"
},
"setter": "NumberSetter"
},
{
"name": "separator",
"title": "分隔符",
"setter": "StringSetter"
}
]
}
},
{
@ -1357,7 +1373,9 @@
],
"configure": {
"component": {
"isContainer": true
"isContainer": true,
"isModel": true,
"rootSelector": "div.MCBreadcrumb"
}
}
},
@ -1415,9 +1433,11 @@
}
],
"configure": {
"component": {
"isContainer": true
}
"props": [{
"name": "children",
"title": "文本内容",
"setter": "StringSetter"
}]
}
},
{
@ -13403,7 +13423,13 @@
0
],
"triggerType": "hover",
"autoFocus": true
"autoFocus": true,
"trigger": {
"componentName": "Avatar",
"props": {
"icon": "success"
}
}
}
}
}
@ -13752,10 +13778,33 @@
"schema": {
"componentName": "Breadcrumb",
"props": {
"prefix": "next-",
"maxNode": 100,
"component": "nav"
}
"component": "nav",
"style": {
"margin": 10,
"padding": 5
}
},
"children": [
{
"componentName": "Breadcrumb.Item",
"props": {
"children": "一级"
}
},
{
"componentName": "Breadcrumb.Item",
"props": {
"children": "二级"
}
},
{
"componentName": "Breadcrumb.Item",
"props": {
"children": "三级"
}
}
]
}
}
]

View File

@ -14,8 +14,8 @@
</script>
<script src="https://g.alicdn.com/platform/c/??react15-polyfill/0.0.1/dist/index.js,lodash/4.6.1/lodash.min.js,immutable/3.7.6/dist/immutable.min.js,natty-storage/2.0.2/dist/natty-storage.min.js,natty-fetch/2.6.0/dist/natty-fetch.pc.min.js,tinymce/4.2.5/tinymce-full.js"></script>
<script src="https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js"></script>
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alifd/next/1.11.6/next.min.css" />
<script src="https://unpkg.alibaba-inc.com/@alifd/next@1.18.17/dist/next.min.js"></script>
<link rel="stylesheet" href="https://unpkg.alibaba-inc.com/@alifd/next@1.20.25/dist/next.min.css" />
<script src="https://unpkg.alibaba-inc.com/@alifd/next@1.20.25/dist/next.min.js"></script>
<link rel="stylesheet" href="/css/editor-preset-vision.css" />
<script>
window.pageConfig = {