sytpb

sytpb

Member Since 6 years ago

Experience Points
2
follower
Lessons Completed
3
follow
Lessons Completed
135
stars
Best Reply Awards
62
repos

19 contributions in the last year

Pinned
⚡ C marco & C++11 (auto decltype std::function..) perfect design
⚡ 微信小程序-微赞论坛
⚡ 🕷spider world with me
⚡ :seedling:抖音 as, cp, mas 签名算法+API协议
⚡ 抖音/douyin/tiktok/gifshow public sign service
⚡ Fiddler + Appium + Mitmproxy + Android Emulator
Activity
Dec
6
23 hours ago
Activity icon
issue

sytpb issue comment wzc570738205/smartParsePro

sytpb
sytpb

address: 字段信息丢失内容

address: 字段信息丢失内容

北京市海淀区西三旗建材城东二里13-2-502,李国强 1388888888

address: "西三旗建材城东二里13" city: "北京市" cityCode: "1101" county: "海淀区" countyCode: "110108" name: "李国强" phone: "1388888888" province: "北京市" provinceCode: "11"

13-2-502 内容不全,是不是把’-‘ 当分隔符了?

sytpb
sytpb

??? https://github.com/wzc570738205/smartParsePro 这也是老版本? 我不是新版本吗。晕了。

Activity icon
issue

sytpb issue comment wzc570738205/smartParsePro

sytpb
sytpb

address: 字段信息丢失内容

address: 字段信息丢失内容

北京市海淀区西三旗建材城东二里13-2-502,李国强 1388888888

address: "西三旗建材城东二里13" city: "北京市" cityCode: "1101" county: "海淀区" countyCode: "110108" name: "李国强" phone: "1388888888" province: "北京市" provinceCode: "11"

13-2-502 内容不全,是不是把’-‘ 当分隔符了?

sytpb
sytpb

同样的,我试了另一个开源开具,address-parse,没有遇到上面的问题,手机少一位也不会出现。

仅供参考。

Activity icon
issue

sytpb issue comment wzc570738205/smartParsePro

sytpb
sytpb

address: 字段信息丢失内容

address: 字段信息丢失内容

北京市海淀区西三旗建材城东二里13-2-502,李国强 1388888888

address: "西三旗建材城东二里13" city: "北京市" cityCode: "1101" county: "海淀区" countyCode: "110108" name: "李国强" phone: "1388888888" province: "北京市" provinceCode: "11"

13-2-502 内容不全,是不是把’-‘ 当分隔符了?

sytpb
sytpb

image

image

你好

我再次校验了一遍, 我的结果还是那样的,不是手机少一样的事,写成11位同样有这个问题。 (手机号是我为了屏蔽隐私替换了一下,写issue 里少写了一位)

然后完全一样的,我用你的Demo跑确实正常, 没有问题,我现在怀疑,是环境哪里的差异引起这个问题。

另外 如果是少一位手机号,引起的话,那么在你的Demo 上运行,也应该复现我的问题,但实际上没有,虽然也出现了错误,但是不和我的错误不一样。见下图,可以和我的对比。

image

个人推断,应该是环境哪里差异引起了引问题,在我环境下跑和你的环境里跑结果是有差异的。

Dec
4
2 days ago
Activity icon
issue

sytpb issue wzc570738205/smartParsePro

sytpb
sytpb

address: 字段信息丢失内容

address: 字段信息丢失内容

北京市海淀区西三旗建材城东二里13-2-502,李国强 1388888888

address: "西三旗建材城东二里13" city: "北京市" cityCode: "1101" county: "海淀区" countyCode: "110108" name: "李国强" phone: "1388888888" province: "北京市" provinceCode: "11"

13-2-502 内容不全,是不是把’-‘ 当分隔符了?

Dec
3
3 days ago
started
started time in 3 days ago
started
started time in 3 days ago
Nov
24
1 week ago
started
started time in 1 week ago
Oct
15
1 month ago
Activity icon
issue

sytpb issue facebook/react

sytpb
sytpb

Attempted import error: 'useLocation' is not exported from 'react-router-dom'.

React version: "react": "^16.13.0", "react-dom": "^16.13.0", "react-router-dom": "5.0.1", "react-scripts": "3.4.0",

js code as

import {useLocation} from "react-router-dom"; const location = useLocation(); ...... where is the problem ?

Activity icon
issue

sytpb issue comment facebook/react

sytpb
sytpb

Attempted import error: 'useLocation' is not exported from 'react-router-dom'.

React version: "react": "^16.13.0", "react-dom": "^16.13.0", "react-router-dom": "5.0.1", "react-scripts": "3.4.0",

js code as

import {useLocation} from "react-router-dom"; const location = useLocation(); ...... where is the problem ?

sytpb
sytpb

upgrade the react-router-dom fixed this issue . i have just got the point , is the "react-router-dom": "5.0.1", the version 5.0.1 is not support useLocation, update to 5.3 ,it worked .

thanks a lot !

Activity icon
issue

sytpb issue facebook/react

sytpb
sytpb

