hy-app 0.1.2 → 0.1.3

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 (221) hide show
  1. package/README.md +1 -1
  2. package/api/http.ts +8 -8
  3. package/components/dialog/index.ts +2 -2
  4. package/components/hy-address-picker/hy-address-picker.vue +3 -29
  5. package/components/hy-address-picker/index.scss +27 -0
  6. package/components/hy-avatar/hy-avatar.vue +1 -45
  7. package/components/hy-avatar/index.scss +45 -0
  8. package/components/hy-avatar/typing.d.ts +1 -1
  9. package/components/hy-back-top/hy-back-top.vue +7 -22
  10. package/components/hy-back-top/index.scss +16 -0
  11. package/components/hy-back-top/props.ts +4 -4
  12. package/components/hy-back-top/typing.d.ts +2 -3
  13. package/components/hy-badge/hy-badge.vue +1 -72
  14. package/components/hy-badge/index.scss +72 -0
  15. package/components/hy-button/hy-button.vue +12 -124
  16. package/components/hy-button/index.scss +116 -0
  17. package/components/hy-calendar/header.vue +76 -0
  18. package/components/hy-calendar/hy-calendar.vue +366 -0
  19. package/components/hy-calendar/index.scss +171 -0
  20. package/components/hy-calendar/month.vue +524 -0
  21. package/components/hy-calendar/props.ts +37 -0
  22. package/components/hy-calendar/typing.d.ts +126 -0
  23. package/components/hy-card/hy-card.vue +21 -84
  24. package/components/hy-card/index.scss +57 -0
  25. package/components/hy-card/props.ts +2 -2
  26. package/components/hy-card/typing.d.ts +1 -1
  27. package/components/hy-cell/hy-cell.vue +1 -137
  28. package/components/hy-cell/index.scss +137 -0
  29. package/components/hy-check-button/hy-check-button.vue +1 -0
  30. package/components/hy-check-button/index.scss +5 -0
  31. package/components/hy-checkbox/hy-checkbox.vue +2 -95
  32. package/components/hy-checkbox/index.scss +94 -0
  33. package/components/hy-checkbox/typing.d.ts +1 -2
  34. package/components/hy-count-down/hy-count-down.vue +150 -0
  35. package/components/hy-count-down/index.scss +6 -0
  36. package/components/hy-count-down/index.ts +52 -0
  37. package/components/hy-count-down/props.ts +10 -0
  38. package/components/hy-count-down/typing.d.ts +20 -0
  39. package/components/hy-count-to/hy-count-to.vue +213 -0
  40. package/components/hy-count-to/index.scss +6 -0
  41. package/components/hy-count-to/props.ts +17 -0
  42. package/components/hy-count-to/typing.d.ts +48 -0
  43. package/components/hy-datetime-picker/hy-datetime-picker.vue +2 -28
  44. package/components/hy-datetime-picker/index.scss +28 -0
  45. package/components/hy-divider/hy-divider.vue +24 -49
  46. package/components/hy-divider/index.scss +25 -0
  47. package/components/hy-divider/props.ts +2 -2
  48. package/components/hy-divider/typing.d.ts +1 -1
  49. package/components/hy-dropdown/hy-dropdown.vue +43 -0
  50. package/components/hy-dropdown/index.scss +17 -0
  51. package/components/hy-dropdown/props.ts +17 -0
  52. package/components/hy-dropdown/typing.d.ts +48 -0
  53. package/components/hy-dropdown-item/hy-dropdown-item.vue +194 -0
  54. package/components/hy-dropdown-item/index.scss +96 -0
  55. package/components/hy-dropdown-item/props.ts +10 -0
  56. package/components/hy-dropdown-item/typing.d.ts +31 -0
  57. package/components/hy-empty/hy-empty.vue +8 -26
  58. package/components/hy-empty/index.scss +19 -0
  59. package/components/hy-empty/props.ts +2 -2
  60. package/components/hy-empty/typing.d.ts +1 -1
  61. package/components/hy-float-button/hy-float-button.vue +201 -0
  62. package/components/hy-float-button/index.scss +69 -0
  63. package/components/hy-float-button/props.ts +25 -0
  64. package/components/hy-float-button/typing.d.ts +93 -0
  65. package/components/hy-folding-panel/hy-folding-panel.vue +9 -12
  66. package/components/hy-folding-panel/index.scss +6 -0
  67. package/components/hy-folding-panel/props.ts +2 -2
  68. package/components/hy-folding-panel/typing.d.ts +2 -2
  69. package/components/hy-form/hy-form.vue +17 -34
  70. package/components/hy-form/index.scss +30 -0
  71. package/components/hy-form/props.ts +2 -0
  72. package/components/hy-form/typing.d.ts +9 -1
  73. package/components/hy-grid/hy-grid.vue +1 -43
  74. package/components/hy-grid/index.scss +40 -0
  75. package/components/hy-icon/hy-icon.vue +1 -93
  76. package/components/hy-icon/index.scss +84 -0
  77. package/components/hy-image/hy-image.vue +212 -0
  78. package/components/hy-image/index.scss +26 -0
  79. package/components/hy-image/props.ts +24 -0
  80. package/components/hy-image/typing.d.ts +76 -0
  81. package/components/hy-input/hy-input.vue +2 -72
  82. package/components/hy-input/index.scss +65 -0
  83. package/components/hy-line/hy-line.vue +4 -8
  84. package/components/hy-line/index.scss +5 -0
  85. package/components/hy-line/props.ts +3 -3
  86. package/components/hy-line/typing.d.ts +2 -2
  87. package/components/hy-line-progress/hy-line-progress.vue +15 -44
  88. package/components/hy-line-progress/index.scss +38 -0
  89. package/components/hy-line-progress/props.ts +2 -2
  90. package/components/hy-line-progress/typing.d.ts +1 -1
  91. package/components/hy-list/hy-list.vue +11 -41
  92. package/components/hy-list/index.scss +32 -0
  93. package/components/hy-list/props.ts +2 -2
  94. package/components/hy-loading/hy-loading.vue +95 -0
  95. package/components/hy-loading/index.scss +103 -0
  96. package/components/hy-loading/props.ts +17 -0
  97. package/components/hy-loading/typing.d.ts +52 -0
  98. package/components/hy-login/TheUserLogin.vue +16 -16
  99. package/components/hy-login/hy-login.vue +9 -9
  100. package/components/hy-login/props.ts +4 -4
  101. package/components/hy-modal/hy-modal.vue +11 -89
  102. package/components/hy-modal/index.scss +77 -0
  103. package/components/hy-modal/props.ts +2 -2
  104. package/components/hy-modal/typing.d.ts +1 -1
  105. package/components/hy-navbar/hy-navbar.vue +20 -92
  106. package/components/hy-navbar/index.scss +67 -0
  107. package/components/hy-navbar/props.ts +2 -2
  108. package/components/hy-navbar/typing.d.ts +1 -1
  109. package/components/hy-notice-bar/hy-column-notice.vue +11 -39
  110. package/components/hy-notice-bar/hy-notice-bar.vue +10 -12
  111. package/components/hy-notice-bar/hy-row-notice.vue +5 -56
  112. package/components/hy-notice-bar/index.scss +93 -0
  113. package/components/hy-notice-bar/props.ts +4 -2
  114. package/components/hy-notice-bar/typing.d.ts +13 -3
  115. package/components/hy-number-step/hy-number-step.vue +1 -70
  116. package/components/hy-number-step/index.scss +71 -0
  117. package/components/hy-overlay/hy-overlay.vue +2 -14
  118. package/components/hy-overlay/index.scss +9 -0
  119. package/components/hy-picker/hy-picker.vue +1 -68
  120. package/components/hy-picker/index.scss +68 -0
  121. package/components/hy-popup/hy-popup.vue +1 -74
  122. package/components/hy-popup/index.scss +60 -0
  123. package/components/hy-price/hy-price.vue +1 -11
  124. package/components/hy-price/index.scss +11 -0
  125. package/components/hy-qrcode/hy-qrcode.vue +15 -37
  126. package/components/hy-qrcode/index.scss +23 -0
  127. package/components/hy-qrcode/props.ts +2 -2
  128. package/components/hy-qrcode/typing.d.ts +2 -2
  129. package/components/hy-radio/hy-radio.vue +2 -101
  130. package/components/hy-radio/index.scss +93 -0
  131. package/components/hy-radio/typing.d.ts +1 -2
  132. package/components/hy-rate/hy-rate.vue +1 -33
  133. package/components/hy-rate/index.scss +33 -0
  134. package/components/hy-read-more/hy-read-more.vue +7 -30
  135. package/components/hy-read-more/index.scss +25 -0
  136. package/components/hy-read-more/props.ts +3 -3
  137. package/components/hy-read-more/typing.d.ts +1 -1
  138. package/components/hy-safe-bottom/hy-safe-bottom.vue +5 -9
  139. package/components/hy-safe-bottom/index.scss +5 -0
  140. package/components/hy-scroll-list/hy-scroll-list.vue +13 -43
  141. package/components/hy-scroll-list/index.scss +34 -0
  142. package/components/hy-scroll-list/props.ts +2 -2
  143. package/components/hy-scroll-list/typing.d.ts +1 -1
  144. package/components/hy-search/hy-search.vue +1 -83
  145. package/components/hy-search/index.scss +83 -0
  146. package/components/hy-slider/hy-slider.vue +14 -92
  147. package/components/hy-slider/index.scss +77 -0
  148. package/components/hy-status-bar/hy-status-bar.vue +41 -0
  149. package/components/hy-status-bar/index.scss +6 -0
  150. package/components/hy-status-bar/props.ts +8 -0
  151. package/components/hy-status-bar/typing.d.ts +12 -0
  152. package/components/hy-steps/hy-steps.vue +36 -163
  153. package/components/hy-steps/index.scss +131 -0
  154. package/components/hy-steps/props.ts +2 -2
  155. package/components/hy-steps/typing.d.ts +2 -2
  156. package/components/hy-subsection/hy-subsection.vue +40 -132
  157. package/components/hy-subsection/index.scss +82 -0
  158. package/components/hy-subsection/props.ts +1 -0
  159. package/components/hy-subsection/typing.d.ts +13 -4
  160. package/components/hy-swipe-action/hy-swipe-action.vue +294 -0
  161. package/components/hy-swipe-action/index.scss +9 -0
  162. package/components/hy-swipe-action/index.wxs +235 -0
  163. package/components/hy-swipe-action/props.ts +16 -0
  164. package/components/hy-swipe-action/typing.d.ts +55 -0
  165. package/components/hy-swipe-action/wxs.js +15 -0
  166. package/components/hy-swiper/hy-swiper-indicator.vue +5 -35
  167. package/components/hy-swiper/hy-swiper.vue +1 -54
  168. package/components/hy-swiper/index.scss +82 -0
  169. package/components/hy-switch/hy-switch.vue +62 -72
  170. package/components/hy-switch/index.scss +46 -0
  171. package/components/hy-switch/props.ts +4 -1
  172. package/components/hy-switch/typing.d.ts +14 -1
  173. package/components/hy-tabs/hy-tabs.vue +22 -81
  174. package/components/hy-tabs/index.scss +63 -0
  175. package/components/hy-tabs/props.ts +5 -5
  176. package/components/hy-tabs/typing.d.ts +1 -1
  177. package/components/hy-tag/hy-tag.vue +1 -214
  178. package/components/hy-tag/index.scss +204 -0
  179. package/components/hy-text/hy-text.vue +238 -0
  180. package/components/hy-text/index.scss +70 -0
  181. package/components/hy-text/index.ts +0 -0
  182. package/components/hy-text/props.ts +30 -0
  183. package/components/hy-text/typing.d.ts +98 -0
  184. package/components/hy-textarea/hy-textarea.vue +1 -46
  185. package/components/hy-textarea/index.scss +40 -0
  186. package/components/hy-tooltip/hy-tooltip.vue +42 -95
  187. package/components/hy-tooltip/index.scss +64 -0
  188. package/components/hy-tooltip/props.ts +2 -2
  189. package/components/hy-tooltip/typing.d.ts +1 -1
  190. package/components/hy-transition/hy-transition.vue +4 -2
  191. package/components/hy-transition/typing.d.ts +1 -13
  192. package/components/hy-upload/hy-upload.vue +37 -182
  193. package/components/hy-upload/index.scss +147 -0
  194. package/components/hy-upload/props.ts +2 -2
  195. package/components/hy-upload/typing.d.ts +11 -11
  196. package/components/hy-warn/hy-warn.vue +15 -123
  197. package/components/hy-warn/index.scss +109 -0
  198. package/components/hy-warn/props.ts +3 -3
  199. package/components/hy-warn/typing.d.ts +4 -3
  200. package/components/hy-waterfall/index.scss +82 -0
  201. package/components/index.ts +25 -1
  202. package/components/message/index.ts +54 -54
  203. package/config/color.ts +2 -1
  204. package/global/index.ts +6 -6
  205. package/global/register-properties.ts +2 -2
  206. package/index.scss +2 -1
  207. package/libs/css/common.scss +14 -2
  208. package/package.json +2 -2
  209. package/{libs/css → public/font}/iconfont.css +4 -4
  210. package/theme.scss +6 -4
  211. package/typing/modules/common.d.ts +16 -1
  212. package/utils/calendar.js +1021 -0
  213. package/utils/colorGradient.ts +112 -0
  214. package/utils/index.ts +2 -0
  215. package/utils/inside.ts +80 -34
  216. package/utils/inspect.ts +66 -0
  217. package/utils/utils.ts +11 -12
  218. package/libs/css/download.zip +0 -0
  219. /package/{libs/css → public/font}/iconfont.ttf +0 -0
  220. /package/{libs/css → public/font}/iconfont.woff +0 -0
  221. /package/{libs/css → public/font}/iconfont.woff2 +0 -0
