hy-app 0.1.2 → 0.1.4

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 (247) 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 +17 -128
  16. package/components/hy-button/index.scss +116 -0
  17. package/components/hy-button/typing.d.ts +1 -1
  18. package/components/hy-calendar/header.vue +76 -0
  19. package/components/hy-calendar/hy-calendar.vue +366 -0
  20. package/components/hy-calendar/index.scss +171 -0
  21. package/components/hy-calendar/month.vue +524 -0
  22. package/components/hy-calendar/props.ts +37 -0
  23. package/components/hy-calendar/typing.d.ts +126 -0
  24. package/components/hy-card/hy-card.vue +21 -84
  25. package/components/hy-card/index.scss +57 -0
  26. package/components/hy-card/props.ts +2 -2
  27. package/components/hy-card/typing.d.ts +1 -1
  28. package/components/hy-cell/hy-cell.vue +1 -137
  29. package/components/hy-cell/index.scss +137 -0
  30. package/components/hy-check-button/hy-check-button.vue +1 -0
  31. package/components/hy-check-button/index.scss +5 -0
  32. package/components/hy-checkbox/hy-checkbox.vue +2 -95
  33. package/components/hy-checkbox/index.scss +94 -0
  34. package/components/hy-checkbox/typing.d.ts +1 -2
  35. package/components/hy-count-down/hy-count-down.vue +150 -0
  36. package/components/hy-count-down/index.scss +6 -0
  37. package/components/hy-count-down/index.ts +52 -0
  38. package/components/hy-count-down/props.ts +10 -0
  39. package/components/hy-count-down/typing.d.ts +20 -0
  40. package/components/hy-count-to/hy-count-to.vue +213 -0
  41. package/components/hy-count-to/index.scss +6 -0
  42. package/components/hy-count-to/props.ts +17 -0
  43. package/components/hy-count-to/typing.d.ts +48 -0
  44. package/components/hy-datetime-picker/hy-datetime-picker.vue +2 -28
  45. package/components/hy-datetime-picker/index.scss +28 -0
  46. package/components/hy-divider/hy-divider.vue +24 -49
  47. package/components/hy-divider/index.scss +26 -0
  48. package/components/hy-divider/props.ts +2 -2
  49. package/components/hy-divider/typing.d.ts +1 -1
  50. package/components/hy-dropdown/hy-dropdown.vue +43 -0
  51. package/components/hy-dropdown/index.scss +17 -0
  52. package/components/hy-dropdown/props.ts +17 -0
  53. package/components/hy-dropdown/typing.d.ts +48 -0
  54. package/components/hy-dropdown-item/hy-dropdown-item.vue +194 -0
  55. package/components/hy-dropdown-item/index.scss +96 -0
  56. package/components/hy-dropdown-item/props.ts +10 -0
  57. package/components/hy-dropdown-item/typing.d.ts +31 -0
  58. package/components/hy-empty/hy-empty.vue +8 -26
  59. package/components/hy-empty/index.scss +19 -0
  60. package/components/hy-empty/props.ts +2 -2
  61. package/components/hy-empty/typing.d.ts +1 -1
  62. package/components/hy-float-button/hy-float-button.vue +217 -0
  63. package/components/hy-float-button/index.scss +67 -0
  64. package/components/hy-float-button/props.ts +25 -0
  65. package/components/hy-float-button/typing.d.ts +93 -0
  66. package/components/hy-folding-panel/hy-folding-panel.vue +9 -12
  67. package/components/hy-folding-panel/index.scss +6 -0
  68. package/components/hy-folding-panel/props.ts +2 -2
  69. package/components/hy-folding-panel/typing.d.ts +2 -2
  70. package/components/hy-form/hy-form.vue +17 -34
  71. package/components/hy-form/index.scss +30 -0
  72. package/components/hy-form/props.ts +2 -0
  73. package/components/hy-form/typing.d.ts +9 -1
  74. package/components/hy-grid/hy-grid.vue +1 -43
  75. package/components/hy-grid/index.scss +40 -0
  76. package/components/hy-icon/hy-icon.vue +1 -93
  77. package/components/hy-icon/index.scss +84 -0
  78. package/components/hy-image/hy-image.vue +216 -0
  79. package/components/hy-image/index.scss +26 -0
  80. package/components/hy-image/props.ts +24 -0
  81. package/components/hy-image/typing.d.ts +76 -0
  82. package/components/hy-input/hy-input.vue +2 -72
  83. package/components/hy-input/index.scss +65 -0
  84. package/components/hy-line/hy-line.vue +4 -8
  85. package/components/hy-line/index.scss +5 -0
  86. package/components/hy-line/props.ts +3 -3
  87. package/components/hy-line/typing.d.ts +2 -2
  88. package/components/hy-line-progress/hy-line-progress.vue +15 -44
  89. package/components/hy-line-progress/index.scss +38 -0
  90. package/components/hy-line-progress/props.ts +2 -2
  91. package/components/hy-line-progress/typing.d.ts +1 -1
  92. package/components/hy-list/hy-list.vue +11 -41
  93. package/components/hy-list/index.scss +32 -0
  94. package/components/hy-list/props.ts +2 -2
  95. package/components/hy-loading/hy-loading.vue +95 -0
  96. package/components/hy-loading/index.scss +103 -0
  97. package/components/hy-loading/props.ts +17 -0
  98. package/components/hy-loading/typing.d.ts +53 -0
  99. package/components/hy-login/TheUserLogin.vue +20 -88
  100. package/components/hy-login/hy-login.vue +9 -9
  101. package/components/hy-login/props.ts +4 -4
  102. package/components/hy-modal/hy-modal.vue +11 -89
  103. package/components/hy-modal/index.scss +77 -0
  104. package/components/hy-modal/props.ts +2 -2
  105. package/components/hy-modal/typing.d.ts +1 -1
  106. package/components/hy-navbar/hy-navbar.vue +20 -92
  107. package/components/hy-navbar/index.scss +67 -0
  108. package/components/hy-navbar/props.ts +2 -2
  109. package/components/hy-navbar/typing.d.ts +1 -1
  110. package/components/hy-notice-bar/hy-column-notice.vue +11 -39
  111. package/components/hy-notice-bar/hy-notice-bar.vue +10 -12
  112. package/components/hy-notice-bar/hy-row-notice.vue +16 -58
  113. package/components/hy-notice-bar/index.scss +93 -0
  114. package/components/hy-notice-bar/props.ts +4 -2
  115. package/components/hy-notice-bar/typing.d.ts +13 -3
  116. package/components/hy-number-step/hy-number-step.vue +1 -70
  117. package/components/hy-number-step/index.scss +71 -0
  118. package/components/hy-overlay/hy-overlay.vue +2 -14
  119. package/components/hy-overlay/index.scss +9 -0
  120. package/components/hy-parse/hy-parse.vue +499 -0
  121. package/components/hy-parse/index.scss +9 -0
  122. package/components/hy-parse/node/node.vue +584 -0
  123. package/components/hy-parse/parser.js +1337 -0
  124. package/components/hy-parse/props.ts +19 -0
  125. package/components/hy-parse/typing.d.ts +68 -0
  126. package/components/hy-picker/hy-picker.vue +1 -68
  127. package/components/hy-picker/index.scss +68 -0
  128. package/components/hy-popup/hy-popup.vue +1 -74
  129. package/components/hy-popup/index.scss +60 -0
  130. package/components/hy-price/hy-price.vue +7 -19
  131. package/components/hy-price/index.scss +11 -0
  132. package/components/hy-price/props.ts +4 -3
  133. package/components/hy-price/typing.d.ts +8 -4
  134. package/components/hy-qrcode/hy-qrcode.vue +15 -37
  135. package/components/hy-qrcode/index.scss +23 -0
  136. package/components/hy-qrcode/props.ts +2 -2
  137. package/components/hy-qrcode/typing.d.ts +2 -2
  138. package/components/hy-radio/hy-radio.vue +2 -101
  139. package/components/hy-radio/index.scss +93 -0
  140. package/components/hy-radio/typing.d.ts +1 -2
  141. package/components/hy-rate/hy-rate.vue +1 -33
  142. package/components/hy-rate/index.scss +33 -0
  143. package/components/hy-read-more/hy-read-more.vue +7 -30
  144. package/components/hy-read-more/index.scss +25 -0
  145. package/components/hy-read-more/props.ts +3 -3
  146. package/components/hy-read-more/typing.d.ts +1 -1
  147. package/components/hy-safe-bottom/hy-safe-bottom.vue +5 -9
  148. package/components/hy-safe-bottom/index.scss +5 -0
  149. package/components/hy-scroll-list/hy-scroll-list.vue +13 -43
  150. package/components/hy-scroll-list/index.scss +34 -0
  151. package/components/hy-scroll-list/props.ts +2 -2
  152. package/components/hy-scroll-list/typing.d.ts +1 -1
  153. package/components/hy-search/hy-search.vue +1 -83
  154. package/components/hy-search/index.scss +83 -0
  155. package/components/hy-slider/hy-slider.vue +18 -95
  156. package/components/hy-slider/index.scss +77 -0
  157. package/components/hy-status-bar/hy-status-bar.vue +41 -0
  158. package/components/hy-status-bar/index.scss +6 -0
  159. package/components/hy-status-bar/props.ts +8 -0
  160. package/components/hy-status-bar/typing.d.ts +12 -0
  161. package/components/hy-steps/hy-steps.vue +36 -163
  162. package/components/hy-steps/index.scss +131 -0
  163. package/components/hy-steps/props.ts +2 -2
  164. package/components/hy-steps/typing.d.ts +2 -2
  165. package/components/hy-submitBar/Index.vue +17 -0
  166. package/components/hy-submitBar/hy-submitBar.vue +216 -0
  167. package/components/hy-submitBar/index.scss +9 -0
  168. package/components/hy-submitBar/props.ts +22 -0
  169. package/components/hy-submitBar/typing.d.ts +88 -0
  170. package/components/hy-subsection/hy-subsection.vue +40 -132
  171. package/components/hy-subsection/index.scss +82 -0
  172. package/components/hy-subsection/props.ts +1 -0
  173. package/components/hy-subsection/typing.d.ts +13 -4
  174. package/components/hy-swipe-action/hy-swipe-action.vue +294 -0
  175. package/components/hy-swipe-action/index.scss +9 -0
  176. package/components/hy-swipe-action/index.wxs +235 -0
  177. package/components/hy-swipe-action/props.ts +16 -0
  178. package/components/hy-swipe-action/typing.d.ts +55 -0
  179. package/components/hy-swipe-action/wxs.js +15 -0
  180. package/components/hy-swiper/hy-swiper-indicator.vue +5 -35
  181. package/components/hy-swiper/hy-swiper.vue +1 -54
  182. package/components/hy-swiper/index.scss +82 -0
  183. package/components/hy-switch/hy-switch.vue +62 -72
  184. package/components/hy-switch/index.scss +46 -0
  185. package/components/hy-switch/props.ts +4 -1
  186. package/components/hy-switch/typing.d.ts +14 -1
  187. package/components/hy-tabs/hy-tabs.vue +22 -81
  188. package/components/hy-tabs/index.scss +63 -0
  189. package/components/hy-tabs/props.ts +5 -5
  190. package/components/hy-tabs/typing.d.ts +1 -1
  191. package/components/hy-tag/hy-tag.vue +25 -220
  192. package/components/hy-tag/index.scss +205 -0
  193. package/components/hy-text/hy-text.vue +238 -0
  194. package/components/hy-text/index.scss +70 -0
  195. package/components/hy-text/index.ts +0 -0
  196. package/components/hy-text/props.ts +30 -0
  197. package/components/hy-text/typing.d.ts +98 -0
  198. package/components/hy-textarea/hy-textarea.vue +1 -46
  199. package/components/hy-textarea/index.scss +40 -0
  200. package/components/hy-toast/hy-toast.vue +175 -0
  201. package/components/hy-toast/index.scss +77 -0
  202. package/components/hy-toast/props.ts +3 -0
  203. package/components/hy-toast/typing.d.ts +38 -0
  204. package/components/hy-tooltip/hy-tooltip.vue +42 -95
  205. package/components/hy-tooltip/index.scss +64 -0
  206. package/components/hy-tooltip/props.ts +2 -2
  207. package/components/hy-tooltip/typing.d.ts +1 -1
  208. package/components/hy-transition/hy-transition.vue +4 -2
  209. package/components/hy-transition/typing.d.ts +1 -13
  210. package/components/hy-upload/hy-upload.vue +37 -182
  211. package/components/hy-upload/index.scss +147 -0
  212. package/components/hy-upload/props.ts +2 -2
  213. package/components/hy-upload/typing.d.ts +11 -11
  214. package/components/hy-warn/hy-warn.vue +17 -144
  215. package/components/hy-warn/index.scss +109 -0
  216. package/components/hy-warn/props.ts +3 -3
  217. package/components/hy-warn/typing.d.ts +4 -3
  218. package/components/hy-waterfall/hy-waterfall.vue +168 -38
  219. package/components/hy-waterfall/index.scss +16 -0
  220. package/components/hy-waterfall/props.ts +4 -5
  221. package/components/hy-waterfall/typing.d.ts +5 -9
  222. package/components/index.ts +25 -1
  223. package/components/message/index.ts +54 -54
  224. package/composables/index.ts +1 -0
  225. package/composables/useShare.ts +27 -0
  226. package/config/color.ts +3 -2
  227. package/config/icon.ts +21 -1
  228. package/global/index.ts +6 -6
  229. package/global/register-properties.ts +2 -2
  230. package/index.scss +2 -1
  231. package/index.ts +9 -8
  232. package/libs/css/common.scss +14 -2
  233. package/package.json +3 -2
  234. package/{libs/css → public/font}/iconfont.css +4 -4
  235. package/theme.scss +6 -4
  236. package/typing/index.ts +1 -1
  237. package/typing/modules/common.d.ts +36 -1
  238. package/utils/calendar.js +1021 -0
  239. package/utils/colorGradient.ts +112 -0
  240. package/utils/index.ts +2 -0
  241. package/utils/inside.ts +80 -34
  242. package/utils/inspect.ts +115 -0
  243. package/utils/utils.ts +20 -19
  244. package/libs/css/download.zip +0 -0
  245. /package/{libs/css → public/font}/iconfont.ttf +0 -0
  246. /package/{libs/css → public/font}/iconfont.woff +0 -0
  247. /package/{libs/css → public/font}/iconfont.woff2 +0 -0
