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.
- package/changelog.md +4 -0
- package/components/u-datetime-picker/u-datetime-picker.vue +29 -6
- package/components/u-input/u-input.vue +4 -0
- package/libs/util/gcanvas/bridge/bridge-weex.js +0 -0
- package/libs/util/gcanvas/context-2d/FillStyleLinearGradient.js +0 -0
- package/libs/util/gcanvas/context-2d/FillStylePattern.js +0 -0
- package/libs/util/gcanvas/context-2d/FillStyleRadialGradient.js +0 -0
- package/libs/util/gcanvas/context-2d/RenderingContext.js +0 -0
- package/libs/util/gcanvas/context-webgl/ActiveInfo.js +0 -0
- package/libs/util/gcanvas/context-webgl/Buffer.js +0 -0
- package/libs/util/gcanvas/context-webgl/Framebuffer.js +0 -0
- package/libs/util/gcanvas/context-webgl/GLenum.js +0 -0
- package/libs/util/gcanvas/context-webgl/GLmethod.js +0 -0
- package/libs/util/gcanvas/context-webgl/GLtype.js +0 -0
- package/libs/util/gcanvas/context-webgl/Program.js +0 -0
- package/libs/util/gcanvas/context-webgl/Renderbuffer.js +0 -0
- package/libs/util/gcanvas/context-webgl/RenderingContext.js +0 -0
- package/libs/util/gcanvas/context-webgl/Shader.js +0 -0
- package/libs/util/gcanvas/context-webgl/ShaderPrecisionFormat.js +0 -0
- package/libs/util/gcanvas/context-webgl/Texture.js +0 -0
- package/libs/util/gcanvas/context-webgl/UniformLocation.js +0 -0
- package/libs/util/gcanvas/context-webgl/classUtils.js +0 -0
- package/libs/util/gcanvas/env/canvas.js +0 -0
- package/libs/util/gcanvas/env/image.js +0 -0
- package/libs/util/gcanvas/env/tool.js +0 -0
- package/libs/util/gcanvas/index.js +0 -0
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -3,12 +3,16 @@
|
|
|
3
3
|
<view v-if="hasInput" class="u-datetime-picker__has-input"
|
|
4
4
|
@click="showByClickInput = !showByClickInput"
|
|
5
5
|
>
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|