hy-app 0.5.4 → 0.5.6

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.
Files changed (115) hide show
  1. package/components/hy-action-sheet/typing.d.ts +1 -63
  2. package/components/hy-address-picker/hy-address-picker.vue +7 -6
  3. package/components/hy-address-picker/typing.d.ts +0 -84
  4. package/components/hy-avatar/typing.d.ts +0 -66
  5. package/components/hy-back-top/props.ts +2 -3
  6. package/components/hy-back-top/typing.d.ts +0 -47
  7. package/components/hy-badge/props.ts +1 -1
  8. package/components/hy-badge/typing.d.ts +3 -60
  9. package/components/hy-button/props.ts +1 -1
  10. package/components/hy-button/typing.d.ts +28 -162
  11. package/components/hy-calendar/hy-calendar.vue +2 -2
  12. package/components/hy-calendar/typing.d.ts +0 -128
  13. package/components/hy-card/hy-card.vue +14 -13
  14. package/components/hy-card/props.ts +4 -6
  15. package/components/hy-card/typing.d.ts +1 -114
  16. package/components/hy-cell/hy-cell.vue +9 -190
  17. package/components/hy-cell/props.ts +7 -26
  18. package/components/hy-cell/typing.d.ts +2 -96
  19. package/components/hy-cell-item/hy-cell-item.vue +160 -0
  20. package/components/hy-cell-item/index.scss +100 -0
  21. package/components/hy-cell-item/props.ts +66 -0
  22. package/components/hy-cell-item/typing.d.ts +7 -0
  23. package/components/hy-check-button/typing.d.ts +0 -43
  24. package/components/hy-checkbox/typing.d.ts +1 -73
  25. package/components/hy-checkbox-group/props.ts +1 -1
  26. package/components/hy-checkbox-group/typing.d.ts +0 -65
  27. package/components/hy-checkbox-item/typing.d.ts +3 -3
  28. package/components/hy-code-input/typing.d.ts +0 -70
  29. package/components/hy-count-down/typing.d.ts +1 -20
  30. package/components/hy-count-to/typing.d.ts +0 -47
  31. package/components/hy-coupon/typing.d.ts +0 -133
  32. package/components/hy-datetime-picker/typing.d.ts +0 -119
  33. package/components/hy-dropdown-item/typing.d.ts +12 -31
  34. package/components/hy-empty/typing.d.ts +1 -59
  35. package/components/hy-float-button/typing.d.ts +24 -113
  36. package/components/hy-form/typing.d.ts +0 -27
  37. package/components/hy-form-item/hy-form-item.vue +7 -5
  38. package/components/hy-form-item/typing.d.ts +0 -19
  39. package/components/hy-grid/props.ts +1 -1
  40. package/components/hy-grid/typing.d.ts +1 -45
  41. package/components/hy-icon/props.ts +1 -1
  42. package/components/hy-icon/typing.d.ts +3 -84
  43. package/components/hy-image/typing.d.ts +0 -80
  44. package/components/hy-input/hy-input.vue +19 -22
  45. package/components/hy-input/props.ts +1 -1
  46. package/components/hy-input/typing.d.ts +0 -149
  47. package/components/hy-list/typing.d.ts +0 -51
  48. package/components/hy-menu/props.ts +2 -2
  49. package/components/hy-menu/typing.d.ts +0 -35
  50. package/components/hy-modal/typing.d.ts +9 -84
  51. package/components/hy-navbar/typing.d.ts +0 -81
  52. package/components/hy-notice-bar/typing.d.ts +0 -65
  53. package/components/hy-number-step/props.ts +1 -1
  54. package/components/hy-number-step/typing.d.ts +0 -110
  55. package/components/hy-overlay/typing.d.ts +2 -27
  56. package/components/hy-pagination/typing.d.ts +6 -49
  57. package/components/hy-picker/typing.d.ts +27 -124
  58. package/components/hy-popover/typing.d.ts +25 -66
  59. package/components/hy-popup/typing.d.ts +8 -77
  60. package/components/hy-price/hy-price.vue +9 -2
  61. package/components/hy-price/typing.d.ts +0 -41
  62. package/components/hy-qrcode/hy-qrcode.vue +3 -4
  63. package/components/hy-qrcode/index.scss +3 -3
  64. package/components/hy-qrcode/qrcode.js +0 -138
  65. package/components/hy-qrcode/typing.d.ts +0 -66
  66. package/components/hy-radio/typing.d.ts +1 -86
  67. package/components/hy-rate/typing.d.ts +0 -62
  68. package/components/hy-read-more/typing.d.ts +4 -49
  69. package/components/hy-scroll-list/typing.d.ts +4 -33
  70. package/components/hy-search/props.ts +1 -2
  71. package/components/hy-search/typing.d.ts +19 -120
  72. package/components/hy-signature/typing.d.ts +0 -101
  73. package/components/hy-slider/typing.d.ts +8 -77
  74. package/components/hy-steps/typing.d.ts +16 -60
  75. package/components/hy-submit-bar/typing.d.ts +0 -72
  76. package/components/hy-subsection/typing.d.ts +0 -49
  77. package/components/hy-swipe-action/index.ts +13 -22
  78. package/components/hy-swipe-action/typing.d.ts +1 -38
  79. package/components/hy-swiper/typing.d.ts +0 -101
  80. package/components/hy-switch/props.ts +1 -1
  81. package/components/hy-switch/typing.d.ts +0 -62
  82. package/components/hy-tabbar/index.scss +1 -1
  83. package/components/hy-tabbar/props.ts +1 -1
  84. package/components/hy-tabbar/typing.d.ts +0 -40
  85. package/components/hy-tabbar-group/props.ts +1 -1
  86. package/components/hy-tabbar-item/typing.ts +0 -12
  87. package/components/hy-tabs/props.ts +1 -1
  88. package/components/hy-tabs/typing.d.ts +25 -92
  89. package/components/hy-tag/props.ts +1 -1
  90. package/components/hy-tag/typing.d.ts +9 -78
  91. package/components/hy-text/typing.d.ts +3 -100
  92. package/components/hy-textarea/typing.d.ts +0 -27
  93. package/components/hy-tooltip/props.ts +0 -1
  94. package/components/hy-tooltip/typing.d.ts +2 -55
  95. package/components/hy-transition/typing.d.ts +14 -43
  96. package/components/hy-upload/typing.d.ts +56 -164
  97. package/components/hy-warn/typing.d.ts +4 -45
  98. package/global.d.ts +1 -0
  99. package/libs/css/theme.scss +1 -1
  100. package/package.json +2 -2
  101. package/web-types.json +1 -1
  102. package/components/hy-card/index.scss +0 -57
  103. package/components/hy-cell/index.scss +0 -136
  104. package/components/hy-config-provider/typing.d.ts +0 -24
  105. package/components/hy-divider/typing.d.ts +0 -64
  106. package/components/hy-dropdown/typing.d.ts +0 -48
  107. package/components/hy-form-group/typing.d.ts +0 -0
  108. package/components/hy-line/typing.d.ts +0 -32
  109. package/components/hy-line-progress/typing.d.ts +0 -32
  110. package/components/hy-loading/typing.d.ts +0 -52
  111. package/components/hy-notify/typing.d.ts +0 -48
  112. package/components/hy-status-bar/typing.d.ts +0 -12
  113. package/components/hy-tabbar-group/README.md +0 -326
  114. package/components/hy-waterfall/typing.d.ts +0 -14
  115. 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