@@ -0,0 +1,63 @@
1
+ @use "../../theme.scss" as *;
2
+ @use "../../libs/css/mixin.scss" as *;
3
+
4
+ .hy-tabs {
5
+ &__wrapper {
6
+ @include flex;
7
+ align-items: center;
8
+
9
+ &__scroll-view-wrapper {
10
+ flex: 1;
11
+ /* #ifndef APP-NVUE */
12
+ overflow: auto hidden;
13
+ /* #endif */
14
+ }
15
+
16
+ &__scroll-view {
17
+ @include flex;
18
+ flex: 1;
19
+ }
20
+
21
+ &__nav {
22
+ @include flex;
23
+ position: relative;
24
+
25
+ &__item {
26
+ padding: 0 11px;
27
+ @include flex;
28
+ align-items: center;
29
+ justify-content: center;
30
+ /* #ifdef H5 */
31
+ cursor: pointer;
32
+ /* #endif */
33
+
34
+ &--disabled {
35
+ /* #ifdef H5 */
36
+ cursor: not-allowed;
37
+ /* #endif */
38
+ }
39
+
40
+ &__text {
41
+ font-size: 15px;
42
+ color: $hy-text-color-grey;
43
+ white-space: nowrap !important;
44
+
45
+ &--disabled {
46
+ color: $hy-color-disable-bg !important;
47
+ }
48
+ }
49
+ }
50
+
51
+ &__line {
52
+ height: 3px;
53
+ background: $hy-primary;
54
+ width: 30px;
55
+ position: absolute;
56
+ bottom: 2px;
57
+ border-radius: $hy-border-radius-semicircle;
58
+ transition-property: transform;
59
+ transition-duration: 300ms;
60
+ }
61
+ }
62
+ }
63
+ }
@@ -1,4 +1,4 @@
1
- import IProps from "./typing";
1
+ import type IProps from "./typing";
2
2
 
