mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-18 21:38:14 +00:00
fix: 适配Nav组件
This commit is contained in:
parent
0614fa7960
commit
7e9829fc71
@ -7974,7 +7974,7 @@
|
|||||||
"line"
|
"line"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"description": "导航类型\n@enumdesc 普通, 主要, 次要, 线形",
|
"description": "导航类型",
|
||||||
"defaultValue": "normal"
|
"defaultValue": "normal"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -7986,7 +7986,7 @@
|
|||||||
"ver"
|
"ver"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"description": "导航布局\n@enumdesc 水平, 垂直",
|
"description": "导航布局",
|
||||||
"defaultValue": "ver"
|
"defaultValue": "ver"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -7998,7 +7998,7 @@
|
|||||||
"right"
|
"right"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"description": "横向导航条 items 和 footer 的对齐方向,在 direction 设置为 'hoz' 并且 header 存在时生效",
|
"description": "对齐方向",
|
||||||
"defaultValue": "left"
|
"defaultValue": "left"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -8013,7 +8013,7 @@
|
|||||||
"right"
|
"right"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"description": "设置组件选中状态的 active 边方向\n@enumdesc 无, 上, 下, 左, 右\n@default 当 direction 为 'hoz' 时,默认值为 'bottom',当 direction 为 'ver' 时,默认值为 'left'"
|
"description": "选中条方向"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "mode",
|
"name": "mode",
|
||||||
@ -8024,7 +8024,7 @@
|
|||||||
"popup"
|
"popup"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"description": "子导航打开的模式(水平导航只支持弹出)\n@eumdesc 行内, 弹出",
|
"description": "子导航打开的模式",
|
||||||
"defaultValue": "inline"
|
"defaultValue": "inline"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -8048,7 +8048,7 @@
|
|||||||
{
|
{
|
||||||
"name": "defaultOpenAll",
|
"name": "defaultOpenAll",
|
||||||
"propType": "bool",
|
"propType": "bool",
|
||||||
"description": "初始展开所有的子导航,只在 mode 设置为 'inline' 以及 openMode 设置为 'multiple' 下生效",
|
"description": "初始展开所有的子导航",
|
||||||
"defaultValue": false
|
"defaultValue": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -8060,7 +8060,7 @@
|
|||||||
"multiple"
|
"multiple"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"description": "内联子导航的展开模式,同时可以展开一个同级子导航还是多个同级子导航,该属性仅在 mode 为 inline 时生效\n@eumdesc 一个, 多个",
|
"description": "内联子导航的展开模式",
|
||||||
"defaultValue": "multiple"
|
"defaultValue": "multiple"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -8075,7 +8075,7 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"description": "当前选中导航项的 key 值"
|
"description": "当前选中导航key值"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "defaultSelectedKeys",
|
"name": "defaultSelectedKeys",
|
||||||
@ -8089,8 +8089,7 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"description": "初始选中导航项的 key 值",
|
"description": "初始选中导航项的key值"
|
||||||
"defaultValue": []
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "onSelect",
|
"name": "onSelect",
|
||||||
@ -8122,13 +8121,13 @@
|
|||||||
{
|
{
|
||||||
"name": "hasArrow",
|
"name": "hasArrow",
|
||||||
"propType": "bool",
|
"propType": "bool",
|
||||||
"description": "是否显示右侧的箭头(仅在 iconOnly=true 时生效)",
|
"description": "是否显示右侧的箭头",
|
||||||
"defaultValue": true
|
"defaultValue": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "hasTooltip",
|
"name": "hasTooltip",
|
||||||
"propType": "bool",
|
"propType": "bool",
|
||||||
"description": "是否有 ToolTips (仅在 iconOnly=true 时生效)",
|
"description": "是否有ToolTips",
|
||||||
"defaultValue": false
|
"defaultValue": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -8150,12 +8149,8 @@
|
|||||||
{
|
{
|
||||||
"name": "embeddable",
|
"name": "embeddable",
|
||||||
"propType": "bool",
|
"propType": "bool",
|
||||||
"description": "是否开启嵌入式模式,一般用于Layout的布局中,开启后没有默认背景、外层border、box-shadow,可以配合`<Nav style={{lineHeight: '100px'}}>` 自定义高度",
|
"description": "开启嵌入式模式",
|
||||||
"defaultValue": false
|
"defaultValue": false
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "popupProps",
|
|
||||||
"propType": "object"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"configure": {
|
"configure": {
|
||||||
@ -8181,35 +8176,18 @@
|
|||||||
{
|
{
|
||||||
"name": "icon",
|
"name": "icon",
|
||||||
"propType": {
|
"propType": {
|
||||||
"type": "oneOfType",
|
"type": "icon"
|
||||||
"value": [
|
|
||||||
"string",
|
|
||||||
{
|
|
||||||
"type": "instanceOf",
|
|
||||||
"value": "node"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"description": "自定义图标,可以使用 Icon 的 type,也可以使用组件 `<Icon type=\"icon type\" />`"
|
"description": "自定义图标"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "children",
|
"name": "children",
|
||||||
"propType": {
|
"propType": {
|
||||||
"type": "instanceOf",
|
"type": "oneOfType",
|
||||||
"value": "node"
|
"value": ["string", "node"]
|
||||||
},
|
},
|
||||||
"description": "导航内容"
|
"description": "导航内容"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "parentMode",
|
|
||||||
"propType": {
|
|
||||||
"type": "oneOf",
|
|
||||||
"value": [
|
|
||||||
"inline",
|
|
||||||
"popup"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "style",
|
"name": "style",
|
||||||
"propType": "object"
|
"propType": "object"
|
||||||
@ -14727,7 +14705,6 @@
|
|||||||
"triggerType": "click",
|
"triggerType": "click",
|
||||||
"inlineIndent": 20,
|
"inlineIndent": 20,
|
||||||
"openMode": "multiple",
|
"openMode": "multiple",
|
||||||
"defaultSelectedKeys": [],
|
|
||||||
"popupAlign": "follow",
|
"popupAlign": "follow",
|
||||||
"hasArrow": true
|
"hasArrow": true
|
||||||
}
|
}
|
||||||
|
|||||||
@ -462,7 +462,7 @@ window.MonacoEnvironment = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export default class MonacoEditorButtonView extends PureComponent {
|
export default class MonacoEditorButtonView extends PureComponent {
|
||||||
static displayName = 'MonacoEditorButton';
|
static displayName = 'JsonSetter';
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
locale: PropTypes.string,
|
locale: PropTypes.string,
|
||||||
messages: PropTypes.object,
|
messages: PropTypes.object,
|
||||||
|
|||||||
@ -119,13 +119,11 @@ class Renderer extends Component<{ renderer: SimulatorRenderer }> {
|
|||||||
children = (
|
children = (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
height: '66px',
|
|
||||||
backgroundColor: '#f0f0f0',
|
backgroundColor: '#f0f0f0',
|
||||||
borderColor: '#a7b1bd',
|
borderColor: '#a7b1bd',
|
||||||
border: '1px dotted',
|
border: '1px dotted',
|
||||||
color: '#a7b1bd',
|
color: '#a7b1bd',
|
||||||
textAlign: 'center',
|
textAlign: 'center'
|
||||||
lineHeight: '66px',
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{viewProps.placeholder || '拖拽组件或模板到这里'}
|
{viewProps.placeholder || '拖拽组件或模板到这里'}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user