uview-plus 3.3.46 → 3.3.48

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,13 @@
1
+ ## 3.3.48(2024-11-29)
2
+ add: 文本行数限制样式提高到10行
3
+
4
+ del: 去除不跨端的inputmode
5
+ ## 3.3.47(2024-11-28)
6
+ fix: 时间选择器在hasInput模式下部分机型键盘弹出
7
+
1
8
  ## 3.3.46(2024-11-26)
2
9
  fix: 修复text传递事件参数
10
+
3
11
  ## 3.3.45(2024-11-24)
4
12
  add: navbar组件支持配置标题颜色
5
13
 
@@ -3,12 +3,16 @@
3
3
  <view v-if="hasInput" class="u-datetime-picker__has-input"
4
4
  @click="showByClickInput = !showByClickInput"
5
5
  >
6
- <up-input
7
- :placeholder="placeholder"
8
- :readonly="!!showByClickInput"
9
- border="surround"
10
- v-model="inputValue"
11
- ></up-input>
6
+ <slot name="trigger" :value="inputValue">
7
+ <up-input
8
+ :placeholder="placeholder"
9
+ :readonly="!!showByClickInput"
10
+ border="surround"
11
+ v-model="inputValue"
12
+ ></up-input>
13
+ <div class="input-cover">
14
+ </div>
15
+ </slot>
12
16
  </view>
13
17
  <u-picker
14
18
  ref="picker"
@@ -465,10 +469,29 @@
465
469
  <style lang="scss" scoped>
466
470
  @import '../../libs/css/components.scss';
467
471
  .u-datetime-picker {
472
+ flex: 1;
468
473
  &__has-input {
474
+ position: relative;
475
+ display: flex;
476
+ flex-direction: column;
477
+ justify-content: center;
469
478
  /* #ifndef APP-NVUE */
470
479
  width: 100%;
471
480
  /* #endif */
481
+ .input-cover {
482
+ opacity: 0;
483
+ position: absolute;
484
+ top: 0;
485
+ bottom: 0;
486
+ left:0;
487
+ right:0;
488
+ display: flex;
489
+ flex-direction: column;
490
+ justify-content: center;
491
+ border-radius: 4px;
492
+ border: 1px solid #eee;
493
+ padding: 0 10px;
494
+ }
472
495
  }
473
496
  }
474
497
  </style>
@@ -317,6 +317,9 @@ export default {
317
317
  * 无法触发u-form-item的点击事件,这里通过手动调用u-form-item的方法进行触发
318
318
  */
319
319
  clickHandler() {
320
+ if (this.disabled || this.readonly) {
321
+ uni.hideKeyboard();
322
+ }
320
323
  // #ifdef APP-NVUE
321
324
  if (os() === "android") {
322
325
  const formItem = $parent.call(this, "u-form-item");
@@ -1,6 +1,6 @@
1
1
  // 超出行数,自动显示行尾省略号,最多5行
2
2
  // 来自uview-plus的温馨提示:当您在控制台看到此报错,说明需要在App.vue的style标签加上【lang="scss"】
3
- @for $i from 1 through 5 {
3
+ @for $i from 1 through 10 {
4
4
  .u-line-#{$i},
5
5
  .up-line-#{$i} {
6
6
  /* #ifdef APP-NVUE */
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.46",
5
+ "version": "3.3.48",
6
6
  "description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",