uview-plus 3.3.46 → 3.3.47

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.
Files changed (27) hide show
  1. package/changelog.md +4 -0
  2. package/components/u-datetime-picker/u-datetime-picker.vue +29 -6
  3. package/components/u-input/u-input.vue +4 -0
  4. package/libs/util/gcanvas/bridge/bridge-weex.js +0 -0
  5. package/libs/util/gcanvas/context-2d/FillStyleLinearGradient.js +0 -0
  6. package/libs/util/gcanvas/context-2d/FillStylePattern.js +0 -0
  7. package/libs/util/gcanvas/context-2d/FillStyleRadialGradient.js +0 -0
  8. package/libs/util/gcanvas/context-2d/RenderingContext.js +0 -0
  9. package/libs/util/gcanvas/context-webgl/ActiveInfo.js +0 -0
  10. package/libs/util/gcanvas/context-webgl/Buffer.js +0 -0
  11. package/libs/util/gcanvas/context-webgl/Framebuffer.js +0 -0
  12. package/libs/util/gcanvas/context-webgl/GLenum.js +0 -0
  13. package/libs/util/gcanvas/context-webgl/GLmethod.js +0 -0
  14. package/libs/util/gcanvas/context-webgl/GLtype.js +0 -0
  15. package/libs/util/gcanvas/context-webgl/Program.js +0 -0
  16. package/libs/util/gcanvas/context-webgl/Renderbuffer.js +0 -0
  17. package/libs/util/gcanvas/context-webgl/RenderingContext.js +0 -0
  18. package/libs/util/gcanvas/context-webgl/Shader.js +0 -0
  19. package/libs/util/gcanvas/context-webgl/ShaderPrecisionFormat.js +0 -0
  20. package/libs/util/gcanvas/context-webgl/Texture.js +0 -0
  21. package/libs/util/gcanvas/context-webgl/UniformLocation.js +0 -0
  22. package/libs/util/gcanvas/context-webgl/classUtils.js +0 -0
  23. package/libs/util/gcanvas/env/canvas.js +0 -0
  24. package/libs/util/gcanvas/env/image.js +0 -0
  25. package/libs/util/gcanvas/env/tool.js +0 -0
  26. package/libs/util/gcanvas/index.js +0 -0
  27. package/package.json +1 -1
package/changelog.md CHANGED
@@ -1,5 +1,9 @@
1
+ ## 3.3.47(2024-11-28)
2
+ fix: 时间选择器在hasInput模式下部分机型键盘弹出
3
+
1
4
  ## 3.3.46(2024-11-26)
2
5
  fix: 修复text传递事件参数
6
+
3
7
  ## 3.3.45(2024-11-24)
4
8
  add: navbar组件支持配置标题颜色
5
9
 
@@ -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>
@@ -20,6 +20,7 @@
20
20
  <input
21
21
  ref="input-native"
22
22
  class="u-input__content__field-wrapper__field"
23
+ :inputmode="disabled || readonly ? 'none': ''"
23
24
  :style="[inputStyle]"
24
25
  :type="type"
25
26
  :focus="focus"
@@ -317,6 +318,9 @@ export default {
317
318
  * 无法触发u-form-item的点击事件,这里通过手动调用u-form-item的方法进行触发
318
319
  */
319
320
  clickHandler() {
321
+ if (this.disabled || this.readonly) {
322
+ uni.hideKeyboard();
323
+ }
320
324
  // #ifdef APP-NVUE
321
325
  if (os() === "android") {
322
326
  const formItem = $parent.call(this, "u-form-item");
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
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.47",
6
6
  "description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",