zent
Version:
一套前端设计语言和基于React的实现
32 lines (25 loc) • 554 B
Markdown
order: 7
zh-CN:
title: 自定义父节点CSS selector
name: 自定义父节点
en-US:
title: Custom notify parent container css selector
name: custom notify content container
```jsx
import { Notify, Button } from 'zent';
function customContent() {
Notify.success('{i18n.name}', '', () => {}, '#custom-container');
}
const relativeStyle = {
position: 'relative'
}
ReactDOM.render(
<div>
<Button onClick={customContent}>{i18n.name}</Button>
<div id="custom-container" style={relativeStyle}></div>
</div>
, mountNode
);
```