@pisell/materials 2.2.23 → 2.2.25
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 +4 -4
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +12 -12
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +13 -13
- package/es/components/filter/components/Dropdown/index.less +5 -0
- package/es/components/filter/components/FilterButton/index.js +2 -3
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +3 -3
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.js +33 -48
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.js +9 -9
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +3 -3
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.js +28 -43
- package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +3 -3
- package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.js +45 -44
- package/es/components/table/Actions/component/ExportImport/index.d.ts +3 -3
- package/es/components/table/Actions/component/ExportImport/index.js +31 -22
- package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
- package/es/components/table/Actions/component/ExportImport/utils/index.js +11 -0
- package/es/components/table/serve.d.ts +3 -1
- package/es/components/table/serve.js +71 -9
- package/es/components/table/types.d.ts +17 -4
- package/lib/components/filter/components/Dropdown/index.less +5 -0
- package/lib/components/filter/components/FilterButton/index.js +1 -2
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +3 -3
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.js +9 -22
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.js +3 -8
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +3 -3
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.js +9 -22
- package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +3 -3
- package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.js +5 -8
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +3 -3
- package/lib/components/table/Actions/component/ExportImport/index.js +12 -4
- package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
- package/lib/components/table/Actions/component/ExportImport/utils/index.js +31 -0
- package/lib/components/table/serve.d.ts +3 -1
- package/lib/components/table/serve.js +38 -6
- package/lib/components/table/types.d.ts +17 -4
- package/lowcode/table/meta.ts +35 -8
- package/lowcode/table/snippets.ts +2 -2
- package/package.json +2 -2
|
@@ -38,13 +38,11 @@ var import_react = __toESM(require("react"));
|
|
|
38
38
|
var import_useEngineContext = __toESM(require("../../../../../../../hooks/useEngineContext"));
|
|
39
39
|
var import_locales = require("../../../../../../../locales/index");
|
|
40
40
|
var import_serve = require("../../../../../serve");
|
|
41
|
-
var import_status = require("../../../../../status");
|
|
42
41
|
var import_utils = require("../../../../../utils");
|
|
43
42
|
var import_date = require("../../utils/date");
|
|
44
43
|
var import_download = __toESM(require("../../utils/download"));
|
|
45
44
|
var import_index = require("./index.less");
|
|
46
45
|
var defaultData = {
|
|
47
|
-
type: import_status.defaultOptions.exportValue,
|
|
48
46
|
skip: 1,
|
|
49
47
|
num: 10
|
|
50
48
|
};
|
|
@@ -56,25 +54,11 @@ var exportStatusOptions = {
|
|
|
56
54
|
};
|
|
57
55
|
var ExportFile = (props) => {
|
|
58
56
|
const { exportImport } = props;
|
|
59
|
-
const {
|
|
57
|
+
const { apiUrl, otherParams } = exportImport;
|
|
60
58
|
const [list, setList] = (0, import_react.useState)([]);
|
|
61
|
-
const [defaultParams, setDefaultParams] = (0, import_react.useState)(defaultData);
|
|
62
59
|
const context = (0, import_useEngineContext.default)();
|
|
63
60
|
import_utils.request.setRequest(context.appHelper.utils.request);
|
|
64
|
-
(0,
|
|
65
|
-
let params = {};
|
|
66
|
-
if (formId) {
|
|
67
|
-
params.form_id = formId;
|
|
68
|
-
}
|
|
69
|
-
if (formCode) {
|
|
70
|
-
params.code = formCode;
|
|
71
|
-
}
|
|
72
|
-
setDefaultParams({
|
|
73
|
-
...defaultParams,
|
|
74
|
-
...params
|
|
75
|
-
});
|
|
76
|
-
}, [formId, formCode]);
|
|
77
|
-
const _historyList = (0, import_ahooks.useRequest)(import_serve.historyData, {
|
|
61
|
+
const _historyList = (0, import_ahooks.useRequest)(import_serve.getExportFile, {
|
|
78
62
|
manual: true,
|
|
79
63
|
onSuccess: (res) => {
|
|
80
64
|
var _a;
|
|
@@ -84,13 +68,16 @@ var ExportFile = (props) => {
|
|
|
84
68
|
}
|
|
85
69
|
});
|
|
86
70
|
const init = () => {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
71
|
+
const _defaultParams = {
|
|
72
|
+
...defaultData,
|
|
73
|
+
...otherParams,
|
|
74
|
+
url: apiUrl == null ? void 0 : apiUrl.export_file
|
|
75
|
+
};
|
|
76
|
+
_historyList.run(_defaultParams);
|
|
90
77
|
};
|
|
91
78
|
(0, import_react.useEffect)(() => {
|
|
92
79
|
init();
|
|
93
|
-
}, [
|
|
80
|
+
}, [exportImport]);
|
|
94
81
|
const columns = [
|
|
95
82
|
{
|
|
96
83
|
title: (0, import_locales.getText)("table-action-export-import-file-name"),
|
package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.js
CHANGED
|
@@ -40,15 +40,10 @@ var _batchExport = async (params) => {
|
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
var batchExport = (exportParams, exportImport) => {
|
|
43
|
-
const { selectLists,
|
|
43
|
+
const { selectLists, apiUrl, otherParams } = exportImport;
|
|
44
44
|
let _name = (0, import_file.getFileDateName)();
|
|
45
|
-
let params = {};
|
|
46
|
-
|
|
47
|
-
params.form_id = formId;
|
|
48
|
-
}
|
|
49
|
-
if (formCode) {
|
|
50
|
-
params.code = formCode;
|
|
51
|
-
}
|
|
45
|
+
let params = { ...otherParams };
|
|
46
|
+
params.url = apiUrl == null ? void 0 : apiUrl.export;
|
|
52
47
|
console.log("exportParams", exportParams);
|
|
53
48
|
const type = (exportParams == null ? void 0 : exportParams.type) || import_status.defaultOptions.exportType;
|
|
54
49
|
if (type === import_status.defaultOptions.exportType) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { ExportImportType } from
|
|
3
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExportImportType } from '../../../../../types';
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const ImportLog: (props: {
|
|
5
5
|
exportImport: ExportImportType;
|
|
6
6
|
}) => React.JSX.Element;
|
|
@@ -38,38 +38,22 @@ var import_react = __toESM(require("react"));
|
|
|
38
38
|
var import_useEngineContext = __toESM(require("../../../../../../../hooks/useEngineContext"));
|
|
39
39
|
var import_locales = require("../../../../../../../locales/index");
|
|
40
40
|
var import_serve = require("../../../../../serve");
|
|
41
|
-
var import_status = require("../../../../../status");
|
|
42
41
|
var import_utils = require("../../../../../utils");
|
|
43
42
|
var import_date = require("../../utils/date");
|
|
44
43
|
var import_Detail = __toESM(require("./Detail"));
|
|
45
44
|
var import_index = require("./index.less");
|
|
46
45
|
var defaultData = {
|
|
47
|
-
type: import_status.defaultOptions.importValue,
|
|
48
46
|
skip: 1,
|
|
49
47
|
num: 10
|
|
50
48
|
};
|
|
51
49
|
var ImportLog = (props) => {
|
|
52
50
|
const { exportImport } = props;
|
|
53
|
-
const {
|
|
51
|
+
const { apiUrl, otherParams } = exportImport;
|
|
54
52
|
const detailRef = (0, import_react.useRef)(null);
|
|
55
53
|
const [list, setList] = (0, import_react.useState)([]);
|
|
56
|
-
const [defaultParams, setDefaultParams] = (0, import_react.useState)(defaultData);
|
|
57
54
|
const context = (0, import_useEngineContext.default)();
|
|
58
55
|
import_utils.request.setRequest(context.appHelper.utils.request);
|
|
59
|
-
(0,
|
|
60
|
-
let params = {};
|
|
61
|
-
if (formId) {
|
|
62
|
-
params.form_id = formId;
|
|
63
|
-
}
|
|
64
|
-
if (formCode) {
|
|
65
|
-
params.code = formCode;
|
|
66
|
-
}
|
|
67
|
-
setDefaultParams({
|
|
68
|
-
...defaultParams,
|
|
69
|
-
...params
|
|
70
|
-
});
|
|
71
|
-
}, [formId, formCode]);
|
|
72
|
-
const _historyList = (0, import_ahooks.useRequest)(import_serve.historyData, {
|
|
56
|
+
const _historyList = (0, import_ahooks.useRequest)(import_serve.getImportLog, {
|
|
73
57
|
manual: true,
|
|
74
58
|
onSuccess: (res) => {
|
|
75
59
|
var _a;
|
|
@@ -79,13 +63,16 @@ var ImportLog = (props) => {
|
|
|
79
63
|
}
|
|
80
64
|
});
|
|
81
65
|
const init = () => {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
66
|
+
const _defaultParams = {
|
|
67
|
+
...defaultData,
|
|
68
|
+
...otherParams,
|
|
69
|
+
url: apiUrl == null ? void 0 : apiUrl.import_log
|
|
70
|
+
};
|
|
71
|
+
_historyList.run(_defaultParams);
|
|
85
72
|
};
|
|
86
73
|
(0, import_react.useEffect)(() => {
|
|
87
74
|
init();
|
|
88
|
-
}, [
|
|
75
|
+
}, [exportImport]);
|
|
89
76
|
const columns = [
|
|
90
77
|
{
|
|
91
78
|
title: (0, import_locales.getText)("table-action-export-import-log-name"),
|
package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { ExportImportType } from
|
|
3
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExportImportType } from '../../../../../types';
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare type ImportTableProps = {
|
|
5
5
|
onChange: any;
|
|
6
6
|
exportImport: ExportImportType;
|
|
@@ -46,7 +46,7 @@ var import_index = require("./index.less");
|
|
|
46
46
|
var loadingKey = import_status.defaultOptions.importValue;
|
|
47
47
|
var ImportTable = (props) => {
|
|
48
48
|
const { onChange, exportImport, errorStatus } = props;
|
|
49
|
-
const {
|
|
49
|
+
const { templateFileUrl, apiUrl, otherParams } = exportImport;
|
|
50
50
|
const [file, setFile] = (0, import_react.useState)(null);
|
|
51
51
|
const context = (0, import_useEngineContext.default)();
|
|
52
52
|
import_utils.request.setRequest(context.appHelper.utils.request);
|
|
@@ -55,13 +55,10 @@ var ImportTable = (props) => {
|
|
|
55
55
|
(0, import_download.default)(templateFileUrl);
|
|
56
56
|
} else {
|
|
57
57
|
import_antd.message.loading({ content: "Loading...", key: loadingKey });
|
|
58
|
-
const params = {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
if (formCode) {
|
|
63
|
-
params.code = formCode;
|
|
64
|
-
}
|
|
58
|
+
const params = {
|
|
59
|
+
url: apiUrl == null ? void 0 : apiUrl.template,
|
|
60
|
+
...otherParams
|
|
61
|
+
};
|
|
65
62
|
let { data } = await (0, import_serve.importTemplate)(params);
|
|
66
63
|
(0, import_download.default)(data == null ? void 0 : data.url);
|
|
67
64
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { ExportImportType } from
|
|
3
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExportImportType } from '../../../types';
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare type ExportImportProps = {
|
|
5
5
|
exportImport: ExportImportType;
|
|
6
6
|
};
|
|
@@ -69,14 +69,19 @@ var ExportImport = ({ exportImport }) => {
|
|
|
69
69
|
const context = (0, import_useEngineContext.default)();
|
|
70
70
|
import_utils.request.setRequest((_b = (_a = context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.request);
|
|
71
71
|
const _items = (0, import_react.useMemo)(() => {
|
|
72
|
-
|
|
72
|
+
var _a2;
|
|
73
|
+
const result = (_a2 = Object.entries(import_status.exportImportOptions).map(([key, value2]) => {
|
|
74
|
+
var _a3;
|
|
75
|
+
if (Array.isArray(exportImport == null ? void 0 : exportImport.hiddenKeys) && ((_a3 = exportImport == null ? void 0 : exportImport.hiddenKeys) == null ? void 0 : _a3.includes(key))) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
73
78
|
return {
|
|
74
79
|
key,
|
|
75
80
|
label: value2
|
|
76
81
|
};
|
|
77
|
-
});
|
|
82
|
+
})) == null ? void 0 : _a2.filter(Boolean);
|
|
78
83
|
return result;
|
|
79
|
-
}, []);
|
|
84
|
+
}, [exportImport == null ? void 0 : exportImport.hiddenKeys]);
|
|
80
85
|
const Content = (0, import_react.useMemo)(() => {
|
|
81
86
|
const _value = value || import_status.defaultOptions.importValue;
|
|
82
87
|
return Com[_value];
|
|
@@ -138,7 +143,7 @@ var ExportImport = ({ exportImport }) => {
|
|
|
138
143
|
}
|
|
139
144
|
});
|
|
140
145
|
const onOk = async () => {
|
|
141
|
-
const {
|
|
146
|
+
const { apiUrl, otherParams } = exportImport;
|
|
142
147
|
if (value === import_status.defaultOptions.exportValue) {
|
|
143
148
|
const _params = {
|
|
144
149
|
type,
|
|
@@ -152,12 +157,15 @@ var ExportImport = ({ exportImport }) => {
|
|
|
152
157
|
} else if (value === import_status.defaultOptions.importValue) {
|
|
153
158
|
const formData = new FormData();
|
|
154
159
|
formData.append("file", file);
|
|
160
|
+
const formId = otherParams == null ? void 0 : otherParams.form_id;
|
|
161
|
+
const formCode = otherParams == null ? void 0 : otherParams.code;
|
|
155
162
|
if (formId) {
|
|
156
163
|
formData.append("form_id", formId);
|
|
157
164
|
}
|
|
158
165
|
if (formCode) {
|
|
159
166
|
formData.append("code", formCode);
|
|
160
167
|
}
|
|
168
|
+
formData.append("url", (apiUrl == null ? void 0 : apiUrl.export) || "");
|
|
161
169
|
if (formData) {
|
|
162
170
|
import_antd.message.loading({ content: "Loading...", key: value });
|
|
163
171
|
_batchImport.run(formData);
|
|
@@ -0,0 +1,31 @@
|
|
|
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/Actions/component/ExportImport/utils/index.ts
|
|
20
|
+
var utils_exports = {};
|
|
21
|
+
__export(utils_exports, {
|
|
22
|
+
formatApiUrl: () => formatApiUrl
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(utils_exports);
|
|
25
|
+
var formatApiUrl = (url) => {
|
|
26
|
+
return url || "/shop/form/data";
|
|
27
|
+
};
|
|
28
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
+
0 && (module.exports = {
|
|
30
|
+
formatApiUrl
|
|
31
|
+
});
|
|
@@ -3,9 +3,11 @@ declare type exportParams = {
|
|
|
3
3
|
file_name?: string;
|
|
4
4
|
form_id?: string | number;
|
|
5
5
|
code?: string;
|
|
6
|
+
url?: string;
|
|
6
7
|
};
|
|
7
8
|
export declare const exportData: (params: exportParams) => Promise<any>;
|
|
8
9
|
export declare const batchImport: (params: any) => Promise<any>;
|
|
9
10
|
export declare const importTemplate: (params: exportParams) => Promise<any>;
|
|
10
|
-
export declare const
|
|
11
|
+
export declare const getExportFile: (params: any) => Promise<any>;
|
|
12
|
+
export declare const getImportLog: (params: any) => Promise<any>;
|
|
11
13
|
export {};
|
|
@@ -21,21 +21,53 @@ var serve_exports = {};
|
|
|
21
21
|
__export(serve_exports, {
|
|
22
22
|
batchImport: () => batchImport,
|
|
23
23
|
exportData: () => exportData,
|
|
24
|
-
|
|
24
|
+
getExportFile: () => getExportFile,
|
|
25
|
+
getImportLog: () => getImportLog,
|
|
25
26
|
importTemplate: () => importTemplate
|
|
26
27
|
});
|
|
27
28
|
module.exports = __toCommonJS(serve_exports);
|
|
28
29
|
var import_utils = require("./utils");
|
|
30
|
+
var defaultUrl = {
|
|
31
|
+
export: "/shop/form/data/export",
|
|
32
|
+
import: "/shop/form/data/import",
|
|
33
|
+
export_file: "/shop/form/data/task?type=export",
|
|
34
|
+
import_log: "/shop/form/data/task?type=import",
|
|
35
|
+
template: "/shop/form/data/download-template"
|
|
36
|
+
};
|
|
37
|
+
var formatApiParams = (params, type) => {
|
|
38
|
+
const _url = (params == null ? void 0 : params.url) || (defaultUrl == null ? void 0 : defaultUrl[type]);
|
|
39
|
+
let _params = { ...params };
|
|
40
|
+
delete _params.url;
|
|
41
|
+
return {
|
|
42
|
+
url: _url,
|
|
43
|
+
params: { ..._params }
|
|
44
|
+
};
|
|
45
|
+
};
|
|
29
46
|
var exportData = (params) => {
|
|
30
|
-
|
|
47
|
+
const _params = formatApiParams(params, "export");
|
|
48
|
+
return import_utils.request.getRequest().post(_params == null ? void 0 : _params.url, _params == null ? void 0 : _params.params);
|
|
49
|
+
};
|
|
50
|
+
var batchImport = (params) => {
|
|
51
|
+
const _params = formatApiParams(params, "import");
|
|
52
|
+
return import_utils.request.getRequest().post(_params == null ? void 0 : _params.url, params);
|
|
53
|
+
};
|
|
54
|
+
var importTemplate = (params) => {
|
|
55
|
+
const _params = formatApiParams(params, "template");
|
|
56
|
+
return import_utils.request.getRequest().post(_params == null ? void 0 : _params.url, _params == null ? void 0 : _params.params);
|
|
57
|
+
};
|
|
58
|
+
var getExportFile = async (params) => {
|
|
59
|
+
const _params = formatApiParams(params, "export_file");
|
|
60
|
+
return await import_utils.request.getRequest().get(_params == null ? void 0 : _params.url, _params == null ? void 0 : _params.params);
|
|
61
|
+
};
|
|
62
|
+
var getImportLog = async (params) => {
|
|
63
|
+
const _params = formatApiParams(params, "import_log");
|
|
64
|
+
return await import_utils.request.getRequest().get(_params == null ? void 0 : _params.url, _params == null ? void 0 : _params.params);
|
|
31
65
|
};
|
|
32
|
-
var batchImport = (params) => import_utils.request.getRequest().post("/shop/form/data/import", params);
|
|
33
|
-
var importTemplate = (params) => import_utils.request.getRequest().post("/shop/form/data/download-template", params);
|
|
34
|
-
var historyData = async (params) => await import_utils.request.getRequest().get("/shop/form/data/task", params);
|
|
35
66
|
// Annotate the CommonJS export names for ESM import in node:
|
|
36
67
|
0 && (module.exports = {
|
|
37
68
|
batchImport,
|
|
38
69
|
exportData,
|
|
39
|
-
|
|
70
|
+
getExportFile,
|
|
71
|
+
getImportLog,
|
|
40
72
|
importTemplate
|
|
41
73
|
});
|
|
@@ -161,22 +161,35 @@ declare type SortDetail = {
|
|
|
161
161
|
};
|
|
162
162
|
/** 导入导出模式 */
|
|
163
163
|
export declare type ExportImportModeType = "import" | "export" | "export_file" | "import_log";
|
|
164
|
+
/**
|
|
165
|
+
* @title: 导出导入api
|
|
166
|
+
* @description:
|
|
167
|
+
* @return {*}
|
|
168
|
+
* @Author: WangHan
|
|
169
|
+
* @Date: 2024-09-11 15:44
|
|
170
|
+
*/
|
|
171
|
+
export declare type ApiProps = {
|
|
172
|
+
export?: string;
|
|
173
|
+
import?: string;
|
|
174
|
+
export_file: string;
|
|
175
|
+
import_log?: string;
|
|
176
|
+
template?: string;
|
|
177
|
+
};
|
|
164
178
|
/**
|
|
165
179
|
* 导入导出配置
|
|
166
180
|
*/
|
|
167
181
|
export declare type ExportImportType = {
|
|
168
182
|
/** 是否展示 */
|
|
169
183
|
show: boolean;
|
|
170
|
-
/** 表id */
|
|
171
|
-
formId?: string;
|
|
172
|
-
/** 表key */
|
|
173
|
-
formCode?: string;
|
|
174
184
|
/** 当前所选项 */
|
|
175
185
|
selectLists: string[];
|
|
176
186
|
/** 导入模版链接 */
|
|
177
187
|
templateFileUrl: string;
|
|
178
188
|
/** 标题 */
|
|
179
189
|
title: string;
|
|
190
|
+
hiddenKeys?: string[];
|
|
191
|
+
apiUrl?: ApiProps;
|
|
192
|
+
otherParams?: any;
|
|
180
193
|
};
|
|
181
194
|
export declare type GridViewProps = {
|
|
182
195
|
columns: any;
|
package/lowcode/table/meta.ts
CHANGED
|
@@ -2101,20 +2101,47 @@ export default {
|
|
|
2101
2101
|
defaultValue: false,
|
|
2102
2102
|
},
|
|
2103
2103
|
{
|
|
2104
|
-
name: "exportImport.
|
|
2105
|
-
title: { label: "
|
|
2106
|
-
|
|
2107
|
-
setter: "StringSetter",
|
|
2104
|
+
name: "exportImport.hiddenKeys",
|
|
2105
|
+
title: { label: "隐藏字段", tip: "比如:['import'] '导入(import)|导出(export)|导出文件(export_file)|导入日志(import_log)'" },
|
|
2106
|
+
setter: "ObjectSetter",
|
|
2108
2107
|
condition: {
|
|
2109
2108
|
type: "JSFunction",
|
|
2110
2109
|
value: 'target => !!target.getProps().getPropValue("exportImport.show")',
|
|
2111
2110
|
},
|
|
2112
2111
|
},
|
|
2113
2112
|
{
|
|
2114
|
-
name: "exportImport.
|
|
2115
|
-
title: { label: "
|
|
2116
|
-
|
|
2117
|
-
|
|
2113
|
+
name: "exportImport.apiUrl",
|
|
2114
|
+
title: { label: "接口地址", tip: "接口地址 | [{export: '/shop/order/task'}]" },
|
|
2115
|
+
setter: "ObjectSetter",
|
|
2116
|
+
condition: {
|
|
2117
|
+
type: "JSFunction",
|
|
2118
|
+
value: 'target => !!target.getProps().getPropValue("exportImport.show")',
|
|
2119
|
+
},
|
|
2120
|
+
},
|
|
2121
|
+
// {
|
|
2122
|
+
// name: "exportImport.formId",
|
|
2123
|
+
// title: { label: "表单ID", tip: "表单ID" },
|
|
2124
|
+
// propType: "string",
|
|
2125
|
+
// setter: "StringSetter",
|
|
2126
|
+
// condition: {
|
|
2127
|
+
// type: "JSFunction",
|
|
2128
|
+
// value: 'target => !!target.getProps().getPropValue("exportImport.show")',
|
|
2129
|
+
// },
|
|
2130
|
+
// },
|
|
2131
|
+
// {
|
|
2132
|
+
// name: "exportImport.formCode",
|
|
2133
|
+
// title: { label: "表单Code", tip: "表单Code|表单的唯一标识" },
|
|
2134
|
+
// propType: "string",
|
|
2135
|
+
// setter: "StringSetter",
|
|
2136
|
+
// condition: {
|
|
2137
|
+
// type: "JSFunction",
|
|
2138
|
+
// value: 'target => !!target.getProps().getPropValue("exportImport.show")',
|
|
2139
|
+
// },
|
|
2140
|
+
// },
|
|
2141
|
+
{
|
|
2142
|
+
name: "exportImport.otherParams",
|
|
2143
|
+
title: { label: "接口其他参数", tip: "接口其他参数" },
|
|
2144
|
+
setter: "ObjectSetter",
|
|
2118
2145
|
condition: {
|
|
2119
2146
|
type: "JSFunction",
|
|
2120
2147
|
value: 'target => !!target.getProps().getPropValue("exportImport.show")',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.25",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@zxing/library": "0.21.2",
|
|
66
66
|
"@pisell/utils": "2.0.1",
|
|
67
67
|
"@pisell/icon": "0.0.11",
|
|
68
|
-
"@pisell/date-picker": "1.0.
|
|
68
|
+
"@pisell/date-picker": "1.0.101"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"react": "^18.0.0",
|