@sheinx/base 3.7.9-beta.1 → 3.7.9-beta.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.
- package/cjs/table/table.d.ts.map +1 -1
- package/cjs/table/table.js +2 -1
- package/cjs/table/tfoot.d.ts.map +1 -1
- package/cjs/table/tfoot.js +6 -2
- package/cjs/table/tfoot.type.d.ts +1 -0
- package/cjs/table/tfoot.type.d.ts.map +1 -1
- package/esm/table/table.d.ts.map +1 -1
- package/esm/table/table.js +2 -1
- package/esm/table/tfoot.d.ts.map +1 -1
- package/esm/table/tfoot.js +6 -2
- package/esm/table/tfoot.type.d.ts +1 -0
- package/esm/table/tfoot.type.d.ts.map +1 -1
- package/package.json +2 -2
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,wBAgsBE"}
|
package/cjs/table/table.js
CHANGED
|
@@ -417,7 +417,8 @@ var _default = exports.default = function _default(props) {
|
|
|
417
417
|
summary: props.summary,
|
|
418
418
|
columns: columns,
|
|
419
419
|
jssStyle: props.jssStyle,
|
|
420
|
-
colgroup: colgroup
|
|
420
|
+
colgroup: colgroup,
|
|
421
|
+
data: props.data
|
|
421
422
|
};
|
|
422
423
|
var StickyWrapper = props.sticky ? _sticky.default : _react.default.Fragment;
|
|
423
424
|
var sticky = _typeof(props.sticky) === 'object' ? props.sticky : {
|
package/cjs/table/tfoot.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tfoot.d.ts","sourceRoot":"","sources":["tfoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAe,MAAM,cAAc,CAAC;gCAMhC,UAAU;AAAjC,
|
|
1
|
+
{"version":3,"file":"tfoot.d.ts","sourceRoot":"","sources":["tfoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAe,MAAM,cAAc,CAAC;gCAMhC,UAAU;AAAjC,wBA+FE"}
|
package/cjs/table/tfoot.js
CHANGED
|
@@ -66,8 +66,12 @@ var _default = exports.default = function _default(props) {
|
|
|
66
66
|
}, index);
|
|
67
67
|
};
|
|
68
68
|
var getTrs = function getTrs() {
|
|
69
|
-
var _props$summary
|
|
70
|
-
|
|
69
|
+
var _props$summary, _props$data;
|
|
70
|
+
if (props !== null && props !== void 0 && (_props$summary = props.summary) !== null && _props$summary !== void 0 && _props$summary.length && (props === null || props === void 0 || (_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.length) === 0) {
|
|
71
|
+
return [];
|
|
72
|
+
}
|
|
73
|
+
var _props$summary2 = props.summary,
|
|
74
|
+
summary = _props$summary2 === void 0 ? [] : _props$summary2;
|
|
71
75
|
if (!isArray(summary[0])) {
|
|
72
76
|
summary = [summary];
|
|
73
77
|
}
|
|
@@ -4,5 +4,6 @@ export { SummaryItem } from './table.type';
|
|
|
4
4
|
export interface TfootProps extends Pick<OptionalToRequired<TableProps<any, any>>, 'summary' | 'jssStyle'> {
|
|
5
5
|
columns: TableFormatColumn<any>[];
|
|
6
6
|
colgroup: (number | string | undefined)[];
|
|
7
|
+
data?: any[];
|
|
7
8
|
}
|
|
8
9
|
//# sourceMappingURL=tfoot.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tfoot.type.d.ts","sourceRoot":"","sources":["tfoot.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IAC9E,OAAO,EAAE,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC;IAClC,QAAQ,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"tfoot.type.d.ts","sourceRoot":"","sources":["tfoot.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IAC9E,OAAO,EAAE,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC;IAClC,QAAQ,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC;IAC1C,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;CACd"}
|
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,wBAgsBE"}
|
package/esm/table/table.js
CHANGED
|
@@ -410,7 +410,8 @@ export default (function (props) {
|
|
|
410
410
|
summary: props.summary,
|
|
411
411
|
columns: columns,
|
|
412
412
|
jssStyle: props.jssStyle,
|
|
413
|
-
colgroup: colgroup
|
|
413
|
+
colgroup: colgroup,
|
|
414
|
+
data: props.data
|
|
414
415
|
};
|
|
415
416
|
var StickyWrapper = props.sticky ? Sticky : React.Fragment;
|
|
416
417
|
var sticky = _typeof(props.sticky) === 'object' ? props.sticky : {
|
package/esm/table/tfoot.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tfoot.d.ts","sourceRoot":"","sources":["tfoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAe,MAAM,cAAc,CAAC;gCAMhC,UAAU;AAAjC,
|
|
1
|
+
{"version":3,"file":"tfoot.d.ts","sourceRoot":"","sources":["tfoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAe,MAAM,cAAc,CAAC;gCAMhC,UAAU;AAAjC,wBA+FE"}
|
package/esm/table/tfoot.js
CHANGED
|
@@ -59,8 +59,12 @@ export default (function (props) {
|
|
|
59
59
|
}, index);
|
|
60
60
|
};
|
|
61
61
|
var getTrs = function getTrs() {
|
|
62
|
-
var _props$summary
|
|
63
|
-
|
|
62
|
+
var _props$summary, _props$data;
|
|
63
|
+
if (props !== null && props !== void 0 && (_props$summary = props.summary) !== null && _props$summary !== void 0 && _props$summary.length && (props === null || props === void 0 || (_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.length) === 0) {
|
|
64
|
+
return [];
|
|
65
|
+
}
|
|
66
|
+
var _props$summary2 = props.summary,
|
|
67
|
+
summary = _props$summary2 === void 0 ? [] : _props$summary2;
|
|
64
68
|
if (!isArray(summary[0])) {
|
|
65
69
|
summary = [summary];
|
|
66
70
|
}
|
|
@@ -4,5 +4,6 @@ export { SummaryItem } from './table.type';
|
|
|
4
4
|
export interface TfootProps extends Pick<OptionalToRequired<TableProps<any, any>>, 'summary' | 'jssStyle'> {
|
|
5
5
|
columns: TableFormatColumn<any>[];
|
|
6
6
|
colgroup: (number | string | undefined)[];
|
|
7
|
+
data?: any[];
|
|
7
8
|
}
|
|
8
9
|
//# sourceMappingURL=tfoot.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tfoot.type.d.ts","sourceRoot":"","sources":["tfoot.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IAC9E,OAAO,EAAE,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC;IAClC,QAAQ,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"tfoot.type.d.ts","sourceRoot":"","sources":["tfoot.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IAC9E,OAAO,EAAE,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC;IAClC,QAAQ,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC;IAC1C,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;CACd"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheinx/base",
|
|
3
|
-
"version": "3.7.9-beta.
|
|
3
|
+
"version": "3.7.9-beta.2",
|
|
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.7.9-beta.
|
|
13
|
+
"@sheinx/hooks": "3.7.9-beta.2",
|
|
14
14
|
"immer": "^10.0.0",
|
|
15
15
|
"classnames": "^2.0.0",
|
|
16
16
|
"@shined/reactive": "^0.1.3-alpha.0"
|