@titaui/pc 1.12.91-beta.2 → 1.12.92

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.
@@ -13,7 +13,7 @@
13
13
  color: #141c28;
14
14
  line-height: 24px;
15
15
  display: flex;
16
- justify-content: space-between;
16
+ justify-content: flex-start;
17
17
  align-items: center;
18
18
  }
19
19
 
@@ -68,6 +68,10 @@
68
68
  transition: all 0.3s;
69
69
  }
70
70
 
71
+ .titaui-okr-progress__title-total {
72
+ margin-left: 8px;
73
+ }
74
+
71
75
  .titaui-okr-progress__table {
72
76
  border: 1px solid #dfe3ea;
73
77
  border-radius: 12px;
@@ -55,7 +55,7 @@ var prefix = 'titaui-okr-progress';
55
55
  var isImport = false;
56
56
 
57
57
  var OkrProgress = function OkrProgress(_ref) {
58
- var _rowsData$Rows;
58
+ var _rowsData$Rows, _rowsData$Rows2;
59
59
 
60
60
  var data = _ref.data,
61
61
  reportType = _ref.reportType;
@@ -65,7 +65,7 @@ var OkrProgress = function OkrProgress(_ref) {
65
65
  rowsData = _useState2[0],
66
66
  setRowsData = _useState2[1];
67
67
 
68
- var _useState3 = (0, _react.useState)(true),
68
+ var _useState3 = (0, _react.useState)(false),
69
69
  _useState4 = _slicedToArray(_useState3, 2),
70
70
  tableVisible = _useState4[0],
71
71
  setTableVisible = _useState4[1];
@@ -177,8 +177,10 @@ var OkrProgress = function OkrProgress(_ref) {
177
177
  className: (0, _classnames["default"])("".concat(prefix, "__title-arrow"), _defineProperty({}, "".concat(prefix, "__title-arrow--show"), !tableVisible))
178
178
  }, /*#__PURE__*/_react["default"].createElement("i", {
179
179
  className: (0, _classnames["default"])('tu-icon-caret-down', "".concat(prefix, "__title-arrow-icon"), _defineProperty({}, "".concat(prefix, "__title-arrow-icon--rotate"), !tableVisible))
180
- }))), renderTitle), /*#__PURE__*/_react["default"].createElement("div", {
181
- className: (0, _classnames["default"])("".concat(prefix, "__table"), _defineProperty({}, "".concat(prefix, "__table--hide"), !tableVisible))
180
+ }))), renderTitle, /*#__PURE__*/_react["default"].createElement("div", {
181
+ className: "".concat(prefix, "__title-total")
182
+ }, rowsData === null || rowsData === void 0 ? void 0 : (_rowsData$Rows2 = rowsData.Rows) === null || _rowsData$Rows2 === void 0 ? void 0 : _rowsData$Rows2.length)), tableVisible && /*#__PURE__*/_react["default"].createElement("div", {
183
+ className: "".concat(prefix, "__table")
182
184
  }, renderTable));
183
185
  };
184
186
 
@@ -458,13 +458,13 @@ var ExportMapModal = function ExportMapModal(props) {
458
458
  className: (0, _classnames["default"])("".concat(_precls["default"], "__export"), _defineProperty({}, "".concat(_precls["default"], "__dark"), darkTheme)),
459
459
  elements: dataSource,
460
460
  nodeTypes: _utils.nodeTypes,
461
- minZoom: 0.05,
461
+ minZoom: 0.04,
462
462
  zoomOnScroll: false,
463
463
  zoomOnPinch: false,
464
464
  zoomOnDoubleClick: false,
465
465
  paneMoveable: false,
466
466
  style: {
467
- height: 446,
467
+ height: 500,
468
468
  width: '100%',
469
469
  background: bgColor
470
470
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.12.91-beta.2",
3
+ "version": "1.12.92",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",