hy-app 0.5.3 → 0.5.5
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-action-sheet/typing.d.ts +1 -63
- package/components/hy-address-picker/hy-address-picker.vue +7 -6
- package/components/hy-address-picker/typing.d.ts +0 -84
- package/components/hy-avatar/hy-avatar.vue +4 -3
- package/components/hy-avatar/typing.d.ts +0 -66
- package/components/hy-back-top/typing.d.ts +0 -47
- package/components/hy-badge/hy-badge.vue +3 -3
- package/components/hy-badge/index.scss +0 -1
- package/components/hy-badge/props.ts +6 -1
- package/components/hy-badge/typing.d.ts +0 -62
- package/components/hy-button/typing.d.ts +28 -162
- package/components/hy-calendar/hy-calendar.vue +2 -2
- package/components/hy-calendar/typing.d.ts +0 -128
- package/components/hy-card/hy-card.vue +12 -12
- package/components/hy-card/index.scss +17 -5
- package/components/hy-card/props.ts +1 -2
- package/components/hy-card/typing.d.ts +1 -114
- package/components/hy-cell/props.ts +1 -1
- package/components/hy-cell/typing.d.ts +0 -55
- package/components/hy-check-button/typing.d.ts +0 -43
- package/components/hy-checkbox/typing.d.ts +1 -73
- package/components/hy-checkbox-group/typing.d.ts +0 -65
- package/components/hy-code-input/typing.d.ts +0 -70
- package/components/hy-count-down/typing.d.ts +1 -20
- package/components/hy-count-to/typing.d.ts +0 -47
- package/components/hy-coupon/index.scss +7 -2
- package/components/hy-coupon/props.ts +7 -4
- package/components/hy-coupon/typing.d.ts +1 -134
- package/components/hy-datetime-picker/props.ts +1 -3
- package/components/hy-datetime-picker/typing.d.ts +0 -119
- package/components/hy-dropdown-item/typing.d.ts +12 -31
- package/components/hy-empty/typing.d.ts +1 -59
- package/components/hy-float-button/typing.d.ts +24 -113
- package/components/hy-folding-panel/props.ts +1 -1
- package/components/hy-folding-panel/typing.d.ts +0 -38
- package/components/hy-folding-panel-item/hy-folding-panel-item.vue +2 -3
- package/components/hy-folding-panel-item/typing.d.ts +14 -0
- package/components/hy-form/typing.d.ts +0 -27
- package/components/hy-form-item/hy-form-item.vue +7 -5
- package/components/hy-form-item/typing.d.ts +0 -19
- package/components/hy-grid/typing.d.ts +0 -43
- package/components/hy-icon/hy-icon.vue +3 -8
- package/components/hy-icon/typing.d.ts +0 -86
- package/components/hy-image/typing.d.ts +0 -80
- package/components/hy-input/typing.d.ts +0 -149
- package/components/hy-list/props.ts +1 -1
- package/components/hy-list/typing.d.ts +0 -51
- package/components/hy-menu/typing.d.ts +0 -35
- package/components/hy-modal/typing.d.ts +9 -84
- package/components/hy-navbar/typing.d.ts +0 -81
- package/components/hy-notice-bar/typing.d.ts +2 -65
- package/components/hy-number-step/typing.d.ts +0 -110
- package/components/hy-overlay/typing.d.ts +2 -27
- package/components/hy-pagination/typing.d.ts +6 -49
- package/components/hy-picker/typing.d.ts +27 -124
- package/components/hy-popover/typing.d.ts +25 -66
- package/components/hy-popup/hy-popup.vue +0 -1
- package/components/hy-popup/typing.d.ts +8 -77
- package/components/hy-price/typing.d.ts +0 -41
- package/components/hy-qrcode/hy-qrcode.vue +67 -2
- package/components/hy-qrcode/index.scss +3 -4
- package/components/hy-qrcode/typing.d.ts +0 -66
- package/components/hy-radio/typing.d.ts +1 -86
- package/components/hy-rate/typing.d.ts +0 -62
- package/components/hy-read-more/typing.d.ts +4 -49
- package/components/hy-scroll-list/typing.d.ts +4 -33
- package/components/hy-search/typing.d.ts +19 -120
- package/components/hy-signature/hy-signature.vue +25 -22
- package/components/hy-signature/index.scss +0 -4
- package/components/hy-signature/typing.d.ts +0 -101
- package/components/hy-slider/typing.d.ts +8 -77
- package/components/hy-steps/typing.d.ts +16 -60
- package/components/hy-submit-bar/typing.d.ts +0 -72
- package/components/hy-subsection/typing.d.ts +0 -49
- package/components/hy-swipe-action/index.ts +13 -22
- package/components/hy-swipe-action/typing.d.ts +1 -38
- package/components/hy-swiper/typing.d.ts +0 -101
- package/components/hy-switch/typing.d.ts +0 -62
- package/components/hy-tabbar/hy-tabbar.vue +137 -0
- package/components/{hy-tabBar → hy-tabbar}/index.scss +31 -31
- package/components/hy-tabbar/props.ts +59 -0
- package/components/hy-tabbar/typing.d.ts +21 -0
- package/components/hy-tabbar-group/hy-tabbar-group.vue +87 -0
- package/components/hy-tabbar-group/index.scss +57 -0
- package/components/hy-tabbar-group/props.ts +78 -0
- package/components/hy-tabbar-group/typing.ts +16 -0
- package/components/hy-tabbar-item/hy-tabbar-item.vue +103 -0
- package/components/hy-tabbar-item/index.scss +43 -0
- package/components/hy-tabbar-item/props.ts +24 -0
- package/components/hy-tabbar-item/typing.ts +10 -0
- package/components/hy-tabs/typing.d.ts +25 -92
- package/components/hy-tag/props.ts +8 -2
- package/components/hy-tag/typing.d.ts +9 -78
- package/components/hy-text/props.ts +8 -2
- package/components/hy-text/typing.d.ts +3 -100
- package/components/hy-textarea/props.ts +4 -1
- package/components/hy-textarea/typing.d.ts +0 -27
- package/components/hy-tooltip/props.ts +1 -4
- package/components/hy-tooltip/typing.d.ts +2 -55
- package/components/hy-transition/typing.d.ts +14 -43
- package/components/hy-upload/props.ts +1 -1
- package/components/hy-upload/typing.d.ts +56 -164
- package/components/hy-warn/typing.d.ts +4 -45
- package/components/index.ts +177 -177
- package/global.d.ts +87 -85
- package/package.json +2 -2
- package/web-types.json +1 -1
- package/components/hy-config-provider/typing.d.ts +0 -24
- package/components/hy-divider/typing.d.ts +0 -64
- package/components/hy-dropdown/typing.d.ts +0 -48
- package/components/hy-form-group/typing.d.ts +0 -0
- package/components/hy-line/typing.d.ts +0 -32
- package/components/hy-line-progress/typing.d.ts +0 -32
- package/components/hy-loading/typing.d.ts +0 -52
- package/components/hy-notify/typing.d.ts +0 -48
- package/components/hy-status-bar/typing.d.ts +0 -12
- package/components/hy-tabBar/hy-tabBar.vue +0 -109
- package/components/hy-tabBar/props.ts +0 -13
- package/components/hy-tabBar/typing.d.ts +0 -54
- package/components/hy-waterfall/typing.d.ts +0 -14
- package/components/hy-watermark/typing.d.ts +0 -76
|
@@ -1,131 +1,3 @@
|
|
|
1
|
-
export default interface HyCalendarProps {
|
|
2
|
-
/**
|
|
3
|
-
* @description 是否显示日历弹窗 (默认 false )
|
|
4
|
-
* */
|
|
5
|
-
show: boolean
|
|
6
|
-
/**
|
|
7
|
-
* @description 标题内容 (默认 日期选择 )
|
|
8
|
-
* */
|
|
9
|
-
title?: string
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @description 是否显示标题 (默认 true )
|
|
13
|
-
* */
|
|
14
|
-
showTitle?: boolean
|
|
15
|
-
/**
|
|
16
|
-
* @description 是否显示副标题 (默认 true )
|
|
17
|
-
* */
|
|
18
|
-
showSubtitle?: boolean
|
|
19
|
-
/**
|
|
20
|
-
* @description 日期类型选择 single-选择单个日期,multiple-可以选择多个日期,range-选择日期范围 ( 默认 'single' )
|
|
21
|
-
* */
|
|
22
|
-
mode?: 'single' | 'range' | 'multiple'
|
|
23
|
-
/**
|
|
24
|
-
* @description mode=range时,第一个日期底部的提示文字 (默认 '开始' )
|
|
25
|
-
* */
|
|
26
|
-
startText?: string
|
|
27
|
-
/**
|
|
28
|
-
* @description mode=range时,最后一个日期底部的提示文字 (默认 '结束' )
|
|
29
|
-
* */
|
|
30
|
-
endText?: string
|
|
31
|
-
/**
|
|
32
|
-
* @description 自定义列表
|
|
33
|
-
* */
|
|
34
|
-
customList?: any[]
|
|
35
|
-
/**
|
|
36
|
-
* @description 主题色,对底部按钮和选中日期有效 (默认 ‘#3c9cff' )
|
|
37
|
-
* */
|
|
38
|
-
color?: string
|
|
39
|
-
/**
|
|
40
|
-
* @description 最小的可选日期 (默认 0 )
|
|
41
|
-
* */
|
|
42
|
-
minDate?: number | string
|
|
43
|
-
/**
|
|
44
|
-
* @description 最大可选日期 (默认 0 )
|
|
45
|
-
* */
|
|
46
|
-
maxDate?: number | string
|
|
47
|
-
/**
|
|
48
|
-
* @description 默认选中的日期,mode为multiple或range是必须为数组格式
|
|
49
|
-
* */
|
|
50
|
-
defaultDate?: Date | string | string[] | null
|
|
51
|
-
/**
|
|
52
|
-
* @description mode=multiple时,最多可选多少个日期 (默认 Number.MAX_SAFE_INTEGER )
|
|
53
|
-
* */
|
|
54
|
-
maxCount?: number
|
|
55
|
-
/**
|
|
56
|
-
* @description 日期行高 (默认 56 )
|
|
57
|
-
* */
|
|
58
|
-
rowHeight?: number
|
|
59
|
-
/**
|
|
60
|
-
* @description 日期格式化函数
|
|
61
|
-
* */
|
|
62
|
-
formatter?: ((date: Date) => string) | null
|
|
63
|
-
/**
|
|
64
|
-
* @description 是否显示农历 (默认 false )
|
|
65
|
-
* */
|
|
66
|
-
showLunar?: boolean
|
|
67
|
-
/**
|
|
68
|
-
* @description 是否显示月份背景色 (默认 true )
|
|
69
|
-
* */
|
|
70
|
-
showMark?: boolean
|
|
71
|
-
/**
|
|
72
|
-
* @description 确定按钮的文字 (默认 '确定' )
|
|
73
|
-
* */
|
|
74
|
-
confirmText?: string
|
|
75
|
-
/**
|
|
76
|
-
* @description 确认按钮处于禁用状态时的文字 (默认 '确定' )
|
|
77
|
-
* */
|
|
78
|
-
confirmDisabledText?: string
|
|
79
|
-
/**
|
|
80
|
-
* @description 是否允许点击遮罩关闭日历 (默认 false )
|
|
81
|
-
* */
|
|
82
|
-
closeOnClickOverlay?: boolean
|
|
83
|
-
/**
|
|
84
|
-
* @description 是否为只读状态,只读状态下禁止选择日期 (默认 false )
|
|
85
|
-
* */
|
|
86
|
-
readonly?: boolean
|
|
87
|
-
/**
|
|
88
|
-
* @description 是否展示确认按钮
|
|
89
|
-
* */
|
|
90
|
-
showConfirm?: boolean
|
|
91
|
-
/**
|
|
92
|
-
* @description 日期区间最多可选天数,默认无限制,mode = range时有效
|
|
93
|
-
* */
|
|
94
|
-
maxRange?: number
|
|
95
|
-
/**
|
|
96
|
-
* @description 范围选择超过最多可选天数时的提示文案,mode = range时有效
|
|
97
|
-
* */
|
|
98
|
-
rangePrompt?: string | null
|
|
99
|
-
/**
|
|
100
|
-
* @description 范围选择超过最多可选天数时,是否展示提示文案,mode = range时有效 (默认 true )
|
|
101
|
-
* */
|
|
102
|
-
showRangePrompt?: boolean
|
|
103
|
-
/**
|
|
104
|
-
* @description 是否允许日期范围的起止时间为同一天,mode = range时有效 (默认 false )
|
|
105
|
-
* */
|
|
106
|
-
allowSameDay?: boolean
|
|
107
|
-
/**
|
|
108
|
-
* @description 圆角值,默认无圆角 (默认 0 )
|
|
109
|
-
* */
|
|
110
|
-
round?: number
|
|
111
|
-
/**
|
|
112
|
-
* @description 最多展示的月份数量 (默认 3 )
|
|
113
|
-
* */
|
|
114
|
-
monthNum?: number
|
|
115
|
-
/**
|
|
116
|
-
* @description 星期文案 (默认 ['一', '二', '三', '四', '五', '六', '日'] )
|
|
117
|
-
* */
|
|
118
|
-
weekText?: string[]
|
|
119
|
-
/**
|
|
120
|
-
* @description 单选与多选禁止选中的日期列表,mode!=range时有效。
|
|
121
|
-
* */
|
|
122
|
-
forbidDays?: Date[]
|
|
123
|
-
/**
|
|
124
|
-
* @description 单选与多选禁止选中的日期选择时提示
|
|
125
|
-
* */
|
|
126
|
-
forbidDaysToast?: string
|
|
127
|
-
}
|
|
128
|
-
|
|
129
1
|
export interface ICalendarEmits {
|
|
130
2
|
/** 日期选择完成后触发,则点击确认按钮后触发 */
|
|
131
3
|
(e: 'confirm', selected: string[]): void
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<view class="hy-card" @tap.stop="click" :class="cardClass" :style="cardStyle">
|
|
3
3
|
<view
|
|
4
4
|
v-if="showHead"
|
|
5
|
-
class="hy-
|
|
6
|
-
:style="[{ padding:
|
|
5
|
+
class="hy-card__head"
|
|
6
|
+
:style="[{ padding: paddingHead || padding }, headStyle]"
|
|
7
7
|
:class="{
|
|
8
8
|
'hy-border__bottom': headBorderBottom
|
|
9
9
|
}"
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
>
|
|
12
12
|
<!-- @slot 头部插槽 -->
|
|
13
13
|
<slot v-if="$slots.header" name="header" />
|
|
14
|
-
<view v-else class="hy-
|
|
15
|
-
<view class="hy-
|
|
14
|
+
<view v-else class="hy-card__head--flex">
|
|
15
|
+
<view class="hy-card__head--left">
|
|
16
16
|
<hy-icon
|
|
17
17
|
v-if="thumb"
|
|
18
18
|
:name="thumb"
|
|
19
|
-
custom-class="hy-
|
|
19
|
+
custom-class="hy-card__head--left__thumb"
|
|
20
20
|
:height="thumbWidth"
|
|
21
21
|
:width="thumbWidth"
|
|
22
22
|
:round="thumbCircle ? '50%' : '4px'"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<view>
|
|
25
25
|
<view
|
|
26
26
|
v-if="title"
|
|
27
|
-
class="hy-
|
|
27
|
+
class="hy-card__head--left__title"
|
|
28
28
|
:style="{
|
|
29
29
|
fontSize: addUnit(titleSize),
|
|
30
30
|
color: titleColor
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
</view>
|
|
35
35
|
<text
|
|
36
36
|
v-if="subTitle"
|
|
37
|
-
class="hy-
|
|
37
|
+
class="hy-card__head--left__sub"
|
|
38
38
|
:style="{
|
|
39
39
|
fontSize: addUnit(subTitleSize),
|
|
40
40
|
color: subTitleColor
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
</text>
|
|
45
45
|
</view>
|
|
46
46
|
</view>
|
|
47
|
-
<view class="hy-
|
|
47
|
+
<view class="hy-card__head--right" v-if="subTitle">
|
|
48
48
|
<text
|
|
49
|
-
class="hy-
|
|
49
|
+
class="hy-card__head--right__text"
|
|
50
50
|
:style="{
|
|
51
51
|
fontSize: addUnit(rightTextSize),
|
|
52
52
|
color: rightTextColor
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
<view
|
|
61
61
|
@tap="bodyClick"
|
|
62
62
|
class="hy-card__body"
|
|
63
|
-
:style="[{ padding:
|
|
63
|
+
:style="[{ padding: paddingBody || padding }, bodyStyle]"
|
|
64
64
|
>
|
|
65
65
|
<!-- @slot 中间内容插槽 -->
|
|
66
66
|
<slot name="body" />
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
v-if="showFoot"
|
|
70
70
|
class="hy-card__foot"
|
|
71
71
|
@tap="footClick"
|
|
72
|
-
:style="[{ padding: $slots.footer ?
|
|
72
|
+
:style="[{ padding: $slots.footer ? paddingFoot || padding : 0 }, footStyle]"
|
|
73
73
|
:class="{
|
|
74
74
|
'hy-border__top': footBorderTop
|
|
75
75
|
}"
|
|
@@ -113,7 +113,7 @@ const cardClass = computed(() => {
|
|
|
113
113
|
const hasBorder = getPx(props.borderRadius) > 0
|
|
114
114
|
return [
|
|
115
115
|
props.border && 'hy-border',
|
|
116
|
-
props.full && 'hy-
|
|
116
|
+
props.full && 'hy-card__full',
|
|
117
117
|
hasBorder && 'hy-card--border'
|
|
118
118
|
].filter(Boolean)
|
|
119
119
|
})
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
background-color: $hy-background--container;
|
|
10
10
|
box-sizing: border-box;
|
|
11
11
|
|
|
12
|
-
@include
|
|
12
|
+
@include e(full) {
|
|
13
13
|
margin-left: $hy-border-margin-padding-base !important;
|
|
14
14
|
margin-right: $hy-border-margin-padding-base !important;
|
|
15
15
|
}
|
|
@@ -20,14 +20,16 @@
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
/* 头部 */
|
|
24
|
+
@include e(head) {
|
|
25
|
+
padding: 20rpx 20rpx 10rpx;
|
|
26
|
+
@include m(flex) {
|
|
25
27
|
display: flex;
|
|
26
28
|
align-items: center;
|
|
27
29
|
justify-content: space-between;
|
|
28
30
|
}
|
|
29
31
|
|
|
30
|
-
@include
|
|
32
|
+
@include m(left) {
|
|
31
33
|
display: flex;
|
|
32
34
|
align-items: center;
|
|
33
35
|
flex: 1;
|
|
@@ -49,9 +51,19 @@
|
|
|
49
51
|
}
|
|
50
52
|
}
|
|
51
53
|
|
|
52
|
-
@include
|
|
54
|
+
@include m(right) {
|
|
53
55
|
color: $hy-text-color--grey;
|
|
54
56
|
margin-left: $hy-border-margin-padding-sm;
|
|
55
57
|
}
|
|
56
58
|
}
|
|
59
|
+
|
|
60
|
+
/* 身体 */
|
|
61
|
+
@include e(body) {
|
|
62
|
+
padding: 10rpx 20rpx 10rpx;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* 尾部 */
|
|
66
|
+
@include e(foot) {
|
|
67
|
+
padding: 10rpx 20rpx 20rpx;
|
|
68
|
+
}
|
|
57
69
|
}
|
|
@@ -1,118 +1,5 @@
|
|
|
1
|
-
import type { CSSProperties } from 'vue'
|
|
2
|
-
|
|
3
|
-
export default interface HyCardProps {
|
|
4
|
-
/**
|
|
5
|
-
* @description 卡片与屏幕两侧是否留空隙(默认false)
|
|
6
|
-
* */
|
|
7
|
-
full?: boolean
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @description 头部左边的标题
|
|
11
|
-
* */
|
|
12
|
-
title?: string
|
|
13
|
-
/**
|
|
14
|
-
* @description 标题颜色(默认#303133)
|
|
15
|
-
* */
|
|
16
|
-
titleColor?: string
|
|
17
|
-
/**
|
|
18
|
-
* @description 标题字体大小,单位rpx(默认15px)
|
|
19
|
-
* */
|
|
20
|
-
titleSize?: string | number
|
|
21
|
-
/**
|
|
22
|
-
* @description 头部右边的副标题
|
|
23
|
-
* */
|
|
24
|
-
subTitle?: string
|
|
25
|
-
/**
|
|
26
|
-
* @description 副标题颜色(默认#909399)
|
|
27
|
-
* */
|
|
28
|
-
subTitleColor?: string
|
|
29
|
-
/**
|
|
30
|
-
* @description 副标题字体大小(默认13px)
|
|
31
|
-
* */
|
|
32
|
-
subTitleSize?: string | number
|
|
33
|
-
/**
|
|
34
|
-
* @description 是否显示边框(默认true)
|
|
35
|
-
* */
|
|
36
|
-
border?: boolean
|
|
37
|
-
/**
|
|
38
|
-
* @description 用于标识点击了第几个卡片
|
|
39
|
-
* */
|
|
40
|
-
index?: string | number
|
|
41
|
-
/**
|
|
42
|
-
* @description 卡片与屏幕两边和上下元素的间距,需带单位,如"30px 20px"(默认15px)
|
|
43
|
-
* */
|
|
44
|
-
margin?: string
|
|
45
|
-
/**
|
|
46
|
-
* @description 卡片整体的圆角值,单位px(默认8px)
|
|
47
|
-
* */
|
|
48
|
-
borderRadius?: string | number
|
|
49
|
-
/**
|
|
50
|
-
* @description 头部自定义样式,对象形式
|
|
51
|
-
* */
|
|
52
|
-
headStyle?: CSSProperties
|
|
53
|
-
/**
|
|
54
|
-
* @description 中部自定义样式,对象形式
|
|
55
|
-
* */
|
|
56
|
-
bodyStyle?: CSSProperties
|
|
57
|
-
/**
|
|
58
|
-
* @description 底部自定义样式,对象形式
|
|
59
|
-
* */
|
|
60
|
-
footStyle?: CSSProperties
|
|
61
|
-
/**
|
|
62
|
-
* @description 是否显示头部的下边框(默认true)
|
|
63
|
-
* */
|
|
64
|
-
headBorderBottom?: boolean
|
|
65
|
-
/**
|
|
66
|
-
* @description 是否显示底部的上边框(默认true)
|
|
67
|
-
* */
|
|
68
|
-
footBorderTop?: boolean
|
|
69
|
-
/**
|
|
70
|
-
* @description 缩略图路径,如设置将显示在标题的左边,不建议使用相对路径
|
|
71
|
-
* */
|
|
72
|
-
thumb?: string
|
|
73
|
-
/**
|
|
74
|
-
* @description 缩略图的宽度,高等于宽,单位px(默认30px)
|
|
75
|
-
* */
|
|
76
|
-
thumbWidth?: string | number
|
|
77
|
-
/**
|
|
78
|
-
* @description 缩略图是否为圆形(默认false)
|
|
79
|
-
* */
|
|
80
|
-
thumbCircle?: boolean
|
|
81
|
-
/**
|
|
82
|
-
* @description // 给head,body,foot的内边距
|
|
83
|
-
* */
|
|
84
|
-
padding?: string | number
|
|
85
|
-
/**
|
|
86
|
-
* @description 头部内边距
|
|
87
|
-
* */
|
|
88
|
-
paddingHead?: string | number
|
|
89
|
-
/**
|
|
90
|
-
* @description 中部内边距
|
|
91
|
-
* */
|
|
92
|
-
paddingBody?: string | number
|
|
93
|
-
/**
|
|
94
|
-
* @description 尾部内边距
|
|
95
|
-
* */
|
|
96
|
-
paddingFoot?: string | number
|
|
97
|
-
/**
|
|
98
|
-
* @description 是否显示头部(默认true)
|
|
99
|
-
* */
|
|
100
|
-
showHead?: boolean
|
|
101
|
-
/**
|
|
102
|
-
* @description 是否显示尾部(默认true)
|
|
103
|
-
* */
|
|
104
|
-
showFoot?: boolean
|
|
105
|
-
/**
|
|
106
|
-
* @description 卡片外围阴影,字符串形式(默认true)
|
|
107
|
-
* */
|
|
108
|
-
boxShadow?: string | boolean
|
|
109
|
-
/**
|
|
110
|
-
* @description 定义需要用到的外部样式
|
|
111
|
-
* */
|
|
112
|
-
customStyle?: CSSProperties
|
|
113
|
-
}
|
|
114
|
-
|
|
115
1
|
type IndexVo = string | number | undefined
|
|
2
|
+
|
|
116
3
|
export interface ICardEmits {
|
|
117
4
|
/** 整个卡片任意位置被点击时触发 */
|
|
118
5
|
(e: 'click', index: IndexVo): void
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { CSSProperties } from 'vue'
|
|
2
1
|
import { HyApp } from '../../typing'
|
|
3
2
|
import type HyIconProps from '../hy-icon/typing'
|
|
4
3
|
|
|
@@ -37,60 +36,6 @@ export interface CellContentVo extends AnyObject {
|
|
|
37
36
|
* */
|
|
38
37
|
arrowDirection?: HyApp.RotateType
|
|
39
38
|
}
|
|
40
|
-
export default interface HyCellProps {
|
|
41
|
-
/**
|
|
42
|
-
* @description cell列表数据
|
|
43
|
-
* */
|
|
44
|
-
list: CellContentVo[]
|
|
45
|
-
/**
|
|
46
|
-
* @description 头部标题
|
|
47
|
-
* */
|
|
48
|
-
title?: string
|
|
49
|
-
/**
|
|
50
|
-
* @description 是否显示标题前缀竖线
|
|
51
|
-
* */
|
|
52
|
-
showVertical?: boolean
|
|
53
|
-
/**
|
|
54
|
-
* @description 是否显示cell下边框 (默认 true )
|
|
55
|
-
* */
|
|
56
|
-
border?: boolean
|
|
57
|
-
/**
|
|
58
|
-
* @description 圆角
|
|
59
|
-
* */
|
|
60
|
-
borderRadius?: string | number
|
|
61
|
-
/**
|
|
62
|
-
* @description 是否禁用cell(默认false)
|
|
63
|
-
* */
|
|
64
|
-
disabled?: boolean
|
|
65
|
-
/**
|
|
66
|
-
* @description 是否开启点击反馈(表现为点击时加上灰色背景) (默认 false )
|
|
67
|
-
* */
|
|
68
|
-
clickable?: boolean
|
|
69
|
-
/**
|
|
70
|
-
* @description 单元的大小,可选值为 large,medium,small
|
|
71
|
-
* */
|
|
72
|
-
size?: HyApp.SizeType
|
|
73
|
-
/**
|
|
74
|
-
* @description 右侧的内容
|
|
75
|
-
* */
|
|
76
|
-
value?: string
|
|
77
|
-
/**
|
|
78
|
-
* @description 内容是否垂直居中(主要是针对右侧的value部分) (默认 false )
|
|
79
|
-
* */
|
|
80
|
-
arrange?: HyApp.LeftRightType | 'center'
|
|
81
|
-
/**
|
|
82
|
-
* @description 右侧的图标箭头icon集合
|
|
83
|
-
* */
|
|
84
|
-
rightIcon?: Partial<HyIconProps>
|
|
85
|
-
/**
|
|
86
|
-
* @description 右侧箭头的方向,可选值为:left,up,down
|
|
87
|
-
* */
|
|
88
|
-
arrowDirection?: 'left' | 'up' | 'down' | 'right'
|
|
89
|
-
/**
|
|
90
|
-
* @description 定义需要用到的外部样式
|
|
91
|
-
* */
|
|
92
|
-
customStyle?: CSSProperties
|
|
93
|
-
}
|
|
94
39
|
|
|
95
40
|
export interface ICellEmits {
|
|
96
41
|
/** 点击行触发 */
|
|
@@ -36,49 +36,6 @@ export type FieldNamesType = {
|
|
|
36
36
|
[key in keyof IFieldNames as IFieldNames[key]]?: string | number | boolean
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
export default interface HyCheckButtonProps {
|
|
40
|
-
/**
|
|
41
|
-
* @description 选中得值,radio是字符串,checkbox是数组
|
|
42
|
-
* */
|
|
43
|
-
modelValue: (string | number) | (string | number)[]
|
|
44
|
-
/**
|
|
45
|
-
* @description 选择列表数据
|
|
46
|
-
* */
|
|
47
|
-
columns: CheckboxColumnsVo[]
|
|
48
|
-
/**
|
|
49
|
-
* @description columns对应得键
|
|
50
|
-
* */
|
|
51
|
-
fieldNames?: IFieldNames
|
|
52
|
-
/**
|
|
53
|
-
* @description 选择单选框还是复选框
|
|
54
|
-
* */
|
|
55
|
-
selectType?: 'checkbox' | 'radio'
|
|
56
|
-
/**
|
|
57
|
-
* @description 禁用
|
|
58
|
-
* */
|
|
59
|
-
disabled?: boolean
|
|
60
|
-
/**
|
|
61
|
-
* @description 每行几列,每列等宽
|
|
62
|
-
* */
|
|
63
|
-
col?: string
|
|
64
|
-
/**
|
|
65
|
-
* @description 设置每行间距,需要加单位
|
|
66
|
-
* */
|
|
67
|
-
gap?: string
|
|
68
|
-
/**
|
|
69
|
-
* @description 标签类型info、primary、success、warning、error (默认 'primary' )
|
|
70
|
-
* */
|
|
71
|
-
type?: HyApp.ThemeType
|
|
72
|
-
/**
|
|
73
|
-
* @description 标签的大小,large,medium,small (默认 'medium' )
|
|
74
|
-
* */
|
|
75
|
-
size?: HyApp.SizeType
|
|
76
|
-
/**
|
|
77
|
-
* @description tag的形状,circle(两边半圆形), square(方形,带圆角)(默认 'square' )
|
|
78
|
-
* */
|
|
79
|
-
shape?: HyApp.ShapeType
|
|
80
|
-
}
|
|
81
|
-
|
|
82
39
|
export interface ICheckButtonEmits {
|
|
83
40
|
/** 选择触发 */
|
|
84
41
|
(e: 'change', value: any): void
|
|
@@ -1,76 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { CheckboxColumnsVo, IFieldNames } from '../hy-check-button/typing'
|
|
3
|
-
|
|
4
|
-
export default interface HyCheckboxProps {
|
|
5
|
-
/**
|
|
6
|
-
* @description 双向绑定值,数组类型
|
|
7
|
-
* */
|
|
8
|
-
modelValue: (string | number)[] | boolean
|
|
9
|
-
/**
|
|
10
|
-
* @description 接收数组值
|
|
11
|
-
* */
|
|
12
|
-
columns: CheckboxColumnsVo[]
|
|
13
|
-
/**
|
|
14
|
-
* @description 自定义接收columns的键
|
|
15
|
-
* */
|
|
16
|
-
fieldNames?: IFieldNames
|
|
17
|
-
/**
|
|
18
|
-
* @description 形状,square为方形,circle为圆型
|
|
19
|
-
* */
|
|
20
|
-
shape?: HyApp.ShapeType
|
|
21
|
-
/**
|
|
22
|
-
* @description 复选框大小
|
|
23
|
-
* */
|
|
24
|
-
size?: HyApp.SizeType | string | number
|
|
25
|
-
/**
|
|
26
|
-
* @description 是否禁用
|
|
27
|
-
* */
|
|
28
|
-
disabled?: boolean
|
|
29
|
-
/**
|
|
30
|
-
* @description 选中状态下的颜色
|
|
31
|
-
* */
|
|
32
|
-
activeColor?: string
|
|
33
|
-
/**
|
|
34
|
-
* @description 未选中的颜色
|
|
35
|
-
* */
|
|
36
|
-
inactiveColor?: string
|
|
37
|
-
/**
|
|
38
|
-
* @description 图标的大小,单位px
|
|
39
|
-
* */
|
|
40
|
-
iconSize?: string | number
|
|
41
|
-
/**
|
|
42
|
-
* @description 图标颜色
|
|
43
|
-
* */
|
|
44
|
-
iconColor?: string
|
|
45
|
-
/**
|
|
46
|
-
* @description label的字体大小,px单位
|
|
47
|
-
* */
|
|
48
|
-
labelSize?: string | number
|
|
49
|
-
/**
|
|
50
|
-
* @description label的颜色
|
|
51
|
-
* */
|
|
52
|
-
labelColor?: string
|
|
53
|
-
/**
|
|
54
|
-
* @description 勾选图标的对齐方式,left-左边,right-右边
|
|
55
|
-
* */
|
|
56
|
-
iconPlacement?: HyApp.LeftRightType
|
|
57
|
-
/**
|
|
58
|
-
* @description 竖向配列时,是否显示下划线
|
|
59
|
-
* */
|
|
60
|
-
borderBottom?: boolean
|
|
61
|
-
/**
|
|
62
|
-
* @description 是否禁止点击提示语选中复选框
|
|
63
|
-
* */
|
|
64
|
-
labelDisabled?: boolean
|
|
65
|
-
/**
|
|
66
|
-
* @description 定义需要用到的外部样式
|
|
67
|
-
* */
|
|
68
|
-
customStyle?: CSSProperties
|
|
69
|
-
/**
|
|
70
|
-
* @description 排列方式,row-横向,column-纵向
|
|
71
|
-
* */
|
|
72
|
-
placement?: HyApp.DirectionType
|
|
73
|
-
}
|
|
1
|
+
import type { CheckboxColumnsVo } from '../hy-check-button/typing'
|
|
74
2
|
|
|
75
3
|
export interface ICheckBoxEmits {
|
|
76
4
|
/** 选择触发 */
|
|
@@ -1,68 +1,3 @@
|
|
|
1
|
-
import type { CSSProperties } from 'vue'
|
|
2
|
-
|
|
3
|
-
export default interface HyCheckboxGroupProps {
|
|
4
|
-
/**
|
|
5
|
-
* @description 双向绑定值,数组类型
|
|
6
|
-
* */
|
|
7
|
-
modelValue: (string | number)[]
|
|
8
|
-
/**
|
|
9
|
-
* @description 形状,square为方形,circle为圆型
|
|
10
|
-
* */
|
|
11
|
-
shape?: HyApp.ShapeType
|
|
12
|
-
/**
|
|
13
|
-
* @description 复选框大小
|
|
14
|
-
* */
|
|
15
|
-
size?: HyApp.SizeType | string | number
|
|
16
|
-
/**
|
|
17
|
-
* @description 是否禁用
|
|
18
|
-
* */
|
|
19
|
-
disabled?: boolean
|
|
20
|
-
/**
|
|
21
|
-
* @description 选中状态下的颜色
|
|
22
|
-
* */
|
|
23
|
-
activeColor?: string
|
|
24
|
-
/**
|
|
25
|
-
* @description 未选中的颜色
|
|
26
|
-
* */
|
|
27
|
-
inactiveColor?: string
|
|
28
|
-
/**
|
|
29
|
-
* @description 图标的大小,单位px
|
|
30
|
-
* */
|
|
31
|
-
iconSize?: string | number
|
|
32
|
-
/**
|
|
33
|
-
* @description 图标颜色
|
|
34
|
-
* */
|
|
35
|
-
iconColor?: string
|
|
36
|
-
/**
|
|
37
|
-
* @description label的字体大小,px单位
|
|
38
|
-
* */
|
|
39
|
-
labelSize?: string | number
|
|
40
|
-
/**
|
|
41
|
-
* @description label的颜色
|
|
42
|
-
* */
|
|
43
|
-
labelColor?: string
|
|
44
|
-
/**
|
|
45
|
-
* @description 勾选图标的对齐方式,left-左边,right-右边
|
|
46
|
-
* */
|
|
47
|
-
iconPlacement?: HyApp.LeftRightType
|
|
48
|
-
/**
|
|
49
|
-
* @description 竖向配列时,是否显示下划线
|
|
50
|
-
* */
|
|
51
|
-
borderBottom?: boolean
|
|
52
|
-
/**
|
|
53
|
-
* @description 是否禁止点击提示语选中复选框
|
|
54
|
-
* */
|
|
55
|
-
labelDisabled?: boolean
|
|
56
|
-
/**
|
|
57
|
-
* @description 定义需要用到的外部样式
|
|
58
|
-
* */
|
|
59
|
-
customStyle?: CSSProperties
|
|
60
|
-
/**
|
|
61
|
-
* @description 排列方式,row-横向,column-纵向
|
|
62
|
-
* */
|
|
63
|
-
placement?: HyApp.DirectionType
|
|
64
|
-
}
|
|
65
|
-
|
|
66
1
|
export interface ICheckBoxGroupEmits {
|
|
67
2
|
/** 选择触发 */
|
|
68
3
|
(e: 'change', temp: CheckboxColumnsVo): void
|