Attempted import error: 'useLocation' is not exported from 'react-router-dom'.

React version: "react": "^16.13.0", "react-dom": "^16.13.0", "react-router-dom": "5.0.1", "react-scripts": "3.4.0",

js code as

import {useLocation} from "react-router-dom"; const location = useLocation(); ...... where is the problem ?

Oct
10
1 month ago
Activity icon
issue

sytpb issue crabbly/Print.js

sytpb
sytpb

how to get the result from user's clicking with preview ?

when user click button, the preview page show to him , there are two choices [print] or [cancel] , if we can get which choice the user have clicked ?

Oct
2
2 months ago
Activity icon
issue

sytpb issue crabbly/Print.js

sytpb
sytpb

could Print.js just show Topn pages in preview

I hit a requirement , there are many pages to print , it is no need for user to view all the pages in preview , such as just show him 3 ,5 ... topn pages , but print will done for all pages .

Sep
27
2 months ago
started
started time in 2 months ago
started
started time in 2 months ago
Sep
26
2 months ago
Activity icon
issue

sytpb issue crabbly/Print.js

sytpb
sytpb

preview is disorder ,caused by Css in js ?

web page 微信图片_20210926121422

print view page

微信图片_20210926121656 `const useStyles = makeStyles((theme) => ({ root: { margin: '0px', width: '100mm', height: '150mm' }, lineBorder1: { border: '0.5px solid', borderBottom: '0px', }, lineBorder2: { border: '0.5px solid', }, lineDiv12: {
display: 'flex', height: '12mm', }, lineDiv4: {
display: 'flex', height: '4mm', }, lineDiv17: {
display: 'flex', height: '17mm', padding: 0, //border: '0.5px solid', }, lineDiv5: {
display: 'flex', height: '5mm', //border: '0.5px solid', }, lineDiv9: {
display: 'flex', height: '9mm', }, lineDiv17a: {
display: 'flex', height: '17mm', }, lineDiv26: {
display: 'flex', height: '26mm', }, lineDiv11: {
display: 'flex', height: '11mm', }, lineDiv24: {
display: 'flex', height: '24mm', }, lineDiv25: {
display: 'flex', height: '25mm', }, logo_div: { width: '100%', //border: '0.5px solid', height: '100%', textAlign: 'left', }, logo: { margin: '5px', width: '20mm', height: '90%' }, procode_div: { width: '100%', //border: '0.5px solid', height: '9%', textAlign: 'right', fontSize: '26pt' }, print_div: { width: '100%',

    textAlign: 'center',
    fontSize: '9pt'
},
barcode: {
    width: '100%',
    //border: '0.5px solid',
    //height: '16mm',
    textAlign: 'center',
    //marginTop: '10px',
    padding: '0',
    margin: '0'
},
waybill_div: {
    width: '100%',
    textAlign: 'center',
    fontSize: '10pt',
},
destRouteLabel: {
    fontSize: '24pt',
    padding: 0,        
    width: '100%'
},
iconReceive: {
    width: '7mm',
    height: '7mm',
    padding: '10px',
},
infoReceive: {
    margin: '10px',
    fontSize: '9pt'
},
codSize: {
    height: '9mm',
    width: '14mm',
    padding: '1px',

  },
lineDiv22: {
    width: '100%',
    height: '22mm',
    border: '0.5px solid',
    borderBottom: '0px',
},
lineDiv14: {
    width: '100%',
    height: '14mm',
    border: '0.5px solid',
    borderBottom: '0px',
},
lineDiv28: {
    width: '100%',
    height: '28mm',
    border: '0.5px solid',
    borderBottom: '0px',
},
lineDiv20: {
    width: '100%',
    height: '20mm',
    border: '0.5px solid',
},
HaveChecked: {
    width: '100%',
    fontFamily: 'Arial,SimHei',
    fontSize: '18pt',
    margin: 0,
    opacity:0.2,
  }

}));

export default function Waybill50() { const classes = useStyles();

useEffect(() => {
    genBarCode();
    return () => {

    };
  }, []);

const genBarCode = () => {

    return JsBarcode('#barcode', "7444435815272",{
        width:2.6,
        height:60,
        displayValue: false,
        marginLeft: 1,
        marginTop: 1,
        marginBottom: -2,
        marginRight: 0,

      });
};


return (
<>
<div className={classes.root} id="print-div">
    <div className={classes.lineDiv12}>
        <div className={classes.logo_div}><img className={classes.logo} src={sflogo}/></div>
        <div className={classes.procode_div}>标快</div>
    </div>
    <div className={classes.lineDiv4}>
        <div className={classes.print_div}>打印次数:1 打印时间2021-09-25</div>
    </div>
    <div className={classes.lineDiv17}>
        <svg  id="barcode" className={classes.barcode}></svg>
    </div>
    <div className={classes.lineDiv5}>
        <div  className={classes.waybill_div}>SF132413241324131324</div>
    </div>
    <div className={classes.lineBorder1}>
        <div className={classes.lineDiv9}>
            <Typography align="center" className={classes.destRouteLabel}>7755WD-755BF</Typography>
        </div>
        <div className={classes.lineDiv17a}>
            <img className={classes.iconReceive} src={receive}></img>
            <Typography align="justify" className={classes.infoReceive}>宋延涛  134****8898 大连中山区纺织大厦 15层ip研发部门</Typography>
        </div>
    </div>
    <div className={classes.lineBorder1}>
        <div className={classes.lineDiv26}>
            <div style={{"width":"30%"}}>
                <div style={{"borderBottom":"0.5px solid"}}>
                    <Typography align="justify" variant="caption">寄付月结4009876</Typography>
                </div>
                <div>
                    <Typography align="center" variant="h5" style={{"height":"70%"}}>A6</Typography>
                </div>
            </div>
            <div style={{"width":"30%","borderLeft":"0.5px solid"}}>
                <QRCode className='QRCode' size={90} value={`MMM={'k1':'510W','k2':'510TA','k3':'014','k4':'T4','k5':'295112824073','k6':'','k7':'131f5089'}`}/>
            </div>
            <div style={{"width":"10%","borderLeft":"0.5px solid"}}>
                <p className="HaveChecked">已验视</p>
            </div>
            <div style={{"width":"30%","borderLeft":"0.5px solid"}}>
                <div style={{"height":"60%"}}>
                    <Typography align="center" variant="caption">干配</Typography>
                </div>
                <div>
                    <Typography align="center" variant="h5" style={{"borderTop":'0.5px solid'}}>A9</Typography>
                </div>
            </div>
        </div>
    </div>
    <div className={classes.lineBorder1}>
        <div className={classes.lineDiv11}>
            <img className={classes.iconReceive} src={send}></img>
            <Typography align="justify" className={classes.infoReceive}>宋延涛  134****8898 大连中山区纺织大厦 15层ip研发部门</Typography>
        </div>
    </div>
    <div className={classes.lineBorder1}>
        <div className={classes.lineDiv24}>
            <div style={{"width":"50%","borderRight":'0.5px solid'}}>
                <Typography align="center" style={{"fontSize":'9pt'}} >托寄物:文具3件 <br/>备注答间返白联</Typography>
            </div>
            <div >
                <div>
                    <Typography align="justify" style={{"fontSize":'9pt'}}>增值服务:保价金额500.00 签回单</Typography>
                </div>
                <div>
                    <Typography align="justify" style={{"fontSize":'9pt'}} >实际重量 签回单要求:签名 签回单号SF1061429341982374</Typography>
                </div>
            </div>
        </div>
    </div>
    <div className={classes.lineBorder2}>
        <div className={classes.lineDiv25}>
            <div style={{"width":"50%","borderRight":'0.5px solid'}}>
                <Typography align="center" style={{"fontSize":'9pt'}} >用户自定义区域</Typography>
            </div>
            <div >

            </div>
        </div>
    </div>
</div>
<div>
    <button onClick={()=>printJS({printable:'print-div',type:'html',scanStyles: false})}>
        Print Form
    </button>
</div>
</>
);

}`

