@pisell/materials 2.2.2 → 2.2.4

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.
Files changed (133) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +13 -13
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +12 -12
  11. package/es/components/MultipleContainersSortList/index.d.ts +5 -5
  12. package/es/components/MultipleContainersSortList/index.js +10 -10
  13. package/es/components/Pagination/index.d.ts +1 -1
  14. package/es/components/filter/components/FilterItem/index.js +5 -2
  15. package/es/components/filter/components/QuickFilter/index.js +2 -1
  16. package/es/components/filter/types.d.ts +1 -0
  17. package/es/components/sort/index.js +3 -1
  18. package/es/components/sort/index.less +3 -0
  19. package/es/components/sort/types.d.ts +1 -0
  20. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +7 -0
  21. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.js +143 -0
  22. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.less +29 -0
  23. package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +7 -0
  24. package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.js +87 -0
  25. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +8 -0
  26. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.js +41 -0
  27. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.less +5 -0
  28. package/es/components/table/Actions/component/ExportImport/components/ImportLog/Detail.d.ts +4 -0
  29. package/es/components/table/Actions/component/ExportImport/components/ImportLog/Detail.js +97 -0
  30. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +7 -0
  31. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.js +137 -0
  32. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.less +48 -0
  33. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +10 -0
  34. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.js +149 -0
  35. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.less +97 -0
  36. package/es/components/table/Actions/component/ExportImport/index.d.ts +8 -0
  37. package/es/components/table/Actions/component/ExportImport/index.js +236 -0
  38. package/es/components/table/Actions/component/ExportImport/index.less +194 -0
  39. package/es/components/table/Actions/component/ExportImport/utils/date.d.ts +8 -0
  40. package/es/components/table/Actions/component/ExportImport/utils/date.js +19 -0
  41. package/es/components/table/Actions/component/ExportImport/utils/download.d.ts +3 -0
  42. package/es/components/table/Actions/component/ExportImport/utils/download.js +39 -0
  43. package/es/components/table/Actions/component/ExportImport/utils/file.d.ts +7 -0
  44. package/es/components/table/Actions/component/ExportImport/utils/file.js +21 -0
  45. package/es/components/table/Actions/component/Group/PopoverContent.d.ts +2 -2
  46. package/es/components/table/Actions/component/Group/PopoverContent.js +11 -7
  47. package/es/components/table/Actions/index.d.ts +3 -2
  48. package/es/components/table/Actions/index.js +12 -8
  49. package/es/components/table/BasicTable/index.js +11 -1
  50. package/es/components/table/Table/index.js +6 -0
  51. package/es/components/table/Table/utils.d.ts +1 -1
  52. package/es/components/table/hooks/useTableSetting.d.ts +2 -1
  53. package/es/components/table/hooks/useTableSetting.js +2 -1
  54. package/es/components/table/index.js +15 -13
  55. package/es/components/table/model.d.ts +2 -0
  56. package/es/components/table/model.js +15 -1
  57. package/es/components/table/serve.d.ts +11 -0
  58. package/es/components/table/serve.js +38 -0
  59. package/es/components/table/status.d.ts +19 -0
  60. package/es/components/table/status.js +26 -0
  61. package/es/components/table/types.d.ts +21 -0
  62. package/es/components/table/utils.d.ts +15 -0
  63. package/es/components/table/utils.js +26 -0
  64. package/es/components/virtual-keyboard/Time/index.js +1 -1
  65. package/es/locales/en-US.d.ts +46 -0
  66. package/es/locales/en-US.js +59 -1
  67. package/es/locales/zh-CN.d.ts +46 -0
  68. package/es/locales/zh-CN.js +59 -1
  69. package/es/locales/zh-TW.d.ts +46 -0
  70. package/es/locales/zh-TW.js +59 -1
  71. package/lib/components/MultipleContainersSortList/index.d.ts +5 -5
  72. package/lib/components/MultipleContainersSortList/index.js +16 -11
  73. package/lib/components/Pagination/index.d.ts +1 -1
  74. package/lib/components/filter/components/FilterItem/index.js +11 -2
  75. package/lib/components/filter/components/QuickFilter/index.js +2 -1
  76. package/lib/components/filter/types.d.ts +1 -0
  77. package/lib/components/sort/index.js +4 -9
  78. package/lib/components/sort/index.less +3 -0
  79. package/lib/components/sort/types.d.ts +1 -0
  80. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +7 -0
  81. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.js +150 -0
  82. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.less +29 -0
  83. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +7 -0
  84. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.js +78 -0
  85. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +8 -0
  86. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.js +60 -0
  87. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.less +5 -0
  88. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/Detail.d.ts +4 -0
  89. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/Detail.js +117 -0
  90. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +7 -0
  91. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.js +141 -0
  92. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.less +48 -0
  93. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +10 -0
  94. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.js +124 -0
  95. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.less +97 -0
  96. package/lib/components/table/Actions/component/ExportImport/index.d.ts +8 -0
  97. package/lib/components/table/Actions/component/ExportImport/index.js +213 -0
  98. package/lib/components/table/Actions/component/ExportImport/index.less +194 -0
  99. package/lib/components/table/Actions/component/ExportImport/utils/date.d.ts +8 -0
  100. package/lib/components/table/Actions/component/ExportImport/utils/date.js +49 -0
  101. package/lib/components/table/Actions/component/ExportImport/utils/download.d.ts +3 -0
  102. package/lib/components/table/Actions/component/ExportImport/utils/download.js +62 -0
  103. package/lib/components/table/Actions/component/ExportImport/utils/file.d.ts +7 -0
  104. package/lib/components/table/Actions/component/ExportImport/utils/file.js +55 -0
  105. package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +2 -2
  106. package/lib/components/table/Actions/component/Group/PopoverContent.js +2 -1
  107. package/lib/components/table/Actions/index.d.ts +3 -2
  108. package/lib/components/table/Actions/index.js +11 -7
  109. package/lib/components/table/BasicTable/index.js +9 -0
  110. package/lib/components/table/Table/index.js +6 -0
  111. package/lib/components/table/Table/utils.d.ts +1 -1
  112. package/lib/components/table/hooks/useTableSetting.d.ts +2 -1
  113. package/lib/components/table/hooks/useTableSetting.js +2 -1
  114. package/lib/components/table/index.js +14 -12
  115. package/lib/components/table/model.d.ts +2 -0
  116. package/lib/components/table/model.js +11 -1
  117. package/lib/components/table/serve.d.ts +11 -0
  118. package/lib/components/table/serve.js +41 -0
  119. package/lib/components/table/status.d.ts +19 -0
  120. package/lib/components/table/status.js +55 -0
  121. package/lib/components/table/types.d.ts +21 -0
  122. package/lib/components/table/utils.d.ts +15 -0
  123. package/lib/components/table/utils.js +40 -0
  124. package/lib/components/virtual-keyboard/Time/index.js +1 -1
  125. package/lib/locales/en-US.d.ts +46 -0
  126. package/lib/locales/en-US.js +51 -1
  127. package/lib/locales/zh-CN.d.ts +46 -0
  128. package/lib/locales/zh-CN.js +51 -1
  129. package/lib/locales/zh-TW.d.ts +46 -0
  130. package/lib/locales/zh-TW.js +51 -1
  131. package/lowcode/table/meta.ts +117 -1
  132. package/lowcode/table/snippets.ts +14 -0
  133. package/package.json +3 -3
