@kdcloudjs/table 1.2.1-canary.7-hotfix.1 → 1.2.2-canary.10

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 (199) hide show
  1. package/LICENSE +568 -568
  2. package/README.md +111 -111
  3. package/dist/@kdcloudjs/table.css +1 -1
  4. package/dist/@kdcloudjs/table.css.map +0 -0
  5. package/dist/@kdcloudjs/table.js +4095 -2984
  6. package/dist/@kdcloudjs/table.js.map +1 -1
  7. package/dist/@kdcloudjs/table.min.css +1 -1
  8. package/dist/@kdcloudjs/table.min.js +12 -10
  9. package/dist/@kdcloudjs/table.min.js.map +1 -1
  10. package/dist/default-theme.js +0 -0
  11. package/dist/kd-ui-complete.less +777 -777
  12. package/dist/kd-ui.less +0 -0
  13. package/dist/theme.js +0 -0
  14. package/es/_utils/formatUtil.js +1 -5
  15. package/es/_utils/hooks.js +3 -3
  16. package/es/_utils/usePopper.js +13 -13
  17. package/es/locale/locale.js +6 -7
  18. package/es/style/color/colors.less +1 -1
  19. package/es/style/core/index.less +1 -1
  20. package/es/style/core/motion/other.less +27 -27
  21. package/es/style/core/motion/slide.less +53 -53
  22. package/es/style/core/motion.less +1 -1
  23. package/es/style/core/reset.less +185 -185
  24. package/es/style/index.less +1 -1
  25. package/es/style/mixins/index.less +18 -18
  26. package/es/style/mixins/overlay.less +21 -21
  27. package/es/style/mixins/reset.less +12 -12
  28. package/es/style/themes/default.less +445 -445
  29. package/es/table/base/calculations.js +3 -3
  30. package/es/table/base/empty.js +2 -2
  31. package/es/table/base/globalStyleComponent.d.ts +4 -0
  32. package/es/table/base/globalStyleComponent.js +24 -0
  33. package/es/table/base/header.js +5 -7
  34. package/es/table/base/helpers/SpanManager.js +1 -2
  35. package/es/table/base/helpers/TableDOMUtils.js +5 -6
  36. package/es/table/base/html-table.js +3 -4
  37. package/es/table/base/loading.js +2 -2
  38. package/es/table/base/renderTemplates.js +16 -16
  39. package/es/table/base/styles.d.ts +11 -0
  40. package/es/table/base/styles.js +18 -7
  41. package/es/table/base/table.js +18 -20
  42. package/es/table/base/utils.js +3 -3
  43. package/es/table/interfaces.d.ts +41 -0
  44. package/es/table/pipeline/const.d.ts +3 -0
  45. package/es/table/pipeline/const.js +3 -0
  46. package/es/table/pipeline/features/columnDrag.js +0 -1
  47. package/es/table/pipeline/features/columnFilter.js +1 -3
  48. package/es/table/pipeline/features/columnResizeWidth.js +2 -2
  49. package/es/table/pipeline/features/contextMenu.js +4 -6
  50. package/es/table/pipeline/features/featureApi/RowDragApi.d.ts +15 -0
  51. package/es/table/pipeline/features/featureApi/RowDragApi.js +66 -0
  52. package/es/table/pipeline/features/featureApi/utils.d.ts +2 -0
  53. package/es/table/pipeline/features/featureApi/utils.js +10 -0
  54. package/es/table/pipeline/features/filter/DefaultFilterContent.js +4 -5
  55. package/es/table/pipeline/features/filter/Filter.js +2 -3
  56. package/es/table/pipeline/features/rangeSelection.js +10 -10
  57. package/es/table/pipeline/features/rowDetail.js +2 -2
  58. package/es/table/pipeline/features/rowDrag.d.ts +12 -12
  59. package/es/table/pipeline/features/rowDrag.js +605 -192
  60. package/es/table/pipeline/features/rowGrouping.js +2 -2
  61. package/es/table/pipeline/features/sort.js +6 -7
  62. package/es/table/pipeline/features/tips.js +4 -4
  63. package/es/table/pipeline/features/treeMode.d.ts +1 -0
  64. package/es/table/pipeline/features/treeMode.js +39 -12
  65. package/es/table/pipeline/features/treeSelect.js +2 -2
  66. package/es/table/pipeline/pipeline.d.ts +3 -0
  67. package/es/table/pipeline/pipeline.js +24 -3
  68. package/es/table/pivot/cross-table/buildCrossTable.js +6 -8
  69. package/es/table/pivot/cross-table/cross-table.js +1 -3
  70. package/es/table/pivot/cross-tree-table/buildCrossTreeTable.js +8 -10
  71. package/es/table/pivot/cross-tree-table/cross-tree-table.js +8 -11
  72. package/es/table/pivot/pivot-utils/builders.js +3 -3
  73. package/es/table/pivot/pivot-utils/convert-utils.js +3 -3
  74. package/es/table/style/index.less +1 -1
  75. package/es/table/transforms/autoWidth.js +3 -3
  76. package/es/table/transforms/columnResize.js +3 -5
  77. package/es/table/transforms/sort.js +6 -8
  78. package/es/table/transforms/tips.js +4 -4
  79. package/es/table/transforms/treeMode.js +6 -8
  80. package/es/table/utils/buildTree.js +3 -3
  81. package/es/table/utils/collectNodes.js +3 -3
  82. package/es/table/utils/exportTableAsExcel.js +3 -3
  83. package/es/table/utils/getTreeDepth.js +3 -3
  84. package/es/table/utils/groupBy.js +3 -3
  85. package/es/table/utils/makeRecursiveMapper.js +3 -3
  86. package/es/table/utils/mergeCellProps.js +0 -1
  87. package/es/table/utils/others.js +3 -3
  88. package/es/table/utils/traverseColumn.js +3 -3
  89. package/es/table/utils/tree-data-helpers/StrictTreeDataHelper.js +7 -8
  90. package/es/table/utils/tree-data-helpers/TreeDataHelper.js +4 -5
  91. package/lib/_utils/arrayUtil.js +2 -3
  92. package/lib/_utils/formatUtil.js +1 -5
  93. package/lib/_utils/hooks.js +3 -3
  94. package/lib/_utils/index.js +2 -3
  95. package/lib/_utils/type.js +3 -5
  96. package/lib/_utils/usePopper.js +18 -21
  97. package/lib/config-provider/ConfigContext.js +1 -2
  98. package/lib/config-provider/compDefaultProps.js +1 -2
  99. package/lib/config-provider/configProvider.js +3 -4
  100. package/lib/config-provider/defaultConfig.js +1 -2
  101. package/lib/config-provider/index.js +1 -2
  102. package/lib/locale/index.js +3 -4
  103. package/lib/locale/locale.js +10 -14
  104. package/lib/locale/zh-CN.js +1 -2
  105. package/lib/style/color/colors.less +2 -0
  106. package/lib/style/components.less +1 -1
  107. package/lib/style/core/index.less +2 -0
  108. package/lib/style/core/motion/other.less +28 -0
  109. package/lib/style/core/motion/slide.less +53 -0
  110. package/lib/style/core/motion.less +2 -0
  111. package/lib/style/core/reset.less +186 -0
  112. package/lib/style/index.css +410 -0
  113. package/lib/style/index.less +2 -0
  114. package/lib/style/mixins/index.less +19 -0
  115. package/lib/style/mixins/overlay.less +22 -0
  116. package/lib/style/mixins/reset.less +13 -0
  117. package/lib/style/themes/default.less +445 -0
  118. package/lib/style/themes/index.less +1 -0
  119. package/lib/table/base/calculations.js +3 -3
  120. package/lib/table/base/empty.js +4 -4
  121. package/lib/table/base/globalStyleComponent.d.ts +4 -0
  122. package/lib/table/base/globalStyleComponent.js +35 -0
  123. package/lib/table/base/header.js +5 -7
  124. package/lib/table/base/helpers/SpanManager.js +3 -5
  125. package/lib/table/base/helpers/TableDOMUtils.js +7 -9
  126. package/lib/table/base/helpers/getRichVisibleRectsStream.js +2 -2
  127. package/lib/table/base/html-table.js +3 -4
  128. package/lib/table/base/loading.js +2 -2
  129. package/lib/table/base/renderTemplates.js +18 -18
  130. package/lib/table/base/styles.d.ts +11 -0
  131. package/lib/table/base/styles.js +25 -21
  132. package/lib/table/base/table.js +30 -31
  133. package/lib/table/base/utils.js +13 -20
  134. package/lib/table/common-views.js +4 -8
  135. package/lib/table/interfaces.d.ts +41 -0
  136. package/lib/table/internals.js +2 -3
  137. package/lib/table/pipeline/const.d.ts +3 -0
  138. package/lib/table/pipeline/const.js +9 -0
  139. package/lib/table/pipeline/features/autoFill.js +3 -6
  140. package/lib/table/pipeline/features/colGroupExtendable.js +2 -3
  141. package/lib/table/pipeline/features/columnDrag.js +0 -1
  142. package/lib/table/pipeline/features/columnFilter.js +1 -3
  143. package/lib/table/pipeline/features/columnResizeWidth.js +7 -10
  144. package/lib/table/pipeline/features/contextMenu.js +6 -8
  145. package/lib/table/pipeline/features/featureApi/RowDragApi.d.ts +15 -0
  146. package/lib/table/pipeline/features/featureApi/RowDragApi.js +72 -0
  147. package/lib/table/pipeline/features/featureApi/utils.d.ts +2 -0
  148. package/lib/table/pipeline/features/featureApi/utils.js +17 -0
  149. package/lib/table/pipeline/features/filter/DefaultFilterContent.js +7 -9
  150. package/lib/table/pipeline/features/filter/Filter.js +5 -7
  151. package/lib/table/pipeline/features/filter/FilterPanel.js +3 -4
  152. package/lib/table/pipeline/features/filter/util.js +2 -3
  153. package/lib/table/pipeline/features/footerDataSource.js +1 -2
  154. package/lib/table/pipeline/features/rangeSelection.js +12 -14
  155. package/lib/table/pipeline/features/rowDetail.js +2 -2
  156. package/lib/table/pipeline/features/rowDrag.d.ts +12 -12
  157. package/lib/table/pipeline/features/rowDrag.js +608 -197
  158. package/lib/table/pipeline/features/rowGrouping.js +2 -2
  159. package/lib/table/pipeline/features/sort.js +6 -7
  160. package/lib/table/pipeline/features/tips.js +4 -4
  161. package/lib/table/pipeline/features/treeMode.d.ts +1 -0
  162. package/lib/table/pipeline/features/treeMode.js +41 -14
  163. package/lib/table/pipeline/features/treeSelect.js +2 -2
  164. package/lib/table/pipeline/index.js +2 -2
  165. package/lib/table/pipeline/pipeline.d.ts +3 -0
  166. package/lib/table/pipeline/pipeline.js +25 -5
  167. package/lib/table/pivot/cross-table/buildCrossTable.js +6 -8
  168. package/lib/table/pivot/cross-table/constants.js +1 -2
  169. package/lib/table/pivot/cross-table/cross-table.js +3 -6
  170. package/lib/table/pivot/cross-tree-table/buildCrossTreeTable.js +8 -10
  171. package/lib/table/pivot/cross-tree-table/cross-tree-table.js +9 -13
  172. package/lib/table/pivot/pivot-utils/builders.js +3 -3
  173. package/lib/table/pivot/pivot-utils/convert-utils.js +3 -3
  174. package/lib/table/style/index.css +0 -0
  175. package/lib/table/style/index.less +1 -0
  176. package/lib/table/transforms/autoWidth.js +5 -5
  177. package/lib/table/transforms/columnResize.js +5 -7
  178. package/lib/table/transforms/sort.js +8 -10
  179. package/lib/table/transforms/tips.js +4 -4
  180. package/lib/table/transforms/treeMode.js +8 -10
  181. package/lib/table/use/useResizeObserver.js +1 -2
  182. package/lib/table/utils/browserType.js +2 -4
  183. package/lib/table/utils/buildTree.js +3 -3
  184. package/lib/table/utils/collectNodes.js +3 -3
  185. package/lib/table/utils/console.js +2 -3
  186. package/lib/table/utils/copyToClipboard.js +1 -2
  187. package/lib/table/utils/exportTableAsExcel.js +3 -3
  188. package/lib/table/utils/getTreeDepth.js +3 -3
  189. package/lib/table/utils/groupBy.js +3 -3
  190. package/lib/table/utils/keyCode.js +1 -2
  191. package/lib/table/utils/makeRecursiveMapper.js +3 -3
  192. package/lib/table/utils/mergeCellProps.js +0 -1
  193. package/lib/table/utils/others.js +4 -5
  194. package/lib/table/utils/proto.js +1 -2
  195. package/lib/table/utils/selectColumn.js +2 -4
  196. package/lib/table/utils/traverseColumn.js +3 -3
  197. package/lib/table/utils/tree-data-helpers/StrictTreeDataHelper.js +9 -11
  198. package/lib/table/utils/tree-data-helpers/TreeDataHelper.js +6 -8
  199. package/package.json +218 -219
