Comments (14)
Please go to understand the less
.
from drawer.
from drawer.
We will not do this, and we can replace it with less
.
close
https://github.com/react-component/drawer/blob/master/assets/index.less#L31
open
https://github.com/react-component/drawer/blob/master/assets/index.less#L161
from drawer.
thanks for the detailed description. I understand that. I did exactly as you wrote. but it is very inconvenient to change the internal structure of the module. it is much more convenient to pass all this parameters and properties. on one page you need some parameters and on the other you may need others. or do you need to install several components and change them?
from drawer.
can i use in the drawer-handle-icon not the css transform but also the image_open.png and image_close.png?
from drawer.
handler | boolean | ReactElement | true | true or false or ReactElement, default:<divclassName="drawer-handle">; |
---|
from drawer.
give example plese. i am do not understand as do it.
from drawer.
I do not want to replace the item but instead its 3 strips and cross put a picture but use the built-in the handler
from drawer.
I want to make on a light background shows a dark picture and a dark light and also change the picture depending on the page. this will make the drawer more versatile and allow you to use it for different tasks.
from drawer.
class Demo extends React.Component {
state = {
open: false,
}
onChange = (open) => {
this.setState({
open
})
}
render() {
return (
<Drawer onChange={this.onChange} handler={<div><img src={this.state.open ? 'image_open.png' : 'image_close.png'} /></div>} />
);
}
}
from drawer.
thank You very match.
from drawer.
it will be more convenient if you add the opened property to the drawer. then don't write so much. example
handler={<div><img src={drawer.opened ? 'image_open.png' : 'image_close.png'}
from drawer.
it is necessary to change the color of the elements of the handler depending on what page is the menu. but do not use the state yourself as in the example above. you also need the property to know whether the drawer is open or closed without using the state.
from drawer.
on the website the main page is dark and the rest are light. I need to make this element light on the front page and dark on the other pages. as well as the border around the element when the driwer is opened and to remove the curb when the driwer is closed.
from drawer.
Related Issues (20)
- Next.JS server side: Expected server HTML to caontain a matching <div> in <div>
- undefined is not an object (evaluating 'n.startPos.x')
- node_modules/rc-drawer/lib/DrawerWrapper.d.ts(2,13): '=' expected. TS1005 HOT 2
- Make possible to reset drawer scroll position when closed
- Background color for drawer
- Consider the toolbar
- Can't set data-testid on drawer HOT 5
- Demo is out of date
- How do I make the main content slide to the side as well as the drawer?
- 安卓微信内置浏览器内无效 HOT 4
- if `mask` be set as `false`, drawer should not lock body?
- After closing the drawer, the focus of the page disappears making accessibility disappear and I can't use the tab button to move around the page HOT 1
- 6.1.4 版本设置 destroyOnClose 为true后,重新打开,弹窗里的内容没有渲染
- Package.json - wrong licence definition HOT 1
- Bug: ClassName prop is not merged correctly
- Bug: Css is broken on latest major release
- this package license is showing as none in NPM repository
- Bug: getContainer设置指定dom元素后依然是全屏 HOT 2
- Bug: panelRef 似乎获取不到 dom 元素 HOT 6
- Placement top or bottom does not work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drawer.