@pisell/materials 2.2.5 → 2.2.7
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 +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +11 -11
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +13 -13
- 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/Pagination/index.d.ts +1 -1
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +16 -0
- package/es/components/drag-sort-tree/TreeItem/index.js +196 -0
- package/es/components/drag-sort-tree/TreeItem/index.less +41 -0
- package/es/components/drag-sort-tree/index.d.ts +4 -0
- package/es/components/drag-sort-tree/index.js +88 -0
- package/es/components/drag-sort-tree/types.d.ts +20 -0
- package/es/components/drag-sort-tree/types.js +1 -0
- package/es/components/drawer/index.d.ts +1 -1
- package/es/components/drawer/index.js +23 -17
- package/es/components/drawer/index.less +25 -1
- package/es/components/table/Actions/component/ColumnsSetting/PopoverContent.less +2 -1
- package/es/components/table/BasicTable/index.js +5 -2
- package/es/components/table/Table/index.less +10 -0
- package/es/components/table/Table/tableConfig/body/index.d.ts +4 -4
- package/es/components/table/Table/tableConfig/body/index.js +14 -20
- package/es/components/table/Table/tableConfig/body/index.less +13 -0
- 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 +81 -80
- package/es/index.js +40 -39
- package/lib/components/Pagination/index.d.ts +1 -1
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +16 -0
- package/lib/components/drag-sort-tree/TreeItem/index.js +183 -0
- package/lib/components/drag-sort-tree/TreeItem/index.less +41 -0
- package/lib/components/drag-sort-tree/index.d.ts +4 -0
- package/lib/components/drag-sort-tree/index.js +114 -0
- package/lib/components/drag-sort-tree/types.d.ts +20 -0
- package/lib/components/drag-sort-tree/types.js +17 -0
- package/lib/components/drawer/index.d.ts +1 -1
- package/lib/components/drawer/index.js +4 -1
- package/lib/components/drawer/index.less +25 -1
- package/lib/components/table/Actions/component/ColumnsSetting/PopoverContent.less +2 -1
- package/lib/components/table/BasicTable/index.js +2 -2
- package/lib/components/table/Table/index.less +10 -0
- package/lib/components/table/Table/tableConfig/body/index.d.ts +4 -4
- package/lib/components/table/Table/tableConfig/body/index.js +2 -2
- package/lib/components/table/Table/tableConfig/body/index.less +13 -0
- 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 +81 -80
- package/lib/index.js +3 -0
- package/lowcode/drag-sort-tree/__screenshots__/drag-sort-tree.png +0 -0
- package/lowcode/drag-sort-tree/meta.ts +108 -0
- package/lowcode/drag-sort-tree/snippets.ts +57 -0
- package/lowcode/tabs/meta.ts +9 -0
- package/package.json +2 -2
|
@@ -15,12 +15,12 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
15
15
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
16
16
|
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; }
|
|
17
17
|
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; }
|
|
18
|
-
import { Form, Tooltip } from
|
|
19
|
-
import { useSortable } from
|
|
20
|
-
import { CSS } from
|
|
21
|
-
import { MenuOutlined } from
|
|
22
|
-
import classNames from
|
|
23
|
-
import React, { useMemo } from
|
|
18
|
+
import { Form, Tooltip } from 'antd';
|
|
19
|
+
import { useSortable } from '@dnd-kit/sortable';
|
|
20
|
+
import { CSS } from '@dnd-kit/utilities';
|
|
21
|
+
import { MenuOutlined } from '@ant-design/icons';
|
|
22
|
+
import classNames from 'classnames';
|
|
23
|
+
import React, { useMemo } from 'react';
|
|
24
24
|
import CellProvider from "./CellProvider";
|
|
25
25
|
import { getText } from "../../../../../locales";
|
|
26
26
|
import "./index.less";
|
|
@@ -35,9 +35,9 @@ var EditableRow = function EditableRow(_ref) {
|
|
|
35
35
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
36
36
|
form = _Form$useForm2[0];
|
|
37
37
|
var parentForm = Form.useFormInstance();
|
|
38
|
-
var order_by = Form.useWatch(
|
|
38
|
+
var order_by = Form.useWatch('order_by', parentForm);
|
|
39
39
|
var _useSortable = useSortable({
|
|
40
|
-
id: props[
|
|
40
|
+
id: props['data-row-key']
|
|
41
41
|
}),
|
|
42
42
|
attributes = _useSortable.attributes,
|
|
43
43
|
listeners = _useSortable.listeners,
|
|
@@ -52,7 +52,7 @@ var EditableRow = function EditableRow(_ref) {
|
|
|
52
52
|
})),
|
|
53
53
|
transition: transition
|
|
54
54
|
}, isDragging && __is_drag_sort ? {
|
|
55
|
-
position:
|
|
55
|
+
position: 'relative',
|
|
56
56
|
zIndex: 9999
|
|
57
57
|
} : {});
|
|
58
58
|
var cells = useMemo(function () {
|
|
@@ -60,20 +60,14 @@ var EditableRow = function EditableRow(_ref) {
|
|
|
60
60
|
return children;
|
|
61
61
|
}
|
|
62
62
|
return React.Children.map(children, function (child) {
|
|
63
|
-
if (child.key ===
|
|
63
|
+
if (child.key === '__sort') {
|
|
64
64
|
var handleIcon = order_by ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
65
|
-
title: getText(
|
|
65
|
+
title: getText('table-column-drag-sort-disabled-tip')
|
|
66
66
|
}, /*#__PURE__*/React.createElement(MenuOutlined, {
|
|
67
|
-
|
|
68
|
-
touchAction: "none",
|
|
69
|
-
cursor: "move"
|
|
70
|
-
}
|
|
67
|
+
className: "pisell-lowcode-menu-out-lined-icon"
|
|
71
68
|
})) : /*#__PURE__*/React.createElement(MenuOutlined, _extends({
|
|
72
69
|
ref: setActivatorNodeRef,
|
|
73
|
-
|
|
74
|
-
touchAction: "none",
|
|
75
|
-
cursor: "move"
|
|
76
|
-
}
|
|
70
|
+
className: "pisell-lowcode-menu-out-lined-icon"
|
|
77
71
|
}, listeners));
|
|
78
72
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
79
73
|
children: handleIcon
|
|
@@ -108,7 +102,7 @@ var EditableCell = function EditableCell(props) {
|
|
|
108
102
|
render = props.render,
|
|
109
103
|
restProps = _objectWithoutProperties(props, _excluded2);
|
|
110
104
|
return /*#__PURE__*/React.createElement("td", _extends({}, restProps, {
|
|
111
|
-
className: classNames(restProps.className,
|
|
105
|
+
className: classNames(restProps.className, 'ant-table-cell', 'materials-grid-table-cell')
|
|
112
106
|
}), /*#__PURE__*/React.createElement(CellProvider, props));
|
|
113
107
|
};
|
|
114
108
|
export default {
|
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
height: 100%;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
.pisell-lowcode-menu-out-lined-icon{
|
|
7
|
+
position: absolute;
|
|
8
|
+
top: 0;
|
|
9
|
+
left: 0;
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
align-items: center;
|
|
15
|
+
cursor: move;
|
|
16
|
+
touch-action: none;
|
|
17
|
+
}
|
|
18
|
+
|
|
6
19
|
.materials-grid-table-cell {
|
|
7
20
|
padding: 12px;
|
|
8
21
|
}
|
|
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
155
155
|
sort?: SortType | undefined;
|
|
156
156
|
mode: "" | "localStorage" | "remote";
|
|
157
157
|
currentViewMode: ModeType;
|
|
158
|
-
}) => ("
|
|
158
|
+
}) => ("view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_setting" | "filter_setting")[];
|
|
159
159
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
160
160
|
export declare const stringify: (obj: Record<string, any>) => string;
|
|
161
161
|
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,80 +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
|
|
75
|
-
export { default as Segmented } from
|
|
76
|
-
export { default as VirtualKeyboard } from
|
|
77
|
-
export { default as VirtualKeyboardTime } from
|
|
78
|
-
export { default as SelectTime } from
|
|
79
|
-
export { default as AutoCompleteNumber } from
|
|
80
|
-
export { default as BatchEditor } 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
|
+
export { default as Segmented } from './components/segmented';
|
|
76
|
+
export { default as VirtualKeyboard } from './components/virtual-keyboard';
|
|
77
|
+
export { default as VirtualKeyboardTime } from './components/virtual-keyboard/Time';
|
|
78
|
+
export { default as SelectTime } from './components/select-time';
|
|
79
|
+
export { default as AutoCompleteNumber } from './components/auto-complete-number';
|
|
80
|
+
export { default as BatchEditor } from './components/batch-editor';
|
|
81
|
+
export { default as DragSortTree } from './components/drag-sort-tree';
|
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";
|
|
@@ -97,4 +97,5 @@ export { default as VirtualKeyboard } from "./components/virtual-keyboard";
|
|
|
97
97
|
export { default as VirtualKeyboardTime } from "./components/virtual-keyboard/Time";
|
|
98
98
|
export { default as SelectTime } from "./components/select-time";
|
|
99
99
|
export { default as AutoCompleteNumber } from "./components/auto-complete-number";
|
|
100
|
-
export { default as BatchEditor } from "./components/batch-editor";
|
|
100
|
+
export { default as BatchEditor } from "./components/batch-editor";
|
|
101
|
+
export { default as DragSortTree } from "./components/drag-sort-tree";
|
|
@@ -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: "page" | "next" | "prev" | "jump-prev" | "jump-next", element: React.ReactNode) => React.ReactNode;
|
|
9
9
|
responsive: boolean;
|
|
10
10
|
size: string;
|
|
11
11
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
import { ValueProps, SortType } from '../types';
|
|
4
|
+
declare type TreeItemProps = {
|
|
5
|
+
id: string | number;
|
|
6
|
+
key: string | number;
|
|
7
|
+
item: ValueProps | any;
|
|
8
|
+
depth: number;
|
|
9
|
+
lists: any[];
|
|
10
|
+
activeId?: string | null;
|
|
11
|
+
childrenProps?: SortType;
|
|
12
|
+
sensors?: any;
|
|
13
|
+
onChange?: (value: any[]) => void;
|
|
14
|
+
};
|
|
15
|
+
declare const TreeItem: (props: TreeItemProps) => React.JSX.Element;
|
|
16
|
+
export default TreeItem;
|