@zgfe/business-lib 1.0.0-beta.6 → 1.0.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 (283) hide show
  1. package/es/analysisLayout/demo/index.js +4 -1
  2. package/es/analysisLayout/index.d.ts +1 -28
  3. package/es/analysisLayout/index.js +38 -48
  4. package/es/analysisLayout/index.less +1 -1
  5. package/es/assets/styles/chunks.less +143 -0
  6. package/es/assets/styles/inner.less +3 -0
  7. package/es/assets/styles/resetAntd.less +398 -0
  8. package/es/assets/styles/variable.less +21 -0
  9. package/es/assets/theme.d.ts +5 -0
  10. package/es/assets/theme.js +4 -0
  11. package/es/attrConditions/components/operateList.d.ts +8 -0
  12. package/es/attrConditions/components/operateList.js +83 -0
  13. package/es/attrConditions/components/stringList.d.ts +9 -0
  14. package/es/attrConditions/components/stringList.js +168 -0
  15. package/es/attrConditions/components/valuesList.d.ts +10 -0
  16. package/es/attrConditions/components/valuesList.js +188 -0
  17. package/es/{attributeSelector/demo/multi.d.ts → attrConditions/demo/group.d.ts} +0 -0
  18. package/es/attrConditions/demo/group.js +82 -0
  19. package/es/{globalAttributes → attrConditions}/demo/index.d.ts +0 -0
  20. package/es/{datePicker/demo/form.js → attrConditions/demo/index.js} +43 -23
  21. package/es/attrConditions/group.d.ts +5 -0
  22. package/es/attrConditions/group.js +183 -0
  23. package/es/attrConditions/index.d.ts +6 -0
  24. package/es/attrConditions/index.js +160 -0
  25. package/es/attrConditions/styles/group.less +49 -0
  26. package/es/attrConditions/styles/index.less +94 -0
  27. package/es/attrConditions/types.d.ts +63 -0
  28. package/es/attrConditions/types.js +19 -0
  29. package/es/attrConditions/utils/operates.d.ts +16 -0
  30. package/es/attrConditions/utils/operates.js +67 -0
  31. package/es/attributeSelector/demo/index.d.ts +3 -0
  32. package/es/attributeSelector/demo/{singleForm.js → index.js} +42 -44
  33. package/es/attributeSelector/index.d.ts +4 -111
  34. package/es/attributeSelector/index.js +88 -543
  35. package/es/attributeSelector/listPanel.d.ts +4 -0
  36. package/es/attributeSelector/listPanel.js +208 -0
  37. package/es/attributeSelector/option.d.ts +15 -0
  38. package/es/attributeSelector/option.js +53 -0
  39. package/es/attributeSelector/styles/index.less +100 -0
  40. package/es/attributeSelector/types.d.ts +79 -0
  41. package/es/attributeSelector/types.js +15 -0
  42. package/es/attributeSelector/util.d.ts +7 -0
  43. package/es/attributeSelector/util.js +69 -0
  44. package/es/chart/demo/pie.js +1 -0
  45. package/es/chart/index.d.ts +2 -96
  46. package/es/chart/index.js +28 -35
  47. package/es/chart/styles/index.less +50 -0
  48. package/es/chart/types.d.ts +46 -0
  49. package/es/chart/{type.js → types.js} +0 -0
  50. package/es/chart/util/{chartConfig.d.ts → chartOptionConfig.d.ts} +4 -35
  51. package/es/chart/util/{chartConfig.js → chartOptionConfig.js} +45 -111
  52. package/es/chart/util/formatData.d.ts +3 -7
  53. package/es/chart/util/formatData.js +47 -26
  54. package/es/chart/util/formatOption.d.ts +2 -1
  55. package/es/chart/util/formatOption.js +22 -9
  56. package/es/chart/util/mapUtil.d.ts +3 -3
  57. package/es/chart/util/mapUtil.js +9 -19
  58. package/es/commonStyle/icon.less +116 -112
  59. package/es/commonStyle/select.less +1 -1
  60. package/es/commonStyle/theme.less +520 -473
  61. package/es/components/iconFont.js +4 -2
  62. package/es/context/index.d.ts +16 -0
  63. package/es/context/index.js +3 -0
  64. package/es/datePicker/datePicker.d.ts +10 -0
  65. package/es/datePicker/datePicker.js +115 -0
  66. package/es/datePicker/demo/index.d.ts +1 -0
  67. package/es/datePicker/demo/index.js +9 -2
  68. package/es/datePicker/index.d.ts +4 -27
  69. package/es/datePicker/index.js +72 -148
  70. package/es/datePicker/styles/index.less +48 -0
  71. package/es/datePicker/types.d.ts +24 -0
  72. package/es/{eventSelector/type.js → datePicker/types.js} +0 -0
  73. package/es/datePicker/utils.d.ts +6 -0
  74. package/es/datePicker/utils.js +70 -0
  75. package/es/dialog/components/itemNode.d.ts +10 -0
  76. package/es/dialog/components/itemNode.js +109 -0
  77. package/es/dialog/components/list.d.ts +3 -13
  78. package/es/dialog/components/list.js +15 -12
  79. package/es/dialog/components/selectToInput.d.ts +4 -48
  80. package/es/dialog/components/selectToInput.js +74 -80
  81. package/es/dialog/components/styles/handle.less +39 -0
  82. package/es/dialog/components/styles/list.less +60 -0
  83. package/es/dialog/components/styles/tab.less +55 -0
  84. package/es/dialog/components/tab.d.ts +3 -7
  85. package/es/dialog/components/tab.js +57 -19
  86. package/es/dialog/data/{chart.d.ts → data.d.ts} +9 -0
  87. package/es/dialog/data/{chart.js → data.js} +11 -0
  88. package/es/dialog/demo/index.d.ts +23 -0
  89. package/es/dialog/demo/index.js +34 -3
  90. package/es/dialog/demo/index2.js +14 -2
  91. package/es/dialog/index.d.ts +4 -97
  92. package/es/dialog/index.js +54 -109
  93. package/es/dialog/styles/index.less +11 -0
  94. package/es/dialog/types.d.ts +77 -0
  95. package/es/{targetConditionGroup/type.js → dialog/types.js} +0 -0
  96. package/es/eventSelector/demo/index.js +26 -44
  97. package/es/eventSelector/index.d.ts +4 -30
  98. package/es/eventSelector/index.js +90 -416
  99. package/es/eventSelector/listPanel.d.ts +4 -0
  100. package/es/eventSelector/listPanel.js +197 -0
  101. package/es/eventSelector/option.d.ts +17 -0
  102. package/es/eventSelector/option.js +54 -0
  103. package/es/eventSelector/styles/index.less +77 -0
  104. package/es/eventSelector/types.d.ts +31 -0
  105. package/es/eventSelector/types.js +1 -0
  106. package/es/index.d.ts +14 -11
  107. package/es/index.js +9 -11
  108. package/es/{attributeSelector/data → mock}/env.d.ts +0 -0
  109. package/es/{attributeSelector/data → mock}/env.js +0 -0
  110. package/es/{attributeSelector/data → mock}/event.d.ts +0 -0
  111. package/es/{attributeSelector/data → mock}/event.js +0 -0
  112. package/es/{attributeSelector/data → mock}/user.d.ts +0 -0
  113. package/es/{attributeSelector/data → mock}/user.js +0 -0
  114. package/es/{multipleSelector → searchInput}/demo/index.d.ts +0 -0
  115. package/es/searchInput/demo/index.js +5 -0
  116. package/es/searchInput/index.d.ts +8 -0
  117. package/es/searchInput/index.js +31 -0
  118. package/es/{attributeSelector/demo/multiForm.d.ts → select/demo/group.d.ts} +0 -0
  119. package/es/{globalAttributes/demo/index.js → select/demo/group.js} +49 -31
  120. package/es/select/demo/index.js +49 -21
  121. package/es/{attributeSelector/demo/single.d.ts → select/demo/multiple.d.ts} +0 -0
  122. package/es/{multipleSelector/demo/index.js → select/demo/multiple.js} +55 -12
  123. package/es/select/handle.d.ts +5 -0
  124. package/es/select/handle.js +119 -0
  125. package/es/select/index.d.ts +4 -49
  126. package/es/select/index.js +168 -122
  127. package/es/select/option.d.ts +4 -0
  128. package/es/select/option.js +59 -0
  129. package/es/select/overlay.d.ts +4 -0
  130. package/es/select/overlay.js +154 -0
  131. package/es/select/styles/handle.less +111 -0
  132. package/es/select/styles/index.less +99 -0
  133. package/es/select/types.d.ts +65 -0
  134. package/es/select/types.js +1 -0
  135. package/es/table/demo/data/table.js +1 -1
  136. package/es/table/demo/index.d.ts +1 -1
  137. package/es/table/demo/index.js +9 -8
  138. package/es/table/demo/index3.js +9 -18
  139. package/es/table/index.d.ts +4 -30
  140. package/es/table/index.js +30 -26
  141. package/es/table/styles/index.less +5 -0
  142. package/es/table/type.d.ts +10 -0
  143. package/es/table/type.js +1 -0
  144. package/es/targetConditionGroup/components/targetDimension.d.ts +8 -0
  145. package/es/targetConditionGroup/components/targetDimension.js +153 -0
  146. package/es/targetConditionGroup/data/operates.d.ts +8 -24
  147. package/es/targetConditionGroup/data/operates.js +26 -69
  148. package/es/targetConditionGroup/demo/group.d.ts +1 -0
  149. package/es/targetConditionGroup/demo/group.js +108 -23
  150. package/es/targetConditionGroup/demo/index.js +34 -34
  151. package/es/targetConditionGroup/demo/styles/index.less +29 -0
  152. package/es/targetConditionGroup/index.d.ts +4 -57
  153. package/es/targetConditionGroup/index.js +177 -274
  154. package/es/targetConditionGroup/styles/index.less +25 -0
  155. package/es/targetConditionGroup/types.d.ts +32 -0
  156. package/es/targetConditionGroup/types.js +1 -0
  157. package/es/targetSelector/demo/index.d.ts +1 -0
  158. package/es/targetSelector/demo/index.js +29 -71
  159. package/es/targetSelector/editBox.d.ts +8 -0
  160. package/es/targetSelector/{components/BizEventNameEditBox.js → editBox.js} +49 -24
  161. package/es/targetSelector/index.d.ts +5 -55
  162. package/es/targetSelector/index.js +103 -214
  163. package/es/targetSelector/optionIcon.d.ts +9 -0
  164. package/es/targetSelector/optionIcon.js +24 -0
  165. package/es/targetSelector/optionMenu.d.ts +7 -0
  166. package/es/targetSelector/optionMenu.js +38 -0
  167. package/es/targetSelector/styles/index.less +88 -0
  168. package/es/targetSelector/types.d.ts +18 -0
  169. package/es/targetSelector/types.js +1 -0
  170. package/es/userCondition/conditionTypeList.d.ts +10 -0
  171. package/es/userCondition/conditionTypeList.js +43 -0
  172. package/es/userCondition/conditionWrap.d.ts +7 -0
  173. package/es/userCondition/conditionWrap.js +18 -0
  174. package/es/userCondition/conditions/eventCondition.d.ts +8 -0
  175. package/es/userCondition/conditions/eventCondition.js +104 -0
  176. package/es/userCondition/conditions/periodCondition.d.ts +11 -0
  177. package/es/userCondition/conditions/periodCondition.js +156 -0
  178. package/es/userCondition/conditions/propCondition.d.ts +11 -0
  179. package/es/userCondition/conditions/propCondition.js +147 -0
  180. package/es/userCondition/conditions/runTimesCondition.d.ts +9 -0
  181. package/es/userCondition/conditions/runTimesCondition.js +78 -0
  182. package/es/userCondition/conditions/styles/eventCondition.less +49 -0
  183. package/es/userCondition/conditions/styles/periodCondition.less +14 -0
  184. package/es/userCondition/conditions/styles/propCondition.less +36 -0
  185. package/es/userCondition/conditions/styles/runTimesCondition.less +16 -0
  186. package/es/{attributeSelector/demo/singleForm.d.ts → userCondition/demo/index.d.ts} +0 -0
  187. package/es/userCondition/demo/index.js +97 -0
  188. package/es/userCondition/index.d.ts +7 -0
  189. package/es/userCondition/index.js +146 -0
  190. package/es/userCondition/orConditions.d.ts +5 -0
  191. package/es/userCondition/orConditions.js +202 -0
  192. package/es/userCondition/relationLabel.d.ts +6 -0
  193. package/es/userCondition/relationLabel.js +12 -0
  194. package/es/userCondition/styles/conditionTypeList.less +31 -0
  195. package/es/userCondition/styles/conditionWrap.less +14 -0
  196. package/es/userCondition/styles/index.less +13 -0
  197. package/es/userCondition/styles/orConditions.less +16 -0
  198. package/es/userCondition/styles/relationLabel.less +18 -0
  199. package/es/userCondition/types.d.ts +79 -0
  200. package/es/userCondition/types.js +1 -0
  201. package/es/userCondition/util.d.ts +2 -0
  202. package/es/userCondition/util.js +54 -0
  203. package/es/{datePicker/demo/form.d.ts → userGroup/demo/group.d.ts} +0 -0
  204. package/es/{targetConditionGroup/demo/form.js → userGroup/demo/group.js} +68 -72
  205. package/es/userGroup/demo/index.d.ts +0 -1
  206. package/es/userGroup/demo/index.js +5 -62
  207. package/es/userGroup/index.d.ts +3 -77
  208. package/es/userGroup/index.js +60 -108
  209. package/es/userGroup/styles/index.less +20 -0
  210. package/es/userGroup/types.d.ts +15 -0
  211. package/es/userGroup/types.js +1 -0
  212. package/es/utils/ajax.js +5 -20
  213. package/es/utils/type.d.ts +42 -44
  214. package/es/utils/util.d.ts +1 -35
  215. package/es/utils/util.js +27 -57
  216. package/package.json +11 -4
  217. package/es/attributeSelector/demo/multi.js +0 -39
  218. package/es/attributeSelector/demo/multiForm.js +0 -64
  219. package/es/attributeSelector/demo/single.js +0 -43
  220. package/es/attributeSelector/group.d.ts +0 -31
  221. package/es/attributeSelector/group.js +0 -225
  222. package/es/attributeSelector/index.less +0 -172
  223. package/es/chart/index.less +0 -38
  224. package/es/chart/style/circle.svg +0 -4
  225. package/es/chart/type.d.ts +0 -22
  226. package/es/datePicker/data.d.ts +0 -9
  227. package/es/datePicker/data.js +0 -65
  228. package/es/datePicker/index.less +0 -364
  229. package/es/dialog/components/style/list.less +0 -59
  230. package/es/dialog/components/style/tab.less +0 -61
  231. package/es/dialog/style/index.less +0 -86
  232. package/es/eventSelector/demo/form.d.ts +0 -2
  233. package/es/eventSelector/demo/form.js +0 -89
  234. package/es/eventSelector/demo/nodata.d.ts +0 -2
  235. package/es/eventSelector/demo/nodata.js +0 -13
  236. package/es/eventSelector/index.less +0 -121
  237. package/es/eventSelector/type.d.ts +0 -41
  238. package/es/globalAttributes/demo/data/env.d.ts +0 -11
  239. package/es/globalAttributes/demo/data/env.js +0 -181
  240. package/es/globalAttributes/demo/data/event.d.ts +0 -237
  241. package/es/globalAttributes/demo/data/event.js +0 -3483
  242. package/es/globalAttributes/demo/data/user.d.ts +0 -22
  243. package/es/globalAttributes/demo/data/user.js +0 -218
  244. package/es/globalAttributes/index.d.ts +0 -47
  245. package/es/globalAttributes/index.js +0 -112
  246. package/es/multipleSelector/index.d.ts +0 -36
  247. package/es/multipleSelector/index.js +0 -131
  248. package/es/multipleSelector/index.less +0 -136
  249. package/es/table/demo/index.less +0 -8
  250. package/es/table/index.less +0 -139
  251. package/es/targetConditionGroup/components/conditionGroup.d.ts +0 -30
  252. package/es/targetConditionGroup/components/conditionGroup.js +0 -112
  253. package/es/targetConditionGroup/components/conditionItem.d.ts +0 -47
  254. package/es/targetConditionGroup/components/conditionItem.js +0 -232
  255. package/es/targetConditionGroup/components/style/group.less +0 -47
  256. package/es/targetConditionGroup/components/style/index.less +0 -16
  257. package/es/targetConditionGroup/demo/data/env.d.ts +0 -11
  258. package/es/targetConditionGroup/demo/data/env.js +0 -181
  259. package/es/targetConditionGroup/demo/data/event.d.ts +0 -237
  260. package/es/targetConditionGroup/demo/data/event.js +0 -3483
  261. package/es/targetConditionGroup/demo/data/user.d.ts +0 -22
  262. package/es/targetConditionGroup/demo/data/user.js +0 -218
  263. package/es/targetConditionGroup/demo/form.d.ts +0 -2
  264. package/es/targetConditionGroup/demo/item.d.ts +0 -2
  265. package/es/targetConditionGroup/demo/item.js +0 -5
  266. package/es/targetConditionGroup/group.d.ts +0 -56
  267. package/es/targetConditionGroup/group.js +0 -204
  268. package/es/targetConditionGroup/index.less +0 -76
  269. package/es/targetConditionGroup/type.d.ts +0 -95
  270. package/es/targetSelector/components/BizCascadeBox.d.ts +0 -34
  271. package/es/targetSelector/components/BizCascadeBox.js +0 -213
  272. package/es/targetSelector/components/BizEventNameEditBox.d.ts +0 -20
  273. package/es/targetSelector/demo/form.d.ts +0 -2
  274. package/es/targetSelector/demo/form.js +0 -133
  275. package/es/targetSelector/demo/nodata.d.ts +0 -2
  276. package/es/targetSelector/demo/nodata.js +0 -13
  277. package/es/targetSelector/index.less +0 -28
  278. package/es/userGroup/demo/cluster.d.ts +0 -3
  279. package/es/userGroup/demo/cluster.js +0 -102
  280. package/es/userGroup/demo/index.less +0 -3
  281. package/es/userGroup/index.less +0 -2
  282. package/es/userGroup/userCluster.d.ts +0 -63
  283. package/es/userGroup/userCluster.js +0 -255
