mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 12:38:53 +08:00
nav组件下的option下的label属性支持表达式 #7430
This commit is contained in:
parent
b159a650e3
commit
c2a8aee6ef
@ -592,7 +592,7 @@ export class Navigation extends React.Component<
|
||||
|
||||
const label =
|
||||
typeof link.label === 'string'
|
||||
? link.label
|
||||
? filter(link.label, data)
|
||||
: React.isValidElement(link.label)
|
||||
? React.cloneElement(link.label)
|
||||
: render('inline', link.label as SchemaCollection);
|
||||
|
Loading…
Reference in New Issue
Block a user