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 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
 
@@ -6,6 +6,10 @@ export const props = defineMixin({
6
6
  hasInput: {
7
7
  type: Boolean,
8
8
  default: () => false
9
+ },
10
+ disabled: {
11
+ type: Boolean,
12
+ default: () => false
9
13
  },
10
14
  placeholder: {
11
15
  type: String,
@@ -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="showByClickInput = !showByClickInput"
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
  }
@@ -26,11 +26,14 @@
26
26
  mixins: [mpMixin, mixin, props],
27
27
  data() {
28
28
  return {
29
- // #ifdef H5
30
29
  isH5: true
31
- // #endif
32
30
  }
33
31
  },
32
+ created() {
33
+ // #ifdef H5
34
+ this.isH5 = true
35
+ // #endif
36
+ }
34
37
  computed: {
35
38
  style() {
36
39
  const style = {}
@@ -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}`, item.disabled && 'u-tabs__wrapper__nav__item--disabled']"
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
@@ -2,7 +2,7 @@
2
2
  "id": "uview-plus",
3
3
  "name": "uview-plus",
4
4
  "displayName": "零云®uview-plus3.0重磅发布,全面的Vue3鸿蒙移动组件库。",
5
- "version": "3.3.58",
5
+ "version": "3.3.60",
6
6
  "description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",
@@ -26,7 +26,7 @@ declare interface ActionSheetProps {
26
26
  /**
27
27
  * 点击某个菜单项时是否关闭弹窗
28
28
  */
29
- closeOnClickAction?: string
29
+ closeOnClickAction?: boolean
30
30
  /**
31
31
  * 是否开启底部安全区适配
32
32
  * @default false