@@ -1,172 +0,0 @@
1
- @import '../commonStyle/select.less';
2
- @import '../commonStyle/icon.less';
3
-
4
- .biz-select-menu {
5
- position: absolute;
6
- top: 0;
7
- left: 0;
8
- width: 100%;
9
- background-color: #ccc;
10
- // height: 50px;
11
- }
12
-
13
- .biz-archon {
14
- width: 100%;
15
- margin: 0;
16
- padding: 0;
17
-
18
- .ant-anchor {
19
- display: flex;
20
- }
21
-
22
- .ant-anchor-ink::before {
23
- width: 0;
24
- }
25
-
26
- .ant-anchor-link {
27
- padding: 0;
28
-
29
- &:not(:last-child) {
30
- margin-right: 8px;
31
- }
32
- }
33
-
34
- .ant-anchor-link-active > .ant-anchor-link-title {
35
- color: @fontColor;
36
- }
37
-
38
- &.biz-archon-first {
39
- margin-bottom: 12px;
40
- border-bottom: 1px solid #ecedf0;
41
-
42
- .ant-anchor-link {
43
- position: relative;
44
- height: 17px;
45
- margin: 4px 8px;
46
- line-height: 17px;
47
- transition: all 0.3s;
48
- }
49
-
50
- .ant-anchor-link-active {
51
- a {
52
- color: @themeColor;
53
- }
54
-
55
- &::after {
56
- position: absolute;
57
- bottom: -4px;
58
- left: 50%;
59
- width: 16px;
60
- height: 1px;
61
- background-color: @themeColor;
62
- transform: translateX(-50%);
63
- content: '';
64
- }
65
- }
66
- }
67
-
68
- &.biz-archon-second {
69
- box-sizing: border-box;
70
- margin: 0 4px 12px 0;
71
-
72
- .ant-anchor-link {
73
- box-sizing: border-box;
74
- margin: 0px 8px;
75
- padding: 4px 5px;
76
- color: @fontColor;
77
- font-size: 12px;
78
- background: #ffffff;
79
- border: @boxBorder;
80
- border-radius: @boxRadius;
81
-
82
- &.ant-anchor-link-active,
83
- &:hover {
84
- color: @hoverColor;
85
- background-color: @hoverBgColor;
86
- border-color: @hoverColor;
87
-
88
- a {
89
- color: @hoverColor;
90
- }
91
- }
92
- }
93
- }
94
-
95
- a {
96
- color: @titleColor;
97
-
98
- &:hover {
99
- color: @themeColor;
100
- }
101
- }
102
- }
103
-
104
- .biz-dropdown-container {
105
- position: absolute;
106
- top: 42px;
107
- left: -4px;
108
- z-index: 9999;
109
- min-width: 322px;
110
- height: @dropdownHeight;
111
- padding: @dropdownPadding;
112
- overflow: hidden;
113
- background: #ffffff;
114
- border-radius: @boxRadius2;
115
- box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
116
- transition: all 0.3s;
117
-
118
- .biz-select-list-container {
119
- box-sizing: border-box;
120
- height: calc(100% - 120px);
121
- padding: 4px;
122
- overflow-y: auto;
123
- }
124
-
125
- .biz-drop-option {
126
- display: flex;
127
- align-items: center;
128
- width: 100%;
129
- }
130
-
131
- .biz-drop-menu {
132
- position: relative;
133
- box-sizing: border-box;
134
- height: 32px;
135
- padding-left: 8px;
136
- color: @titleColor;
137
-
138
- &::before {
139
- position: absolute;
140
- top: 9px;
141
- left: 0px;
142
- width: 3px;
143
- height: 14px;
144
- background-color: @themeColor;
145
- border-radius: 10px;
146
- content: '';
147
- }
148
-
149
- span {
150
- padding-right: 8px;
151
- }
152
-
153
- .biz-menu-split {
154
- flex: auto;
155
- height: 1px;
156
- background: @borderColor;
157
- }
158
- }
159
-
160
- .biz-drop-index {
161
- height: 40px;
162
- padding: 11px 8px;
163
- border-radius: @boxRadius2;
164
- cursor: pointer;
165
- span {
166
- }
167
- .biz-icon-index {
168
- margin-right: 5px;
169
- font-size: @iconSize;
170
- }
171
- }
172
- }
@@ -1,38 +0,0 @@
1
- .biz-chart-tooltip {
2
- padding: 8;
3
- background-color: 'rgba(250, 251, 253, 0.8)';
4
- border-color: 'transparent';
5
- backdrop-filter: blur(4px);
6
- .biz-chart-tooltip-title {
7
- color: #021429;
8
- font-weight: 600;
9
- font-size: 12px;
10
- line-height: 17px;
11
- }
12
-
13
- .biz-chart-tooltip-item {
14
- display: flex;
15
- align-items: center;
16
- justify-content: space-between;
17
- height: 24px;
18
- margin: 4px 0px;
19
- padding: 0 8px;
20
- font-size: 12px;
21
- background: #ffffff;
22
- border-radius: 4px;
23
- box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.04);
24
-
25
- .biz-chart-tooltip-content {
26
- color: #5f6085;
27
- font-weight: 400;
28
- span {
29
- margin-right: 8px;
30
- }
31
- }
32
- .biz-chart-tooltip-value {
33
- margin-left: 8px;
34
- color: #021429;
35
- font-weight: 500;
36
- }
37
- }
38
- }
@@ -1,4 +0,0 @@
1
- <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <circle cx="5.99951" cy="6" r="6" fill="white"/>
3
- <circle cx="5.99951" cy="6" r="4" fill="#F8BC3B"/>
4
- </svg>
@@ -1,22 +0,0 @@
1
- export interface ChartItmProps {
2
- names: Array<string>;
3
- values: Array<number>;
4
- userGroupCompareData?: object;
5
- }
6
- export interface DataProps {
7
- x_axis: Array<string>;
8
- series: Array<ChartItmProps>;
9
- }
10
- export interface ItemDataProps {
11
- data: Array<object>;
12
- [prop: string]: any;
13
- }
14
- export interface ProvinceDataProps {
15
- name: string;
16
- value: number;
17
- childrenOptions: Array<any>;
18
- isProvince?: boolean;
19
- }
20
- export interface ProvinceMapDataProps {
21
- [prop: string]: ProvinceDataProps;
22
- }
@@ -1,9 +0,0 @@
1
- export declare const allDate: {
2
- unit: string;
3
- timeList: string[];
4
- }[];
5
- export declare const dateType: {
6
- label: string;
7
- value: string;
8
- }[];
9
- export declare const dateList: any;
@@ -1,65 +0,0 @@
1
- export var allDate = [{
2
- unit: '按小时',
3
- timeList: ['昨天', '前天']
4
- }, {
5
- unit: '按天',
6
- timeList: ['7天', '14天', '30天']
7
- }, {
8
- unit: '按周',
9
- timeList: ['4周', '8周', '12周']
10
- }, {
11
- unit: '按月',
12
- timeList: ['1个月', '2个月', '3个月']
13
- }];
14
- export var dateType = [{
15
- label: '按小时',
16
- value: 'hour'
17
- }, {
18
- label: '按天',
19
- value: 'day'
20
- }, {
21
- label: '按周',
22
- value: 'week'
23
- }, {
24
- label: '按月',
25
- value: 'month'
26
- }];
27
- export var dateList = {
28
- hour: [{
29
- value: '昨天',
30
- count: 1
31
- }, {
32
- value: '前天',
33
- count: 2
34
- }],
35
- day: [{
36
- value: '7天',
37
- count: 7
38
- }, {
39
- value: '14天',
40
- count: 14
41
- }, {
42
- value: '30天',
43
- count: 30
44
- }],
45
- week: [{
46
- value: '4周',
47
- count: 4
48
- }, {
49
- value: '8周',
50
- count: 8
51
- }, {
52
- value: '12周',
53
- count: 12
54
- }],
55
- month: [{
56
- value: '1个月',
57
- count: 1
58
- }, {
59
- value: '2个月',
60
- count: 2
61
- }, {
62
- value: '3个月',
63
- count: 3
64
- }]
65
- };
@@ -1,364 +0,0 @@
1
- @import '../commonStyle/variable.less';
2
-
3
- .biz-date-container {
4
- display: flex;
5
- justify-content: flex-start;
6
-
7
- .biz-date-type {
8
- width: 88px;
9
- }
10
-
11
- .biz-date-list {
12
- display: flex;
13
- margin: 0 16px;
14
-
15
- .biz-date-item {
16
- width: 58px;
17
- height: 32px;
18
- color: @titleColor;
19
- line-height: 32px;
20
- text-align: center;
21
- background: #ffffff;
22
- border: 1px solid #ecedf0;
23
- cursor: pointer;
24
-
25
- &:first-child {
26
- border-radius: 4px 0px 0px 4px;
27
- }
28
-
29
- &:last-child {
30
- border-radius: 0px 4px 4px 0px;
31
- }
32
-
33
- &:not(:last-child) {
34
- border-right: none;
35
- }
36
-
37
- &:hover {
38
- .box-hover();
39
- }
40
-
41
- &.active {
42
- color: @themeColor;
43
- background: @hoverBgColor;
44
- border: 1px solid @themeColor;
45
- }
46
- }
47
- }
48
- }
49
-
50
- .biz-date-picker {
51
- position: relative;
52
-
53
- .biz-date-input {
54
- .boxBg();
55
- position: absolute;
56
- top: 0;
57
- left: 0;
58
- width: 100%;
59
- height: 32px;
60
- padding: 4px 12px;
61
- background: #fff;
62
- border: 1px solid @borderColor;
63
- cursor: pointer;
64
- }
65
-
66
- .ant-picker {
67
- padding: 4px 12px;
68
- border-color: @borderColor;
69
- border-radius: @boxRadius;
70
-
71
- input {
72
- text-align: center;
73
- cursor: pointer;
74
- }
75
-
76
- .ant-picker-suffix {
77
- color: @iconColor;
78
- }
79
- }
80
-
81
- .ant-picker:hover,
82
- .ant-picker-focused {
83
- border-color: @hoverBgColor;
84
- border-right-width: 1px;
85
- box-shadow: none;
86
- .box-hover();
87
-
88
- input {
89
- color: @themeColor;
90
- }
91
-
92
- .ant-picker-suffix {
93
- color: @themeColor;
94
- }
95
- }
96
-
97
- .ant-picker-focused {
98
- border: none;
99
- border-right-width: 1px;
100
- outline: 0;
101
- box-shadow: none;
102
- }
103
-
104
- .ant-picker-range.ant-picker-focused .ant-picker-active-bar {
105
- display: none;
106
- background: transparent;
107
- }
108
- }
109
-
110
- .ant-picker-panel-container {
111
- border-radius: 10px;
112
- box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
113
- }
114
-
115
- .ant-picker-header-view button:hover,
116
- .ant-picker-header > button:hover {
117
- color: @themeColor;
118
- }
119
-
120
- .ant-picker-cell {
121
- color: #9797af;
122
-
123
- &.ant-picker-cell-in-view {
124
- color: @fontColor;
125
-
126
- .ant-picker-cell-inner {
127
- min-width: 30px;
128
- height: 30px;
129
- line-height: 30px;
130
- text-align: center;
131
- border-radius: 20px;
132
-
133
- &:hover {
134
- border: 1px solid @themeColor;
135
- }
136
- }
137
-
138
- &.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single):not(.ant-picker-cell-range-end),
139
- &.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single):not(.ant-picker-cell-range-start) {
140
- .ant-picker-cell-inner {
141
- border-radius: 20px;
142
- }
143
- }
144
-
145
- &.ant-picker-cell-in-range::before {
146
- background: @hoverBgColor;
147
- }
148
-
149
- &.ant-picker-cell-in-range.ant-picker-cell-end::before {
150
- border-top-right-radius: 4px;
151
- border-bottom-right-radius: 4px;
152
- }
153
-
154
- &.ant-picker-cell-in-range.ant-picker-cell-start::before {
155
- border-top-left-radius: 4px;
156
- border-bottom-left-radius: 4px;
157
- }
158
-
159
- &.ant-picker-cell-range-hover-start:not(.ant-picker-cell-in-range):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end)::after,
160
- &.ant-picker-cell-range-hover-end:not(.ant-picker-cell-in-range):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end)::after,
161
- &.ant-picker-cell-range-hover-start.ant-picker-cell-range-start-single::after,
162
- &.ant-picker-cell-range-hover-start.ant-picker-cell-range-start.ant-picker-cell-range-end.ant-picker-cell-range-end-near-hover::after,
163
- &.ant-picker-cell-range-hover-end.ant-picker-cell-range-start.ant-picker-cell-range-end.ant-picker-cell-range-start-near-hover::after,
164
- &.ant-picker-cell-range-hover-end.ant-picker-cell-range-end-single::after,
165
- &.ant-picker-cell-range-hover:not(.ant-picker-cell-in-range)::after {
166
- position: absolute;
167
- top: 50%;
168
- z-index: 0;
169
- height: 30px;
170
- transform: translateY(-50%);
171
- transition: all 0.3s;
172
- content: '';
173
- }
174
-
175
- &.ant-picker-cell-selected .ant-picker-cell-inner,
176
- &.ant-picker-cell-range-start .ant-picker-cell-inner,
177
- &.ant-picker-cell-range-end .ant-picker-cell-inner {
178
- color: #fff;
179
- background: @themeColor;
180
- }
181
-
182
- &.ant-picker-cell-start::after {
183
- border-left: 1px dashed @hoverBgColor;
184
- border-top-left-radius: 4px;
185
- border-bottom-left-radius: 4px;
186
- }
187
-
188
- &.ant-picker-cell-end::after {
189
- border-right: 1px dashed @hoverBgColor;
190
- border-top-right-radius: 4px;
191
- border-bottom-right-radius: 4px;
192
- }
193
- }
194
-
195
- &::before {
196
- height: 30px;
197
- }
198
-
199
- &.ant-picker-cell-disabled {
200
- color: @disableColor;
201
-
202
- &::before {
203
- background: #fff;
204
- }
205
- }
206
-
207
- &:hover:not(.ant-picker-cell-in-view) .ant-picker-cell-inner,
208
- &:hover:not(.ant-picker-cell-selected):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):not(.ant-picker-cell-range-hover-start):not(.ant-picker-cell-range-hover-end)
209
- .ant-picker-cell-inner {
210
- background: red;
211
- }
212
-
213
- &.ant-picker-cell-in-view.ant-picker-cell-today {
214
- &.ant-picker-cell-selected {
215
- .ant-picker-cell-inner::before {
216
- background: #fff;
217
- }
218
- }
219
-
220
- .ant-picker-cell-inner::before {
221
- position: absolute;
222
- top: auto;
223
- bottom: 4px;
224
- left: 50%;
225
- width: 6px;
226
- height: 1.5px;
227
- background: @themeColor;
228
- border: none;
229
- border-radius: 0.5px;
230
- transform: translateX(-50%);
231
- content: '';
232
- }
233
- }
234
- }
235
-
236
- .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover::before,
237
- .ant-picker-cell-in-view.ant-picker-cell-range-start.ant-picker-cell-range-hover::before,
238
- .ant-picker-cell-in-view.ant-picker-cell-range-end.ant-picker-cell-range-hover::before,
239
- .ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single).ant-picker-cell-range-hover-start::before,
240
- .ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single).ant-picker-cell-range-hover-end::before,
241
- .ant-picker-panel
242
- > :not(.ant-picker-date-panel)
243
- .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start::before,
244
- .ant-picker-panel
245
- > :not(.ant-picker-date-panel)
246
- .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end::before {
247
- background: @hoverBgColor;
248
- }
249
-
250
- .ant-picker-date-panel
251
- .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start
252
- .ant-picker-cell-inner::after,
253
- .ant-picker-date-panel
254
- .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end
255
- .ant-picker-cell-inner::after {
256
- position: absolute;
257
- top: 0;
258
- bottom: 0;
259
- z-index: -1;
260
- background: transparent;
261
- transition: all 0.3s;
262
- content: '';
263
- }
264
-
265
- tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover:first-child::after,
266
- tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-end:first-child::after,
267
- .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start.ant-picker-cell-range-hover-edge-start-near-range::after,
268
- .ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover-edge-start-near-range)::after,
269
- .ant-picker-cell-in-view.ant-picker-cell-range-hover-start::after {
270
- left: 6px;
271
- border-left: 1px dashed @hoverBgColor;
272
- }
273
-
274
- .ant-picker-panel-rtl
275
- tr
276
- > .ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-selected):first-child::after,
277
- .ant-picker-panel-rtl
278
- .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start.ant-picker-cell-range-hover-edge-start-near-range::after,
279
- .ant-picker-panel-rtl
280
- .ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover-edge-start-near-range)::after,
281
- .ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-start::after {
282
- right: 6px;
283
- left: 0;
284
- border-right: 1px dashed @hoverBgColor;
285
- border-left: none;
286
- border-radius: 0 2px 2px 0;
287
- }
288
-
289
- .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:not(.ant-picker-cell-in-range):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end)::after,
290
- .ant-picker-cell-in-view.ant-picker-cell-range-hover-end:not(.ant-picker-cell-in-range):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end)::after,
291
- .ant-picker-cell-in-view.ant-picker-cell-range-hover-start.ant-picker-cell-range-start-single::after,
292
- .ant-picker-cell-in-view.ant-picker-cell-range-hover-start.ant-picker-cell-range-start.ant-picker-cell-range-end.ant-picker-cell-range-end-near-hover::after,
293
- .ant-picker-cell-in-view.ant-picker-cell-range-hover-end.ant-picker-cell-range-start.ant-picker-cell-range-end.ant-picker-cell-range-start-near-hover::after,
294
- .ant-picker-cell-in-view.ant-picker-cell-range-hover-end.ant-picker-cell-range-end-single::after,
295
- .ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-in-range)::after {
296
- position: absolute;
297
- top: 50%;
298
- z-index: 0;
299
- height: 30px;
300
- border-top: 1px dashed @hoverBgColor;
301
- border-bottom: 1px dashed @hoverBgColor;
302
- transform: translateY(-50%);
303
- transition: all 0.3s;
304
- content: '';
305
- }
306
-
307
- tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover:first-child::after,
308
- tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-end:first-child::after,
309
- .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start.ant-picker-cell-range-hover-edge-start-near-range::after,
310
- .ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover-edge-start-near-range)::after,
311
- .ant-picker-cell-in-view.ant-picker-cell-range-hover-start::after {
312
- left: 6px;
313
- border-left: 1px dashed @hoverBgColor;
314
- border-top-left-radius: 2px;
315
- border-bottom-left-radius: 2px;
316
- }
317
-
318
- .ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner,
319
- .ant-picker-cell-in-view.ant-picker-cell-range-start .ant-picker-cell-inner,
320
- .ant-picker-cell-in-view.ant-picker-cell-range-end .ant-picker-cell-inner {
321
- background: @themeColor;
322
- border-radius: 20px;
323
- }
324
-
325
- .ant-picker-cell:hover:not(.ant-picker-cell-in-view) .ant-picker-cell-inner,
326
- .ant-picker-cell:hover:not(.ant-picker-cell-selected):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):not(.ant-picker-cell-range-hover-start):not(.ant-picker-cell-range-hover-end)
327
- .ant-picker-cell-inner {
328
- background: #fff;
329
- }
330
-
331
- .ant-picker:hover,
332
- .ant-picker-focused {
333
- border-color: @themeColor;
334
- border-right-width: 1px;
335
- }
336
-
337
- .ant-picker-input > input:hover {
338
- border-color: @hoverBgColor;
339
- border-right-width: 1px;
340
- }
341
-
342
- .ant-picker-suffix {
343
- font-size: @iconSize;
344
- }
345
-
346
- .biz-date-ant-picker {
347
- tr {
348
- .ant-picker-cell-in-view:not(.ant-picker-cell-selected) {
349
- &:first-child {
350
- &.ant-picker-cell-in-range::before {
351
- border-top-left-radius: 4px;
352
- border-bottom-left-radius: 4px;
353
- }
354
- }
355
-
356
- &:last-child {
357
- &.ant-picker-cell-in-range::before {
358
- border-top-right-radius: 4px;
359
- border-bottom-right-radius: 4px;
360
- }
361
- }
362
- }
363
- }
364
- }