@@ -1,14 +1,15 @@
1
- import React, { useMemo } from "react";
2
1
  import { Form } from "antd";
2
+ import React, { useMemo } from "react";
3
3
  import Filter from "../../filter";
4
4
  import Sort from "../../sort";
5
+ import Buttons from "../Header/Buttons";
5
6
  import ColumnsSetting from "./component/ColumnsSetting";
7
+ import ExportImport from "./component/ExportImport";
8
+ import GallerySetting from "./component/GallerySetting";
6
9
  import Group from "./component/Group";
7
- import Buttons from "../Header/Buttons";
8
10
  import ViewMode from "./component/ViewMode";
9
- import GallerySetting from "./component/GallerySetting";
10
- import "./index.less";
11
11
  import useIsMobileTable from "../hooks/useIsMobileTable";
12
+ import "./index.less";
12
13
  var Actions = function Actions(_ref) {
13
14
  var filter = _ref.filter,
14
15
  sort = _ref.sort,
@@ -18,7 +19,8 @@ var Actions = function Actions(_ref) {
18
19
  localPagination = _ref.localPagination,
19
20
  buttons = _ref.buttons,
20
21
  view = _ref.view,
21
- gallery = _ref.gallery;
22
+ gallery = _ref.gallery,
23
+ exportImport = _ref.exportImport;
22
24
  var form = Form.useFormInstance();
23
25
  var isMobileBool = useIsMobileTable();
24
26
  var viewMode = Form.useWatch("view_mode", {
@@ -26,8 +28,8 @@ var Actions = function Actions(_ref) {
26
28
  preserve: true
27
29
  });
28
30
  var showActions = useMemo(function () {
29
- return (filter === null || filter === void 0 ? void 0 : filter.show) || (sort === null || sort === void 0 ? void 0 : sort.show) || (columnSetting === null || columnSetting === void 0 ? void 0 : columnSetting.show) || (dataSourceGroup === null || dataSourceGroup === void 0 ? void 0 : dataSourceGroup.show) || view.multiple;
30
- }, [filter === null || filter === void 0 ? void 0 : filter.show, sort === null || sort === void 0 ? void 0 : sort.show, columnSetting === null || columnSetting === void 0 ? void 0 : columnSetting.show, dataSourceGroup === null || dataSourceGroup === void 0 ? void 0 : dataSourceGroup.show, view.multiple]);
31
+ return (filter === null || filter === void 0 ? void 0 : filter.show) || (sort === null || sort === void 0 ? void 0 : sort.show) || (columnSetting === null || columnSetting === void 0 ? void 0 : columnSetting.show) || (dataSourceGroup === null || dataSourceGroup === void 0 ? void 0 : dataSourceGroup.show) || view.multiple || (exportImport === null || exportImport === void 0 ? void 0 : exportImport.show);
32
+ }, [filter === null || filter === void 0 ? void 0 : filter.show, sort === null || sort === void 0 ? void 0 : sort.show, columnSetting === null || columnSetting === void 0 ? void 0 : columnSetting.show, dataSourceGroup === null || dataSourceGroup === void 0 ? void 0 : dataSourceGroup.show, view.multiple, exportImport === null || exportImport === void 0 ? void 0 : exportImport.show]);
31
33
  return showActions ? /*#__PURE__*/React.createElement("div", {
32
34
  className: "materials-grid-actions"
33
35
  }, /*#__PURE__*/React.createElement("div", {
@@ -48,7 +50,9 @@ var Actions = function Actions(_ref) {
48
50
  noStyle: true
49
51
  }, /*#__PURE__*/React.createElement(ViewMode, {
50
52
  view: view
51
- })), (dataSourceGroup === null || dataSourceGroup === void 0 ? void 0 : dataSourceGroup.show) && viewMode === "grid" && /*#__PURE__*/React.createElement(Form.Item, {
53
+ })), exportImport !== null && exportImport !== void 0 && exportImport.show ? /*#__PURE__*/React.createElement(ExportImport, {
54
+ exportImport: exportImport
55
+ }) : null, (dataSourceGroup === null || dataSourceGroup === void 0 ? void 0 : dataSourceGroup.show) && viewMode === "grid" && /*#__PURE__*/React.createElement(Form.Item, {
52
56
  name: "group_by",
53
57
  noStyle: true
54
58
  }, /*#__PURE__*/React.createElement(Group, {
@@ -15,9 +15,11 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
15
15
  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; }
16
16
  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; }
17
17
  import { Table, Form } from "antd";
18
- import React, { useState, useMemo, useCallback } from "react";
18
+ import React, { useState, useMemo, useCallback, useEffect } from "react";
19
19
  import { FormPagination } from "../../Pagination";
20
20
  import { calcFilterSort } from "../Table/utils";
21
+ import { useSharedState } from "../../../hooks";
22
+ import { Context } from "../model";
21
23
  import { isArr } from "@pisell/utils";
22
24
  var BasicTable = function BasicTable(props) {
23
25
  var _pagination$pageSizeO;
@@ -43,6 +45,8 @@ var BasicTable = function BasicTable(props) {
43
45
  form: form,
44
46
  preserve: true
45
47
  });
48
+ var _useSharedState = useSharedState(Context),
49
+ dispatch = _useSharedState.dispatch;
46
50
  var isGroup = useMemo(function () {
47
51
  return isArr(group) && group.length > 0;
48
52
  }, [group]);
@@ -97,6 +101,12 @@ var BasicTable = function BasicTable(props) {
97
101
  });
98
102
  return _expandedRowKeys;
99
103
  }, [_dataSource === null || _dataSource === void 0 ? void 0 : _dataSource.list]);
