@pisell/materials 1.0.334 → 1.0.336
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 +1 -1
- package/build/lowcode/render/default/view.js +12 -12
- package/build/lowcode/view.js +12 -12
- package/es/components/Pagination/index.d.ts +1 -1
- package/es/components/table/BasicTable/index.js +5 -2
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/tabs/index.d.ts +4 -4
- package/es/components/tabs/index.js +10 -9
- package/es/index.d.ts +80 -80
- package/es/index.js +38 -38
- package/lib/components/Pagination/index.d.ts +1 -1
- package/lib/components/table/BasicTable/index.js +2 -2
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/tabs/index.d.ts +4 -4
- package/lib/components/tabs/index.js +3 -1
- package/lib/index.d.ts +80 -80
- package/lowcode/tabs/meta.ts +9 -0
- package/package.json +3 -3
|
@@ -5,7 +5,7 @@ export declare const paginationConfig: {
|
|
|
5
5
|
className: string;
|
|
6
6
|
defaultCurrent: number;
|
|
7
7
|
showTotal: (total: number, range: [number, number]) => string;
|
|
8
|
-
itemRender: (page: number, type: "
|
|
8
|
+
itemRender: (page: number, type: "next" | "page" | "prev" | "jump-prev" | "jump-next", element: React.ReactNode) => React.ReactNode;
|
|
9
9
|
responsive: boolean;
|
|
10
10
|
size: string;
|
|
11
11
|
};
|
|
@@ -37,7 +37,10 @@ var BasicTable = function BasicTable(props) {
|
|
|
37
37
|
sort = _useState4[0],
|
|
38
38
|
setSort = _useState4[1];
|
|
39
39
|
var form = Form.useFormInstance();
|
|
40
|
-
var formPagination = Form.useWatch('pagination',
|
|
40
|
+
var formPagination = Form.useWatch('pagination', {
|
|
41
|
+
form: form,
|
|
42
|
+
preserve: true
|
|
43
|
+
}) || {
|
|
41
44
|
page: 1,
|
|
42
45
|
size: 10
|
|
43
46
|
};
|
|
@@ -135,7 +138,7 @@ var BasicTable = function BasicTable(props) {
|
|
|
135
138
|
expandable: {
|
|
136
139
|
defaultExpandAllRows: true
|
|
137
140
|
}
|
|
138
|
-
})), total > ((pagination === null || pagination === void 0 ? void 0 : (_pagination$pageSizeO = pagination.pageSizeOptions) === null || _pagination$pageSizeO === void 0 ? void 0 : _pagination$pageSizeO[0]) || 10) ? /*#__PURE__*/React.createElement(Form.Item, {
|
|
141
|
+
})), total > ((pagination === null || pagination === void 0 ? void 0 : pagination.pageSize) || (pagination === null || pagination === void 0 ? void 0 : (_pagination$pageSizeO = pagination.pageSizeOptions) === null || _pagination$pageSizeO === void 0 ? void 0 : _pagination$pageSizeO[0]) || 10) ? /*#__PURE__*/React.createElement(Form.Item, {
|
|
139
142
|
name: "pagination"
|
|
140
143
|
}, /*#__PURE__*/React.createElement(FormPagination, _extends({}, pagination, {
|
|
141
144
|
showTotal: _showTotal,
|
|
@@ -167,7 +167,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
167
167
|
sort?: SortType | undefined;
|
|
168
168
|
mode: "" | "localStorage" | "remote";
|
|
169
169
|
currentViewMode: ModeType;
|
|
170
|
-
}) => ("
|
|
170
|
+
}) => ("filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
|
|
171
171
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
172
172
|
export declare const stringify: (obj: Record<string, any>) => string;
|
|
173
173
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { Component } from
|
|
2
|
-
import { TabsProps } from
|
|
3
|
-
import
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import { TabsProps } from 'antd';
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare class Tabs extends Component<any> {
|
|
5
5
|
state: {
|
|
6
6
|
activeKey: any;
|
|
@@ -8,7 +8,7 @@ declare class Tabs extends Component<any> {
|
|
|
8
8
|
private _handleChange;
|
|
9
9
|
setActiveKey: (key: string) => void;
|
|
10
10
|
getActiveKey: () => any;
|
|
11
|
-
renderIconLabelTabBar: TabsProps[
|
|
11
|
+
renderIconLabelTabBar: TabsProps['renderTabBar'];
|
|
12
12
|
filterHiddenTabs: (tabs: any[]) => any[];
|
|
13
13
|
render(): React.JSX.Element;
|
|
14
14
|
}
|
|
@@ -18,12 +18,12 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
18
18
|
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; }
|
|
19
19
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
20
20
|
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); }
|
|
21
|
-
import React, { Component } from
|
|
22
|
-
import { Badge, Tabs as OriginalTabs } from
|
|
21
|
+
import React, { Component } from 'react';
|
|
22
|
+
import { Badge, Tabs as OriginalTabs } from 'antd';
|
|
23
23
|
import { warning } from "../../utils/warning";
|
|
24
|
-
import classNames from
|
|
24
|
+
import classNames from 'classnames';
|
|
25
25
|
import "./index.less";
|
|
26
|
-
var prefix =
|
|
26
|
+
var prefix = 'pisell-lowcode-';
|
|
27
27
|
var Tabs = /*#__PURE__*/function (_Component) {
|
|
28
28
|
_inherits(Tabs, _Component);
|
|
29
29
|
var _super = _createSuper(Tabs);
|
|
@@ -53,19 +53,20 @@ var Tabs = /*#__PURE__*/function (_Component) {
|
|
|
53
53
|
return _this.state.activeKey;
|
|
54
54
|
});
|
|
55
55
|
_defineProperty(_assertThisInitialized(_this), "renderIconLabelTabBar", function (props, DefaultTabBar) {
|
|
56
|
+
var _this$props2;
|
|
56
57
|
var _this$props = _this.props,
|
|
57
58
|
items = _this$props.items,
|
|
58
59
|
sidebarWidth = _this$props.sidebarWidth;
|
|
59
60
|
var wrapStyle = {
|
|
60
61
|
gap: props.tabBarGutter
|
|
61
62
|
};
|
|
62
|
-
if ([
|
|
63
|
+
if (['left', 'right'].includes(props.tabPosition)) {
|
|
63
64
|
wrapStyle = _objectSpread(_objectSpread({}, wrapStyle), {}, {
|
|
64
65
|
width: sidebarWidth || 130
|
|
65
66
|
});
|
|
66
67
|
}
|
|
67
68
|
return /*#__PURE__*/React.createElement("div", {
|
|
68
|
-
className: classNames(
|
|
69
|
+
className: classNames('pisell-lowcode-tabs-nav', "".concat(prefix, "tab-bar-wrap"), "".concat(prefix, "tab-bar-wrap-").concat(props.tabPosition), (_this$props2 = _this.props) === null || _this$props2 === void 0 ? void 0 : _this$props2.className),
|
|
69
70
|
style: wrapStyle
|
|
70
71
|
}, _this.filterHiddenTabs(items).map(function (item) {
|
|
71
72
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -104,7 +105,7 @@ var Tabs = /*#__PURE__*/function (_Component) {
|
|
|
104
105
|
// props.items 存在,只认 props.items
|
|
105
106
|
// 兼容代码:props.children 反推 props.items
|
|
106
107
|
if (!props.items && Array.isArray(children) && children.length > 0) {
|
|
107
|
-
warning(
|
|
108
|
+
warning('Tabs.TabPane is deprecated. Please use `items` directly.');
|
|
108
109
|
items = children.map(function (node) {
|
|
109
110
|
if ( /*#__PURE__*/React.isValidElement(node)) {
|
|
110
111
|
var key = node.key,
|
|
@@ -123,10 +124,10 @@ var Tabs = /*#__PURE__*/function (_Component) {
|
|
|
123
124
|
}).filter(Boolean);
|
|
124
125
|
}
|
|
125
126
|
items = this.filterHiddenTabs(items);
|
|
126
|
-
if (type ===
|
|
127
|
+
if (type === 'icon-label') {
|
|
127
128
|
otherProps = {
|
|
128
129
|
renderTabBar: this.renderIconLabelTabBar,
|
|
129
|
-
type:
|
|
130
|
+
type: 'line'
|
|
130
131
|
};
|
|
131
132
|
}
|
|
132
133
|
return /*#__PURE__*/React.createElement(OriginalTabs, _extends({}, props, otherProps, {
|
package/es/index.d.ts
CHANGED
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
export { Affix } from
|
|
2
|
-
export { Anchor } from
|
|
3
|
-
export { Alert } from
|
|
4
|
-
export { Avatar } from
|
|
5
|
-
export { Badge } from
|
|
6
|
-
export { Breadcrumb } from
|
|
7
|
-
export { Card } from
|
|
8
|
-
export { Collapse } from
|
|
9
|
-
export { Carousel } from
|
|
10
|
-
export { Col } from
|
|
11
|
-
export { Descriptions } from
|
|
12
|
-
export { Divider } from
|
|
13
|
-
export { Empty } from
|
|
14
|
-
export { Grid } from
|
|
15
|
-
export { Image } from
|
|
16
|
-
export { InputNumber } from
|
|
17
|
-
export { message } from
|
|
18
|
-
export { Menu } from
|
|
19
|
-
export { Mentions } from
|
|
20
|
-
export { Statistic } from
|
|
21
|
-
export { notification } from
|
|
22
|
-
export { Pagination } from
|
|
23
|
-
export { Popconfirm } from
|
|
24
|
-
export { Popover } from
|
|
25
|
-
export { Progress } from
|
|
26
|
-
export { Rate } from
|
|
27
|
-
export { Result } from
|
|
28
|
-
export { Row } from
|
|
29
|
-
export { Space } from
|
|
30
|
-
export { Spin } from
|
|
31
|
-
export { Steps } from
|
|
32
|
-
export { Switch } from
|
|
33
|
-
export { Transfer } from
|
|
34
|
-
export { Tree } from
|
|
35
|
-
export { Tag } from
|
|
36
|
-
export { Timeline } from
|
|
37
|
-
export { Tooltip } from
|
|
38
|
-
export { version } from
|
|
39
|
-
export { default as Typography } from
|
|
40
|
-
export { default as Skeleton } from
|
|
41
|
-
export { default as Checkbox } from
|
|
42
|
-
export { default as Button } from
|
|
43
|
-
export { default as Radio } from
|
|
44
|
-
export { default as Upload } from
|
|
45
|
-
export { default as Icon } from
|
|
46
|
-
export { default as Form } from
|
|
47
|
-
export { default as Dropdown } from
|
|
48
|
-
export { default as Calendar } from
|
|
49
|
-
export { default as ConfigProvider } from
|
|
50
|
-
export { default as DatePicker } from
|
|
51
|
-
export { default as Tabs } from
|
|
52
|
-
export { default as TimePicker } from
|
|
53
|
-
export { default as Slider } from
|
|
54
|
-
export { default as Table } from
|
|
55
|
-
export { default as Modal } from
|
|
56
|
-
export { default as Drawer } from
|
|
57
|
-
export { default as TreeSelect } from
|
|
58
|
-
export { default as Input } from
|
|
59
|
-
export { default as Select } from
|
|
60
|
-
export { default as Cascader } from
|
|
61
|
-
export { default as AutoComplete } from
|
|
62
|
-
export { default as Div } from
|
|
63
|
-
export { default as Page } from
|
|
64
|
-
export { default as Component } from
|
|
65
|
-
export { default as Filter } from
|
|
66
|
-
export { default as Translation } from
|
|
67
|
-
export { default as SortableList } from
|
|
68
|
-
export { default as RecordView } from
|
|
69
|
-
export { default as QRCode } from
|
|
70
|
-
export { default as ClassicLayout } from
|
|
71
|
-
export { default as List } from
|
|
72
|
-
export { default as Sort } from
|
|
73
|
-
export { default as InputNumberRange } from
|
|
74
|
-
export { default as LowCodePage } from
|
|
1
|
+
export { Affix } from 'antd';
|
|
2
|
+
export { Anchor } from 'antd';
|
|
3
|
+
export { Alert } from 'antd';
|
|
4
|
+
export { Avatar } from 'antd';
|
|
5
|
+
export { Badge } from 'antd';
|
|
6
|
+
export { Breadcrumb } from 'antd';
|
|
7
|
+
export { Card } from 'antd';
|
|
8
|
+
export { Collapse } from 'antd';
|
|
9
|
+
export { Carousel } from 'antd';
|
|
10
|
+
export { Col } from 'antd';
|
|
11
|
+
export { Descriptions } from 'antd';
|
|
12
|
+
export { Divider } from 'antd';
|
|
13
|
+
export { Empty } from 'antd';
|
|
14
|
+
export { Grid } from 'antd';
|
|
15
|
+
export { Image } from 'antd';
|
|
16
|
+
export { InputNumber } from 'antd';
|
|
17
|
+
export { message } from 'antd';
|
|
18
|
+
export { Menu } from 'antd';
|
|
19
|
+
export { Mentions } from 'antd';
|
|
20
|
+
export { Statistic } from 'antd';
|
|
21
|
+
export { notification } from 'antd';
|
|
22
|
+
export { Pagination } from 'antd';
|
|
23
|
+
export { Popconfirm } from 'antd';
|
|
24
|
+
export { Popover } from 'antd';
|
|
25
|
+
export { Progress } from 'antd';
|
|
26
|
+
export { Rate } from 'antd';
|
|
27
|
+
export { Result } from 'antd';
|
|
28
|
+
export { Row } from 'antd';
|
|
29
|
+
export { Space } from 'antd';
|
|
30
|
+
export { Spin } from 'antd';
|
|
31
|
+
export { Steps } from 'antd';
|
|
32
|
+
export { Switch } from 'antd';
|
|
33
|
+
export { Transfer } from 'antd';
|
|
34
|
+
export { Tree } from 'antd';
|
|
35
|
+
export { Tag } from 'antd';
|
|
36
|
+
export { Timeline } from 'antd';
|
|
37
|
+
export { Tooltip } from 'antd';
|
|
38
|
+
export { version } from 'antd';
|
|
39
|
+
export { default as Typography } from './components/typography';
|
|
40
|
+
export { default as Skeleton } from './components/skeleton';
|
|
41
|
+
export { default as Checkbox } from './components/checkbox';
|
|
42
|
+
export { default as Button } from './components/button';
|
|
43
|
+
export { default as Radio } from './components/radio';
|
|
44
|
+
export { default as Upload } from './components/upload';
|
|
45
|
+
export { default as Icon } from './components/icon';
|
|
46
|
+
export { default as Form } from './components/form';
|
|
47
|
+
export { default as Dropdown } from './components/dropdown';
|
|
48
|
+
export { default as Calendar } from './components/calendar';
|
|
49
|
+
export { default as ConfigProvider } from './components/config-provider';
|
|
50
|
+
export { default as DatePicker } from './components/date-picker';
|
|
51
|
+
export { default as Tabs } from './components/tabs';
|
|
52
|
+
export { default as TimePicker } from './components/time-picker';
|
|
53
|
+
export { default as Slider } from './components/slider';
|
|
54
|
+
export { default as Table } from './components/table';
|
|
55
|
+
export { default as Modal } from './components/modal';
|
|
56
|
+
export { default as Drawer } from './components/drawer';
|
|
57
|
+
export { default as TreeSelect } from './components/tree-select';
|
|
58
|
+
export { default as Input } from './components/input';
|
|
59
|
+
export { default as Select } from './components/select';
|
|
60
|
+
export { default as Cascader } from './components/cascader';
|
|
61
|
+
export { default as AutoComplete } from './components/auto-complete';
|
|
62
|
+
export { default as Div } from './components/div';
|
|
63
|
+
export { default as Page } from './components/page';
|
|
64
|
+
export { default as Component } from './components/component';
|
|
65
|
+
export { default as Filter } from './components/filter';
|
|
66
|
+
export { default as Translation } from './components/translation';
|
|
67
|
+
export { default as SortableList } from './components/sortableList';
|
|
68
|
+
export { default as RecordView } from './components/record-view';
|
|
69
|
+
export { default as QRCode } from './components/qrcode';
|
|
70
|
+
export { default as ClassicLayout } from './components/classicLayout';
|
|
71
|
+
export { default as List } from './components/list';
|
|
72
|
+
export { default as Sort } from './components/sort';
|
|
73
|
+
export { default as InputNumberRange } from './components/input-number-range';
|
|
74
|
+
export { default as LowCodePage } from './components/lowCodePage';
|
|
75
75
|
export { default as PickerView } from "./components/picker-view";
|
|
76
|
-
export { default as Segmented } from
|
|
77
|
-
export { default as VirtualKeyboard } from
|
|
78
|
-
export { default as VirtualKeyboardTime } from
|
|
79
|
-
export { default as SelectTime } from
|
|
80
|
-
export { default as AutoCompleteNumber } from
|
|
81
|
-
export { default as BatchEditor } from
|
|
76
|
+
export { default as Segmented } from './components/segmented';
|
|
77
|
+
export { default as VirtualKeyboard } from './components/virtual-keyboard';
|
|
78
|
+
export { default as VirtualKeyboardTime } from './components/virtual-keyboard/Time';
|
|
79
|
+
export { default as SelectTime } from './components/select-time';
|
|
80
|
+
export { default as AutoCompleteNumber } from './components/auto-complete-number';
|
|
81
|
+
export { default as BatchEditor } from './components/batch-editor';
|
package/es/index.js
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
export { Affix } from
|
|
2
|
-
export { Anchor } from
|
|
3
|
-
export { Alert } from
|
|
4
|
-
export { Avatar } from
|
|
5
|
-
export { Badge } from
|
|
6
|
-
export { Breadcrumb } from
|
|
7
|
-
export { Card } from
|
|
8
|
-
export { Collapse } from
|
|
9
|
-
export { Carousel } from
|
|
1
|
+
export { Affix } from 'antd';
|
|
2
|
+
export { Anchor } from 'antd';
|
|
3
|
+
export { Alert } from 'antd';
|
|
4
|
+
export { Avatar } from 'antd';
|
|
5
|
+
export { Badge } from 'antd';
|
|
6
|
+
export { Breadcrumb } from 'antd';
|
|
7
|
+
export { Card } from 'antd';
|
|
8
|
+
export { Collapse } from 'antd';
|
|
9
|
+
export { Carousel } from 'antd';
|
|
10
10
|
|
|
11
11
|
// export { Cascader } from 'antd';
|
|
12
12
|
|
|
13
|
-
export { Col } from
|
|
14
|
-
export { Descriptions } from
|
|
15
|
-
export { Divider } from
|
|
13
|
+
export { Col } from 'antd';
|
|
14
|
+
export { Descriptions } from 'antd';
|
|
15
|
+
export { Divider } from 'antd';
|
|
16
16
|
|
|
17
17
|
// export { Drawer } from 'antd';
|
|
18
18
|
|
|
19
|
-
export { Empty } from
|
|
20
|
-
export { Grid } from
|
|
19
|
+
export { Empty } from 'antd';
|
|
20
|
+
export { Grid } from 'antd';
|
|
21
21
|
|
|
22
22
|
// export { Input } from 'antd';
|
|
23
23
|
|
|
24
|
-
export { Image } from
|
|
25
|
-
export { InputNumber } from
|
|
26
|
-
export { message } from
|
|
27
|
-
export { Menu } from
|
|
28
|
-
export { Mentions } from
|
|
29
|
-
export { Statistic } from
|
|
30
|
-
export { notification } from
|
|
24
|
+
export { Image } from 'antd';
|
|
25
|
+
export { InputNumber } from 'antd';
|
|
26
|
+
export { message } from 'antd';
|
|
27
|
+
export { Menu } from 'antd';
|
|
28
|
+
export { Mentions } from 'antd';
|
|
29
|
+
export { Statistic } from 'antd';
|
|
30
|
+
export { notification } from 'antd';
|
|
31
31
|
|
|
32
32
|
// export { PageHeader } from 'antd';
|
|
33
33
|
|
|
34
|
-
export { Pagination } from
|
|
35
|
-
export { Popconfirm } from
|
|
36
|
-
export { Popover } from
|
|
37
|
-
export { Progress } from
|
|
38
|
-
export { Rate } from
|
|
39
|
-
export { Result } from
|
|
40
|
-
export { Row } from
|
|
34
|
+
export { Pagination } from 'antd';
|
|
35
|
+
export { Popconfirm } from 'antd';
|
|
36
|
+
export { Popover } from 'antd';
|
|
37
|
+
export { Progress } from 'antd';
|
|
38
|
+
export { Rate } from 'antd';
|
|
39
|
+
export { Result } from 'antd';
|
|
40
|
+
export { Row } from 'antd';
|
|
41
41
|
|
|
42
42
|
// export { Skeleton } from 'antd';
|
|
43
43
|
|
|
44
|
-
export { Space } from
|
|
45
|
-
export { Spin } from
|
|
46
|
-
export { Steps } from
|
|
47
|
-
export { Switch } from
|
|
48
|
-
export { Transfer } from
|
|
49
|
-
export { Tree } from
|
|
44
|
+
export { Space } from 'antd';
|
|
45
|
+
export { Spin } from 'antd';
|
|
46
|
+
export { Steps } from 'antd';
|
|
47
|
+
export { Switch } from 'antd';
|
|
48
|
+
export { Transfer } from 'antd';
|
|
49
|
+
export { Tree } from 'antd';
|
|
50
50
|
|
|
51
51
|
// export { TreeSelect } from 'antd';
|
|
52
52
|
|
|
53
53
|
// export { Tabs } from 'antd';
|
|
54
54
|
|
|
55
|
-
export { Tag } from
|
|
56
|
-
export { Timeline } from
|
|
57
|
-
export { Tooltip } from
|
|
58
|
-
export { version } from
|
|
55
|
+
export { Tag } from 'antd';
|
|
56
|
+
export { Timeline } from 'antd';
|
|
57
|
+
export { Tooltip } from 'antd';
|
|
58
|
+
export { version } from 'antd';
|
|
59
59
|
export { default as Typography } from "./components/typography";
|
|
60
60
|
export { default as Skeleton } from "./components/skeleton";
|
|
61
61
|
export { default as Checkbox } from "./components/checkbox";
|
|
@@ -5,7 +5,7 @@ export declare const paginationConfig: {
|
|
|
5
5
|
className: string;
|
|
6
6
|
defaultCurrent: number;
|
|
7
7
|
showTotal: (total: number, range: [number, number]) => string;
|
|
8
|
-
itemRender: (page: number, type: "
|
|
8
|
+
itemRender: (page: number, type: "next" | "page" | "prev" | "jump-prev" | "jump-next", element: React.ReactNode) => React.ReactNode;
|
|
9
9
|
responsive: boolean;
|
|
10
10
|
size: string;
|
|
11
11
|
};
|
|
@@ -45,7 +45,7 @@ var BasicTable = (props) => {
|
|
|
45
45
|
const [filter, setFilter] = (0, import_react.useState)();
|
|
46
46
|
const [sort, setSort] = (0, import_react.useState)();
|
|
47
47
|
const form = import_antd.Form.useFormInstance();
|
|
48
|
-
const formPagination = import_antd.Form.useWatch("pagination", form) || {
|
|
48
|
+
const formPagination = import_antd.Form.useWatch("pagination", { form, preserve: true }) || {
|
|
49
49
|
page: 1,
|
|
50
50
|
size: 10
|
|
51
51
|
};
|
|
@@ -144,7 +144,7 @@ var BasicTable = (props) => {
|
|
|
144
144
|
defaultExpandAllRows: true
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
), total > (((_a = pagination == null ? void 0 : pagination.pageSizeOptions) == null ? void 0 : _a[0]) || 10) ? /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "pagination" }, /* @__PURE__ */ import_react.default.createElement(
|
|
147
|
+
), total > ((pagination == null ? void 0 : pagination.pageSize) || ((_a = pagination == null ? void 0 : pagination.pageSizeOptions) == null ? void 0 : _a[0]) || 10) ? /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "pagination" }, /* @__PURE__ */ import_react.default.createElement(
|
|
148
148
|
import_Pagination.FormPagination,
|
|
149
149
|
{
|
|
150
150
|
...pagination,
|
|
@@ -167,7 +167,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
167
167
|
sort?: SortType | undefined;
|
|
168
168
|
mode: "" | "localStorage" | "remote";
|
|
169
169
|
currentViewMode: ModeType;
|
|
170
|
-
}) => ("
|
|
170
|
+
}) => ("filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
|
|
171
171
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
172
172
|
export declare const stringify: (obj: Record<string, any>) => string;
|
|
173
173
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { Component } from
|
|
2
|
-
import { TabsProps } from
|
|
3
|
-
import
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import { TabsProps } from 'antd';
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare class Tabs extends Component<any> {
|
|
5
5
|
state: {
|
|
6
6
|
activeKey: any;
|
|
@@ -8,7 +8,7 @@ declare class Tabs extends Component<any> {
|
|
|
8
8
|
private _handleChange;
|
|
9
9
|
setActiveKey: (key: string) => void;
|
|
10
10
|
getActiveKey: () => any;
|
|
11
|
-
renderIconLabelTabBar: TabsProps[
|
|
11
|
+
renderIconLabelTabBar: TabsProps['renderTabBar'];
|
|
12
12
|
filterHiddenTabs: (tabs: any[]) => any[];
|
|
13
13
|
render(): React.JSX.Element;
|
|
14
14
|
}
|
|
@@ -59,6 +59,7 @@ var Tabs = class extends import_react.Component {
|
|
|
59
59
|
return this.state.activeKey;
|
|
60
60
|
};
|
|
61
61
|
this.renderIconLabelTabBar = (props, DefaultTabBar) => {
|
|
62
|
+
var _a;
|
|
62
63
|
const { items, sidebarWidth } = this.props;
|
|
63
64
|
let wrapStyle = {
|
|
64
65
|
gap: props.tabBarGutter
|
|
@@ -75,7 +76,8 @@ var Tabs = class extends import_react.Component {
|
|
|
75
76
|
className: (0, import_classnames.default)(
|
|
76
77
|
"pisell-lowcode-tabs-nav",
|
|
77
78
|
`${prefix}tab-bar-wrap`,
|
|
78
|
-
`${prefix}tab-bar-wrap-${props.tabPosition}
|
|
79
|
+
`${prefix}tab-bar-wrap-${props.tabPosition}`,
|
|
80
|
+
(_a = this.props) == null ? void 0 : _a.className
|
|
79
81
|
),
|
|
80
82
|
style: wrapStyle
|
|
81
83
|
},
|