@kdcloudjs/table 1.2.1-canary.7-hotfix.1 → 1.2.2-canary.11
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/LICENSE +568 -568
- package/README.md +111 -111
- package/dist/@kdcloudjs/table.css +1 -1
- package/dist/@kdcloudjs/table.css.map +0 -0
- package/dist/@kdcloudjs/table.js +4095 -2984
- package/dist/@kdcloudjs/table.js.map +1 -1
- package/dist/@kdcloudjs/table.min.css +1 -1
- package/dist/@kdcloudjs/table.min.js +12 -10
- package/dist/@kdcloudjs/table.min.js.map +1 -1
- package/dist/default-theme.js +0 -0
- package/dist/kd-ui-complete.less +777 -777
- package/dist/kd-ui.less +0 -0
- package/dist/theme.js +0 -0
- package/es/_utils/formatUtil.js +1 -5
- package/es/_utils/hooks.js +3 -3
- package/es/_utils/usePopper.js +13 -13
- package/es/locale/locale.js +6 -7
- package/es/style/color/colors.less +1 -1
- package/es/style/core/index.less +1 -1
- package/es/style/core/motion/other.less +27 -27
- package/es/style/core/motion/slide.less +53 -53
- package/es/style/core/motion.less +1 -1
- package/es/style/core/reset.less +185 -185
- package/es/style/index.less +1 -1
- package/es/style/mixins/index.less +18 -18
- package/es/style/mixins/overlay.less +21 -21
- package/es/style/mixins/reset.less +12 -12
- package/es/style/themes/default.less +445 -445
- package/es/table/base/calculations.js +3 -3
- package/es/table/base/empty.js +2 -2
- package/es/table/base/globalStyleComponent.d.ts +4 -0
- package/es/table/base/globalStyleComponent.js +24 -0
- package/es/table/base/header.js +5 -7
- package/es/table/base/helpers/SpanManager.js +1 -2
- package/es/table/base/helpers/TableDOMUtils.js +5 -6
- package/es/table/base/html-table.js +3 -4
- package/es/table/base/loading.js +2 -2
- package/es/table/base/renderTemplates.js +16 -16
- package/es/table/base/styles.d.ts +11 -0
- package/es/table/base/styles.js +18 -7
- package/es/table/base/table.js +18 -20
- package/es/table/base/utils.js +3 -3
- package/es/table/interfaces.d.ts +41 -0
- package/es/table/pipeline/const.d.ts +3 -0
- package/es/table/pipeline/const.js +3 -0
- package/es/table/pipeline/features/columnDrag.js +0 -1
- package/es/table/pipeline/features/columnFilter.js +1 -3
- package/es/table/pipeline/features/columnResizeWidth.js +2 -2
- package/es/table/pipeline/features/contextMenu.js +4 -6
- package/es/table/pipeline/features/featureApi/RowDragApi.d.ts +15 -0
- package/es/table/pipeline/features/featureApi/RowDragApi.js +66 -0
- package/es/table/pipeline/features/featureApi/utils.d.ts +2 -0
- package/es/table/pipeline/features/featureApi/utils.js +10 -0
- package/es/table/pipeline/features/filter/DefaultFilterContent.js +4 -5
- package/es/table/pipeline/features/filter/Filter.js +2 -3
- package/es/table/pipeline/features/rangeSelection.js +10 -10
- package/es/table/pipeline/features/rowDetail.js +2 -2
- package/es/table/pipeline/features/rowDrag.d.ts +12 -12
- package/es/table/pipeline/features/rowDrag.js +605 -192
- package/es/table/pipeline/features/rowGrouping.js +2 -2
- package/es/table/pipeline/features/sort.js +6 -7
- package/es/table/pipeline/features/tips.js +4 -4
- package/es/table/pipeline/features/treeMode.d.ts +1 -0
- package/es/table/pipeline/features/treeMode.js +39 -12
- package/es/table/pipeline/features/treeSelect.js +2 -2
- package/es/table/pipeline/pipeline.d.ts +3 -0
- package/es/table/pipeline/pipeline.js +24 -3
- package/es/table/pivot/cross-table/buildCrossTable.js +6 -8
- package/es/table/pivot/cross-table/cross-table.js +1 -3
- package/es/table/pivot/cross-tree-table/buildCrossTreeTable.js +8 -10
- package/es/table/pivot/cross-tree-table/cross-tree-table.js +8 -11
- package/es/table/pivot/pivot-utils/builders.js +3 -3
- package/es/table/pivot/pivot-utils/convert-utils.js +3 -3
- package/es/table/style/index.less +1 -1
- package/es/table/transforms/autoWidth.js +3 -3
- package/es/table/transforms/columnResize.js +3 -5
- package/es/table/transforms/sort.js +6 -8
- package/es/table/transforms/tips.js +4 -4
- package/es/table/transforms/treeMode.js +6 -8
- package/es/table/utils/buildTree.js +3 -3
- package/es/table/utils/collectNodes.js +3 -3
- package/es/table/utils/exportTableAsExcel.js +3 -3
- package/es/table/utils/getTreeDepth.js +3 -3
- package/es/table/utils/groupBy.js +3 -3
- package/es/table/utils/makeRecursiveMapper.js +3 -3
- package/es/table/utils/mergeCellProps.js +0 -1
- package/es/table/utils/others.js +3 -3
- package/es/table/utils/traverseColumn.js +3 -3
- package/es/table/utils/tree-data-helpers/StrictTreeDataHelper.js +7 -8
- package/es/table/utils/tree-data-helpers/TreeDataHelper.js +4 -5
- package/lib/_utils/arrayUtil.js +2 -3
- package/lib/_utils/formatUtil.js +1 -5
- package/lib/_utils/hooks.js +3 -3
- package/lib/_utils/index.js +2 -3
- package/lib/_utils/type.js +3 -5
- package/lib/_utils/usePopper.js +18 -21
- package/lib/config-provider/ConfigContext.js +1 -2
- package/lib/config-provider/compDefaultProps.js +1 -2
- package/lib/config-provider/configProvider.js +3 -4
- package/lib/config-provider/defaultConfig.js +1 -2
- package/lib/config-provider/index.js +1 -2
- package/lib/locale/index.js +3 -4
- package/lib/locale/locale.js +10 -14
- package/lib/locale/zh-CN.js +1 -2
- package/lib/style/color/colors.less +2 -0
- package/lib/style/components.less +1 -1
- package/lib/style/core/index.less +2 -0
- package/lib/style/core/motion/other.less +28 -0
- package/lib/style/core/motion/slide.less +53 -0
- package/lib/style/core/motion.less +2 -0
- package/lib/style/core/reset.less +186 -0
- package/lib/style/index.css +410 -0
- package/lib/style/index.less +2 -0
- package/lib/style/mixins/index.less +19 -0
- package/lib/style/mixins/overlay.less +22 -0
- package/lib/style/mixins/reset.less +13 -0
- package/lib/style/themes/default.less +445 -0
- package/lib/style/themes/index.less +1 -0
- package/lib/table/base/calculations.js +3 -3
- package/lib/table/base/empty.js +4 -4
- package/lib/table/base/globalStyleComponent.d.ts +4 -0
- package/lib/table/base/globalStyleComponent.js +35 -0
- package/lib/table/base/header.js +5 -7
- package/lib/table/base/helpers/SpanManager.js +3 -5
- package/lib/table/base/helpers/TableDOMUtils.js +7 -9
- package/lib/table/base/helpers/getRichVisibleRectsStream.js +2 -2
- package/lib/table/base/html-table.js +3 -4
- package/lib/table/base/loading.js +2 -2
- package/lib/table/base/renderTemplates.js +18 -18
- package/lib/table/base/styles.d.ts +11 -0
- package/lib/table/base/styles.js +25 -21
- package/lib/table/base/table.js +30 -31
- package/lib/table/base/utils.js +13 -20
- package/lib/table/common-views.js +4 -8
- package/lib/table/interfaces.d.ts +41 -0
- package/lib/table/internals.js +2 -3
- package/lib/table/pipeline/const.d.ts +3 -0
- package/lib/table/pipeline/const.js +9 -0
- package/lib/table/pipeline/features/autoFill.js +3 -6
- package/lib/table/pipeline/features/colGroupExtendable.js +2 -3
- package/lib/table/pipeline/features/columnDrag.js +0 -1
- package/lib/table/pipeline/features/columnFilter.js +1 -3
- package/lib/table/pipeline/features/columnResizeWidth.js +7 -10
- package/lib/table/pipeline/features/contextMenu.js +6 -8
- package/lib/table/pipeline/features/featureApi/RowDragApi.d.ts +15 -0
- package/lib/table/pipeline/features/featureApi/RowDragApi.js +72 -0
- package/lib/table/pipeline/features/featureApi/utils.d.ts +2 -0
- package/lib/table/pipeline/features/featureApi/utils.js +17 -0
- package/lib/table/pipeline/features/filter/DefaultFilterContent.js +7 -9
- package/lib/table/pipeline/features/filter/Filter.js +5 -7
- package/lib/table/pipeline/features/filter/FilterPanel.js +3 -4
- package/lib/table/pipeline/features/filter/util.js +2 -3
- package/lib/table/pipeline/features/footerDataSource.js +1 -2
- package/lib/table/pipeline/features/rangeSelection.js +12 -14
- package/lib/table/pipeline/features/rowDetail.js +2 -2
- package/lib/table/pipeline/features/rowDrag.d.ts +12 -12
- package/lib/table/pipeline/features/rowDrag.js +608 -197
- package/lib/table/pipeline/features/rowGrouping.js +2 -2
- package/lib/table/pipeline/features/sort.js +6 -7
- package/lib/table/pipeline/features/tips.js +4 -4
- package/lib/table/pipeline/features/treeMode.d.ts +1 -0
- package/lib/table/pipeline/features/treeMode.js +41 -14
- package/lib/table/pipeline/features/treeSelect.js +2 -2
- package/lib/table/pipeline/index.js +2 -2
- package/lib/table/pipeline/pipeline.d.ts +3 -0
- package/lib/table/pipeline/pipeline.js +25 -5
- package/lib/table/pivot/cross-table/buildCrossTable.js +6 -8
- package/lib/table/pivot/cross-table/constants.js +1 -2
- package/lib/table/pivot/cross-table/cross-table.js +3 -6
- package/lib/table/pivot/cross-tree-table/buildCrossTreeTable.js +8 -10
- package/lib/table/pivot/cross-tree-table/cross-tree-table.js +9 -13
- package/lib/table/pivot/pivot-utils/builders.js +3 -3
- package/lib/table/pivot/pivot-utils/convert-utils.js +3 -3
- package/lib/table/style/index.css +0 -0
- package/lib/table/style/index.less +1 -0
- package/lib/table/transforms/autoWidth.js +5 -5
- package/lib/table/transforms/columnResize.js +5 -7
- package/lib/table/transforms/sort.js +8 -10
- package/lib/table/transforms/tips.js +4 -4
- package/lib/table/transforms/treeMode.js +8 -10
- package/lib/table/use/useResizeObserver.js +1 -2
- package/lib/table/utils/browserType.js +2 -4
- package/lib/table/utils/buildTree.js +3 -3
- package/lib/table/utils/collectNodes.js +3 -3
- package/lib/table/utils/console.js +2 -3
- package/lib/table/utils/copyToClipboard.js +1 -2
- package/lib/table/utils/exportTableAsExcel.js +3 -3
- package/lib/table/utils/getTreeDepth.js +3 -3
- package/lib/table/utils/groupBy.js +3 -3
- package/lib/table/utils/keyCode.js +1 -2
- package/lib/table/utils/makeRecursiveMapper.js +3 -3
- package/lib/table/utils/mergeCellProps.js +0 -1
- package/lib/table/utils/others.js +4 -5
- package/lib/table/utils/proto.js +1 -2
- package/lib/table/utils/selectColumn.js +2 -4
- package/lib/table/utils/traverseColumn.js +3 -3
- package/lib/table/utils/tree-data-helpers/StrictTreeDataHelper.js +9 -11
- package/lib/table/utils/tree-data-helpers/TreeDataHelper.js +6 -8
- 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,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
|
+
}
|