@@ -6,139 +6,6 @@ export type CouponStatus = 'unused' | 'used' | 'expired' | 'redeemed'
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
- * @description 展示标题
4
- * */
5
- label: string;
6
- /**
7
- * @description 值
8
- * */
9
- value: string | number;
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
- (e: "change", item: DropdownMenuItem, index: number): void;
34
- /** 值改变触发 */
35
- (e: "update:modelValue", item: DropdownMenuItem): void;
13
+ /** 选中值触发 */
14
+ (e: 'change', item: DropdownMenuItem, index: number): void
15
+ /** 值改变触发 */
16
+ (e: 'update:modelValue', item: DropdownMenuItem): void
36
17
  }
@@ -1,7 +1,4 @@
1
- import type { CSSProperties } from 'vue'
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
@@ -1,124 +1,35 @@
1
- import type { CSSProperties } from 'vue'
2
-
3
1
  interface MenusVo {
4
- /**
5
- * @description 显示菜单文本
6
- * */
7
- label?: string
8
- /**
9
- * @description 跳转路径
10
- * */
11
- url?: string
2
+ /**
3
+ * @description 显示菜单文本
4
+ * */
5
+ label?: string
6
+ /**
7
+ * @description 跳转路径
8
+ * */
9
+ url?: string
12
10
  }
