Widget:Uploader:修订间差异
外观
Vue2转为mw自带Vue3 |
小 (编辑自 Special:Permalink/2589047) // Edit Via InPageEdit 标签:手工回退 |
||
| (未显示2个用户的4个中间版本) | |||
| 第4行: | 第4行: | ||
"use strict"; | "use strict"; | ||
window.RLQ = window.RLQ || []; | window.RLQ = window.RLQ || []; | ||
window.RLQ.push([["mediawiki.api", "jquery", "vue"], async ( | window.RLQ.push([["mediawiki.api", "jquery", "vue"], async () => { | ||
if (mw.config.get("wgPageName") !== "MediaWiki:Uploader") { | if (mw.config.get("wgPageName") !== "MediaWiki:Uploader") { | ||
return; | return; | ||
| 第640行: | 第640行: | ||
}, | }, | ||
}).attach().classes; | }).attach().classes; | ||
const { createApp, defineComponent } = Vue; | const { createApp, defineComponent } = window.Vue; | ||
const App = defineComponent({ | const App = defineComponent({ | ||
template: template, | template: template, | ||
| 第844行: | 第844行: | ||
if (!url) { return; } | if (!url) { return; } | ||
this.files.push(this.createFileItem(url)); | this.files.push(this.createFileItem(url)); | ||
}, | }, | ||
2025年9月7日 (日) 22:13的最新版本
Only for MediaWiki:Uploader