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