@@ -0,0 +1,410 @@
1
+ /* ----------- color ——————---- start */
2
+ /* ----------- color ——————---- end */
3
+ /* ----------- font ——————---- start */
4
+ /* ----------- font ——————---- end */
5
+ /* ----------- zIndex ——————---- start */
6
+ /*
7
+ 普通组件内部自身层级应设置在0-100间
8
+ */
9
+ /* ----------- zIndex ——————---- end */
10
+ /* ----------- transition ——————---- start */
11
+ /* ----------- transition ——————---- end */
12
+ /* ----------- Button ——————---- start */
13
+ /* ----------- Button ——————---- end */
14
+ /* ----------- Collapse ——————---- start */
15
+ /* ----------- Collapse ——————---- end */
16
+ /* ----------- Switch ——————---- start */
17
+ /* ----------- Switch ——————---- end */
18
+ /* ----------- Input ——————---- start */
19
+ /* ----------- Input ——————---- end */
20
+ /* ----------- InputNumber ——————---- start */
21
+ /* ----------- InputNumber ——————---- end */
22
+ /* ----------- checkbox ——————---- start */
23
+ /* ----------- checkbox ——————---- end */
24
+ /* ----------- Radio ——————---- start */
25
+ /* ----------- Radio ——————---- end */
26
+ /* ----------- icon ——————---- start */
27
+ /* ----------- icon ——————---- end */
28
+ /* ----------- Popconfirm ——————---- start */
29
+ /* ----------- Popconfirm ——————---- end */
30
+ /* ----------- Popover ——————---- start */
31
+ /* ----------- Popover ——————---- end */
32
+ /* ----------- Progress ——————---- start */
33
+ /* ----------- Progress ——————---- end */
34
+ /* ----------- Pagination ——————---- start */
35
+ /* ----------- Pagination ——————---- end */
36
+ /* ----------- Timeline ——————---- start */
37
+ /* ----------- Timeline ——————---- end */
38
+ /* ----------- Tabs ——————---- start */
39
+ /* ----------- Tabs ——————---- end */
40
+ /* ----------- Select ——————---- start */
41
+ /* ----------- Select ——————---- end */
42
+ /* ----------- Rate ——————---- start */
43
+ /* ----------- Rate ——————---- end */
44
+ /* ----------- Dropdown ——————---- start */
45
+ /* ----------- Dropdown ——————---- end */
46
+ /* ----------- Tooltip ——————---- start */
47
+ /* ----------- Tooltip ——————---- end */
48
+ /* ----------- Transfer ——————---- start */
49
+ /* ----------- Transfer ——————---- end */
50
+ /* ----------- Alert ——————---- start */
51
+ /* ----------- Alert ——————---- end */
52
+ /* ----------- Split-Panel ——————---- start */
53
+ /* ----------- Split-Panel ——————---- end */
54
+ /* ----------- Modal ——————---- start */
55
+ /* ----------- Modal ——————---- end */
56
+ /* ----------- Steps ——————---- start */
57
+ /* ----------- Steps ——————---- end */
58
+ /* ----------- Tag ——————---- start */
59
+ /* ----------- Tag ——————---- end */
60
+ @-webkit-keyframes loadingcircle {
61
+ 100% {
62
+ -webkit-transform: rotate(360deg);
63
+ transform: rotate(360deg);
64
+ }
65
+ }
66
+ @keyframes loadingcircle {
67
+ 100% {
68
+ -webkit-transform: rotate(360deg);
69
+ transform: rotate(360deg);
70
+ }
71
+ }
72
+ @-webkit-keyframes waveEffect {
73
+ 100% {
74
+ -webkit-box-shadow: 0 0 0 6px #5582f3;
75
+ box-shadow: 0 0 0 6px #5582f3;
76
+ }
77
+ }
78
+ @keyframes waveEffect {
79
+ 100% {
80
+ -webkit-box-shadow: 0 0 0 6px #5582f3;
81
+ box-shadow: 0 0 0 6px #5582f3;
82
+ }
83
+ }
84
+ @-webkit-keyframes fadeEffect {
85
+ 100% {
86
+ opacity: 0;
87
+ }
88
+ }
89
+ @keyframes fadeEffect {
90
+ 100% {
91
+ opacity: 0;
92
+ }
93
+ }
94
+ @-webkit-keyframes kdRadioEffect {
95
+ 0% {
96
+ -webkit-transform: translateY(-50%) scale(0.5);
97
+ transform: translateY(-50%) scale(0.5);
98
+ opacity: 0;
99
+ }
100
+ 100% {
101
+ -webkit-transform: translateY(-50%) scale(1);
102
+ transform: translateY(-50%) scale(1);
103
+ opacity: 1;
104
+ }
105
+ }
106
+ @keyframes kdRadioEffect {
107
+ 0% {
108
+ -webkit-transform: translateY(-50%) scale(0.5);
109
+ transform: translateY(-50%) scale(0.5);
110
+ opacity: 0;
111
+ }
112
+ 100% {
113
+ -webkit-transform: translateY(-50%) scale(1);
114
+ transform: translateY(-50%) scale(1);
115
+ opacity: 1;
116
+ }
117
+ }
118
+ @-webkit-keyframes kdSlideDownIn {
119
+ 0% {
120
+ -webkit-transform: scaleY(0.8);
121
+ transform: scaleY(0.8);
122
+ -webkit-transform-origin: 50% 0%;
123
+ transform-origin: 50% 0%;
124
+ opacity: 0;
125
+ }
126
+ 100% {
127
+ -webkit-transform: scaleY(1);
128
+ transform: scaleY(1);
129
+ -webkit-transform-origin: 50% 0%;
130
+ transform-origin: 50% 0%;
131
+ opacity: 1;
132
+ }
133
+ }
134
+ @keyframes kdSlideDownIn {
135
+ 0% {
136
+ -webkit-transform: scaleY(0.8);
137
+ transform: scaleY(0.8);
138
+ -webkit-transform-origin: 50% 0%;
139
+ transform-origin: 50% 0%;
140
+ opacity: 0;
141
+ }
142
+ 100% {
143
+ -webkit-transform: scaleY(1);
144
+ transform: scaleY(1);
145
+ -webkit-transform-origin: 50% 0%;
146
+ transform-origin: 50% 0%;
147
+ opacity: 1;
148
+ }
149
+ }
150
+ @-webkit-keyframes kdSlideDownOut {
151
+ 0% {
152
+ -webkit-transform: scaleY(1);
153
+ transform: scaleY(1);
154
+ -webkit-transform-origin: 50% 0%;
155
+ transform-origin: 50% 0%;
156
+ opacity: 1;
157
+ }
158
+ 100% {
159
+ -webkit-transform: scaleY(0.9);
160
+ transform: scaleY(0.9);
161
+ -webkit-transform-origin: 50% 0%;
162
+ transform-origin: 50% 0%;
163
+ opacity: 0;
164
+ }
165
+ }
166
+ @keyframes kdSlideDownOut {
167
+ 0% {
168
+ -webkit-transform: scaleY(1);
169
+ transform: scaleY(1);
170
+ -webkit-transform-origin: 50% 0%;
171
+ transform-origin: 50% 0%;
172
+ opacity: 1;
173
+ }
174
+ 100% {
175
+ -webkit-transform: scaleY(0.9);
176
+ transform: scaleY(0.9);
177
+ -webkit-transform-origin: 50% 0%;
178
+ transform-origin: 50% 0%;
179
+ opacity: 0;
180
+ }
181
+ }
182
+ @-webkit-keyframes kdSlideUpIn {
183
+ 0% {
184
+ -webkit-transform-origin: 50% 100%;
185
+ transform-origin: 50% 100%;
186
+ opacity: 0;
187
+ }
188
+ 5% {
189
+ -webkit-transform: scaleY(0.8);
190
+ transform: scaleY(0.8);
191
+ }
192
+ 100% {
193
+ -webkit-transform: scaleY(1);
194
+ transform: scaleY(1);
195
+ -webkit-transform-origin: 50% 100%;
196
+ transform-origin: 50% 100%;
197
+ opacity: 1;
198
+ }
199
+ }
200
+ @keyframes kdSlideUpIn {
201
+ 0% {
202
+ -webkit-transform-origin: 50% 100%;
203
+ transform-origin: 50% 100%;
204
+ opacity: 0;
205
+ }
206
+ 5% {
207
+ -webkit-transform: scaleY(0.8);
208
+ transform: scaleY(0.8);
209
+ }
210
+ 100% {
211
+ -webkit-transform: scaleY(1);
212
+ transform: scaleY(1);
213
+ -webkit-transform-origin: 50% 100%;
214
+ transform-origin: 50% 100%;
215
+ opacity: 1;
216
+ }
217
+ }
218
+ @-webkit-keyframes kdSlideUpOut {
219
+ 0% {
220
+ -webkit-transform: scaleY(1);
221
+ transform: scaleY(1);
222
+ -webkit-transform-origin: 50% 100%;
223
+ transform-origin: 50% 100%;
224
+ opacity: 1;
225
+ }
226
+ 100% {
227
+ -webkit-transform: scaleY(0.9);
228
+ transform: scaleY(0.9);
229
+ -webkit-transform-origin: 50% 100%;
230
+ transform-origin: 50% 100%;
231
+ opacity: 0;
232
+ }
233
+ }
234
+ @keyframes kdSlideUpOut {
235
+ 0% {
236
+ -webkit-transform: scaleY(1);
237
+ transform: scaleY(1);
238
+ -webkit-transform-origin: 50% 100%;
239
+ transform-origin: 50% 100%;
240
+ opacity: 1;
241
+ }
242
+ 100% {
243
+ -webkit-transform: scaleY(0.9);
244
+ transform: scaleY(0.9);
245
+ -webkit-transform-origin: 50% 100%;
246
+ transform-origin: 50% 100%;
247
+ opacity: 0;
248
+ }
249
+ }
250
+ /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
251
+ /* normalize.css 和现有产品的结合版本, 根据兼容性进行了调整 */
252
+ /* Document
253
+ ========================================================================== */
254
+ /* Sections
255
+ ========================================================================== */
256
+ /**
257
+ * Remove the margin in all browsers.
258
+ */
259
+ html,
260
+ body {
261
+ height: 100%;
262
+ padding: 0;
263
+ margin: 0;
264
+ font-size: 12px;
265
+ }
266
+ html,
267
+ body,
268
+ input,
269
+ textarea,
270
+ select,
271
+ button {
272
+ font-family: "Microsoft YaHei", "PingFangSC-Regular", "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
273
+ }
274
+ body {
275
+ -webkit-box-sizing: border-box;
276
+ box-sizing: border-box;
277
+ }
278
+ /**
279
+ * Remove the gray background on active links in IE 10.
280
+ */
281
+ a {
282
+ background-color: transparent;
283
+ }
284
+ /* Forms
285
+ ========================================================================== */
286
+ /**
287
+ */
288
+ input {
289
+ padding: 0;
290
+ margin: 0;
291
+ }
292
+ /**
293
+ * 1. Change the font styles in all browsers.
294
+ * 2. Remove the margin in Firefox and Safari.
295
+ */
296
+ button,
297
+ input,
298
+ optgroup,
299
+ select,
300
+ textarea {
301
+ margin: 0;
302
+ /* 2 */
303
+ }
304
+ /**
305
+ * Show the overflow in IE.
306
+ * 1. Show the overflow in Edge.
307
+ */
308
+ button,
309
+ input {
310
+ /* 1 */
311
+ overflow: visible;
312
+ }
313
+ /**
314
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
315
+ * 1. Remove the inheritance of text transform in Firefox.
316
+ */
317
+ button,
318
+ select {
319
+ /* 1 */
320
+ text-transform: none;
321
+ }
322
+ /**
323
+ * Correct the inability to style clickable types in iOS and Safari.
324
+ */
325
+ button,
326
+ [type="button"],
327
+ [type="reset"],
328
+ [type="submit"] {
329
+ -webkit-appearance: button;
330
+ }
331
+ /**
332
+ * Remove the inner border and padding in Firefox.
333
+ */
334
+ button::-moz-focus-inner,
335
+ [type="button"]::-moz-focus-inner,
336
+ [type="reset"]::-moz-focus-inner,
337
+ [type="submit"]::-moz-focus-inner {
338
+ border-style: none;
339
+ padding: 0;
340
+ }
341
+ /**
342
+ * Restore the focus styles unset by the previous rule.
343
+ */
344
+ button:-moz-focusring,
345
+ [type="button"]:-moz-focusring,
346
+ [type="reset"]:-moz-focusring,
347
+ [type="submit"]:-moz-focusring {
348
+ outline: 1px dotted ButtonText;
349
+ }
350
+ /**
351
+ * Add the correct vertical alignment in Chrome, Firefox, and Opera.
352
+ */
353
+ progress {
354
+ vertical-align: baseline;
355
+ }
356
+ /**
357
+ * Remove the default vertical scrollbar in IE 10+.
358
+ */
359
+ textarea {
360
+ overflow: auto;
361
+ }
362
+ /**
363
+ * 1. Add the correct box sizing in IE 10.
364
+ * 2. Remove the padding in IE 10.
365
+ */
366
+ [type="checkbox"],
367
+ [type="radio"] {
368
+ -webkit-box-sizing: border-box;
369
+ box-sizing: border-box;
370
+ /* 1 */
371
+ padding: 0;
372
+ /* 2 */
373
+ }
374
+ /**
375
+ * Correct the cursor style of increment and decrement buttons in Chrome.
376
+ */
377
+ [type="number"]::-webkit-inner-spin-button,
378
+ [type="number"]::-webkit-outer-spin-button {
379
+ height: auto;
380
+ }
381
+ /**
382
+ * 1. Correct the odd appearance in Chrome and Safari.
383
+ * 2. Correct the outline style in Safari.
384
+ */
385
+ [type="search"] {
386
+ -webkit-appearance: textfield;
387
+ /* 1 */
388
+ outline-offset: -2px;
389
+ /* 2 */
390
+ }
391
+ /**
392
+ * Remove the inner padding in Chrome and Safari on macOS.
393
+ */
394
+ [type="search"]::-webkit-search-decoration {
395
+ -webkit-appearance: none;
396
+ }
397
+ /* Misc
398
+ ========================================================================== */
399
+ /**
400
+ * Add the correct display in IE 10+.
401
+ */
402
+ template {
403
+ display: none;
404
+ }
405
+ /**
406
+ * Add the correct display in IE 10.
407
+ */
408
+ [hidden] {
409
+ display: none;
410
+ }
@@ -0,0 +1,2 @@
1
+ @import './themes/index';
2
+ @import './core/index';
@@ -0,0 +1,19 @@
1
+ // Mixins
2
+ //----------------------------------------
3
+ @import 'reset';
4
+
5
+ /* 多行显示省略号 */
6
+ .multilpleEllipsis(@n: n) {
7
+ overflow: hidden;
8
+ text-overflow: ellipsis;
9
+ display: -webkit-box;
10
+ -webkit-line-clamp: @n;
11
+ -webkit-box-orient: vertical;
12
+ }
13
+
14
+ /* 单行显示省略号 */
15
+ .ellipsis() {
16
+ white-space: nowrap;
17
+ overflow: hidden;
18
+ text-overflow: ellipsis;
19
+ }
@@ -0,0 +1,22 @@
1
+ @import '../themes/default.less';
2
+
3
+ .overlay(@bgcolor, @isUseMaskZindex) {
4
+ position: fixed;
5
+ background-color: @bgcolor;
6
+ z-index: if(boolean(@isUseMaskZindex), @zIndex-masker, auto);
7
+ .overall-postion()
8
+ }
9
+
10
+ .overall-postion {
11
+ left: 0;
12
+ right: 0;
13
+ top: 0;
14
+ bottom: 0;
15
+ }
16
+
17
+ .static-overlay(@bgcolor, @isUseMaskZindex) {
18
+ width: 100%;
19
+ height: 100%;
20
+ background-color: @bgcolor;
21
+ z-index: if(boolean(@isUseMaskZindex), @zIndex-masker, auto);
22
+ }
@@ -0,0 +1,13 @@
1
+ @import '../themes/index';
2
+
3
+ @font-variant: tabular-nums;
4
+ @font-feature-settings: 'tnum';
5
+
6
+ .reset-component() {
7
+ box-sizing: border-box;
8
+ margin: 0;
9
+ padding: 0;
10
+ font-variant: @font-variant;
11
+ list-style: none;
12
+ font-feature-settings: @font-feature-settings;
13
+ }