@@ -5,7 +5,7 @@
5
5
  class="hy-card__head"
6
6
  :style="[{ padding: addUnit(paddingHead || padding) }, headStyle]"
7
7
  :class="{
8
- 'hy-border-bottom': headBorderBottom
8
+ 'hy-border__bottom': headBorderBottom,
9
9
  }"
10
10
  @tap="headClick"
11
11
  >
@@ -19,14 +19,14 @@
19
19
  :style="{
20
20
  height: addUnit(thumbWidth),
21
21
  width: addUnit(thumbWidth),
22
- borderRadius: thumbCircle ? '50px' : '4px'
22
+ borderRadius: thumbCircle ? '50px' : '4px',
23
23
  }"
24
24
  ></image>
25
25
  <text
26
26
  class="hy-card__head--left__title"
27
27
  :style="{
28
28
  fontSize: addUnit(titleSize),
29
- color: titleColor
29
+ color: titleColor,
30
30
  }"
31
31
  >
32
32
  {{ title }}
@@ -37,7 +37,7 @@
37
37
  class="hy-card__head__title__text"
38
38
  :style="{
39
39
  fontSize: addUnit(subTitleSize),
40
- color: subTitleColor
40
+ color: subTitleColor,
41
41
  }"
42
42
  >
43
43
  {{ subTitle }}
