dtable-statistic 4.4.24-alpha.2 → 4.4.24-alpha.3

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.
@@ -188,6 +188,7 @@ class DesktopDashboard extends _react.Component {
188
188
  stat_items: statItems
189
189
  } = statistic || {};
190
190
  return /*#__PURE__*/_react.default.createElement("div", {
191
+ ref: ref => this.desktopDashboardRef = ref,
191
192
  className: (0, _classnames.default)('statistic-them statistic-panel', {
192
193
  'statistic-dark': darkMode,
193
194
  'statistic-light': !darkMode,
@@ -291,6 +292,7 @@ class DesktopDashboard extends _react.Component {
291
292
  onToggleEditChart: this.onToggleEditChart,
292
293
  toggleStatisticRecordsDialog: this.toggleStatisticRecordsDialog
293
294
  }), isShowChartAddDialog && /*#__PURE__*/_react.default.createElement(_seaChart.TypesDialog, {
295
+ container: this.desktopDashboardRef,
294
296
  type: "",
295
297
  onToggle: this.onToggleAddChart,
296
298
  onChange: this.onTypeChange
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-statistic",
3
- "version": "4.4.24-alpha.2",
3
+ "version": "4.4.24-alpha.3",
4
4
  "description": "statistics",
5
5
  "main": "dist/dtable-statistic.js",
6
6
  "author": "seafile",
@@ -18,7 +18,7 @@
18
18
  "react-grid-layout": "^1.2.5",
19
19
  "react-intl-universal": "^2.4.8",
20
20
  "reactstrap": "8.9.0",
21
- "sea-chart": "^0.0.42-beta.41"
21
+ "sea-chart": "^0.0.42-alpha.0"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "dtable-ui-component": "~4.4.*",