From f3af998dd74c6b60e29796f8488b5b2bf58a21f1 Mon Sep 17 00:00:00 2001 From: ciaochaos <1272777550@qq.com> Date: Fri, 1 May 2020 20:32:15 +0800 Subject: [PATCH] 0.1.0.2 --- .idea/workspace.xml | 19 ++++++++++++++----- src/components/QrItem.js | 9 ++++++--- src/components/Qrcode.css | 7 ++++--- 3 files changed, 24 insertions(+), 11 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index c15f7e1..59f4c0b 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -11,7 +11,9 @@ - + + + @@ -309,10 +318,10 @@ - + - + diff --git a/src/components/QrItem.js b/src/components/QrItem.js index 615897d..f369199 100644 --- a/src/components/QrItem.js +++ b/src/components/QrItem.js @@ -21,9 +21,12 @@ class QrItem extends React.Component { return (
- - {this.props.renderer} - +
+ + {this.props.renderer} + +
+
{this.state.value} diff --git a/src/components/Qrcode.css b/src/components/Qrcode.css index 297cf4e..2ccbe7e 100644 --- a/src/components/Qrcode.css +++ b/src/components/Qrcode.css @@ -80,12 +80,13 @@ transition-duration: 0.2s; } -.Qr-item-svg { +.Qr-item-image-inner { opacity: 0.36; -webkit-transition-timing-function: ease-in-out; transition-timing-function: ease-in-out; -webkit-transition-duration: 0.2s; /* Safari */ transition-duration: 0.2s; + -webkit-transform: translateZ(0); } @media (min-width: 500px) { @@ -99,7 +100,7 @@ border-color: #44D7B6; } -.Qr-item:hover .Qr-item-svg { +.Qr-item:hover .Qr-item-image-inner { opacity: 1; } @@ -152,7 +153,7 @@ td { } .Qr-input { - caret-color: #44D7B6; + caret-color: #44d7b6; padding: 0; line-height: 2em; box-sizing: border-box;