3
3
  const defaultProps: IProps = {
4
4
  list: [],
@@ -7,20 +7,20 @@ const defaultProps: IProps = {
7
7
  duration: 300,
8
8
  lineColor: "#3c9cff",
9
9
  activeStyle: {
10
- color: "#303133"
10
+ color: "#303133",
11
11
  },
12
12
  inactiveStyle: {
13
- color: "#606266"
13
+ color: "#606266",
14
14
  },
15
15
  lineWidth: 20,
16
16
  lineHeight: 3,
17
17
  lineBgSize: "cover",
18
18
  itemStyle: {
19
- height: "44px"
19
+ height: "44px",
20
20
  },
21
21
  swiperHeight: "calc(100vh - 44px)",
22
22
  scrollable: true,
23
- iconStyle: {}
23
+ iconStyle: {},
24
24
  };
25
25
 
26
26
  export default defaultProps;
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from "vue";
1
+ import type { CSSProperties } from "vue";
2
2
  import BadgeProps from "../hy-badge/typing";
3
3
  export interface TabsItemVo extends AnyObject {
4
4
  /**
@@ -11,7 +11,7 @@
11
11
  :customStyle="{ marginRight: '3px' }"
12
12
  ></HyIcon>
13
13
  </slot>
14
- <text :class="textClass" :style="{ color: color }">
14
+ <text :class="textClass" :style="textStyle">
15
15
  <slot>
16
16
  {{ text }}
17
17
  </slot>
@@ -40,6 +40,7 @@ import type IProps from "./typing";
40
40
  import HyTransition from "../hy-transition/hy-transition.vue";
41
41
  import HyIcon from "../hy-icon/hy-icon.vue";
42
42
  import { IconConfig } from "../../config";
43
+ import {colorGradient} from "@/package";
43
44
 
44
45
  const props = withDefaults(defineProps<IProps>(), defaultProps);
45
46
  const {
@@ -84,16 +85,33 @@ const tagStyle = computed<CSSProperties>(() => {
84
85
  const style: CSSProperties = {
85
86
  marginRight: closable.value ? "10px" : 0,
86
87
  marginTop: closable.value ? "10px" : 0,
88
+ background: bgColor.value,
89
+ borderColor: borderColor.value
87
90
  };
88
- if (bgColor.value) {
89
- style.background = bgColor.value;
90
- }
91
- if (borderColor.value) {
92
- style.borderColor = borderColor.value;
91
+
92
+ if(color.value) {
93
+ if (plain.value) {
94
+ style.borderColor = color.value;
95
+ if(plainFill.value) {
96
+ style.background = colorGradient(color.value, "#FFFFFF", 100)[90];
97
+ }
98
+ } else {
99
+ style.background = color.value;
100
+ style.borderColor = color.value;
101
+ }
93
102
  }
103
+
94
104
  return Object.assign(style, customStyle.value);
95
105
  });
96
106
 
107
+ /**
108
+ * @description 文本样式
109
+ * */
110
+ const textStyle = computed(() => {
111
+ const style: CSSProperties = {}
112
+ if(color.value && plain.value) style.color = color.value;
113
+ return style;
114
+ })
97
115
  /**
98
116
  * @description 文本类名
99
117
  * */
@@ -155,218 +173,5 @@ const clickHandler = () => {
155
173
  </script>
156
174
 
157
175
  <style lang="scss" scoped>
158
- @import "../../libs/css/mixin.scss";
159
- @import "../../theme.scss";
160
-
161
- .hy-tag {
162
- @include flex;
163
- align-items: center;
164
- border-style: solid;
165
-
166
- &__wrapper {
167
- position: relative;
168
- }
169
-
170
- /*禁用*/
171
- &--disabled {
172
- background-color: $hy-color-disable-bg;
173
- color: $hy-text-color-disable;
174
- border: 1px solid $hy-color-disable-icon;
175
- }
176
-
177
- &--circle {
178
- border-radius: 100px;
179
- }
180
-
181
- &--square {
182
- border-radius: 3px;
183
- }
184
-
185
- &__icon {
186
- margin-right: 4px;
187
- }
188
-
189
- &__text {
190
- &--small {
191
- font-size: $hy-font-size-sm;
192
- line-height: $hy-font-size-sm;
193
- }
194
-
195
- &--medium {
196
- font-size: $hy-font-size-base;
197
- line-height: $hy-font-size-base;
198
- }
199
-
200
- &--large {
201
- font-size: $hy-font-size-lg;
202
- line-height: $hy-font-size-lg;
203
- }
204
- }
205
-
206
- &--small {
207
- height: 22px;
208
- line-height: 22px;
209
- padding: 0 5px;
210
- }
211
-
212
- &--medium {
213
- height: 26px;
214
- line-height: 22px;
215
- padding: 0 10px;
216
- }
217
-
218
- &--large {
219
- height: 32px;
220
- line-height: 32px;
221
- padding: 0 15px;
222
- }
223
-
224
- &--primary {
225
- background-color: $hy-primary;
226
- border-width: 1px;
227
- border-color: $hy-primary;
228
- }
229
-
230
- &--primary--plain {
231
- border-width: 1px;
232
- border-color: $hy-primary;
233
- }
234
-
235
- &--primary--plain--fill {
236
- background-color: #ecf5ff;
237
- }
238
-
239
- &__text--primary {
240
- color: #ffffff;
241
- }
242
-
243
- &__text--primary--plain {
244
- color: $hy-primary;
245
- }
246
-
247
- &--error {
248
- background-color: $hy-error;
249
- border-width: 1px;
250
- border-color: $hy-error;
251
- }
252
-
253
- &--error--plain {
254
- border-width: 1px;
255
- border-color: $hy-error;
256
- }
257
-
258
- &--error--plain--fill {
259
- background-color: #fef0f0;
260
- }
261
-
262
- &__text--error {
263
- color: #ffffff;
264
- }
265
-
266
- &__text--error--plain {
267
- color: $hy-error;
268
- }
269
-
270
- &--warning {
271
- background-color: $hy-warning;
272
- border-width: 1px;
273
- border-color: $hy-warning;
274
- }
275
-
276
- &--warning--plain {
277
- border-width: 1px;
278
- border-color: $hy-warning;
279
- }
280
-
281
- &--warning--plain--fill {
282
- background-color: #fdf6ec;
283
- }
284
-
285
- &__text--warning {
286
- color: #ffffff;
287
- }
288
-
289
- &__text--warning--plain {
290
- color: $hy-warning;
291
- }
292
-
293
- &--success {
294
- background-color: $hy-success;
295
- border-width: 1px;
296
- border-color: $hy-success;
297
- }
298
-
299
- &--success--plain {
300
- border-width: 1px;
301
- border-color: $hy-success;
302
- }
303
-
304
- &--success--plain--fill {
305
- background-color: #f5fff0;
306
- }
307
-
308
- &__text--success {
309
- color: #ffffff;
310
- }
311
-
312
- &__text--success--plain {
313
- color: $hy-success;
314
- }
315
-
316
- &--info {
317
- background-color: $hy-info;
318
- border-width: 1px;
319
- border-color: $hy-info;
320
- }
321
-
322
- &--info--plain {
323
- border-width: 1px;
324
- border-color: $hy-info;
325
- }
326
-
327
- &--info--plain--fill {
328
- background-color: #f4f4f5;
329
- }
330
-
331
- &__text--info {
332
- color: #ffffff;
333
- }
334
-
335
- &__text--info--plain {
336
- color: $hy-info;
337
- }
338
-
339
- &__close {
340
- position: absolute;
341
- z-index: 999;
342
- top: 10px;
343
- right: 10px;
344
- border-radius: 100px;
345
- background-color: #c6c7cb;
346
- @include flex(row);
347
- align-items: center;
348
- justify-content: center;
349
- /* #ifndef APP-NVUE */
350
- transform: scale(0.6) translate(80%, -80%);
351
- /* #endif */
352
- /* #ifdef APP-NVUE */
353
- transform: scale(0.6) translate(50%, -50%);
354
- /* #endif */
355
-
356
- &--small {
357
- width: 18px;
358
- height: 18px;
359
- }
360
-
361
- &--medium {
362
- width: 22px;
363
- height: 22px;
364
- }
365
-
366
- &--large {
367
- width: 25px;
368
- height: 25px;
369
- }
370
- }
371
- }
176
+ @import "./index.scss";
372
177
  </style>
@@ -0,0 +1,205 @@
1
+ @use "../../theme.scss" as *;
2
+ @use "../../libs/css/mixin.scss" as *;
3
+
4
+ .hy-tag {
5
+ border-style: solid;
6
+ @include flex;
7
+ align-items: center;
8
+ &__wrapper {
9
+ @include flex;
10
+ position: relative;
11
+ box-sizing: border-box;
12
+ }
13
+
14
+ /*禁用*/
15
+ &--disabled {
16
+ background-color: $hy-color-disable-bg;
17
+ color: $hy-text-color-disable;
18
+ border: 1px solid $hy-color-disable-icon;
19
+ }
20
+
21
+ &--circle {
22
+ border-radius: $hy-border-radius-semicircle;
23
+ }
24
+
25
+ &--square {
26
+ border-radius: $hy-border-radius-sm;
27
+ }
28
+
29
+ &__icon {
30
+ margin-right: $hy-border-margin-padding-sm;
31
+ }
32
+
33
+ &__text {
34
+ &--small {
35
+ font-size: $hy-font-size-sm;
36
+ line-height: $hy-font-size-sm;
37
+ }
38
+
39
+ &--medium {
40
+ font-size: $hy-font-size-base;
41
+ line-height: $hy-font-size-base;
42
+ }
43
+
44
+ &--large {
45
+ font-size: $hy-font-size-lg;
46
+ line-height: $hy-font-size-lg;
47
+ }
48
+ }
49
+
50
+ &--small {
51
+ height: 22px;
52
+ line-height: 22px;
53
+ padding: 0 $hy-border-margin-padding-sm;
54
+ }
55
+
56
+ &--medium {
57
+ height: 26px;
58
+ line-height: 22px;
59
+ padding: 0 $hy-border-margin-padding-base;
60
+ }
61
+
62
+ &--large {
63
+ height: 32px;
64
+ line-height: 32px;
65
+ padding: 0 15px;
66
+ }
67
+
68
+ &--primary {
69
+ background-color: $hy-primary;
70
+ border: 1px solid $hy-primary;
71
+ }
72
+
73
+ &--primary--plain {
74
+ border: 1px solid $hy-primary;
75
+ }
76
+
77
+ &--primary--plain--fill {
78
+ background-color: $hy-primary-light;
79
+ }
80
+
81
+ &__text--primary {
82
+ color: #ffffff;
83
+ }
84
+
85
+ &__text--primary--plain {
86
+ color: $hy-primary;
87
+ }
88
+
89
+ &--error {
90
+ background-color: $hy-error;
91
+ border: 1px solid $hy-error;
92
+ }
93
+
94
+ &--error--plain {
95
+ border: 1px solid $hy-error;
96
+ }
97
+
98
+ &--error--plain--fill {
99
+ background-color: $hy-error-light;
100
+ }
101
+
102
+ &__text--error {
103
+ color: #ffffff;
104
+ }
105
+
106
+ &__text--error--plain {
107
+ color: $hy-error;
108
+ }
109
+
110
+ &--warning {
111
+ background-color: $hy-warning;
112
+ border: 1px solid $hy-warning;
113
+ }
114
+
115
+ &--warning--plain {
116
+ border: 1px solid $hy-warning;
117
+ }
118
+
119
+ &--warning--plain--fill {
120
+ background-color: $hy-warning-light;
121
+ }
122
+
123
+ &__text--warning {
124
+ color: #ffffff;
125
+ }
126
+
127
+ &__text--warning--plain {
128
+ color: $hy-warning;
129
+ }
130
+
131
+ &--success {
132
+ background-color: $hy-success;
133
+ border: 1px solid $hy-success;
134
+ }
135
+
136
+ &--success--plain {
137
+ border: 1px solid $hy-success;
138
+ }
139
+
140
+ &--success--plain--fill {
141
+ background-color: $hy-success-light;
142
+ }
143
+
144
+ &__text--success {
145
+ color: #ffffff;
146
+ }
147
+
148
+ &__text--success--plain {
149
+ color: $hy-success;
150
+ }
151
+
152
+ &--info {
153
+ background-color: $hy-info;
154
+ border: 1px solid $hy-info;
155
+ }
156
+
157
+ &--info--plain {
158
+ border: 1px solid $hy-info;
159
+ }
160
+
161
+ &--info--plain--fill {
162
+ background-color: $hy-info-light;
163
+ }
164
+
165
+ &__text--info {
166
+ color: #ffffff;
167
+ }
168
+
169
+ &__text--info--plain {
170
+ color: $hy-info;
171
+ }
172
+
173
+ &__close {
174
+ position: absolute;
175
+ z-index: 999;
176
+ top: 10px;
177
+ right: 10px;
178
+ border-radius: $hy-border-radius-semicircle;
179
+ background-color: #c6c7cb;
180
+ @include flex(row);
181
+ align-items: center;
182
+ justify-content: center;
183
+ /* #ifndef APP-NVUE */
184
+ transform: scale(0.6) translate(80%, -80%);
185
+ /* #endif */
186
+ /* #ifdef APP-NVUE */
187
+ transform: scale(0.6) translate(50%, -50%);
188
+ /* #endif */
189
+
190
+ &--small {
191
+ width: 18px;
192
+ height: 18px;
193
+ }
194
+
195
+ &--medium {
196
+ width: 22px;
197
+ height: 22px;
198
+ }
199
+
200
+ &--large {
201
+ width: 25px;
202
+ height: 25px;
203
+ }
204
+ }
205
+ }