@pisell/materials 1.0.38 → 1.0.39
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 +142 -142
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +159 -11
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +155 -7
- package/dist/umd/materials.min.css +1 -1
- package/dist/umd/materials.min.js +1 -1
- package/es/components/Pagination/index.d.ts +2 -1
- package/es/components/Pagination/index.js +44 -1
- package/es/components/Pagination/index.less +8 -1
- package/es/components/date-picker/index.js +12 -2
- package/es/components/page/index.js +156 -72
- package/es/components/table/Actions/Filter/FilterItem/index.js +3 -2
- package/es/components/table/Actions/Sort/index.d.ts +3 -3
- package/es/components/table/Actions/Sort/index.js +53 -17
- package/es/components/table/Actions/index.js +6 -5
- package/es/components/table/Actions/index.less +2 -0
- package/es/components/table/BasicTable/index.js +32 -48
- package/es/components/table/Table/fields/index.d.ts +29 -0
- package/es/components/table/Table/fields/index.js +5 -2
- package/es/components/table/Table/fields/link/Show/index.js +5 -2
- package/es/components/table/Table/fields/rangePicker/Edit/index.js +13 -3
- package/es/components/table/Table/fields/search/Config/index.d.ts +3 -0
- package/es/components/table/Table/fields/search/Config/index.js +4 -0
- package/es/components/table/Table/fields/search/Edit/index.d.ts +4 -0
- package/es/components/table/Table/fields/search/Edit/index.js +28 -0
- package/es/components/table/Table/fields/search/Edit/index.less +0 -0
- package/es/components/table/Table/fields/search/Show/index.d.ts +4 -0
- package/es/components/table/Table/fields/search/Show/index.js +16 -0
- package/es/components/table/Table/fields/search/Show/index.less +0 -0
- package/es/components/table/Table/fields/search/Sort/index.d.ts +3 -0
- package/es/components/table/Table/fields/search/Sort/index.js +4 -0
- package/es/components/table/Table/fields/search/index.d.ts +14 -0
- package/es/components/table/Table/fields/search/index.js +17 -0
- package/es/components/table/Table/fields/search/index.less +0 -0
- package/es/components/table/Table/index.js +4 -4
- package/es/components/table/Table/tableConfig/body/CellContent/index.less +0 -1
- package/es/components/table/Table/tableConfig/body/CellProvider/index.less +0 -3
- package/es/components/table/Table/tableConfig/header/CellProvider/index.less +1 -1
- package/es/components/table/index.js +21 -4
- package/es/components/table/model.js +1 -1
- package/es/index.d.ts +64 -63
- package/es/index.js +41 -43
- package/lib/components/Pagination/index.d.ts +2 -1
- package/lib/components/Pagination/index.js +34 -0
- package/lib/components/Pagination/index.less +8 -1
- package/lib/components/date-picker/index.js +2 -8
- package/lib/components/page/index.js +147 -72
- package/lib/components/table/Actions/Filter/FilterItem/index.js +2 -2
- package/lib/components/table/Actions/Sort/index.d.ts +3 -3
- package/lib/components/table/Actions/Sort/index.js +47 -2
- package/lib/components/table/Actions/index.js +2 -2
- package/lib/components/table/Actions/index.less +2 -0
- package/lib/components/table/BasicTable/index.js +31 -25
- package/lib/components/table/Table/fields/index.d.ts +29 -0
- package/lib/components/table/Table/fields/index.js +5 -2
- package/lib/components/table/Table/fields/link/Show/index.js +11 -2
- package/lib/components/table/Table/fields/rangePicker/Edit/index.js +6 -1
- package/lib/components/table/Table/fields/search/Config/index.d.ts +3 -0
- package/lib/components/table/Table/fields/search/Config/index.js +28 -0
- package/lib/components/table/Table/fields/search/Edit/index.d.ts +4 -0
- package/lib/components/table/Table/fields/search/Edit/index.js +51 -0
- package/lib/components/table/Table/fields/search/Edit/index.less +0 -0
- package/lib/components/table/Table/fields/search/Show/index.d.ts +4 -0
- package/lib/components/table/Table/fields/search/Show/index.js +37 -0
- package/lib/components/table/Table/fields/search/Show/index.less +0 -0
- package/lib/components/table/Table/fields/search/Sort/index.d.ts +3 -0
- package/lib/components/table/Table/fields/search/Sort/index.js +28 -0
- package/lib/components/table/Table/fields/search/index.d.ts +14 -0
- package/lib/components/table/Table/fields/search/index.js +51 -0
- package/lib/components/table/Table/fields/search/index.less +0 -0
- package/lib/components/table/Table/index.js +4 -6
- package/lib/components/table/Table/tableConfig/body/CellContent/index.less +0 -1
- package/lib/components/table/Table/tableConfig/body/CellProvider/index.less +0 -3
- package/lib/components/table/Table/tableConfig/header/CellProvider/index.less +1 -1
- package/lib/components/table/index.js +21 -3
- package/lib/components/table/model.js +1 -1
- package/lib/index.d.ts +64 -63
- package/lib/index.js +3 -0
- package/lowcode/div/meta.ts +6 -2
- package/package.json +1 -1
- package/dist/umd/static/DotsSix.57d66266.svg +0 -1
- package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
- package/dist/umd/static/help-circle.31c9be40.svg +0 -1
|
@@ -46,7 +46,9 @@ var Edit = (props, ref) => {
|
|
|
46
46
|
style,
|
|
47
47
|
bordered,
|
|
48
48
|
presets,
|
|
49
|
-
showTime
|
|
49
|
+
showTime,
|
|
50
|
+
format,
|
|
51
|
+
...others
|
|
50
52
|
} = props;
|
|
51
53
|
const dayjsVal = (0, import_react.useMemo)(() => {
|
|
52
54
|
if ((0, import_utils.isString)(value)) {
|
|
@@ -62,6 +64,7 @@ var Edit = (props, ref) => {
|
|
|
62
64
|
}, [value]);
|
|
63
65
|
const rangePresets = [
|
|
64
66
|
{ label: "Today", value: [(0, import_dayjs.default)().startOf("day"), (0, import_dayjs.default)().endOf("day")] },
|
|
67
|
+
{ label: "Yesterday", value: [(0, import_dayjs.default)().add(-1, "d").startOf("day"), (0, import_dayjs.default)().add(-1, "d").endOf("day")] },
|
|
65
68
|
{ label: "Last 3 Days", value: [(0, import_dayjs.default)().add(-3, "d").startOf("day"), (0, import_dayjs.default)().endOf("day")] },
|
|
66
69
|
{ label: "Last 7 Days", value: [(0, import_dayjs.default)().add(-7, "d").startOf("day"), (0, import_dayjs.default)().endOf("day")] },
|
|
67
70
|
{ label: "Last 14 Days", value: [(0, import_dayjs.default)().add(-14, "d").startOf("day"), (0, import_dayjs.default)().endOf("day")] },
|
|
@@ -77,6 +80,8 @@ var Edit = (props, ref) => {
|
|
|
77
80
|
return /* @__PURE__ */ React.createElement(
|
|
78
81
|
RangePicker,
|
|
79
82
|
{
|
|
83
|
+
...others,
|
|
84
|
+
format,
|
|
80
85
|
showTime: _showTime,
|
|
81
86
|
presets: presets || rangePresets,
|
|
82
87
|
ref,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/table/Table/fields/search/Config/index.tsx
|
|
20
|
+
var Config_exports = {};
|
|
21
|
+
__export(Config_exports, {
|
|
22
|
+
default: () => Config_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(Config_exports);
|
|
25
|
+
var Config = () => {
|
|
26
|
+
return /* @__PURE__ */ React.createElement("div", null);
|
|
27
|
+
};
|
|
28
|
+
var Config_default = Config;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/table/Table/fields/search/Edit/index.tsx
|
|
30
|
+
var Edit_exports = {};
|
|
31
|
+
__export(Edit_exports, {
|
|
32
|
+
default: () => Edit_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Edit_exports);
|
|
35
|
+
var import_react = require("react");
|
|
36
|
+
var import_input = __toESM(require("../../../../../input"));
|
|
37
|
+
var import_classnames = __toESM(require("classnames"));
|
|
38
|
+
var import_icons = require("@ant-design/icons");
|
|
39
|
+
var Edit = (props, ref) => {
|
|
40
|
+
const { onChange, value, onPressEnter, onBlur, style, bordered, ...others } = props;
|
|
41
|
+
return /* @__PURE__ */ React.createElement(
|
|
42
|
+
import_input.default,
|
|
43
|
+
{
|
|
44
|
+
...others,
|
|
45
|
+
prefix: /* @__PURE__ */ React.createElement(import_icons.SearchOutlined, null),
|
|
46
|
+
onPressEnter: (e) => onChange == null ? void 0 : onChange(e.target.value),
|
|
47
|
+
className: (0, import_classnames.default)(props.className)
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
};
|
|
51
|
+
var Edit_default = (0, import_react.forwardRef)(Edit);
|
|
File without changes
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/table/Table/fields/search/Show/index.tsx
|
|
20
|
+
var Show_exports = {};
|
|
21
|
+
__export(Show_exports, {
|
|
22
|
+
default: () => Show_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(Show_exports);
|
|
25
|
+
var Show = (props) => {
|
|
26
|
+
const {
|
|
27
|
+
title,
|
|
28
|
+
editable,
|
|
29
|
+
dataIndex,
|
|
30
|
+
field_type,
|
|
31
|
+
record,
|
|
32
|
+
handleSave,
|
|
33
|
+
...restProps
|
|
34
|
+
} = props;
|
|
35
|
+
return /* @__PURE__ */ React.createElement("div", { className: "" }, record[dataIndex]);
|
|
36
|
+
};
|
|
37
|
+
var Show_default = Show;
|
|
File without changes
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/table/Table/fields/search/Sort/index.tsx
|
|
20
|
+
var Sort_exports = {};
|
|
21
|
+
__export(Sort_exports, {
|
|
22
|
+
default: () => Sort_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(Sort_exports);
|
|
25
|
+
var Sort = () => {
|
|
26
|
+
return /* @__PURE__ */ React.createElement("div", null);
|
|
27
|
+
};
|
|
28
|
+
var Sort_default = Sort;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: {
|
|
3
|
+
field: {
|
|
4
|
+
field_icon: string;
|
|
5
|
+
field_name: string;
|
|
6
|
+
field_type: string;
|
|
7
|
+
default_value: string;
|
|
8
|
+
};
|
|
9
|
+
config: () => JSX.Element;
|
|
10
|
+
edit: import("react").ForwardRefExoticComponent<Omit<import("../types").EditPropsType, "ref"> & import("react").RefAttributes<any>>;
|
|
11
|
+
sort: () => JSX.Element;
|
|
12
|
+
show: (props: import("../types").FieldPropsType) => JSX.Element;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/table/Table/fields/search/index.tsx
|
|
30
|
+
var search_exports = {};
|
|
31
|
+
__export(search_exports, {
|
|
32
|
+
default: () => search_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(search_exports);
|
|
35
|
+
var import_Config = __toESM(require("./Config"));
|
|
36
|
+
var import_Edit = __toESM(require("./Edit"));
|
|
37
|
+
var import_Show = __toESM(require("./Show"));
|
|
38
|
+
var import_Sort = __toESM(require("./Sort"));
|
|
39
|
+
var field = {
|
|
40
|
+
field_icon: "pi-a-Property3Singlelinetext",
|
|
41
|
+
field_name: "search",
|
|
42
|
+
field_type: "search",
|
|
43
|
+
default_value: "Text"
|
|
44
|
+
};
|
|
45
|
+
var search_default = {
|
|
46
|
+
field,
|
|
47
|
+
config: import_Config.default,
|
|
48
|
+
edit: import_Edit.default,
|
|
49
|
+
sort: import_Sort.default,
|
|
50
|
+
show: import_Show.default
|
|
51
|
+
};
|
|
File without changes
|
|
@@ -99,14 +99,12 @@ var GridViewTable = ({ tableProps }) => {
|
|
|
99
99
|
});
|
|
100
100
|
}, [defaultColumns]);
|
|
101
101
|
const showTotal = (0, import_react.useCallback)(
|
|
102
|
-
(total, range) => {
|
|
102
|
+
(total, range, pageSize) => {
|
|
103
103
|
let start = range[0] - 1;
|
|
104
|
-
let _current = start /
|
|
105
|
-
return `Page ${_current} of ${Math.ceil(
|
|
106
|
-
total / tableProps.pagination.pageSize
|
|
107
|
-
)}`;
|
|
104
|
+
let _current = start / pageSize + 1;
|
|
105
|
+
return `Page ${_current} of ${Math.ceil(total / pageSize)}`;
|
|
108
106
|
},
|
|
109
|
-
[
|
|
107
|
+
[]
|
|
110
108
|
);
|
|
111
109
|
const _paginationConfig = (0, import_react.useMemo)(() => {
|
|
112
110
|
if (tableProps.pagination === false) {
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
.cell-provider {
|
|
2
|
-
position: relative;
|
|
3
|
-
cursor: pointer;
|
|
4
2
|
width: 100%;
|
|
5
3
|
height: 100%;
|
|
6
4
|
display: flex;
|
|
@@ -8,7 +6,6 @@
|
|
|
8
6
|
justify-content: center;
|
|
9
7
|
border-radius: 4px;
|
|
10
8
|
padding: 12px;
|
|
11
|
-
// cursor: pointer;
|
|
12
9
|
|
|
13
10
|
&.focus {
|
|
14
11
|
box-shadow: var(--theme-color) 0px 0px 0px 1px !important;
|
|
@@ -82,7 +82,7 @@ var GridView = (0, import_model.Provider)((props) => {
|
|
|
82
82
|
});
|
|
83
83
|
}, [filter]);
|
|
84
84
|
const initialValues = (0, import_react.useMemo)(
|
|
85
|
-
() => (filter.list || []).reduce(
|
|
85
|
+
() => ((filter == null ? void 0 : filter.list) || []).reduce(
|
|
86
86
|
(p, c) => {
|
|
87
87
|
var _a;
|
|
88
88
|
return {
|
|
@@ -92,14 +92,32 @@ var GridView = (0, import_model.Provider)((props) => {
|
|
|
92
92
|
},
|
|
93
93
|
{}
|
|
94
94
|
),
|
|
95
|
-
[filter.list]
|
|
95
|
+
[filter == null ? void 0 : filter.list]
|
|
96
96
|
);
|
|
97
97
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
98
98
|
import_antd.Form,
|
|
99
99
|
{
|
|
100
100
|
form,
|
|
101
101
|
layout: "vertical",
|
|
102
|
-
onValuesChange,
|
|
102
|
+
onValuesChange: (cur, values) => {
|
|
103
|
+
var _a;
|
|
104
|
+
let _values = { ...values };
|
|
105
|
+
const currentKey = Object.keys(cur)[0];
|
|
106
|
+
if (currentKey !== "pagination") {
|
|
107
|
+
_values.pagination = {
|
|
108
|
+
..._values.pagination,
|
|
109
|
+
page: 1
|
|
110
|
+
};
|
|
111
|
+
} else {
|
|
112
|
+
if ((dataSource == null ? void 0 : dataSource.length) > ((_a = other == null ? void 0 : other.pagination) == null ? void 0 : _a.pageSize)) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
form.setFieldsValue({
|
|
117
|
+
pagination: _values.pagination
|
|
118
|
+
});
|
|
119
|
+
onValuesChange(cur, values);
|
|
120
|
+
},
|
|
103
121
|
initialValues
|
|
104
122
|
},
|
|
105
123
|
/* @__PURE__ */ import_react.default.createElement("div", { className: "materials-grid", style }, /* @__PURE__ */ import_react.default.createElement(import_Header.default, { title, buttons }), /* @__PURE__ */ import_react.default.createElement(import_Actions.default, { filter, sort }), /* @__PURE__ */ import_react.default.createElement(import_Summary.default, { summary }), /* @__PURE__ */ import_react.default.createElement(import_Table.default, { tableProps: other }))
|
package/lib/index.d.ts
CHANGED
|
@@ -1,63 +1,64 @@
|
|
|
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 { List } from
|
|
18
|
-
export { message } from
|
|
19
|
-
export { Menu } from
|
|
20
|
-
export { Mentions } from
|
|
21
|
-
export { Statistic } from
|
|
22
|
-
export { notification } from
|
|
23
|
-
export { Pagination } from
|
|
24
|
-
export { Popconfirm } from
|
|
25
|
-
export { Popover } from
|
|
26
|
-
export { Progress } from
|
|
27
|
-
export { Rate } from
|
|
28
|
-
export { Result } from
|
|
29
|
-
export { Row } from
|
|
30
|
-
export { Space } from
|
|
31
|
-
export { Spin } from
|
|
32
|
-
export { Steps } from
|
|
33
|
-
export { Switch } from
|
|
34
|
-
export { Transfer } from
|
|
35
|
-
export { Tree } from
|
|
36
|
-
export { Tag } from
|
|
37
|
-
export { Timeline } from
|
|
38
|
-
export { Tooltip } from
|
|
39
|
-
export { Typography } from
|
|
40
|
-
export { version } from
|
|
41
|
-
export { default as Skeleton } from
|
|
42
|
-
export { default as Checkbox } from
|
|
43
|
-
export { default as Button } from
|
|
44
|
-
export { default as Radio } from
|
|
45
|
-
export { default as Upload } from
|
|
46
|
-
export { default as
|
|
47
|
-
export { default as
|
|
48
|
-
export { default as
|
|
49
|
-
export { default as
|
|
50
|
-
export { default as
|
|
51
|
-
export { default as
|
|
52
|
-
export { default as
|
|
53
|
-
export { default as
|
|
54
|
-
export { default as
|
|
55
|
-
export { default as
|
|
56
|
-
export { default as
|
|
57
|
-
export { default as
|
|
58
|
-
export { default as
|
|
59
|
-
export { default as
|
|
60
|
-
export { default as
|
|
61
|
-
export { default as
|
|
62
|
-
export { default as
|
|
63
|
-
export { default as
|
|
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 { List } from "antd";
|
|
18
|
+
export { message } from "antd";
|
|
19
|
+
export { Menu } from "antd";
|
|
20
|
+
export { Mentions } from "antd";
|
|
21
|
+
export { Statistic } from "antd";
|
|
22
|
+
export { notification } from "antd";
|
|
23
|
+
export { Pagination } from "antd";
|
|
24
|
+
export { Popconfirm } from "antd";
|
|
25
|
+
export { Popover } from "antd";
|
|
26
|
+
export { Progress } from "antd";
|
|
27
|
+
export { Rate } from "antd";
|
|
28
|
+
export { Result } from "antd";
|
|
29
|
+
export { Row } from "antd";
|
|
30
|
+
export { Space } from "antd";
|
|
31
|
+
export { Spin } from "antd";
|
|
32
|
+
export { Steps } from "antd";
|
|
33
|
+
export { Switch } from "antd";
|
|
34
|
+
export { Transfer } from "antd";
|
|
35
|
+
export { Tree } from "antd";
|
|
36
|
+
export { Tag } from "antd";
|
|
37
|
+
export { Timeline } from "antd";
|
|
38
|
+
export { Tooltip } from "antd";
|
|
39
|
+
export { Typography } from "antd";
|
|
40
|
+
export { version } from "antd";
|
|
41
|
+
export { default as Skeleton } from "./components/skeleton";
|
|
42
|
+
export { default as Checkbox } from "./components/checkbox";
|
|
43
|
+
export { default as Button } from "./components/button";
|
|
44
|
+
export { default as Radio } from "./components/radio";
|
|
45
|
+
export { default as Upload } from "./components/upload";
|
|
46
|
+
export { default as Icon } from "./components/icon";
|
|
47
|
+
export { default as Form } from "./components/form";
|
|
48
|
+
export { default as Dropdown } from "./components/dropdown";
|
|
49
|
+
export { default as Calendar } from "./components/calendar";
|
|
50
|
+
export { default as ConfigProvider } from "./components/config-provider";
|
|
51
|
+
export { default as DatePicker } from "./components/date-picker";
|
|
52
|
+
export { default as Tabs } from "./components/tabs";
|
|
53
|
+
export { default as TimePicker } from "./components/time-picker";
|
|
54
|
+
export { default as Slider } from "./components/slider";
|
|
55
|
+
export { default as Table } from "./components/table";
|
|
56
|
+
export { default as Modal } from "./components/modal";
|
|
57
|
+
export { default as Drawer } from "./components/drawer";
|
|
58
|
+
export { default as TreeSelect } from "./components/tree-select";
|
|
59
|
+
export { default as Input } from "./components/input";
|
|
60
|
+
export { default as Select } from "./components/select";
|
|
61
|
+
export { default as Cascader } from "./components/cascader";
|
|
62
|
+
export { default as AutoComplete } from "./components/auto-complete";
|
|
63
|
+
export { default as Div } from "./components/div";
|
|
64
|
+
export { default as Page } from "./components/page";
|
package/lib/index.js
CHANGED
|
@@ -54,6 +54,7 @@ __export(src_exports, {
|
|
|
54
54
|
Empty: () => import_antd13.Empty,
|
|
55
55
|
Form: () => import_form.default,
|
|
56
56
|
Grid: () => import_antd14.Grid,
|
|
57
|
+
Icon: () => import_icon.default,
|
|
57
58
|
Image: () => import_antd15.Image,
|
|
58
59
|
Input: () => import_input.default,
|
|
59
60
|
InputNumber: () => import_antd16.InputNumber,
|
|
@@ -139,6 +140,7 @@ var import_checkbox = __toESM(require("./components/checkbox"));
|
|
|
139
140
|
var import_button = __toESM(require("./components/button"));
|
|
140
141
|
var import_radio = __toESM(require("./components/radio"));
|
|
141
142
|
var import_upload = __toESM(require("./components/upload"));
|
|
143
|
+
var import_icon = __toESM(require("./components/icon"));
|
|
142
144
|
var import_form = __toESM(require("./components/form"));
|
|
143
145
|
var import_dropdown = __toESM(require("./components/dropdown"));
|
|
144
146
|
var import_calendar = __toESM(require("./components/calendar"));
|
|
@@ -184,6 +186,7 @@ var import_page = __toESM(require("./components/page"));
|
|
|
184
186
|
Empty,
|
|
185
187
|
Form,
|
|
186
188
|
Grid,
|
|
189
|
+
Icon,
|
|
187
190
|
Image,
|
|
188
191
|
Input,
|
|
189
192
|
InputNumber,
|
package/lowcode/div/meta.ts
CHANGED
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
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>
|
|
@@ -1 +0,0 @@
|
|
|
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>
|
|
@@ -1 +0,0 @@
|
|
|
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>
|