我正在尝试在模板中调用mixin函数。 Vue文档说mixin和组件已合并,但我不能调用该函数。
getImage不是函数
Mixin
for i in range (0, numberOfTrues):
df.at[np.random.rand(len(df)), 'train'] = True
df2 = df.loc[df['train'] == True]
df1 = df.loc[df['train'] != True]
for i in range (0, df1.shape[0]):
df1['train'] = True
dfs = [df1, df2]
df = pd.concat(dfs)
组件
billingClient = BillingClient.newBuilder(fragmentActivity)
.setChildDirected(BillingClient.ChildDirected.CHILD_DIRECTED)
.setUnderAgeOfConsent(BillingClient.UnderAgeOfConsent.UNDER_AGE_OF_CONSENT)
.setListener(that).build();
答案 0 :(得分:4)
将mixin: { imageMixin }
更改为mixins: [imageMixin]