mirror of
https://github.com/m1ngsama/FUJI.git
synced 2025-12-25 02:56:38 +00:00
optimize
This commit is contained in:
parent
7aac699184
commit
713ac78653
1 changed files with 23 additions and 13 deletions
|
|
@ -30,7 +30,7 @@ function QrCodeContent({ qrcode }: { qrcode: string }) {
|
||||||
style={{
|
style={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
flexDirection: "column",
|
// flexDirection: "column",
|
||||||
textAlign: "center",
|
textAlign: "center",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
@ -43,7 +43,7 @@ function QrCodeContent({ qrcode }: { qrcode: string }) {
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
textAlign: "center",
|
textAlign: "center",
|
||||||
width: "90px",
|
width: "120px",
|
||||||
display: "flex",
|
display: "flex",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
}}
|
}}
|
||||||
|
|
@ -51,19 +51,29 @@ function QrCodeContent({ qrcode }: { qrcode: string }) {
|
||||||
<Input readOnly={true} value="906370401" />
|
<Input readOnly={true} value="906370401" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Button
|
<div
|
||||||
onClick={() => {
|
style={{
|
||||||
const inputElement = document.querySelector(
|
display: "flex",
|
||||||
"input[value=\"906370401\"]",
|
justifyContent: "center",
|
||||||
) as HTMLInputElement
|
|
||||||
if (inputElement) {
|
|
||||||
inputElement.select()
|
|
||||||
navigator.clipboard.writeText(inputElement.value)
|
|
||||||
}
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
复制到剪切板
|
<Button
|
||||||
</Button>
|
style={{
|
||||||
|
maxWidth: "320px",
|
||||||
|
}}
|
||||||
|
onClick={() => {
|
||||||
|
const inputElement = document.querySelector(
|
||||||
|
"input[value=\"906370401\"]",
|
||||||
|
) as HTMLInputElement
|
||||||
|
if (inputElement) {
|
||||||
|
inputElement.select()
|
||||||
|
navigator.clipboard.writeText(inputElement.value)
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
复制到剪切板
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue