hy-app 0.6.8 → 0.7.0

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 (109) hide show
  1. package/attributes.json +1 -1
  2. package/components/hy-action-sheet/index.scss +2 -2
  3. package/components/hy-avatar/hy-avatar.vue +12 -5
  4. package/components/hy-avatar/index.scss +2 -2
  5. package/components/hy-avatar/props.ts +4 -2
  6. package/components/hy-avatar/typing.d.ts +8 -1
  7. package/components/hy-calendar/hy-calendar.vue +1 -0
  8. package/components/hy-calendar/month.vue +25 -5
  9. package/components/hy-calendar/props.ts +1 -1
  10. package/components/hy-cascader/hy-cascader.vue +503 -0
  11. package/components/hy-cascader/index.scss +84 -0
  12. package/components/hy-cascader/props.ts +88 -0
  13. package/components/hy-cascader/typing.d.ts +34 -0
  14. package/components/hy-cell-item/index.scss +8 -9
  15. package/components/hy-check-button/typing.d.ts +12 -7
  16. package/components/hy-code-input/hy-code-input.vue +33 -11
  17. package/components/hy-code-input/index.scss +2 -2
  18. package/components/hy-code-input/typing.d.ts +4 -0
  19. package/components/hy-config-provider/hy-config-provider.vue +58 -53
  20. package/components/hy-config-provider/props.ts +1 -1
  21. package/components/hy-datetime-picker/props.ts +1 -1
  22. package/components/hy-datetime-picker/typing.d.ts +1 -1
  23. package/components/hy-dropdown/typing.d.ts +5 -0
  24. package/components/hy-float-button/index.scss +1 -1
  25. package/components/hy-form/typing.d.ts +6 -0
  26. package/components/hy-form-item/typing.d.ts +1 -1
  27. package/components/hy-grid/hy-grid.vue +12 -12
  28. package/components/hy-grid/index.scss +1 -2
  29. package/components/hy-grid/props.ts +7 -2
  30. package/components/hy-grid/typing.d.ts +1 -1
  31. package/components/hy-icon/typing.d.ts +52 -9
  32. package/components/hy-index-bar/index.scss +1 -1
  33. package/components/hy-keyboard/constants.ts +83 -0
  34. package/components/hy-keyboard/hy-keyboard.vue +375 -0
  35. package/components/hy-keyboard/index.scss +73 -0
  36. package/components/hy-keyboard/key/index.scss +79 -0
  37. package/components/hy-keyboard/key/index.vue +91 -0
  38. package/components/hy-keyboard/key/types.ts +1 -0
  39. package/components/hy-keyboard/props.ts +108 -0
  40. package/components/hy-keyboard/typing.d.ts +18 -0
  41. package/components/hy-line-progress/index.scss +3 -3
  42. package/components/hy-menu/index.scss +1 -1
  43. package/components/hy-modal/index.scss +2 -2
  44. package/components/hy-modal/typing.d.ts +2 -2
  45. package/components/hy-notice-bar/hy-column-notice.vue +54 -94
  46. package/components/hy-notice-bar/hy-notice-bar.vue +128 -96
  47. package/components/hy-notice-bar/hy-row-notice.vue +89 -121
  48. package/components/hy-notice-bar/index.scss +1 -1
  49. package/components/hy-notice-bar/props.ts +86 -85
  50. package/components/hy-notify/hy-notify.vue +9 -9
  51. package/components/hy-notify/typing.d.ts +22 -0
  52. package/components/hy-picker/hy-picker.vue +126 -149
  53. package/components/hy-picker/props.ts +4 -1
  54. package/components/hy-picker/typing.d.ts +22 -0
  55. package/components/hy-popover/index.scss +6 -6
  56. package/components/hy-popup/index.scss +6 -5
  57. package/components/hy-price/hy-price.vue +52 -23
  58. package/components/hy-price/props.ts +54 -54
  59. package/components/hy-radio/props.ts +1 -1
  60. package/components/hy-radio/typing.d.ts +5 -1
  61. package/components/hy-rolling-num/typing.d.ts +1 -0
  62. package/components/hy-scroll-list/index.scss +2 -2
  63. package/components/hy-search/index.scss +1 -1
  64. package/components/hy-signature/index.scss +1 -1
  65. package/components/hy-skeleton/index.scss +21 -4
  66. package/components/hy-slider/index.scss +3 -3
  67. package/components/hy-steps/hy-steps.vue +1 -1
  68. package/components/hy-steps/index.scss +3 -3
  69. package/components/hy-submit-bar/typing.d.ts +3 -3
  70. package/components/hy-subsection/index.scss +8 -8
  71. package/components/hy-swipe-action/hy-swipe-action.vue +34 -15
  72. package/components/hy-swipe-action/index.scss +0 -1
  73. package/components/hy-swiper/index.scss +2 -2
  74. package/components/hy-switch/index.scss +3 -3
  75. package/components/hy-switch/typing.d.ts +4 -0
  76. package/components/hy-tabbar/props.ts +2 -1
  77. package/components/hy-tabbar/typing.d.ts +5 -4
  78. package/components/hy-tabbar-group/index.scss +2 -2
  79. package/components/hy-tabs/hy-tabs.vue +338 -336
  80. package/components/hy-tabs/index.scss +7 -7
  81. package/components/hy-tabs/typing.d.ts +41 -33
  82. package/components/hy-tag/index.scss +1 -1
  83. package/components/hy-textarea/hy-textarea.vue +2 -2
  84. package/components/hy-textarea/index.scss +4 -4
  85. package/components/hy-textarea/typing.d.ts +4 -0
  86. package/components/hy-toast/hy-toast.vue +14 -6
  87. package/components/hy-toast/index.scss +1 -1
  88. package/components/hy-toast/typing.d.ts +42 -36
  89. package/components/hy-tooltip/hy-tooltip.vue +1 -1
  90. package/components/hy-tooltip/index.scss +7 -6
  91. package/components/hy-tooltip/props.ts +1 -1
  92. package/components/hy-upload/hy-upload.vue +16 -1
  93. package/components/hy-upload/index.scss +149 -144
  94. package/components/hy-warn/index.scss +1 -1
  95. package/components/index.ts +6 -0
  96. package/global.d.ts +2 -0
  97. package/libs/config/icon.ts +442 -430
  98. package/libs/css/_function.scss +7 -13
  99. package/libs/css/_mixin.scss +3 -3
  100. package/libs/css/common.scss +1 -1
  101. package/libs/css/iconfont.css +445 -441
  102. package/libs/css/theme.scss +54 -25
  103. package/libs/locale/lang/en-US.ts +4 -0
  104. package/libs/locale/lang/zh-CN.ts +4 -0
  105. package/libs/typing/index.ts +80 -0
  106. package/package.json +5 -2
  107. package/tags.json +1 -1
  108. package/web-types.json +1 -1
  109. package/components/hy-qrcode/qrcode.js.bak +0 -1434
