@kaiyinchem/ky-uniui 1.1.5 → 1.1.7
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-fetch.vue
CHANGED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<!--未登录遮罩-->
|
|
3
|
+
<view class="nologin-mask">
|
|
4
|
+
<view class="nologin-btn">
|
|
5
|
+
<slot></slot>
|
|
6
|
+
<text class="block ft-24 mb-12 gray-color">{{ msg }}</text>
|
|
7
|
+
<ky-btn size="mini" width="200rpx" round @click="$nav.push('Login')">去登录</ky-btn>
|
|
8
|
+
</view>
|
|
9
|
+
</view>
|
|
10
|
+
<!--end 未登录遮罩-->
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
export default {
|
|
15
|
+
props: {
|
|
16
|
+
msg: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: ''
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<style scoped lang="scss">
|
|
25
|
+
.nologin-mask {
|
|
26
|
+
position: fixed;
|
|
27
|
+
z-index: 2;
|
|
28
|
+
left: 0;
|
|
29
|
+
right: 0;
|
|
30
|
+
top: 0;
|
|
31
|
+
bottom: 0;
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: 100%;
|
|
34
|
+
background: linear-gradient(to top, var(--color-white) 45%, rgba(var(--rgb-white), 0.25));
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
.nologin-btn {
|
|
39
|
+
margin-top: 100rpx;
|
|
40
|
+
width: 480rpx;
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
</style>
|
package/components/ky-pop.vue
CHANGED
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
<!--############## 输入框提示框 ##############-->
|
|
65
|
-
<view v-if="type === 'input'" class="pop-content">
|
|
65
|
+
<view v-if="type === 'input'" class="pop-content white-bg">
|
|
66
66
|
<view class="pop-input">
|
|
67
67
|
<!--由于不支持动态设置type,只能这样了-->
|
|
68
68
|
<input
|
|
@@ -363,6 +363,7 @@
|
|
|
363
363
|
this.close()
|
|
364
364
|
},
|
|
365
365
|
confirm() {
|
|
366
|
+
console.log(this.inputVal)
|
|
366
367
|
if (this.type === 'input' && this.inputVal === '') {
|
|
367
368
|
this.$toast(this.$t('noContentTips'))
|
|
368
369
|
return
|
|
@@ -374,6 +375,7 @@
|
|
|
374
375
|
},
|
|
375
376
|
getInputVal({ detail }) {
|
|
376
377
|
this.$emit('input', detail.value)
|
|
378
|
+
this.inputVal = detail.value
|
|
377
379
|
},
|
|
378
380
|
onPopChange(e) {
|
|
379
381
|
if (this.type !== 'input') {
|