@pisell/materials 3.0.1 → 3.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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +5 -5
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +14 -14
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +20 -20
- package/dist/umd/materials.min.css +1 -0
- package/dist/umd/materials.min.js +1 -0
- package/dist/umd/static/DotsSix.57d66266.svg +1 -0
- package/dist/umd/static/arrow-left.e542294f.svg +1 -0
- package/dist/umd/static/arrow-right.763f03e0.svg +1 -0
- package/dist/umd/static/filter-lines.04a54ae9.svg +1 -0
- package/dist/umd/static/help-circle.31c9be40.svg +1 -0
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +1 -0
- package/es/components/MultipleContainersSortList/index.js +2 -1
- package/es/components/dropdown/index.d.ts +2 -2
- package/es/components/dropdown/index.js +4 -2
- package/es/components/filter/components/Dropdown/index.less +3 -1
- package/es/components/filter/components/FilterButton/index.js +3 -1
- package/es/components/filter/index.js +30 -2
- package/es/components/list/index.js +2 -1
- package/es/components/segmented/index.d.ts +4 -0
- package/es/components/segmented/index.js +6 -0
- package/es/components/sort/index.js +3 -2
- package/es/components/table/Actions/component/ColumnsSetting/PopoverContent.js +4 -2
- package/es/components/table/Actions/component/ColumnsSetting/PopoverContent.less +4 -0
- package/es/components/table/Actions/index.js +10 -2
- package/es/components/table/Gallery/components/VirtualGrid/index.js +9 -0
- package/es/components/table/Gallery/components/VirtualGrid/useGenGridProps.js +1 -1
- package/es/components/table/Gallery/index.less +1 -0
- package/es/components/table/Header/Buttons/index.d.ts +1 -1
- package/es/components/table/Header/Buttons/index.js +12 -2
- package/es/components/table/Table/fields/image/Edit/index.js +8 -3
- package/es/components/table/Table/fields/number/Edit/index.js +8 -3
- package/es/components/table/Table/fields/search/filterUtil/index.js +3 -2
- package/es/components/table/Table/index.js +1 -0
- package/es/components/table/Table/utils.d.ts +2 -1
- package/es/components/table/Table/utils.js +8 -0
- package/es/components/table/hooks/useTransFilterSetting.js +3 -1
- package/es/components/table/index.js +8 -5
- package/es/components/tabs/index.d.ts +1 -0
- package/es/components/tabs/index.js +7 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/es/locales/en-US.d.ts +1 -0
- package/es/locales/en-US.js +2 -1
- package/es/locales/zh-CN.d.ts +1 -0
- package/es/locales/zh-CN.js +2 -1
- package/es/locales/zh-TW.d.ts +1 -0
- package/es/locales/zh-TW.js +2 -1
- package/es/utils/platform.js +1 -1
- package/lib/components/MultipleContainersSortList/index.js +2 -1
- package/lib/components/dropdown/index.d.ts +2 -2
- package/lib/components/dropdown/index.js +4 -2
- package/lib/components/filter/components/Dropdown/index.less +3 -1
- package/lib/components/filter/components/FilterButton/index.js +3 -1
- package/lib/components/filter/index.js +25 -1
- package/lib/components/list/index.js +2 -1
- package/lib/components/segmented/index.d.ts +4 -0
- package/lib/components/segmented/index.js +40 -0
- package/lib/components/sort/index.js +3 -2
- package/lib/components/table/Actions/component/ColumnsSetting/PopoverContent.js +2 -2
- package/lib/components/table/Actions/component/ColumnsSetting/PopoverContent.less +4 -0
- package/lib/components/table/Actions/index.js +23 -1
- package/lib/components/table/Gallery/components/VirtualGrid/index.js +4 -0
- package/lib/components/table/Gallery/components/VirtualGrid/useGenGridProps.js +1 -1
- package/lib/components/table/Gallery/index.less +1 -0
- package/lib/components/table/Header/Buttons/index.d.ts +1 -1
- package/lib/components/table/Header/Buttons/index.js +2 -2
- package/lib/components/table/Table/fields/image/Edit/index.js +2 -1
- package/lib/components/table/Table/fields/number/Edit/index.js +2 -1
- package/lib/components/table/Table/fields/search/filterUtil/index.js +3 -2
- package/lib/components/table/Table/index.js +1 -0
- package/lib/components/table/Table/utils.d.ts +2 -1
- package/lib/components/table/Table/utils.js +12 -2
- package/lib/components/table/hooks/useTransFilterSetting.js +3 -1
- package/lib/components/table/index.js +4 -4
- package/lib/components/tabs/index.d.ts +1 -0
- package/lib/components/tabs/index.js +5 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lib/locales/en-US.d.ts +1 -0
- package/lib/locales/en-US.js +2 -1
- package/lib/locales/zh-CN.d.ts +1 -0
- package/lib/locales/zh-CN.js +2 -1
- package/lib/locales/zh-TW.d.ts +1 -0
- package/lib/locales/zh-TW.js +2 -1
- package/lib/utils/platform.js +1 -1
- package/lowcode/date-picker.range-picker/meta.ts +19 -10
- package/lowcode/dropdown.button/__screenshots__/dropdown.button.png +0 -0
- package/lowcode/dropdown.button/meta.ts +221 -0
- package/lowcode/dropdown.button/snippets.ts +42 -0
- package/lowcode/segmented/meta.ts +165 -0
- package/lowcode/segmented/snippets.ts +25 -0
- package/lowcode/tabs/meta.ts +8 -0
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M8 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM8 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM8 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM16 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM16 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM16 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.707 4.293a1 1 0 0 1 0 1.414L7.414 11H19a1 1 0 1 1 0 2H7.414l5.293 5.293a1 1 0 0 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 0Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.293 4.293a1 1 0 0 1 1.414 0l7 7a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414-1.414L16.586 13H5a1 1 0 1 1 0-2h11.586l-5.293-5.293a1 1 0 0 1 0-1.414Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2 6a1 1 0 0 1 1-1h18a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1Zm3 6a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1Zm3 6a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11.258-3.976a2 2 0 0 0-2.225 1.308 1 1 0 1 1-1.886-.664 4 4 0 0 1 7.773 1.333c0 1.53-1.135 2.54-1.945 3.081a8.044 8.044 0 0 1-1.686.848l-.035.013-.011.003-.004.002h-.002L11.92 13l.316.949a1 1 0 0 1-.633-1.897l.016-.006.074-.027a6.051 6.051 0 0 0 1.172-.6c.69-.46 1.055-.95 1.055-1.419v-.001a2 2 0 0 0-1.662-1.975ZM11 17a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.293 3.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1-1.414 1.414L8 6.414V20a1 1 0 1 1-2 0V6.414L3.707 8.707a1 1 0 0 1-1.414-1.414l4-4ZM16 17.586V4a1 1 0 1 1 2 0v13.586l2.293-2.293a1 1 0 0 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 1.414-1.414L16 17.586Z"/></svg>
|
|
@@ -20,6 +20,7 @@ import { isFunction } from "@pisell/utils";
|
|
|
20
20
|
import React, { useCallback, useEffect, useState } from "react";
|
|
21
21
|
import { SortableItem } from "../DragSortList";
|
|
22
22
|
import "./index.less";
|
|
23
|
+
import { getText } from "../../locales";
|
|
23
24
|
export var TRASH_ID = "void";
|
|
24
25
|
var DefaultRenderContainer = function DefaultRenderContainer(props) {
|
|
25
26
|
var id = props.id,
|
|
@@ -159,7 +160,7 @@ var MultipleContainersSortList = function MultipleContainersSortList(props) {
|
|
|
159
160
|
}, children);
|
|
160
161
|
}) : /*#__PURE__*/React.createElement("span", {
|
|
161
162
|
className: "materials-sort-list-empty"
|
|
162
|
-
}, "
|
|
163
|
+
}, getText("table-action-filter-no-filter"))));
|
|
163
164
|
})));
|
|
164
165
|
};
|
|
165
166
|
export default MultipleContainersSortList;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const Dropdown: (props: any) => React.JSX.Element;
|
|
3
|
+
export default Dropdown;
|
|
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Dropdown as OriginalDropdown } from 'antd';
|
|
4
4
|
import { withSingleChild } from "../../utils/hoc";
|
|
5
|
-
var
|
|
5
|
+
var _Dropdown = function _Dropdown(props) {
|
|
6
6
|
var innerProps = {};
|
|
7
7
|
if (props.__designMode === 'design') {
|
|
8
8
|
// 低代码编辑态中强制显示,将控制权交给引擎侧
|
|
@@ -10,4 +10,6 @@ var Dropdown = function Dropdown(props) {
|
|
|
10
10
|
}
|
|
11
11
|
return /*#__PURE__*/React.createElement(OriginalDropdown, _extends({}, props, innerProps));
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
var Dropdown = withSingleChild(_Dropdown, ['children', 'overlay']);
|
|
14
|
+
Dropdown.Button = OriginalDropdown.Button;
|
|
15
|
+
export default Dropdown;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
.filter-dropdown-wrap {
|
|
2
2
|
width: 400px;
|
|
3
|
-
max-width: calc(100vw - 24px);
|
|
4
3
|
min-width: 250px;
|
|
5
4
|
padding: 4px;
|
|
6
5
|
display: flex;
|
|
7
6
|
flex-direction: column;
|
|
7
|
+
max-height: 60vh;
|
|
8
|
+
max-width: 80vw;
|
|
9
|
+
overflow: auto;
|
|
8
10
|
.filter-dropdown-wrap-content {
|
|
9
11
|
flex: 1;
|
|
10
12
|
}
|
|
@@ -9,6 +9,7 @@ import { Button, Popover } from "antd";
|
|
|
9
9
|
import FilterLines from "@pisell/icon/es/FilterLines";
|
|
10
10
|
import Dropdown from "../Dropdown";
|
|
11
11
|
import { getText } from "../../../../locales";
|
|
12
|
+
import { isMobile } from "../../../../utils/platform";
|
|
12
13
|
var Filter = function Filter(_ref) {
|
|
13
14
|
var value = _ref.value,
|
|
14
15
|
onChange = _ref.onChange,
|
|
@@ -33,6 +34,7 @@ var Filter = function Filter(_ref) {
|
|
|
33
34
|
formFiltersPrefix: formFiltersPrefix
|
|
34
35
|
});
|
|
35
36
|
}, [quickFilter, otherFilter, quickFilterMaxLength, formFiltersPrefix]);
|
|
37
|
+
var isMobileBool = isMobile();
|
|
36
38
|
return /*#__PURE__*/React.createElement("div", {
|
|
37
39
|
ref: ref
|
|
38
40
|
}, /*#__PURE__*/React.createElement(Popover, {
|
|
@@ -45,6 +47,6 @@ var Filter = function Filter(_ref) {
|
|
|
45
47
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
46
48
|
icon: /*#__PURE__*/React.createElement(FilterLines, null),
|
|
47
49
|
size: "large"
|
|
48
|
-
}, getText("table-action-filter-button"))));
|
|
50
|
+
}, isMobileBool ? null : getText("table-action-filter-button"))));
|
|
49
51
|
};
|
|
50
52
|
export default Filter;
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
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."); }
|
|
3
|
+
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); }
|
|
4
|
+
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; }
|
|
5
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import React, { useEffect, useMemo } from "react";
|
|
2
8
|
import { Form } from "antd";
|
|
3
9
|
import FilterButton from "./components/FilterButton";
|
|
4
10
|
import QuickFilter from "./components/QuickFilter";
|
|
11
|
+
import { isMobile } from "../../utils/platform";
|
|
5
12
|
var formFiltersPrefix = "filters";
|
|
6
13
|
var Filter = function Filter(props) {
|
|
7
14
|
var filter = props.filter,
|
|
@@ -13,7 +20,27 @@ var Filter = function Filter(props) {
|
|
|
13
20
|
quickFilterMaxLength = _ref.quickFilterMaxLength,
|
|
14
21
|
sortButtonShow = _ref.sortButtonShow,
|
|
15
22
|
list = _ref.list;
|
|
16
|
-
var
|
|
23
|
+
var _Form$useForm = Form.useForm(),
|
|
24
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
25
|
+
form = _Form$useForm2[0];
|
|
26
|
+
var isMobileBool = isMobile();
|
|
27
|
+
var isShowQuickFilter = useMemo(function () {
|
|
28
|
+
// 移动端 并且 开启filter按钮 并且 开启filter排序时 不显示快速筛选
|
|
29
|
+
if (isMobileBool && show && sortButtonShow) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
return true;
|
|
33
|
+
}, [show, sortButtonShow, isMobileBool]);
|
|
34
|
+
useEffect(function () {
|
|
35
|
+
if (isRenderFormContent) {
|
|
36
|
+
form.setFieldsValue({
|
|
37
|
+
filter_setting: {
|
|
38
|
+
notSortFilter: list
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}, [isRenderFormContent, list]);
|
|
43
|
+
var content = /*#__PURE__*/React.createElement(React.Fragment, null, isShowQuickFilter && /*#__PURE__*/React.createElement(Form.Item, {
|
|
17
44
|
name: "filter_setting",
|
|
18
45
|
noStyle: true
|
|
19
46
|
}, /*#__PURE__*/React.createElement(QuickFilter, {
|
|
@@ -29,6 +56,7 @@ var Filter = function Filter(props) {
|
|
|
29
56
|
if (isRenderFormContent) {
|
|
30
57
|
return /*#__PURE__*/React.createElement(Form, {
|
|
31
58
|
onValuesChange: onValuesChange,
|
|
59
|
+
form: form,
|
|
32
60
|
initialValues: {
|
|
33
61
|
filter_setting: {
|
|
34
62
|
notSortFilter: list
|
|
@@ -76,6 +76,7 @@ var List = function List(props) {
|
|
|
76
76
|
overflow: "auto"
|
|
77
77
|
}
|
|
78
78
|
}, isShowUpArrow && upArrow, /*#__PURE__*/React.createElement(InfiniteScroll, {
|
|
79
|
+
key: "".concat(document.getElementById(scrollListId)),
|
|
79
80
|
dataLength: props.dataSource.length,
|
|
80
81
|
next: loadMoreData,
|
|
81
82
|
hasMore: props.dataSource.length < ((pagination === null || pagination === void 0 ? void 0 : pagination.total) || 999999),
|
|
@@ -97,7 +98,7 @@ var List = function List(props) {
|
|
|
97
98
|
return /*#__PURE__*/React.createElement(AntList, _extends({}, props, {
|
|
98
99
|
className: classNames(className, _defineProperty({}, "".concat(prefix, "list-one-line-wrap"), props === null || props === void 0 ? void 0 : (_props$grid2 = props.grid) === null || _props$grid2 === void 0 ? void 0 : _props$grid2.oneLine))
|
|
99
100
|
}));
|
|
100
|
-
}, [props, _footer, isShowDownArrow, isShowUpArrow]);
|
|
101
|
+
}, [props, _footer, isShowDownArrow, isShowUpArrow, scrollListId]);
|
|
101
102
|
return list;
|
|
102
103
|
};
|
|
103
104
|
List.Item = AntList.Item;
|
|
@@ -99,14 +99,15 @@ var Sort = function Sort(_ref2) {
|
|
|
99
99
|
}
|
|
100
100
|
onChange === null || onChange === void 0 ? void 0 : onChange(detail === null || detail === void 0 ? void 0 : (_detail$keyPath2 = detail.keyPath) === null || _detail$keyPath2 === void 0 ? void 0 : _detail$keyPath2[0], detail);
|
|
101
101
|
};
|
|
102
|
+
var isMobileBool = isMobile();
|
|
102
103
|
var btnContent = useMemo(function () {
|
|
103
104
|
return button || /*#__PURE__*/React.createElement(Button, {
|
|
104
105
|
icon: /*#__PURE__*/React.createElement(SwitchVertical01, null),
|
|
105
106
|
style: style,
|
|
106
107
|
className: classNames(_defineProperty({}, "".concat(prefix, "sort-button-active"), !!value)),
|
|
107
108
|
size: "large"
|
|
108
|
-
}, getText("sort-button-text"));
|
|
109
|
-
}, [button, style, value]);
|
|
109
|
+
}, isMobileBool ? null : getText("sort-button-text"));
|
|
110
|
+
}, [button, style, value, isMobileBool]);
|
|
110
111
|
var content = useMemo(function () {
|
|
111
112
|
return /*#__PURE__*/React.createElement(InlineMenu, {
|
|
112
113
|
items: sortItems,
|
|
@@ -66,7 +66,9 @@ var PopoverContent = function PopoverContent(props) {
|
|
|
66
66
|
className: "".concat(prefix, "table-action-column-header")
|
|
67
67
|
}, isShowTitle && /*#__PURE__*/React.createElement("span", {
|
|
68
68
|
className: "".concat(prefix, "table-action-column-header-title")
|
|
69
|
-
}, getText("table-action-column-title")), headerContent && headerContent), /*#__PURE__*/React.createElement(
|
|
69
|
+
}, getText("table-action-column-title")), headerContent && headerContent), /*#__PURE__*/React.createElement("div", {
|
|
70
|
+
className: "".concat(prefix, "table-action-column-content")
|
|
71
|
+
}, /*#__PURE__*/React.createElement(Sortable, {
|
|
70
72
|
list: value,
|
|
71
73
|
rowKey: function rowKey(item) {
|
|
72
74
|
var _item$dataIndex;
|
|
@@ -105,6 +107,6 @@ var PopoverContent = function PopoverContent(props) {
|
|
|
105
107
|
handleChange(index, !item.isShow);
|
|
106
108
|
}
|
|
107
109
|
}, item.isShow ? /*#__PURE__*/React.createElement(EyeOutlined, null) : /*#__PURE__*/React.createElement(EyeInvisibleOutlined, null)))));
|
|
108
|
-
}));
|
|
110
|
+
})));
|
|
109
111
|
};
|
|
110
112
|
export default PopoverContent;
|
|
@@ -8,6 +8,7 @@ import Buttons from "../Header/Buttons";
|
|
|
8
8
|
import ViewMode from "./component/ViewMode";
|
|
9
9
|
import GallerySetting from "./component/GallerySetting";
|
|
10
10
|
import "./index.less";
|
|
11
|
+
import { isMobile } from "../../../utils/platform";
|
|
11
12
|
var Actions = function Actions(_ref) {
|
|
12
13
|
var filter = _ref.filter,
|
|
13
14
|
sort = _ref.sort,
|
|
@@ -26,6 +27,7 @@ var Actions = function Actions(_ref) {
|
|
|
26
27
|
var showActions = useMemo(function () {
|
|
27
28
|
return (filter === null || filter === void 0 ? void 0 : filter.show) || (sort === null || sort === void 0 ? void 0 : sort.show) || (columnSetting === null || columnSetting === void 0 ? void 0 : columnSetting.show) || (dataSourceGroup === null || dataSourceGroup === void 0 ? void 0 : dataSourceGroup.show) || view.multiple;
|
|
28
29
|
}, [filter === null || filter === void 0 ? void 0 : filter.show, sort === null || sort === void 0 ? void 0 : sort.show, columnSetting === null || columnSetting === void 0 ? void 0 : columnSetting.show, dataSourceGroup === null || dataSourceGroup === void 0 ? void 0 : dataSourceGroup.show, view.multiple]);
|
|
30
|
+
var isMobileBool = isMobile();
|
|
29
31
|
return showActions ? /*#__PURE__*/React.createElement("div", {
|
|
30
32
|
className: "materials-grid-actions"
|
|
31
33
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -36,7 +38,10 @@ var Actions = function Actions(_ref) {
|
|
|
36
38
|
tableId: tableId,
|
|
37
39
|
viewMode: viewMode
|
|
38
40
|
})), /*#__PURE__*/React.createElement("div", {
|
|
39
|
-
className: "right-wrap"
|
|
41
|
+
className: "right-wrap",
|
|
42
|
+
style: {
|
|
43
|
+
gap: isMobileBool ? 0 : 12
|
|
44
|
+
}
|
|
40
45
|
}, view.multiple && /*#__PURE__*/React.createElement(Form.Item, {
|
|
41
46
|
name: "view_mode",
|
|
42
47
|
noStyle: true
|
|
@@ -60,7 +65,10 @@ var Actions = function Actions(_ref) {
|
|
|
60
65
|
list: (sort === null || sort === void 0 ? void 0 : sort.list) || [],
|
|
61
66
|
localPagination: localPagination
|
|
62
67
|
})) : null, !!(buttons !== null && buttons !== void 0 && buttons.length) && /*#__PURE__*/React.createElement(Buttons, {
|
|
63
|
-
list: buttons
|
|
68
|
+
list: buttons,
|
|
69
|
+
style: isMobileBool ? {
|
|
70
|
+
marginLeft: 8
|
|
71
|
+
} : {}
|
|
64
72
|
}))) : null;
|
|
65
73
|
};
|
|
66
74
|
export default Actions;
|
|
@@ -9,6 +9,7 @@ import { FixedSizeGrid as Grid } from "react-window";
|
|
|
9
9
|
import AutoSizer from "react-virtualized-auto-sizer";
|
|
10
10
|
import useGenGridProps from "./useGenGridProps";
|
|
11
11
|
import useGapSize from "./useGapSize";
|
|
12
|
+
import { Empty } from "antd";
|
|
12
13
|
var Cell = function Cell(props) {
|
|
13
14
|
var columnIndex = props.columnIndex,
|
|
14
15
|
rowIndex = props.rowIndex,
|
|
@@ -92,6 +93,14 @@ var VirtualGrid = function VirtualGrid(props) {
|
|
|
92
93
|
rowHeight = props.rowHeight,
|
|
93
94
|
_props$paddingTop = props.paddingTop,
|
|
94
95
|
paddingTop = _props$paddingTop === void 0 ? 0 : _props$paddingTop;
|
|
96
|
+
if (dataSource.length === 0) {
|
|
97
|
+
return /*#__PURE__*/React.createElement(Empty, {
|
|
98
|
+
style: {
|
|
99
|
+
marginTop: 32
|
|
100
|
+
},
|
|
101
|
+
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
102
|
+
});
|
|
103
|
+
}
|
|
95
104
|
return /*#__PURE__*/React.createElement(AutoSizer, null, function (_ref) {
|
|
96
105
|
var height = _ref.height,
|
|
97
106
|
width = _ref.width;
|
|
@@ -9,7 +9,7 @@ var useGenGridProps = function useGenGridProps(params) {
|
|
|
9
9
|
var columnCount = useMemo(function () {
|
|
10
10
|
var minCount = Math.floor(width / itemMinWidth);
|
|
11
11
|
var maxCount = Math.floor(width / itemMaxWidth);
|
|
12
|
-
return Math.floor((minCount + maxCount) / 2);
|
|
12
|
+
return Math.max(Math.floor((minCount + maxCount) / 2), 1);
|
|
13
13
|
}, [width, itemMinWidth, itemMaxWidth]);
|
|
14
14
|
var columnWidth = useMemo(function () {
|
|
15
15
|
return (width - horizontal * (columnCount - 1) - 17) / columnCount;
|
|
@@ -1,10 +1,20 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
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); }
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5
|
+
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; }
|
|
6
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
1
8
|
import React from "react";
|
|
2
9
|
import { Button } from "antd";
|
|
3
10
|
import "./index.less";
|
|
4
11
|
var Buttons = function Buttons(_ref) {
|
|
5
|
-
var list = _ref.list
|
|
12
|
+
var list = _ref.list,
|
|
13
|
+
style = _ref.style;
|
|
6
14
|
return (list || []).map(function (d) {
|
|
7
|
-
return /*#__PURE__*/React.createElement(Button, d,
|
|
15
|
+
return /*#__PURE__*/React.createElement(Button, _extends({}, d, {
|
|
16
|
+
style: _objectSpread(_objectSpread({}, d.style || {}), style || {})
|
|
17
|
+
}), d.title);
|
|
8
18
|
});
|
|
9
19
|
};
|
|
10
20
|
export default Buttons;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
var _excluded = ["value", "onChange", "onPressEnter", "onBlur", "style", "bordered"];
|
|
2
|
+
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); }
|
|
3
|
+
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; }
|
|
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; }
|
|
1
5
|
import React, { forwardRef } from "react";
|
|
2
6
|
import Input from "../../../../../input";
|
|
3
7
|
var Edit = function Edit(props, ref) {
|
|
@@ -6,8 +10,9 @@ var Edit = function Edit(props, ref) {
|
|
|
6
10
|
onPressEnter = props.onPressEnter,
|
|
7
11
|
onBlur = props.onBlur,
|
|
8
12
|
style = props.style,
|
|
9
|
-
bordered = props.bordered
|
|
10
|
-
|
|
13
|
+
bordered = props.bordered,
|
|
14
|
+
others = _objectWithoutProperties(props, _excluded);
|
|
15
|
+
return /*#__PURE__*/React.createElement(Input, _extends({}, others, {
|
|
11
16
|
bordered: bordered,
|
|
12
17
|
ref: ref,
|
|
13
18
|
value: value,
|
|
@@ -18,6 +23,6 @@ var Edit = function Edit(props, ref) {
|
|
|
18
23
|
onClick: function onClick(e) {
|
|
19
24
|
return e.stopPropagation();
|
|
20
25
|
}
|
|
21
|
-
});
|
|
26
|
+
}));
|
|
22
27
|
};
|
|
23
28
|
export default /*#__PURE__*/forwardRef(Edit);
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
var _excluded = ["value", "onChange", "onPressEnter", "onBlur", "style", "bordered"];
|
|
2
|
+
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); }
|
|
3
|
+
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; }
|
|
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; }
|
|
1
5
|
import React from "react";
|
|
2
6
|
import { forwardRef } from "react";
|
|
3
7
|
import { InputNumber } from "antd";
|
|
@@ -7,8 +11,9 @@ var Edit = function Edit(props, ref) {
|
|
|
7
11
|
onPressEnter = props.onPressEnter,
|
|
8
12
|
onBlur = props.onBlur,
|
|
9
13
|
style = props.style,
|
|
10
|
-
bordered = props.bordered
|
|
11
|
-
|
|
14
|
+
bordered = props.bordered,
|
|
15
|
+
others = _objectWithoutProperties(props, _excluded);
|
|
16
|
+
return /*#__PURE__*/React.createElement(InputNumber, _extends({}, others, {
|
|
12
17
|
controls: false,
|
|
13
18
|
ref: ref,
|
|
14
19
|
value: value,
|
|
@@ -20,6 +25,6 @@ var Edit = function Edit(props, ref) {
|
|
|
20
25
|
onClick: function onClick(e) {
|
|
21
26
|
return e.stopPropagation();
|
|
22
27
|
}
|
|
23
|
-
});
|
|
28
|
+
}));
|
|
24
29
|
};
|
|
25
30
|
export default /*#__PURE__*/forwardRef(Edit);
|
|
@@ -10,11 +10,12 @@ export default function (_ref) {
|
|
|
10
10
|
if (!isString(value)) {
|
|
11
11
|
return true;
|
|
12
12
|
}
|
|
13
|
+
var lowerCaseValue = value.toLowerCase();
|
|
13
14
|
|
|
14
15
|
// 如果key是keywords,则使用模糊查询
|
|
15
16
|
if (key === "keywords") {
|
|
16
17
|
// Todo: 后续换为表格列的dataIndex取值过滤
|
|
17
|
-
return JSON.stringify(item).includes(
|
|
18
|
+
return JSON.stringify(item).toLowerCase().includes(lowerCaseValue);
|
|
18
19
|
// 表格展示对象中的值时不适用
|
|
19
20
|
// return Object.values(item)
|
|
20
21
|
// .filter((v) => isString(v) || isNumber(v))
|
|
@@ -25,6 +26,6 @@ export default function (_ref) {
|
|
|
25
26
|
|
|
26
27
|
var dataValue = getValueByKeys(item, key);
|
|
27
28
|
if (isString(dataValue) || isNumber(dataValue)) {
|
|
28
|
-
return "".concat(dataValue).includes(
|
|
29
|
+
return "".concat(dataValue).toLowerCase().includes(lowerCaseValue);
|
|
29
30
|
}
|
|
30
31
|
}
|
|
@@ -113,6 +113,7 @@ var GridViewTable = function GridViewTable(_ref) {
|
|
|
113
113
|
rowKey: tableProps.rowKey,
|
|
114
114
|
onSortChange: tableProps.onSortChange
|
|
115
115
|
}, /*#__PURE__*/React.createElement(BasicTable, _extends({
|
|
116
|
+
key: scroll === null || scroll === void 0 ? void 0 : scroll.y,
|
|
116
117
|
dataSource: dataSource,
|
|
117
118
|
columns: columns,
|
|
118
119
|
className: "grid-view-table",
|
|
@@ -146,6 +146,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
146
146
|
sort?: SortType | undefined;
|
|
147
147
|
mode: "" | "localStorage" | "remote";
|
|
148
148
|
currentViewMode: ModeType;
|
|
149
|
-
}) => ("
|
|
149
|
+
}) => ("filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
|
|
150
150
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
151
|
+
export declare const stringify: (obj: Record<string, any>) => string;
|
|
151
152
|
export {};
|
|
@@ -503,4 +503,12 @@ export var omit = function omit(obj, keys) {
|
|
|
503
503
|
delete shallowCopy[key];
|
|
504
504
|
}
|
|
505
505
|
return shallowCopy;
|
|
506
|
+
};
|
|
507
|
+
export var stringify = function stringify(obj) {
|
|
508
|
+
return JSON.stringify(obj, function (key, value) {
|
|
509
|
+
if (isFunction(value)) {
|
|
510
|
+
return value.toString();
|
|
511
|
+
}
|
|
512
|
+
return value;
|
|
513
|
+
});
|
|
506
514
|
};
|
|
@@ -5,6 +5,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
5
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
7
|
import { useMemo } from "react";
|
|
8
|
+
import { isMobile } from "../../../utils/platform";
|
|
8
9
|
var useTransFilterSetting = function useTransFilterSetting(params) {
|
|
9
10
|
var filter = params.filter,
|
|
10
11
|
originColumnsMap = params.originColumnsMap;
|
|
@@ -23,7 +24,8 @@ var useTransFilterSetting = function useTransFilterSetting(params) {
|
|
|
23
24
|
}
|
|
24
25
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
25
26
|
name: name,
|
|
26
|
-
label: label
|
|
27
|
+
label: label,
|
|
28
|
+
sort: isMobile() ? true : item.sort
|
|
27
29
|
});
|
|
28
30
|
})
|
|
29
31
|
});
|
|
@@ -25,7 +25,7 @@ import { Provider, Context, formatColumn } from "./model";
|
|
|
25
25
|
import useEngineContext from "../../hooks/useEngineContext";
|
|
26
26
|
import useTableSetting from "./hooks/useTableSetting";
|
|
27
27
|
import useTriggerValuesChange from "./hooks/useTriggerValuesChange";
|
|
28
|
-
import { clearTableSettingToLocalStorage, getCurrentViewModeFromLocalStorage, getHash, getTableSettingFromLocalStorage, mergeColumnSetting, omit } from "./Table/utils";
|
|
28
|
+
import { clearTableSettingToLocalStorage, getCurrentViewModeFromLocalStorage, getHash, getTableSettingFromLocalStorage, mergeColumnSetting, omit, stringify } from "./Table/utils";
|
|
29
29
|
import useTransSortSetting from "./hooks/useTransSortSetting";
|
|
30
30
|
import useTransFilterSetting from "./hooks/useTransFilterSetting";
|
|
31
31
|
import useTransDataSourceGroupSetting from "./hooks/useTransDataSourceGroupSetting";
|
|
@@ -180,7 +180,7 @@ var GridView = Provider( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
180
180
|
setTimeout(function () {
|
|
181
181
|
document.body.id = "body";
|
|
182
182
|
}, 200);
|
|
183
|
-
}, [
|
|
183
|
+
}, []);
|
|
184
184
|
var filterDefaultValues = useMemo(function () {
|
|
185
185
|
var _other$pagination3, _other$pagination4;
|
|
186
186
|
var defaultValues = ((filter === null || filter === void 0 ? void 0 : filter.list) || []).reduce(function (p, c) {
|
|
@@ -206,13 +206,16 @@ var GridView = Provider( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
206
206
|
});
|
|
207
207
|
useEffect(function () {
|
|
208
208
|
// 当前视图变更时重置form tableSetting 及 筛选项默认值全部重置
|
|
209
|
-
form.resetFields();
|
|
209
|
+
// form.resetFields();
|
|
210
210
|
form.setFieldsValue(initialValuesRef.current);
|
|
211
211
|
}, [currentViewMode]);
|
|
212
212
|
useEffect(function () {
|
|
213
213
|
// 虚拟表columns由接口获取 columns变更时只重新设置tableSetting
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
// 直接设置column_setting对象时useWatch监听数据有误,先设置{}后再设置useWatch可以监听到变更数据
|
|
215
|
+
form.setFieldValue("column_setting", {});
|
|
216
|
+
form.setFieldValue("column_setting", tableSettingRef.current.column_setting);
|
|
217
|
+
// JSON.stringify会丢失 render函数变更的监听 使用自定义stringify处理
|
|
218
|
+
}, [stringify(columns)]);
|
|
216
219
|
useEffect(function () {
|
|
217
220
|
form.setFieldsValue(initialValuesRef.current);
|
|
218
221
|
// ArraySetter在面板state变更时指针改变
|
|
@@ -9,6 +9,7 @@ declare class Tabs extends Component<any> {
|
|
|
9
9
|
setActiveKey: (key: string) => void;
|
|
10
10
|
getActiveKey: () => any;
|
|
11
11
|
renderIconLabelTabBar: TabsProps["renderTabBar"];
|
|
12
|
+
filterHiddenTabs: (tabs: any[]) => any[];
|
|
12
13
|
render(): React.JSX.Element;
|
|
13
14
|
}
|
|
14
15
|
export default Tabs;
|
|
@@ -67,7 +67,7 @@ var Tabs = /*#__PURE__*/function (_Component) {
|
|
|
67
67
|
return /*#__PURE__*/React.createElement("div", {
|
|
68
68
|
className: classNames("pisell-lowcode-tabs-nav", "".concat(prefix, "tab-bar-wrap"), "".concat(prefix, "tab-bar-wrap-").concat(props.tabPosition)),
|
|
69
69
|
style: wrapStyle
|
|
70
|
-
}, items.map(function (item) {
|
|
70
|
+
}, _this.filterHiddenTabs(items).map(function (item) {
|
|
71
71
|
return /*#__PURE__*/React.createElement("div", {
|
|
72
72
|
className: classNames("".concat(prefix, "tab-bar-item"), _defineProperty({}, "".concat(prefix, "tab-bar-item-active"), item.key === props.activeKey)),
|
|
73
73
|
key: item.key,
|
|
@@ -84,6 +84,11 @@ var Tabs = /*#__PURE__*/function (_Component) {
|
|
|
84
84
|
}, item.label));
|
|
85
85
|
}), props.extra);
|
|
86
86
|
});
|
|
87
|
+
_defineProperty(_assertThisInitialized(_this), "filterHiddenTabs", function (tabs) {
|
|
88
|
+
return tabs.filter(function (item) {
|
|
89
|
+
return !item.hidden;
|
|
90
|
+
});
|
|
91
|
+
});
|
|
87
92
|
return _this;
|
|
88
93
|
}
|
|
89
94
|
_createClass(Tabs, [{
|
|
@@ -117,6 +122,7 @@ var Tabs = /*#__PURE__*/function (_Component) {
|
|
|
117
122
|
return null;
|
|
118
123
|
}).filter(Boolean);
|
|
119
124
|
}
|
|
125
|
+
items = this.filterHiddenTabs(items);
|
|
120
126
|
if (type === "icon-label") {
|
|
121
127
|
otherProps = {
|
|
122
128
|
renderTabBar: this.renderIconLabelTabBar,
|
package/es/index.d.ts
CHANGED
|
@@ -72,3 +72,4 @@ export { default as List } from "./components/list";
|
|
|
72
72
|
export { default as Sort } from "./components/sort";
|
|
73
73
|
export { default as InputNumberRange } from "./components/input-number-range";
|
|
74
74
|
export { default as LowCodePage } from "./components/lowCodePage";
|
|
75
|
+
export { default as Segmented } from "./components/segmented";
|
package/es/index.js
CHANGED
|
@@ -91,4 +91,5 @@ export { default as ClassicLayout } from "./components/classicLayout";
|
|
|
91
91
|
export { default as List } from "./components/list";
|
|
92
92
|
export { default as Sort } from "./components/sort";
|
|
93
93
|
export { default as InputNumberRange } from "./components/input-number-range";
|
|
94
|
-
export { default as LowCodePage } from "./components/lowCodePage";
|
|
94
|
+
export { default as LowCodePage } from "./components/lowCodePage";
|
|
95
|
+
export { default as Segmented } from "./components/segmented";
|
package/es/locales/en-US.d.ts
CHANGED
package/es/locales/en-US.js
CHANGED
|
@@ -32,5 +32,6 @@ export default {
|
|
|
32
32
|
"table-action-group-by-title-tip": "Please select the field from the dropdown menu to group the data for better organization and browsing.",
|
|
33
33
|
"table-action-column-title": "Header settings",
|
|
34
34
|
"table-column-group-records": "records",
|
|
35
|
-
"table-column-drag-sort-disabled-tip": "Automatic sorting is enabled, manual dragging is disabled."
|
|
35
|
+
"table-column-drag-sort-disabled-tip": "Automatic sorting is enabled, manual dragging is disabled.",
|
|
36
|
+
"table-action-filter-no-filter": "No filter options available."
|
|
36
37
|
};
|
package/es/locales/zh-CN.d.ts
CHANGED
package/es/locales/zh-CN.js
CHANGED
|
@@ -32,5 +32,6 @@ export default {
|
|
|
32
32
|
"table-action-group-by-title-tip": "请从下拉菜单中选择要分组的字段,以便更好地组织和浏览数据。",
|
|
33
33
|
"table-action-column-title": "表头设置",
|
|
34
34
|
"table-column-group-records": "条记录",
|
|
35
|
-
"table-column-drag-sort-disabled-tip": "已开启自动排序,无法手动拖拽"
|
|
35
|
+
"table-column-drag-sort-disabled-tip": "已开启自动排序,无法手动拖拽",
|
|
36
|
+
"table-action-filter-no-filter": "没有可用的筛选器。"
|
|
36
37
|
};
|
package/es/locales/zh-TW.d.ts
CHANGED