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,5 +1,3 @@
|
|
|
1
|
-
import type { CSSProperties } from 'vue'
|
|
2
|
-
import type HyIconProps from '../hy-icon/typing'
|
|
3
1
|
import type {
|
|
4
2
|
InputOnBlurEvent,
|
|
5
3
|
InputOnConfirmEvent,
|
|
@@ -7,153 +5,6 @@ import type {
|
|
|
7
5
|
InputOnKeyboardheightchange
|
|
8
6
|
} from '@uni-helper/uni-types'
|
|
9
7
|
|
|
10
|
-
export default interface HyInputProps {
|
|
11
|
-
/**
|
|
12
|
-
* @description 输入的值
|
|
13
|
-
* */
|
|
14
|
-
modelValue: string | number
|
|
15
|
-
/**
|
|
16
|
-
* @description 输入框类型,见上方说明 ( 默认 'text' )
|
|
17
|
-
* */
|
|
18
|
-
type?: HyApp.InputType
|
|
19
|
-
/**
|
|
20
|
-
* @description 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序 ( 默认 false )
|
|
21
|
-
* */
|
|
22
|
-
fixed?: boolean
|
|
23
|
-
/**
|
|
24
|
-
* @description 是否禁用输入框 ( 默认 false )
|
|
25
|
-
* */
|
|
26
|
-
disabled?: boolean
|
|
27
|
-
/**
|
|
28
|
-
* @description 禁用状态时的背景色( 默认 '#f5f7fa' )
|
|
29
|
-
* */
|
|
30
|
-
disabledColor?: string
|
|
31
|
-
/**
|
|
32
|
-
* @description 是否显示清除控件 ( 默认 false )
|
|
33
|
-
* */
|
|
34
|
-
clearable?: boolean
|
|
35
|
-
/**
|
|
36
|
-
* @description 是否密码类型 ( 默认 false )
|
|
37
|
-
* */
|
|
38
|
-
password?: boolean
|
|
39
|
-
/**
|
|
40
|
-
* @description 最大输入长度,设置为 -1 的时候不限制最大长度 ( 默认 -1 )
|
|
41
|
-
* */
|
|
42
|
-
maxlength?: number
|
|
43
|
-
/**
|
|
44
|
-
* @description 输入框为空时的占位符
|
|
45
|
-
* */
|
|
46
|
-
placeholder?: string | null
|
|
47
|
-
/**
|
|
48
|
-
* @description 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/ ( 默认 'input-placeholder' )
|
|
49
|
-
* */
|
|
50
|
-
placeholderClass?: string
|
|
51
|
-
/**
|
|
52
|
-
* @description 指定placeholder的样式,字符串/对象形式,如"color: red;"
|
|
53
|
-
* */
|
|
54
|
-
placeholderStyle?: CSSProperties
|
|
55
|
-
/**
|
|
56
|
-
* @description 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效 ( 默认 false )
|
|
57
|
-
* */
|
|
58
|
-
showWordLimit?: boolean
|
|
59
|
-
/**
|
|
60
|
-
* @description 设置右下角按钮的文字,兼容性详见uni-app文档 ( 默认 'done' )
|
|
61
|
-
* */
|
|
62
|
-
confirmType?: string
|
|
63
|
-
/**
|
|
64
|
-
* @description 点击键盘右下角按钮时是否保持键盘不收起,H5无效 ( 默认 false )
|
|
65
|
-
* */
|
|
66
|
-
confirmHold?: boolean
|
|
67
|
-
/**
|
|
68
|
-
* @description focus时,点击页面的时候不收起键盘,微信小程序有效 ( 默认 false )
|
|
69
|
-
* */
|
|
70
|
-
holdKeyboard?: boolean
|
|
71
|
-
/**
|
|
72
|
-
* @description 自动获取焦点,在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点 ( 默认 false )
|
|
73
|
-
* */
|
|
74
|
-
focus?: boolean
|
|
75
|
-
/**
|
|
76
|
-
* @description 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效 ( 默认 false )
|
|
77
|
-
* */
|
|
78
|
-
autoBlur?: boolean
|
|
79
|
-
/**
|
|
80
|
-
* @description 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效 ( 默认 false )
|
|
81
|
-
* */
|
|
82
|
-
disableDefaultPadding?: boolean
|
|
83
|
-
/**
|
|
84
|
-
* @description 指定focus时光标的位置( 默认 140 )
|
|
85
|
-
* */
|
|
86
|
-
cursor?: number
|
|
87
|
-
/**
|
|
88
|
-
* @description 输入框聚焦时底部与键盘的距离 ( 默认 30 )
|
|
89
|
-
* */
|
|
90
|
-
cursorSpacing?: number
|
|
91
|
-
/**
|
|
92
|
-
* @description 光标起始位置,自动聚集时有效,需与selection-end搭配使用 ( 默认 -1 )
|
|
93
|
-
* */
|
|
94
|
-
selectionStart?: number
|
|
95
|
-
/**
|
|
96
|
-
* @description 光标结束位置,自动聚集时有效,需与selection-start搭配使用 ( 默认 -1 )
|
|
97
|
-
* */
|
|
98
|
-
selectionEnd?: number
|
|
99
|
-
/**
|
|
100
|
-
* @description 键盘弹起时,是否自动上推页面 ( 默认 true )
|
|
101
|
-
* */
|
|
102
|
-
adjustPosition?: boolean
|
|
103
|
-
/**
|
|
104
|
-
* @description 输入框内容对齐方式( 默认 'left' )
|
|
105
|
-
* */
|
|
106
|
-
inputAlign?: HyApp.RowCenterType
|
|
107
|
-
/**
|
|
108
|
-
* @description 输入框字体的大小 ( 默认 '15px' )
|
|
109
|
-
* */
|
|
110
|
-
fontSize?: string | number
|
|
111
|
-
/**
|
|
112
|
-
* @description 输入框字体颜色 ( 默认 '#303133' )
|
|
113
|
-
* */
|
|
114
|
-
color?: string
|
|
115
|
-
/**
|
|
116
|
-
* @description 输入框前置图标
|
|
117
|
-
* */
|
|
118
|
-
prefixIcon?: Partial<HyIconProps>
|
|
119
|
-
/**
|
|
120
|
-
* @description 输入框后置图标
|
|
121
|
-
* */
|
|
122
|
-
suffixIcon?: Partial<HyIconProps>
|
|
123
|
-
/**
|
|
124
|
-
* @description 边框类型,surround-四周边框,bottom-底部边框,none-无边框 ( 默认 'surround' )
|
|
125
|
-
* */
|
|
126
|
-
border?: HyApp.BorderType
|
|
127
|
-
/**
|
|
128
|
-
* @description 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会 ( 默认 false )
|
|
129
|
-
* */
|
|
130
|
-
readonly?: boolean
|
|
131
|
-
/**
|
|
132
|
-
* @description 输入框形状,circle-圆形,square-方形 ( 默认 'square' )
|
|
133
|
-
* */
|
|
134
|
-
shape?: HyApp.ShapeType
|
|
135
|
-
/**
|
|
136
|
-
* @description 内容式化函数
|
|
137
|
-
* */
|
|
138
|
-
formatter?: Function | null
|
|
139
|
-
/**
|
|
140
|
-
* @description 定义需要用到的外部样式
|
|
141
|
-
* */
|
|
142
|
-
customStyle?: CSSProperties
|
|
143
|
-
/**
|
|
144
|
-
* @description 值变化事件
|
|
145
|
-
* */
|
|
146
|
-
onChange?: Function
|
|
147
|
-
/**
|
|
148
|
-
* @description 失去焦点事件
|
|
149
|
-
* */
|
|
150
|
-
onBlur?: Function
|
|
151
|
-
/**
|
|
152
|
-
* @description 是否忽略组件内对文本合成系统事件的处理。
|
|
153
|
-
* */
|
|
154
|
-
ignoreCompositionEvent?: boolean
|
|
155
|
-
}
|
|
156
|
-
|
|
157
8
|
export interface IInputEmits {
|
|
158
9
|
/** 输入框失去焦点时触发 */
|
|
159
10
|
(e: 'blur', event: InputOnBlurEvent, value: string | number): void
|
|
@@ -1,54 +1,3 @@
|
|
|
1
|
-
export default interface HyListProps {
|
|
2
|
-
/**
|
|
3
|
-
* @description 数据列表
|
|
4
|
-
* */
|
|
5
|
-
list: (AnyObject | string)[]
|
|
6
|
-
/**
|
|
7
|
-
* @description 容器高度,必须给个高度,否则加载全部数据
|
|
8
|
-
* */
|
|
9
|
-
containerHeight: string
|
|
10
|
-
/**
|
|
11
|
-
* @description 子容器的高度,必须和内容一致,否则计算有问题
|
|
12
|
-
* */
|
|
13
|
-
itemHeight?: number | string
|
|
14
|
-
/**
|
|
15
|
-
* @description 子容器的内边距
|
|
16
|
-
* */
|
|
17
|
-
padding?: number | string
|
|
18
|
-
/**
|
|
19
|
-
* @description 子容器的底部,会计算到容器内
|
|
20
|
-
* */
|
|
21
|
-
marginBottom?: number | string
|
|
22
|
-
/**
|
|
23
|
-
* @description 子容器的圆角,单位px
|
|
24
|
-
* */
|
|
25
|
-
borderRadius?: number | string
|
|
26
|
-
/**
|
|
27
|
-
* @description 容器背景色
|
|
28
|
-
* */
|
|
29
|
-
background?: string
|
|
30
|
-
/**
|
|
31
|
-
* @description 是否显示边框(默认false)
|
|
32
|
-
* */
|
|
33
|
-
border?: boolean
|
|
34
|
-
/**
|
|
35
|
-
* @description 展示几列
|
|
36
|
-
* */
|
|
37
|
-
line?: number
|
|
38
|
-
/**
|
|
39
|
-
* @description 加载状态
|
|
40
|
-
* */
|
|
41
|
-
load?: 'loadMore' | 'loading' | 'noMore'
|
|
42
|
-
/**
|
|
43
|
-
* @description 每一项的唯一标识key
|
|
44
|
-
* */
|
|
45
|
-
keyField?: string
|
|
46
|
-
/**
|
|
47
|
-
* @description 显示底部加载状态
|
|
48
|
-
* */
|
|
49
|
-
showDivider?: boolean
|
|
50
|
-
}
|
|
51
|
-
|
|
52
1
|
export interface IListEmits {
|
|
53
2
|
/** 点击行触发 */
|
|
54
3
|
(e: 'click', temp: string | AnyObject): void
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import type { CSSProperties } from 'vue'
|
|
2
|
-
import type HyBadgeProps from '../hy-badge/typing'
|
|
3
|
-
import type HyIconProps from '../hy-icon/typing'
|
|
4
|
-
|
|
5
1
|
export type ModelValueVo = string | number
|
|
6
2
|
export interface MenusType {
|
|
7
3
|
/**
|
|
@@ -30,37 +26,6 @@ export interface MenusType {
|
|
|
30
26
|
[key: string]: string | number
|
|
31
27
|
}
|
|
32
28
|
|
|
33
|
-
export default interface HyMenuProps {
|
|
34
|
-
/**
|
|
35
|
-
* 当前值
|
|
36
|
-
* */
|
|
37
|
-
modelValue: string | number
|
|
38
|
-
/**
|
|
39
|
-
* 菜单数据集
|
|
40
|
-
* */
|
|
41
|
-
list: MenusType[]
|
|
42
|
-
/**
|
|
43
|
-
* 侧边菜单栏宽度
|
|
44
|
-
* */
|
|
45
|
-
width?: string | number
|
|
46
|
-
/**
|
|
47
|
-
* 选中颜色
|
|
48
|
-
* */
|
|
49
|
-
color?: string
|
|
50
|
-
/**
|
|
51
|
-
* 图标属性值
|
|
52
|
-
* */
|
|
53
|
-
icon?: Partial<HyIconProps>
|
|
54
|
-
/**
|
|
55
|
-
* 徽标属性值
|
|
56
|
-
* */
|
|
57
|
-
badge?: Partial<HyBadgeProps>
|
|
58
|
-
/**
|
|
59
|
-
* 定义需要用到的外部样式
|
|
60
|
-
* */
|
|
61
|
-
customStyle?: CSSProperties
|
|
62
|
-
}
|
|
63
|
-
|
|
64
29
|
export interface IMenuEmits {
|
|
65
30
|
/** 选中触发 */
|
|
66
31
|
(e: 'change', temp: MenusType): void
|
|
@@ -1,86 +1,11 @@
|
|
|
1
|
-
export default interface HyModalProps {
|
|
2
|
-
/**
|
|
3
|
-
* @description 是否显示模态框,请赋值给show (默认 false )
|
|
4
|
-
* */
|
|
5
|
-
modelValue: boolean;
|
|
6
|
-
/**
|
|
7
|
-
* @description 标题内容
|
|
8
|
-
* */
|
|
9
|
-
title?: string;
|
|
10
|
-
/**
|
|
11
|
-
* @description 模态框内容,如传入slot内容,则此参数无效
|
|
12
|
-
* */
|
|
13
|
-
content?: string;
|
|
14
|
-
/**
|
|
15
|
-
* @description 确认按钮的文字 (默认 '确认' )
|
|
16
|
-
* */
|
|
17
|
-
confirmText?: string;
|
|
18
|
-
/**
|
|
19
|
-
* @description 取消按钮的文字 (默认 '取消' )
|
|
20
|
-
* */
|
|
21
|
-
cancelText?: string;
|
|
22
|
-
/**
|
|
23
|
-
* @description 是否显示确认按钮 (默认 true )
|
|
24
|
-
* */
|
|
25
|
-
showConfirmButton?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* @description 是否显示取消按钮 (默认 false )
|
|
28
|
-
* */
|
|
29
|
-
showCancelButton?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* @description 确认按钮的颜色 (默认 '#2979ff' )
|
|
32
|
-
* */
|
|
33
|
-
confirmColor?: string;
|
|
34
|
-
/**
|
|
35
|
-
* @description 取消按钮的颜色 (默认 '#606266' )
|
|
36
|
-
* */
|
|
37
|
-
cancelColor?: string;
|
|
38
|
-
/**
|
|
39
|
-
* @description 对调确认和取消的位置 (默认 false )
|
|
40
|
-
* */
|
|
41
|
-
buttonReverse?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* @description 是否开启缩放模式 (默认 true )
|
|
44
|
-
* */
|
|
45
|
-
zoom?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* @description 弹窗的圆角 (默认 16 )
|
|
48
|
-
* */
|
|
49
|
-
round?: string | number;
|
|
50
|
-
/**
|
|
51
|
-
* @description 是否异步关闭,只对确定按钮有效,见上方说明 (默认 false )
|
|
52
|
-
* */
|
|
53
|
-
asyncClose?: boolean;
|
|
54
|
-
/**
|
|
55
|
-
* @description 是否允许点击遮罩关闭Modal (默认 false )
|
|
56
|
-
* */
|
|
57
|
-
closeOnClickOverlay?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* @description 往上偏移的值,给一个负的margin-top,往上偏移,避免和键盘重合的情况,单位任意,数值则默认为px单位 (默认 0 )
|
|
60
|
-
* */
|
|
61
|
-
negativeTop?: number;
|
|
62
|
-
/**
|
|
63
|
-
* @description modal宽度,不支持百分比,可以数值,px,rpx单位 (默认 '650rpx' )
|
|
64
|
-
* */
|
|
65
|
-
width?: string | number;
|
|
66
|
-
/**
|
|
67
|
-
* @description 确认按钮的样式,如设置,将不会显示取消按钮
|
|
68
|
-
* */
|
|
69
|
-
confirmButtonShape?: HyApp.ShapeType | "";
|
|
70
|
-
/**
|
|
71
|
-
* @description 文案对齐方式
|
|
72
|
-
* */
|
|
73
|
-
contentTextAlign?: HyApp.RowCenterType;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
1
|
export interface IModalEmits {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
2
|
+
/** 点击确认按钮时触发 */
|
|
3
|
+
(e: 'confirm'): void
|
|
4
|
+
/** 点击取消按钮时触发 */
|
|
5
|
+
(e: 'cancel'): void
|
|
6
|
+
/** 点击遮罩关闭时触发 */
|
|
7
|
+
(e: 'close'): void
|
|
8
|
+
/** 更新值触发 */
|
|
9
|
+
(e: 'update:modelValue', show: boolean): void
|
|
10
|
+
(e: 'update:loading', show: boolean): void
|
|
86
11
|
}
|
|
@@ -1,84 +1,3 @@
|
|
|
1
|
-
import type { CSSProperties } from 'vue'
|
|
2
|
-
|
|
3
|
-
export default interface HyNavbarProps {
|
|
4
|
-
/**
|
|
5
|
-
* @description 是否开启顶部安全区适配 (默认 true )
|
|
6
|
-
* */
|
|
7
|
-
safeAreaInsetTop?: boolean
|
|
8
|
-
/**
|
|
9
|
-
* @description 固定在顶部时,是否生成一个等高元素,以防止塌陷 (默认 false )
|
|
10
|
-
* */
|
|
11
|
-
placeholder?: boolean
|
|
12
|
-
/**
|
|
13
|
-
* @description 导航栏是否固定在顶部 (默认 true )
|
|
14
|
-
* */
|
|
15
|
-
fixed?: boolean
|
|
16
|
-
/**
|
|
17
|
-
* @description 导航栏底部是否显示下边框 (默认 false )
|
|
18
|
-
* */
|
|
19
|
-
border?: boolean
|
|
20
|
-
/**
|
|
21
|
-
* @description 左边返回图标的名称,只能为uview-pls自带的图标 (默认 'left' )
|
|
22
|
-
* */
|
|
23
|
-
leftIcon?: string
|
|
24
|
-
/**
|
|
25
|
-
* @description 左边的提示文字
|
|
26
|
-
* */
|
|
27
|
-
leftText?: string
|
|
28
|
-
/**
|
|
29
|
-
* @description 右边的提示文字
|
|
30
|
-
* */
|
|
31
|
-
rightText?: string
|
|
32
|
-
/**
|
|
33
|
-
* @description 右边返回图标的名称,只能为uview-plus自带的图标
|
|
34
|
-
* */
|
|
35
|
-
rightIcon?: string
|
|
36
|
-
/**
|
|
37
|
-
* @description 导航栏标题,如设置为空字符,将会隐藏标题占位区域
|
|
38
|
-
* */
|
|
39
|
-
title?: string
|
|
40
|
-
/**
|
|
41
|
-
* @description 导航栏副标题
|
|
42
|
-
* */
|
|
43
|
-
sub?: string
|
|
44
|
-
/**
|
|
45
|
-
* @description 文字颜色 (默认 '' )
|
|
46
|
-
* */
|
|
47
|
-
titleColor?: string
|
|
48
|
-
/**
|
|
49
|
-
* @description 导航栏背景设置 (默认 '#ffffff' )
|
|
50
|
-
* */
|
|
51
|
-
bgColor?: string
|
|
52
|
-
/**
|
|
53
|
-
* @description 导航栏标题的最大宽度,内容超出会以省略号隐藏 (默认 '400rpx' )
|
|
54
|
-
* */
|
|
55
|
-
titleWidth?: string | number
|
|
56
|
-
/**
|
|
57
|
-
* @description 导航栏高度(不包括状态栏高度在内,内部自动加上)(默认 '44px' )
|
|
58
|
-
* */
|
|
59
|
-
height?: string | number
|
|
60
|
-
/**
|
|
61
|
-
* @description 左侧返回图标的大小(默认 20px )
|
|
62
|
-
* */
|
|
63
|
-
leftIconSize?: string | number
|
|
64
|
-
/**
|
|
65
|
-
* @description 左侧返回图标的颜色(默认 #303133 )
|
|
66
|
-
* */
|
|
67
|
-
leftIconColor?: string
|
|
68
|
-
/**
|
|
69
|
-
* @description 点击左侧区域(返回图标),是否自动返回上一页(默认 false )
|
|
70
|
-
* */
|
|
71
|
-
autoBack?: boolean
|
|
72
|
-
/**
|
|
73
|
-
* @description 标题的样式,对象或字符串
|
|
74
|
-
* */
|
|
75
|
-
titleStyle?: CSSProperties
|
|
76
|
-
/**
|
|
77
|
-
* @description 定义需要用到的外部样式
|
|
78
|
-
* */
|
|
79
|
-
customStyle?: CSSProperties
|
|
80
|
-
}
|
|
81
|
-
|
|
82
1
|
export interface INavbarEmits {
|
|
83
2
|
/** 点击导航栏左边 */
|
|
84
3
|
(e: 'leftClick'): void
|
|
@@ -1,71 +1,8 @@
|
|
|
1
|
-
import type { CSSProperties } from 'vue'
|
|
2
|
-
|
|
3
1
|
export type NoticeBarModeVo = 'closable' | 'link' | ''
|
|
4
2
|
|
|
5
|
-
export default interface HyNoticeBarProps {
|
|
6
|
-
/**
|
|
7
|
-
* @description 显示的内容,数组
|
|
8
|
-
* */
|
|
9
|
-
text: string[] | string
|
|
10
|
-
/**
|
|
11
|
-
* @description 通告滚动模式,row-横向滚动,column-竖向滚动 ( 默认 'row' )
|
|
12
|
-
* */
|
|
13
|
-
direction?: HyApp.DirectionType
|
|
14
|
-
/**
|
|
15
|
-
* @description direction = row时,是否使用步进形式滚动 ( 默认 false )
|
|
16
|
-
* */
|
|
17
|
-
step?: boolean
|
|
18
|
-
/**
|
|
19
|
-
* @description 是否显示左侧的音量图标 ( 默认 'volume' )
|
|
20
|
-
* */
|
|
21
|
-
icon?: string | HyIconConfig
|
|
22
|
-
/**
|
|
23
|
-
* @description 通告模式,link-显示右箭头,closable-显示右侧关闭图标
|
|
24
|
-
* */
|
|
25
|
-
mode?: NoticeBarModeVo
|
|
26
|
-
/**
|
|
27
|
-
* @description 文字颜色,各图标也会使用文字颜色 ( 默认 '#f9ae3d' )
|
|
28
|
-
* */
|
|
29
|
-
color?: string
|
|
30
|
-
/**
|
|
31
|
-
* @description 背景颜色 ( 默认 '#fdf6ec' )
|
|
32
|
-
* */
|
|
33
|
-
bgColor?: string
|
|
34
|
-
/**
|
|
35
|
-
* @description 水平滚动时的滚动速度,即每秒滚动多少px(px),这有利于控制文字无论多少时,都能有一个恒定的速度 ( 默认 80 )
|
|
36
|
-
* */
|
|
37
|
-
speed?: number
|
|
38
|
-
/**
|
|
39
|
-
* @description 字体大小 ( 默认 14 )
|
|
40
|
-
* */
|
|
41
|
-
fontSize?: number | string
|
|
42
|
-
/**
|
|
43
|
-
* @description 滚动一个周期的时间长,单位ms ( 默认 2000 )
|
|
44
|
-
* */
|
|
45
|
-
duration?: number
|
|
46
|
-
/**
|
|
47
|
-
* @description 是否禁止用手滑动切换 目前HX2.6.11,只支持App 2.5.5+、H5 2.5.5+、支付宝小程序、字节跳动小程序(默认34) ( 默认 true )
|
|
48
|
-
* */
|
|
49
|
-
disableTouch?: boolean
|
|
50
|
-
/**
|
|
51
|
-
* @description 分布
|
|
52
|
-
* */
|
|
53
|
-
justifyContent?: HyApp.JustifyContentType
|
|
54
|
-
/**
|
|
55
|
-
* @description 跳转类型
|
|
56
|
-
* */
|
|
57
|
-
linkType?: HyApp.NavigationType
|
|
58
|
-
/**
|
|
59
|
-
* @description 跳转地址
|
|
60
|
-
* */
|
|
61
|
-
url?: string
|
|
62
|
-
/**
|
|
63
|
-
* @description 定义需要用到的外部样式
|
|
64
|
-
* */
|
|
65
|
-
customStyle?: CSSProperties
|
|
66
|
-
}
|
|
67
|
-
|
|
68
3
|
export interface INoticeBarEmits {
|
|
4
|
+
/** 点击执行函数 */
|
|
69
5
|
(e: 'click', index: number): void
|
|
6
|
+
/** 关闭组件执行函数 */
|
|
70
7
|
(e: 'close'): void
|
|
71
8
|
}
|
|
@@ -1,113 +1,3 @@
|
|
|
1
|
-
import type { CSSProperties } from 'vue'
|
|
2
|
-
import type HyIconProps from '../hy-icon/typing'
|
|
3
|
-
|
|
4
|
-
export default interface HyNumberStepProps {
|
|
5
|
-
/**
|
|
6
|
-
* @description 用于双向绑定的值,初始化时设置设为默认min值(最小值) (默认 0 )
|
|
7
|
-
* */
|
|
8
|
-
modelValue: number
|
|
9
|
-
/**
|
|
10
|
-
* @description 最小值 (默认 1 )
|
|
11
|
-
* */
|
|
12
|
-
min?: number
|
|
13
|
-
/**
|
|
14
|
-
* @description 最大值 (默认 Number.MAX_SAFE_INTEGER )
|
|
15
|
-
* */
|
|
16
|
-
max?: number
|
|
17
|
-
/**
|
|
18
|
-
* @description 加减的步长,可为小数 (默认 1 )
|
|
19
|
-
* */
|
|
20
|
-
step?: number
|
|
21
|
-
/**
|
|
22
|
-
* @description 是否只允许输入整数 (默认 false )
|
|
23
|
-
* */
|
|
24
|
-
integer?: boolean
|
|
25
|
-
/**
|
|
26
|
-
* @description 是否禁用,包括输入框,加减按钮 (默认 false )
|
|
27
|
-
* */
|
|
28
|
-
disabled?: boolean
|
|
29
|
-
/**
|
|
30
|
-
* @description 是否禁用输入框 (默认 false )
|
|
31
|
-
* */
|
|
32
|
-
disabledInput?: boolean
|
|
33
|
-
/**
|
|
34
|
-
* @description 是否开启异步变更,开启后需要手动控制输入值 (默认 false )
|
|
35
|
-
* */
|
|
36
|
-
asyncChange?: boolean
|
|
37
|
-
/**
|
|
38
|
-
* @description 输入框宽度,单位为px (默认 35 )
|
|
39
|
-
* */
|
|
40
|
-
inputWidth?: number
|
|
41
|
-
/**
|
|
42
|
-
* @description 是否显示减少按钮 (默认 true )
|
|
43
|
-
* */
|
|
44
|
-
showMinus?: boolean
|
|
45
|
-
/**
|
|
46
|
-
* @description 是否显示增加按钮 (默认 true )
|
|
47
|
-
* */
|
|
48
|
-
showPlus?: boolean
|
|
49
|
-
/**
|
|
50
|
-
* @description 显示的小数位数
|
|
51
|
-
* */
|
|
52
|
-
decimalLength?: number | null
|
|
53
|
-
/**
|
|
54
|
-
* @description 是否开启长按加减手势 (默认 true )
|
|
55
|
-
* */
|
|
56
|
-
longPress?: boolean
|
|
57
|
-
/**
|
|
58
|
-
* @description 输入框文字和加减按钮图标的颜色 (默认 '#323233' )
|
|
59
|
-
* */
|
|
60
|
-
color?: string
|
|
61
|
-
/**
|
|
62
|
-
* @description 按钮宽度(默认 '30' )
|
|
63
|
-
* */
|
|
64
|
-
buttonWidth?: number | string
|
|
65
|
-
/**
|
|
66
|
-
* @description 按钮大小,宽高等于此值,单位px,输入框高度和此值保持一致 (默认 30 )
|
|
67
|
-
* */
|
|
68
|
-
buttonSize?: number | string
|
|
69
|
-
/**
|
|
70
|
-
* @description 按钮圆角 (默认 '0px' )
|
|
71
|
-
* */
|
|
72
|
-
buttonRadius?: number | string
|
|
73
|
-
/**
|
|
74
|
-
* @description 输入框和按钮的背景颜色 (默认 '#EBECEE' )
|
|
75
|
-
* */
|
|
76
|
-
bgColor?: string
|
|
77
|
-
/**
|
|
78
|
-
* @description 输入框背景颜色 (默认 '#EBECEE' )
|
|
79
|
-
* */
|
|
80
|
-
inputBgColor?: string
|
|
81
|
-
/**
|
|
82
|
-
* @description 指定光标于键盘的距离,避免键盘遮挡输入框,单位px (默认 100 )
|
|
83
|
-
* */
|
|
84
|
-
cursorSpacing?: number
|
|
85
|
-
/**
|
|
86
|
-
* @description 是否禁用减少按钮 (默认 false )
|
|
87
|
-
* */
|
|
88
|
-
disableMinus?: boolean
|
|
89
|
-
/**
|
|
90
|
-
* @description 是否禁用增加按钮 (默认 false )
|
|
91
|
-
* */
|
|
92
|
-
disablePlus?: boolean
|
|
93
|
-
/**
|
|
94
|
-
* @description 减号按钮图标
|
|
95
|
-
* */
|
|
96
|
-
minusIcon?: Partial<HyIconProps>
|
|
97
|
-
/**
|
|
98
|
-
* @description 加号按钮图标
|
|
99
|
-
* */
|
|
100
|
-
plusIcon?: Partial<HyIconProps>
|
|
101
|
-
/**
|
|
102
|
-
* @description 迷你模式(默认 false )
|
|
103
|
-
* */
|
|
104
|
-
miniMode?: boolean
|
|
105
|
-
/**
|
|
106
|
-
* @description 定义需要用到的外部样式
|
|
107
|
-
* */
|
|
108
|
-
customStyle?: CSSProperties
|
|
109
|
-
}
|
|
110
|
-
|
|
111
1
|
export interface INumberStepEmits {
|
|
112
2
|
/** 输入框得到焦点触发 */
|
|
113
3
|
(e: 'focus', value: string): void
|
|
@@ -1,29 +1,4 @@
|
|
|
1
|
-
import type { CSSProperties } from 'vue'
|
|
2
|
-
|
|
3
|
-
export default interface HyOverlayProps {
|
|
4
|
-
/**
|
|
5
|
-
* @description 是否显示遮罩(默认 false )
|
|
6
|
-
* */
|
|
7
|
-
show: boolean
|
|
8
|
-
/**
|
|
9
|
-
* @description zIndex 层级(默认 10070 )
|
|
10
|
-
* */
|
|
11
|
-
zIndex?: number
|
|
12
|
-
/**
|
|
13
|
-
* @description 动画时长,单位毫秒(默认 300 )
|
|
14
|
-
* */
|
|
15
|
-
duration?: number
|
|
16
|
-
/**
|
|
17
|
-
* @description 不透明度值,当做rgba的第四个参数 (默认 0.5 )
|
|
18
|
-
* */
|
|
19
|
-
opacity?: number
|
|
20
|
-
/**
|
|
21
|
-
* @description 定义需要用到的外部样式
|
|
22
|
-
* */
|
|
23
|
-
customStyle?: CSSProperties
|
|
24
|
-
}
|
|
25
|
-
|
|
26
1
|
export interface IOverlayEmits {
|
|
27
|
-
|
|
28
|
-
|
|
2
|
+
/** 点击遮罩框触发 */
|
|
3
|
+
(e: 'click'): void
|
|
29
4
|
}
|