uview-plus 3.1.0 → 3.1.4
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 +8 -0
- package/components/u-button/u-button.vue +2 -0
- package/components/u-calendar/month.vue +4 -1
- package/components/u-calendar/util.js +1 -0
- package/components/u-collapse-item/u-collapse-item.vue +6 -6
- package/components/u-transition/{nvue.ani-map.js → nvue-ani-map.js} +0 -0
- package/components/u-transition/transition.js +3 -1
- package/index.js +1 -0
- package/libs/config/config.js +2 -2
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## 3.1.4(2022-08-20)
|
|
2
|
+
修复button组件点击事件执行两次
|
|
3
|
+
## 3.1.3(2022-08-11)
|
|
4
|
+
修复小程序报错Generated an empty chunk,修复示例工程引入request参数配置无效。
|
|
5
|
+
## 3.1.2(2022-08-09)
|
|
6
|
+
修复示例项目对request的调用引入
|
|
7
|
+
## 3.1.1(2022-08-07)
|
|
8
|
+
折叠面板在小程序会报'setContentAnimate' of undefined
|
|
1
9
|
## 3.1.0(2022-08-07)
|
|
2
10
|
初步解决App端运行时提示props未定义且白屏问题
|
|
3
11
|
## 3.0.17(2022-08-03)
|
|
@@ -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中
|
|
File without changes
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
// 定义一个一定时间后自动成功的promise,让调用nextTick方法处,进入下一个then方法
|
|
2
2
|
const nextTick = () => new Promise(resolve => setTimeout(resolve, 1000 / 50))
|
|
3
3
|
// nvue动画模块实现细节抽离在外部文件
|
|
4
|
-
|
|
4
|
+
// #ifdef APP-NVUE
|
|
5
|
+
import animationMap from './nvue-ani-map.js'
|
|
6
|
+
// #endif
|
|
5
7
|
|
|
6
8
|
// #ifndef APP-NVUE
|
|
7
9
|
// 定义类名,通过给元素动态切换类名,赋予元素一定的css动画样式
|
package/index.js
CHANGED
package/libs/config/config.js
CHANGED