ns-base-module 2.0.15 → 2.0.16

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.
@@ -122,7 +122,8 @@ var Index = function Index(props, ref) {
122
122
  type: "primary",
123
123
  onClick: handleView,
124
124
  style: {
125
- marginTop: 4
125
+ marginTop: 4,
126
+ height: "fit-content"
126
127
  },
127
128
  size: "small"
128
129
  }, initLang({
@@ -17,7 +17,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
17
17
  /* eslint-disable no-case-declarations */
18
18
  /* eslint-disable react/no-unknown-property */
19
19
  import { ArrowDownOutlined, ArrowUpOutlined, BarChartOutlined, CalculatorOutlined, CalendarOutlined, ClearOutlined, DeleteOutlined, DotChartOutlined, DownOutlined, FieldNumberOutlined, FieldStringOutlined, LineChartOutlined, SortAscendingOutlined, SortDescendingOutlined, SwapOutlined, SwapRightOutlined } from "@ant-design/icons";
20
- import { Dropdown, Input, message, Popover, Space, Switch, Tooltip } from "antd";
20
+ import { Dropdown, Input, Popover, Space, Switch, Tooltip } from "antd";
21
21
  import { cloneDeep, find, get, isEmpty } from "lodash";
22
22
  import React, { forwardRef, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
23
23
  import { ReactSortable } from "react-sortablejs";
@@ -106,18 +106,19 @@ var Index = function Index(props, ref) {
106
106
  useImperativeHandle(ref, function () {
107
107
  return {
108
108
  getQuotaDataStr: function getQuotaDataStr() {
109
- if (isEmpty(dimensionList)) {
110
- message.warning("维度不能为空");
111
- return "";
112
- } else if (isEmpty(quotaList)) {
113
- message.warning("指标不能为空");
114
- return "";
115
- } else if (valueRadio === "cross" || valueRadio === "trans") {
116
- if ((chartColumns === null || chartColumns === void 0 ? void 0 : chartColumns.length) === 1) {
117
- message.warning("列不能为空");
118
- return "";
119
- }
120
- }
109
+ // if (isEmpty(dimensionList)) {
110
+ // message.warning("维度不能为空");
111
+ // return "";
112
+ // } else if (isEmpty(quotaList)) {
113
+ // message.warning("指标不能为空");
114
+ // return "";
115
+ // } else if (valueRadio === "cross" || valueRadio === "trans") {
116
+ // if (chartColumns?.length === 1) {
117
+ // message.warning("列不能为空");
118
+ // return "";
119
+ // }
120
+ // }
121
+
121
122
  return JSON.stringify({
122
123
  list: list,
123
124
  numberList: numberList,