赞
踩
该错误出现在“uview-plus\components\u-calendar\header.vue”文件内,错误原因是mixins中mpMixin,mixin无法通过$u的方式进行获取。
1.导入 mpMixin,mixin
- import mpMixin from '../../libs/mixin/mpMixin'
- import mixin from '../../libs/mixin/mixin'
2.修改mixins的值
mixins: [mpMixin,mixin],
- import mpMixin from '../../libs/mixin/mpMixin'
- import mixin from '../../libs/mixin/mixin'
- export default {
- name: 'u-calendar-header',
- mixins: [mpMixin,mixin],
- props: {
- // 标题
- title: {
- type: String,
- default: ''
- },
- // 副标题
- subtitle: {
- type: String,
- default: ''
- },
- // 是否显示标题
- showTitle: {
- type: Boolean,
- default: true
- },
- // 是否显示副标题
- showSubtitle: {
- type: Boolean,
- default: true
- },
- },
- data() {
- return {
-
- }
- },
- methods: {
- name() {
-
- }
- },
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。