ns-base-module 1.0.0 → 1.0.2
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/Button/AntdIconButton.js +1 -1
- package/dist/Button/ConfigButton.js +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/ClassFilter/index.d.ts.map +1 -1
- package/dist/ClassFilter/index.js +8 -6
- package/dist/ClassFilter/indexVertical.d.ts +2 -1
- package/dist/ClassFilter/indexVertical.d.ts.map +1 -1
- package/dist/ClassFilter/indexVertical.js +3 -1
- package/dist/Entry/EntryCriteria.d.ts +1 -1
- package/dist/Entry/EntryCriteria.js +1 -1
- package/dist/Entry/EntryItem.js +18 -18
- package/dist/Entry/components/ChooseModalTable.js +1 -1
- package/dist/Entry/components/Condition.js +1 -1
- package/dist/Entry/components/Etable2Modal.js +3 -3
- package/dist/Entry/components/Express.js +1 -1
- package/dist/Entry/components/ListSelect.js +1 -1
- package/dist/Entry/components/Select.js +1 -1
- package/dist/FilterPopover/Filter.d.ts +3 -0
- package/dist/FilterPopover/Filter.d.ts.map +1 -1
- package/dist/FilterPopover/Filter.js +25 -14
- package/dist/FilterPopover/index.d.ts.map +1 -1
- package/dist/FilterPopover/index.js +2 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/umd/ns-base-module.min.css +1 -0
- package/dist/umd/ns-base-module.min.js +1 -1
- package/dist/utils/utils.d.ts +0 -1
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +2 -2
- package/package.json +8 -7
- package/style/components/ClassFilter.scss +5 -0
|
@@ -7,7 +7,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
7
7
|
*/
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { Button } from 'antd';
|
|
10
|
-
import { IconCreate } from
|
|
10
|
+
import { IconCreate } from "../components/Icon";
|
|
11
11
|
var IconButton = function IconButton(_ref) {
|
|
12
12
|
var icon = _ref.icon,
|
|
13
13
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -22,7 +22,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
22
22
|
import React from 'react';
|
|
23
23
|
import Button from "./AntdIconButton";
|
|
24
24
|
import { Tooltip } from 'antd';
|
|
25
|
-
import { initLang } from
|
|
25
|
+
import { initLang } from "../utils/language";
|
|
26
26
|
var ConfigButton = function ConfigButton(_ref) {
|
|
27
27
|
var _button$config, _button$config$style, _button$config2, _button$config3, _button$config4, _button$config5, _button$config6, _button$config7, _button$config8, _button$config9;
|
|
28
28
|
var button = _ref.button,
|
package/dist/Button/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Button } from 'antd';
|
|
4
|
-
import Icon from
|
|
4
|
+
import Icon from "../components/Icon";
|
|
5
5
|
import AntdIconButton from "./AntdIconButton";
|
|
6
6
|
import ConfigButton from "./ConfigButton";
|
|
7
7
|
var index = function index(props) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,yCAAyC,CAAC;AAKjD,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,GAAG,EAAE,CAAC;IACnB,WAAW,CAAC,EAAE,CACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACzB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,KAChC,IAAI,CAAC;IACV,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC1C;AAED,QAAA,MAAM,KAAK,8BAA+B,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,yCAAyC,CAAC;AAKjD,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,GAAG,EAAE,CAAC;IACnB,WAAW,CAAC,EAAE,CACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACzB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,KAChC,IAAI,CAAC;IACV,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC1C;AAED,QAAA,MAAM,KAAK,8BAA+B,YAAY,6BAuHrD,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -11,7 +11,7 @@ import { adapterFilter } from "./util";
|
|
|
11
11
|
// 分类过滤
|
|
12
12
|
|
|
13
13
|
var Index = function Index(_ref) {
|
|
14
|
-
var _props$
|
|
14
|
+
var _props$statusTagItem4;
|
|
15
15
|
var classFilter = _ref.classFilter,
|
|
16
16
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
17
17
|
var handleStatus = function handleStatus(item) {
|
|
@@ -34,8 +34,10 @@ var Index = function Index(_ref) {
|
|
|
34
34
|
return _style;
|
|
35
35
|
};
|
|
36
36
|
var loopSetLabel = function loopSetLabel(tree) {
|
|
37
|
+
var _props$statusTagItem2;
|
|
38
|
+
console.log("props?.statusTagItem?.key", props === null || props === void 0 || (_props$statusTagItem2 = props.statusTagItem) === null || _props$statusTagItem2 === void 0 ? void 0 : _props$statusTagItem2.key);
|
|
37
39
|
var _loop = function _loop() {
|
|
38
|
-
var _props$
|
|
40
|
+
var _props$statusTagItem3, _props$statusTagCount, _props$statusTagCount2;
|
|
39
41
|
var d = tree[i];
|
|
40
42
|
tree[i].label = /*#__PURE__*/React.createElement("div", {
|
|
41
43
|
style: {
|
|
@@ -45,7 +47,7 @@ var Index = function Index(_ref) {
|
|
|
45
47
|
onClick: function onClick() {
|
|
46
48
|
return handleStatus(d);
|
|
47
49
|
},
|
|
48
|
-
className: "".concat(d.key === (props === null || props === void 0 || (_props$
|
|
50
|
+
className: "".concat(d.key === (props === null || props === void 0 || (_props$statusTagItem3 = props.statusTagItem) === null || _props$statusTagItem3 === void 0 ? void 0 : _props$statusTagItem3.key) ? "actionMenu" : "")
|
|
49
51
|
}, d.remark && /*#__PURE__*/React.createElement(Tooltip, {
|
|
50
52
|
title: d.remark
|
|
51
53
|
}, /*#__PURE__*/React.createElement(QuestionCircleOutlined, {
|
|
@@ -78,14 +80,14 @@ var Index = function Index(_ref) {
|
|
|
78
80
|
}
|
|
79
81
|
}
|
|
80
82
|
return _classFilter;
|
|
81
|
-
}, [classFilter, props.statusTagCounts, props === null || props === void 0 || (_props$
|
|
83
|
+
}, [classFilter, props.statusTagCounts, props === null || props === void 0 || (_props$statusTagItem4 = props.statusTagItem) === null || _props$statusTagItem4 === void 0 ? void 0 : _props$statusTagItem4.key]);
|
|
82
84
|
if (!classFilter) return null;
|
|
83
85
|
return /*#__PURE__*/React.createElement("span", {
|
|
84
86
|
className: "tags-wrap class-filter-component"
|
|
85
87
|
}, datas === null || datas === void 0 ? void 0 : datas.map(function (item) {
|
|
86
|
-
var _props$
|
|
88
|
+
var _props$statusTagItem5, _props$statusTagCount3, _props$statusTagCount4;
|
|
87
89
|
var baseDom = /*#__PURE__*/React.createElement("span", {
|
|
88
|
-
className: "tags-list".concat(" ", item.key === (props === null || props === void 0 || (_props$
|
|
90
|
+
className: "tags-list".concat(" ", item.key === (props === null || props === void 0 || (_props$statusTagItem5 = props.statusTagItem) === null || _props$statusTagItem5 === void 0 ? void 0 : _props$statusTagItem5.key) ? "action" : ""),
|
|
89
91
|
key: item.key,
|
|
90
92
|
onClick: function onClick() {
|
|
91
93
|
return handleStatus(item);
|
|
@@ -4,7 +4,8 @@ export interface IclassFilter {
|
|
|
4
4
|
classFilter: any[];
|
|
5
5
|
onStatusTag?: (item: Record<string, any> | null, checkedItems: Record<string, any>[]) => void;
|
|
6
6
|
statusTagCounts?: Record<string, number>;
|
|
7
|
+
fieldFilterStatus?: Record<string, any>[];
|
|
7
8
|
}
|
|
8
|
-
declare const Index: ({ classFilter, ...props }: IclassFilter) => React.JSX.Element | null;
|
|
9
|
+
declare const Index: ({ classFilter, fieldFilterStatus, ...props }: IclassFilter) => React.JSX.Element | null;
|
|
9
10
|
export default Index;
|
|
10
11
|
//# sourceMappingURL=indexVertical.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexVertical.d.ts","sourceRoot":"","sources":["indexVertical.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,yCAAyC,CAAC;AAKjD,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,GAAG,EAAE,CAAC;IACnB,WAAW,CAAC,EAAE,CACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,EAChC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,KAChC,IAAI,CAAC;IACV,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"indexVertical.d.ts","sourceRoot":"","sources":["indexVertical.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,yCAAyC,CAAC;AAKjD,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,GAAG,EAAE,CAAC;IACnB,WAAW,CAAC,EAAE,CACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,EAChC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,KAChC,IAAI,CAAC;IACV,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;CAC3C;AAED,QAAA,MAAM,KAAK,iDAAkD,YAAY,6BAwDxE,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["classFilter"];
|
|
1
|
+
var _excluded = ["classFilter", "fieldFilterStatus"];
|
|
2
2
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
3
3
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
4
4
|
import { QuestionCircleOutlined } from "@ant-design/icons";
|
|
@@ -11,12 +11,14 @@ import { checkFilter } from "./util";
|
|
|
11
11
|
|
|
12
12
|
var Index = function Index(_ref) {
|
|
13
13
|
var classFilter = _ref.classFilter,
|
|
14
|
+
fieldFilterStatus = _ref.fieldFilterStatus,
|
|
14
15
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
15
16
|
var onCheck = function onCheck(checkedKeys, e) {
|
|
16
17
|
var _props$onStatusTag;
|
|
17
18
|
var arr = checkFilter(e);
|
|
18
19
|
(_props$onStatusTag = props.onStatusTag) === null || _props$onStatusTag === void 0 || _props$onStatusTag.call(props, null, arr);
|
|
19
20
|
};
|
|
21
|
+
console.log("fieldFilterStatus", fieldFilterStatus);
|
|
20
22
|
var titleRender = function titleRender(item) {
|
|
21
23
|
var _props$statusTagCount, _props$statusTagCount2;
|
|
22
24
|
return /*#__PURE__*/React.createElement("span", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EntryType } from './data.d';
|
|
3
|
-
export declare const initialValueEunm: (type: EntryType) => "
|
|
3
|
+
export declare const initialValueEunm: (type: EntryType) => "In" | "Equals" | "Contains" | "BeforeThan" | "Between";
|
|
4
4
|
export declare const entryCriteriaHidden: (type: EntryType, criteriaTypeItems?: {
|
|
5
5
|
label: string;
|
|
6
6
|
value: string;
|
|
@@ -4,7 +4,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
4
4
|
import React, { useMemo } from 'react';
|
|
5
5
|
import Select from "./components/Select";
|
|
6
6
|
import { EntryType } from "./data.d";
|
|
7
|
-
import { initLang } from
|
|
7
|
+
import { initLang } from "../utils/language";
|
|
8
8
|
var Option = Select.Option;
|
|
9
9
|
export var initialValueEunm = function initialValueEunm(type) {
|
|
10
10
|
switch (type) {
|
package/dist/Entry/EntryItem.js
CHANGED
|
@@ -28,35 +28,35 @@ import Checkbox from "./components/Checkbox";
|
|
|
28
28
|
import Radio from "./components/Radio";
|
|
29
29
|
import TreeSelect from "./components/TreeSelect";
|
|
30
30
|
import Condition from "./components/Condition";
|
|
31
|
-
import { UploadImage, UploadFile } from
|
|
32
|
-
import { ImageGroup } from
|
|
33
|
-
import Cron from
|
|
34
|
-
import Editor, { EditorPreview, EditorModal } from
|
|
35
|
-
import Link from
|
|
36
|
-
import FormTable from
|
|
37
|
-
import ColorPicker from
|
|
38
|
-
import Tag from
|
|
39
|
-
import Tags from
|
|
31
|
+
import { UploadImage, UploadFile } from "../components/Upload";
|
|
32
|
+
import { ImageGroup } from "../components/Image";
|
|
33
|
+
import Cron from "../components/Cron";
|
|
34
|
+
import Editor, { EditorPreview, EditorModal } from "../components/WangEditor";
|
|
35
|
+
import Link from "../components/Link";
|
|
36
|
+
import FormTable from "../components/v2/Table/FormTable";
|
|
37
|
+
import ColorPicker from "../components/ColorPicker";
|
|
38
|
+
import Tag from "../components/Tag";
|
|
39
|
+
import Tags from "../components/Tags";
|
|
40
40
|
import ReactJson from 'react-json-view';
|
|
41
|
-
import { TimelineModal, TableEditableModal } from
|
|
41
|
+
import { TimelineModal, TableEditableModal } from "../components/v2/Modal";
|
|
42
42
|
import ListSelect from "./components/ListSelect";
|
|
43
43
|
import ObjectSelect from "./components/ObjectSelect";
|
|
44
|
-
import AceEditor from
|
|
45
|
-
import { AceTable } from
|
|
46
|
-
import Tree from
|
|
44
|
+
import AceEditor from "../components/AceEditor";
|
|
45
|
+
import { AceTable } from "../components/v2/Table";
|
|
46
|
+
import Tree from "../components/Tree";
|
|
47
47
|
import Express from "./components/Express";
|
|
48
|
-
import Steps from
|
|
49
|
-
import QRCode from
|
|
50
|
-
import Barcode from
|
|
48
|
+
import Steps from "../components/Steps";
|
|
49
|
+
import QRCode from "../components/QRCode";
|
|
50
|
+
import Barcode from "../components/Barcode";
|
|
51
51
|
import GroupInput from "./components/GroupInput";
|
|
52
52
|
import ChooseModalTable from "./components/ChooseModalTable";
|
|
53
53
|
import Etable2Modal from "./components/Etable2Modal";
|
|
54
54
|
import ImageText from "./components/ImageText";
|
|
55
55
|
import { MoreOutlined } from '@ant-design/icons';
|
|
56
56
|
import moment from 'moment';
|
|
57
|
-
import { getAsyncSelectOptions, queryAsyncApi } from
|
|
57
|
+
import { getAsyncSelectOptions, queryAsyncApi } from "../services/config";
|
|
58
58
|
import { EntryType } from "./data.d";
|
|
59
|
-
import { formatData } from
|
|
59
|
+
import { formatData } from "../utils/utils";
|
|
60
60
|
import { message } from 'antd';
|
|
61
61
|
import { useHistory, useLocation, useParams } from 'umi';
|
|
62
62
|
import { isArray, isFunction, isString } from 'lodash';
|
|
@@ -15,7 +15,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
15
15
|
* AUTHOR PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
|
16
16
|
*/
|
|
17
17
|
import React, { useRef } from 'react';
|
|
18
|
-
import { ETable2 } from
|
|
18
|
+
import { ETable2 } from "../../components/v2/Table";
|
|
19
19
|
var _config = {
|
|
20
20
|
type: 'ETABLE2',
|
|
21
21
|
formType: null,
|
|
@@ -2,7 +2,7 @@ var _excluded = ["dataType", "type"];
|
|
|
2
2
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
3
3
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { TagConditionEnum } from
|
|
5
|
+
import { TagConditionEnum } from "../../utils/enum";
|
|
6
6
|
import Input from "./Input";
|
|
7
7
|
import InputNumber from "./InputNumber";
|
|
8
8
|
var Condition = function Condition(_ref) {
|
|
@@ -8,9 +8,9 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
8
8
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9
9
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
10
|
import React, { useEffect, useState } from 'react';
|
|
11
|
-
import Button from
|
|
12
|
-
import { ChooseModal } from
|
|
13
|
-
import { ETable2 } from
|
|
11
|
+
import Button from "../../components/Button";
|
|
12
|
+
import { ChooseModal } from "../../components/v2/Modal";
|
|
13
|
+
import { ETable2 } from "../../components/v2/Table";
|
|
14
14
|
import { connect } from 'umi';
|
|
15
15
|
var Index = function Index(props) {
|
|
16
16
|
var value = props.value,
|
|
@@ -4,7 +4,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
4
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import Input from "./Input";
|
|
7
|
-
import { ExpressModal } from
|
|
7
|
+
import { ExpressModal } from "../../components/v2/Modal";
|
|
8
8
|
var TextArea = Input.TextArea;
|
|
9
9
|
var Express = function Express(_ref) {
|
|
10
10
|
var style = _ref.style,
|
|
@@ -17,7 +17,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
17
17
|
*/
|
|
18
18
|
import React, { useRef } from 'react';
|
|
19
19
|
import Input from "./Input";
|
|
20
|
-
import { ChooseModal } from
|
|
20
|
+
import { ChooseModal } from "../../components/v2/Modal";
|
|
21
21
|
var ListSelect = function ListSelect(_ref) {
|
|
22
22
|
var style = _ref.style,
|
|
23
23
|
className = _ref.className,
|
|
@@ -17,7 +17,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
17
17
|
*/
|
|
18
18
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
19
19
|
import { Select } from 'antd';
|
|
20
|
-
import { default as requestFn } from
|
|
20
|
+
import { default as requestFn } from "../../utils/request";
|
|
21
21
|
import { isFunction } from 'lodash';
|
|
22
22
|
|
|
23
23
|
// export async function pickingList(params: any) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Filter.d.ts","sourceRoot":"","sources":["Filter.tsx"],"names":[],"mappings":"AAEA,OAAO,KAMN,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAOrC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,OAAO,2CAA2C,CAAC;AAOnD,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,iBAAiB,EAAE,CAAC;IAE1B,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,QAAQ,EAAE,CAAC,YAAY,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAC;IACtD,cAAc,CAAC,EAAE,CACf,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,YAAY,EAAE,MAAM,KACjB,IAAI,CAAC;IACV,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAE1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAChC,UAAU,CAAC,EAAE,GAAG,CAAC;IAEjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Filter.d.ts","sourceRoot":"","sources":["Filter.tsx"],"names":[],"mappings":"AAEA,OAAO,KAMN,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAOrC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,OAAO,2CAA2C,CAAC;AAOnD,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,iBAAiB,EAAE,CAAC;IAE1B,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,QAAQ,EAAE,CAAC,YAAY,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAC;IACtD,cAAc,CAAC,EAAE,CACf,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,YAAY,EAAE,MAAM,KACjB,IAAI,CAAC;IACV,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAE1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAChC,UAAU,CAAC,EAAE,GAAG,CAAC;IAEjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE/B,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAWD,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAmXhC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
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
|
-
var _excluded = ["sort", "dictItems", "onSort", "onFilter", "orderType", "orderKey", "dataIndex", "dataSource", "entryType", "entryAttr", "formTemplateCode", "menuCode"];
|
|
2
|
+
var _excluded = ["sort", "dictItems", "onSort", "onFilter", "orderType", "orderKey", "dataIndex", "dataSource", "entryType", "entryAttr", "formTemplateCode", "menuCode", "argument", "request", "open"];
|
|
3
3
|
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; }
|
|
4
4
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
5
5
|
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."); }
|
|
6
6
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
7
7
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
8
|
+
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; }
|
|
9
|
+
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; }
|
|
8
10
|
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; }
|
|
9
11
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
10
12
|
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); }
|
|
@@ -28,7 +30,8 @@ import CopyCol from "../CopyCol";
|
|
|
28
30
|
import { get } from "lodash";
|
|
29
31
|
import "../../style/components/FilterPopover.scss";
|
|
30
32
|
import { initLang } from "../utils/language";
|
|
31
|
-
import request from "../utils/request";
|
|
33
|
+
// import request from "../utils/request";
|
|
34
|
+
|
|
32
35
|
var CheckboxGroup = Checkbox === null || Checkbox === void 0 ? void 0 : Checkbox.Group;
|
|
33
36
|
var Search = Input === null || Input === void 0 ? void 0 : Input.Search;
|
|
34
37
|
var _TYPES = [
|
|
@@ -50,6 +53,9 @@ var Filter = function Filter(_ref) {
|
|
|
50
53
|
entryAttr = _ref.entryAttr,
|
|
51
54
|
formTemplateCode = _ref.formTemplateCode,
|
|
52
55
|
menuCode = _ref.menuCode,
|
|
56
|
+
argument = _ref.argument,
|
|
57
|
+
request = _ref.request,
|
|
58
|
+
open = _ref.open,
|
|
53
59
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
54
60
|
var _useState = useState([]),
|
|
55
61
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -96,11 +102,11 @@ var Filter = function Filter(_ref) {
|
|
|
96
102
|
return _context.abrupt("return");
|
|
97
103
|
case 2:
|
|
98
104
|
params = {
|
|
99
|
-
arguments: searchValue ? _defineProperty({}, dataIndex, {
|
|
105
|
+
arguments: searchValue ? _objectSpread(_objectSpread({}, argument), {}, _defineProperty({}, dataIndex, {
|
|
100
106
|
value: searchValue,
|
|
101
107
|
criteriaType: "Contains"
|
|
102
108
|
// criteriaType: 'In',
|
|
103
|
-
}) : {},
|
|
109
|
+
})) : _objectSpread({}, argument),
|
|
104
110
|
formTemplateCode: formTemplateCode,
|
|
105
111
|
menuCode: menuCode,
|
|
106
112
|
pageNum: pageNum,
|
|
@@ -108,7 +114,7 @@ var Filter = function Filter(_ref) {
|
|
|
108
114
|
distinctField: [dataIndex]
|
|
109
115
|
};
|
|
110
116
|
_context.next = 5;
|
|
111
|
-
return request("/querier/menu", {
|
|
117
|
+
return request === null || request === void 0 ? void 0 : request("/querier/menu", {
|
|
112
118
|
method: "POST",
|
|
113
119
|
data: params
|
|
114
120
|
});
|
|
@@ -137,17 +143,22 @@ var Filter = function Filter(_ref) {
|
|
|
137
143
|
return _ref2.apply(this, arguments);
|
|
138
144
|
};
|
|
139
145
|
}();
|
|
146
|
+
var updateOpen = useRef(false);
|
|
140
147
|
useEffect(function () {
|
|
141
|
-
if (
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
148
|
+
if (updateOpen.current === open) return;
|
|
149
|
+
updateOpen.current = open;
|
|
150
|
+
if (open) {
|
|
151
|
+
if (dictItems && dictItems.length) {
|
|
152
|
+
var _list = dictItems.map(function (h) {
|
|
153
|
+
return h.label;
|
|
154
|
+
});
|
|
155
|
+
setList(_list);
|
|
156
|
+
setChecked(_list);
|
|
157
|
+
} else {
|
|
158
|
+
getDates();
|
|
159
|
+
}
|
|
149
160
|
}
|
|
150
|
-
}, [pageNum, searchValue, dictItems]);
|
|
161
|
+
}, [pageNum, searchValue, dictItems, JSON.stringify(argument), open]);
|
|
151
162
|
var loadMoreData = function loadMoreData() {
|
|
152
163
|
if (pageNum * pageSize >= total) return;
|
|
153
164
|
setPageNum(function (num) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAQA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAIjD,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAI3C,MAAM,WAAW,kBACf,SAAQ,IAAI,CACV,UAAU,EACV,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,qBAAqB,CACvD;IACD,IAAI,EAAE,GAAG,EAAE,CAAC;IAEZ,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC;IAElB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAEhC,UAAU,CAAC,EAAE,GAAG,CAAC;IAEjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACpC;AAkCD,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAQA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAIjD,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAI3C,MAAM,WAAW,kBACf,SAAQ,IAAI,CACV,UAAU,EACV,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,qBAAqB,CACvD;IACD,IAAI,EAAE,GAAG,EAAE,CAAC;IAEZ,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC;IAElB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAEhC,UAAU,CAAC,EAAE,GAAG,CAAC;IAEjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACpC;AAkCD,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAuEvC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -123,7 +123,8 @@ var Index = function Index(_ref2) {
|
|
|
123
123
|
orderType: orderType,
|
|
124
124
|
orderKey: orderKey,
|
|
125
125
|
dataIndex: dataIndex,
|
|
126
|
-
dataSource: dataSource
|
|
126
|
+
dataSource: dataSource,
|
|
127
|
+
open: open
|
|
127
128
|
}, props))
|
|
128
129
|
}, /*#__PURE__*/React.createElement(CaretDownOutlined, {
|
|
129
130
|
className: "proTableFilter",
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
export { default as
|
|
1
|
+
export { default as ClassFilter } from "./ClassFilter/index";
|
|
2
|
+
export { default as IndexVertical } from "./ClassFilter/indexVertical";
|
|
3
|
+
export { default as FilterPopover } from "./FilterPopover/index";
|
|
2
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
// export { default as FilterPopover } from "./FilterPopover";
|
|
2
2
|
// export { WidgetConfig } from "./WidgetConfig";
|
|
3
3
|
|
|
4
|
-
export { default as
|
|
4
|
+
export { default as ClassFilter } from "./ClassFilter/index";
|
|
5
|
+
export { default as IndexVertical } from "./ClassFilter/indexVertical";
|
|
6
|
+
export { default as FilterPopover } from "./FilterPopover/index";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.class-filter-component.tags-wrap{flex:1 1;z-index:2}.class-filter-component.tags-wrap .tags-list{cursor:pointer;display:inline-block;margin-left:8px;padding:2.5px 8px}.class-filter-component.tags-wrap .tags-list.action{background-color:var(--w-e-textarea-selected-border-color);color:var(--antd-wave-shadow-color)}.class-filter-component .filter-component-tree-content .tags-list{font-size:12px;margin-left:0}.class-filter-component .filter-component-tree-content :global .ant-tree-node-content-wrapper{padding:0}.class-filter-component .filter-component-tree-content :global .ant-tree-node-content-wrapper.ant-tree-node-selected{background-color:transparent}.class-filter-component .num-txt{background:red;border-radius:8px;color:#fff;margin-left:2px;padding:0 4px}.class-filter-component .actionMenu{background-color:var(--w-e-textarea-selected-border-color);color:var(--antd-wave-shadow-color)}.dropdownWrap :global .ant-dropdown-menu-submenu-vertical{width:120px}.dropdownWrap :global .ant-dropdown-menu-item,.dropdownWrap :global .ant-dropdown-menu-submenu-title{align-items:center;display:flex;padding:0}.dropdownWrap :global .ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon,.dropdownWrap :global .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon{padding-left:18px}.dropdownWrap .actionMenu{background-color:var(--w-e-textarea-selected-border-color);color:var(--antd-wave-shadow-color)}.dropdownWrap .num-txt{background:red;border-radius:8px;color:#fff;margin-left:2px;padding:0 4px}.filter-wrapper-body{width:260px}.filter-wrapper-body .sort{border-bottom:1px solid #eee;width:100%}.filter-wrapper-body .sort>span{cursor:pointer;display:inline-block;padding:5px 0;text-align:center;width:33%}.filter-wrapper-body .sort>span:hover{background-color:#eee}.filter-wrapper-body .filter{padding:10px 20px}.filter-wrapper-body .filter .search{margin-bottom:10px}.filter-wrapper-body .filter .search :global .ant-input-sm{padding:.2px 7px}.filter-wrapper-body .filter .filter-group{margin-bottom:10px;max-height:400px;overflow:auto;width:100%}
|