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
|
@@ -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>
|
|
@@ -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");
|
package/libs/css/common.scss
CHANGED