hy-dispatch-ui-v3 0.1.0 → 0.1.2
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/dist/tailwind.css +186 -45
- package/es/bussiness/index.mjs +0 -1
- package/es/components/appButton/appButton.vue.mjs +133 -0
- package/es/components/appButton/index.mjs +6 -0
- package/es/components/appButton/style/appButton.scss +289 -0
- package/es/components/appConfigProvider/appConfigProvider.vue.mjs +91 -0
- package/es/components/appConfigProvider/index.mjs +6 -0
- package/es/components/appConfirmDialog/appConfirmDialog.vue.mjs +105 -60
- package/es/components/appConfirmDialog/appConfirmMethod.mjs +49 -27
- package/es/components/appConfirmDialog/index.mjs +0 -1
- package/es/components/appDatePicker/appDatePicker.vue.mjs +0 -1
- package/es/components/appDatePicker/index.mjs +0 -1
- package/es/components/appForm/appForm.vue.mjs +64 -67
- package/es/components/appForm/index.mjs +0 -1
- package/es/components/appForm/js/index.mjs +0 -1
- package/es/components/appForm/js/useAppForm.mjs +0 -1
- package/es/components/appForm/style/appForm.scss +1 -1
- package/es/components/{svgIcon/svgIcon.vue.mjs → appIcon/appIcon.vue.mjs} +4 -5
- package/es/components/appIcon/index.mjs +6 -0
- package/es/components/{svgIcon/style/svgIcon.scss → appIcon/style/appIcon.scss} +1 -4
- package/es/components/{svgIcon/iconBox.vue.mjs → appIconBox/appIconBox.vue.mjs} +6 -7
- package/es/components/appIconBox/index.mjs +6 -0
- package/es/components/appIconBox/style/appIconBox.scss +27 -0
- package/es/components/appOrgCascader/appOrgCascader.vue.mjs +18 -11
- package/es/components/appOrgCascader/index.mjs +0 -1
- package/es/components/appSearch/appSearch.vue.mjs +2 -6
- package/es/components/appSearch/index.mjs +0 -1
- package/es/components/appSearch/js/index.mjs +5 -6
- package/es/components/appSearch/js/useAppSearch.mjs +0 -1
- package/es/components/appSearch/style/appSearch.scss +17 -11
- package/es/components/appTable/appTable.vue.mjs +57 -32
- package/es/components/appTable/cpns/columnSelect.vue.mjs +87 -123
- package/es/components/appTable/cpns/columnSelectItem.vue.mjs +5 -0
- package/es/components/appTable/cpns/columnSelectItem.vue2.mjs +167 -0
- package/es/components/appTable/index.mjs +0 -1
- package/es/components/appTable/js/index.mjs +9 -8
- package/es/components/appTable/js/search.mjs +6 -6
- package/es/components/appTable/js/useAppTable.mjs +6 -3
- package/es/components/appTable/style/appTable.scss +20 -11
- package/es/components/appTooltip/appTooltip.vue.mjs +0 -1
- package/es/components/appTooltip/index.mjs +0 -1
- package/es/components/appUserAvatar/appUserAvatar.vue.mjs +136 -0
- package/es/components/appUserAvatar/index.mjs +6 -0
- package/es/components/appUserAvatar/style/appUserAvatar.scss +33 -0
- package/es/components/index.mjs +5 -2
- package/es/config/index.mjs +0 -1
- package/es/constants/index.mjs +0 -1
- package/es/constants/keys.mjs +0 -1
- package/es/hooks/index.mjs +4 -3
- package/es/hooks/useApi.mjs +20 -5
- package/es/hooks/useGlobalConfig.mjs +19 -10
- package/es/hooks/useLocale.mjs +1 -2
- package/es/hooks/useMixins.mjs +0 -1
- package/es/{store/maintain.mjs → hooks/useResizeHandler.mjs} +29 -44
- package/es/hooks/useUserAvatarMap.mjs +9 -0
- package/es/index.mjs +9 -6
- package/es/locale/{en_US.mjs → en.mjs} +8 -5
- package/es/locale/index.mjs +2 -3
- package/es/locale/zh_CN.mjs +6 -3
- package/es/make-installer.mjs +2 -8
- package/es/static/hy-svg-icons.mjs +11 -0
- package/es/style/element/element.scss +16313 -0
- package/es/style/element/index.scss +932 -0
- package/es/style/index.scss +37 -0
- package/es/style/theme.scss +18 -120
- package/es/utils/adaptive.mjs +0 -1
- package/es/utils/bus.mjs +0 -1
- package/es/utils/crypto.mjs +0 -1
- package/es/utils/date.mjs +0 -1
- package/es/utils/handler.mjs +0 -1
- package/es/utils/index.mjs +0 -1
- package/es/utils/is.mjs +0 -1
- package/es/version.mjs +1 -2
- package/lib/bussiness/index.js +0 -1
- package/lib/components/appButton/appButton.vue.js +137 -0
- package/lib/components/appButton/index.js +11 -0
- package/lib/components/appButton/style/appButton.scss +289 -0
- package/lib/components/appConfigProvider/appConfigProvider.vue.js +114 -0
- package/lib/components/appConfigProvider/index.js +11 -0
- package/lib/components/appConfirmDialog/appConfirmDialog.vue.js +103 -58
- package/lib/components/appConfirmDialog/appConfirmMethod.js +48 -26
- package/lib/components/appConfirmDialog/index.js +0 -1
- package/lib/components/appDatePicker/appDatePicker.vue.js +0 -1
- package/lib/components/appDatePicker/index.js +0 -1
- package/lib/components/appForm/appForm.vue.js +61 -64
- package/lib/components/appForm/index.js +0 -1
- package/lib/components/appForm/js/index.js +0 -1
- package/lib/components/appForm/js/useAppForm.js +0 -1
- package/lib/components/appForm/style/appForm.scss +1 -1
- package/lib/components/{svgIcon/svgIcon.vue.js → appIcon/appIcon.vue.js} +4 -5
- package/lib/components/appIcon/index.js +11 -0
- package/lib/components/{svgIcon/style/svgIcon.scss → appIcon/style/appIcon.scss} +1 -4
- package/lib/components/{svgIcon/iconBox.vue.js → appIconBox/appIconBox.vue.js} +6 -7
- package/lib/components/appIconBox/index.js +11 -0
- package/lib/components/appIconBox/style/appIconBox.scss +27 -0
- package/lib/components/appOrgCascader/appOrgCascader.vue.js +18 -11
- package/lib/components/appOrgCascader/index.js +0 -1
- package/lib/components/appSearch/appSearch.vue.js +2 -6
- package/lib/components/appSearch/index.js +0 -1
- package/lib/components/appSearch/js/index.js +5 -6
- package/lib/components/appSearch/js/useAppSearch.js +0 -1
- package/lib/components/appSearch/style/appSearch.scss +17 -11
- package/lib/components/appTable/appTable.vue.js +56 -31
- package/lib/components/appTable/cpns/columnSelect.vue.js +86 -122
- package/lib/components/appTable/cpns/columnSelectItem.vue.js +9 -0
- package/lib/components/appTable/cpns/columnSelectItem.vue2.js +171 -0
- package/lib/components/appTable/index.js +0 -1
- package/lib/components/appTable/js/index.js +9 -7
- package/lib/components/appTable/js/search.js +6 -6
- package/lib/components/appTable/js/useAppTable.js +6 -3
- package/lib/components/appTable/style/appTable.scss +20 -11
- package/lib/components/appTooltip/appTooltip.vue.js +0 -1
- package/lib/components/appTooltip/index.js +0 -1
- package/lib/components/appUserAvatar/appUserAvatar.vue.js +140 -0
- package/lib/components/appUserAvatar/index.js +11 -0
- package/lib/components/appUserAvatar/style/appUserAvatar.scss +33 -0
- package/lib/components/index.js +24 -18
- package/lib/config/index.js +0 -1
- package/lib/constants/index.js +0 -1
- package/lib/constants/keys.js +0 -1
- package/lib/hooks/index.js +8 -2
- package/lib/hooks/useApi.js +19 -3
- package/lib/hooks/useGlobalConfig.js +21 -11
- package/lib/hooks/useLocale.js +1 -2
- package/lib/hooks/useMixins.js +0 -1
- package/lib/{store/maintain.js → hooks/useResizeHandler.js} +29 -44
- package/lib/hooks/useUserAvatarMap.js +12 -0
- package/lib/index.js +37 -28
- package/lib/locale/{en_US.js → en.js} +8 -5
- package/lib/locale/index.js +3 -4
- package/lib/locale/zh_CN.js +6 -3
- package/lib/make-installer.js +1 -7
- package/lib/static/hy-svg-icons.js +13 -0
- package/lib/style/element/element.scss +16313 -0
- package/lib/style/element/index.scss +932 -0
- package/lib/style/index.scss +37 -0
- package/lib/style/theme.scss +18 -120
- package/lib/utils/adaptive.js +0 -1
- package/lib/utils/bus.js +0 -1
- package/lib/utils/crypto.js +0 -1
- package/lib/utils/date.js +0 -1
- package/lib/utils/handler.js +0 -1
- package/lib/utils/index.js +0 -1
- package/lib/utils/is.js +0 -1
- package/lib/version.js +1 -2
- package/package.json +17 -7
- package/es/bussiness/index.mjs.map +0 -1
- package/es/components/appConfirmDialog/appConfirmDialog.vue.mjs.map +0 -1
- package/es/components/appConfirmDialog/appConfirmMethod.mjs.map +0 -1
- package/es/components/appConfirmDialog/index.mjs.map +0 -1
- package/es/components/appConfirmDialog/style/appConfirmDialog.scss +0 -5
- package/es/components/appDatePicker/appDatePicker.vue.mjs.map +0 -1
- package/es/components/appDatePicker/index.mjs.map +0 -1
- package/es/components/appForm/appForm.vue.mjs.map +0 -1
- package/es/components/appForm/index.mjs.map +0 -1
- package/es/components/appForm/js/index.mjs.map +0 -1
- package/es/components/appForm/js/useAppForm.mjs.map +0 -1
- package/es/components/appOrgCascader/appOrgCascader.vue.mjs.map +0 -1
- package/es/components/appOrgCascader/index.mjs.map +0 -1
- package/es/components/appSearch/appSearch.vue.mjs.map +0 -1
- package/es/components/appSearch/index.mjs.map +0 -1
- package/es/components/appSearch/js/index.mjs.map +0 -1
- package/es/components/appSearch/js/useAppSearch.mjs.map +0 -1
- package/es/components/appTable/appTable.vue.mjs.map +0 -1
- package/es/components/appTable/cpns/columnSelect.vue.mjs.map +0 -1
- package/es/components/appTable/index.mjs.map +0 -1
- package/es/components/appTable/js/index.mjs.map +0 -1
- package/es/components/appTable/js/search.mjs.map +0 -1
- package/es/components/appTable/js/useAppTable.mjs.map +0 -1
- package/es/components/appTooltip/appTooltip.vue.mjs.map +0 -1
- package/es/components/appTooltip/index.mjs.map +0 -1
- package/es/components/index.mjs.map +0 -1
- package/es/components/svgIcon/iconBox.vue.mjs.map +0 -1
- package/es/components/svgIcon/index.mjs +0 -9
- package/es/components/svgIcon/index.mjs.map +0 -1
- package/es/components/svgIcon/style/iconBox.scss +0 -13
- package/es/components/svgIcon/svgIcon.vue.mjs.map +0 -1
- package/es/config/index.mjs.map +0 -1
- package/es/constants/index.mjs.map +0 -1
- package/es/constants/keys.mjs.map +0 -1
- package/es/hooks/index.mjs.map +0 -1
- package/es/hooks/useApi.mjs.map +0 -1
- package/es/hooks/useGlobalConfig.mjs.map +0 -1
- package/es/hooks/useLocale.mjs.map +0 -1
- package/es/hooks/useMixins.mjs.map +0 -1
- package/es/index.mjs.map +0 -1
- package/es/locale/en_US.mjs.map +0 -1
- package/es/locale/index.mjs.map +0 -1
- package/es/locale/zh_CN.mjs.map +0 -1
- package/es/make-installer.mjs.map +0 -1
- package/es/store/index.mjs +0 -7
- package/es/store/index.mjs.map +0 -1
- package/es/store/maintain.mjs.map +0 -1
- package/es/utils/adaptive.mjs.map +0 -1
- package/es/utils/bus.mjs.map +0 -1
- package/es/utils/crypto.mjs.map +0 -1
- package/es/utils/date.mjs.map +0 -1
- package/es/utils/handler.mjs.map +0 -1
- package/es/utils/index.mjs.map +0 -1
- package/es/utils/is.mjs.map +0 -1
- package/es/version.mjs.map +0 -1
- package/lib/bussiness/index.js.map +0 -1
- package/lib/components/appConfirmDialog/appConfirmDialog.vue.js.map +0 -1
- package/lib/components/appConfirmDialog/appConfirmMethod.js.map +0 -1
- package/lib/components/appConfirmDialog/index.js.map +0 -1
- package/lib/components/appConfirmDialog/style/appConfirmDialog.scss +0 -5
- package/lib/components/appDatePicker/appDatePicker.vue.js.map +0 -1
- package/lib/components/appDatePicker/index.js.map +0 -1
- package/lib/components/appForm/appForm.vue.js.map +0 -1
- package/lib/components/appForm/index.js.map +0 -1
- package/lib/components/appForm/js/index.js.map +0 -1
- package/lib/components/appForm/js/useAppForm.js.map +0 -1
- package/lib/components/appOrgCascader/appOrgCascader.vue.js.map +0 -1
- package/lib/components/appOrgCascader/index.js.map +0 -1
- package/lib/components/appSearch/appSearch.vue.js.map +0 -1
- package/lib/components/appSearch/index.js.map +0 -1
- package/lib/components/appSearch/js/index.js.map +0 -1
- package/lib/components/appSearch/js/useAppSearch.js.map +0 -1
- package/lib/components/appTable/appTable.vue.js.map +0 -1
- package/lib/components/appTable/cpns/columnSelect.vue.js.map +0 -1
- package/lib/components/appTable/index.js.map +0 -1
- package/lib/components/appTable/js/index.js.map +0 -1
- package/lib/components/appTable/js/search.js.map +0 -1
- package/lib/components/appTable/js/useAppTable.js.map +0 -1
- package/lib/components/appTooltip/appTooltip.vue.js.map +0 -1
- package/lib/components/appTooltip/index.js.map +0 -1
- package/lib/components/index.js.map +0 -1
- package/lib/components/svgIcon/iconBox.vue.js.map +0 -1
- package/lib/components/svgIcon/index.js +0 -15
- package/lib/components/svgIcon/index.js.map +0 -1
- package/lib/components/svgIcon/style/iconBox.scss +0 -13
- package/lib/components/svgIcon/svgIcon.vue.js.map +0 -1
- package/lib/config/index.js.map +0 -1
- package/lib/constants/index.js.map +0 -1
- package/lib/constants/keys.js.map +0 -1
- package/lib/hooks/index.js.map +0 -1
- package/lib/hooks/useApi.js.map +0 -1
- package/lib/hooks/useGlobalConfig.js.map +0 -1
- package/lib/hooks/useLocale.js.map +0 -1
- package/lib/hooks/useMixins.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/locale/en_US.js.map +0 -1
- package/lib/locale/index.js.map +0 -1
- package/lib/locale/zh_CN.js.map +0 -1
- package/lib/make-installer.js.map +0 -1
- package/lib/store/index.js +0 -10
- package/lib/store/index.js.map +0 -1
- package/lib/store/maintain.js.map +0 -1
- package/lib/utils/adaptive.js.map +0 -1
- package/lib/utils/bus.js.map +0 -1
- package/lib/utils/crypto.js.map +0 -1
- package/lib/utils/date.js.map +0 -1
- package/lib/utils/handler.js.map +0 -1
- package/lib/utils/index.js.map +0 -1
- package/lib/utils/is.js.map +0 -1
- package/lib/version.js.map +0 -1
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
.hy-button {
|
|
2
|
+
height: 32px;
|
|
3
|
+
border: 0;
|
|
4
|
+
outline: none;
|
|
5
|
+
appearance: none;
|
|
6
|
+
-webkit-appearance: none;
|
|
7
|
+
margin: 0;
|
|
8
|
+
font: inherit;
|
|
9
|
+
color: inherit;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
white-space: nowrap;
|
|
12
|
+
font-size: 14px;
|
|
13
|
+
|
|
14
|
+
&:disabled,
|
|
15
|
+
&.is-disabled {
|
|
16
|
+
cursor: not-allowed;
|
|
17
|
+
opacity: 0.55;
|
|
18
|
+
}
|
|
19
|
+
&.is-loading {
|
|
20
|
+
cursor: default;
|
|
21
|
+
}
|
|
22
|
+
&.hy-button--large {
|
|
23
|
+
height: 40px;
|
|
24
|
+
}
|
|
25
|
+
&.hy-button--small {
|
|
26
|
+
height: 24px;
|
|
27
|
+
font-size: 12px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
& + & {
|
|
31
|
+
margin-left: 16px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.button_default {
|
|
36
|
+
background: rgba(94, 157, 180, 0.32);
|
|
37
|
+
|
|
38
|
+
.hy-button__border {
|
|
39
|
+
background: linear-gradient(
|
|
40
|
+
90deg,
|
|
41
|
+
rgba(94, 157, 180, 0.4) 0%,
|
|
42
|
+
rgba(94, 157, 180, 1) 50%,
|
|
43
|
+
rgba(94, 157, 180, 0.4) 100%
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.hy-button__inner {
|
|
48
|
+
background: #003a48;
|
|
49
|
+
box-shadow:
|
|
50
|
+
inset 0 0 5px 1px rgba(0, 138, 157, 0.5),
|
|
51
|
+
inset 0 0 2px 0 rgba(0, 147, 157, 0.5);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.hy-button__text {
|
|
55
|
+
color: #fff;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.hy-button__mask {
|
|
59
|
+
background: radial-gradient(
|
|
60
|
+
ellipse at center bottom,
|
|
61
|
+
#7ebbd2 0%,
|
|
62
|
+
rgb(17, 108, 114) 30%,
|
|
63
|
+
transparent 60%
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:hover .hy-button__inner {
|
|
68
|
+
box-shadow:
|
|
69
|
+
inset 0 0 5px 1px rgba(0, 138, 157, 0.5),
|
|
70
|
+
inset 0 0 2px 0 rgba(0, 147, 157, 0.5),
|
|
71
|
+
inset 0 0 5px 1px rgba(0, 138, 157, 0.5),
|
|
72
|
+
inset 0 0 2px 0 rgba(0, 147, 157, 0.5);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&:disabled .hy-button__border,
|
|
76
|
+
&.is-disabled .hy-button__border {
|
|
77
|
+
background: linear-gradient(
|
|
78
|
+
90deg,
|
|
79
|
+
rgba(94, 157, 180, 0.18) 0%,
|
|
80
|
+
rgba(94, 157, 180, 0.42) 50%,
|
|
81
|
+
rgba(94, 157, 180, 0.18) 100%
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&:disabled .hy-button__inner,
|
|
86
|
+
&.is-disabled .hy-button__inner {
|
|
87
|
+
background: #3e5a64;
|
|
88
|
+
box-shadow:
|
|
89
|
+
inset 0 0 4px 1px rgba(0, 138, 157, 0.2),
|
|
90
|
+
inset 0 0 2px 0 rgba(0, 147, 157, 0.16);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&:disabled .hy-button__text,
|
|
94
|
+
&.is-disabled .hy-button__text {
|
|
95
|
+
color: rgba(255, 255, 255, 0.68);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.button_function {
|
|
100
|
+
background: rgba(45, 242, 255, 0.32);
|
|
101
|
+
|
|
102
|
+
.hy-button__border {
|
|
103
|
+
background: linear-gradient(
|
|
104
|
+
90deg,
|
|
105
|
+
rgba(45, 242, 255, 0.4) 0%,
|
|
106
|
+
rgba(45, 242, 255, 1) 50%,
|
|
107
|
+
rgba(45, 242, 255, 0.4) 100%
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.hy-button__inner {
|
|
112
|
+
background: #003a48;
|
|
113
|
+
box-shadow:
|
|
114
|
+
inset 0 0 5px 1px rgba(97, 248, 255, 0.5),
|
|
115
|
+
inset 0 0 2px 0 rgba(159, 248, 255, 0.5);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.hy-button__text {
|
|
119
|
+
color: #fff;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.hy-button__mask {
|
|
123
|
+
background: radial-gradient(
|
|
124
|
+
ellipse at center bottom,
|
|
125
|
+
#2df2ff 0%,
|
|
126
|
+
#1798a1 30%,
|
|
127
|
+
transparent 60%
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&:hover .hy-button__inner {
|
|
132
|
+
box-shadow:
|
|
133
|
+
inset 0 0 5px 1px rgba(97, 248, 255, 0.5),
|
|
134
|
+
inset 0 0 2px 0 rgba(159, 248, 255, 0.5),
|
|
135
|
+
inset 0 0 5px 1px rgba(97, 248, 255, 0.5),
|
|
136
|
+
inset 0 0 2px 0 rgba(159, 248, 255, 0.5);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&:disabled .hy-button__border,
|
|
140
|
+
&.is-disabled .hy-button__border {
|
|
141
|
+
background: linear-gradient(
|
|
142
|
+
90deg,
|
|
143
|
+
rgba(45, 242, 255, 0.18) 0%,
|
|
144
|
+
rgba(45, 242, 255, 0.42) 50%,
|
|
145
|
+
rgba(45, 242, 255, 0.18) 100%
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&:disabled .hy-button__inner,
|
|
150
|
+
&.is-disabled .hy-button__inner {
|
|
151
|
+
background: #10575c;
|
|
152
|
+
box-shadow:
|
|
153
|
+
inset 0 0 4px 1px rgba(97, 248, 255, 0.2),
|
|
154
|
+
inset 0 0 2px 0 rgba(159, 248, 255, 0.16);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&:disabled .hy-button__text,
|
|
158
|
+
&.is-disabled .hy-button__text {
|
|
159
|
+
color: rgba(255, 255, 255, 0.68);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.button_addTo {
|
|
164
|
+
background: rgba(44, 232, 152, 0.32);
|
|
165
|
+
|
|
166
|
+
.hy-button__border {
|
|
167
|
+
background: linear-gradient(
|
|
168
|
+
90deg,
|
|
169
|
+
rgba(171, 255, 185, 0.4) 0%,
|
|
170
|
+
rgba(171, 255, 185, 1) 50%,
|
|
171
|
+
rgba(171, 255, 185, 0.4) 100%
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.hy-button__inner {
|
|
176
|
+
background: #004823;
|
|
177
|
+
box-shadow:
|
|
178
|
+
inset 0 0 5px 1px rgba(97, 255, 179, 0.5),
|
|
179
|
+
inset 0 0 2px 0 rgba(159, 255, 209, 0.5);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.hy-button__text {
|
|
183
|
+
color: #fff;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.hy-button__mask {
|
|
187
|
+
background: radial-gradient(
|
|
188
|
+
ellipse at center bottom,
|
|
189
|
+
#20e080 0%,
|
|
190
|
+
#109060 30%,
|
|
191
|
+
transparent 60%
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&:hover .hy-button__inner {
|
|
196
|
+
box-shadow:
|
|
197
|
+
inset 0 0 5px 1px rgba(97, 255, 179, 0.5),
|
|
198
|
+
inset 0 0 2px 0 rgba(159, 255, 209, 0.5),
|
|
199
|
+
inset 0 0 5px 1px rgba(97, 255, 179, 0.5),
|
|
200
|
+
inset 0 0 2px 0 rgba(159, 255, 209, 0.5);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
&:disabled .hy-button__border,
|
|
204
|
+
&.is-disabled .hy-button__border {
|
|
205
|
+
background: linear-gradient(
|
|
206
|
+
90deg,
|
|
207
|
+
rgba(171, 255, 185, 0.18) 0%,
|
|
208
|
+
rgba(171, 255, 185, 0.42) 50%,
|
|
209
|
+
rgba(171, 255, 185, 0.18) 100%
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
&:disabled .hy-button__inner,
|
|
214
|
+
&.is-disabled .hy-button__inner {
|
|
215
|
+
background: #1d3d2d;
|
|
216
|
+
box-shadow:
|
|
217
|
+
inset 0 0 4px 1px rgba(97, 255, 179, 0.2),
|
|
218
|
+
inset 0 0 2px 0 rgba(159, 255, 209, 0.16);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
&:disabled .hy-button__text,
|
|
222
|
+
&.is-disabled .hy-button__text {
|
|
223
|
+
color: rgba(255, 255, 255, 0.68);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.button_delete {
|
|
228
|
+
background: rgba(255, 77, 77, 0.32);
|
|
229
|
+
|
|
230
|
+
.hy-button__border {
|
|
231
|
+
background: linear-gradient(
|
|
232
|
+
90deg,
|
|
233
|
+
rgba(255, 77, 77, 0.4) 0%,
|
|
234
|
+
rgba(255, 77, 77, 1) 50%,
|
|
235
|
+
rgba(255, 77, 77, 0.4) 100%
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.hy-button__inner {
|
|
240
|
+
background: #4f0000;
|
|
241
|
+
box-shadow:
|
|
242
|
+
inset 0 0 5px 1px rgba(255, 97, 97, 0.5),
|
|
243
|
+
inset 0 0 2px 0 rgba(255, 159, 159, 0.5);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.hy-button__text {
|
|
247
|
+
color: #fff;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.hy-button__mask {
|
|
251
|
+
background: radial-gradient(
|
|
252
|
+
ellipse at center bottom,
|
|
253
|
+
#ff0000 0%,
|
|
254
|
+
#b41414 30%,
|
|
255
|
+
transparent 60%
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
&:hover .hy-button__inner {
|
|
260
|
+
box-shadow:
|
|
261
|
+
inset 0 0 5px 1px rgba(255, 97, 97, 0.5),
|
|
262
|
+
inset 0 0 2px 0 rgba(255, 159, 159, 0.5),
|
|
263
|
+
inset 0 0 5px 1px rgba(255, 97, 97, 0.5),
|
|
264
|
+
inset 0 0 2px 0 rgba(255, 159, 159, 0.5);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
&:disabled .hy-button__border,
|
|
268
|
+
&.is-disabled .hy-button__border {
|
|
269
|
+
background: linear-gradient(
|
|
270
|
+
90deg,
|
|
271
|
+
rgba(255, 77, 77, 0.18) 0%,
|
|
272
|
+
rgba(255, 77, 77, 0.42) 50%,
|
|
273
|
+
rgba(255, 77, 77, 0.18) 100%
|
|
274
|
+
);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
&:disabled .hy-button__inner,
|
|
278
|
+
&.is-disabled .hy-button__inner {
|
|
279
|
+
background: #4b0c0c;
|
|
280
|
+
box-shadow:
|
|
281
|
+
inset 0 0 4px 1px rgba(255, 97, 97, 0.2),
|
|
282
|
+
inset 0 0 2px 0 rgba(255, 159, 159, 0.16);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
&:disabled .hy-button__text,
|
|
286
|
+
&.is-disabled .hy-button__text {
|
|
287
|
+
color: rgba(255, 255, 255, 0.68);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from 'vue';
|
|
2
|
+
import { ElConfigProvider } from 'element-plus';
|
|
3
|
+
import * as ElementLocale from 'element-plus/es/locales.mjs';
|
|
4
|
+
import { provideGlobalConfig } from '../../hooks/useGlobalConfig.mjs';
|
|
5
|
+
|
|
6
|
+
const __default__ = defineComponent({
|
|
7
|
+
name: "AppConfigProvider"
|
|
8
|
+
});
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
10
|
+
props: {
|
|
11
|
+
locale: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: false,
|
|
14
|
+
default: "zhCn"
|
|
15
|
+
},
|
|
16
|
+
api: {
|
|
17
|
+
type: [Object, Function],
|
|
18
|
+
required: false
|
|
19
|
+
},
|
|
20
|
+
userAvatarMap: {
|
|
21
|
+
type: Map,
|
|
22
|
+
required: false,
|
|
23
|
+
default: () => /* @__PURE__ */ new Map()
|
|
24
|
+
},
|
|
25
|
+
size: {
|
|
26
|
+
type: String,
|
|
27
|
+
required: false,
|
|
28
|
+
default: "default"
|
|
29
|
+
},
|
|
30
|
+
zIndex: {
|
|
31
|
+
type: Number,
|
|
32
|
+
required: false
|
|
33
|
+
},
|
|
34
|
+
button: {
|
|
35
|
+
type: Object,
|
|
36
|
+
required: false
|
|
37
|
+
},
|
|
38
|
+
link: {
|
|
39
|
+
type: Object,
|
|
40
|
+
required: false
|
|
41
|
+
},
|
|
42
|
+
dialog: {
|
|
43
|
+
type: Object,
|
|
44
|
+
required: false
|
|
45
|
+
},
|
|
46
|
+
message: {
|
|
47
|
+
type: Object,
|
|
48
|
+
required: false
|
|
49
|
+
},
|
|
50
|
+
emptyValues: {
|
|
51
|
+
type: String,
|
|
52
|
+
required: false
|
|
53
|
+
},
|
|
54
|
+
valueOnClear: {
|
|
55
|
+
type: [String, Number, null],
|
|
56
|
+
required: false
|
|
57
|
+
},
|
|
58
|
+
table: {
|
|
59
|
+
type: Object,
|
|
60
|
+
required: false
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
setup(__props) {
|
|
64
|
+
const props = __props;
|
|
65
|
+
const globalConfig = provideGlobalConfig(props);
|
|
66
|
+
const config = computed(() => {
|
|
67
|
+
const { locale, api, userAvatarMap, ...config2 } = globalConfig.value;
|
|
68
|
+
return {
|
|
69
|
+
locale: ElementLocale[locale] || ElementLocale["zhCn"],
|
|
70
|
+
...config2
|
|
71
|
+
};
|
|
72
|
+
});
|
|
73
|
+
return (_ctx, _cache) => {
|
|
74
|
+
return openBlock(), createBlock(
|
|
75
|
+
unref(ElConfigProvider),
|
|
76
|
+
mergeProps(config.value, { namespace: "hy-el" }),
|
|
77
|
+
{
|
|
78
|
+
default: withCtx(({ config: config2 }) => [
|
|
79
|
+
renderSlot(_ctx.$slots, "default", { config: config2 })
|
|
80
|
+
]),
|
|
81
|
+
_: 3
|
|
82
|
+
/* FORWARDED */
|
|
83
|
+
},
|
|
84
|
+
16
|
|
85
|
+
/* FULL_PROPS */
|
|
86
|
+
);
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
export { _sfc_main as default };
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { defineComponent, ref, openBlock, createBlock, unref, mergeProps, withCtx, createElementVNode, createVNode, normalizeClass, toDisplayString, createElementBlock, createTextVNode, createCommentVNode } from 'vue';
|
|
2
|
-
import { ElDialog, ElIcon
|
|
1
|
+
import { defineComponent, useModel, ref, openBlock, createBlock, unref, mergeProps, withCtx, createElementVNode, createVNode, normalizeClass, toDisplayString, createElementBlock, createTextVNode, createCommentVNode, withModifiers, mergeModels } from 'vue';
|
|
2
|
+
import { ElDialog, ElIcon } from 'element-plus';
|
|
3
3
|
import { Warning, CircleClose } from '@element-plus/icons-vue';
|
|
4
|
+
import { AppButton } from '../appButton/index.mjs';
|
|
4
5
|
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
5
6
|
|
|
6
|
-
import "./style/appConfirmDialog.scss";
|
|
7
|
-
|
|
8
7
|
const __default__ = defineComponent({
|
|
9
8
|
name: "AppConfirmDialog"
|
|
10
9
|
});
|
|
11
10
|
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
12
|
-
props: {
|
|
11
|
+
props: /* @__PURE__ */ mergeModels({
|
|
13
12
|
width: {
|
|
14
13
|
type: [String, Number],
|
|
15
14
|
default: 500
|
|
@@ -28,15 +27,15 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
28
27
|
},
|
|
29
28
|
showClose: {
|
|
30
29
|
type: Boolean,
|
|
31
|
-
default:
|
|
30
|
+
default: false
|
|
32
31
|
},
|
|
33
32
|
showCancel: {
|
|
34
33
|
type: Boolean,
|
|
35
34
|
default: true
|
|
36
35
|
},
|
|
37
|
-
|
|
36
|
+
cancelType: {
|
|
38
37
|
type: String,
|
|
39
|
-
default: "
|
|
38
|
+
default: "default"
|
|
40
39
|
},
|
|
41
40
|
cancelText: {
|
|
42
41
|
type: String
|
|
@@ -45,40 +44,78 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
45
44
|
type: Boolean,
|
|
46
45
|
default: true
|
|
47
46
|
},
|
|
48
|
-
|
|
47
|
+
submitType: {
|
|
49
48
|
type: String,
|
|
50
|
-
default: "
|
|
49
|
+
default: "primary"
|
|
51
50
|
},
|
|
52
51
|
submitText: {
|
|
53
52
|
type: String
|
|
54
53
|
},
|
|
55
|
-
|
|
54
|
+
iconColor: {
|
|
56
55
|
type: String,
|
|
57
|
-
default: "
|
|
58
|
-
},
|
|
59
|
-
onCancel: {
|
|
60
|
-
type: Function
|
|
56
|
+
default: "rgb(var(--hy-main))"
|
|
61
57
|
},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
},
|
|
66
|
-
|
|
58
|
+
onClose: Function,
|
|
59
|
+
onCancel: Function,
|
|
60
|
+
onSubmit: Function
|
|
61
|
+
}, {
|
|
62
|
+
"modelValue": { type: Boolean, default: false },
|
|
63
|
+
"modelModifiers": {}
|
|
64
|
+
}),
|
|
65
|
+
emits: /* @__PURE__ */ mergeModels(["hide"], ["update:modelValue"]),
|
|
67
66
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
68
67
|
const props = __props;
|
|
68
|
+
const emits = __emit;
|
|
69
69
|
const { t } = useLocale();
|
|
70
|
-
const visible =
|
|
70
|
+
const visible = useModel(__props, "modelValue");
|
|
71
|
+
const loading = ref(false);
|
|
71
72
|
async function onSubmitHandler() {
|
|
73
|
+
if (loading.value) return;
|
|
74
|
+
loading.value = true;
|
|
72
75
|
if (props.onSubmit) {
|
|
73
|
-
|
|
76
|
+
try {
|
|
77
|
+
await props.onSubmit();
|
|
78
|
+
} catch (err) {
|
|
79
|
+
console.error(err);
|
|
80
|
+
loading.value = false;
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
74
83
|
}
|
|
75
84
|
visible.value = false;
|
|
85
|
+
loading.value = false;
|
|
86
|
+
emits("hide");
|
|
76
87
|
}
|
|
77
|
-
async function
|
|
88
|
+
async function onCancelHandler() {
|
|
89
|
+
if (loading.value) return;
|
|
90
|
+
loading.value = true;
|
|
78
91
|
if (props.onCancel) {
|
|
79
|
-
|
|
92
|
+
try {
|
|
93
|
+
await props.onCancel();
|
|
94
|
+
} catch (err) {
|
|
95
|
+
console.error(err);
|
|
96
|
+
loading.value = false;
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
80
99
|
}
|
|
81
100
|
visible.value = false;
|
|
101
|
+
loading.value = false;
|
|
102
|
+
emits("hide");
|
|
103
|
+
}
|
|
104
|
+
async function onCloseHandler() {
|
|
105
|
+
if (loading.value) return;
|
|
106
|
+
loading.value = true;
|
|
107
|
+
if (props.onClose) {
|
|
108
|
+
try {
|
|
109
|
+
await props.onClose();
|
|
110
|
+
} catch (err) {
|
|
111
|
+
console.error(err);
|
|
112
|
+
loading.value = false;
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
visible.value = false;
|
|
117
|
+
loading.value = false;
|
|
118
|
+
emits("hide");
|
|
82
119
|
}
|
|
83
120
|
__expose({
|
|
84
121
|
show: () => {
|
|
@@ -97,11 +134,14 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
97
134
|
"close-on-click-modal": false,
|
|
98
135
|
"close-on-press-escape": false,
|
|
99
136
|
"show-close": false,
|
|
100
|
-
top: "15%"
|
|
101
|
-
class: "app-confirm-dialog"
|
|
137
|
+
top: "15%"
|
|
102
138
|
}, _ctx.$attrs), {
|
|
103
139
|
header: withCtx(() => [
|
|
104
|
-
createElementVNode("div", {
|
|
140
|
+
createElementVNode("div", {
|
|
141
|
+
class: "h-[38px] flex items-center justify-between border-b border-border pl-4 pr-[10px]",
|
|
142
|
+
onClick: withModifiers(() => {
|
|
143
|
+
}, ["stop"])
|
|
144
|
+
}, [
|
|
105
145
|
createElementVNode(
|
|
106
146
|
"span",
|
|
107
147
|
{ class: "text-sm text-main font-bold" },
|
|
@@ -109,60 +149,66 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
109
149
|
1
|
|
110
150
|
/* TEXT */
|
|
111
151
|
),
|
|
112
|
-
__props.showClose ? (openBlock(), createElementBlock(
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
152
|
+
__props.showClose ? (openBlock(), createElementBlock(
|
|
153
|
+
"div",
|
|
154
|
+
{
|
|
155
|
+
key: 0,
|
|
156
|
+
class: normalizeClass(["flex items-center clickBox", { "cursor-not-allowed": loading.value }]),
|
|
157
|
+
onClick: onCloseHandler
|
|
158
|
+
},
|
|
159
|
+
[
|
|
160
|
+
createVNode(unref(ElIcon), {
|
|
161
|
+
size: "18",
|
|
162
|
+
color: "rgb(var(--hy-danger-2))"
|
|
163
|
+
}, {
|
|
164
|
+
default: withCtx(() => [
|
|
165
|
+
createVNode(unref(CircleClose))
|
|
166
|
+
]),
|
|
167
|
+
_: 1
|
|
168
|
+
/* STABLE */
|
|
169
|
+
})
|
|
170
|
+
],
|
|
171
|
+
2
|
|
172
|
+
/* CLASS */
|
|
173
|
+
)) : createCommentVNode("v-if", true)
|
|
174
|
+
], 8, ["onClick"])
|
|
129
175
|
]),
|
|
130
176
|
default: withCtx(() => [
|
|
131
|
-
createElementVNode("div", { class: "
|
|
177
|
+
createElementVNode("div", { class: "flex flex-col items-center justify-between pt-[37px] pb-[27px]" }, [
|
|
132
178
|
createElementVNode("div", { class: "flex flex-col items-center text-main" }, [
|
|
133
179
|
createVNode(unref(ElIcon), {
|
|
134
180
|
size: "40",
|
|
135
|
-
color:
|
|
181
|
+
color: __props.iconColor
|
|
136
182
|
}, {
|
|
137
183
|
default: withCtx(() => [
|
|
138
184
|
createVNode(unref(Warning))
|
|
139
185
|
]),
|
|
140
186
|
_: 1
|
|
141
187
|
/* STABLE */
|
|
142
|
-
}),
|
|
188
|
+
}, 8, ["color"]),
|
|
143
189
|
createElementVNode(
|
|
144
190
|
"div",
|
|
145
191
|
{
|
|
146
|
-
class: normalizeClass(["text-base font-bold mt-[10px] mb-[26px]", __props.titleClass])
|
|
192
|
+
class: normalizeClass(["text-base text-center font-bold mt-[10px] mb-[26px]", __props.titleClass])
|
|
147
193
|
},
|
|
148
194
|
toDisplayString(__props.title),
|
|
149
195
|
3
|
|
150
196
|
/* TEXT, CLASS */
|
|
151
197
|
),
|
|
152
198
|
createElementVNode("div", {
|
|
153
|
-
class: "max-w-[
|
|
199
|
+
class: "max-w-[300px] text-smword-break text-center break-all",
|
|
154
200
|
innerHTML: __props.content
|
|
155
201
|
}, null, 8, ["innerHTML"])
|
|
156
202
|
]),
|
|
157
203
|
__props.showSubmit || __props.showCancel ? (openBlock(), createElementBlock("div", {
|
|
158
204
|
key: 0,
|
|
159
|
-
class: "
|
|
205
|
+
class: "pt-[32px]"
|
|
160
206
|
}, [
|
|
161
|
-
__props.showCancel ? (openBlock(), createBlock(unref(
|
|
207
|
+
__props.showCancel ? (openBlock(), createBlock(unref(AppButton), {
|
|
162
208
|
key: 0,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
onClick:
|
|
209
|
+
type: __props.cancelType,
|
|
210
|
+
disabled: loading.value,
|
|
211
|
+
onClick: onCancelHandler
|
|
166
212
|
}, {
|
|
167
213
|
default: withCtx(() => [
|
|
168
214
|
createTextVNode(
|
|
@@ -173,11 +219,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
173
219
|
]),
|
|
174
220
|
_: 1
|
|
175
221
|
/* STABLE */
|
|
176
|
-
}, 8, ["
|
|
177
|
-
__props.showSubmit ? (openBlock(), createBlock(unref(
|
|
222
|
+
}, 8, ["type", "disabled"])) : createCommentVNode("v-if", true),
|
|
223
|
+
__props.showSubmit ? (openBlock(), createBlock(unref(AppButton), {
|
|
178
224
|
key: 1,
|
|
179
|
-
|
|
180
|
-
|
|
225
|
+
type: __props.submitType,
|
|
226
|
+
disabled: loading.value,
|
|
181
227
|
onClick: onSubmitHandler
|
|
182
228
|
}, {
|
|
183
229
|
default: withCtx(() => [
|
|
@@ -189,7 +235,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
189
235
|
]),
|
|
190
236
|
_: 1
|
|
191
237
|
/* STABLE */
|
|
192
|
-
}, 8, ["
|
|
238
|
+
}, 8, ["type", "disabled"])) : createCommentVNode("v-if", true)
|
|
193
239
|
])) : createCommentVNode("v-if", true)
|
|
194
240
|
])
|
|
195
241
|
]),
|
|
@@ -201,4 +247,3 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
201
247
|
});
|
|
202
248
|
|
|
203
249
|
export { _sfc_main as default };
|
|
204
|
-
//# sourceMappingURL=appConfirmDialog.vue.mjs.map
|