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,73 +1,3 @@
|
|
|
1
|
-
import type { CSSProperties } from 'vue'
|
|
2
|
-
|
|
3
|
-
export default interface HyCodeInputProps {
|
|
4
|
-
modelValue: string | number
|
|
5
|
-
/**
|
|
6
|
-
* @description 键盘弹起时,是否自动上推页面(默认 true )
|
|
7
|
-
* */
|
|
8
|
-
adjustPosition?: boolean
|
|
9
|
-
/**
|
|
10
|
-
* @description 最大输入长度(默认 6 )
|
|
11
|
-
* */
|
|
12
|
-
maxlength?: number
|
|
13
|
-
/**
|
|
14
|
-
* @description 显示border
|
|
15
|
-
* */
|
|
16
|
-
border?: boolean
|
|
17
|
-
/**
|
|
18
|
-
* @description 是否用圆点填充(默认 false )
|
|
19
|
-
* */
|
|
20
|
-
dot?: boolean
|
|
21
|
-
/**
|
|
22
|
-
* @description 显示模式,box-盒子模式,line-底部横线模式 (默认 'box' )
|
|
23
|
-
* */
|
|
24
|
-
mode?: 'box' | string
|
|
25
|
-
/**
|
|
26
|
-
* @description 是否细边框 (默认 false )
|
|
27
|
-
* */
|
|
28
|
-
hairline?: boolean
|
|
29
|
-
/**
|
|
30
|
-
* @description 字符间的距离 (默认 10 )
|
|
31
|
-
* */
|
|
32
|
-
space?: number
|
|
33
|
-
/**
|
|
34
|
-
* @description 是否自动获取焦点 (默认 false )
|
|
35
|
-
* */
|
|
36
|
-
focus?: boolean
|
|
37
|
-
/**
|
|
38
|
-
* @description 字体是否加粗 (默认 false )
|
|
39
|
-
* */
|
|
40
|
-
bold?: boolean
|
|
41
|
-
/**
|
|
42
|
-
* @description 字体颜色 (默认 '#606266' )
|
|
43
|
-
* */
|
|
44
|
-
color?: string
|
|
45
|
-
/**
|
|
46
|
-
* @description 字体大小,单位px (默认 18 )
|
|
47
|
-
* */
|
|
48
|
-
fontSize?: number
|
|
49
|
-
/**
|
|
50
|
-
* @description 输入框的大小,宽等于高 (默认 35 )
|
|
51
|
-
* */
|
|
52
|
-
size?: number | string
|
|
53
|
-
/**
|
|
54
|
-
* @description 是否隐藏原生键盘,如果想用自定义键盘的话,需设置此参数为true (默认 false )
|
|
55
|
-
* */
|
|
56
|
-
disabledKeyboard?: boolean
|
|
57
|
-
/**
|
|
58
|
-
* @description 边框和线条颜色 (默认 '#c9cacc' )
|
|
59
|
-
* */
|
|
60
|
-
borderColor?: string
|
|
61
|
-
/**
|
|
62
|
-
* @description 是否禁止输入"."符号 (默认 true )
|
|
63
|
-
* */
|
|
64
|
-
disabledDot?: boolean
|
|
65
|
-
/**
|
|
66
|
-
* @description 定义需要用到的外部样式
|
|
67
|
-
* */
|
|
68
|
-
customStyle?: CSSProperties
|
|
69
|
-
}
|
|
70
|
-
|
|
71
1
|
export interface ICodeInputEmits {
|
|
72
2
|
/** 输入内容发生改变时触发 */
|
|
73
3
|
(e: 'change', value: string | number): void
|
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
import type { CSSProperties } from 'vue'
|
|
2
|
-
|
|
3
|
-
export default interface HyCountDownProps {
|
|
4
|
-
/**
|
|
5
|
-
* @description 倒计时时长,单位ms (默认 0 )
|
|
6
|
-
* */
|
|
7
|
-
time: number
|
|
8
|
-
/**
|
|
9
|
-
* @description 时间格式,DD-日,HH-时,mm-分,ss-秒,SSS-毫秒 (默认 'HH:mm:ss' )
|
|
10
|
-
* */
|
|
11
|
-
format?: string
|
|
12
|
-
/**
|
|
13
|
-
* @description 是否自动开始倒计时 (默认 true )
|
|
14
|
-
* */
|
|
15
|
-
autoStart?: boolean
|
|
16
|
-
/**
|
|
17
|
-
* @description 是否展示毫秒倒计时 (默认 false )
|
|
18
|
-
* */
|
|
19
|
-
millisecond?: boolean
|
|
20
|
-
}
|
|
21
1
|
type TimeDataVo = {
|
|
22
2
|
days: number
|
|
23
3
|
hours: number
|
|
@@ -25,6 +5,7 @@ type TimeDataVo = {
|
|
|
25
5
|
seconds: number
|
|
26
6
|
milliseconds: number
|
|
27
7
|
}
|
|
8
|
+
|
|
28
9
|
export interface ICountDownEmits {
|
|
29
10
|
/** 过程中,倒计时变化时触发 */
|
|
30
11
|
(e: 'change', time: TimeDataVo): void
|
|
@@ -1,50 +1,3 @@
|
|
|
1
|
-
export default interface HyCountToProps {
|
|
2
|
-
/**
|
|
3
|
-
* @description 开始的数值,默认从0增长到某一个数(默认 0 )
|
|
4
|
-
* */
|
|
5
|
-
startVal?: number
|
|
6
|
-
/**
|
|
7
|
-
* @description 要滚动的目标数值,必须 (默认 0 )
|
|
8
|
-
* */
|
|
9
|
-
endVal: number
|
|
10
|
-
/**
|
|
11
|
-
* @description 滚动到目标数值的动画持续时间,单位为毫秒(ms) (默认
|
|
12
|
-
* */
|
|
13
|
-
duration?: number
|
|
14
|
-
/**
|
|
15
|
-
* @description 设置数值后是否自动开始滚动 (默认 true )
|
|
16
|
-
* */
|
|
17
|
-
autoplay?: boolean
|
|
18
|
-
/**
|
|
19
|
-
* @description 要显示的小数位数,见官网说明(默认 0 )
|
|
20
|
-
* */
|
|
21
|
-
decimals?: number
|
|
22
|
-
/**
|
|
23
|
-
* @description 滚动结束时,是否缓动结尾,见官网说明(默认 true )
|
|
24
|
-
* */
|
|
25
|
-
useEasing?: boolean
|
|
26
|
-
/**
|
|
27
|
-
* @description 十进制分割 ( 默认 "." )
|
|
28
|
-
* */
|
|
29
|
-
decimal?: string
|
|
30
|
-
/**
|
|
31
|
-
* @description 字体颜色( 默认 '#606266' )
|
|
32
|
-
* */
|
|
33
|
-
color?: string
|
|
34
|
-
/**
|
|
35
|
-
* @description 字体大小,单位px( 默认 22 )
|
|
36
|
-
* */
|
|
37
|
-
fontSize?: number | string
|
|
38
|
-
/**
|
|
39
|
-
* @description 字体是否加粗(默认 false )
|
|
40
|
-
* */
|
|
41
|
-
bold?: boolean
|
|
42
|
-
/**
|
|
43
|
-
* @description 千位分隔符,见官网说明
|
|
44
|
-
* */
|
|
45
|
-
separator?: string
|
|
46
|
-
}
|
|
47
|
-
|
|
48
1
|
export interface ICountToEmits {
|
|
49
2
|
/** 结束执行函数 */
|
|
50
3
|
(e: 'end'): void
|
|
@@ -9,8 +9,8 @@ $hy-box-width: 180rpx;
|
|
|
9
9
|
|
|
10
10
|
/* 已使用/过期状态的置灰效果 */
|
|
11
11
|
@include m(disabled) {
|
|
12
|
-
filter: grayscale(
|
|
13
|
-
opacity: 0.
|
|
12
|
+
filter: grayscale(0.4) !important;
|
|
13
|
+
opacity: 0.6;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
/* 优惠券卡片主体 */
|
|
@@ -34,6 +34,11 @@ $hy-box-width: 180rpx;
|
|
|
34
34
|
no-repeat,
|
|
35
35
|
radial-gradient(circle at $hy-box-width bottom, transparent 15rpx, #ff7d00 0) bottom / 100%
|
|
36
36
|
51px no-repeat;
|
|
37
|
+
//background:
|
|
38
|
+
// radial-gradient(circle at left center, transparent 15rpx, #ff7d00 0) left center / 30rpx 100% no-repeat,
|
|
39
|
+
// radial-gradient(circle at right center, transparent 15rpx, #ff7d00 0) right center / 30rpx 100% no-repeat;
|
|
40
|
+
|
|
41
|
+
|
|
37
42
|
}
|
|
38
43
|
@include m(discount) {
|
|
39
44
|
background:
|
|
@@ -7,12 +7,15 @@ const couponProps = {
|
|
|
7
7
|
type: String,
|
|
8
8
|
default: ''
|
|
9
9
|
},
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* 优惠券类型:moneyOff:满减券,discount:折扣券,fixedAmount:无门槛券
|
|
12
|
+
* @values moneyOff,discount,fixedAmount
|
|
13
|
+
* */
|
|
11
14
|
type: {
|
|
12
15
|
type: String,
|
|
13
16
|
default: ''
|
|
14
17
|
},
|
|
15
|
-
/**
|
|
18
|
+
/** 金额底部优惠券类型文字描述 */
|
|
16
19
|
typeText: {
|
|
17
20
|
type: String,
|
|
18
21
|
default: ''
|
|
@@ -27,7 +30,7 @@ const couponProps = {
|
|
|
27
30
|
type: Array,
|
|
28
31
|
default: () => ['']
|
|
29
32
|
},
|
|
30
|
-
/**
|
|
33
|
+
/** 优惠券描述备注 */
|
|
31
34
|
description: {
|
|
32
35
|
type: String,
|
|
33
36
|
default: ''
|
|
@@ -74,7 +77,7 @@ const couponProps = {
|
|
|
74
77
|
},
|
|
75
78
|
/**
|
|
76
79
|
* 按钮类型
|
|
77
|
-
* @values text,button
|
|
80
|
+
* @values text,button,none
|
|
78
81
|
* */
|
|
79
82
|
btnMode: {
|
|
80
83
|
type: String,
|
|
@@ -2,143 +2,10 @@ import type { CSSProperties } from 'vue'
|
|
|
2
2
|
|
|
3
3
|
export type CouponStatus = 'unused' | 'used' | 'expired' | 'redeemed'
|
|
4
4
|
/**
|
|
5
|
-
* moneyOff
|
|
5
|
+
* moneyOff:满减券,discount:折扣券,fixedAmount:无门槛券
|
|
6
6
|
* */
|
|
7
7
|
export type CouponType = 'moneyOff' | 'discount' | 'fixedAmount'
|
|
8
8
|
|
|
9
|
-
export interface HyCouponProps {
|
|
10
|
-
/**
|
|
11
|
-
* 优惠券金额
|
|
12
|
-
* @type {string}
|
|
13
|
-
*/
|
|
14
|
-
amount: string
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* 优惠券标题
|
|
18
|
-
* @type {string}
|
|
19
|
-
*/
|
|
20
|
-
title: string
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* 优惠券副标题
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @default ''
|
|
26
|
-
*/
|
|
27
|
-
subTitle?: string
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* 优惠券状态
|
|
31
|
-
* @type {'normal' | 'disabled' | 'used' | 'expired'}
|
|
32
|
-
* @default 'normal'
|
|
33
|
-
*/
|
|
34
|
-
status?: CouponStatus
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* 最小消费金额限制
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @default 0
|
|
40
|
-
*/
|
|
41
|
-
minSpend?: number
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* 有效期
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @default ''
|
|
47
|
-
*/
|
|
48
|
-
validity?: string
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* 是否显示左边界装饰
|
|
52
|
-
* @type {boolean}
|
|
53
|
-
* @default true
|
|
54
|
-
*/
|
|
55
|
-
showLeftBorder?: boolean
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* 是否显示右边界装饰
|
|
59
|
-
* @type {boolean}
|
|
60
|
-
* @default true
|
|
61
|
-
*/
|
|
62
|
-
showRightBorder?: boolean
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* 自定义样式
|
|
66
|
-
* @type {CSSProperties}
|
|
67
|
-
* @default {}
|
|
68
|
-
*/
|
|
69
|
-
customStyle?: CSSProperties
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* 自定义类名
|
|
73
|
-
* @type {string}
|
|
74
|
-
* @default ''
|
|
75
|
-
*/
|
|
76
|
-
customClass?: string
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* 提示文本
|
|
80
|
-
* @type {string}
|
|
81
|
-
* @default ''
|
|
82
|
-
*/
|
|
83
|
-
tooltip?: string
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* 是否显示操作按钮
|
|
87
|
-
* @type {boolean}
|
|
88
|
-
* @default false
|
|
89
|
-
*/
|
|
90
|
-
showActionButton?: boolean
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* 自定义按钮文本
|
|
94
|
-
* @type {string}
|
|
95
|
-
* @default ''
|
|
96
|
-
*/
|
|
97
|
-
customButtonText?: string
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* 是否为专属优惠券
|
|
101
|
-
* @type {boolean}
|
|
102
|
-
* @default false
|
|
103
|
-
*/
|
|
104
|
-
isExclusive?: boolean
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* 每用户限领数量
|
|
108
|
-
* @type {number}
|
|
109
|
-
* @default 0
|
|
110
|
-
*/
|
|
111
|
-
limitPerUser?: number
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* 使用日期(已使用状态时显示)
|
|
115
|
-
* @type {string}
|
|
116
|
-
* @default ''
|
|
117
|
-
*/
|
|
118
|
-
usedDate?: string
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* 过期日期(已过期状态时显示)
|
|
122
|
-
* @type {string}
|
|
123
|
-
* @default ''
|
|
124
|
-
*/
|
|
125
|
-
expireDate?: string
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* 禁用原因(已禁用状态时显示)
|
|
129
|
-
* @type {string}
|
|
130
|
-
* @default ''
|
|
131
|
-
*/
|
|
132
|
-
disabledReason?: string
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* 点击时是否触发receive事件
|
|
136
|
-
* @type {boolean}
|
|
137
|
-
* @default true
|
|
138
|
-
*/
|
|
139
|
-
triggerReceiveOnClick?: boolean
|
|
140
|
-
}
|
|
141
|
-
|
|
142
9
|
export interface ICouponEmits {
|
|
143
10
|
/** 点击优惠券 */
|
|
144
11
|
(e: 'click'): void
|
|
@@ -1,123 +1,4 @@
|
|
|
1
1
|
import { DateModeEnum } from '../../typing'
|
|
2
|
-
import type { CSSProperties } from 'vue'
|
|
3
|
-
import type HyInputProps from '../hy-input/typing'
|
|
4
|
-
|
|
5
|
-
export default interface HyDatetimeProps {
|
|
6
|
-
/**
|
|
7
|
-
* @description 用于控制选择器的弹出和收起 ( 默认 false )
|
|
8
|
-
* */
|
|
9
|
-
show?: boolean
|
|
10
|
-
/**
|
|
11
|
-
* @description 弹出层弹出方向
|
|
12
|
-
* */
|
|
13
|
-
popupMode?: HyApp.LayoutType
|
|
14
|
-
/**
|
|
15
|
-
* @description 是否显示顶部的操作栏 ( 默认 true )
|
|
16
|
-
* */
|
|
17
|
-
showToolbar?: boolean
|
|
18
|
-
/**
|
|
19
|
-
* @description 绑定值
|
|
20
|
-
* @note 类型有问题,需要调整(加了Date类型)
|
|
21
|
-
* */
|
|
22
|
-
modelValue: string | number | Date
|
|
23
|
-
/**
|
|
24
|
-
* @description 顶部标题
|
|
25
|
-
* */
|
|
26
|
-
title?: string
|
|
27
|
-
/**
|
|
28
|
-
* @description 展示格式 mode=date为日期选择,mode=time为时间选择,mode=year-month为年月选择,mode=datetime为日期时间选择 ( 默认 ‘datetime )
|
|
29
|
-
* */
|
|
30
|
-
mode?: DateModeEnum
|
|
31
|
-
/**
|
|
32
|
-
* @description 可选的最大时间 默认值为后10年
|
|
33
|
-
* */
|
|
34
|
-
maxDate?: number
|
|
35
|
-
/**
|
|
36
|
-
* @description 可选的最小时间 默认值为前10年
|
|
37
|
-
* */
|
|
38
|
-
minDate?: number
|
|
39
|
-
/**
|
|
40
|
-
* @description 可选的最小小时,仅mode=time有效
|
|
41
|
-
* */
|
|
42
|
-
minHour?: number
|
|
43
|
-
/**
|
|
44
|
-
* @description 可选的最大小时,仅mode=time有效
|
|
45
|
-
* */
|
|
46
|
-
maxHour?: number
|
|
47
|
-
/**
|
|
48
|
-
* @description 可选的最小分钟,仅mode=time有效
|
|
49
|
-
* */
|
|
50
|
-
minMinute?: number
|
|
51
|
-
/**
|
|
52
|
-
* @description 可选的最大分钟,仅mode=time有效
|
|
53
|
-
* */
|
|
54
|
-
maxMinute?: number
|
|
55
|
-
/**
|
|
56
|
-
* @description 选项过滤函数
|
|
57
|
-
* */
|
|
58
|
-
filter?: null | ((type: string, values: string[]) => string[])
|
|
59
|
-
/**
|
|
60
|
-
* @description 选项格式化函数
|
|
61
|
-
* */
|
|
62
|
-
formatter?: null | ((type: string, value: string) => string)
|
|
63
|
-
/**
|
|
64
|
-
* @description 是否显示加载中状态 ( 默认 false )
|
|
65
|
-
* */
|
|
66
|
-
loading?: boolean
|
|
67
|
-
/**
|
|
68
|
-
* @description 各列中,单个选项的高度 ( 默认 44 )
|
|
69
|
-
* */
|
|
70
|
-
itemHeight?: number
|
|
71
|
-
/**
|
|
72
|
-
* @description 取消按钮的文字 ( 默认 '取消' )
|
|
73
|
-
* */
|
|
74
|
-
cancelText?: string
|
|
75
|
-
/**
|
|
76
|
-
* @description 确认按钮的文字 ( 默认 '确认' )
|
|
77
|
-
* */
|
|
78
|
-
confirmText?: string
|
|
79
|
-
/**
|
|
80
|
-
* @description 取消按钮的颜色 ( 默认 '#909193' )
|
|
81
|
-
* */
|
|
82
|
-
cancelColor?: string
|
|
83
|
-
/**
|
|
84
|
-
* @description 确认按钮的颜色 ( 默认 '#3c9cff' )
|
|
85
|
-
* */
|
|
86
|
-
confirmColor?: string
|
|
87
|
-
/**
|
|
88
|
-
* @description 每列中可见选项的数量 ( 默认 5 )
|
|
89
|
-
* */
|
|
90
|
-
visibleItemCount?: number
|
|
91
|
-
/**
|
|
92
|
-
* @description 是否允许点击遮罩关闭选择器 ( 默认 false )
|
|
93
|
-
* */
|
|
94
|
-
closeOnClickOverlay?: boolean
|
|
95
|
-
/**
|
|
96
|
-
* @description 各列的默认索引
|
|
97
|
-
* @note 类型有问题,需要调整
|
|
98
|
-
* */
|
|
99
|
-
defaultIndex?: Array<any>
|
|
100
|
-
/**
|
|
101
|
-
* @description 输入框是否显示边框 ( 默认 false )
|
|
102
|
-
* */
|
|
103
|
-
hasInput?: boolean
|
|
104
|
-
/**
|
|
105
|
-
* @description 输入框集合属性
|
|
106
|
-
* */
|
|
107
|
-
input?: Partial<HyInputProps>
|
|
108
|
-
/**
|
|
109
|
-
* @description 自定义时间格式
|
|
110
|
-
* */
|
|
111
|
-
format?: string
|
|
112
|
-
/**
|
|
113
|
-
* @description 右边插槽
|
|
114
|
-
* */
|
|
115
|
-
toolbarRightSlot?: boolean
|
|
116
|
-
/**
|
|
117
|
-
* @description 自定义输入框外部样式
|
|
118
|
-
* */
|
|
119
|
-
customStyle?: CSSProperties
|
|
120
|
-
}
|
|
121
2
|
|
|
122
3
|
type IParam = {
|
|
123
4
|
/** 值 */
|
|
@@ -1,36 +1,17 @@
|
|
|
1
1
|
export interface DropdownMenuItem {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export default interface HyDropdownItemProps {
|
|
13
|
-
/**
|
|
14
|
-
* @description 获取值
|
|
15
|
-
* */
|
|
16
|
-
modelValue: string | number;
|
|
17
|
-
/**
|
|
18
|
-
* @description 标题
|
|
19
|
-
* */
|
|
20
|
-
title: string;
|
|
21
|
-
/**
|
|
22
|
-
* @description 下拉选择值
|
|
23
|
-
* */
|
|
24
|
-
menus?: DropdownMenuItem[];
|
|
25
|
-
/**
|
|
26
|
-
* @description 禁用组件点击
|
|
27
|
-
* */
|
|
28
|
-
disabled?: boolean;
|
|
2
|
+
/**
|
|
3
|
+
* @description 展示标题
|
|
4
|
+
* */
|
|
5
|
+
label: string
|
|
6
|
+
/**
|
|
7
|
+
* @description 值
|
|
8
|
+
* */
|
|
9
|
+
value: string | number
|
|
29
10
|
}
|
|
30
11
|
|
|
31
12
|
export interface IDropdownItemEmits {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
13
|
+
/** 选中值触发 */
|
|
14
|
+
(e: 'change', item: DropdownMenuItem, index: number): void
|
|
15
|
+
/** 值改变触发 */
|
|
16
|
+
(e: 'update:modelValue', item: DropdownMenuItem): void
|
|
36
17
|
}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import type HyButtonProps from '../hy-button/typing'
|
|
3
|
-
|
|
4
|
-
type EmptyModeType =
|
|
1
|
+
export type EmptyModeType =
|
|
5
2
|
| 'car'
|
|
6
3
|
| 'page'
|
|
7
4
|
| 'search'
|
|
@@ -35,61 +32,6 @@ export type IEmptyIcon = {
|
|
|
35
32
|
}
|
|
36
33
|
}
|
|
37
34
|
|
|
38
|
-
export default interface HyEmptyProps {
|
|
39
|
-
/**
|
|
40
|
-
* @description 是否显示空状态
|
|
41
|
-
* */
|
|
42
|
-
show?: boolean
|
|
43
|
-
/**
|
|
44
|
-
* @description 缺省页内容
|
|
45
|
-
* */
|
|
46
|
-
mode?: EmptyModeType
|
|
47
|
-
/**
|
|
48
|
-
* @description 空状态图片
|
|
49
|
-
* */
|
|
50
|
-
imageUrl?: string
|
|
51
|
-
/**
|
|
52
|
-
* @description 组件层级
|
|
53
|
-
* */
|
|
54
|
-
zIndex?: number
|
|
55
|
-
/**
|
|
56
|
-
* @description icon宽度
|
|
57
|
-
* */
|
|
58
|
-
width?: number | string
|
|
59
|
-
/**
|
|
60
|
-
* @description icon高度
|
|
61
|
-
* */
|
|
62
|
-
height?: number | string
|
|
63
|
-
/**
|
|
64
|
-
* @description 提示信息
|
|
65
|
-
* */
|
|
66
|
-
description?: string
|
|
67
|
-
/**
|
|
68
|
-
* @description 提示信息大小
|
|
69
|
-
* */
|
|
70
|
-
desSize?: string | number
|
|
71
|
-
/**
|
|
72
|
-
* @description 提示信息颜色
|
|
73
|
-
* */
|
|
74
|
-
desColor?: string
|
|
75
|
-
/**
|
|
76
|
-
* @description 图片margin
|
|
77
|
-
* */
|
|
78
|
-
imgMargin?: string
|
|
79
|
-
/**
|
|
80
|
-
* @description 按钮属性只
|
|
81
|
-
* */
|
|
82
|
-
button?: HyButtonProps
|
|
83
|
-
/**
|
|
84
|
-
* @description 跳转地址
|
|
85
|
-
* */
|
|
86
|
-
navigateUrl?: string
|
|
87
|
-
/**
|
|
88
|
-
* @description 自定义输入框外部样式
|
|
89
|
-
* */
|
|
90
|
-
customStyle?: CSSProperties
|
|
91
|
-
}
|
|
92
|
-
|
|
93
35
|
export interface IEmptyEmits {
|
|
94
36
|
/** 点击按钮触发 */
|
|
95
37
|
(e: 'click'): void
|