@kaiyinchem/ky-uniui 1.1.17 → 1.1.19
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-btn.vue +5 -26
- package/components/ky-fetch.vue +5 -1
- package/components/ky-pop.vue +13 -6
- package/components/ky-switch.vue +1 -1
- package/components/ky-tab.vue +1 -5
- package/package.json +3 -3
package/components/ky-btn.vue
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
fixed,
|
|
6
6
|
slotContent: $slots.content,
|
|
7
7
|
noContent: !$slots.content,
|
|
8
|
-
iphoneX: safeBottom > 0,
|
|
9
8
|
noPadding,
|
|
10
9
|
hasLeft: $slots.left
|
|
11
10
|
}"
|
|
@@ -56,11 +55,7 @@
|
|
|
56
55
|
<slot v-else name="content"></slot>
|
|
57
56
|
</view>
|
|
58
57
|
<!--位置占位-->
|
|
59
|
-
<view
|
|
60
|
-
v-if="fixed"
|
|
61
|
-
:class="{ iphoneX: safeBottom > 0, noPadding }"
|
|
62
|
-
class="btn-space">
|
|
63
|
-
</view>
|
|
58
|
+
<view v-if="fixed" class="btn-space"></view>
|
|
64
59
|
</view>
|
|
65
60
|
</template>
|
|
66
61
|
|
|
@@ -156,9 +151,6 @@
|
|
|
156
151
|
hasSlots() {
|
|
157
152
|
return Object.keys(this.$slots).length
|
|
158
153
|
},
|
|
159
|
-
safeBottom() {
|
|
160
|
-
return uni.getSystemInfoSync().safeAreaInsets.bottom
|
|
161
|
-
}
|
|
162
154
|
},
|
|
163
155
|
methods: {
|
|
164
156
|
onClick(e) {
|
|
@@ -357,7 +349,7 @@
|
|
|
357
349
|
background: none;
|
|
358
350
|
&.fixed {
|
|
359
351
|
position: fixed;
|
|
360
|
-
height: 120rpx;
|
|
352
|
+
height: calc(var(--window-bottom) + 120rpx);
|
|
361
353
|
background: var(--bg-white);
|
|
362
354
|
z-index: 1;
|
|
363
355
|
left: 0;
|
|
@@ -382,9 +374,6 @@
|
|
|
382
374
|
.btn-main {
|
|
383
375
|
width: 690rpx;
|
|
384
376
|
}
|
|
385
|
-
&.iphoneX {
|
|
386
|
-
height: 150rpx;
|
|
387
|
-
}
|
|
388
377
|
}
|
|
389
378
|
&.slotContent {
|
|
390
379
|
&.fixed {
|
|
@@ -404,25 +393,15 @@
|
|
|
404
393
|
.btn-main {
|
|
405
394
|
width: 100%;
|
|
406
395
|
border-radius: 0!important;
|
|
407
|
-
|
|
408
|
-
&.iphoneX {
|
|
409
|
-
.btn-main {
|
|
410
|
-
height: 120rpx;
|
|
411
|
-
}
|
|
396
|
+
height: calc(90rpx + var(--window-bottom));
|
|
412
397
|
}
|
|
413
398
|
}
|
|
414
399
|
}
|
|
415
400
|
}
|
|
416
401
|
.btn-space {
|
|
417
|
-
height: 120rpx;
|
|
418
|
-
&.iphoneX {
|
|
419
|
-
height: 150rpx;
|
|
420
|
-
}
|
|
402
|
+
height: calc(120rpx + var(--window-bottom));
|
|
421
403
|
&.noPadding {
|
|
422
|
-
height: 90rpx;
|
|
423
|
-
&.iphoneX {
|
|
424
|
-
height: 120rpx;
|
|
425
|
-
}
|
|
404
|
+
height: calc(90rpx + var(--window-bottom));
|
|
426
405
|
}
|
|
427
406
|
}
|
|
428
407
|
|
package/components/ky-fetch.vue
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</view>
|
|
11
11
|
</view>
|
|
12
12
|
|
|
13
|
-
<view v-if="loadState === 0 || !loadState" :class="{ isRelative }" class="ky-fetch-loading">
|
|
13
|
+
<view v-if="loadState === 0 || !loadState" :class="{ isRelative, hasLoadingSlots: !!$slots.loading }" class="ky-fetch-loading">
|
|
14
14
|
<ky-loading v-if="!$slots.loading" :type="loadingType" :isRelative="isRelative"></ky-loading>
|
|
15
15
|
<slot name="loading"></slot>
|
|
16
16
|
</view>
|
|
@@ -320,6 +320,10 @@
|
|
|
320
320
|
position: relative;
|
|
321
321
|
min-height: 100rpx;
|
|
322
322
|
}
|
|
323
|
+
&.hasLoadingSlots {
|
|
324
|
+
padding: 0;
|
|
325
|
+
min-height: inherit;
|
|
326
|
+
}
|
|
323
327
|
}
|
|
324
328
|
.ky-fetch-error {
|
|
325
329
|
position: absolute;
|
package/components/ky-pop.vue
CHANGED
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
</view>
|
|
54
54
|
<view v-if="$slots.footer" :class="{'white-bg': !noFooterBg}" class="pop-footer">
|
|
55
55
|
<slot name="footer"></slot>
|
|
56
|
-
<view
|
|
56
|
+
<view style="{height: var(--window-bottom)}"></view>
|
|
57
57
|
</view>
|
|
58
58
|
<!--iPhoneX等机型手势条底部高度-->
|
|
59
|
-
<view v-if="!$slots.footer"
|
|
59
|
+
<view v-if="!$slots.footer" style="{height: var(--window-bottom)}"></view>
|
|
60
60
|
</view>
|
|
61
61
|
<!--############## end 底部弹出层 ##############-->
|
|
62
62
|
|
|
@@ -94,6 +94,16 @@
|
|
|
94
94
|
cursor-spacing="20"
|
|
95
95
|
@input="getInputVal"
|
|
96
96
|
/>
|
|
97
|
+
<input
|
|
98
|
+
v-if="inputType === 'nickname'"
|
|
99
|
+
:placeholder="placeholder"
|
|
100
|
+
:focus="true"
|
|
101
|
+
:value="value"
|
|
102
|
+
class="input-item"
|
|
103
|
+
type="nickname"
|
|
104
|
+
cursor-spacing="20"
|
|
105
|
+
@input="getInputVal"
|
|
106
|
+
/>
|
|
97
107
|
</view>
|
|
98
108
|
<slot></slot>
|
|
99
109
|
</view>
|
|
@@ -283,9 +293,6 @@
|
|
|
283
293
|
hasSlots() {
|
|
284
294
|
return Object.keys(this.$slots).length
|
|
285
295
|
},
|
|
286
|
-
$safeBottom() {
|
|
287
|
-
return uni.getSystemInfoSync().safeAreaInsets.bottom
|
|
288
|
-
}
|
|
289
296
|
},
|
|
290
297
|
watch: {
|
|
291
298
|
value(v) {
|
|
@@ -549,7 +556,7 @@
|
|
|
549
556
|
height: 90rpx;
|
|
550
557
|
background: var(--border-1);
|
|
551
558
|
border-radius: 12rpx;
|
|
552
|
-
|
|
559
|
+
padding-left: 24rpx;
|
|
553
560
|
}
|
|
554
561
|
}
|
|
555
562
|
.pop-scroll {
|
package/components/ky-switch.vue
CHANGED
package/components/ky-tab.vue
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
:class="{
|
|
5
5
|
fixed: position === 'fixed',
|
|
6
6
|
sticky: position === 'sticky',
|
|
7
|
-
iphonex: $safeBottom > 0 && position === 'fixed',
|
|
8
7
|
icon: hasIcon,
|
|
9
8
|
scroll: scrollX,
|
|
10
9
|
card: type === 'card',
|
|
@@ -121,9 +120,6 @@
|
|
|
121
120
|
hasIcon() {
|
|
122
121
|
return this.menu.find(e => e.icon)
|
|
123
122
|
},
|
|
124
|
-
$safeBottom() {
|
|
125
|
-
return uni.getSystemInfoSync().safeAreaInsets.bottom
|
|
126
|
-
}
|
|
127
123
|
},
|
|
128
124
|
mounted() {
|
|
129
125
|
this.onTabClick(typeof this.value !== 'undefined' ? this.value : this.index)
|
|
@@ -213,7 +209,7 @@
|
|
|
213
209
|
right: 0;
|
|
214
210
|
bottom: 0;
|
|
215
211
|
&.iphonex {
|
|
216
|
-
padding-bottom:
|
|
212
|
+
padding-bottom: var(--window-bottom);
|
|
217
213
|
}
|
|
218
214
|
}
|
|
219
215
|
&.sticky {
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"locale"
|
|
10
10
|
],
|
|
11
11
|
"description": "an uniapp ui",
|
|
12
|
-
"version": "1.1.
|
|
12
|
+
"version": "1.1.19",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
15
|
"url": "git+https://github.com/yezipi/ky-uniui.git"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"scripts": {},
|
|
28
28
|
"license": "ISC",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@dcloudio/uni-ui": "^1.
|
|
31
|
-
"vue-i18n": "^
|
|
30
|
+
"@dcloudio/uni-ui": "^1.5.1",
|
|
31
|
+
"vue-i18n": "^11.2.8"
|
|
32
32
|
}
|
|
33
33
|
}
|