6月20日版本内容已同步100%进度

如果你想联系我们,欢迎加入BWIKI的Q群→→点此←←

全站通知:

Widget:Calculator/help

来自第五人格WIKI_BWIKI_哔哩哔哩
跳到导航 跳到搜索

<script type='text/javascript'src="https://wiki.biligame.com/ys/MediaWiki:vue3-global.js?action=raw&ctype=text/javascript"></script>

参数变量:模板:Index 参数名称:<input type="text" v-model="help[index][0]" /> 默认值:<input type="number" v-model="help[index][1]" /> <button @click="deleteParameter(index)">删除</button>

添加新参数<input type="text" v-model="addKey" @blur="verify" /><button @click="addParameter(addKey)">添加</button>

参数(复制下方内容):
模板:Help

<script> (window.RLQ = window.RLQ || []).push([["jquery"], function () { $(function () {

let Counter = { data() { return { help: { A: ["参数A", 0] }, addKey: "Z", }; }, created() {}, computed: {}, methods: { deleteParameter(index) { delete this.help[index]; }, addParameter(addKey) { if (this.help[addKey]) { alert("请勿输入已存在参数"); } else { this.help[addKey] = [`参数${addKey}`, 0]; } }, verify() { this.addKey = this.addKey.toUpperCase(); }, }, };

function onload() { app.mount("#calculatorHelp"); } var app = Vue.createApp(Counter); onload();


}) }]) </script>