mirror of
https://github.com/m1ngsama/FUJI.git
synced 2025-12-24 10:51:27 +00:00
Merge branch 'dev' of https://github.com/nbtca/Home into dev
This commit is contained in:
commit
b28814c4f4
1 changed files with 23 additions and 13 deletions
|
|
@ -30,7 +30,7 @@ function QrCodeContent({ qrcode }: { qrcode: string }) {
|
|||
style={{
|
||||
display: "flex",
|
||||
justifyContent: "center",
|
||||
flexDirection: "column",
|
||||
// flexDirection: "column",
|
||||
textAlign: "center",
|
||||
}}
|
||||
>
|
||||
|
|
@ -43,7 +43,7 @@ function QrCodeContent({ qrcode }: { qrcode: string }) {
|
|||
<div
|
||||
style={{
|
||||
textAlign: "center",
|
||||
width: "90px",
|
||||
width: "120px",
|
||||
display: "flex",
|
||||
justifyContent: "center",
|
||||
}}
|
||||
|
|
@ -51,19 +51,29 @@ function QrCodeContent({ qrcode }: { qrcode: string }) {
|
|||
<Input readOnly={true} value="906370401" />
|
||||
</div>
|
||||
</div>
|
||||
<Button
|
||||
onClick={() => {
|
||||
const inputElement = document.querySelector(
|
||||
"input[value=\"906370401\"]",
|
||||
) as HTMLInputElement
|
||||
if (inputElement) {
|
||||
inputElement.select()
|
||||
navigator.clipboard.writeText(inputElement.value)
|
||||
}
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
justifyContent: "center",
|
||||
}}
|
||||
>
|
||||
复制到剪切板
|
||||
</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>
|
||||
</>
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue