@kaiyinchem/ky-uniui 1.0.46 → 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.
@@ -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 {
@@ -452,6 +456,9 @@
452
456
  &.top {
453
457
  border-radius: 0!important;
454
458
  }
459
+ &.dialog .pop-content {
460
+ background: var(--bg-white);
461
+ }
455
462
  .pop-top {
456
463
  padding: 24rpx 36rpx;
457
464
  display: flex;
@@ -492,7 +499,6 @@
492
499
  }
493
500
  .pop-content {
494
501
  padding: 36rpx;
495
- background: var(--bg-white);
496
502
  &.noPadding {
497
503
  padding: 0;
498
504
  }
@@ -542,13 +548,18 @@
542
548
  }
543
549
  }
544
550
  .pop-scroll {
545
- max-height: 70vh;
551
+ max-height: 80vh;
546
552
  overflow-y: auto;
547
553
  padding: 24rpx;
548
554
  position: relative;
549
555
  &.noPadding {
550
556
  padding: 0;
551
557
  }
558
+ &.noScroll {
559
+ overflow: hidden;
560
+ display: flex;
561
+ flex-direction: column;
562
+ }
552
563
  }
553
564
  .pop-footer {
554
565
  padding: 24rpx;
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "style"
8
8
  ],
9
9
  "description": "an uniapp ui",
10
- "version": "1.0.46",
10
+ "version": "1.0.48",
11
11
  "repository": {
12
12
  "type": "git",
13
13
  "url": "git+https://github.com/yezipi/ky-uniui.git"