@kaiyinchem/ky-uniui 1.0.47 → 1.0.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/components/ky-pop.vue +12 -3
- package/package.json +1 -1
package/components/ky-pop.vue
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
<view v-if="$slots.header" class="pop-header">
|
|
49
49
|
<slot name="header"></slot>
|
|
50
50
|
</view>
|
|
51
|
-
<view :class="{ noPadding }" class="pop-scroll">
|
|
51
|
+
<view :class="{ noPadding, noScroll }" class="pop-scroll">
|
|
52
52
|
<slot></slot>
|
|
53
53
|
</view>
|
|
54
54
|
<view v-if="$slots.footer" :class="{'white-bg': !noFooterBg}" class="pop-footer">
|
|
@@ -239,7 +239,11 @@
|
|
|
239
239
|
titleAlign: {
|
|
240
240
|
type: String,
|
|
241
241
|
default: 'center'
|
|
242
|
-
}
|
|
242
|
+
},
|
|
243
|
+
noScroll: {
|
|
244
|
+
type: Boolean,
|
|
245
|
+
default: true
|
|
246
|
+
}
|
|
243
247
|
},
|
|
244
248
|
data() {
|
|
245
249
|
return {
|
|
@@ -544,13 +548,18 @@
|
|
|
544
548
|
}
|
|
545
549
|
}
|
|
546
550
|
.pop-scroll {
|
|
547
|
-
max-height:
|
|
551
|
+
max-height: 80vh;
|
|
548
552
|
overflow-y: auto;
|
|
549
553
|
padding: 24rpx;
|
|
550
554
|
position: relative;
|
|
551
555
|
&.noPadding {
|
|
552
556
|
padding: 0;
|
|
553
557
|
}
|
|
558
|
+
&.noScroll {
|
|
559
|
+
overflow: hidden;
|
|
560
|
+
display: flex;
|
|
561
|
+
flex-direction: column;
|
|
562
|
+
}
|
|
554
563
|
}
|
|
555
564
|
.pop-footer {
|
|
556
565
|
padding: 24rpx;
|