linkmore-design 1.0.53 → 1.0.54

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 (165) hide show
  1. package/dist/Alert/ErrorBoundary.d.ts +22 -0
  2. package/dist/{Notification → Alert}/demos/basic.d.ts +0 -0
  3. package/dist/{Notification/demos/button.d.ts → Alert/demos/visible.d.ts} +0 -0
  4. package/dist/Alert/index.d.ts +41 -0
  5. package/dist/{Notification → Alert}/style/index.d.ts +0 -0
  6. package/dist/CardTable/fns/index.d.ts +7 -3
  7. package/dist/CardTable/{toolbar → pager}/TablePagination.d.ts +0 -0
  8. package/dist/CardTable/pager/index.d.ts +3 -0
  9. package/dist/LmFilter/LmFilter.d.ts +3 -0
  10. package/dist/LmFilter/baseFilter/index.d.ts +3 -0
  11. package/dist/LmFilter/clearFilter/index.d.ts +3 -0
  12. package/dist/LmFilter/complexFilter/index.d.ts +2 -0
  13. package/dist/LmFilter/components/CascaderFilter.d.ts +5 -0
  14. package/dist/LmFilter/components/CheckboxFilter.d.ts +5 -0
  15. package/dist/LmFilter/components/DateFilter.d.ts +5 -0
  16. package/dist/LmFilter/components/DropdownFIlter.d.ts +3 -0
  17. package/dist/LmFilter/components/EmptyFilter.d.ts +2 -0
  18. package/dist/LmFilter/components/InputFilter.d.ts +4 -0
  19. package/dist/LmFilter/components/InputSearchClose.d.ts +3 -0
  20. package/dist/LmFilter/components/SelectFilter.d.ts +5 -0
  21. package/dist/LmFilter/components/fuzzySearch.d.ts +4 -0
  22. package/dist/LmFilter/components/index.d.ts +3 -0
  23. package/dist/LmFilter/customFilter/index.d.ts +2 -0
  24. package/dist/LmFilter/demos/basic.d.ts +2 -0
  25. package/dist/LmFilter/filterFns/index.d.ts +12 -0
  26. package/dist/LmFilter/hooks/index.d.ts +1 -0
  27. package/dist/LmFilter/hooks/useDelayedFn.d.ts +2 -0
  28. package/dist/LmFilter/index.d.ts +2 -0
  29. package/dist/LmFilter/style/index.d.ts +1 -0
  30. package/dist/LmFilter/utils.d.ts +8 -0
  31. package/dist/LmFilter/wrapper/Filter.d.ts +3 -0
  32. package/dist/LmFilter/wrapper/FilterContainer.d.ts +3 -0
  33. package/dist/LmFilter/wrapper/FilterRoot.d.ts +3 -0
  34. package/dist/LmFilter/wrapper/FilterWrapper.d.ts +3 -0
  35. package/dist/_util/getDataOrAriaProps.d.ts +1 -0
  36. package/dist/_util/reactNode.d.ts +7 -0
  37. package/dist/index.d.ts +1 -1
  38. package/dist/index.umd.js +3665 -3297
  39. package/dist/index.umd.min.js +6 -6
  40. package/dist/{Notification/demos/icon.d.ts → notification/demos/basic.d.ts} +0 -0
  41. package/dist/notification/demos/button.d.ts +2 -0
  42. package/dist/notification/demos/icon.d.ts +2 -0
  43. package/dist/notification/hooks/useNotification.d.ts +7 -0
  44. package/dist/notification/index.d.ts +54 -0
  45. package/dist/notification/style/index.d.ts +1 -0
  46. package/es/Alert/ErrorBoundary.d.ts +22 -0
  47. package/es/Alert/ErrorBoundary.js +65 -0
  48. package/es/Alert/index.d.ts +41 -0
  49. package/es/Alert/index.js +192 -0
  50. package/es/{Notification → Alert}/style/index.css +25 -2
  51. package/es/{Notification → Alert}/style/index.d.ts +0 -0
  52. package/es/{Notification → Alert}/style/index.js +0 -0
  53. package/es/CardTable/card/PictureTextColumn.js +8 -6
  54. package/es/CardTable/card/PictureTextRow.js +1 -1
  55. package/es/CardTable/fns/index.js +38 -9
  56. package/es/CardTable/{toolbar → pager}/TablePagination.js +0 -0
  57. package/es/CardTable/pager/index.js +48 -0
  58. package/es/CardTable/style/index.css +2 -2
  59. package/es/CardTable/table/TableRoot.js +20 -18
  60. package/es/CardTable/table/TableWrapper.js +4 -0
  61. package/es/CardTable/toolbar/ToolBarBottom.js +8 -27
  62. package/es/LmFilter/LmFilter.js +27 -0
  63. package/es/LmFilter/baseFilter/index.js +34 -0
  64. package/es/LmFilter/clearFilter/index.js +33 -0
  65. package/es/LmFilter/complexFilter/index.js +17 -0
  66. package/es/LmFilter/components/CascaderFilter.js +183 -0
  67. package/es/LmFilter/components/CheckboxFilter.js +197 -0
  68. package/es/LmFilter/components/DateFilter.js +147 -0
  69. package/es/LmFilter/components/DropdownFIlter.js +162 -0
  70. package/es/LmFilter/components/EmptyFilter.js +27 -0
  71. package/es/LmFilter/components/InputFilter.js +52 -0
  72. package/es/LmFilter/components/InputSearchClose.js +74 -0
  73. package/es/LmFilter/components/SelectFilter.js +113 -0
  74. package/es/LmFilter/components/fuzzySearch.js +37 -0
  75. package/es/LmFilter/components/index.js +97 -0
  76. package/es/LmFilter/customFilter/index.js +17 -0
  77. package/es/LmFilter/filterFns/index.js +54 -0
  78. package/es/LmFilter/hooks/index.js +18 -0
  79. package/es/LmFilter/hooks/useDelayedFn.js +27 -0
  80. package/es/LmFilter/icon_placeholder.png +0 -0
  81. package/es/LmFilter/index.js +16 -0
  82. package/es/LmFilter/style/index.js +3 -0
  83. package/es/LmFilter/style/style.css +189 -0
  84. package/es/LmFilter/utils.js +55 -0
  85. package/es/LmFilter/wrapper/Filter.js +33 -0
  86. package/es/LmFilter/wrapper/FilterContainer.js +29 -0
  87. package/es/LmFilter/wrapper/FilterRoot.js +114 -0
  88. package/es/LmFilter/wrapper/FilterWrapper.js +25 -0
  89. package/es/_util/getDataOrAriaProps.d.ts +1 -0
  90. package/es/_util/getDataOrAriaProps.js +9 -0
  91. package/es/_util/reactNode.d.ts +7 -0
  92. package/es/_util/reactNode.js +10 -0
  93. package/es/index.d.ts +1 -1
  94. package/es/index.js +1 -1
  95. package/es/message/style/index.css +1 -0
  96. package/es/notification/hooks/useNotification.d.ts +7 -0
  97. package/es/notification/hooks/useNotification.js +54 -0
  98. package/es/notification/index.d.ts +54 -0
  99. package/es/notification/index.js +342 -0
  100. package/es/notification/style/index.css +546 -0
  101. package/{lib/Notification → es/notification}/style/index.d.ts +0 -0
  102. package/es/notification/style/index.js +1 -0
  103. package/lib/Alert/ErrorBoundary.d.ts +22 -0
  104. package/lib/Alert/ErrorBoundary.js +79 -0
  105. package/lib/Alert/index.d.ts +41 -0
  106. package/lib/Alert/index.js +215 -0
  107. package/lib/{Notification → Alert}/style/index.css +25 -2
  108. package/lib/Alert/style/index.d.ts +1 -0
  109. package/lib/{Notification → Alert}/style/index.js +0 -0
  110. package/lib/CardTable/card/PictureTextColumn.js +8 -6
  111. package/lib/CardTable/card/PictureTextRow.js +1 -1
  112. package/lib/CardTable/fns/index.js +38 -9
  113. package/lib/CardTable/{toolbar → pager}/TablePagination.js +0 -0
  114. package/lib/CardTable/pager/index.js +48 -0
  115. package/lib/CardTable/style/index.css +2 -2
  116. package/lib/CardTable/table/TableRoot.js +20 -18
  117. package/lib/CardTable/table/TableWrapper.js +4 -0
  118. package/lib/CardTable/toolbar/ToolBarBottom.js +8 -27
  119. package/lib/LmFilter/LmFilter.js +27 -0
  120. package/lib/LmFilter/baseFilter/index.js +34 -0
  121. package/lib/LmFilter/clearFilter/index.js +33 -0
  122. package/lib/LmFilter/complexFilter/index.js +17 -0
  123. package/lib/LmFilter/components/CascaderFilter.js +183 -0
  124. package/lib/LmFilter/components/CheckboxFilter.js +197 -0
  125. package/lib/LmFilter/components/DateFilter.js +147 -0
  126. package/lib/LmFilter/components/DropdownFIlter.js +162 -0
  127. package/lib/LmFilter/components/EmptyFilter.js +27 -0
  128. package/lib/LmFilter/components/InputFilter.js +52 -0
  129. package/lib/LmFilter/components/InputSearchClose.js +74 -0
  130. package/lib/LmFilter/components/SelectFilter.js +113 -0
  131. package/lib/LmFilter/components/fuzzySearch.js +37 -0
  132. package/lib/LmFilter/components/index.js +97 -0
  133. package/lib/LmFilter/customFilter/index.js +17 -0
  134. package/lib/LmFilter/filterFns/index.js +54 -0
  135. package/lib/LmFilter/hooks/index.js +18 -0
  136. package/lib/LmFilter/hooks/useDelayedFn.js +27 -0
  137. package/lib/LmFilter/icon_placeholder.png +0 -0
  138. package/lib/LmFilter/index.js +16 -0
  139. package/lib/LmFilter/style/index.js +3 -0
  140. package/lib/LmFilter/style/style.css +189 -0
  141. package/lib/LmFilter/utils.js +55 -0
  142. package/lib/LmFilter/wrapper/Filter.js +33 -0
  143. package/lib/LmFilter/wrapper/FilterContainer.js +29 -0
  144. package/lib/LmFilter/wrapper/FilterRoot.js +114 -0
  145. package/lib/LmFilter/wrapper/FilterWrapper.js +25 -0
  146. package/lib/_util/getDataOrAriaProps.d.ts +1 -0
  147. package/lib/_util/getDataOrAriaProps.js +16 -0
  148. package/lib/_util/reactNode.d.ts +7 -0
  149. package/lib/_util/reactNode.js +24 -0
  150. package/lib/index.d.ts +1 -1
  151. package/lib/index.js +2 -2
  152. package/lib/message/style/index.css +1 -0
  153. package/lib/notification/hooks/useNotification.d.ts +7 -0
  154. package/lib/notification/hooks/useNotification.js +69 -0
  155. package/lib/notification/index.d.ts +54 -0
  156. package/lib/notification/index.js +365 -0
  157. package/lib/notification/style/index.css +546 -0
  158. package/lib/notification/style/index.d.ts +1 -0
  159. package/lib/notification/style/index.js +3 -0
  160. package/package.json +1 -1
  161. package/dist/Notification/index.d.ts +0 -7
  162. package/es/Notification/index.d.ts +0 -7
  163. package/es/Notification/index.js +0 -10
  164. package/lib/Notification/index.d.ts +0 -7
  165. package/lib/Notification/index.js +0 -23
