@sheinx/base 3.8.2-beta.7 → 3.8.2-beta.9
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/cjs/select/result-more.d.ts.map +1 -1
- package/cjs/select/result-more.js +12 -4
- package/cjs/table/table.d.ts.map +1 -1
- package/cjs/table/table.js +1 -0
- package/esm/select/result-more.d.ts.map +1 -1
- package/esm/select/result-more.js +12 -4
- package/esm/table/table.d.ts.map +1 -1
- package/esm/table/table.js +1 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result-more.d.ts","sourceRoot":"","sources":["result-more.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAKrD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAE,WAAW,EACtB,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,UA6D9B;;
|
|
1
|
+
{"version":3,"file":"result-more.d.ts","sourceRoot":"","sources":["result-more.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAKrD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAE,WAAW,EACtB,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,UA6D9B;;AAiHD,wBAAyC"}
|
|
@@ -100,10 +100,15 @@ var More = function More(props) {
|
|
|
100
100
|
return data[index];
|
|
101
101
|
});
|
|
102
102
|
var afterCount = Math.max(0, data.length - validShowNum);
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
try {
|
|
104
|
+
after = new Array(afterCount).fill(undefined).map(function (_item, index) {
|
|
105
|
+
return data[validShowNum + index];
|
|
106
|
+
});
|
|
107
|
+
afterLength = after.length;
|
|
108
|
+
} catch (error) {
|
|
109
|
+
after = [];
|
|
110
|
+
afterLength = 0;
|
|
111
|
+
}
|
|
107
112
|
}
|
|
108
113
|
if (shouldShowMore) {
|
|
109
114
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.default.Fragment, {
|
|
@@ -145,6 +150,9 @@ var More = function More(props) {
|
|
|
145
150
|
onClick: function onClick(e) {
|
|
146
151
|
return e.stopPropagation();
|
|
147
152
|
},
|
|
153
|
+
onScroll: function onScroll(e) {
|
|
154
|
+
return e.stopPropagation();
|
|
155
|
+
},
|
|
148
156
|
children: [compressed === 'no-repeat' ? null : before, after]
|
|
149
157
|
})
|
|
150
158
|
})]
|
package/cjs/table/table.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAgB,UAAU,EAAE,MAAM,cAAc,CAAC;;AAexD,
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAgB,UAAU,EAAE,MAAM,cAAc,CAAC;;AAexD,wBAssBE"}
|
package/cjs/table/table.js
CHANGED
|
@@ -320,6 +320,7 @@ var _default = exports.default = function _default(props) {
|
|
|
320
320
|
props.onScroll(info.x, info.y, info.scrollLeft, info.scrollTop);
|
|
321
321
|
}
|
|
322
322
|
syncHeaderScroll(info.scrollLeft);
|
|
323
|
+
if (props.virtual !== "lazy") return;
|
|
323
324
|
if (context.scrollingTimer) {
|
|
324
325
|
clearTimeout(context.scrollingTimer);
|
|
325
326
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result-more.d.ts","sourceRoot":"","sources":["result-more.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAKrD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAE,WAAW,EACtB,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,UA6D9B;;
|
|
1
|
+
{"version":3,"file":"result-more.d.ts","sourceRoot":"","sources":["result-more.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAKrD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAE,WAAW,EACtB,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,UA6D9B;;AAiHD,wBAAyC"}
|
|
@@ -90,10 +90,15 @@ var More = function More(props) {
|
|
|
90
90
|
return data[index];
|
|
91
91
|
});
|
|
92
92
|
var afterCount = Math.max(0, data.length - validShowNum);
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
try {
|
|
94
|
+
after = new Array(afterCount).fill(undefined).map(function (_item, index) {
|
|
95
|
+
return data[validShowNum + index];
|
|
96
|
+
});
|
|
97
|
+
afterLength = after.length;
|
|
98
|
+
} catch (error) {
|
|
99
|
+
after = [];
|
|
100
|
+
afterLength = 0;
|
|
101
|
+
}
|
|
97
102
|
}
|
|
98
103
|
if (shouldShowMore) {
|
|
99
104
|
return /*#__PURE__*/_jsxs(React.Fragment, {
|
|
@@ -135,6 +140,9 @@ var More = function More(props) {
|
|
|
135
140
|
onClick: function onClick(e) {
|
|
136
141
|
return e.stopPropagation();
|
|
137
142
|
},
|
|
143
|
+
onScroll: function onScroll(e) {
|
|
144
|
+
return e.stopPropagation();
|
|
145
|
+
},
|
|
138
146
|
children: [compressed === 'no-repeat' ? null : before, after]
|
|
139
147
|
})
|
|
140
148
|
})]
|
package/esm/table/table.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAgB,UAAU,EAAE,MAAM,cAAc,CAAC;;AAexD,
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAgB,UAAU,EAAE,MAAM,cAAc,CAAC;;AAexD,wBAssBE"}
|
package/esm/table/table.js
CHANGED
|
@@ -313,6 +313,7 @@ export default (function (props) {
|
|
|
313
313
|
props.onScroll(info.x, info.y, info.scrollLeft, info.scrollTop);
|
|
314
314
|
}
|
|
315
315
|
syncHeaderScroll(info.scrollLeft);
|
|
316
|
+
if (props.virtual !== "lazy") return;
|
|
316
317
|
if (context.scrollingTimer) {
|
|
317
318
|
clearTimeout(context.scrollingTimer);
|
|
318
319
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheinx/base",
|
|
3
|
-
"version": "3.8.2-beta.
|
|
3
|
+
"version": "3.8.2-beta.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"module": "./esm/index.js",
|
|
11
11
|
"typings": "./cjs/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@sheinx/hooks": "3.8.2-beta.
|
|
13
|
+
"@sheinx/hooks": "3.8.2-beta.9",
|
|
14
14
|
"immer": "^10.0.0",
|
|
15
15
|
"classnames": "^2.0.0",
|
|
16
16
|
"@shined/reactive": "^0.1.3-alpha.0"
|