@@ -59,10 +59,10 @@
59
59
  @tap="footClick"
60
60
  :style="[
61
61
  { padding: $slots.foot ? addUnit(paddingFoot || padding) : 0 },
62
- footStyle
62
+ footStyle,
63
63
  ]"
64
64
  :class="{
65
- 'hy-border-top': footBorderTop
65
+ 'hy-border-top': footBorderTop,
66
66
  }"
67
67
  >
68
68
  <slot name="footer" />
@@ -72,7 +72,7 @@
72
72
 
73
73
  <script setup lang="ts">
74
74
  import defaultProps from "./props";
75
- import IProps from "./typing";
75
+ import type IProps from "./typing";
76
76
  import { addUnit } from "../../utils";
77
77
  import { computed, toRefs } from "vue";
78
78
 
@@ -89,19 +89,22 @@ const cardClass = computed(() => {
89
89
  (typeof borderRadius.value === "number"
90
90
  ? borderRadius.value
91
91
  : parseInt(borderRadius.value.replace(/px|rpx|vw|vh/g, "")) > 0) &&
92
- "hy-card--border"
92
+ "hy-card--border",
93
93
  ].filter(Boolean);
94
94
  });
95
95
  const cardStyle = computed(() => {
96
- return Object.assign(customStyle.value, {
97
- borderRadius: addUnit(borderRadius.value),
98
- margin: margin.value,
99
- boxShadow: boxShadow.value
100
- ? typeof boxShadow.value === "boolean"
101
- ? "0 0 10rpx 4rpx rgba(0, 0, 0, 0.16)"
102
- : boxShadow.value
103
- : ""
104
- });
96
+ return Object.assign(
97
+ {
98
+ borderRadius: addUnit(borderRadius.value),
99
+ margin: margin.value,
100
+ boxShadow: boxShadow.value
101
+ ? typeof boxShadow.value === "boolean"
102
+ ? "0 0 10rpx 4rpx rgba(0, 0, 0, 0.16)"
103
+ : boxShadow.value
104
+ : "",
105
+ },
106
+ customStyle.value,
107
+ );
105
108
  });