@@ -1,145 +1,150 @@
1
- @use "../../libs/css/mixin" as *;
2
- @use "../../libs/css/theme" as *;
3
-
4
- $hy-upload-image-width: 80px !default;
5
- $hy-upload-text-font-size: 11px !default;
6
-
7
-
8
- @include b(upload) {
9
- @include flex(column);
10
- flex: 1;
11
-
12
- @include e(wrap) {
13
- @include flex;
14
- flex-wrap: wrap;
15
- flex: 1;
16
-
17
- @include m(preview) {
18
- border-radius: 2px;
19
- margin: 0 8px 8px 0;
20
- position: relative;
21
- overflow: hidden;
22
- @include flex;
23
-
24
- @include e(image) {
25
- width: $hy-upload-image-width;
26
- height: $hy-upload-image-width;
27
- }
28
-
29
- @include e(other) {
30
- width: $hy-upload-image-width;
31
- height: $hy-upload-image-width;
32
- background-color: rgb(242, 242, 242);
33
- flex: 1;
34
- @include flex(column);
35
- justify-content: center;
36
- align-items: center;
37
-
38
- @include m(text) {
39
- font-size: $hy-upload-text-font-size;
40
- color: $hy-text-color--grey;
41
- margin-top: 2px;
42
- }
43
- }
44
-
45
- /* 进度条样式 */
46
- @include e(progress) {
47
- width: 100%;
48
- height: 100%;
49
- backdrop-filter: blur(6px);
50
- position: absolute;
51
- z-index: 10;
52
- display: grid;
53
- place-content: center;
54
-
55
- @include m(number) {
56
- width: 70px;
57
- margin-bottom: 6rpx;
58
- }
59
-
60
- @include m(value) {
61
- font-size: 20rpx;
62
- color: $hy-primary;
63
- }
64
- }
65
- }
66
- }
67
-
68
- @include e(deletable) {
69
- position: absolute;
70
- top: 0;
71
- right: 0;
72
- background-color: rgb(55, 55, 55);
73
- height: 14px;
74
- width: 14px;
75
- @include flex;
76
- border-bottom-left-radius: 100px;
77
- align-items: center;
78
- justify-content: center;
79
- z-index: 9;
80
-
81
- @include m(icon) {
82
- position: absolute;
83
- transform: scale(0.7);
84
- top: 0;
85
- right: 0;
86
- }
87
- }
88
-
89
- @include e(success) {
90
- position: absolute;
91
- bottom: 0;
92
- right: 0;
93
- @include flex;
94
- // 由于weex(nvue)为阿里巴巴的KPI(部门业绩考核)的laji产物,不支持css绘制三角形
95
- // 所以在nvue下使用图片,非nvue下使用css实现
96
- /* #ifndef APP-NVUE */
97
- border-style: solid;
98
- border-color: transparent $hy-success $hy-success transparent;
99
- border-width: 9px;
100
- align-items: center;
101
- justify-content: center;
102
- /* #endif */
103
-
104
- @include m(icon) {
105
- /* #ifndef APP-NVUE */
106
- position: absolute;
107
- transform: scale(0.7);
108
- bottom: -10px;
109
- right: -10px;
110
- /* #endif */
111
- /* #ifdef APP-NVUE */
112
- width: 16px;
113
- height: 16px;
114
- /* #endif */
115
- }
116
- }
117
-
118
- @include e(button) {
119
- @include flex(column);
120
- align-items: center;
121
- justify-content: center;
122
- width: $hy-upload-image-width;
123
- height: $hy-upload-image-width;
124
- background-color: $hy-background--empty;
125
- border-radius: 2px;
126
- margin: 0 8px 8px 0;
127
- /* #ifndef APP-NVUE */
128
- box-sizing: border-box;
129
- /* #endif */
130
-
131
- @include m(text) {
132
- font-size: $hy-upload-text-font-size;
133
- color: $hy-text-color--grey;
134
- margin-top: 2px;
135
- }
136
-
137
- @include m(hover) {
138
- background-color: $hy-background--hover;
139
- }
140
-
141
- @include m(disabled) {
142
- opacity: 0.5;
143
- }
144
- }
1
+ @use "../../libs/css/mixin" as *;
2
+ @use "../../libs/css/theme" as *;
3
+
4
+ $hy-upload-image-width: 80px !default;
5
+ $hy-upload-text-font-size: 11px !default;
6
+
7
+
8
+ @include b(upload) {
9
+ @include flex(column);
10
+ flex: 1;
11
+
12
+ @include e(wrap) {
13
+ @include flex;
14
+ flex-wrap: wrap;
15
+ flex: 1;
16
+
17
+ @include m(preview) {
18
+ border-radius: 2px;
19
+ margin: 0 8px 8px 0;
20
+ position: relative;
21
+ overflow: hidden;
22
+ @include flex;
23
+
24
+ @include e(image) {
25
+ width: $hy-upload-image-width;
26
+ height: $hy-upload-image-width;
27
+ }
28
+
29
+ @include e(other) {
30
+ width: $hy-upload-image-width;
31
+ height: $hy-upload-image-width;
32
+ background-color: rgb(242, 242, 242);
33
+ flex: 1;
34
+ @include flex(column);
35
+ justify-content: center;
36
+ align-items: center;
37
+
38
+ @include m(text) {
39
+ font-size: $hy-upload-text-font-size;
40
+ color: $hy-text-color--grey;
41
+ margin-top: 2px;
42
+ }
43
+ }
44
+
45
+ /* 进度条样式 */
46
+ @include e(progress) {
47
+ width: 100%;
48
+ height: 100%;
49
+ backdrop-filter: blur(6px);
50
+ position: absolute;
51
+ z-index: 10;
52
+ display: grid;
53
+ place-content: center;
54
+
55
+ @include m(number) {
56
+ width: 70px;
57
+ margin-bottom: 6rpx;
58
+ }
59
+
60
+ @include m(value) {
61
+ font-size: 20rpx;
62
+ color: $hy-primary;
63
+ }
64
+ }
65
+ }
66
+ }
67
+
68
+ @include e(deletable) {
69
+ position: absolute;
70
+ top: 0;
71
+ right: 0;
72
+ background-color: rgb(55, 55, 55);
73
+ height: 14px;
74
+ width: 14px;
75
+ @include flex;
76
+ border-bottom-left-radius: 100px;
77
+ align-items: center;
78
+ justify-content: center;
79
+ z-index: 9;
80
+
81
+ @include m(icon) {
82
+ position: absolute;
83
+ transform: scale(0.7);
84
+ top: 0;
85
+ right: 0;
86
+ }
87
+ }
88
+
89
+ @include e(status) {
90
+ position: absolute;
91
+ bottom: 0;
92
+ right: 0;
93
+ @include flex;
94
+ /* #ifndef APP-NVUE */
95
+ border-style: solid;
96
+ border-width: 9px;
97
+ align-items: center;
98
+ justify-content: center;
99
+ /* #endif */
100
+ }
101
+
102
+ @include e(success) {
103
+ border-color: transparent $hy-success $hy-success transparent;
104
+
105
+ @include m(icon) {
106
+ /* #ifndef APP-NVUE */
107
+ position: absolute;
108
+ transform: scale(0.7);
109
+ bottom: -10px;
110
+ right: -10px;
111
+ /* #endif */
112
+ /* #ifdef APP-NVUE */
113
+ width: 16px;
114
+ height: 16px;
115
+ /* #endif */
116
+ }
117
+ }
118
+
119
+ @include e(error) {
120
+ border-color: transparent $hy-error $hy-error transparent;
121
+ }
122
+
123
+ @include e(button) {
124
+ @include flex(column);
125
+ align-items: center;
126
+ justify-content: center;
127
+ width: $hy-upload-image-width;
128
+ height: $hy-upload-image-width;
129
+ background-color: $hy-background--empty;
130
+ border-radius: 2px;
131
+ margin: 0 8px 8px 0;
132
+ /* #ifndef APP-NVUE */
133
+ box-sizing: border-box;
134
+ /* #endif */
135
+
136
+ @include m(text) {
137
+ font-size: $hy-upload-text-font-size;
138
+ color: $hy-text-color--grey;
139
+ margin-top: 2px;
140
+ }
141
+
142
+ @include m(hover) {
143
+ background-color: $hy-background--hover;
144
+ }
145
+
146
+ @include m(disabled) {
147
+ opacity: 0.5;
148
+ }
149
+ }
145
150
  }
@@ -7,7 +7,7 @@
7
7
  padding: $hy-border-margin-padding-base;
8
8
  @include flex(row);
9
9
  align-items: center;
10
- border-radius: $hy-border-radius-sm;
10
+ border-radius: $hy-radius-sm;
11
11
 
12
12
  @include e(primary) {
13
13
 
@@ -6,6 +6,7 @@ import HyBackTop from './hy-back-top/hy-back-top.vue'
6
6
  import HyBadge from './hy-badge/hy-badge.vue'
7
7
  import HyButton from './hy-button/hy-button.vue'
8
8
  import HyCard from './hy-card/hy-card.vue'
9
+ import HyCascader from './hy-cascader/hy-cascader.vue'
9
10
  import HyCell from './hy-cell/hy-cell.vue'
10
11
  import HyCheckButton from './hy-check-button/hy-check-button.vue'
11
12
  import HyCheckbox from './hy-checkbox/hy-checkbox.vue'
@@ -52,6 +53,7 @@ import HySubsection from './hy-subsection/hy-subsection.vue'
52
53
  import HySwiper from './hy-swiper/hy-swiper.vue'
53
54
  import HySwitch from './hy-switch/hy-switch.vue'
54
55
  import HyTabs from './hy-tabs/hy-tabs.vue'
56
+ import HyKeyboard from './hy-keyboard/hy-keyboard.vue'
55
57
  import HyTag from './hy-tag/hy-tag.vue'
56
58
  import HyTextarea from './hy-textarea/hy-textarea.vue'
57
59
  import HyTooltip from './hy-tooltip/hy-tooltip.vue'
@@ -68,6 +70,7 @@ const install = (Vue: any) => {
68
70
  Vue.component('HyBadge', HyBadge)
69
71
  Vue.component('HyButton', HyButton)
70
72
  Vue.component('HyCard', HyCard)
73
+ Vue.component('HyCascader', HyCascader)
71
74
  Vue.component('HyCell', HyCell)
72
75
  Vue.component('HyCheckButton', HyCheckButton)
73
76
  Vue.component('HyCheckbox', HyCheckbox)
@@ -113,6 +116,7 @@ const install = (Vue: any) => {
113
116
  Vue.component('HySwiper', HySwiper)
114
117
  Vue.component('HySwitch', HySwitch)
115
118
  Vue.component('HyTabs', HyTabs)
119
+ Vue.component('HyKeyboard', HyKeyboard)
116
120
  Vue.component('HyTag', HyTag)
117
121
  Vue.component('HyTextarea', HyTextarea)
118
122
  Vue.component('HyTooltip', HyTooltip)
@@ -129,6 +133,7 @@ export {
129
133
  HyBadge,
130
134
  HyButton,
131
135
  HyCard,
136
+ HyCascader,
132
137
  HyCell,
133
138
  HyCheckButton,
134
139
  HyCheckbox,
@@ -174,6 +179,7 @@ export {
174
179
  HySwiper,
175
180
  HySwitch,
176
181
  HyTabs,
182
+ HyKeyboard,
177
183
  HyTag,
178
184
  HyTextarea,
179
185
  HyTooltip,
package/global.d.ts CHANGED
@@ -9,6 +9,7 @@ declare module 'vue' {
9
9
  HyButton: (typeof import('./components/hy-button/hy-button.vue'))['default']
10
10
  HyCalendar: (typeof import('./components/hy-calendar/hy-calendar.vue'))['default']
11
11
  HyCard: (typeof import('./components/hy-card/hy-card.vue'))['default']
12
+ HyCascader: (typeof import('./components/hy-cascader/hy-cascader.vue'))['default']
12
13
  HyCell: (typeof import('./components/hy-cell/hy-cell.vue'))['default']
13
14
  HyCellItem: (typeof import('./components/hy-cell-item/hy-cell-item.vue'))['default']
14
15
  HyCheckButton: (typeof import('./components/hy-check-button/hy-check-button.vue'))['default']
@@ -38,6 +39,7 @@ declare module 'vue' {
38
39
  HyImage: (typeof import('./components/hy-image/hy-image.vue'))['default']
39
40
  HyIndexBar: (typeof import('./components/hy-index-bar/hy-index-bar.vue'))['default']
40
41
  HyInput: (typeof import('./components/hy-input/hy-input.vue'))['default']
42
+ HyKeyboard: (typeof import('./components/hy-keyboard/hy-keyboard.vue'))['default']
41
43
  HyLine: (typeof import('./components/hy-line/hy-line.vue'))['default']
42
44
  HyLineProgress: (typeof import('./components/hy-line-progress/hy-line-progress.vue'))['default']
43
45
  HyList: (typeof import('./components/hy-list/hy-list.vue'))['default']