104
+ useEffect(function () {
105
+ dispatch({
106
+ type: "setCurrentDataSource",
107
+ payload: (_dataSource === null || _dataSource === void 0 ? void 0 : _dataSource.list) || []
108
+ });
109
+ }, [_dataSource === null || _dataSource === void 0 ? void 0 : _dataSource.list]);
100
110
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Table, _extends({
101
111
  key: defaultExpandedRowKeys.join("-")
102
112
  }, other, {
@@ -87,6 +87,12 @@ var GridViewTable = function GridViewTable(_ref) {
87
87
  rowKey: tableProps.rowKey,
88
88
  filter: filter
89
89
  });
90
+ useEffect(function () {
91
+ dispatch({
92
+ type: "setOriginResultDataSource",
93
+ payload: dataSource || []
94
+ });
95
+ }, [dataSource]);
90
96
  useEffect(function () {
91
97
  onDataSourceChange === null || onDataSourceChange === void 0 ? void 0 : onDataSourceChange(dataSource);
92
98
  }, [JSON.stringify(dataSource)]);
@@ -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
- }) => ("view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_setting" | "filter_setting")[];
158
+ }) => ("filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
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,5 +1,5 @@
1
1
  import { FilterType } from "../../filter/types";
2
- import { ColumnSettingType, DataSourceGroupType, GallerySettingType, GridViewType, ModeType, SortType } from "../types";
2
+ import { ColumnSettingType, DataSourceGroupType, GallerySettingType, GridViewType, ModeType, SortType, ExportImportModeType } from "../types";
3
3
  declare type UseTableSettingProps = {
4
4
  tableId?: string;
5
5
  filter: FilterType;
@@ -11,6 +11,7 @@ declare type UseTableSettingProps = {
11
11
  currentViewMode: ModeType;
12
12
  gallery?: GallerySettingType;
13
13
  currentSettingHash: string;
14
+ exportImport?: ExportImportModeType;
14
15
  };
15
16
  declare const useTableSetting: (params: UseTableSettingProps) => {
16
17
  setTableSetting: (values: Record<string, any>) => void;
@@ -16,7 +16,8 @@ var useTableSetting = function useTableSetting(params) {
16
16
  currentViewMode = params.currentViewMode,
17
17
  propsColumns = params.columns,
18
18
  gallery = params.gallery,
19
- currentSettingHash = params.currentSettingHash;
19
+ currentSettingHash = params.currentSettingHash,
20
+ exportImport = params.exportImport;
20
21
  var columnsMap = useMemo(function () {
21
22
  return new Map(propsColumns.map(function (item) {
22
23
  return [item.key, item];
@@ -1,5 +1,5 @@
1
1
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- var _excluded = ["dataSource", "columns", "dispatch", "style", "filter", "sort", "buttons", "actionButtons", "title", "summary", "onValuesChange", "columnSetting", "dataSourceGroup", "view", "gallery", "currentSettingKey"];
2
+ var _excluded = ["dataSource", "columns", "dispatch", "style", "filter", "sort", "buttons", "actionButtons", "title", "summary", "onValuesChange", "columnSetting", "dataSourceGroup", "view", "gallery", "currentSettingKey", "exportImport"];
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5
5
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -14,22 +14,22 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
14
14
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
15
15
  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; }
16
16
  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; }
17
- import React, { useEffect, useImperativeHandle, useMemo, forwardRef, useRef } from "react";
18
- import { Form } from "antd";
19
17
  import { useSize } from "ahooks";
20
- import View from "./View";
21
- import Header from "./Header";
22
- import Actions from "./Actions";
23
- import Summary from "./Summary";
18
+ import { Form } from "antd";
19
+ import React, { forwardRef, useEffect, useImperativeHandle, useMemo, useRef } from "react";
24
20
  import { useSharedState } from "../../hooks";
25
- import { Provider, Context, formatColumn } from "./model";
26
21
  import useEngineContext from "../../hooks/useEngineContext";
27
- import useTableSetting from "./hooks/useTableSetting";
28
- import useTriggerValuesChange from "./hooks/useTriggerValuesChange";
22
+ import Actions from "./Actions";
23
+ import Header from "./Header";
24
+ import Summary from "./Summary";
29
25
  import { clearTableSettingToLocalStorage, getCurrentViewModeFromLocalStorage, getHash, getTableSettingFromLocalStorage, mergeColumnSetting, omit, stringify } from "./Table/utils";
30
- import useTransSortSetting from "./hooks/useTransSortSetting";
31
- import useTransFilterSetting from "./hooks/useTransFilterSetting";
26
+ import View from "./View";
27
+ import useTableSetting from "./hooks/useTableSetting";
32
28
  import useTransDataSourceGroupSetting from "./hooks/useTransDataSourceGroupSetting";
29
+ import useTransFilterSetting from "./hooks/useTransFilterSetting";
30
+ import useTransSortSetting from "./hooks/useTransSortSetting";
31
+ import useTriggerValuesChange from "./hooks/useTriggerValuesChange";
32
+ import { Context, Provider, formatColumn } from "./model";
33
33
  import "./index.less";
34
34
  var defaultView = {
35
35
  defaultViewMode: "grid",
@@ -55,6 +55,7 @@ var GridView = Provider( /*#__PURE__*/forwardRef(function (props, ref) {
55
55
  view = _props$view === void 0 ? defaultView : _props$view,
56
56
  gallery = props.gallery,
57
57
  currentSettingKey = props.currentSettingKey,
58
+ exportImport = props.exportImport,
58
59
  other = _objectWithoutProperties(props, _excluded);
59
60
  var modal = useSharedState(Context);
60
61
  var _Form$useForm = Form.useForm(),
@@ -295,7 +296,8 @@ var GridView = Provider( /*#__PURE__*/forwardRef(function (props, ref) {
295
296
  sort: sort,
296
297
  tableId: tableId,
297
298
  localPagination: other === null || other === void 0 ? void 0 : (_other$pagination8 = other.pagination) === null || _other$pagination8 === void 0 ? void 0 : _other$pagination8.localPagination,
298
- gallery: gallery
299
+ gallery: gallery,
300
+ exportImport: exportImport
299
301
  }), /*#__PURE__*/React.createElement(Summary, {
300
302
  summary: summary
301
303
  }), /*#__PURE__*/React.createElement(View, _extends({}, props, {
@@ -14,6 +14,8 @@ interface FormState {
14
14
  utils: any;
15
15
  localPagination: boolean;
16
16
  tableWidth: number;
17
+ currentDataSource: any[];
18
+ originResultDataSource: any[];
17
19
  }
18
20
  export declare const Provider: (ComponentUi: any) => (props: any, ref: any) => import("react").JSX.Element, Context: import("react").Context<{
19
21
  state: FormState;
@@ -29,7 +29,11 @@ var defaultState = {
29
29
  edit: 0
30
30
  }
31
31
  },
32
- tableWidth: 500
32
+ tableWidth: 500,
33
+ // 当前页展示的数据
34
+ currentDataSource: [],
35
+ // 经过一系列格式化之后的所有数据
36
+ originResultDataSource: []
33
37
  };
34
38
  var _getContext = getContext({
35
39
  namespace: "state",
@@ -105,6 +109,16 @@ var _getContext = getContext({
105
109
  return _objectSpread(_objectSpread({}, state), {}, {
106
110
  tableWidth: payload
107
111
  });
112
+ },
113
+ setCurrentDataSource: function setCurrentDataSource(state, payload) {
114
+ return _objectSpread(_objectSpread({}, state), {}, {
115
+ currentDataSource: payload
116
+ });
117
+ },
118
+ setOriginResultDataSource: function setOriginResultDataSource(state, payload) {
119
+ return _objectSpread(_objectSpread({}, state), {}, {
120
+ originResultDataSource: payload
121
+ });
108
122
  }
109
123
  }
110
124
  }),
@@ -0,0 +1,11 @@
1
+ declare type exportParams = {
2
+ ids?: Array<string | number>;
3
+ file_name?: string;
4
+ form_id?: string | number;
5
+ code?: string;
6
+ };
7
+ export declare const exportData: (params: exportParams) => Promise<any>;
8
+ export declare const batchImport: (params: any) => Promise<any>;
9
+ export declare const importTemplate: (params: exportParams) => Promise<any>;
10
+ export declare const historyData: (params: any) => Promise<any>;
11
+ export {};
@@ -0,0 +1,38 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
3
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
+ import { request } from "./utils";
6
+ // 导出
7
+ export var exportData = function exportData(params) {
8
+ return request.getRequest().post("/shop/form/data/export", params);
9
+ };
10
+
11
+ // 导入
12
+ export var batchImport = function batchImport(params) {
13
+ return request.getRequest().post('/shop/form/data/import', params);
14
+ };
15
+
16
+ // 导入模版
17
+ export var importTemplate = function importTemplate(params) {
18
+ return request.getRequest().post('/shop/form/data/download-template', params);
19
+ };
20
+ export var historyData = /*#__PURE__*/function () {
21
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
22
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
23
+ while (1) switch (_context.prev = _context.next) {
24
+ case 0:
25
+ _context.next = 2;
26
+ return request.getRequest().get('/shop/form/data/task', params);
27
+ case 2:
28
+ return _context.abrupt("return", _context.sent);
29
+ case 3:
30
+ case "end":
31
+ return _context.stop();
32
+ }
33
+ }, _callee);
34
+ }));
35
+ return function historyData(_x) {
36
+ return _ref.apply(this, arguments);
37
+ };
38
+ }();
@@ -0,0 +1,19 @@
1
+ interface defaultOptions {
2
+ exportType: string;
3
+ footerHintTypes: string[];
4
+ okShowButtonTypes: string[];
5
+ exportValue: string;
6
+ importValue: string;
7
+ }
8
+ export declare const defaultOptions: defaultOptions;
9
+ interface SomeArray {
10
+ [index: string]: string;
11
+ }
12
+ export declare const suffixOptions: SomeArray;
13
+ export declare const exportImportOptions: {
14
+ import: any;
15
+ export: any;
16
+ export_file: any;
17
+ import_log: any;
18
+ };
19
+ export {};
@@ -0,0 +1,26 @@
1
+ import { getText } from "../../locales/index";
2
+ // 默认值
3
+ export var defaultOptions = {
4
+ exportType: 'current-page',
5
+ footerHintTypes: ["export_file", "import_log"],
6
+ okShowButtonTypes: ["export", "import"],
7
+ exportValue: 'export',
8
+ importValue: 'import'
9
+ };
10
+ export var suffixOptions = {
11
+ '1': "".concat(getText('page.customer.list.table.num')),
12
+ '2': "".concat(getText('page.customer.suffix')),
13
+ product: "".concat(getText('page.product.suffix')),
14
+ '4': "".concat(getText('page.voucher.suffix')),
15
+ '5': "".concat(getText('page.recharge.suffix')),
16
+ '6': "".concat(getText('page.ticket.suffix')),
17
+ '7': "".concat(getText('page.package.ticket.suffix'))
18
+ };
19
+
20
+ // 导入导出
21
+ export var exportImportOptions = {
22
+ import: getText('table-action-export-import-button-import'),
23
+ export: getText('table-action-export-import-button'),
24
+ export_file: getText('table-action-export-import-export-title'),
25
+ import_log: getText('table-action-export-import-import-title')
26
+ };
@@ -26,6 +26,7 @@ declare type DataSourceListItemType = {
26
26
  columnKey?: string;
27
27
  label?: string;
28
28
  name?: string | string[];
29
+ isHidden?: boolean;
29
30
  };
30
31
  /**
31
32
  * 数据源分组总配置
@@ -158,6 +159,25 @@ declare type SortDetail = {
158
159
  fromItem: Record<string, any>;
159
160
  toItem: Record<string, any>;
160
161
  };
162
+ /** 导入导出模式 */
163
+ export declare type ExportImportModeType = "import" | "export" | "export_file" | "import_log";
164
+ /**
165
+ * 导入导出配置
166
+ */
167
+ export declare type ExportImportType = {
168
+ /** 是否展示 */
169
+ show: boolean;
170
+ /** 表id */
171
+ formId?: string;
172
+ /** 表key */
173
+ formCode?: string;
174
+ /** 当前所选项 */
175
+ selectLists: string[];
176
+ /** 导入模版链接 */
177
+ templateFileUrl: string;
178
+ /** 标题 */
179
+ title: string;
180
+ };
161
181
  export declare type GridViewProps = {
162
182
  columns: any;
163
183
  dataSource: any[];
@@ -177,6 +197,7 @@ export declare type GridViewProps = {
177
197
  actionButtons: any;
178
198
  sort: SortType;
179
199
  title: any;
200
+ exportImport: ExportImportType;
180
201
  onValuesChange: (changedValues: any, values: any) => void;
181
202
  summary: any;
182
203
  utils: any;
@@ -0,0 +1,15 @@
1
+ declare type RType = (url: string, data?: {} | undefined, config?: {} | undefined) => Promise<any>;
2
+ declare class Request {
3
+ private request;
4
+ constructor();
5
+ setRequest(val: any): void;
6
+ getRequest(): {
7
+ get: RType;
8
+ post: RType;
9
+ put: RType;
10
+ remove: RType;
11
+ custom: RType;
12
+ };
13
+ }
14
+ export declare const request: Request;
15
+ export {};
@@ -0,0 +1,26 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
4
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
+ var Request = /*#__PURE__*/function () {
9
+ function Request() {
10
+ _classCallCheck(this, Request);
11
+ _defineProperty(this, "request", {});
12
+ }
13
+ _createClass(Request, [{
14
+ key: "setRequest",
15
+ value: function setRequest(val) {
16
+ this.request = val;
17
+ }
18
+ }, {
19
+ key: "getRequest",
20
+ value: function getRequest() {
21
+ return this.request;
22
+ }
23
+ }]);
24
+ return Request;
25
+ }();
26
+ export var request = new Request();
@@ -1,7 +1,7 @@
1
1
  import React, { useMemo, useEffect } from "react";
2
2
  import VirtualKeyboard from "../index";
3
3
  import "./index.less";
4
- import { formatStringToTime } from "./utils.tsx";
4
+ import { formatStringToTime } from "./utils";
5
5
  import { getText } from "../../../locales";
6
6
  import dayjs from "dayjs";
7
7
  var items = [{
@@ -50,5 +50,51 @@ declare const _default: {
50
50
  'batch-editor-what-price': string;
51
51
  'batch-editor-quick-edit-title': (product: string, num: string) => string;
52
52
  'batch-editor-quick-edit-title-2': (product: string) => string;
53
+ 'table-action-export-import-export-success': string;
54
+ 'table-action-export-import-button': string;
55
+ 'table-action-export-import-export-range': string;
56
+ 'table-action-export-import-current-page': string;
57
+ 'table-action-export-import-all-records': string;
58
+ 'table-action-export-import-selected-records': string;
59
+ 'table-action-export-import-selected': string;
60
+ 'table-action-export-import-item': (length: number) => string;
61
+ 'table-action-export-import-product': string;
62
+ 'table-action-export-import-table-text-input-title': string;
63
+ 'table-action-export-import-table-text-input-describe': string;
64
+ 'table-action-export-import-table-error-file': string;
65
+ 'table-action-export-import-import-success': string;
66
+ 'table-action-export-import-import-phone': string;
67
+ 'table-action-export-import-table-success-download': string;
68
+ 'table-action-export-import-table-textimport-product': string;
69
+ 'table-action-export-import-table-text-product-template': string;
70
+ 'table-action-export-import-table-text-click-download': string;
71
+ 'table-action-export-import-table-text-edit-file': string;
72
+ 'table-action-export-import-button-import': string;
73
+ 'table-action-export-import-cancel': string;
74
+ 'table-action-export-import-file-completed': string;
75
+ 'table-action-export-import-file-processing': string;
76
+ 'table-action-export-import-file-pending': string;
77
+ 'table-action-export-import-file-refresh': string;
78
+ 'table-action-export-import-export-title': string;
79
+ 'table-action-export-import-file-hint': string;
80
+ 'table-action-export-import-file-name': string;
81
+ 'table-action-export-import-file-content': string;
82
+ 'table-action-export-import-file-content-all': string;
83
+ 'table-action-export-import-file-content-part': string;
84
+ 'table-action-export-import-file-status': string;
85
+ 'table-action-export-import-file-account': string;
86
+ 'table-action-export-import-file-created': string;
87
+ 'table-action-export-import-file-record': (length: number) => string;
88
+ 'table-action-export-import-import-title': string;
89
+ 'table-action-export-import-log-hint': string;
90
+ 'table-action-export-import-log-name': string;
91
+ 'table-action-export-import-log-result': string;
92
+ 'table-action-export-import-log-ok': (num: number) => string;
93
+ 'table-action-export-import-log-err': (num: number) => string;
94
+ 'table-action-export-import-log-check': string;
95
+ 'table-action-export-import-log-detail-title': string;
96
+ 'table-action-export-import-log-err-log': string;
97
+ 'table-action-export-import-log-copy': string;
98
+ 'table-action-export-import-table-success-copy': string;
53
99
  };
54
100
  export default _default;
@@ -59,5 +59,63 @@ export default {
59
59
  },
60
60
  'batch-editor-quick-edit-title-2': function batchEditorQuickEditTitle2(product) {
61
61
  return "You have selected ".concat(product);
62
- }
62
+ },
63
+ // 导出
64
+ 'table-action-export-import-export-success': 'Export successful! ',
65
+ 'table-action-export-import-button': 'Export',
66
+ 'table-action-export-import-export-range': 'Export Range',
67
+ 'table-action-export-import-current-page': 'Current Page',
68
+ 'table-action-export-import-all-records': 'All Records',
69
+ 'table-action-export-import-selected-records': 'Selected Records',
70
+ 'table-action-export-import-selected': 'Selected',
71
+ 'table-action-export-import-item': function tableActionExportImportItem(length) {
72
+ return "".concat(length, " ").concat(length > 1 ? 'items' : 'item');
73
+ },
74
+ 'table-action-export-import-product': 'Export Products',
75
+ // 导入
76
+ 'table-action-export-import-table-text-input-title': 'Click or drag file to this area to upload',
77
+ 'table-action-export-import-table-text-input-describe': 'Support both single and bulk uploads. Do not upload data file other than supported template.',
78
+ 'table-action-export-import-table-error-file': 'Only supports uploading files in.csv,.xls,.xlsx format.',
79
+ 'table-action-export-import-import-success': 'Import successful! ',
80
+ 'table-action-export-import-import-phone': 'Whether to replace data with the same mobile number?',
81
+ 'table-action-export-import-table-success-download': 'Download Success',
82
+ 'table-action-export-import-table-textimport-product': 'Import Products',
83
+ 'table-action-export-import-table-text-product-template': 'Import Template',
84
+ 'table-action-export-import-table-text-click-download': 'Click to download',
85
+ 'table-action-export-import-table-text-edit-file': 'Replace file',
86
+ 'table-action-export-import-button-import': 'Import',
87
+ 'table-action-export-import-cancel': 'Cancel',
88
+ 'table-action-export-import-file-completed': 'completed',
89
+ 'table-action-export-import-file-processing': 'processing',
90
+ 'table-action-export-import-file-pending': 'pending',
91
+ 'table-action-export-import-file-refresh': 'Refresh',
92
+ 'table-action-export-import-export-title': 'Export File',
93
+ 'table-action-export-import-file-hint': 'Display only the last 10 export histories',
94
+ 'table-action-export-import-file-name': 'Export File',
95
+ 'table-action-export-import-file-content': 'Content',
96
+ 'table-action-export-import-file-content-all': 'All',
97
+ 'table-action-export-import-file-content-part': 'Selected',
98
+ 'table-action-export-import-file-status': 'Status',
99
+ 'table-action-export-import-file-account': 'Operator',
100
+ 'table-action-export-import-file-created': 'Operation Time',
101
+ 'table-action-export-import-file-record': function tableActionExportImportFileRecord(length) {
102
+ return "".concat(length, " ").concat(length > 1 ? 'records' : 'record');
103
+ },
104
+ // 导入日志
105
+ 'table-action-export-import-import-title': 'Import Log',
106
+ 'table-action-export-import-log-hint': 'Display only the last 10 import histories',
107
+ 'table-action-export-import-log-name': 'Import File',
108
+ 'table-action-export-import-log-result': 'Import Results',
109
+ 'table-action-export-import-log-ok': function tableActionExportImportLogOk(num) {
110
+ return "".concat(num, " successful");
111
+ },
112
+ 'table-action-export-import-log-err': function tableActionExportImportLogErr(num) {
113
+ return ", ".concat(num, " failures");
114
+ },
115
+ 'table-action-export-import-log-check': "View more",
116
+ // 导入详情
117
+ 'table-action-export-import-log-detail-title': 'Import Details',
118
+ 'table-action-export-import-log-err-log': 'Failure Log',
119
+ 'table-action-export-import-log-copy': 'Copy',
120
+ 'table-action-export-import-table-success-copy': 'Copy Success'
63
121
  };
@@ -50,5 +50,51 @@ declare const _default: {
50
50
  'batch-editor-what-price': string;
51
51
  'batch-editor-quick-edit-title': (product: string, num: string) => string;
52
52
  'batch-editor-quick-edit-title-2': (product: string) => string;
53
+ 'table-action-export-import-export-success': string;
54
+ 'table-action-export-import-button': string;
55
+ 'table-action-export-import-export-range': string;
56
+ 'table-action-export-import-current-page': string;
57
+ 'table-action-export-import-all-records': string;
58
+ 'table-action-export-import-selected-records': string;
59
+ 'table-action-export-import-selected': string;
60
+ 'table-action-export-import-item': (length: number) => string;
61
+ 'table-action-export-import-product': string;
62
+ 'table-action-export-import-table-text-input-title': string;
63
+ 'table-action-export-import-table-text-input-describe': string;
64
+ 'table-action-export-import-table-error-file': string;
65
+ 'table-action-export-import-import-success': string;
66
+ 'table-action-export-import-import-phone': string;
67
+ 'table-action-export-import-table-success-download': string;
68
+ 'table-action-export-import-table-textimport-product': string;
69
+ 'table-action-export-import-table-text-product-template': string;
70
+ 'table-action-export-import-table-text-click-download': string;
71
+ 'table-action-export-import-table-text-edit-file': string;
72
+ 'table-action-export-import-button-import': string;
73
+ 'table-action-export-import-cancel': string;
74
+ 'table-action-export-import-file-completed': string;
75
+ 'table-action-export-import-file-processing': string;
76
+ 'table-action-export-import-file-pending': string;
77
+ 'table-action-export-import-file-refresh': string;
78
+ 'table-action-export-import-export-title': string;
79
+ 'table-action-export-import-file-hint': string;
80
+ 'table-action-export-import-file-name': string;
81
+ 'table-action-export-import-file-content': string;
82
+ 'table-action-export-import-file-content-all': string;
83
+ 'table-action-export-import-file-content-part': string;
84
+ 'table-action-export-import-file-status': string;
85
+ 'table-action-export-import-file-account': string;
86
+ 'table-action-export-import-file-created': string;
87
+ 'table-action-export-import-file-record': (length: number) => string;
88
+ 'table-action-export-import-import-title': string;
89
+ 'table-action-export-import-log-hint': string;
90
+ 'table-action-export-import-log-name': string;
91
+ 'table-action-export-import-log-result': string;
92
+ 'table-action-export-import-log-ok': (num: number) => string;
93
+ 'table-action-export-import-log-err': (num: number) => string;
94
+ 'table-action-export-import-log-check': string;
95
+ 'table-action-export-import-log-detail-title': string;
96
+ 'table-action-export-import-log-err-log': string;
97
+ 'table-action-export-import-log-copy': string;
98
+ 'table-action-export-import-table-success-copy': string;
53
99
  };
54
100
  export default _default;