13
11
 
14
12
  export type MenusType = MenusVo | string
15
13
  export type IGap = {
16
- left?: number
17
- right?: number
18
- top?: number
19
- bottom?: number
14
+ left?: number
15
+ right?: number
16
+ top?: number
17
+ bottom?: number
20
18
  }
21
19
 
22
20
  export type FloatPositionVo =
23
- | 'left-top'
24
- | 'left-bottom'
25
- | 'right-top'
26
- | 'right-bottom'
27
- | 'left-center'
28
- | 'right-center'
29
- | 'top-center'
30
- | 'bottom-center'
31
-
32
- export default interface HyFloatButtonProps {
33
- /**
34
- * @description 菜单栏集合
35
- * */
36
- menus?: MenusType[]
37
- /**
38
- * @description 打开方向,row-横向;column-纵向
39
- * */
40
- direction?: HyApp.DirectionType
41
- /**
42
- * @description 按钮显示的图标
43
- * */
44
- icon?: string
45
- /**
46
- * @description 按钮图标大小
47
- * */
48
- iconSize?: string | number
49
- /**
50
- * @description 按钮图标颜色
51
- * */
52
- iconColor?: string
53
- /**
54
- * @description 到边框最小距离
55
- * */
56
- gap?: IGap
57
- /**
58
- * @description 层级(默认:10086)
59
- * */
60
- zIndex?: number
61
- /**
62
- * @description 按钮背景颜色
63
- * */
64
- bgColor?: string
65
- /**
66
- * @description 按钮文字
67
- * */
68
- text?: string
69
- /**
70
- * @description 按钮文字大小
71
- * */
72
- fontSize?: string | number
73
- /**
74
- * @description 按钮文字的颜色
75
- * */
76
- textColor?: string
77
- /**
78
- * @description 按钮的尺寸
79
- * */
80
- size?: HyApp.SizeType | string | number
81
- /**
82
- * @description 按钮的形状
83
- * */
84
- shape?: HyApp.ShapeType
85
- /**
86
- * @description 按钮的透明度
87
- * */
88
- opacity?: number
89
- /**
90
- * @description 是否显示阴影(默认:true)
91
- * */
92
- shadow?: boolean
93
- /**
94
- * @description 是否显示漂浮的动画(默认:true)
95
- * */
96
- float?: boolean
97
- /**
98
- * @description 是否固定位置(默认:true)
99
- * */
100
- fixed?: boolean
101
- /**
102
- * @description 是否能拖动(默认:true)
103
- * */
104
- draggable?: boolean
105
- /**
106
- * @description 悬浮按钮位置 (默认:right-bottom)
107
- * */
108
- position?: FloatPositionVo
109
- /**
110
- * @description 禁用点击打开菜单栏
111
- * */
112
- expandable?: boolean
113
- /**
114
- * @description 定义需要用到的外部样式
115
- * */
116
- customStyle?: CSSProperties
117
- }
21
+ | 'left-top'
22
+ | 'left-bottom'
23
+ | 'right-top'
24
+ | 'right-bottom'
25
+ | 'left-center'
26
+ | 'right-center'
27
+ | 'top-center'
28
+ | 'bottom-center'
118
29
 
119
30
  export interface IFloatButtonEmits {
120
- /** 点击悬浮按钮触发 */
121
- (e: 'click'): void
122
- /** 点击菜单按钮触发 */
123
- (e: 'clickItem', item: MenusType, index: number): void
31
+ /** 点击悬浮按钮触发 */
32
+ (e: 'click'): void
33
+ /** 点击菜单按钮触发 */
34
+ (e: 'clickItem', item: MenusType, index: number): void
124
35
  }