dumi 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -23,7 +23,8 @@ export var DumiDemoGrid = function DumiDemoGrid(props) {
|
|
|
23
23
|
|
|
24
24
|
var cols = [];
|
|
25
25
|
|
|
26
|
-
if ((_fm$demo = fm.demo) !== null && _fm$demo !== void 0 && _fm$demo.cols && fm.demo.cols > 1 &&
|
|
26
|
+
if ((_fm$demo = fm.demo) !== null && _fm$demo !== void 0 && _fm$demo.cols && fm.demo.cols > 1 && ( // compatible for ssr env
|
|
27
|
+
typeof window === 'undefined' || window.innerWidth > 1024)) {
|
|
27
28
|
for (var i = 0; i < items.length; i += fm.demo.cols) {
|
|
28
29
|
items.slice(i, i + fm.demo.cols).forEach(function (item, j) {
|
|
29
30
|
var _cols$j;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
list-style: none;
|
|
5
5
|
margin: 12px 0 0;
|
|
6
6
|
padding: 4px 0;
|
|
7
|
-
border-
|
|
7
|
+
border-inline-start: 1px solid @c-border;
|
|
8
8
|
|
|
9
9
|
&:empty {
|
|
10
10
|
display: none;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
&.active {
|
|
31
31
|
margin-inline-start: -1px;
|
|
32
32
|
color: @c-text;
|
|
33
|
-
border-
|
|
33
|
+
border-inline-start: 1px solid @c-primary;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|