uview-plus 3.3.62 → 3.3.64
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 +12 -0
- package/components/u-calendar/calendar.js +2 -1
- package/components/u-calendar/header.vue +14 -7
- package/components/u-calendar/props.js +6 -1
- package/components/u-calendar/u-calendar.vue +2 -0
- package/components/u-cate-tab/u-cate-tab.vue +7 -5
- package/components/u-image/u-image.vue +4 -4
- package/components/u-textarea/u-textarea.vue +1 -1
- package/components/u-waterfall/u-waterfall.vue +12 -10
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 3.3.64(2025-01-18)
|
|
2
|
+
feat: 日历组件支持自定义星期文案
|
|
3
|
+
|
|
4
|
+
## 3.3.63(2025-01-13)
|
|
5
|
+
fix: cate-tab支持支付宝小程序
|
|
6
|
+
|
|
7
|
+
fix: textarea 修复 placeholder-style
|
|
8
|
+
|
|
9
|
+
fix: 修复在图片加载及加载失败时容器宽度
|
|
10
|
+
|
|
11
|
+
fix: waterfall组件报错Maximum recursive updates
|
|
12
|
+
|
|
1
13
|
## 3.3.62(2025-01-10)
|
|
2
14
|
feat: sleder滑动选择器双滑块增加外层触发值的变动功能
|
|
3
15
|
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
v-if="showSubtitle"
|
|
10
10
|
>{{ subtitle }}</text>
|
|
11
11
|
<view class="u-calendar-header__weekdays">
|
|
12
|
-
<text class="u-calendar-header__weekdays__weekday"
|
|
13
|
-
<text class="u-calendar-header__weekdays__weekday"
|
|
14
|
-
<text class="u-calendar-header__weekdays__weekday"
|
|
15
|
-
<text class="u-calendar-header__weekdays__weekday"
|
|
16
|
-
<text class="u-calendar-header__weekdays__weekday"
|
|
17
|
-
<text class="u-calendar-header__weekdays__weekday"
|
|
18
|
-
<text class="u-calendar-header__weekdays__weekday"
|
|
12
|
+
<text class="u-calendar-header__weekdays__weekday">{{ weekText[0] }}</text>
|
|
13
|
+
<text class="u-calendar-header__weekdays__weekday">{{ weekText[1] }}</text>
|
|
14
|
+
<text class="u-calendar-header__weekdays__weekday">{{ weekText[2] }}</text>
|
|
15
|
+
<text class="u-calendar-header__weekdays__weekday">{{ weekText[3] }}</text>
|
|
16
|
+
<text class="u-calendar-header__weekdays__weekday">{{ weekText[4] }}</text>
|
|
17
|
+
<text class="u-calendar-header__weekdays__weekday">{{ weekText[5] }}</text>
|
|
18
|
+
<text class="u-calendar-header__weekdays__weekday">{{ weekText[6] }}</text>
|
|
19
19
|
</view>
|
|
20
20
|
</view>
|
|
21
21
|
</template>
|
|
@@ -47,6 +47,13 @@
|
|
|
47
47
|
type: Boolean,
|
|
48
48
|
default: true
|
|
49
49
|
},
|
|
50
|
+
// 星期文本
|
|
51
|
+
weekText: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: () => {
|
|
54
|
+
return ['一', '二', '三', '四', '五', '六', '日']
|
|
55
|
+
}
|
|
56
|
+
},
|
|
50
57
|
},
|
|
51
58
|
data() {
|
|
52
59
|
return {
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
:subtitle="subtitle"
|
|
14
14
|
:showSubtitle="showSubtitle"
|
|
15
15
|
:showTitle="showTitle"
|
|
16
|
+
:weekText="weekText"
|
|
16
17
|
></uHeader>
|
|
17
18
|
<scroll-view
|
|
18
19
|
:style="{
|
|
@@ -106,6 +107,7 @@ import test from '../../libs/function/test';
|
|
|
106
107
|
* @property {Boolean} allowSameDay 是否允许日期范围的起止时间为同一天,mode = range时有效 (默认 false )
|
|
107
108
|
* @property {Number|String} round 圆角值,默认无圆角 (默认 0 )
|
|
108
109
|
* @property {Number|String} monthNum 最多展示的月份数量 (默认 3 )
|
|
110
|
+
* @property {Array} weekText 星期文案 (默认 ['一', '二', '三', '四', '五', '六', '日'] )
|
|
109
111
|
*
|
|
110
112
|
* @event {Function()} confirm 点击确定按钮时触发 选择日期相关的返回参数
|
|
111
113
|
* @event {Function()} close 日历关闭时触发 可定义页面关闭时的回调事件
|
|
@@ -7,16 +7,18 @@
|
|
|
7
7
|
<view v-for="(item, index) in tabList" :key="index" class="u-cate-tab__item"
|
|
8
8
|
:class="[current == index ? 'u-cate-tab__item-active' : '']"
|
|
9
9
|
@tap.stop="swichMenu(index)">
|
|
10
|
-
|
|
11
|
-
<text class="u-line-1">{{item[tabKeyName]}}</text>
|
|
10
|
+
<slot name="tabItem" :item="item">
|
|
12
11
|
</slot>
|
|
12
|
+
<text v-if="!$slots['tabItem']" class="u-line-1">{{item[tabKeyName]}}</text>
|
|
13
13
|
</view>
|
|
14
14
|
</scroll-view>
|
|
15
15
|
<scroll-view :scroll-top="scrollRightTop" scroll-y scroll-with-animation class="u-cate-tab__right-box" @scroll="rightScroll">
|
|
16
16
|
<view class="u-cate-tab__page-view">
|
|
17
17
|
<view class="u-cate-tab__page-item" :id="'item' + index" v-for="(item , index) in tabList" :key="index">
|
|
18
18
|
<slot name="itemList" :item="item">
|
|
19
|
-
|
|
19
|
+
</slot>
|
|
20
|
+
<template v-if="!$slots['itemList']">
|
|
21
|
+
<view class="item-title">
|
|
20
22
|
<text>{{item[tabKeyName]}}</text>
|
|
21
23
|
</view>
|
|
22
24
|
<view class="item-container">
|
|
@@ -29,7 +31,7 @@
|
|
|
29
31
|
</slot>
|
|
30
32
|
</template>
|
|
31
33
|
</view>
|
|
32
|
-
|
|
34
|
+
</template>
|
|
33
35
|
</view>
|
|
34
36
|
</view>
|
|
35
37
|
</scroll-view>
|
|
@@ -141,7 +143,7 @@
|
|
|
141
143
|
// 获取右边菜单每个item到顶部的距离
|
|
142
144
|
getMenuItemTop() {
|
|
143
145
|
new Promise(resolve => {
|
|
144
|
-
let selectorQuery = uni.createSelectorQuery();
|
|
146
|
+
let selectorQuery = uni.createSelectorQuery().in(this);
|
|
145
147
|
selectorQuery.selectAll('.u-cate-tab__page-item').boundingClientRect((rects) => {
|
|
146
148
|
// 如果节点尚未生成,rects值为[](因为用selectAll,所以返回的是数组),循环调用执行
|
|
147
149
|
if(!rects.length) {
|
|
@@ -132,12 +132,12 @@
|
|
|
132
132
|
style.height = addUnit(this.height);
|
|
133
133
|
// #endif
|
|
134
134
|
// #ifndef APP-NVUE
|
|
135
|
-
if (this.width == '100%') {
|
|
135
|
+
if (this.loading || this.isError || this.width == '100%' || this.mode != 'heightFix') {
|
|
136
136
|
style.width = this.width;
|
|
137
137
|
} else {
|
|
138
138
|
style.width = 'fit-content';
|
|
139
139
|
}
|
|
140
|
-
if (this.height == '100%') {
|
|
140
|
+
if (this.loading || this.isError || this.height == '100%' || this.mode != 'widthFix') {
|
|
141
141
|
style.height = this.height;
|
|
142
142
|
} else {
|
|
143
143
|
style.height = 'fit-content';
|
|
@@ -153,12 +153,12 @@
|
|
|
153
153
|
style.height = addUnit(this.height);
|
|
154
154
|
// #endif
|
|
155
155
|
// #ifndef APP-NVUE
|
|
156
|
-
if (this.width == '100%') {
|
|
156
|
+
if (this.loading || this.isError || this.width == '100%' || this.mode != 'heightFix') {
|
|
157
157
|
style.width = this.width;
|
|
158
158
|
} else {
|
|
159
159
|
style.width = 'fit-content';
|
|
160
160
|
}
|
|
161
|
-
if (this.height == '100%') {
|
|
161
|
+
if (this.loading || this.isError || this.height == '100%' || this.mode != 'widthFix') {
|
|
162
162
|
style.height = this.height;
|
|
163
163
|
} else {
|
|
164
164
|
style.height = 'fit-content';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
:value="innerValue"
|
|
6
6
|
:style="{ height: addUnit(height) }"
|
|
7
7
|
:placeholder="placeholder"
|
|
8
|
-
:placeholder-style="addStyle(placeholderStyle, 'string')"
|
|
8
|
+
:placeholder-style="addStyle(placeholderStyle, typeof placeholderStyle === 'string' ? 'string' : 'object')"
|
|
9
9
|
:placeholder-class="placeholderClass"
|
|
10
10
|
:disabled="disabled"
|
|
11
11
|
:focus="focus"
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
watch: {
|
|
69
69
|
copyFlowList(nVal, oVal) {
|
|
70
70
|
if (!nVal || nVal.length == 0) {
|
|
71
|
-
this.clear();
|
|
71
|
+
this.clear(false);
|
|
72
72
|
// console.log('clear');
|
|
73
73
|
} else {
|
|
74
74
|
// 取差值,即这一次数组变化新增的部分
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
copyFlowList() {
|
|
89
89
|
// #ifdef VUE3
|
|
90
90
|
if (!this.modelValue || this.modelValue.length == 0) {
|
|
91
|
-
this.clear();
|
|
91
|
+
this.clear(false);
|
|
92
92
|
// console.log('clear');
|
|
93
93
|
return [];
|
|
94
94
|
} else {
|
|
@@ -138,16 +138,18 @@
|
|
|
138
138
|
return JSON.parse(JSON.stringify(data));
|
|
139
139
|
},
|
|
140
140
|
// 清空数据列表
|
|
141
|
-
clear() {
|
|
141
|
+
clear(bak = true) {
|
|
142
142
|
this.leftList = [];
|
|
143
143
|
this.rightList = [];
|
|
144
144
|
// 同时清除父组件列表中的数据
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
145
|
+
if (bak) {
|
|
146
|
+
// #ifdef VUE2
|
|
147
|
+
this.$emit('input', []);
|
|
148
|
+
// #endif
|
|
149
|
+
// #ifdef VUE3
|
|
150
|
+
this.$emit('update:modelValue', []);
|
|
151
|
+
// #endif
|
|
152
|
+
}
|
|
151
153
|
this.tempList = [];
|
|
152
154
|
},
|
|
153
155
|
// 清除某一条指定的数据,根据id实现
|
|
@@ -241,4 +243,4 @@
|
|
|
241
243
|
max-width: 100%;
|
|
242
244
|
/* #endif */
|
|
243
245
|
}
|
|
244
|
-
</style>
|
|
246
|
+
</style>
|
package/package.json
CHANGED