Sep
25
2 months ago
Activity icon
issue

sytpb issue comment crabbly/Print.js

sytpb
sytpb

CSS GRID not working on print

Dear Team,

Thanks for this awesome library. I'm facing some issues with CSS GRID.

I have an html styled using CSS Grid and when I print that HTML using Print.js, GRID CSS are not getting applied. Here is the fiddle link

Thanks, fingers10

sytpb
sytpb

i have met the same problem , i am using material ui Grid , print doesn't support it . the elements of html are disorder..... so i think print.js can't work with my material grid(flex) system...

Sep
20
2 months ago
started
started time in 2 months ago
started
started time in 2 months ago
Sep
15
2 months ago
Activity icon
issue

sytpb issue comment mui-org/material-ui

sytpb
sytpb

TextField with select: Label overlaps selected value

With a select TextField that has a label and null initial value, when focus is lost the selected value will overlap the label. This only happens if the initial value is null, if it is a blank string the issue does not occur.

  • This is not a v0.x issue.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

TextField's selected value should not overlap the label when focus is lost.

Current Behavior

TextField's selected value overlaps the label when focus is lost.

Steps to Reproduce

Link: https://codesandbox.io/s/wqp00361y7

  1. Select a value from the dropdown
  2. Click outside of the field so that the TextField loses focus
  3. See how the label and selected value overlaps.

Context

I have a TextField select component whose initial value is null, not a blank string.

Your Environment

Tech Version
Material-UI v3.1.1
React 16.4.1
Browser Chrome Version 69.0.3497.100 (Official Build) (64-bit)
TypeScript No
etc. Windows 7 64-bit
sytpb
sytpb

I met his problem , but there are some differences with above case , it is a uncontrolled TextField case ,not controlled TextField .

const toNameRef = useRef(); <TextField required id="receiver-name" label="name" inputRef={toNameRef} InputLabelProps={{ shrink: !!toNameRef.current}} /> shrink: !!toNameRef.current can fix overlapping , but the label is always upper .