测试
来自「荏苒之境」
<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>