uview-plus 3.1.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/changelog.md
CHANGED
|
@@ -31,11 +31,14 @@
|
|
|
31
31
|
// 由于nvue不支持百分比单位,需要查询宽度来计算每个日期的宽度
|
|
32
32
|
const dom = uni.requireNativePlugin('dom')
|
|
33
33
|
// #endif
|
|
34
|
+
import mpMixin from '../../libs/mixin/mpMixin.js';
|
|
35
|
+
import mixin from '../../libs/mixin/mixin.js';
|
|
36
|
+
import defprops from '../../libs/config/props';
|
|
34
37
|
// import dayjs from '../../libs/util/dayjs.js';
|
|
35
38
|
import dayjs from 'dayjs'
|
|
36
39
|
export default {
|
|
37
40
|
name: 'u-calendar-month',
|
|
38
|
-
mixins: [
|
|
41
|
+
mixins: [mpMixin, mixin],
|
|
39
42
|
props: {
|
|
40
43
|
// 是否显示月份背景色
|
|
41
44
|
showMark: {
|
|
@@ -46,7 +46,8 @@
|
|
|
46
46
|
<script>
|
|
47
47
|
import props from './props.js';
|
|
48
48
|
import mpMixin from '../../libs/mixin/mpMixin.js';
|
|
49
|
-
import mixin from '../../libs/mixin/mixin.js';
|
|
49
|
+
import mixin from '../../libs/mixin/mixin.js';
|
|
50
|
+
import { nextTick } from 'vue'
|
|
50
51
|
// #ifdef APP-NVUE
|
|
51
52
|
const animation = uni.requireNativePlugin('animation')
|
|
52
53
|
const dom = uni.requireNativePlugin('dom')
|
|
@@ -104,7 +105,7 @@
|
|
|
104
105
|
},
|
|
105
106
|
methods: {
|
|
106
107
|
// 异步获取内容,或者动态修改了内容时,需要重新初始化
|
|
107
|
-
init() {
|
|
108
|
+
async init() {
|
|
108
109
|
// 初始化数据
|
|
109
110
|
this.updateParentData()
|
|
110
111
|
if (!this.parent) {
|
|
@@ -127,10 +128,9 @@
|
|
|
127
128
|
}
|
|
128
129
|
this.expanded = (value || []).some(item => item == this.name)
|
|
129
130
|
}
|
|
130
|
-
// 设置组件的展开或收起状态
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
})
|
|
131
|
+
// 设置组件的展开或收起状态
|
|
132
|
+
await nextTick()
|
|
133
|
+
this.setContentAnimate()
|
|
134
134
|
},
|
|
135
135
|
updateParentData() {
|
|
136
136
|
// 此方法在mixin中
|
package/index.js
CHANGED
package/libs/config/config.js
CHANGED