diff --git a/src/components/QrRendererBase.js b/src/components/QrRendererBase.js index e965ff4..c9ad681 100644 --- a/src/components/QrRendererBase.js +++ b/src/components/QrRendererBase.js @@ -9,7 +9,7 @@ function listPoint(props) { const pointList = new Array(nCount); let type = props.params[1]; - let size = props.params[0]; + let size = props.params[0] / 100; let id = 0; if (size <= 0) size = 1.0 @@ -20,7 +20,7 @@ function listPoint(props) { if (type == 0) pointList.push() else if (type == 1) - pointList.push() + pointList.push() } } } @@ -41,7 +41,7 @@ class QrRendererBase extends React.Component { this.props.setParamInfo([ { key: '大小', - default: 1 + default: 100 }, { key: '定位点样式', diff --git a/src/components/QrRendererRound.js b/src/components/QrRendererRound.js index cd22d74..1ad1214 100644 --- a/src/components/QrRendererRound.js +++ b/src/components/QrRendererRound.js @@ -53,19 +53,19 @@ class QrRendererRound extends React.Component { if (this.props.setParamInfo) { this.props.setParamInfo([ { - key: '没有choices的文本框1', + key: 'Choice 1', default: 1 }, { - key: '没有choices的文本框2', + key: 'Choice 2', default: 100 }, { - key: '有choices的选择框', + key: 'Select 1', default: 0, choices: [ - "option1", - "option2" + "Option 1", + "Option 2" ] } ] diff --git a/src/components/Qrcode.css b/src/components/Qrcode.css index 708446f..effba86 100644 --- a/src/components/Qrcode.css +++ b/src/components/Qrcode.css @@ -150,7 +150,7 @@ tr { } td:nth-child(1) { - font-size: 1em; + font-size: 0.9em; white-space: nowrap; } @@ -220,6 +220,14 @@ table { color: rgba(0,0,0,0.6); } +input::-webkit-outer-spin-button, +input::-webkit-inner-spin-button { + -webkit-appearance: none; +} +input[type="number"]{ + -moz-appearance: textfield; +} + .Qr-select { line-height: 2em; box-sizing: border-box;