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,100 +1,33 @@
|
|
|
1
|
-
import type { CSSProperties } from 'vue'
|
|
2
1
|
import BadgeProps from '../hy-badge/typing'
|
|
3
2
|
export interface TabsItemVo extends AnyObject {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
export default interface HyTabsProps {
|
|
22
|
-
/**
|
|
23
|
-
* @description 标签数组,元素为对象,如[{name: '推荐'}]
|
|
24
|
-
* */
|
|
25
|
-
list: TabsItemVo[]
|
|
26
|
-
/**
|
|
27
|
-
* @description 当前选中标签的索引
|
|
28
|
-
* */
|
|
29
|
-
current?: number
|
|
30
|
-
/**
|
|
31
|
-
* @description 从list元素对象中读取的键名
|
|
32
|
-
* */
|
|
33
|
-
keyName?: string
|
|
34
|
-
/**
|
|
35
|
-
* @description 滑块移动一次所需的时间,单位秒(默认 200 )
|
|
36
|
-
* */
|
|
37
|
-
duration?: number
|
|
38
|
-
/**
|
|
39
|
-
* @description 滑块颜色
|
|
40
|
-
* */
|
|
41
|
-
lineColor?: string
|
|
42
|
-
/**
|
|
43
|
-
* @description 菜单选择中时的样式
|
|
44
|
-
* */
|
|
45
|
-
activeStyle?: CSSProperties
|
|
46
|
-
/**
|
|
47
|
-
* @description 菜单非选中时的样式
|
|
48
|
-
* */
|
|
49
|
-
inactiveStyle?: CSSProperties
|
|
50
|
-
/**
|
|
51
|
-
* @description 滑块长度(默认20)
|
|
52
|
-
* */
|
|
53
|
-
lineWidth?: number | string
|
|
54
|
-
/**
|
|
55
|
-
* @description 滑块高度(默认3)
|
|
56
|
-
* */
|
|
57
|
-
lineHeight?: number | string
|
|
58
|
-
/**
|
|
59
|
-
* @description 滑块背景显示大小,当滑块背景设置为图片时使用
|
|
60
|
-
* */
|
|
61
|
-
lineBgSize?: number | string
|
|
62
|
-
/**
|
|
63
|
-
* @description 菜单item的样式
|
|
64
|
-
* */
|
|
65
|
-
itemStyle?: CSSProperties
|
|
66
|
-
/**
|
|
67
|
-
* @description 菜单是否可滚动
|
|
68
|
-
* */
|
|
69
|
-
scrollable?: boolean
|
|
70
|
-
/**
|
|
71
|
-
* @description 徽标props全局定义
|
|
72
|
-
* */
|
|
73
|
-
propsBadge?: BadgeProps
|
|
74
|
-
/**
|
|
75
|
-
* @description 轮播图高度
|
|
76
|
-
* */
|
|
77
|
-
swiperHeight?: string | number
|
|
78
|
-
/**
|
|
79
|
-
* @description 标签左侧图标样式自定义
|
|
80
|
-
* */
|
|
81
|
-
iconStyle?: CSSProperties
|
|
82
|
-
/**
|
|
83
|
-
* @description 定义需要用到的外部样式
|
|
84
|
-
* */
|
|
85
|
-
customStyle?: CSSProperties
|
|
3
|
+
/**
|
|
4
|
+
* @description tab名称
|
|
5
|
+
* */
|
|
6
|
+
name: string
|
|
7
|
+
/**
|
|
8
|
+
* @description 徽标接收的props
|
|
9
|
+
* */
|
|
10
|
+
badge?: BadgeProps
|
|
11
|
+
/**
|
|
12
|
+
* @description 是否禁用
|
|
13
|
+
* */
|
|
14
|
+
disabled?: boolean
|
|
15
|
+
/**
|
|
16
|
+
* @description swiper内容值
|
|
17
|
+
* */
|
|
18
|
+
content?: any
|
|
86
19
|
}
|
|
87
20
|
|
|
88
21
|
export interface TabsParamsVo extends TabsParamsVo {
|
|
89
|
-
|
|
22
|
+
index: number
|
|
90
23
|
}
|
|
91
24
|
export interface ITabsEmits {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
25
|
+
/** 点击标签时触发 */
|
|
26
|
+
(e: 'click', params: TabsParamsVo): void
|
|
27
|
+
/** 标签索引改变时触发 */
|
|
28
|
+
(e: 'change', item: TabsItemVo, index: number): void
|
|
29
|
+
/** 长按标签时触发 */
|
|
30
|
+
(e: 'longPress', params: TabsParamsVo): void
|
|
31
|
+
/** 标签索引改变时触发 */
|
|
32
|
+
(e: 'update:current', index: number): void
|
|
100
33
|
}
|
|
@@ -3,9 +3,15 @@ import type HyIconProps from './typing'
|
|
|
3
3
|
|
|
4
4
|
const tagProps = {
|
|
5
5
|
/** 标签的文字内容 */
|
|
6
|
-
text:
|
|
6
|
+
text: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: ''
|
|
9
|
+
},
|
|
7
10
|
/** 点击需要传得值 */
|
|
8
|
-
name:
|
|
11
|
+
name: {
|
|
12
|
+
type: [String, Number],
|
|
13
|
+
default: ''
|
|
14
|
+
},
|
|
9
15
|
/**
|
|
10
16
|
* 标签类型
|
|
11
17
|
* @values info,primary,success,error,warning
|
|
@@ -1,82 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
* @description 标签的文字内容
|
|
7
|
-
* */
|
|
8
|
-
text: string | number;
|
|
9
|
-
/**
|
|
10
|
-
* @description 点击需要传得值
|
|
11
|
-
* */
|
|
12
|
-
name?: string | number;
|
|
13
|
-
/**
|
|
14
|
-
* @description 标签类型info、primary、success、warning、error (默认 'primary' )
|
|
15
|
-
* */
|
|
16
|
-
type?: HyApp.ThemeType;
|
|
17
|
-
/**
|
|
18
|
-
* @description 禁用(默认 false )
|
|
19
|
-
* */
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* @description 标签的大小,large,medium,small (默认 'medium' )
|
|
23
|
-
* */
|
|
24
|
-
size?: HyApp.SizeType;
|
|
25
|
-
/**
|
|
26
|
-
* @description tag的形状,circle(两边半圆形), square(方形,带圆角)(默认 'square' )
|
|
27
|
-
* */
|
|
28
|
-
shape?: HyApp.ShapeType;
|
|
29
|
-
/**
|
|
30
|
-
* @description 背景颜色,默认为空字符串,即不处理
|
|
31
|
-
* */
|
|
32
|
-
bgColor?: string;
|
|
33
|
-
/**
|
|
34
|
-
* @description 标签字体颜色,默认为空字符串,即不处理
|
|
35
|
-
* */
|
|
36
|
-
color?: string;
|
|
37
|
-
/**
|
|
38
|
-
* @description 镂空形式标签的边框颜色
|
|
39
|
-
* */
|
|
40
|
-
borderColor?: string;
|
|
41
|
-
/**
|
|
42
|
-
* @description 关闭按钮图标的颜色(默认 #C6C7CB)
|
|
43
|
-
* */
|
|
44
|
-
closeColor?: string;
|
|
45
|
-
/**
|
|
46
|
-
* @description 镂空时是否填充背景色(默认 false )
|
|
47
|
-
* */
|
|
48
|
-
plainFill?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* @description 是否镂空(默认 false )
|
|
51
|
-
* */
|
|
52
|
-
plain?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* @description 是否可关闭,设置为true,文字右边会出现一个关闭图标(默认 false )
|
|
55
|
-
* */
|
|
56
|
-
closable?: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* @description 标签显示与否(默认 true )
|
|
59
|
-
* */
|
|
60
|
-
show?: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* @description 组件内置图标,或绝对路径的图片
|
|
63
|
-
* */
|
|
64
|
-
icon?: Partial<HyIconProps>;
|
|
65
|
-
/**
|
|
66
|
-
* @description 定义需要用到的外部样式
|
|
67
|
-
* */
|
|
68
|
-
customStyle?: CSSProperties;
|
|
1
|
+
export type TagParamsVo = {
|
|
2
|
+
/** 值 */
|
|
3
|
+
value?: string
|
|
4
|
+
/** 名称 */
|
|
5
|
+
name?: string | number
|
|
69
6
|
}
|
|
70
7
|
|
|
71
|
-
export type TagParamsVo = {
|
|
72
|
-
/** 值 */
|
|
73
|
-
value?: string;
|
|
74
|
-
/** 名称 */
|
|
75
|
-
name?: string | number;
|
|
76
|
-
};
|
|
77
8
|
export interface ITagEmits {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
9
|
+
/** 点击标签触发 */
|
|
10
|
+
(e: 'click', params: TagParamsVo): void
|
|
11
|
+
/** 关闭标签触发 */
|
|
12
|
+
(e: 'close', value?: string): void
|
|
82
13
|
}
|
|
@@ -35,7 +35,10 @@ const textProps = {
|
|
|
35
35
|
default: ''
|
|
36
36
|
},
|
|
37
37
|
/** 格式化规则 */
|
|
38
|
-
format:
|
|
38
|
+
format: {
|
|
39
|
+
type: [Function, String],
|
|
40
|
+
default: ''
|
|
41
|
+
},
|
|
39
42
|
/** mode=phone时,点击文本是否拨打电话 */
|
|
40
43
|
call: {
|
|
41
44
|
type: Boolean,
|
|
@@ -54,7 +57,10 @@ const textProps = {
|
|
|
54
57
|
default: false
|
|
55
58
|
},
|
|
56
59
|
/** 文本显示的行数,如果设置,超出此行数,将会显示省略号 */
|
|
57
|
-
lines:
|
|
60
|
+
lines: {
|
|
61
|
+
type: [String, Number],
|
|
62
|
+
default: ''
|
|
63
|
+
},
|
|
58
64
|
/** 文本颜色 */
|
|
59
65
|
color: String,
|
|
60
66
|
/** 字体大小 */
|
|
@@ -1,103 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export type TextMode = "text" | "price" | "phone" | "name" | "date" | "link";
|
|
4
|
-
|
|
5
|
-
export default interface HyTextProps {
|
|
6
|
-
/**
|
|
7
|
-
* @description 显示的值
|
|
8
|
-
* */
|
|
9
|
-
text: string | number;
|
|
10
|
-
/**
|
|
11
|
-
* @description 主题颜色
|
|
12
|
-
* */
|
|
13
|
-
type?: HyApp.ThemeType | "";
|
|
14
|
-
/**
|
|
15
|
-
* @description 是否显示(默认 true )
|
|
16
|
-
* */
|
|
17
|
-
show?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* @description 前置图标
|
|
20
|
-
* */
|
|
21
|
-
prefixIcon?: string;
|
|
22
|
-
/**
|
|
23
|
-
* @description 后置图标
|
|
24
|
-
* */
|
|
25
|
-
suffixIcon?: string;
|
|
26
|
-
/**
|
|
27
|
-
* @description 文本处理的匹配模式 text-普通文本,price-价格,phone-手机号,name-姓名,date-日期,link-超链接
|
|
28
|
-
* */
|
|
29
|
-
mode?: TextMode;
|
|
30
|
-
/**
|
|
31
|
-
* @description mode=link下,配置的链接
|
|
32
|
-
* */
|
|
33
|
-
href?: string;
|
|
34
|
-
/**
|
|
35
|
-
* @description 格式化规则
|
|
36
|
-
* */
|
|
37
|
-
format?: Function | string;
|
|
38
|
-
/**
|
|
39
|
-
* @description mode=phone时,点击文本是否拨打电话(默认 false )
|
|
40
|
-
* */
|
|
41
|
-
call?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* @description 小程序的打开方式
|
|
44
|
-
* */
|
|
45
|
-
openType?: string;
|
|
46
|
-
/**
|
|
47
|
-
* @description 是否粗体,默认normal(默认 false )
|
|
48
|
-
* */
|
|
49
|
-
bold?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* @description 是否块状(默认 false )
|
|
52
|
-
* */
|
|
53
|
-
block?: boolean;
|
|
54
|
-
/**
|
|
55
|
-
* @description 文本显示的行数,如果设置,超出此行数,将会显示省略号
|
|
56
|
-
* */
|
|
57
|
-
lines?: string | number;
|
|
58
|
-
/**
|
|
59
|
-
* @description 文本颜色(默认 '#303133' )
|
|
60
|
-
* */
|
|
61
|
-
color?: string;
|
|
62
|
-
/**
|
|
63
|
-
* @description 字体大小(默认 15 )
|
|
64
|
-
* */
|
|
65
|
-
size?: number | string;
|
|
66
|
-
/**
|
|
67
|
-
* @description 图标的样式 (默认 {fontSize: '15px'} )
|
|
68
|
-
* */
|
|
69
|
-
iconStyle?: CSSProperties;
|
|
70
|
-
/**
|
|
71
|
-
* @description 文字装饰,下划线,中划线等,可选值 none|underline|line-through(默认 'none' )
|
|
72
|
-
* */
|
|
73
|
-
decoration?: "" | "none" | "underline" | "line-through";
|
|
74
|
-
/**
|
|
75
|
-
* @description 外边距,对象、字符串,数值形式均可(默认 0 )
|
|
76
|
-
* */
|
|
77
|
-
margin?: string;
|
|
78
|
-
/**
|
|
79
|
-
* @description 文本行高
|
|
80
|
-
* */
|
|
81
|
-
lineHeight?: string | number;
|
|
82
|
-
/**
|
|
83
|
-
* @description 文本对齐方式,可选值left|center|right(默认 'left' )
|
|
84
|
-
* */
|
|
85
|
-
align?: HyApp.RowCenterType;
|
|
86
|
-
/**
|
|
87
|
-
* @description 文字换行,可选值break-word|normal|anywhere(默认 'normal' )
|
|
88
|
-
* */
|
|
89
|
-
wordWrap?: "normal" | "break-word" | "anywhere";
|
|
90
|
-
/**
|
|
91
|
-
* @description 是否占满剩余空间(默认:true)
|
|
92
|
-
* */
|
|
93
|
-
flex?: boolean;
|
|
94
|
-
/**
|
|
95
|
-
* @description 定义需要用到的外部样式
|
|
96
|
-
* */
|
|
97
|
-
customStyle?: CSSProperties;
|
|
98
|
-
}
|
|
1
|
+
export type TextMode = 'text' | 'price' | 'phone' | 'name' | 'date' | 'link'
|
|
99
2
|
|
|
100
3
|
export interface ITextEmits {
|
|
101
|
-
|
|
102
|
-
|
|
4
|
+
/** 点击触发 */
|
|
5
|
+
(e: 'click', event: any): void
|
|
103
6
|
}
|
|
@@ -1,36 +1,9 @@
|
|
|
1
|
-
import type { CSSProperties } from 'vue'
|
|
2
1
|
import type {
|
|
3
2
|
InputOnBlurEvent,
|
|
4
3
|
InputOnConfirmEvent,
|
|
5
4
|
InputOnFocusEvent
|
|
6
5
|
} from '@uni-helper/uni-types'
|
|
7
6
|
|
|
8
|
-
export default interface HyTextareaProps {
|
|
9
|
-
modelValue: string
|
|
10
|
-
placeholder?: string | null
|
|
11
|
-
placeholderClass?: string
|
|
12
|
-
placeholderStyle?: CSSProperties
|
|
13
|
-
height?: number
|
|
14
|
-
confirmType?: 'done' | 'send' | 'search' | 'next' | 'go'
|
|
15
|
-
disabled?: boolean
|
|
16
|
-
count?: boolean
|
|
17
|
-
focus?: boolean
|
|
18
|
-
autoHeight?: boolean
|
|
19
|
-
fixed?: boolean
|
|
20
|
-
cursorSpacing?: number
|
|
21
|
-
cursor?: string
|
|
22
|
-
showConfirmBar?: boolean
|
|
23
|
-
selectionStart?: number
|
|
24
|
-
selectionEnd?: number
|
|
25
|
-
adjustPosition?: boolean
|
|
26
|
-
disableDefaultPadding?: boolean
|
|
27
|
-
holdKeyboard?: boolean
|
|
28
|
-
maxlength?: number
|
|
29
|
-
border?: HyApp.BorderType
|
|
30
|
-
formatter?: ((value: string) => string) | null
|
|
31
|
-
customStyle?: CSSProperties
|
|
32
|
-
}
|
|
33
|
-
|
|
34
7
|
export interface ITextareaEmits {
|
|
35
8
|
/** 输入框失去焦点时触发 */
|
|
36
9
|
(e: 'blur', event: InputOnBlurEvent): void
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { CSSProperties, PropType } from 'vue'
|
|
2
|
-
import type { IPlacementVo } from '@/package/components/hy-popover/typing'
|
|
3
2
|
|
|
4
3
|
const tooltipProps = {
|
|
5
4
|
/** 需要显示的提示文字 */
|
|
@@ -58,9 +57,7 @@ const tooltipProps = {
|
|
|
58
57
|
/** 扩展的按钮组 */
|
|
59
58
|
buttons: {
|
|
60
59
|
type: Array,
|
|
61
|
-
default()
|
|
62
|
-
return []
|
|
63
|
-
}
|
|
60
|
+
default: () => []
|
|
64
61
|
},
|
|
65
62
|
/** 是否显示透明遮罩以防止触摸穿透 */
|
|
66
63
|
overlay: {
|
|
@@ -1,57 +1,4 @@
|
|
|
1
|
-
import type { CSSProperties } from 'vue'
|
|
2
|
-
|
|
3
|
-
export default interface HyTooltipProps {
|
|
4
|
-
/**
|
|
5
|
-
* @description 需要显示的提示文字
|
|
6
|
-
* */
|
|
7
|
-
text: string
|
|
8
|
-
/**
|
|
9
|
-
* @description 点击复制按钮时,复制的文本,为空则使用text值
|
|
10
|
-
* */
|
|
11
|
-
copyText?: string
|
|
12
|
-
/**
|
|
13
|
-
* @description 文本大小(默认 14 )
|
|
14
|
-
* */
|
|
15
|
-
size?: number | string
|
|
16
|
-
/**
|
|
17
|
-
* @description 字体颜色(默认 '#606266' )
|
|
18
|
-
* */
|
|
19
|
-
color?: string
|
|
20
|
-
/**
|
|
21
|
-
* @description 弹出提示框时,文本的背景色(默认 'transparent' )
|
|
22
|
-
* */
|
|
23
|
-
bgColor?: string
|
|
24
|
-
/**
|
|
25
|
-
* @description 弹出提示的方向,top-上方,bottom-下方(默认 'top' )
|
|
26
|
-
* */
|
|
27
|
-
direction?: HyApp.TopBottomType
|
|
28
|
-
/**
|
|
29
|
-
* @description 弹出提示的z-index,nvue无效(默认 10071 )
|
|
30
|
-
* */
|
|
31
|
-
zIndex?: number
|
|
32
|
-
/**
|
|
33
|
-
* @description 是否显示复制按钮(默认 true )
|
|
34
|
-
* */
|
|
35
|
-
showCopy?: boolean
|
|
36
|
-
/**
|
|
37
|
-
* @description 扩展的按钮组
|
|
38
|
-
* */
|
|
39
|
-
buttons?: string[]
|
|
40
|
-
/**
|
|
41
|
-
* @description 是否显示透明遮罩以防止触摸穿透(默认 true )
|
|
42
|
-
* */
|
|
43
|
-
overlay?: boolean
|
|
44
|
-
/**
|
|
45
|
-
* @description 是否显示遮罩
|
|
46
|
-
* */
|
|
47
|
-
showToast?: boolean
|
|
48
|
-
/**
|
|
49
|
-
* @description 定义需要用到的外部样式
|
|
50
|
-
* */
|
|
51
|
-
customStyle?: CSSProperties
|
|
52
|
-
}
|
|
53
|
-
|
|
54
1
|
export interface ITooltipEmits {
|
|
55
|
-
|
|
56
|
-
|
|
2
|
+
/** 点击菜单按钮触发 */
|
|
3
|
+
(e: 'click', index: number): void
|
|
57
4
|
}
|
|
@@ -1,45 +1,16 @@
|
|
|
1
|
-
import type { CSSProperties } from 'vue'
|
|
2
|
-
|
|
3
|
-
export default interface HyTransitionProps {
|
|
4
|
-
/**
|
|
5
|
-
* @description 是否展示组件
|
|
6
|
-
* */
|
|
7
|
-
show: boolean
|
|
8
|
-
/**
|
|
9
|
-
* @description 使用的动画模式(默认:fade)
|
|
10
|
-
* */
|
|
11
|
-
mode?: HyApp.TransitionMode
|
|
12
|
-
/**
|
|
13
|
-
* @description 动画的执行时间,单位ms
|
|
14
|
-
* */
|
|
15
|
-
duration?: number
|
|
16
|
-
/**
|
|
17
|
-
* @description 使用的动画过渡函数(默认:ease-out)
|
|
18
|
-
* */
|
|
19
|
-
timingFunction?: string
|
|
20
|
-
/**
|
|
21
|
-
* @description 定义需要用到的外部样式
|
|
22
|
-
* */
|
|
23
|
-
customStyle?: CSSProperties
|
|
24
|
-
/**
|
|
25
|
-
* @description 定义组件的类名
|
|
26
|
-
* */
|
|
27
|
-
customClass?: string
|
|
28
|
-
}
|
|
29
|
-
|
|
30
1
|
export interface ITransitionEmits {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
2
|
+
/** 进入中触发 */
|
|
3
|
+
(e: 'enter'): void
|
|
4
|
+
/** 离开中触发 */
|
|
5
|
+
(e: 'leave'): void
|
|
6
|
+
/** 点击触发 */
|
|
7
|
+
(e: 'click'): void
|
|
8
|
+
/** 进入后触发 */
|
|
9
|
+
(e: 'afterEnter'): void
|
|
10
|
+
/** 离开后触发 */
|
|
11
|
+
(e: 'afterLeave'): void
|
|
12
|
+
/** 进入前触发 */
|
|
13
|
+
(e: 'beforeEnter'): void
|
|
14
|
+
/** 离开前触发 */
|
|
15
|
+
(e: 'beforeLeave'): void
|
|
45
16
|
}
|