测试

来自「荏苒之境」
Sicusa留言 | 贡献2025年7月29日 (二) 15:52的版本 (创建页面,内容为“<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>”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

<template>

</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>