106
109
 
107
110
  const click = () => {
@@ -128,71 +131,5 @@ const footClick = () => {
128
131
  </script>
129
132
 
130
133
  <style lang="scss" scoped>
131
- @import "../../libs/css/mixin.scss";
132
- @import "../../theme.scss";
133
-
134
- .hy-card {
135
- position: relative;
136
- overflow: hidden;
137
- font-size: 28rpx;
138
- background-color: #ffffff;
139
- box-sizing: border-box;
140
-
141
- &-full {
142
- // 如果是与屏幕之间不留空隙,应该设置左右边距为0
143
- margin-left: 0 !important;
144
- margin-right: 0 !important;
145
- width: 100%;
146
- }
147
-
148
- &--border:after {
149
- border-radius: 16rpx;
150
- }
151
-
152
- &__head {
153
- &--flex {
154
- display: flex;
155
- align-items: center;
156
- justify-content: space-between;
157
- }
158
-
159
- &--left {
160
- color: #303133ff;
161
- display: flex;
162
-
163
- &__thumb {
164
- margin-right: 16rpx;
165
- }
166
-
167
- &__title {
168
- max-width: 400rpx;
169
- height: 20px;
170
- @include line-feed;
171
- }
172
- }
173
-
174
- &--right {
175
- color: $hy-text-color-grey;
176
- margin-left: 6rpx;
177
- }
178
- }
179
-
180
- &__body {
181
- color: $hy-bg-color;
182
- }
183
-
184
- &__foot {
185
- color: $hy-text-color-grey;
186
- }
187
- }
188
- .hy-border-bottom {
189
- border-bottom: $hy-border-line;
190
- }
191
-
192
- .hy-border-top {
193
- border-top: $hy-border-line;
194
- }
195
- .hy-border {
196
- border: $hy-border-line;
197
- }
134
+ @import "./index.scss";
198
135
  </style>
@@ -0,0 +1,57 @@
1
+ @use "../../libs/css/mixin.scss" as *;
2
+ @use "../../theme.scss" as *;
3
+
4
+ .hy-card {
5
+ position: relative;
6
+ overflow: hidden;
7
+ font-size: 28rpx;
8
+ background-color: #ffffff;
9
+ box-sizing: border-box;
10
+
11
+ &-full {
12
+ // 如果是与屏幕之间不留空隙,应该设置左右边距为0
13
+ margin-left: 0 !important;
14
+ margin-right: 0 !important;
15
+ width: 100%;
16
+ }
17
+
18
+ &--border:after {
19
+ border-radius: 16rpx;
20
+ }
21
+
22
+ &__head {
23
+ &--flex {
24
+ display: flex;
25
+ align-items: center;
26
+ justify-content: space-between;
27
+ }
28
+
29
+ &--left {
30
+ color: #303133ff;
31
+ display: flex;
32
+
33
+ &__thumb {
34
+ margin-right: 16rpx;
35
+ }
36
+
37
+ &__title {
38
+ max-width: 400rpx;
39
+ height: 20px;
40
+ @include line-feed;
41
+ }
42
+ }
43
+
44
+ &--right {
45
+ color: $hy-text-color-grey;
46
+ margin-left: 6rpx;
47
+ }
48
+ }
49
+
50
+ &__body {
51
+ color: $hy-bg-color;
52
+ }
53
+
54
+ &__foot {
55
+ color: $hy-text-color-grey;
56
+ }
57
+ }
@@ -1,4 +1,4 @@
1
- import IProps from "./typing";
1
+ import type IProps from "./typing";
2
2
 
3
3
  const defaultProps: IProps = {
4
4
  full: false,
@@ -23,7 +23,7 @@ const defaultProps: IProps = {
23
23
  paddingFoot: "",
24
24
  showHead: true,
25
25
  showFoot: true,
26
- boxShadow: true
26
+ boxShadow: true,
27
27
  };
28
28
 
29
29
  export default defaultProps;
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from "vue";
1
+ import type { CSSProperties } from "vue";
2
2
 
3
3
  export default interface IProps {
4
4
  /**
@@ -163,141 +163,5 @@ const clickHandler = (e: Event, temp: CellContentVo, index: number) => {
163
163
  </script>
164
164
 
165
165
  <style lang="scss" scoped>
166
- @import "../../libs/css/mixin.scss";
167
- @import "../../theme.scss";
168
-
169
- .hy-cell {
170
- flex: 1;
171
-
172
- /*标题*/
173
- &__title {
174
- padding: $hy-border-margin-padding-lg $hy-border-margin-padding-sm;
175
-
176
- &-nav {
177
- display: flex;
178
- align-items: center;
179
-
180
- &--ver {
181
- border-radius: 4rpx;
182
- width: 4px;
183
- height: 20px;
184
- margin-right: 16rpx;
185
- }
186
- &--text {
187
- font-size: $hy-font-size-subtitle;
188
- line-height: 16px;
189
- color: $hy-color-title;
190
- }
191
- }
192
- }
193
-
194
- /*row内容*/
195
- &__body {
196
- /* #ifndef APP-NVUE */
197
- box-sizing: border-box;
198
- /* #endif */
199
- font-size: $hy-font-size-paragraph;
200
- color: $hy-color-paragraph;
201
- // line-height: $u-cell-line-height;
202
- align-items: center;
203
- //justify-content: space-between;
204
-
205
- &--container {
206
- @include flex(row);
207
- align-items: center;
208
- justify-content: space-between;
209
- flex: 1;
210
-
211
- /* 大 */
212
- &__large {
213
- font-size: $hy-font-size-lg;
214
- padding: 35rpx;
215
- line-height: 25px;
216
- }
217
-
218
- /* 默认 */
219
- &__medium {
220
- font-size: $hy-font-size-base;
221
- padding: 30rpx;
222
- line-height: 20px;
223
- }
224
-
225
- /* 小 */
226
- &__small {
227
- font-size: $hy-font-size-sm;
228
- padding: 25rpx;
229
- line-height: 15px;
230
- }
231
-
232
- /*点击状态*/
233
- &__clickable {
234
- background-color: $hy-bg-color-grey;
235
- }
236
-
237
- &__content {
238
- @include flex(row);
239
- /*左边icon*/
240
- &-icon {
241
- @include flex();
242
- align-items: center;
243
- margin-right: 10px;
244
- }
245
- /*行头部*/
246
- &-title {
247
- margin-right: $hy-border-margin-padding-sm;
248
- flex: $hy-font-size-subtitle;
249
- display: flex;
250
- flex-direction: column;
251
-
252
- /*标题*/
253
- &--text {
254
- color: $hy-color-title;
255
- }
256
-
257
- /*sub值*/
258
- &--sub {
259
- margin-top: $hy-border-margin-padding-sm;
260
- color: $hy-text-color-grey;
261
- }
262
- }
263
- }
264
-
265
- /*cell值*/
266
- &__center {
267
- @include flex();
268
- max-width: 90%;
269
- flex: 1;
270
- &__value {
271
- line-height: 24px;
272
- color: $hy-text-color-grey;
273
- margin-right: $hy-border-margin-padding-sm;
274
- }
275
- }
276
-
277
- /*右边icon*/
278
- &__right-icon {
279
- transition: transform 0.3s;
280
-
281
- &--up {
282
- transform: rotate(-90deg);
283
- }
284
-
285
- &--left {
286
- transform: rotate(180deg);
287
- }
288
-
289
- &--down {
290
- transform: rotate(90deg);
291
- }
292
- }
293
- }
294
- }
295
-
296
- &--disabled {
297
- color: $hy-text-color-disable;
298
- /* #ifndef APP-NVUE */
299
- cursor: not-allowed;
300
- /* #endif */
301
- }
302
- }
166
+ @import "./index.scss";
303
167
  </style>
@@ -0,0 +1,137 @@
1
+ @use "../../libs/css/mixin.scss" as *;
2
+ @use "../../theme.scss" as *;
3
+
4
+ .hy-cell {
5
+ flex: 1;
6
+
7
+ /*标题*/
8
+ &__title {
9
+ padding: $hy-border-margin-padding-lg $hy-border-margin-padding-sm;
10
+
11
+ &-nav {
12
+ display: flex;
13
+ align-items: center;
14
+
15
+ &--ver {
16
+ border-radius: 4rpx;
17
+ width: 4px;
18
+ height: 20px;
19
+ margin-right: 16rpx;
20
+ }
21
+ &--text {
22
+ font-size: $hy-font-size-subtitle;
23
+ line-height: 16px;
24
+ color: $hy-color-title;
25
+ }
26
+ }
27
+ }
28
+
29
+ /*row内容*/
30
+ &__body {
31
+ /* #ifndef APP-NVUE */
32
+ box-sizing: border-box;
33
+ /* #endif */
34
+ font-size: $hy-font-size-paragraph;
35
+ color: $hy-color-paragraph;
36
+ // line-height: $u-cell-line-height;
37
+ align-items: center;
38
+ //justify-content: space-between;
39
+
40
+ &--container {
41
+ @include flex(row);
42
+ align-items: center;
43
+ justify-content: space-between;
44
+ flex: 1;
45
+
46
+ /* 大 */
47
+ &__large {
48
+ font-size: $hy-font-size-lg;
49
+ padding: 35rpx;
50
+ line-height: 25px;
51
+ }
52
+
53
+ /* 默认 */
54
+ &__medium {
55
+ font-size: $hy-font-size-base;
56
+ padding: 30rpx;
57
+ line-height: 20px;
58
+ }
59
+
60
+ /* 小 */
61
+ &__small {
62
+ font-size: $hy-font-size-sm;
63
+ padding: 25rpx;
64
+ line-height: 15px;
65
+ }
66
+
67
+ /*点击状态*/
68
+ &__clickable {
69
+ background-color: $hy-bg-color-grey;
70
+ }
71
+
72
+ &__content {
73
+ @include flex(row);
74
+ /*左边icon*/
75
+ &-icon {
76
+ @include flex();
77
+ align-items: center;
78
+ margin-right: 10px;
79
+ }
80
+ /*行头部*/
81
+ &-title {
82
+ margin-right: $hy-border-margin-padding-sm;
83
+ flex: $hy-font-size-subtitle;
84
+ display: flex;
85
+ flex-direction: column;
86
+
87
+ /*标题*/
88
+ &--text {
89
+ color: $hy-color-title;
90
+ }
91
+
92
+ /*sub值*/
93
+ &--sub {
94
+ margin-top: $hy-border-margin-padding-sm;
95
+ color: $hy-text-color-grey;
96
+ }
97
+ }
98
+ }
99
+
100
+ /*cell值*/
101
+ &__center {
102
+ @include flex();
103
+ max-width: 90%;
104
+ flex: 1;
105
+ &__value {
106
+ line-height: 24px;
107
+ color: $hy-text-color-grey;
108
+ margin-right: $hy-border-margin-padding-sm;
109
+ }
110
+ }
111
+
112
+ /*右边icon*/
113
+ &__right-icon {
114
+ transition: transform 0.3s;
115
+
116
+ &--up {
117
+ transform: rotate(-90deg);
118
+ }
119
+
120
+ &--left {
121
+ transform: rotate(180deg);
122
+ }
123
+
124
+ &--down {
125
+ transform: rotate(90deg);
126
+ }
127
+ }
128
+ }
129
+ }
130
+
131
+ &--disabled {
132
+ color: $hy-text-color-disable;
133
+ /* #ifndef APP-NVUE */
134
+ cursor: not-allowed;
135
+ /* #endif */
136
+ }
137
+ }
@@ -69,6 +69,7 @@ const onCheckbox = ({ name }: { name: number }) => {
69
69
  </script>
70
70
 
71
71
  <style lang="scss" scoped>
72
+ //@import "./index.scss";
72
73
  .hy-check-button {
73
74
  display: grid;
74
75
  grid-template-columns: v-bind(col);
@@ -0,0 +1,5 @@
1
+ .hy-check-button {
2
+ display: grid;
3
+ grid-template-columns: v-bind(col);
4
+ gap: v-bind(gap);
5
+ }
@@ -7,7 +7,7 @@
7
7
  :style="checkboxStyle"
8
8
  :class="[
9
9
  `hy-checkbox-label--${iconPlacement}`,
10
- borderBottom && placement === 'column' && 'hy-border-bottom',
10
+ borderBottom && placement === 'column' && 'hy-border__bottom',
11
11
  ]"
12
12
  >
13
13
  <view
@@ -212,98 +212,5 @@ const setRadioCheckedStatus = (temp: CheckboxColumnsVo) => {
212
212
  </script>
213
213
 
214
214
  <style lang="scss" scoped>
215
- @import "../../libs/css/mixin.scss";
216
- @import "../../theme.scss";
217
-
218
- .hy-checkbox {
219
- &-group {
220
- &--row {
221
- /* #ifndef APP-NVUE */
222
- display: flex;
223
- /* #endif */
224
- flex-flow: row wrap;
225
- }
226
-
227
- &--column {
228
- @include flex(column);
229
- }
230
- }
231
-
232
- /* #ifndef APP-NVUE */
233
- @include flex(row);
234
- /* #endif */
235
- overflow: hidden;
236
- flex-direction: row;
237
- align-items: center;
238
- margin-bottom: 5px;
239
- margin-top: 5px;
240
-
241
- &-label--left {
242
- flex-direction: row;
243
- }
244
-
245
- &-label--right {
246
- flex-direction: row-reverse;
247
- justify-content: space-between;
248
- }
249
-
250
- &__icon-wrap {
251
- /* #ifndef APP-NVUE */
252
- box-sizing: border-box;
253
- // nvue下,border-color过渡有问题
254
- transition-property: border-color, background-color, color;
255
- transition-duration: 0.2s;
256
- /* #endif */
257
- @include flex;
258
- align-items: center;
259
- justify-content: center;
260
- color: transparent;
261
- text-align: center;
262
- margin-right: $hy-border-margin-padding-sm;
263
- border: $hy-border-line;
264
-
265
- /* #ifdef MP-TOUTIAO */
266
- // 头条小程序兼容性问题,需要设置行高为0,否则图标偏下
267
- &__icon {
268
- line-height: 0;
269
- }
270
-
271
- /* #endif */
272
-
273
- &--circle {
274
- border-radius: 50%;
275
- }
276
-
277
- &--square {
278
- border-radius: 3px;
279
- }
280
-
281
- &--checked {
282
- color: $hy-text-color-inverse;
283
- background-color: $hy-primary;
284
- border-color: $hy-primary;
285
- }
286
-
287
- &--disabled {
288
- background-color: $hy-color-disable-bg !important;
289
- }
290
-
291
- &--disabled--checked {
292
- color: $hy-color-disable-icon !important;
293
- }
294
- }
295
-
296
- &__label-wrap {
297
- /* #ifndef APP-NVUE */
298
- word-wrap: break-word;
299
- /* #endif */
300
- color: $hy-text-color;
301
- font-size: $hy-font-size-base;
302
- margin-right: $hy-border-margin-padding-sm;
303
-
304
- &--disabled {
305
- color: $hy-text-color-disable;
306
- }
307
- }
308
- }
215
+ @import "./index.scss";
309
216
  </style>