Laravel Spark 的 `update-payment-method-stripe` 组件中的 `billlable` 来自哪里?

Where does `billlable` come from in Laravel Spark's `update-payment-method-stripe` Component?

如果Laravel Spark,有一个带有以下内联模板的vue组件

<spark-update-payment-method-stripe :user="user" :team="team" :billable-type="billableType" inline-template>
    /* ... */
            <div class="pull-right">
                <span v-if="billable.card_last_four">
                    <i :class="['fa', 'fa-btn', cardIcon]"></i>
                    ************@{{ billable.card_last_four }}
                </span>
            </div>
    /* ... */
</spark-update-payment-method-stripe>

此模板包含变量 billable.card_last_four

如果我找到组件的定义文件,我会看到这个

#File: resources/assets/js/spark-components/settings/payment-method/update-payment-method-stripe.js
var base = require('settings/payment-method/update-payment-method-stripe');

Vue.component('spark-update-payment-method-stripe', {
    mixins: [base]
});

如果我找到基本组件,我会看到定义了一个 vue 组件

#File: spark/resources/assets/js/settings/payment-method/update-payment-method-stripe.js
module.exports = {
    props: ['user', 'team', 'billableType'],
/* ... */

但是,这些组件中的 none 似乎可以在任何地方定义 billable。我看到很多对 this.billable 的引用。

#File: spark/resources/assets/js/settings/payment-method/update-payment-method-stripe.js
/* ... */

this.form.address = this.billable.billing_address;
this.form.address_line_2 = this.billable.billing_address_line_2;
this.form.city = this.billable.billing_city;
this.form.state = this.billable.billing_state;
this.form.zip = this.billable.billing_zip;
this.form.country = this.billable.billing_country || 'US';

/* ... */                
placeholder() {
    if (this.billable.card_last_four) {
        return `************${this.billable.card_last_four}`;
    }

    return '';
}
/* ... */

这个billable属性从哪里来的?我假设 Vue 正在执行某种形式的元编程 and/or 魔法来填充它,但我对 Vue 不够熟悉,不知道发生了什么。

Bert Evans and thanksd above, as well as the Chrome VueJS debugger

的帮助下得到了我一直在寻找的答案

billable 属性 实际上是一个计算的 属性。但是,它不是在 update-payment-method-stripe.js 定义文件中本地计算的。相反,Spark 有一个 vue-bootstrap.js,其中包含以下

Vue.mixin(require('./mixin'));

事实证明,VueJS 有一个 global mixin 功能,它(似乎?)为系统中的每个组件添加一个方法。 mixin 模块看起来像这样

#File: spark/resources/assets/js/mixin.js
module.exports = {
    computed: {
        /**
         * Get the billable entity.
         */
        billable() {
            /* ... */
        },
        /* ... */
    }
};

这意味着spark中的每个组件都会有这台计算机billable 属性。