@@ -0,0 +1,546 @@
1
+ .ant-layout-sider {
2
+ min-height: 100vh;
3
+ background-color: #022766;
4
+ }
5
+ .ant-menu-dark .ant-menu-inline.ant-menu-sub {
6
+ box-shadow: none;
7
+ }
8
+ .ant-menu-submenu-placement-rightTop {
9
+ display: none;
10
+ }
11
+ .ant-table .row-active .ant-table-cell {
12
+ background-color: #feffd3 !important;
13
+ }
14
+ .ant-table.ant-table-empty .ant-table-expanded-row-fixed {
15
+ padding: 0;
16
+ }
17
+ .ant-table.ant-table-empty .ant-table-expanded-row-fixed .ant-empty {
18
+ margin: 0;
19
+ }
20
+ .ant-table .ant-empty {
21
+ display: flex;
22
+ align-items: center;
23
+ justify-content: center;
24
+ }
25
+ .ant-table .ant-empty .ant-empty-image {
26
+ height: 24px;
27
+ margin: var(--gap) 0;
28
+ }
29
+ .ant-tabs .ant-tabs-nav .ant-tabs-tab {
30
+ font-size: 14px;
31
+ }
32
+ .ant-tabs.auto_tabs {
33
+ display: flex;
34
+ flex-flow: column;
35
+ height: 100%;
36
+ }
37
+ .ant-tabs.auto_tabs .ant-tabs-nav {
38
+ height: 48px;
39
+ }
40
+ .ant-tabs.auto_tabs .ant-tabs-content-holder {
41
+ flex: 1;
42
+ overflow: auto;
43
+ }
44
+ .ant-drawer.drawer_wrapper .ant-drawer-header {
45
+ padding: 0 24px;
46
+ }
47
+ .ant-drawer.drawer_wrapper .ant-drawer-body {
48
+ position: relative;
49
+ flex: 1;
50
+ padding: 0 24px;
51
+ }
52
+ .ant-modal-wrap.plugin_modal {
53
+ display: flex;
54
+ flex-flow: column;
55
+ justify-content: flex-end;
56
+ }
57
+ .ant-modal-wrap.plugin_modal .ant-modal {
58
+ top: 0;
59
+ left: 56px;
60
+ margin: 0 0 8px 8px;
61
+ padding: 0;
62
+ }
63
+ .ant-modal-wrap.lm_modal_confirm .anticon {
64
+ margin-top: -1px;
65
+ margin-right: 8px;
66
+ }
67
+ .ant-modal-wrap.lm_modal_confirm .ant-modal-body {
68
+ padding: 16px 24px;
69
+ }
70
+ .ant-popover.pop_img .ant-popover-inner-content {
71
+ padding: var(--gap);
72
+ line-height: 1;
73
+ }
74
+ .ant-notification-notice .ant-notification-notice-content .ant-notification-notice-message {
75
+ font-size: 14px;
76
+ font-weight: 500;
77
+ }
78
+ .ant-notification-notice .ant-notification-notice-content > div > div:last-child {
79
+ margin-bottom: 8px;
80
+ }
81
+ .ant-notification-notice .ant-notification-notice-description {
82
+ font-size: 12px;
83
+ }
84
+ @font-face {
85
+ font-family: 'iconfont';
86
+ /* Project id 2966019 */
87
+ src: url('//at.alicdn.com/t/font_2966019_i3eb1wwkoo.woff2?t=1641546077924') format('woff2'), url('//at.alicdn.com/t/font_2966019_i3eb1wwkoo.woff?t=1641546077924') format('woff'), url('//at.alicdn.com/t/font_2966019_i3eb1wwkoo.ttf?t=1641546077924') format('truetype');
88
+ }
89
+ .icon_ {
90
+ font-size: 14px;
91
+ font-family: 'iconfont';
92
+ }
93
+ .iconfont {
94
+ font-size: 12px;
95
+ }
96
+ .icon_home::before {
97
+ content: '\e7fc';
98
+ }
99
+ .lm-font-small-bold {
100
+ font-weight: 400;
101
+ font-size: var(--font-size-sm);
102
+ line-height: 20px;
103
+ }
104
+ .lm-font-middle-bold {
105
+ font-weight: 500;
106
+ font-size: var(--font-size-base);
107
+ line-height: 22px;
108
+ }
109
+ .lm-font-large-bold {
110
+ font-weight: 500;
111
+ font-size: var(--font-size-lg);
112
+ line-height: 24px;
113
+ }
114
+ .lm-font-small {
115
+ font-size: var(--font-size-sm);
116
+ line-height: 20px;
117
+ }
118
+ .lm-font-middle {
119
+ font-size: var(--font-size-base);
120
+ line-height: 22px;
121
+ }
122
+ .lm-font-large {
123
+ font-size: var(--font-size-lg);
124
+ line-height: 24px;
125
+ }
126
+ .lm-shadown-level1-up {
127
+ box-shadow: 0px -1px 2px -2px rgba(0, 0, 0, 0.16), 0px -3px 6px 0px rgba(0, 0, 0, 0.12), 0px -5px 12px 4px rgba(0, 0, 0, 0.09);
128
+ }
129
+ .lm-shadown-level2-up {
130
+ box-shadow: 0px -3px 6px -4px rgba(0, 0, 0, 0.12), 0px -6px 16px 0px rgba(0, 0, 0, 0.08), 0px -9px 28px 8px rgba(0, 0, 0, 0.05);
131
+ }
132
+ .lm-shadown-level3-up {
133
+ box-shadow: 0px -6px 16px -8px rgba(0, 0, 0, 0.08), 0px -9px 28px 0px rgba(0, 0, 0, 0.05), 0px -12px 48px 16px rgba(0, 0, 0, 0.03);
134
+ }
135
+ .lm-shadown-level1-down {
136
+ box-shadow: 0px 1px 2px -2px rgba(0, 0, 0, 0.16), 0px 3px 6px 0px rgba(0, 0, 0, 0.12), 0px 5px 12px 4px rgba(0, 0, 0, 0.09);
137
+ }
138
+ .lm-shadown-level2-down {
139
+ box-shadow: 0px 3px 6px -4px rgba(0, 0, 0, 0.12), 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 9px 28px 8px rgba(0, 0, 0, 0.05);
140
+ }
141
+ .lm-shadown-level3-down {
142
+ box-shadow: 0px 6px 16px -8px rgba(0, 0, 0, 0.08), 0px 9px 28px 0px rgba(0, 0, 0, 0.05), 0px 12px 48px 16px rgba(0, 0, 0, 0.03);
143
+ }
144
+ .lm-shadown-level1-left {
145
+ box-shadow: -1px 0px 2px -2px rgba(0, 0, 0, 0.16), -3px 0px 6px 0px rgba(0, 0, 0, 0.12), -5px 0px 12px 4px rgba(0, 0, 0, 0.09);
146
+ }
147
+ .lm-shadown-level2-left {
148
+ box-shadow: -3px 0px 6px -4px rgba(0, 0, 0, 0.12), -6px 0px 16px 0px rgba(0, 0, 0, 0.08), -9px 0px 28px 8px rgba(0, 0, 0, 0.05);
149
+ }
150
+ .lm-shadown-level3-left {
151
+ box-shadow: -6px 0px 16px -8px rgba(0, 0, 0, 0.08), -9px 0px 28px 0px rgba(0, 0, 0, 0.05), -12px 0px 48px 16px rgba(0, 0, 0, 0.03);
152
+ }
153
+ .lm-shadown-level1-right {
154
+ box-shadow: 1px 0px 2px -2px rgba(0, 0, 0, 0.16), 3px 0px 6px 0px rgba(0, 0, 0, 0.12), 5px 0px 12px 4px rgba(0, 0, 0, 0.09);
155
+ }
156
+ .lm-shadown-level2-right {
157
+ box-shadow: 3px 0px 6px -4px rgba(0, 0, 0, 0.12), 6px 0px 16px 0px rgba(0, 0, 0, 0.08), 9px 0px 28px 8px rgba(0, 0, 0, 0.05);
158
+ }
159
+ .lm-shadown-level3-right {
160
+ box-shadow: 6px 0px 16px -8px rgba(0, 0, 0, 0.08), 9px 0px 28px 0px rgba(0, 0, 0, 0.05), 12px 0px 48px 16px rgba(0, 0, 0, 0.03);
161
+ }
162
+ :root {
163
+ --primary-color: #1890fc;
164
+ --primary-click-color: #096dd9;
165
+ --success-color: #52c14a;
166
+ --warning-color: #fd9727;
167
+ --error-color: #fa4f53;
168
+ --aside-bg-color: #022766;
169
+ --primary-hover-color: #40a9ff;
170
+ --primary-loading-color: #84b7fa;
171
+ --primary-select-color: #e6f7ff;
172
+ --error-hover-color: #ee8079;
173
+ --error-loading-color: #fbcdcd;
174
+ --disabled-border-color: rgba(0, 0, 0, 0.15);
175
+ --disabled-bg-color: rgba(0, 0, 0, 0.04);
176
+ --disabled-font-color: rgba(0, 0, 0, 0.25);
177
+ --font-color: rgba(0, 0, 0, 0.85);
178
+ --text-color: rgba(0, 0, 0, 0.45);
179
+ --tip-text-color: rgba(0, 0, 0, 0.25);
180
+ --stroke-color: rgba(0, 0, 0, 0.15);
181
+ --line-color: rgba(0, 0, 0, 0.06);
182
+ --background-color: rgba(0, 0, 0, 0.04);
183
+ --table-header-color: rgba(0, 0, 0, 0.02);
184
+ --font2-color: rgba(0, 0, 0, 0.65);
185
+ --background-color-hover: rgba(0, 0, 0, 0.08);
186
+ --border-color: #f0f0f0;
187
+ --stripe-color: #f5f5f5;
188
+ --border-hover-color: #f2f5f7;
189
+ --box-shadow-color: rgba(0, 0, 0, 0.1);
190
+ --table-background-color: #fafafa;
191
+ --disabled-color: rgba(0, 0, 0, 0.25);
192
+ --font-size: 12px;
193
+ --gap: 8px;
194
+ --basic-height: 24px;
195
+ --font-size-base: 14px;
196
+ --font-size-lg: calc(var(--font-size-base) + 2px);
197
+ --font-size-sm: 12px;
198
+ --color-contrast: #fff;
199
+ --color-100: #000;
200
+ --color-85: #262626;
201
+ --color-65: #595959;
202
+ --color-45: #8c8c8c;
203
+ --color-25: #bfbfbf;
204
+ --color-15: #d9d9d9;
205
+ --color-6: #f0f0f0;
206
+ --color-4: #f5f5f5;
207
+ --color-2: #fafafa;
208
+ /** tree */
209
+ --tree-select-bg: #EDF6FF;
210
+ }
211
+ /** tag */
212
+ :root[theme='dark'] {
213
+ --font-color: rgba(255, 255, 255, 0.85);
214
+ --text-color: rgba(255, 255, 255, 0.45);
215
+ --tip-text-color: rgba(255, 255, 255, 0.25);
216
+ --stroke-color: rgba(255, 255, 255, 0.15);
217
+ --line-color: rgba(255, 255, 255, 0.06);
218
+ --background-color: rgba(255, 255, 255, 0.04);
219
+ --table-header-color: rgba(255, 255, 255, 0.02);
220
+ --font2-color: rgba(255, 255, 255, 0.65);
221
+ --background-color-hover: rgba(255, 255, 255, 0.08);
222
+ }
223
+ html {
224
+ background-color: #f0f2f5;
225
+ }
226
+ #app {
227
+ width: 100vw;
228
+ min-width: 1200px;
229
+ height: 100vh;
230
+ font-family: 'PingFang SC', 'Microsoft YaHei UI', '微软雅黑', Helvetica, Arial, sans-serif;
231
+ }
232
+ .ka-wrapper,
233
+ .ka-content {
234
+ height: 100%;
235
+ }
236
+ * {
237
+ margin: 0;
238
+ padding: 0;
239
+ list-style: none;
240
+ }
241
+ *::-webkit-scrollbar {
242
+ width: 8px;
243
+ height: 8px;
244
+ border-radius: 10px;
245
+ }
246
+ *::-webkit-scrollbar-button {
247
+ display: none;
248
+ }
249
+ *::-webkit-scrollbar-track {
250
+ background: transparent;
251
+ }
252
+ *::-webkit-scrollbar-thumb {
253
+ background: #d8d8d8;
254
+ border-radius: 6px;
255
+ }
256
+ *::-webkit-scrollbar-thumb:hover,
257
+ *::-webkit-scrollbar-thumb:active {
258
+ background: #bfbfbf;
259
+ }
260
+ .page-content {
261
+ margin: 12px;
262
+ padding: 16px;
263
+ background: #fff;
264
+ }
265
+ .addModal .ant-modal-header {
266
+ display: flex;
267
+ align-items: center;
268
+ height: 46px;
269
+ padding: 0 24px;
270
+ }
271
+ .addModal .ant-modal-close-x {
272
+ width: 46px;
273
+ height: 46px;
274
+ line-height: 44px;
275
+ }
276
+ .addModal .ant-modal-body {
277
+ padding: 24px 24px 21px;
278
+ }
279
+ .addModal .ant-modal-body .ant-tabs-nav {
280
+ margin: 0 10px;
281
+ }
282
+ .addModal .ant-modal-body .ant-tabs-content-holder {
283
+ max-height: 800px;
284
+ padding: 16px 10px;
285
+ overflow-y: auto;
286
+ }
287
+ .addModal .ant-modal-footer {
288
+ padding: 11px 24px;
289
+ }
290
+ .addModal .ant-modal-footer .ant-btn + .ant-btn:not(.ant-dropdown-trigger) {
291
+ margin-left: 10px;
292
+ }
293
+ .editModal .ant-modal-header {
294
+ display: flex;
295
+ align-items: center;
296
+ height: 46px;
297
+ padding: 0 24px;
298
+ }
299
+ .editModal .ant-modal-close-x {
300
+ width: 46px;
301
+ height: 46px;
302
+ line-height: 44px;
303
+ }
304
+ .editModal .ant-modal-body {
305
+ max-height: 600px;
306
+ padding: 24px 24px 21px;
307
+ overflow-y: auto;
308
+ }
309
+ .editModal .ant-modal-body .ant-form-item {
310
+ margin-bottom: 16px;
311
+ }
312
+ .editModal .ant-modal-footer {
313
+ padding: 11px 24px;
314
+ }
315
+ .editModal .ant-modal-footer .ant-btn + .ant-btn:not(.ant-dropdown-trigger) {
316
+ margin-left: 10px;
317
+ }
318
+ .ant-select-dropdown .ant-select-item {
319
+ align-items: center;
320
+ font-size: 12px;
321
+ }
322
+ .react-resizable {
323
+ position: relative;
324
+ background-clip: padding-box;
325
+ }
326
+ .react-resizable-handle {
327
+ position: absolute;
328
+ top: 0;
329
+ right: 0;
330
+ z-index: 1;
331
+ width: 3px;
332
+ height: 40px;
333
+ cursor: col-resize;
334
+ }
335
+ .react-resizable-handle:hover {
336
+ background-color: var(--primary-color);
337
+ }
338
+ .react-resizable-handle:active {
339
+ background-color: var(--primary-color);
340
+ }
341
+ .yf_resizable_bar {
342
+ position: absolute;
343
+ top: 0;
344
+ left: 0;
345
+ z-index: 2;
346
+ height: 0;
347
+ }
348
+ .resizable_line {
349
+ position: absolute;
350
+ top: 0;
351
+ left: 0;
352
+ z-index: 1;
353
+ width: 1px;
354
+ height: 100%;
355
+ background-color: var(--primary-color);
356
+ }
357
+ .handle_resizable {
358
+ position: absolute;
359
+ top: 0;
360
+ right: 0;
361
+ z-index: 2;
362
+ width: 5px;
363
+ height: 100%;
364
+ }
365
+ .card_cell_content {
366
+ display: flex;
367
+ flex-flow: column;
368
+ height: 100%;
369
+ overflow: hidden;
370
+ border: 1px solid transparent;
371
+ border-radius: 2px;
372
+ transition: 0.3s;
373
+ }
374
+ .card_cell_content .card_cell_body {
375
+ position: relative;
376
+ display: flex;
377
+ flex: 1;
378
+ flex-flow: column;
379
+ padding: 16px;
380
+ background: rgba(0, 0, 0, 0.02);
381
+ cursor: pointer;
382
+ }
383
+ .card_cell_content .card_cell_body .card_cell_checkbox {
384
+ position: absolute;
385
+ top: 8px;
386
+ left: 8px;
387
+ line-height: 1;
388
+ opacity: 0;
389
+ transition: 0.3s;
390
+ }
391
+ .card_cell_content .card_cell_body .card_cell_checkbox .ant-checkbox {
392
+ border: 8px solid rgba(255, 255, 255, 0.624);
393
+ border-radius: 2px;
394
+ }
395
+ .card_cell_content .card_cell_body .card_cell_info .title {
396
+ display: flex;
397
+ gap: 8px;
398
+ align-items: center;
399
+ justify-content: space-between;
400
+ }
401
+ .card_cell_content .card_cell_body .card_cell_info .title .label {
402
+ flex: 1;
403
+ overflow: hidden;
404
+ font-weight: 500;
405
+ font-size: 14px;
406
+ white-space: nowrap;
407
+ text-overflow: ellipsis;
408
+ text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
409
+ }
410
+ .card_cell_content .card_cell_body .card_cell_info .title .icon {
411
+ display: inline-flex;
412
+ gap: 4px;
413
+ align-items: center;
414
+ height: 22px;
415
+ padding: 0 8px;
416
+ font-size: 12px;
417
+ line-height: 1;
418
+ background: var(--background-color);
419
+ }
420
+ .card_cell_content .card_cell_body .card_cell_info .code .ant-typography {
421
+ margin: 0;
422
+ color: var(--text-color);
423
+ text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
424
+ }
425
+ .card_cell_content .card_cell_body .card_cell_info .code .ant-typography .ant-typography-copy {
426
+ color: inherit;
427
+ }
428
+ .card_cell_content .card_cell_body .card_cell_info .expand {
429
+ display: flex;
430
+ flex-wrap: wrap;
431
+ gap: 16px;
432
+ padding: 6px 0 2px;
433
+ color: var(--text-color);
434
+ font-size: 12px;
435
+ text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
436
+ }
437
+ .card_cell_content .card_cell_body .card_cell_info .expand > div {
438
+ padding: 2px 0;
439
+ }
440
+ .card_cell_content .card_cell_body .card_cell_center {
441
+ display: flex;
442
+ flex: 1;
443
+ align-items: center;
444
+ }
445
+ .card_cell_content .card_cell_body .card_cell_center .list {
446
+ display: flex;
447
+ align-items: center;
448
+ justify-content: space-between;
449
+ width: 100%;
450
+ margin: auto 0;
451
+ text-align: center;
452
+ }
453
+ .card_cell_content .card_cell_body .card_cell_center .list .item {
454
+ display: inline-flex;
455
+ gap: 4px;
456
+ align-items: center;
457
+ line-height: 1;
458
+ }
459
+ .card_cell_content .card_cell_body .card_cell_center .list .item .num {
460
+ color: var(--font-color);
461
+ font-weight: 500;
462
+ font-size: 20px;
463
+ }
464
+ .card_cell_content .card_cell_body .card_cell_center .list .item .text {
465
+ color: var(--text-color);
466
+ font-size: 12px;
467
+ }
468
+ .card_cell_content .card_cell_footer {
469
+ display: flex;
470
+ align-items: center;
471
+ height: 40px;
472
+ background: #f7f7f7;
473
+ }
474
+ .card_cell_content .card_cell_footer > * {
475
+ flex: 1;
476
+ }
477
+ .card_cell_content .card_cell_footer > *::after {
478
+ position: absolute;
479
+ top: 50%;
480
+ right: 0;
481
+ width: 1px;
482
+ height: 18px;
483
+ background-color: #e8e8e8;
484
+ transform: translateY(-50%);
485
+ content: '';
486
+ }
487
+ .card_cell_content .card_cell_footer button:last-child {
488
+ border: none;
489
+ }
490
+ .card_cell_content .card_cell_footer button:last-child::after {
491
+ display: none;
492
+ }
493
+ .card_cell_content .card_cell_footer .footer_expand {
494
+ font-size: 16px;
495
+ text-align: center;
496
+ border: none;
497
+ }
498
+ .card_cell_content.checked,
499
+ .card_cell_content:hover {
500
+ border-color: var(--primary-color);
501
+ }
502
+ .card_cell_content.checked .card_cell_body .card_cell_checkbox,
503
+ .card_cell_content:hover .card_cell_body .card_cell_checkbox {
504
+ opacity: 1;
505
+ }
506
+ .lm_notification.ant-notification-notice {
507
+ padding: 0;
508
+ }
509
+ .lm_notification .ant-notification-notice-content {
510
+ position: relative;
511
+ padding: 16px 24px;
512
+ font-size: 12px;
513
+ }
514
+ .lm_notification .message_progress {
515
+ position: absolute;
516
+ width: 100%;
517
+ height: 2px;
518
+ background-color: #52C41A;
519
+ left: 0;
520
+ bottom: 0;
521
+ animation-name: Progress;
522
+ animation-iteration-count: 1;
523
+ animation-fill-mode: forwards;
524
+ transition: width 0.2s;
525
+ animation-timing-function: linear;
526
+ margin-bottom: 0 !important;
527
+ }
528
+ .lm_notification:hover .message_progress {
529
+ width: 100%;
530
+ animation-name: none;
531
+ animation-play-state: paused;
532
+ }
533
+ .lm_notification .ant-notification-notice-btn {
534
+ margin-bottom: 16px;
535
+ }
536
+ @keyframes Progress {
537
+ from {
538
+ width: 100%;
539
+ }
540
+ to {
541
+ width: 0;
542
+ }
543
+ }
544
+ .ant-notification-notice-message {
545
+ font-size: 14px;
546
+ }
@@ -0,0 +1 @@
1
+ import "./index.css";
@@ -0,0 +1,22 @@
1
+ import * as React from 'react';
2
+ interface ErrorBoundaryProps {
3
+ message?: React.ReactNode;
4
+ description?: React.ReactNode;
5
+ children?: React.ReactNode;
6
+ }
7
+ export default class ErrorBoundary extends React.Component<ErrorBoundaryProps, {
8
+ error?: Error | null;
9
+ info: {
10
+ componentStack?: string;
11
+ };
12
+ }> {
13
+ state: {
14
+ error: any;
15
+ info: {
16
+ componentStack: string;
17
+ };
18
+ };
19
+ componentDidCatch(error: Error | null, info: object): void;
20
+ render(): React.ReactNode;
21
+ }
22
+ export {};
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
+
5
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports.default = void 0;
11
+
12
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
13
+
14
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
15
+
16
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
17
+
18
+ var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
19
+
20
+ var React = _interopRequireWildcard(require("react"));
21
+
22
+ var _ = _interopRequireDefault(require("."));
23
+
24
+ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
25
+ (0, _inherits2.default)(ErrorBoundary, _React$Component);
26
+
27
+ var _super = (0, _createSuper2.default)(ErrorBoundary);
28
+
29
+ function ErrorBoundary() {
30
+ var _this;
31
+
32
+ (0, _classCallCheck2.default)(this, ErrorBoundary);
33
+ _this = _super.apply(this, arguments);
34
+ _this.state = {
35
+ error: undefined,
36
+ info: {
37
+ componentStack: ''
38
+ }
39
+ };
40
+ return _this;
41
+ }
42
+
43
+ (0, _createClass2.default)(ErrorBoundary, [{
44
+ key: "componentDidCatch",
45
+ value: function componentDidCatch(error, info) {
46
+ this.setState({
47
+ error: error,
48
+ info: info
49
+ });
50
+ }
51
+ }, {
52
+ key: "render",
53
+ value: function render() {
54
+ var _this$props = this.props,
55
+ message = _this$props.message,
56
+ description = _this$props.description,
57
+ children = _this$props.children;
58
+ var _this$state = this.state,
59
+ error = _this$state.error,
60
+ info = _this$state.info;
61
+ var componentStack = info && info.componentStack ? info.componentStack : null;
62
+ var errorMessage = typeof message === 'undefined' ? (error || '').toString() : message;
63
+ var errorDescription = typeof description === 'undefined' ? componentStack : description;
64
+
65
+ if (error) {
66
+ return /*#__PURE__*/React.createElement(_.default, {
67
+ type: "error",
68
+ message: errorMessage,
69
+ description: /*#__PURE__*/React.createElement("pre", null, errorDescription)
70
+ });
71
+ }
72
+
73
+ return children;
74
+ }
75
+ }]);
76
+ return ErrorBoundary;
77
+ }(React.Component);
78
+
79
+ exports.default = ErrorBoundary;
@@ -0,0 +1,41 @@
1
+ import { Alert as AntdAlert } from 'antd';
2
+ import * as React from 'react';
3
+ import ErrorBoundary from './ErrorBoundary';
4
+ export interface AlertProps {
5
+ /** Type of Alert styles, options:`success`, `info`, `warning`, `error` */
6
+ type?: 'success' | 'info' | 'warning' | 'error';
7
+ /** Whether Alert can be closed */
8
+ closable?: boolean;
9
+ /** Close text to show */
10
+ closeText?: React.ReactNode;
11
+ /** Content of Alert */
12
+ message?: React.ReactNode;
13
+ /** Additional content of Alert */
14
+ description?: React.ReactNode;
15
+ /** Callback when close Alert */
16
+ onClose?: React.MouseEventHandler<HTMLButtonElement>;
17
+ /** Trigger when animation ending of Alert */
18
+ afterClose?: () => void;
19
+ /** Whether to show icon */
20
+ showIcon?: boolean;
21
+ /** https://www.w3.org/TR/2014/REC-html5-20141028/dom.html#aria-role-attribute */
22
+ role?: string;
23
+ style?: React.CSSProperties;
24
+ prefixCls?: string;
25
+ className?: string;
26
+ banner?: boolean;
27
+ icon?: React.ReactNode;
28
+ /** Custome closeIcon */
29
+ closeIcon?: React.ReactNode;
30
+ action?: React.ReactNode;
31
+ onMouseEnter?: React.MouseEventHandler<HTMLDivElement>;
32
+ onMouseLeave?: React.MouseEventHandler<HTMLDivElement>;
33
+ onClick?: React.MouseEventHandler<HTMLDivElement>;
34
+ duration?: number;
35
+ }
36
+ interface AlertInterface extends React.FC<AlertProps> {
37
+ ErrorBoundary: typeof ErrorBoundary;
38
+ AntdAlert: typeof AntdAlert;
39
+ }
40
+ declare const Alert: AlertInterface;
41
+ export default Alert;