ns-base-module 1.0.4 → 1.0.6
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/dist/ChooseModal/index.d.ts +21 -0
- package/dist/ChooseModal/index.d.ts.map +1 -0
- package/dist/ChooseModal/index.js +164 -0
- package/dist/FilterPopover/Filter.d.ts.map +1 -1
- package/dist/FilterPopover/Filter.js +74 -51
- package/dist/FilterPopover/FilterClearIcon.d.ts +4 -4
- package/dist/FilterPopover/FilterClearIcon.d.ts.map +1 -1
- package/dist/FilterPopover/FilterClearIcon.js +1 -1
- package/dist/IconTools/index.d.ts +13 -0
- package/dist/IconTools/index.d.ts.map +1 -0
- package/dist/IconTools/index.js +125 -0
- package/dist/IconTools/utils.d.ts +15 -0
- package/dist/IconTools/utils.d.ts.map +1 -0
- package/dist/IconTools/utils.js +171 -0
- package/dist/SubtotalsModal/Increment.d.ts +18 -0
- package/dist/SubtotalsModal/Increment.d.ts.map +1 -0
- package/dist/SubtotalsModal/Increment.js +144 -0
- package/dist/SubtotalsModal/addSubtotals.d.ts +19 -0
- package/dist/SubtotalsModal/addSubtotals.d.ts.map +1 -0
- package/dist/SubtotalsModal/addSubtotals.js +129 -0
- package/dist/SubtotalsModal/dndQuota.d.ts +20 -0
- package/dist/SubtotalsModal/dndQuota.d.ts.map +1 -0
- package/dist/SubtotalsModal/dndQuota.js +384 -0
- package/dist/SubtotalsModal/index.d.ts +19 -0
- package/dist/SubtotalsModal/index.d.ts.map +1 -0
- package/dist/SubtotalsModal/index.js +192 -0
- package/dist/SubtotalsModal/subtotalTemplate.d.ts +20 -0
- package/dist/SubtotalsModal/subtotalTemplate.d.ts.map +1 -0
- package/dist/SubtotalsModal/subtotalTemplate.js +238 -0
- package/dist/SubtotalsModal/util.d.ts +3 -0
- package/dist/SubtotalsModal/util.d.ts.map +1 -0
- package/dist/SubtotalsModal/util.js +28 -0
- package/dist/SubtotalsModal/viewSubtotals.d.ts +10 -0
- package/dist/SubtotalsModal/viewSubtotals.d.ts.map +1 -0
- package/dist/SubtotalsModal/viewSubtotals.js +243 -0
- package/dist/TableHeaderConfigPopover/Dustbin.d.ts +5 -0
- package/dist/TableHeaderConfigPopover/Dustbin.d.ts.map +1 -0
- package/dist/TableHeaderConfigPopover/Dustbin.js +108 -0
- package/dist/TableHeaderConfigPopover/index.d.ts +19 -0
- package/dist/TableHeaderConfigPopover/index.d.ts.map +1 -0
- package/dist/TableHeaderConfigPopover/index.js +1031 -0
- package/dist/TableHeaderConfigPopover/utils.d.ts +3 -0
- package/dist/TableHeaderConfigPopover/utils.d.ts.map +1 -0
- package/dist/TableHeaderConfigPopover/utils.js +41 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/umd/ns-base-module.min.css +1 -1
- package/dist/umd/ns-base-module.min.js +1 -1
- package/dist/utils/language.d.ts +232 -231
- package/dist/utils/language.d.ts.map +1 -1
- package/dist/utils/language.js +234 -233
- package/dist/utils/request.d.ts +0 -14
- package/dist/utils/request.d.ts.map +1 -1
- package/dist/utils/request.js +181 -173
- package/dist/utils/services/global.d.ts +128 -0
- package/dist/utils/services/global.d.ts.map +1 -0
- package/dist/utils/services/global.js +406 -0
- package/dist/utils/utils.d.ts +1 -0
- package/dist/utils/utils.d.ts.map +1 -1
- package/package.json +3 -1
- package/style/components/SubtotalsModal.scss +293 -0
- package/style/components/TableHeaderConfigPopover.scss +105 -0
- package/style/components/index.scss +2 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { find } from "lodash";
|
|
8
|
+
export var initColumns = function initColumns(arr, parent) {
|
|
9
|
+
return arr.map(function (item, index) {
|
|
10
|
+
var _item$children;
|
|
11
|
+
item._index = index + "";
|
|
12
|
+
item.dataIndex = item.dataIndex || item.code;
|
|
13
|
+
item.fixed = parent ? parent.fixed : item.fixed; // 固定列子需跟父级一样
|
|
14
|
+
var newItem = _objectSpread(_objectSpread({}, item), {}, {
|
|
15
|
+
dataIndex: item.dataIndex || item.code,
|
|
16
|
+
title: item.title || item.label,
|
|
17
|
+
_index: parent ? parent._index + "-" + index : index + "",
|
|
18
|
+
key: item.dataIndex || item.code,
|
|
19
|
+
children: (_item$children = item.children) !== null && _item$children !== void 0 && _item$children.length ? initColumns(item.children, item) : null,
|
|
20
|
+
checked: typeof item.checked === "boolean" ? item.checked : item.defaultDisplay ? true : false,
|
|
21
|
+
return: parent
|
|
22
|
+
});
|
|
23
|
+
return newItem;
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
// 平铺树
|
|
28
|
+
var flatColumns = function flatColumns(_columns) {
|
|
29
|
+
var initArr = [];
|
|
30
|
+
var flatArr = function flatArr(arr) {
|
|
31
|
+
arr.forEach(function (item) {
|
|
32
|
+
initArr.push(item);
|
|
33
|
+
if (Array.isArray(item.children) && item.children.length) {
|
|
34
|
+
// 子级是动态列 父级也必须是
|
|
35
|
+
if (item.children[0].customizable === false) {
|
|
36
|
+
item.customizable = false;
|
|
37
|
+
}
|
|
38
|
+
// 子级是浮动 父级同步 解决首行选择框的浮动
|
|
39
|
+
if (item.children[0].fixed) {
|
|
40
|
+
item.fixed = item.children[0].fixed;
|
|
41
|
+
}
|
|
42
|
+
flatArr(item.children);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
flatArr(_columns);
|
|
47
|
+
return initArr;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* customColumns 模板数据
|
|
52
|
+
* columns 新接口数据
|
|
53
|
+
*
|
|
54
|
+
* 匹配旧数据 是否有字段增删,返回新表头
|
|
55
|
+
* */
|
|
56
|
+
export function adapterColumns(customColumns, columns) {
|
|
57
|
+
if (customColumns && customColumns.length && columns && columns.length) {
|
|
58
|
+
// 展平 columns, 1,子是动态列 父级必须是,父级的表头宽度取决于子级设置.2,子级是浮动 父级同步 解决首行选择框的浮动
|
|
59
|
+
var _columns = flatColumns(columns);
|
|
60
|
+
var itemLoop = function itemLoop(arr, commad) {
|
|
61
|
+
var _loop = function _loop(_k, j) {
|
|
62
|
+
var _code = arr[j].code ? "code" : "dataIndex";
|
|
63
|
+
if (commad === "del") {
|
|
64
|
+
if (!find(_columns, function (o) {
|
|
65
|
+
return (o["code"] || o["dataIndex"]) === arr[j][_code];
|
|
66
|
+
})) {
|
|
67
|
+
arr.splice(j, 1);
|
|
68
|
+
_k -= 1;
|
|
69
|
+
} else if (arr[j].children && arr[j].children.length) {
|
|
70
|
+
itemLoop(arr[j].children, commad);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
k = _k;
|
|
74
|
+
};
|
|
75
|
+
for (var j = 0, k = arr.length; j < k; j++) {
|
|
76
|
+
_loop(k, j);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
for (var n = 0, leng = customColumns.length; n < leng; n++) {
|
|
80
|
+
var item = customColumns[n];
|
|
81
|
+
if (item.is_default == "Y") {
|
|
82
|
+
var JsonPares = JSON.parse(item.define);
|
|
83
|
+
|
|
84
|
+
// 删 旧模板多出的字段
|
|
85
|
+
itemLoop(JsonPares, "del");
|
|
86
|
+
|
|
87
|
+
// 展平 columns
|
|
88
|
+
var flaJsonPares = flatColumns(JsonPares);
|
|
89
|
+
// 增 新字段加最后
|
|
90
|
+
var _loop2 = function _loop2(j) {
|
|
91
|
+
var _code = _columns[j].code ? "code" : "dataIndex";
|
|
92
|
+
if (!find(flaJsonPares, function (o) {
|
|
93
|
+
return o[_code] === _columns[j][_code];
|
|
94
|
+
})) {
|
|
95
|
+
var _item = initColumns([_columns[j]], null)[0];
|
|
96
|
+
if (_item.customizable !== false) {
|
|
97
|
+
// 不是动态列
|
|
98
|
+
if (_item.fixed === "left") {
|
|
99
|
+
JsonPares.unshift(_item);
|
|
100
|
+
} else {
|
|
101
|
+
JsonPares.push(_item);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// 动态列 columns[j].customizable === false 不能用模板,用列表数据
|
|
107
|
+
if (_columns[j].customizable === false && _code) {
|
|
108
|
+
var loopSetChildren = function loopSetChildren(arr1, arr2) {
|
|
109
|
+
arr1.forEach(function (d) {
|
|
110
|
+
var h = find(arr2, function (o) {
|
|
111
|
+
return o[_code] === d[_code];
|
|
112
|
+
});
|
|
113
|
+
if (h) {
|
|
114
|
+
d.width = h.width;
|
|
115
|
+
d.fixed = h.fixed;
|
|
116
|
+
d.checked = h.checked;
|
|
117
|
+
}
|
|
118
|
+
if (d.children && d.children.length && h !== null && h !== void 0 && h.children && h !== null && h !== void 0 && h.children.length) {
|
|
119
|
+
loopSetChildren(d.children, h.children);
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
var loopSetZable = function loopSetZable(_JsonPares) {
|
|
124
|
+
for (var i = 0, l = _JsonPares.length; i < l; i++) {
|
|
125
|
+
if (_columns[j][_code] === _JsonPares[i][_code]) {
|
|
126
|
+
var obj = {
|
|
127
|
+
width: _JsonPares[i].width,
|
|
128
|
+
fixed: _JsonPares[i].fixed,
|
|
129
|
+
checked: _JsonPares[i].checked
|
|
130
|
+
};
|
|
131
|
+
_columns[j] = _objectSpread(_objectSpread({}, _columns[j]), obj);
|
|
132
|
+
if (_columns[j].children && _columns[j].children.length && _JsonPares[i].children && _JsonPares[i].children.length) {
|
|
133
|
+
loopSetChildren(_columns[j].children, _JsonPares[i].children);
|
|
134
|
+
}
|
|
135
|
+
var d = initColumns([_columns[j]], null)[0];
|
|
136
|
+
_JsonPares[i] = _objectSpread({}, d);
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
loopSetZable(JsonPares);
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
for (var j = 0, k = _columns.length; j < k; j++) {
|
|
145
|
+
_loop2(j);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// 子级是否全部 浮动
|
|
149
|
+
JsonPares.forEach(function (dd) {
|
|
150
|
+
if (dd.fixed && dd.children && dd.children.length) {
|
|
151
|
+
var isAllChildrenFixed = true;
|
|
152
|
+
dd.children.forEach(function (hh) {
|
|
153
|
+
if (hh.checked && hh.fixed !== dd.fixed) {
|
|
154
|
+
isAllChildrenFixed = false;
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
dd.isAllChildrenFixed = isAllChildrenFixed;
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
return {
|
|
161
|
+
JsonPares: JsonPares,
|
|
162
|
+
item: item
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return {
|
|
168
|
+
JsonPares: null,
|
|
169
|
+
item: null
|
|
170
|
+
};
|
|
171
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface IDataSource {
|
|
3
|
+
code: string;
|
|
4
|
+
sumType: string;
|
|
5
|
+
expression: string;
|
|
6
|
+
key: string;
|
|
7
|
+
}
|
|
8
|
+
interface IIncrement {
|
|
9
|
+
options: {
|
|
10
|
+
label: string;
|
|
11
|
+
value: string;
|
|
12
|
+
}[];
|
|
13
|
+
value: IDataSource[];
|
|
14
|
+
onChange: (e: IDataSource[]) => void;
|
|
15
|
+
}
|
|
16
|
+
declare const Increment: React.FC<IIncrement>;
|
|
17
|
+
export default Increment;
|
|
18
|
+
//# sourceMappingURL=Increment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Increment.d.ts","sourceRoot":"","sources":["Increment.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,UAAU,UAAU;IAClB,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAE5C,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,QAAQ,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;CACtC;AAGD,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAoInC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
4
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
5
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
6
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
8
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
9
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
10
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
|
+
import Button from "../components/Button";
|
|
12
|
+
import Input from "../components/v2/Entry/components/Input";
|
|
13
|
+
import Select from "../components/v2/Entry/components/Select";
|
|
14
|
+
import { queryDictEnum } from "../services/global";
|
|
15
|
+
import { initLang } from "../utils/language";
|
|
16
|
+
import { DeleteOutlined, PlusOutlined } from "@ant-design/icons";
|
|
17
|
+
import { Popconfirm, Table } from "antd";
|
|
18
|
+
import React, { useEffect, useState } from "react";
|
|
19
|
+
// 指标自增
|
|
20
|
+
var Increment = function Increment(props) {
|
|
21
|
+
var options = props.options,
|
|
22
|
+
_props$value = props.value,
|
|
23
|
+
value = _props$value === void 0 ? [] : _props$value,
|
|
24
|
+
onChange = props.onChange;
|
|
25
|
+
var _useState = useState([]),
|
|
26
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
27
|
+
summaryType = _useState2[0],
|
|
28
|
+
setSummaryType = _useState2[1];
|
|
29
|
+
|
|
30
|
+
// 汇总方式枚举
|
|
31
|
+
var getSummaryType = function getSummaryType() {
|
|
32
|
+
queryDictEnum("summaryType").then(function (res) {
|
|
33
|
+
if ((res === null || res === void 0 ? void 0 : res.code) == 200) {
|
|
34
|
+
setSummaryType((res === null || res === void 0 ? void 0 : res.data) || []);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
useEffect(function () {
|
|
39
|
+
getSummaryType();
|
|
40
|
+
}, []);
|
|
41
|
+
|
|
42
|
+
// 新增一行指标
|
|
43
|
+
var handleAddQuota = function handleAddQuota() {
|
|
44
|
+
var initObj = {
|
|
45
|
+
code: "",
|
|
46
|
+
sumType: "",
|
|
47
|
+
expression: "",
|
|
48
|
+
key: "".concat(new Date().getTime(), "_").concat(Math.random())
|
|
49
|
+
};
|
|
50
|
+
var _dataSource = _toConsumableArray(value);
|
|
51
|
+
_dataSource.push(initObj);
|
|
52
|
+
onChange(_dataSource);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
// 删除一行指标
|
|
56
|
+
var handledelQuota = function handledelQuota(index) {
|
|
57
|
+
var _dataSource = _toConsumableArray(value);
|
|
58
|
+
_dataSource.splice(index, 1);
|
|
59
|
+
onChange(_dataSource);
|
|
60
|
+
};
|
|
61
|
+
var changeValue = function changeValue(val, index, code) {
|
|
62
|
+
var _dataSource = _toConsumableArray(value);
|
|
63
|
+
_dataSource[index][code] = val;
|
|
64
|
+
onChange(_dataSource);
|
|
65
|
+
};
|
|
66
|
+
var columns = [{
|
|
67
|
+
title: "指标",
|
|
68
|
+
dataIndex: "code",
|
|
69
|
+
key: "code",
|
|
70
|
+
width: 100,
|
|
71
|
+
render: function render(text, record, index) {
|
|
72
|
+
return /*#__PURE__*/React.createElement(Select, {
|
|
73
|
+
options: options,
|
|
74
|
+
value: text,
|
|
75
|
+
onChange: function onChange(e) {
|
|
76
|
+
changeValue(e, index, "code");
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}, {
|
|
81
|
+
title: "汇总方式",
|
|
82
|
+
dataIndex: "sumType",
|
|
83
|
+
key: "sumType",
|
|
84
|
+
width: 100,
|
|
85
|
+
render: function render(text, record, index) {
|
|
86
|
+
return /*#__PURE__*/React.createElement(Select, {
|
|
87
|
+
options: summaryType,
|
|
88
|
+
value: text,
|
|
89
|
+
onChange: function onChange(e) {
|
|
90
|
+
changeValue(e, index, "sumType");
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}, {
|
|
95
|
+
title: "汇总方式表达式",
|
|
96
|
+
dataIndex: "expression",
|
|
97
|
+
key: "expression",
|
|
98
|
+
width: 120,
|
|
99
|
+
render: function render(text, record, index) {
|
|
100
|
+
return /*#__PURE__*/React.createElement(Input.TextArea, {
|
|
101
|
+
value: text,
|
|
102
|
+
onChange: function onChange(e) {
|
|
103
|
+
changeValue(e.target.value, index, "expression");
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}, {
|
|
108
|
+
title: "操作",
|
|
109
|
+
dataIndex: "action",
|
|
110
|
+
key: "action",
|
|
111
|
+
width: 60,
|
|
112
|
+
render: function render(text, record, index) {
|
|
113
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Popconfirm, {
|
|
114
|
+
style: {
|
|
115
|
+
cursor: "pointer"
|
|
116
|
+
},
|
|
117
|
+
title: "\u786E\u8BA4\u5220\u9664",
|
|
118
|
+
onConfirm: function onConfirm() {
|
|
119
|
+
return handledelQuota(index);
|
|
120
|
+
}
|
|
121
|
+
// onCancel={cancel}
|
|
122
|
+
,
|
|
123
|
+
okText: "\u662F",
|
|
124
|
+
cancelText: "\u5426"
|
|
125
|
+
}, /*#__PURE__*/React.createElement(DeleteOutlined, null)));
|
|
126
|
+
}
|
|
127
|
+
}];
|
|
128
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
129
|
+
className: "c-increment-content"
|
|
130
|
+
}, /*#__PURE__*/React.createElement(Table, {
|
|
131
|
+
dataSource: value || [],
|
|
132
|
+
columns: columns,
|
|
133
|
+
pagination: false
|
|
134
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
135
|
+
icon: /*#__PURE__*/React.createElement(PlusOutlined, null),
|
|
136
|
+
style: {
|
|
137
|
+
marginTop: 8
|
|
138
|
+
},
|
|
139
|
+
onClick: handleAddQuota
|
|
140
|
+
}, initLang({
|
|
141
|
+
id: "page.quota.add"
|
|
142
|
+
})));
|
|
143
|
+
};
|
|
144
|
+
export default Increment;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "../../style/components/SubtotalsModal.scss";
|
|
3
|
+
interface Iprops {
|
|
4
|
+
columns: {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
}[];
|
|
8
|
+
onCancel?: () => void;
|
|
9
|
+
menuCode: string;
|
|
10
|
+
formTemplateCode: string | undefined;
|
|
11
|
+
initConfig?: Record<string, any>;
|
|
12
|
+
editItem?: Record<string, any> | null;
|
|
13
|
+
handleView?: (str: string) => void;
|
|
14
|
+
onReset?: () => void;
|
|
15
|
+
commonRequest?: any;
|
|
16
|
+
}
|
|
17
|
+
declare const _default: React.ForwardRefExoticComponent<Iprops & React.RefAttributes<unknown>>;
|
|
18
|
+
export default _default;
|
|
19
|
+
//# sourceMappingURL=addSubtotals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addSubtotals.d.ts","sourceRoot":"","sources":["addSubtotals.tsx"],"names":[],"mappings":"AACA,OAAO,KAMN,MAAM,OAAO,CAAC;AAIf,OAAO,4CAA4C,CAAC;AAIpD,UAAU,MAAM;IACd,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IAEtC,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB,aAAa,CAAC,EAAE,GAAG,CAAC;CACrB;;AAsFD,wBAAiC"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
3
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
4
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
5
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
6
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
8
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
9
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
10
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
|
+
import { Button, Col, Input, Row, message } from "antd";
|
|
12
|
+
import React, { forwardRef, useEffect, useImperativeHandle, useRef, useState } from "react";
|
|
13
|
+
|
|
14
|
+
// import { commonRequest } from '../../../../services/global';
|
|
15
|
+
import { initLang } from "../utils/language";
|
|
16
|
+
import "../../style/components/SubtotalsModal.scss";
|
|
17
|
+
import { setFormTemplates } from "../utils/services/global";
|
|
18
|
+
import DndQuota from "./dndQuota";
|
|
19
|
+
var Index = function Index(props, ref) {
|
|
20
|
+
var _props$editItem2;
|
|
21
|
+
var columns = props.columns,
|
|
22
|
+
menuCode = props.menuCode,
|
|
23
|
+
formTemplateCode = props.formTemplateCode,
|
|
24
|
+
commonRequest = props.commonRequest;
|
|
25
|
+
var _useState = useState(),
|
|
26
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
27
|
+
name = _useState2[0],
|
|
28
|
+
setName = _useState2[1];
|
|
29
|
+
var quotaRef = useRef(null);
|
|
30
|
+
useEffect(function () {
|
|
31
|
+
var _props$editItem;
|
|
32
|
+
setName((_props$editItem = props.editItem) === null || _props$editItem === void 0 ? void 0 : _props$editItem.label);
|
|
33
|
+
}, [(_props$editItem2 = props.editItem) === null || _props$editItem2 === void 0 ? void 0 : _props$editItem2.label]);
|
|
34
|
+
|
|
35
|
+
// 保存
|
|
36
|
+
var handleOk = /*#__PURE__*/function () {
|
|
37
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
38
|
+
var _quotaRef$current, _props$editItem3, _res$data;
|
|
39
|
+
var configsStr, res, _props$onCancel;
|
|
40
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
41
|
+
while (1) switch (_context.prev = _context.next) {
|
|
42
|
+
case 0:
|
|
43
|
+
if (name) {
|
|
44
|
+
_context.next = 3;
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
message.warning(initLang({
|
|
48
|
+
id: "prompt.placeholderTemplate"
|
|
49
|
+
}));
|
|
50
|
+
return _context.abrupt("return");
|
|
51
|
+
case 3:
|
|
52
|
+
configsStr = (_quotaRef$current = quotaRef.current) === null || _quotaRef$current === void 0 ? void 0 : _quotaRef$current.getQuotaDataStr();
|
|
53
|
+
_context.next = 6;
|
|
54
|
+
return setFormTemplates({
|
|
55
|
+
form_template_code: formTemplateCode,
|
|
56
|
+
menu_code: menuCode,
|
|
57
|
+
code: ((_props$editItem3 = props.editItem) === null || _props$editItem3 === void 0 ? void 0 : _props$editItem3.value) || null,
|
|
58
|
+
configs: configsStr,
|
|
59
|
+
name: name,
|
|
60
|
+
perms_type: "private",
|
|
61
|
+
query_type: "list",
|
|
62
|
+
type: "QUOTA_TMP" //'FORM_TMP' 列表模板,'QUOTA_TMP' 分类汇总模板
|
|
63
|
+
});
|
|
64
|
+
case 6:
|
|
65
|
+
res = _context.sent;
|
|
66
|
+
if (((_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.code) === 200) {
|
|
67
|
+
(_props$onCancel = props.onCancel) === null || _props$onCancel === void 0 || _props$onCancel.call(props);
|
|
68
|
+
}
|
|
69
|
+
case 8:
|
|
70
|
+
case "end":
|
|
71
|
+
return _context.stop();
|
|
72
|
+
}
|
|
73
|
+
}, _callee);
|
|
74
|
+
}));
|
|
75
|
+
return function handleOk() {
|
|
76
|
+
return _ref.apply(this, arguments);
|
|
77
|
+
};
|
|
78
|
+
}();
|
|
79
|
+
useImperativeHandle(ref, function () {
|
|
80
|
+
return {
|
|
81
|
+
handleOk: handleOk
|
|
82
|
+
};
|
|
83
|
+
});
|
|
84
|
+
var handleView = function handleView() {
|
|
85
|
+
var _quotaRef$current2, _props$handleView;
|
|
86
|
+
var configsStr = (_quotaRef$current2 = quotaRef.current) === null || _quotaRef$current2 === void 0 ? void 0 : _quotaRef$current2.getQuotaDataStr();
|
|
87
|
+
if (!configsStr) return;
|
|
88
|
+
(_props$handleView = props.handleView) === null || _props$handleView === void 0 || _props$handleView.call(props, configsStr);
|
|
89
|
+
};
|
|
90
|
+
var changeValue = function changeValue(e) {
|
|
91
|
+
setName(e.target.value);
|
|
92
|
+
};
|
|
93
|
+
return /*#__PURE__*/React.createElement(Row, {
|
|
94
|
+
className: "add-subtotals-wrap"
|
|
95
|
+
}, /*#__PURE__*/React.createElement(Col, {
|
|
96
|
+
span: 4,
|
|
97
|
+
style: {
|
|
98
|
+
lineHeight: "30px"
|
|
99
|
+
}
|
|
100
|
+
}, "\u6A21\u677F\u540D\u79F0\uFF1A"), /*#__PURE__*/React.createElement(Col, {
|
|
101
|
+
span: 16
|
|
102
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
103
|
+
onChange: changeValue,
|
|
104
|
+
value: name
|
|
105
|
+
})), /*#__PURE__*/React.createElement(Col, {
|
|
106
|
+
span: 4,
|
|
107
|
+
style: {
|
|
108
|
+
display: "flex",
|
|
109
|
+
justifyContent: "flex-end"
|
|
110
|
+
}
|
|
111
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
112
|
+
type: "primary",
|
|
113
|
+
onClick: handleView,
|
|
114
|
+
style: {
|
|
115
|
+
marginTop: 4
|
|
116
|
+
},
|
|
117
|
+
size: "small"
|
|
118
|
+
}, initLang({
|
|
119
|
+
id: "button.view"
|
|
120
|
+
}))), /*#__PURE__*/React.createElement(Col, {
|
|
121
|
+
span: 24,
|
|
122
|
+
className: "add-subtotals-bot"
|
|
123
|
+
}, /*#__PURE__*/React.createElement(DndQuota, {
|
|
124
|
+
columns: columns,
|
|
125
|
+
initConfig: props.initConfig,
|
|
126
|
+
ref: quotaRef
|
|
127
|
+
})));
|
|
128
|
+
};
|
|
129
|
+
export default /*#__PURE__*/forwardRef(Index);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface IColumns {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
entryType: string;
|
|
6
|
+
dataType: string;
|
|
7
|
+
sumType?: string;
|
|
8
|
+
}
|
|
9
|
+
interface Iprops {
|
|
10
|
+
columns: IColumns[];
|
|
11
|
+
initConfig: {
|
|
12
|
+
list: IColumns[];
|
|
13
|
+
numberList: IColumns[];
|
|
14
|
+
dimensionList: IColumns[];
|
|
15
|
+
quotaList: IColumns[];
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
declare const _default: React.ForwardRefExoticComponent<Iprops & React.RefAttributes<{}>>;
|
|
19
|
+
export default _default;
|
|
20
|
+
//# sourceMappingURL=dndQuota.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dndQuota.d.ts","sourceRoot":"","sources":["dndQuota.tsx"],"names":[],"mappings":"AAWA,OAAO,KAKN,MAAM,OAAO,CAAC;AAWf,UAAU,QAAQ;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AACD,UAAU,MAAM;IACd,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB,UAAU,EAAE;QACV,IAAI,EAAE,QAAQ,EAAE,CAAC;QACjB,UAAU,EAAE,QAAQ,EAAE,CAAC;QACvB,aAAa,EAAE,QAAQ,EAAE,CAAC;QAC1B,SAAS,EAAE,QAAQ,EAAE,CAAC;KACvB,CAAC;CACH;;AAiWD,wBAAiC"}
|