提交 920b7a83 authored 作者: chlolch's avatar chlolch

修改bug

上级 50c942ef
...@@ -111,7 +111,7 @@ export default class index extends Component { ...@@ -111,7 +111,7 @@ export default class index extends Component {
const { width,height } = this.props const { width,height } = this.props
const {url}=this.state const {url}=this.state
return ( return (
<div id='canvas_signature' style={{width:'100%',height:'100%'}}> <div id='canvas_signature' style={{width:'100%',height:'100%',marginLeft:5}}>
<div style={{width: width,textAlign:'center', height: height,border:'1px dashed gray',position:'relative'}}> <div style={{width: width,textAlign:'center', height: height,border:'1px dashed gray',position:'relative'}}>
{url?<img src={config.httpServer+url} style={{width:width,height:height}}/>: <SignatureCanvas penColor='black' {url?<img src={config.httpServer+url} style={{width:width,height:height}}/>: <SignatureCanvas penColor='black'
ref={(ref) => { this.sigCanvas = ref }} ref={(ref) => { this.sigCanvas = ref }}
......
...@@ -2149,9 +2149,10 @@ export default class tableCom extends Component { ...@@ -2149,9 +2149,10 @@ export default class tableCom extends Component {
<img <img
src={config.httpServer + obj[dataColumn.base52]} src={config.httpServer + obj[dataColumn.base52]}
style={{ style={{
marginLeft:5,
width: width:
get === 'mobile' get === 'mobile'
? document.documentElement.clientWidth - 100 || document.body.clientWidth - 100 ? (document.documentElement.clientWidth - 10 || document.body.clientWidth - 10)
: json.width, : json.width,
height: get === 'mobile' ? '' : json.height, height: get === 'mobile' ? '' : json.height,
}} }}
...@@ -2953,7 +2954,7 @@ export default class tableCom extends Component { ...@@ -2953,7 +2954,7 @@ export default class tableCom extends Component {
<Signature <Signature
width={ width={
get === 'mobile' get === 'mobile'
? document.documentElement.clientWidth - 100 || document.body.clientWidth - 100 ? (document.documentElement.clientWidth - 10 || document.body.clientWidth - 10)
: json.width : json.width
} }
height={json.height} height={json.height}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论