hy-app 0.3.2 → 0.3.3
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/hy-address-picker/index.scss +1 -1
- package/components/hy-avatar/hy-avatar.vue +10 -13
- package/components/hy-avatar/index.scss +1 -1
- package/components/hy-back-top/index.scss +1 -1
- package/components/hy-button/index.scss +2 -2
- package/components/hy-calendar/header.vue +11 -11
- package/components/hy-calendar/index.scss +25 -25
- package/components/hy-calendar/month.vue +18 -19
- package/components/hy-card/hy-card.vue +10 -12
- package/components/hy-card/index.scss +11 -9
- package/components/hy-cell/hy-cell.vue +13 -13
- package/components/hy-cell/index.scss +15 -15
- package/components/hy-checkbox/hy-checkbox.vue +10 -10
- package/components/hy-checkbox/index.scss +24 -23
- package/components/hy-empty/hy-empty.vue +15 -12
- package/components/hy-empty/icon.ts +32 -58
- package/components/hy-empty/index.scss +2 -2
- package/components/hy-empty/typing.d.ts +48 -35
- package/components/hy-notice-bar/hy-column-notice.vue +2 -2
- package/components/hy-notice-bar/hy-row-notice.vue +1 -1
- package/components/hy-notice-bar/index.scss +6 -0
- package/components/hy-popover/index.scss +3 -3
- package/components/hy-search/hy-search.vue +2 -9
- package/components/hy-slider/hy-slider.vue +1 -1
- package/components/hy-tag/hy-tag.vue +2 -2
- package/components/hy-tag/index.scss +13 -12
- package/components/hy-upload/hy-upload.vue +5 -12
- package/components/hy-upload/typing.d.ts +21 -0
- package/libs/css/mixin.scss +4 -1
- package/libs/css/vars.css +2 -0
- package/package.json +2 -2
- package/theme.scss +1 -0
- package/components/avatar.zip +0 -0
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/*标题*/
|
|
9
9
|
@include m(title) {
|
|
10
10
|
padding: $hy-border-margin-padding-lg $hy-border-margin-padding-base;
|
|
11
|
-
|
|
11
|
+
@include e(vertical){
|
|
12
12
|
position: relative;
|
|
13
13
|
&::after {
|
|
14
14
|
content: "";
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
border-radius: $hy-border-radius-semicircle;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
@include e(text) {
|
|
26
26
|
font-size: $hy-font-size-lg;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/*row内容*/
|
|
31
|
-
|
|
31
|
+
@include m(body) {
|
|
32
32
|
/* #ifndef APP-NVUE */
|
|
33
33
|
box-sizing: border-box;
|
|
34
34
|
/* #endif */
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
border-radius: $hy-border-margin-padding-sm;
|
|
38
38
|
overflow: hidden;
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
@include e(container) {
|
|
41
41
|
@include flex(row);
|
|
42
42
|
align-items: center;
|
|
43
43
|
justify-content: space-between;
|
|
@@ -45,32 +45,32 @@
|
|
|
45
45
|
background-color: $hy-background--container;
|
|
46
46
|
|
|
47
47
|
/* 大 */
|
|
48
|
-
|
|
48
|
+
@include e(large) {
|
|
49
49
|
font-size: $hy-font-size-lg;
|
|
50
50
|
padding: 35rpx;
|
|
51
51
|
line-height: 25px;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
/* 默认 */
|
|
55
|
-
|
|
55
|
+
@include e(medium) {
|
|
56
56
|
font-size: $hy-font-size-base;
|
|
57
57
|
padding: 30rpx;
|
|
58
58
|
line-height: 20px;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/* 小 */
|
|
62
|
-
|
|
62
|
+
@include e(small) {
|
|
63
63
|
font-size: $hy-font-size-sm;
|
|
64
64
|
padding: 25rpx;
|
|
65
65
|
line-height: 15px;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
/*点击状态*/
|
|
69
|
-
|
|
69
|
+
@include e(clickable) {
|
|
70
70
|
background-color: $hy-background--hover;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
@include e(content) {
|
|
74
74
|
@include flex(row);
|
|
75
75
|
/*左边icon*/
|
|
76
76
|
&-icon {
|
|
@@ -94,11 +94,11 @@
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
/*cell值*/
|
|
97
|
-
|
|
97
|
+
@include e(center) {
|
|
98
98
|
@include flex;
|
|
99
99
|
max-width: 90%;
|
|
100
100
|
flex: 1;
|
|
101
|
-
|
|
101
|
+
@include e(value) {
|
|
102
102
|
line-height: 24px;
|
|
103
103
|
color: $hy-text-color--grey;
|
|
104
104
|
margin-right: $hy-border-margin-padding-sm;
|
|
@@ -106,21 +106,21 @@
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
/*右边icon*/
|
|
109
|
-
|
|
109
|
+
@include e(right-icon) {
|
|
110
110
|
transition: transform 0.3s;
|
|
111
111
|
:deep(.hy-icon) {
|
|
112
112
|
color: $hy-text-color--3;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
|
|
115
|
+
@include m(up) {
|
|
116
116
|
transform: rotate(-90deg);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
|
|
119
|
+
@include m(left) {
|
|
120
120
|
transform: rotate(180deg);
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
@include m(down) {
|
|
124
124
|
transform: rotate(90deg);
|
|
125
125
|
}
|
|
126
126
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view class="hy-checkbox
|
|
2
|
+
<view class="hy-checkbox--group" :class="bemClass">
|
|
3
3
|
<template v-for="(item, i) in columns_1" :key="i">
|
|
4
4
|
<view
|
|
5
5
|
class="hy-checkbox cursor-pointer"
|
|
6
6
|
@tap.stop="wrapperClickHandler($event, item)"
|
|
7
7
|
:style="checkboxStyle"
|
|
8
8
|
:class="[
|
|
9
|
-
`hy-checkbox
|
|
9
|
+
`hy-checkbox--label__${iconPlacement}`,
|
|
10
10
|
borderBottom && placement === 'column' && 'hy-border__bottom',
|
|
11
11
|
]"
|
|
12
12
|
>
|
|
13
13
|
<view
|
|
14
|
-
class="hy-
|
|
14
|
+
class="hy-checkbox--icon-wrap cursor-pointer"
|
|
15
15
|
@tap.stop="iconClickHandler($event, item)"
|
|
16
16
|
:class="iconClasses(item)"
|
|
17
17
|
:style="iconWrapStyle(item)"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
:iconSize="addUnit(iconSize)"
|
|
23
23
|
>
|
|
24
24
|
<HyIcon
|
|
25
|
-
class="hy-
|
|
25
|
+
class="hy-checkbox--icon-wrap__icon"
|
|
26
26
|
:name="IconConfig.CHECK_MASK"
|
|
27
27
|
:size="addUnit(sizeType[size] ?? iconSize)"
|
|
28
28
|
:color="iconColor || '#ffffff'"
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
</view>
|
|
32
32
|
<view
|
|
33
33
|
:class="[
|
|
34
|
-
'hy-
|
|
34
|
+
'hy-checkbox--label__wrap',
|
|
35
35
|
'cursor-pointer',
|
|
36
|
-
disabled && 'hy-
|
|
36
|
+
disabled && 'hy-checkbox--label__wrap--disabled',
|
|
37
37
|
]"
|
|
38
38
|
@tap.stop="labelClickHandler($event, item)"
|
|
39
39
|
>
|
|
@@ -229,14 +229,14 @@ const iconClasses = computed(() => {
|
|
|
229
229
|
return (temp: CheckboxColumnsVo): string[] => {
|
|
230
230
|
let classes: string[] = [];
|
|
231
231
|
// 组件的形状
|
|
232
|
-
classes.push("hy-
|
|
232
|
+
classes.push("hy-checkbox--icon-wrap--" + props.shape);
|
|
233
233
|
if (isDisabled(temp?.disabled)) {
|
|
234
|
-
classes.push("hy-
|
|
234
|
+
classes.push("hy-checkbox--icon-wrap--disabled");
|
|
235
235
|
}
|
|
236
236
|
if (temp[props.fieldNames.checked]) {
|
|
237
|
-
classes.push("hy-
|
|
237
|
+
classes.push("hy-checkbox--icon-wrap--checked");
|
|
238
238
|
if (isDisabled(temp?.disabled)) {
|
|
239
|
-
classes.push("hy-
|
|
239
|
+
classes.push("hy-checkbox--icon-wrap--disabled--checked");
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
return classes;
|
|
@@ -11,29 +11,42 @@
|
|
|
11
11
|
margin-bottom: 5px;
|
|
12
12
|
margin-top: 5px;
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
@include m(group) {
|
|
15
|
+
@include m(row) {
|
|
16
16
|
/* #ifndef APP-NVUE */
|
|
17
17
|
display: flex;
|
|
18
18
|
/* #endif */
|
|
19
19
|
flex-flow: row wrap;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
@include m(column) {
|
|
23
23
|
@include flex(column);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
@include m(label) {
|
|
28
|
+
@include e(left) {
|
|
29
|
+
flex-direction: row;
|
|
30
|
+
}
|
|
31
|
+
@include e(right) {
|
|
32
|
+
flex-direction: row-reverse;
|
|
33
|
+
justify-content: space-between;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@include e( ){
|
|
37
|
+
/* #ifndef APP-NVUE */
|
|
38
|
+
word-wrap: break-word;
|
|
39
|
+
/* #endif */
|
|
40
|
+
font-size: $hy-font-size-base;
|
|
41
|
+
margin-right: $hy-border-margin-padding-sm;
|
|
30
42
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
43
|
+
@include m(disabled) {
|
|
44
|
+
color: $hy-text-color--disabled;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
34
47
|
}
|
|
35
48
|
|
|
36
|
-
|
|
49
|
+
@include m(icon-wrap) {
|
|
37
50
|
/* #ifndef APP-NVUE */
|
|
38
51
|
box-sizing: border-box;
|
|
39
52
|
// nvue下,border-color过渡有问题
|
|
@@ -50,7 +63,7 @@
|
|
|
50
63
|
|
|
51
64
|
/* #ifdef MP-TOUTIAO */
|
|
52
65
|
// 头条小程序兼容性问题,需要设置行高为0,否则图标偏下
|
|
53
|
-
|
|
66
|
+
@include e(icon) {
|
|
54
67
|
line-height: 0;
|
|
55
68
|
}
|
|
56
69
|
|
|
@@ -86,16 +99,4 @@
|
|
|
86
99
|
}
|
|
87
100
|
}
|
|
88
101
|
}
|
|
89
|
-
|
|
90
|
-
&__label-wrap {
|
|
91
|
-
/* #ifndef APP-NVUE */
|
|
92
|
-
word-wrap: break-word;
|
|
93
|
-
/* #endif */
|
|
94
|
-
font-size: $hy-font-size-base;
|
|
95
|
-
margin-right: $hy-border-margin-padding-sm;
|
|
96
|
-
|
|
97
|
-
@include m(disabled) {
|
|
98
|
-
color: $hy-text-color--disabled;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
102
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view :class="['hy-empty', customClass]" v-if="show" :style="emptyStyle">
|
|
3
3
|
<view class="hy-empty__img" :style="imgStyle">
|
|
4
|
-
<
|
|
5
|
-
:
|
|
4
|
+
<HyImage
|
|
5
|
+
:src="imageUrl || emptyIcon[mode].icon"
|
|
6
6
|
:width="width"
|
|
7
7
|
:height="height"
|
|
8
8
|
img-mode="widthFix"
|
|
9
|
-
></
|
|
9
|
+
></HyImage>
|
|
10
10
|
</view>
|
|
11
11
|
<view v-if="$slots.default">
|
|
12
12
|
<slot></slot>
|
|
13
13
|
</view>
|
|
14
|
-
<view class="hy-
|
|
14
|
+
<view class="hy-empty--description" v-else>
|
|
15
15
|
<slot v-if="$slots.description" name="description"></slot>
|
|
16
16
|
<text v-else :style="descriptionStyle">{{
|
|
17
|
-
emptyDescription || emptyIcon[mode].
|
|
17
|
+
emptyDescription || emptyIcon[mode].desc
|
|
18
18
|
}}</text>
|
|
19
|
-
<view class="hy-
|
|
19
|
+
<view class="hy-empty--button" v-if="button?.text">
|
|
20
20
|
<HyButton
|
|
21
21
|
:text="button?.text"
|
|
22
22
|
:size="button?.size"
|
|
@@ -51,7 +51,7 @@ import type { HyButtonProps } from "../hy-button/typing";
|
|
|
51
51
|
import type { IEmptyEmits } from "./typing";
|
|
52
52
|
// 组件
|
|
53
53
|
import HyButton from "../hy-button/hy-button.vue";
|
|
54
|
-
import
|
|
54
|
+
import HyImage from "../hy-image/hy-image.vue";
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
57
|
* 加载的第一页数据就为空
|
|
@@ -67,10 +67,13 @@ const props = defineProps({
|
|
|
67
67
|
default: true,
|
|
68
68
|
required: true,
|
|
69
69
|
},
|
|
70
|
-
/**
|
|
70
|
+
/**
|
|
71
|
+
* 缺省页内容
|
|
72
|
+
* @values content,search,address,network,order,coupon,favor,history,message,comment,integral
|
|
73
|
+
* */
|
|
71
74
|
mode: {
|
|
72
75
|
type: String,
|
|
73
|
-
default: "
|
|
76
|
+
default: "content",
|
|
74
77
|
},
|
|
75
78
|
/** 空状态图片 */
|
|
76
79
|
imageUrl: String,
|
|
@@ -81,13 +84,13 @@ const props = defineProps({
|
|
|
81
84
|
},
|
|
82
85
|
/** 组件层级 */
|
|
83
86
|
width: {
|
|
84
|
-
type: Number,
|
|
85
|
-
default:
|
|
87
|
+
type: [String, Number],
|
|
88
|
+
default: "240px",
|
|
86
89
|
},
|
|
87
90
|
/** icon高度 */
|
|
88
91
|
height: {
|
|
89
92
|
type: [String, Number],
|
|
90
|
-
default: "
|
|
93
|
+
default: "240px",
|
|
91
94
|
},
|
|
92
95
|
/** 提示信息 */
|
|
93
96
|
description: String,
|
|
@@ -1,78 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
icon:
|
|
1
|
+
import type { IEmptyIcon } from "./typing";
|
|
2
|
+
|
|
3
|
+
const url = "https://registry.npmmirror.com/wot-design-uni-assets/*/files/";
|
|
4
|
+
|
|
5
|
+
const emptyIcon: IEmptyIcon = {
|
|
6
|
+
content: {
|
|
7
|
+
desc: "暂无内容",
|
|
8
|
+
icon: url + "content.png",
|
|
9
9
|
},
|
|
10
10
|
search: {
|
|
11
|
-
|
|
12
|
-
icon:
|
|
11
|
+
desc: "没有搜索结果",
|
|
12
|
+
icon: url + "search.png",
|
|
13
13
|
},
|
|
14
14
|
address: {
|
|
15
|
-
|
|
16
|
-
icon:
|
|
15
|
+
desc: "没有收货地址",
|
|
16
|
+
icon: url + "png",
|
|
17
17
|
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
icon:
|
|
18
|
+
network: {
|
|
19
|
+
desc: "没有网络",
|
|
20
|
+
icon: url + "network.png",
|
|
21
21
|
},
|
|
22
22
|
order: {
|
|
23
|
-
|
|
24
|
-
icon:
|
|
23
|
+
desc: "订单为空",
|
|
24
|
+
icon: url + "png",
|
|
25
25
|
},
|
|
26
26
|
coupon: {
|
|
27
|
-
|
|
28
|
-
icon:
|
|
27
|
+
desc: "没有优惠券",
|
|
28
|
+
icon: url + "png",
|
|
29
29
|
},
|
|
30
30
|
favor: {
|
|
31
|
-
|
|
32
|
-
icon:
|
|
33
|
-
},
|
|
34
|
-
permission: {
|
|
35
|
-
name: '无权限',
|
|
36
|
-
icon: 'https://pic1.imgdb.cn/item/685a6b4358cb8da5c86b6f85.webp',
|
|
31
|
+
desc: "暂无收藏",
|
|
32
|
+
icon: url + "collect.png",
|
|
37
33
|
},
|
|
38
34
|
history: {
|
|
39
|
-
|
|
40
|
-
icon:
|
|
35
|
+
desc: "无历史记录",
|
|
36
|
+
icon: url + "png",
|
|
41
37
|
},
|
|
42
38
|
message: {
|
|
43
|
-
|
|
44
|
-
icon:
|
|
45
|
-
},
|
|
46
|
-
image: {
|
|
47
|
-
name: '暂无图片',
|
|
48
|
-
icon: 'https://pic1.imgdb.cn/item/685a6b3f58cb8da5c86b6f65.webp',
|
|
49
|
-
},
|
|
50
|
-
video: {
|
|
51
|
-
name: '暂无视频',
|
|
52
|
-
icon: 'https://pic1.imgdb.cn/item/685a6b3f58cb8da5c86b6f66.webp',
|
|
39
|
+
desc: "消息列表为空",
|
|
40
|
+
icon: url + "message.png",
|
|
53
41
|
},
|
|
54
42
|
comment: {
|
|
55
|
-
|
|
56
|
-
icon:
|
|
43
|
+
desc: "暂无评论",
|
|
44
|
+
icon: url + "comment.png",
|
|
57
45
|
},
|
|
58
46
|
integral: {
|
|
59
|
-
|
|
60
|
-
icon:
|
|
61
|
-
},
|
|
62
|
-
subscribe: {
|
|
63
|
-
name: '暂无预约',
|
|
64
|
-
icon: 'https://pic1.imgdb.cn/item/685a6b1f58cb8da5c86b6e86.webp',
|
|
65
|
-
},
|
|
66
|
-
earnings: {
|
|
67
|
-
name: '暂无收益',
|
|
68
|
-
icon: 'https://pic1.imgdb.cn/item/685a6b3558cb8da5c86b6f1c.webp',
|
|
69
|
-
},
|
|
70
|
-
announcement: {
|
|
71
|
-
name: '暂无公告',
|
|
72
|
-
icon: 'https://pic1.imgdb.cn/item/685a6b3558cb8da5c86b6f1d.webp',
|
|
73
|
-
},
|
|
74
|
-
signIn: {
|
|
75
|
-
name: '暂无打卡',
|
|
76
|
-
icon: 'https://pic1.imgdb.cn/item/685a6b1f58cb8da5c86b6e83.webp',
|
|
47
|
+
desc: "暂无积分",
|
|
48
|
+
icon: url + "halo.png",
|
|
77
49
|
},
|
|
78
|
-
}
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export default emptyIcon;
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
align-items: center;
|
|
13
13
|
flex-direction: column;
|
|
14
14
|
background: $hy-background;
|
|
15
|
-
|
|
15
|
+
@include m(description) {
|
|
16
16
|
width: 70%;
|
|
17
17
|
text-align: center;
|
|
18
18
|
margin-top: $hy-border-margin-padding-base;
|
|
19
19
|
color: $hy-text-color--grey;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
@include m(button) {
|
|
23
23
|
margin-top: 100rpx;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -1,83 +1,96 @@
|
|
|
1
|
-
import type { CSSProperties } from
|
|
2
|
-
import type HyButtonProps from
|
|
1
|
+
import type { CSSProperties } from "vue";
|
|
2
|
+
import type HyButtonProps from "../hy-button/typing";
|
|
3
3
|
|
|
4
4
|
type EmptyModeType =
|
|
5
|
-
|
|
|
6
|
-
|
|
|
7
|
-
|
|
|
8
|
-
|
|
|
9
|
-
|
|
|
10
|
-
|
|
|
11
|
-
|
|
|
12
|
-
|
|
|
13
|
-
|
|
|
14
|
-
|
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
23
|
-
|
|
|
5
|
+
| "car"
|
|
6
|
+
| "page"
|
|
7
|
+
| "search"
|
|
8
|
+
| "address"
|
|
9
|
+
| "wifi"
|
|
10
|
+
| "order"
|
|
11
|
+
| "coupon"
|
|
12
|
+
| "favor"
|
|
13
|
+
| "permission"
|
|
14
|
+
| "history"
|
|
15
|
+
| "message"
|
|
16
|
+
| "image"
|
|
17
|
+
| "video"
|
|
18
|
+
| "comment"
|
|
19
|
+
| "integral"
|
|
20
|
+
| "subscribe"
|
|
21
|
+
| "earnings"
|
|
22
|
+
| "announcement"
|
|
23
|
+
| "signIn";
|
|
24
|
+
|
|
25
|
+
export type IEmptyIcon = {
|
|
26
|
+
[key: string]: {
|
|
27
|
+
/**
|
|
28
|
+
* 提示信息
|
|
29
|
+
* */
|
|
30
|
+
desc: string;
|
|
31
|
+
/**
|
|
32
|
+
* 空状态图片地址
|
|
33
|
+
* */
|
|
34
|
+
icon: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
24
37
|
|
|
25
38
|
export default interface HyEmptyProps {
|
|
26
39
|
/**
|
|
27
40
|
* @description 是否显示空状态
|
|
28
41
|
* */
|
|
29
|
-
show?: boolean
|
|
42
|
+
show?: boolean;
|
|
30
43
|
/**
|
|
31
44
|
* @description 缺省页内容
|
|
32
45
|
* */
|
|
33
|
-
mode?: EmptyModeType
|
|
46
|
+
mode?: EmptyModeType;
|
|
34
47
|
/**
|
|
35
48
|
* @description 空状态图片
|
|
36
49
|
* */
|
|
37
|
-
imageUrl?: string
|
|
50
|
+
imageUrl?: string;
|
|
38
51
|
/**
|
|
39
52
|
* @description 组件层级
|
|
40
53
|
* */
|
|
41
|
-
zIndex?: number
|
|
54
|
+
zIndex?: number;
|
|
42
55
|
/**
|
|
43
56
|
* @description icon宽度
|
|
44
57
|
* */
|
|
45
|
-
width?: number | string
|
|
58
|
+
width?: number | string;
|
|
46
59
|
/**
|
|
47
60
|
* @description icon高度
|
|
48
61
|
* */
|
|
49
|
-
height?: number | string
|
|
62
|
+
height?: number | string;
|
|
50
63
|
/**
|
|
51
64
|
* @description 提示信息
|
|
52
65
|
* */
|
|
53
|
-
description?: string
|
|
66
|
+
description?: string;
|
|
54
67
|
/**
|
|
55
68
|
* @description 提示信息大小
|
|
56
69
|
* */
|
|
57
|
-
desSize?: string | number
|
|
70
|
+
desSize?: string | number;
|
|
58
71
|
/**
|
|
59
72
|
* @description 提示信息颜色
|
|
60
73
|
* */
|
|
61
|
-
desColor?: string
|
|
74
|
+
desColor?: string;
|
|
62
75
|
/**
|
|
63
76
|
* @description 图片margin
|
|
64
77
|
* */
|
|
65
|
-
imgMargin?: string
|
|
78
|
+
imgMargin?: string;
|
|
66
79
|
/**
|
|
67
80
|
* @description 按钮属性只
|
|
68
81
|
* */
|
|
69
|
-
button?: HyButtonProps
|
|
82
|
+
button?: HyButtonProps;
|
|
70
83
|
/**
|
|
71
84
|
* @description 跳转地址
|
|
72
85
|
* */
|
|
73
|
-
navigateUrl?: string
|
|
86
|
+
navigateUrl?: string;
|
|
74
87
|
/**
|
|
75
88
|
* @description 自定义输入框外部样式
|
|
76
89
|
* */
|
|
77
|
-
customStyle?: CSSProperties
|
|
90
|
+
customStyle?: CSSProperties;
|
|
78
91
|
}
|
|
79
92
|
|
|
80
93
|
export interface IEmptyEmits {
|
|
81
94
|
/** 点击按钮触发 */
|
|
82
|
-
(e:
|
|
95
|
+
(e: "click"): void;
|
|
83
96
|
}
|
|
@@ -53,7 +53,7 @@ import type IProps from "./typing";
|
|
|
53
53
|
import defaultProps from "./props";
|
|
54
54
|
import { addUnit, getRect, sleep } from "../../utils";
|
|
55
55
|
import { IconConfig } from "../../config";
|
|
56
|
-
|
|
56
|
+
// 组件
|
|
57
57
|
import HyIcon from "../hy-icon/hy-icon.vue";
|
|
58
58
|
|
|
59
59
|
const props = withDefaults(defineProps<IProps>(), defaultProps);
|
|
@@ -31,7 +31,7 @@ $z-index: 998;
|
|
|
31
31
|
white-space: nowrap;
|
|
32
32
|
z-index: $z-index;
|
|
33
33
|
position: relative;
|
|
34
|
-
background-color: $hy-background--
|
|
34
|
+
background-color: $hy-background--box;
|
|
35
35
|
border-radius: $hy-border-radius-sm;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -63,7 +63,7 @@ $z-index: 998;
|
|
|
63
63
|
padding: $hy-border-margin-padding-base;
|
|
64
64
|
line-height: 22px;
|
|
65
65
|
z-index: $z-index;
|
|
66
|
-
background-color: $hy-background--
|
|
66
|
+
background-color: $hy-background--box;
|
|
67
67
|
border-radius: $hy-border-radius-sm;
|
|
68
68
|
box-sizing: content-box;
|
|
69
69
|
width: 200px;
|
|
@@ -79,5 +79,5 @@ $z-index: 998;
|
|
|
79
79
|
z-index: $z-index;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
@include squareArrow(6px, $hy-background--
|
|
82
|
+
@include squareArrow(6px, $hy-background--box, $z-index, $hy-box-shadow);
|
|
83
83
|
}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
borderColor: borderColor,
|
|
18
18
|
}"
|
|
19
19
|
>
|
|
20
|
-
<template v-if="$slots.label || label
|
|
20
|
+
<template v-if="$slots.label || label">
|
|
21
21
|
<slot name="label">
|
|
22
22
|
<text class="hy-search__content__label">{{ label }}</text>
|
|
23
23
|
</slot>
|
|
@@ -72,14 +72,7 @@
|
|
|
72
72
|
v-if="keyword && clear && focused"
|
|
73
73
|
@click="clear"
|
|
74
74
|
>
|
|
75
|
-
<HyIcon
|
|
76
|
-
:name="IconConfig.CLOSE"
|
|
77
|
-
size="11"
|
|
78
|
-
color="#ffffff"
|
|
79
|
-
:customStyle="{
|
|
80
|
-
lineHeight: '12px',
|
|
81
|
-
}"
|
|
82
|
-
></HyIcon>
|
|
75
|
+
<HyIcon :name="IconConfig.CLOSE" color="#ffffff"></HyIcon>
|
|
83
76
|
</view>
|
|
84
77
|
</view>
|
|
85
78
|
<text
|