跳转到内容

Widget:Uploader:修订间差异

来自萌娘共享
无编辑摘要
(编辑自 Special:Permalink/2589047) // Edit Via InPageEdit
标签手工回退
 
(未显示2个用户的3个中间版本)
第844行: 第844行:
                 if (!url) { return; }
                 if (!url) { return; }
                 this.files.push(this.createFileItem(url));
                 this.files.push(this.createFileItem(url));
            },
            copyFileName(fileName) {
                const inputTag = document.createElement("input");
                inputTag.value = fileName;
                inputTag.style.cssText = "position: fixed; left: -9999px;";
                document.body.appendChild(inputTag);
                inputTag.focus();
                document.execCommand("selectAll");
                document.execCommand("copy");
                setTimeout(() => document.body.removeChild(inputTag), 1000);
             },
             },



2025年9月7日 (日) 22:13的最新版本