@kdcloudjs/table 1.2.0-canary.3 → 1.2.0-canary.4

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.
@@ -522,7 +522,22 @@ export var BaseTable = /*#__PURE__*/function (_React$Component) {
522
522
  }, {
523
523
  key: "componentDidUpdate",
524
524
  value: function componentDidUpdate(prevProps, prevState) {
525
- // console.log('did update start')
525
+ var _a; // console.log('did update start')
526
+
527
+
528
+ var _this$props8 = this.props,
529
+ cssVariables = _this$props8.cssVariables,
530
+ enableCSSVariables = _this$props8.enableCSSVariables,
531
+ bordered = _this$props8.bordered;
532
+
533
+ if (!shallowEqual(prevProps === null || prevProps === void 0 ? void 0 : prevProps.cssVariables, (_a = this.props) === null || _a === void 0 ? void 0 : _a.cssVariables)) {
534
+ cssPolifill({
535
+ variables: cssVariables || {},
536
+ enableCSSVariables: enableCSSVariables,
537
+ bordered: bordered
538
+ });
539
+ }
540
+
526
541
  this.updateDOMHelper();
527
542
  this.props$.next(this.props);
528
543
  this.didMountOrUpdate(prevProps, prevState); // console.log('did update end')
@@ -569,7 +569,22 @@ var BaseTable = /*#__PURE__*/function (_React$Component) {
569
569
  }, {
570
570
  key: "componentDidUpdate",
571
571
  value: function componentDidUpdate(prevProps, prevState) {
572
- // console.log('did update start')
572
+ var _a; // console.log('did update start')
573
+
574
+
575
+ var _this$props8 = this.props,
576
+ cssVariables = _this$props8.cssVariables,
577
+ enableCSSVariables = _this$props8.enableCSSVariables,
578
+ bordered = _this$props8.bordered;
579
+
580
+ if (!(0, _utils.shallowEqual)(prevProps === null || prevProps === void 0 ? void 0 : prevProps.cssVariables, (_a = this.props) === null || _a === void 0 ? void 0 : _a.cssVariables)) {
581
+ (0, _utils.cssPolifill)({
582
+ variables: cssVariables || {},
583
+ enableCSSVariables: enableCSSVariables,
584
+ bordered: bordered
585
+ });
586
+ }
587
+
573
588
  this.updateDOMHelper();
574
589
  this.props$.next(this.props);
575
590
  this.didMountOrUpdate(prevProps, prevState); // console.log('did update end')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kdcloudjs/table",
3
- "version": "1.2.0-canary.3",
3
+ "version": "1.2.0-canary.4",
4
4
  "description": "金蝶 react table 组件",
5
5
  "title": "table",
6
6
  "keywords": [