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.
- package/README.md +1 -1
- package/api/http.ts +8 -8
- package/components/dialog/index.ts +2 -2
- package/components/hy-address-picker/hy-address-picker.vue +3 -29
- package/components/hy-address-picker/index.scss +27 -0
- package/components/hy-avatar/hy-avatar.vue +1 -45
- package/components/hy-avatar/index.scss +45 -0
- package/components/hy-avatar/typing.d.ts +1 -1
- package/components/hy-back-top/hy-back-top.vue +7 -22
- package/components/hy-back-top/index.scss +16 -0
- package/components/hy-back-top/props.ts +4 -4
- package/components/hy-back-top/typing.d.ts +2 -3
- package/components/hy-badge/hy-badge.vue +1 -72
- package/components/hy-badge/index.scss +72 -0
- package/components/hy-button/hy-button.vue +17 -128
- package/components/hy-button/index.scss +116 -0
- package/components/hy-button/typing.d.ts +1 -1
- package/components/hy-calendar/header.vue +76 -0
- package/components/hy-calendar/hy-calendar.vue +366 -0
- package/components/hy-calendar/index.scss +171 -0
- package/components/hy-calendar/month.vue +524 -0
- package/components/hy-calendar/props.ts +37 -0
- package/components/hy-calendar/typing.d.ts +126 -0
- package/components/hy-card/hy-card.vue +21 -84
- package/components/hy-card/index.scss +57 -0
- package/components/hy-card/props.ts +2 -2
- package/components/hy-card/typing.d.ts +1 -1
- package/components/hy-cell/hy-cell.vue +1 -137
- package/components/hy-cell/index.scss +137 -0
- package/components/hy-check-button/hy-check-button.vue +1 -0
- package/components/hy-check-button/index.scss +5 -0
- package/components/hy-checkbox/hy-checkbox.vue +2 -95
- package/components/hy-checkbox/index.scss +94 -0
- package/components/hy-checkbox/typing.d.ts +1 -2
- package/components/hy-count-down/hy-count-down.vue +150 -0
- package/components/hy-count-down/index.scss +6 -0
- package/components/hy-count-down/index.ts +52 -0
- package/components/hy-count-down/props.ts +10 -0
- package/components/hy-count-down/typing.d.ts +20 -0
- package/components/hy-count-to/hy-count-to.vue +213 -0
- package/components/hy-count-to/index.scss +6 -0
- package/components/hy-count-to/props.ts +17 -0
- package/components/hy-count-to/typing.d.ts +48 -0
- package/components/hy-datetime-picker/hy-datetime-picker.vue +2 -28
- package/components/hy-datetime-picker/index.scss +28 -0
- package/components/hy-divider/hy-divider.vue +24 -49
- package/components/hy-divider/index.scss +26 -0
- package/components/hy-divider/props.ts +2 -2
- package/components/hy-divider/typing.d.ts +1 -1
- package/components/hy-dropdown/hy-dropdown.vue +43 -0
- package/components/hy-dropdown/index.scss +17 -0
- package/components/hy-dropdown/props.ts +17 -0
- package/components/hy-dropdown/typing.d.ts +48 -0
- package/components/hy-dropdown-item/hy-dropdown-item.vue +194 -0
- package/components/hy-dropdown-item/index.scss +96 -0
- package/components/hy-dropdown-item/props.ts +10 -0
- package/components/hy-dropdown-item/typing.d.ts +31 -0
- package/components/hy-empty/hy-empty.vue +8 -26
- package/components/hy-empty/index.scss +19 -0
- package/components/hy-empty/props.ts +2 -2
- package/components/hy-empty/typing.d.ts +1 -1
- package/components/hy-float-button/hy-float-button.vue +217 -0
- package/components/hy-float-button/index.scss +67 -0
- package/components/hy-float-button/props.ts +25 -0
- package/components/hy-float-button/typing.d.ts +93 -0
- package/components/hy-folding-panel/hy-folding-panel.vue +9 -12
- package/components/hy-folding-panel/index.scss +6 -0
- package/components/hy-folding-panel/props.ts +2 -2
- package/components/hy-folding-panel/typing.d.ts +2 -2
- package/components/hy-form/hy-form.vue +17 -34
- package/components/hy-form/index.scss +30 -0
- package/components/hy-form/props.ts +2 -0
- package/components/hy-form/typing.d.ts +9 -1
- package/components/hy-grid/hy-grid.vue +1 -43
- package/components/hy-grid/index.scss +40 -0
- package/components/hy-icon/hy-icon.vue +1 -93
- package/components/hy-icon/index.scss +84 -0
- package/components/hy-image/hy-image.vue +216 -0
- package/components/hy-image/index.scss +26 -0
- package/components/hy-image/props.ts +24 -0
- package/components/hy-image/typing.d.ts +76 -0
- package/components/hy-input/hy-input.vue +2 -72
- package/components/hy-input/index.scss +65 -0
- package/components/hy-line/hy-line.vue +4 -8
- package/components/hy-line/index.scss +5 -0
- package/components/hy-line/props.ts +3 -3
- package/components/hy-line/typing.d.ts +2 -2
- package/components/hy-line-progress/hy-line-progress.vue +15 -44
- package/components/hy-line-progress/index.scss +38 -0
- package/components/hy-line-progress/props.ts +2 -2
- package/components/hy-line-progress/typing.d.ts +1 -1
- package/components/hy-list/hy-list.vue +11 -41
- package/components/hy-list/index.scss +32 -0
- package/components/hy-list/props.ts +2 -2
- package/components/hy-loading/hy-loading.vue +95 -0
- package/components/hy-loading/index.scss +103 -0
- package/components/hy-loading/props.ts +17 -0
- package/components/hy-loading/typing.d.ts +53 -0
- package/components/hy-login/TheUserLogin.vue +20 -88
- package/components/hy-login/hy-login.vue +9 -9
- package/components/hy-login/props.ts +4 -4
- package/components/hy-modal/hy-modal.vue +11 -89
- package/components/hy-modal/index.scss +77 -0
- package/components/hy-modal/props.ts +2 -2
- package/components/hy-modal/typing.d.ts +1 -1
- package/components/hy-navbar/hy-navbar.vue +20 -92
- package/components/hy-navbar/index.scss +67 -0
- package/components/hy-navbar/props.ts +2 -2
- package/components/hy-navbar/typing.d.ts +1 -1
- package/components/hy-notice-bar/hy-column-notice.vue +11 -39
- package/components/hy-notice-bar/hy-notice-bar.vue +10 -12
- package/components/hy-notice-bar/hy-row-notice.vue +16 -58
- package/components/hy-notice-bar/index.scss +93 -0
- package/components/hy-notice-bar/props.ts +4 -2
- package/components/hy-notice-bar/typing.d.ts +13 -3
- package/components/hy-number-step/hy-number-step.vue +1 -70
- package/components/hy-number-step/index.scss +71 -0
- package/components/hy-overlay/hy-overlay.vue +2 -14
- package/components/hy-overlay/index.scss +9 -0
- package/components/hy-parse/hy-parse.vue +499 -0
- package/components/hy-parse/index.scss +9 -0
- package/components/hy-parse/node/node.vue +584 -0
- package/components/hy-parse/parser.js +1337 -0
- package/components/hy-parse/props.ts +19 -0
- package/components/hy-parse/typing.d.ts +68 -0
- package/components/hy-picker/hy-picker.vue +1 -68
- package/components/hy-picker/index.scss +68 -0
- package/components/hy-popup/hy-popup.vue +1 -74
- package/components/hy-popup/index.scss +60 -0
- package/components/hy-price/hy-price.vue +7 -19
- package/components/hy-price/index.scss +11 -0
- package/components/hy-price/props.ts +4 -3
- package/components/hy-price/typing.d.ts +8 -4
- package/components/hy-qrcode/hy-qrcode.vue +15 -37
- package/components/hy-qrcode/index.scss +23 -0
- package/components/hy-qrcode/props.ts +2 -2
- package/components/hy-qrcode/typing.d.ts +2 -2
- package/components/hy-radio/hy-radio.vue +2 -101
- package/components/hy-radio/index.scss +93 -0
- package/components/hy-radio/typing.d.ts +1 -2
- package/components/hy-rate/hy-rate.vue +1 -33
- package/components/hy-rate/index.scss +33 -0
- package/components/hy-read-more/hy-read-more.vue +7 -30
- package/components/hy-read-more/index.scss +25 -0
- package/components/hy-read-more/props.ts +3 -3
- package/components/hy-read-more/typing.d.ts +1 -1
- package/components/hy-safe-bottom/hy-safe-bottom.vue +5 -9
- package/components/hy-safe-bottom/index.scss +5 -0
- package/components/hy-scroll-list/hy-scroll-list.vue +13 -43
- package/components/hy-scroll-list/index.scss +34 -0
- package/components/hy-scroll-list/props.ts +2 -2
- package/components/hy-scroll-list/typing.d.ts +1 -1
- package/components/hy-search/hy-search.vue +1 -83
- package/components/hy-search/index.scss +83 -0
- package/components/hy-slider/hy-slider.vue +18 -95
- package/components/hy-slider/index.scss +77 -0
- package/components/hy-status-bar/hy-status-bar.vue +41 -0
- package/components/hy-status-bar/index.scss +6 -0
- package/components/hy-status-bar/props.ts +8 -0
- package/components/hy-status-bar/typing.d.ts +12 -0
- package/components/hy-steps/hy-steps.vue +36 -163
- package/components/hy-steps/index.scss +131 -0
- package/components/hy-steps/props.ts +2 -2
- package/components/hy-steps/typing.d.ts +2 -2
- package/components/hy-submitBar/Index.vue +17 -0
- package/components/hy-submitBar/hy-submitBar.vue +216 -0
- package/components/hy-submitBar/index.scss +9 -0
- package/components/hy-submitBar/props.ts +22 -0
- package/components/hy-submitBar/typing.d.ts +88 -0
- package/components/hy-subsection/hy-subsection.vue +40 -132
- package/components/hy-subsection/index.scss +82 -0
- package/components/hy-subsection/props.ts +1 -0
- package/components/hy-subsection/typing.d.ts +13 -4
- package/components/hy-swipe-action/hy-swipe-action.vue +294 -0
- package/components/hy-swipe-action/index.scss +9 -0
- package/components/hy-swipe-action/index.wxs +235 -0
- package/components/hy-swipe-action/props.ts +16 -0
- package/components/hy-swipe-action/typing.d.ts +55 -0
- package/components/hy-swipe-action/wxs.js +15 -0
- package/components/hy-swiper/hy-swiper-indicator.vue +5 -35
- package/components/hy-swiper/hy-swiper.vue +1 -54
- package/components/hy-swiper/index.scss +82 -0
- package/components/hy-switch/hy-switch.vue +62 -72
- package/components/hy-switch/index.scss +46 -0
- package/components/hy-switch/props.ts +4 -1
- package/components/hy-switch/typing.d.ts +14 -1
- package/components/hy-tabs/hy-tabs.vue +22 -81
- package/components/hy-tabs/index.scss +63 -0
- package/components/hy-tabs/props.ts +5 -5
- package/components/hy-tabs/typing.d.ts +1 -1
- package/components/hy-tag/hy-tag.vue +25 -220
- package/components/hy-tag/index.scss +205 -0
- package/components/hy-text/hy-text.vue +238 -0
- package/components/hy-text/index.scss +70 -0
- package/components/hy-text/index.ts +0 -0
- package/components/hy-text/props.ts +30 -0
- package/components/hy-text/typing.d.ts +98 -0
- package/components/hy-textarea/hy-textarea.vue +1 -46
- package/components/hy-textarea/index.scss +40 -0
- package/components/hy-toast/hy-toast.vue +175 -0
- package/components/hy-toast/index.scss +77 -0
- package/components/hy-toast/props.ts +3 -0
- package/components/hy-toast/typing.d.ts +38 -0
- package/components/hy-tooltip/hy-tooltip.vue +42 -95
- package/components/hy-tooltip/index.scss +64 -0
- package/components/hy-tooltip/props.ts +2 -2
- package/components/hy-tooltip/typing.d.ts +1 -1
- package/components/hy-transition/hy-transition.vue +4 -2
- package/components/hy-transition/typing.d.ts +1 -13
- package/components/hy-upload/hy-upload.vue +37 -182
- package/components/hy-upload/index.scss +147 -0
- package/components/hy-upload/props.ts +2 -2
- package/components/hy-upload/typing.d.ts +11 -11
- package/components/hy-warn/hy-warn.vue +17 -144
- package/components/hy-warn/index.scss +109 -0
- package/components/hy-warn/props.ts +3 -3
- package/components/hy-warn/typing.d.ts +4 -3
- package/components/hy-waterfall/hy-waterfall.vue +168 -38
- package/components/hy-waterfall/index.scss +16 -0
- package/components/hy-waterfall/props.ts +4 -5
- package/components/hy-waterfall/typing.d.ts +5 -9
- package/components/index.ts +25 -1
- package/components/message/index.ts +54 -54
- package/composables/index.ts +1 -0
- package/composables/useShare.ts +27 -0
- package/config/color.ts +3 -2
- package/config/icon.ts +21 -1
- package/global/index.ts +6 -6
- package/global/register-properties.ts +2 -2
- package/index.scss +2 -1
- package/index.ts +9 -8
- package/libs/css/common.scss +14 -2
- package/package.json +3 -2
- package/{libs/css → public/font}/iconfont.css +4 -4
- package/theme.scss +6 -4
- package/typing/index.ts +1 -1
- package/typing/modules/common.d.ts +36 -1
- package/utils/calendar.js +1021 -0
- package/utils/colorGradient.ts +112 -0
- package/utils/index.ts +2 -0
- package/utils/inside.ts +80 -34
- package/utils/inspect.ts +115 -0
- package/utils/utils.ts +20 -19
- package/libs/css/download.zip +0 -0
- /package/{libs/css → public/font}/iconfont.ttf +0 -0
- /package/{libs/css → public/font}/iconfont.woff +0 -0
- /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;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
:customStyle="{ marginRight: '3px' }"
|
|
12
12
|
></HyIcon>
|
|
13
13
|
</slot>
|
|
14
|
-
<text :class="textClass" :style="
|
|
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
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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 "
|
|
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
|
+
}
|