Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const Widget = widgets[key]
return <menuitem>this.addCell(key)}>{Widget.Title}</menuitem>
})
}
<menuitem>this.changeLayer(null)}>取消编辑</menuitem>
{
layers && layers.map((layer, i) => {
return <menuitem>this.changeLayer(i)}>{`第${i+1}层`}</menuitem>
})
}
随机数据
{Block('dashboard.menu', this)}
)
}
const Design = (props) => (
<div style="{{">
{ Block('main', { props })}
</div>
)
if(canOrder) {
orderItems = [
{ changeOrder('ASC') }} key="ASC"> {_t('Sort ASC')},
{ changeOrder('DESC') }} key="DESC"> {_t('Sort DESC')}
]
if(order != '') {
orderItems.push({ changeOrder('') }}> {_t('Clear order')})
}
}
return orderItems
}
const icon = {
'ASC' : ,
'DESC' :
}[order] || ''
const items = [ ...renderOrder(), ...(Block('model.list.header.menu') || []) ]
return (items.filter(item=>!_.isNil(item)).length>0) ? (
{React.Children.toArray(items)}
)} trigger={[ 'click' ]}>
<a style="{{">{title} {icon}</a>
) : ( showText === false ? null : <span>{title} {icon}</span>)
}
render() {
const { _t } = app.context
return <div>{_t('Welcome, Have a nice day!')}</div>{Block('dashboard.main', this)}
}
}
render() {
const { title, order, showText } = this.props
, icon = {
'ASC' : ,
'DESC' :
}[order] || ''
const items = [ ...this.renderOrder(), ...(Block('model.list.header.menu', this) || []) ]
return (items.filter(item=>!_.isNil(item)).length>0) ? (
{React.Children.toArray(items)}
)} trigger={[ 'click' ]}>
<a style="{{">{title} {icon}</a>
) : ( showText === false ? null : <span>{title} {icon}</span>)
}
<a>this.setState({ showDataModal: true })}>数据源</a>
<a>this.setState({ showConnectModal: true })}>接口管理</a>
<button>
</button><button type="">
{Block('dashboard.menu', this)}
),
this.setState({ showDashboardModal: false })} />,
this.setState({ showDataModal: false })} />,
this.setState({ showConnectModal: false })} />
]
}
}</button>