测试:修订间差异

来自「荏苒之境」
创建页面,内容为“<template> <p v-i18n-html="fooOrBarMsg"></p> </template> <script> const { defineComponent } = require( 'vue' ); module.exports = defineComponent( { computed: { fooOrBarMsg: function () { // Note that this returns a Message object, not a string return mw.message( this.foo ? 'foo-msg' : 'bar-msg' ) .params( [ this.baz, this.quux ] ); } } } ); </script>”
 
清空全部内容
 
(未显示同一用户的13个中间版本)
第1行: 第1行:
<template>
 
    <p v-i18n-html="fooOrBarMsg"></p>
</template>
<script>
const { defineComponent } = require( 'vue' );
module.exports = defineComponent( {
    computed: {
        fooOrBarMsg: function () {
            // Note that this returns a Message object, not a string
            return mw.message( this.foo ? 'foo-msg' : 'bar-msg' )
                .params( [ this.baz, this.quux ] );
        }
    }
} );
</script>

2025年8月2日 (六) 21:10的最新版本