1.3.3 • Published 2 months ago
react-stretchable v1.3.3
react-stretchable
基于react的拖拽缩放插件
View the Demo and its source for more
import Zoomable from 'react-stretchable';
class App extends React.Component {
constructor(props) {
super(props);
}
render() {
const testOption = {
zoomable: {
width: {
min: 200,//default 10 拉伸最小宽度
max: 500//default 1000 拉伸最大宽度
},
height: {
min: 300,//default 10 拉伸最小高度
max: 500//default 500 拉伸最大高度
}
},
onZoomStart: (result) => {
console.log("onZoomStart", result);
},
onZoomEnd: (result) => {
console.log("onZoomEnd", result);
},
onZooming: (result) => {
console.log("onZooming", result);
}
}
return <Zoomable style={{background: "blue"}} {...testOption}>
<div>test</div>
</Zoomable>;
}
};
ReactDOM.render(
<App />,
document.getElementById('Test')
);
API
1.3.3
2 months ago
1.2.0
2 years ago
1.2.3
2 years ago
1.2.2
2 years ago
1.1.3
2 years ago
1.2.1
2 years ago
1.1.2
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.16
5 years ago
1.0.15
5 years ago
1.0.14
5 years ago
1.0.13
5 years ago
1.0.12
5 years ago
1.0.11
5 years ago
1.0.10
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago