uview-plus 3.3.58 → 3.3.60
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 +11 -0
- package/components/u-datetime-picker/props.js +4 -0
- package/components/u-datetime-picker/u-datetime-picker.vue +8 -1
- package/components/u-status-bar/u-status-bar.vue +5 -2
- package/components/u-tabs/u-tabs.vue +3 -1
- package/package.json +1 -1
- package/types/comps/actionSheet.d.ts +1 -1
package/changelog.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
|
+
## 3.3.60(2024-12-30)
|
|
2
|
+
feat: 日期组件支持禁用
|
|
3
|
+
|
|
4
|
+
fix: ts定义修复 #600
|
|
5
|
+
|
|
6
|
+
feat: Tabs组件选中时增加一个active的class #595
|
|
7
|
+
|
|
8
|
+
## 3.3.59(2024-12-30)
|
|
9
|
+
fix: Property "isH5" was accessed during render
|
|
10
|
+
|
|
1
11
|
## 3.3.58(2024-12-26)
|
|
2
12
|
fix: slider组件change事件传参
|
|
13
|
+
|
|
3
14
|
## 3.3.57(2024-12-23)
|
|
4
15
|
fix: slider组件change事件传参
|
|
5
16
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view class="u-datetime-picker">
|
|
3
3
|
<view v-if="hasInput" class="u-datetime-picker__has-input"
|
|
4
|
-
@click="
|
|
4
|
+
@click="onShowByClickInput"
|
|
5
5
|
>
|
|
6
6
|
<slot name="trigger" :value="inputValue">
|
|
7
7
|
<up-input
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
:readonly="!!showByClickInput"
|
|
10
10
|
border="surround"
|
|
11
11
|
v-model="inputValue"
|
|
12
|
+
:disabled="disabled"
|
|
12
13
|
></up-input>
|
|
13
14
|
<div class="input-cover">
|
|
14
15
|
</div>
|
|
@@ -461,6 +462,12 @@
|
|
|
461
462
|
[`${type}Hour`]: hour,
|
|
462
463
|
[`${type}Minute`]: minute
|
|
463
464
|
}
|
|
465
|
+
},
|
|
466
|
+
onShowByClickInput(){
|
|
467
|
+
if(!this.disabled){
|
|
468
|
+
this.showByClickInput = !this.showByClickInput
|
|
469
|
+
}
|
|
470
|
+
|
|
464
471
|
}
|
|
465
472
|
}
|
|
466
473
|
}
|
|
@@ -23,7 +23,9 @@
|
|
|
23
23
|
@longpress="longPressHandler(item,index)"
|
|
24
24
|
:ref="`u-tabs__wrapper__nav__item-${index}`"
|
|
25
25
|
:style="[addStyle(itemStyle), {flex: scrollable ? '' : 1}]"
|
|
26
|
-
:class="[`u-tabs__wrapper__nav__item-${index}`,
|
|
26
|
+
:class="[`u-tabs__wrapper__nav__item-${index}`,
|
|
27
|
+
item.disabled && 'u-tabs__wrapper__nav__item--disabled',
|
|
28
|
+
innerCurrent == index ? 'u-tabs__wrapper__nav__item-active' : '']"
|
|
27
29
|
>
|
|
28
30
|
<slot v-if="$slots.content" name="content" :item="item" :keyName="keyName" :index="index" />
|
|
29
31
|
<slot v-else-if="!$slots.content && ($slots.default || $slots.$default)"
|
package/package.json
CHANGED