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,57 +0,0 @@
1
- @use "../../libs/css/mixin.scss" as *;
2
- @use "../../libs/css/theme" as *;
3
-
4
-
5
- @include b(card) {
6
- position: relative;
7
- overflow: hidden;
8
- font-size: 28rpx;
9
- background-color: $hy-background--container;
10
- box-sizing: border-box;
11
-
12
- @include m(full) {
13
- margin-left: $hy-border-margin-padding-base !important;
14
- margin-right: $hy-border-margin-padding-base !important;
15
- }
16
-
17
- @include m(border) {
18
- @include pseudo(after) {
19
- border-radius: 16rpx;
20
- }
21
- }
22
-
23
- @include m(head) {
24
- @include e(flex) {
25
- display: flex;
26
- align-items: center;
27
- justify-content: space-between;
28
- }
29
-
30
- @include e(left) {
31
- display: flex;
32
- align-items: center;
33
- flex: 1;
34
-
35
- @include edeep(thumb) {
36
- margin-right: $hy-border-margin-padding-base;
37
- flex-shrink: 0
38
- }
39
-
40
- @include e(title) {
41
- max-width: 450rpx;
42
- font-size: $hy-font-size-base;
43
- @include lineEllipsis;
44
- }
45
-
46
- @include e(sub) {
47
- color: $hy-text-color--grey;
48
- font-size: $hy-font-size-sm;
49
- }
50
- }
51
-
52
- @include e(right) {
53
- color: $hy-text-color--grey;
54
- margin-left: $hy-border-margin-padding-sm;
55
- }
56
- }
57
- }
@@ -1,136 +0,0 @@
1
- @use "../../libs/css/mixin.scss" as *;
2
- @use "../../libs/css/theme" as *;
3
-
4
-
5
- @include b(cell) {
6
- flex: 1;
7
-
8
- /*标题*/
9
- @include m(title) {
10
- padding: $hy-border-margin-padding-lg $hy-border-margin-padding-base;
11
- @include e(vertical){
12
- position: relative;
13
- &::after {
14
- content: "";
15
- position: absolute;
16
- left: 0;
17
- top: 51%;
18
- transform: translateY(-50%);
19
- width: 4px;
20
- height: 20px;
21
- background: $hy-primary;
22
- border-radius: $hy-border-radius-semicircle;
23
- }
24
- }
25
- @include e(text) {
26
- font-size: $hy-font-size-lg;
27
- }
28
- }
29
-
30
- /*row内容*/
31
- @include e(body) {
32
- /* #ifndef APP-NVUE */
33
- box-sizing: border-box;
34
- /* #endif */
35
- font-size: $hy-font-size-base;
36
- align-items: center;
37
- border-radius: $hy-border-margin-padding-sm;
38
- overflow: hidden;
39
-
40
- @include m(container) {
41
- @include flex(row);
42
- align-items: center;
43
- justify-content: space-between;
44
- flex: 1;
45
- background-color: $hy-background--container;
46
-
47
- /* 大 */
48
- @include e(large) {
49
- font-size: $hy-font-size-lg;
50
- padding: 35rpx;
51
- line-height: 25px;
52
- }
53
-
54
- /* 默认 */
55
- @include e(medium) {
56
- font-size: $hy-font-size-base;
57
- padding: 30rpx;
58
- line-height: 20px;
59
- }
60
-
61
- /* 小 */
62
- @include e(small) {
63
- font-size: $hy-font-size-sm;
64
- padding: 25rpx;
65
- line-height: 15px;
66
- }
67
-
68
- /*点击状态*/
69
- @include e(clickable) {
70
- background-color: $hy-background--hover;
71
- }
72
-
73
- @include e(content) {
74
- @include flex(row);
75
- /*左边icon*/
76
- @include m(icon) {
77
- @include flex;
78
- align-items: center;
79
- margin-right: 10px;
80
- }
81
- /*行头部*/
82
- @include m(title) {
83
- margin-right: $hy-border-margin-padding-sm;
84
- flex: 33rpx;
85
- display: flex;
86
- flex-direction: column;
87
-
88
- /*sub值*/
89
- @include e(sub) {
90
- margin-top: $hy-border-margin-padding-sm;
91
- color: $hy-text-color--grey;
92
- }
93
- }
94
- }
95
-
96
- /*cell值*/
97
- @include e(center) {
98
- @include flex;
99
- max-width: 90%;
100
- flex: 1;
101
- @include m(value) {
102
- line-height: 24px;
103
- color: $hy-text-color--grey;
104
- margin-right: $hy-border-margin-padding-sm;
105
- }
106
- }
107
-
108
- /*右边icon*/
109
- @include e(right-icon) {
110
- transition: transform 0.3s;
111
- :deep(.hy-icon) {
112
- color: $hy-text-color--3;
113
- }
114
-
115
- @include m(up) {
116
- transform: rotate(-90deg);
117
- }
118
-
119
- @include m(left) {
120
- transform: rotate(180deg);
121
- }
122
-
123
- @include m(down) {
124
- transform: rotate(90deg);
125
- }
126
- }
127
- }
128
- }
129
-
130
- @include e(disabled) {
131
- color: $hy-text-color--disabled;
132
- /* #ifndef APP-NVUE */
133
- cursor: not-allowed;
134
- /* #endif */
135
- }
136
- }
@@ -1,24 +0,0 @@
1
- import type { CSSProperties } from 'vue'
2
-
3
- export default interface HyConfigProviderProps {
4
- /**
5
- * @description dark-暗色、light-亮色
6
- * */
7
- theme?: HyApp.DarkModeType
8
- /**
9
- * @description 主题色(默认 #3c9cff )
10
- * */
11
- themeColor?: string
12
- /**
13
- * @description 内边距(默认 10px )
14
- * */
15
- padding?: string
16
- /**
17
- * @description 定义需要用到的主题类名
18
- * */
19
- customClass?: string | string[]
20
- /**
21
- * @description 定义需要用到的外部样式
22
- * */
23
- customStyle?: CSSProperties | CSSProperties[]
24
- }
@@ -1,64 +0,0 @@
1
- import type { CSSProperties } from 'vue'
2
-
3
- export default interface HyDividerProps {
4
- /**
5
- * @description 是否虚线 (默认 false )
6
- * */
7
- dashed?: boolean
8
- /**
9
- * @description 是否细线 (默认 true )
10
- * */
11
- hairline?: boolean
12
- /**
13
- * @description 是否以点替代文字,优先于text字段起作用 (默认 false )
14
- * */
15
- dot?: boolean
16
- /**
17
- * @description 内容文本的位置,left-左边,center-中间,right-右边 (默认 'center' )
18
- * */
19
- textPosition?: HyApp.RowCenterType
20
- /**
21
- * @description 文本内容
22
- * */
23
- text?: string | 'loadMore' | 'loading' | 'noMore'
24
- /**
25
- * @description 文本大小 (默认 14)
26
- * */
27
- textSize?: string | number
28
- /**
29
- * @description 文本颜色 (默认 '#909399' )
30
- * */
31
- textColor?: string
32
- /**
33
- * @description 线条颜色 (默认 '#dcdfe6' )
34
- * */
35
- lineColor?: string
36
- /**
37
- * @description 加载图标(默认 'loading' )
38
- * */
39
- loadingIcon?: string
40
- /**
41
- * @description 加载前的提示语(默认 '加载更多' )
42
- * */
43
- loadMoreText?: string
44
- /**
45
- * @description 加载中提示语(默认 '正在加载...' )
46
- * */
47
- loadingText?: string
48
- /**
49
- * @description 没有更多的提示语(默认 '没有更多了' )
50
- * */
51
- noMoreText?: string
52
- /**
53
- * @description 上边距 (默认 0 )
54
- * */
55
- marginTop?: string | number
56
- /**
57
- * @description 下边距 (默认 0 )
58
- * */
59
- marginBottom?: string | number
60
- /**
61
- * @description 定义需要用到的外部样式
62
- * */
63
- customStyle?: CSSProperties
64
- }
@@ -1,48 +0,0 @@
1
- import type { CSSProperties } from 'vue'
2
-
3
- export default interface HyDropdownProps {
4
- /**
5
- * @description 标题和选项卡选中的颜色(默认#2979ff)
6
- * */
7
- activeColor?: string
8
- /**
9
- * @description 标题和选项卡未选中的颜色(默认#606266)
10
- * */
11
- inactiveColor?: string
12
- /**
13
- * @description 点击遮罩是否关闭菜单(默认true)
14
- * */
15
- closeOnClickMask?: boolean
16
- /**
17
- * @description 是否粘性定位(默认true)
18
- * */
19
- sticky?: boolean
20
- /**
21
- * @description 标题菜单的高度,单位任意(默认80)
22
- * */
23
- height?: number | string
24
- /**
25
- * @description 标题菜单是否显示下边框(默认false)
26
- * */
27
- borderBottom?: boolean
28
- /**
29
- * @description 标题的字体大小,单位任意,数值默认为rpx单位(默认28)
30
- * */
31
- titleSize?: number
32
- /**
33
- * @description 菜单展开内容下方的圆角值,单位任意(默认0)
34
- * */
35
- borderRadius?: number
36
- /**
37
- * @description 图标名称
38
- * */
39
- menuIcon?: string
40
- /**
41
- * @description 图标大小
42
- * */
43
- menuIconSize?: number
44
- /**
45
- * @description 定义需要用到的外部样式
46
- * */
47
- customStyle?: CSSProperties
48
- }
File without changes
@@ -1,32 +0,0 @@
1
- import type { CSSProperties } from 'vue'
2
-
3
- export default interface HyLineProps {
4
- /**
5
- * @description 线条的颜色 ( 默认 '#d6d7d9' )
6
- * */
7
- color?: string
8
- /**
9
- * @description 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等 ( 默认 '100%' )
10
- * */
11
- length?: string | number
12
- /**
13
- * @description 线条的方向,row-横向,column-竖向 (默认 'row' )
14
- * */
15
- direction?: HyApp.DirectionType
16
- /**
17
- * @description 是否显示细线条 (默认 true )
18
- * */
19
- hairline?: boolean
20
- /**
21
- * @description 线条与上下左右 元素的间距,字符串形式,如"30px" (默认 0 )
22
- * */
23
- margin?: string
24
- /**
25
- * @description 是否虚线,true-虚线,false-实线 (默认 false )
26
- * */
27
- dashed?: boolean
28
- /**
29
- * @description 定义需要用到的外部样式
30
- * */
31
- customStyle?: CSSProperties
32
- }
@@ -1,32 +0,0 @@
1
- import type { CSSProperties } from 'vue'
2
-
3
- export default interface HyLineProgressProps {
4
- /**
5
- * @description 激活部分的颜色 ( 默认 '#19be6b' )
6
- * */
7
- activeColor?: string
8
- /**
9
- * @description 背景色 ( 默认 '#ececec' )
10
- * */
11
- inactiveColor?: string
12
- /**
13
- * @description 进度百分比,数值 ( 默认 0 )
14
- * */
15
- percentage: number
16
- /**
17
- * @description 是否在进度条内部显示百分比的值 ( 默认 true )
18
- * */
19
- showText?: boolean
20
- /**
21
- * @description 进度条的高度,单位px ( 默认 12 )
22
- * */
23
- height?: string | number
24
- /**
25
- * @description 字体大小,单位px ( 默认 10 )
26
- * */
27
- fontSize?: string | number
28
- /**
29
- * @description 自定义样式
30
- * */
31
- customStyle?: CSSProperties
32
- }
@@ -1,52 +0,0 @@
1
- import type { CSSProperties } from 'vue'
2
-
3
- export default interface HyLoadingProps {
4
- /**
5
- * @description 是否显示组件 (默认 true)
6
- * */
7
- show?: boolean
8
- /**
9
- * @description 动画活动区域的颜色,只对 mode = flower 模式有效
10
- * */
11
- color?: string
12
- /**
13
- * @description 提示文本的颜色
14
- * */
15
- textColor?: string
16
- /**
17
- * @description 文字和图标是否垂直排列 (默认 false )
18
- * */
19
- vertical?: boolean
20
- /**
21
- * @description 模式选择,见官网说明(默认 'circle' )
22
- * */
23
- mode?: HyApp.LoadingMode
24
- /**
25
- * @description 加载图标的大小,单位px (默认 24 )
26
- * */
27
- size?: number | string
28
- /**
29
- * @description 文字大小(默认 15 )
30
- * */
31
- textSize?: number | string
32
- /**
33
- * @description 文字内容
34
- * */
35
- text?: string
36
- /**
37
- * @description 动画模式 (默认 'ease-in-out' )
38
- * */
39
- timingFunction?: 'ease-in-out' | 'linear' | 'ease-in' | 'ease-out' | 'ease'
40
- /**
41
- * @description 动画执行周期时间(默认 1200)
42
- * */
43
- duration?: number
44
- /**
45
- * @description mode=circle时的暗边颜色
46
- * */
47
- inactiveColor?: string
48
- /**
49
- * @description 定义需要用到的外部样式
50
- * */
51
- customStyle?: CSSProperties
52
- }
@@ -1,48 +0,0 @@
1
- import type { CSSProperties } from 'vue'
2
-
3
- export default interface HyNotifyProps {
4
- /**
5
- * 到顶部的距离 ( 默认 0 )
6
- * */
7
- top?: number
8
- /**
9
- * 主题,primary,success,warning,error ( 默认 'primary' )
10
- * */
11
- type?: HyApp.ThemeType
12
- /**
13
- * 字体颜色 ( 默认 '#ffffff' )
14
- * */
15
- color?: string
16
- /**
17
- * 背景颜色
18
- * */
19
- bgColor?: string
20
- /**
21
- * 图标名称
22
- * */
23
- icon?: string
24
- /**
25
- * 展示的文字内容
26
- * */
27
- message?: string
28
- /**
29
- * 展示时长,为0时不消失,单位ms ( 默认 3000 )
30
- * */
31
- duration?: number
32
- /**
33
- * 字体大小 ( 默认 15 )
34
- * */
35
- fontSize?: number | string
36
- /**
37
- * 回调方法
38
- * */
39
- complete?: Function
40
- /**
41
- * 是否留出顶部安全距离(状态栏高度) ( 默认 false )
42
- * */
43
- safeAreaInsetTop?: boolean
44
- /**
45
- * 定义需要用到的外部样式
46
- * */
47
- customStyle?: CSSProperties
48
- }
@@ -1,12 +0,0 @@
1
- import type { CSSProperties } from "vue";
2
-
3
- export default interface HyStatusBarProps {
4
- /**
5
- * @description 背景色 (默认 'transparent' )
6
- * */
7
- bgColor?: string;
8
- /**
9
- * @description 自定义样式
10
- * */
11
- customStyle?: CSSProperties;
12
- }