@pisell/materials 1.0.402 → 1.0.404

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 (139) hide show
  1. package/build/lowcode/assets-daily.json +13 -13
  2. package/build/lowcode/assets-dev.json +4 -4
  3. package/build/lowcode/assets-prod.json +13 -13
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +142 -142
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +16 -59
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +19 -62
  11. package/dist/umd/materials.min.css +1 -0
  12. package/dist/umd/materials.min.js +1 -0
  13. package/dist/umd/static/DotsSix.57d66266.svg +1 -0
  14. package/dist/umd/static/arrow-left.e542294f.svg +1 -0
  15. package/dist/umd/static/arrow-right.763f03e0.svg +1 -0
  16. package/dist/umd/static/filter-lines.04a54ae9.svg +1 -0
  17. package/dist/umd/static/help-circle.31c9be40.svg +1 -0
  18. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +1 -0
  19. package/es/components/date-picker/index.js +2 -2
  20. package/es/components/drag-sort-tree/index.d.ts +1 -0
  21. package/es/components/drag-sort-tree/index.js +1 -2
  22. package/es/components/pisell-config-provider/index.js +0 -2
  23. package/es/components/pisellModal/components/functions/index.d.ts +5 -23
  24. package/es/components/pisellModal/components/functions/index.js +2 -7
  25. package/es/components/pisellModal/index.d.ts +5 -20
  26. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +3 -3
  27. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.js +26 -30
  28. package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.js +1 -3
  29. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +3 -3
  30. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.js +21 -25
  31. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +3 -3
  32. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.js +31 -34
  33. package/es/components/table/Actions/component/ExportImport/index.d.ts +3 -3
  34. package/es/components/table/Actions/component/ExportImport/index.js +25 -32
  35. package/es/components/table/BasicTable/index.js +2 -1
  36. package/es/components/table/Gallery/index.js +1 -2
  37. package/es/components/table/Table/fields/rangePicker/Edit/index.js +11 -13
  38. package/es/components/table/Table/index.d.ts +2 -2
  39. package/es/components/table/Table/index.js +42 -68
  40. package/es/components/table/Table/index.less +0 -3
  41. package/es/components/table/Table/utils.d.ts +3 -15
  42. package/es/components/table/Table/utils.js +2 -6
  43. package/es/components/table/View/index.d.ts +2 -2
  44. package/es/components/table/View/index.js +16 -20
  45. package/es/components/table/hooks/useTableSetting.js +7 -29
  46. package/es/components/table/hooks/useTransDataSource.d.ts +0 -1
  47. package/es/components/table/hooks/useTransDataSource.js +4 -6
  48. package/es/components/table/index.js +5 -8
  49. package/es/components/table/index.less +0 -4
  50. package/es/components/table/serve.d.ts +0 -1
  51. package/es/components/table/serve.js +7 -38
  52. package/es/components/table/types.d.ts +0 -2
  53. package/es/index.d.ts +1 -3
  54. package/es/index.js +1 -3
  55. package/es/locales/en-US.d.ts +0 -12
  56. package/es/locales/en-US.js +0 -13
  57. package/es/locales/zh-CN.d.ts +0 -12
  58. package/es/locales/zh-CN.js +0 -13
  59. package/es/locales/zh-TW.d.ts +0 -12
  60. package/es/locales/zh-TW.js +0 -13
  61. package/lib/components/date-picker/index.js +2 -2
  62. package/lib/components/drag-sort-tree/index.d.ts +1 -0
  63. package/lib/components/drag-sort-tree/index.js +1 -0
  64. package/lib/components/pisell-config-provider/index.js +0 -2
  65. package/lib/components/pisellModal/components/functions/index.d.ts +5 -23
  66. package/lib/components/pisellModal/components/functions/index.js +7 -13
  67. package/lib/components/pisellModal/index.d.ts +5 -20
  68. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +3 -3
  69. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.js +2 -6
  70. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.js +1 -2
  71. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +3 -3
  72. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.js +2 -6
  73. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +3 -3
  74. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.js +2 -4
  75. package/lib/components/table/Actions/component/ExportImport/index.d.ts +3 -3
  76. package/lib/components/table/Actions/component/ExportImport/index.js +8 -13
  77. package/lib/components/table/BasicTable/index.js +2 -1
  78. package/lib/components/table/Gallery/index.js +1 -2
  79. package/lib/components/table/Table/fields/rangePicker/Edit/index.js +9 -1
  80. package/lib/components/table/Table/index.d.ts +2 -2
  81. package/lib/components/table/Table/index.js +34 -61
  82. package/lib/components/table/Table/index.less +0 -3
  83. package/lib/components/table/Table/utils.d.ts +3 -15
  84. package/lib/components/table/Table/utils.js +1 -7
  85. package/lib/components/table/View/index.d.ts +2 -2
  86. package/lib/components/table/View/index.js +19 -23
  87. package/lib/components/table/hooks/useTableSetting.js +11 -26
  88. package/lib/components/table/hooks/useTransDataSource.d.ts +0 -1
  89. package/lib/components/table/hooks/useTransDataSource.js +4 -5
  90. package/lib/components/table/index.js +4 -5
  91. package/lib/components/table/index.less +0 -4
  92. package/lib/components/table/serve.d.ts +0 -1
  93. package/lib/components/table/serve.js +4 -24
  94. package/lib/components/table/types.d.ts +0 -2
  95. package/lib/index.d.ts +1 -3
  96. package/lib/index.js +0 -6
  97. package/lib/locales/en-US.d.ts +0 -12
  98. package/lib/locales/en-US.js +0 -13
  99. package/lib/locales/zh-CN.d.ts +0 -12
  100. package/lib/locales/zh-CN.js +0 -13
  101. package/lib/locales/zh-TW.d.ts +0 -12
  102. package/lib/locales/zh-TW.js +0 -13
  103. package/package.json +3 -3
  104. package/es/components/browserSelect/chevron-down.png +0 -0
  105. package/es/components/browserSelect/index.d.ts +0 -15
  106. package/es/components/browserSelect/index.js +0 -36
  107. package/es/components/browserSelect/index.less +0 -18
  108. package/es/components/date-picker/constants.d.ts +0 -39
  109. package/es/components/date-picker/constants.js +0 -76
  110. package/es/components/date-picker/datePickerCpt.d.ts +0 -8
  111. package/es/components/date-picker/datePickerCpt.js +0 -370
  112. package/es/components/date-picker/hooks/useMediaQuery.d.ts +0 -2
  113. package/es/components/date-picker/hooks/useMediaQuery.js +0 -28
  114. package/es/components/date-picker/index.less +0 -1880
  115. package/es/components/picker-view/index.d.ts +0 -2
  116. package/es/components/picker-view/index.js +0 -2
  117. package/es/components/pisellTags/index.d.ts +0 -13
  118. package/es/components/pisellTags/index.js +0 -83
  119. package/es/components/pisellTags/index.less +0 -17
  120. package/es/components/pisellTags/utils.d.ts +0 -1
  121. package/es/components/pisellTags/utils.js +0 -89
  122. package/lib/components/browserSelect/chevron-down.png +0 -0
  123. package/lib/components/browserSelect/index.d.ts +0 -15
  124. package/lib/components/browserSelect/index.js +0 -59
  125. package/lib/components/browserSelect/index.less +0 -18
  126. package/lib/components/date-picker/constants.d.ts +0 -39
  127. package/lib/components/date-picker/constants.js +0 -78
  128. package/lib/components/date-picker/datePickerCpt.d.ts +0 -8
  129. package/lib/components/date-picker/datePickerCpt.js +0 -403
  130. package/lib/components/date-picker/hooks/useMediaQuery.d.ts +0 -2
  131. package/lib/components/date-picker/hooks/useMediaQuery.js +0 -43
  132. package/lib/components/date-picker/index.less +0 -1880
  133. package/lib/components/picker-view/index.d.ts +0 -2
  134. package/lib/components/picker-view/index.js +0 -36
  135. package/lib/components/pisellTags/index.d.ts +0 -13
  136. package/lib/components/pisellTags/index.js +0 -113
  137. package/lib/components/pisellTags/index.less +0 -17
  138. package/lib/components/pisellTags/utils.d.ts +0 -1
  139. package/lib/components/pisellTags/utils.js +0 -86
@@ -6,7 +6,6 @@ declare type UseTransDataSourceParams = {
6
6
  dataSource: Record<string, any>[];
7
7
  rowKey: string | ((params: any) => string);
8
8
  filter: FilterType;
9
- currentView: 'gallery' | 'table';
10
9
  };
11
10
  declare const useTransDataSource: (params: UseTransDataSourceParams) => Record<string, any>[];
12
11
  export default useTransDataSource;
@@ -14,8 +14,7 @@ var useTransDataSource = function useTransDataSource(params) {
14
14
  localPagination = params.localPagination,
15
15
  pDataSource = params.dataSource,
16
16
  rowKey = params.rowKey,
17
- filter = params.filter,
18
- currentView = params.currentView;
17
+ filter = params.filter;
19
18
  var sort = Form.useWatch("order_by", {
20
19
  form: form,
21
20
  preserve: true
@@ -82,13 +81,12 @@ var useTransDataSource = function useTransDataSource(params) {
82
81
  if (sortObj) {
83
82
  newDataSource = sortDataSource(newDataSource, sortObj);
84
83
  }
85
-
86
- // 在table视图时进行group分组
87
- if (groupDetail && currentView === 'table') {
84
+ if (groupDetail) {
88
85
  newDataSource = groupDataSource(newDataSource, groupDetail, rowKey);
89
86
  }
90
87
  return newDataSource;
91
- }, [pDataSource, localPagination, sortObj, groupDetail, filterLocalArr, filters, currentView]);
88
+ }, [pDataSource, localPagination, sortObj, groupDetail, filterLocalArr, filters]);
89
+ console.log('dataSourcedataSource', dataSource);
92
90
  return dataSource;
93
91
  };
94
92
  export default useTransDataSource;
@@ -14,7 +14,7 @@ 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 { useDebounce, useSize } from 'ahooks';
17
+ import { useSize } from 'ahooks';
18
18
  import { Form } from 'antd';
19
19
  import React, { forwardRef, useEffect, useImperativeHandle, useMemo, useRef } from 'react';
20
20
  import { useSharedState } from "../../hooks";
@@ -75,11 +75,9 @@ var GridView = Provider( /*#__PURE__*/forwardRef(function (props, ref) {
75
75
  var initialValuesRef = useRef({});
76
76
  var _ref = useSize(wrapRef) || {},
77
77
  width = _ref.width;
78
- var debouncedWidth = useDebounce(width, {
79
- wait: 500
80
- });
81
78
  var utils = context === null || context === void 0 ? void 0 : (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils;
82
79
  var tableId = useMemo(function () {
80
+ console.log(props, 'wh');
83
81
  if (props.__designMode === 'design') {
84
82
  return 'designMode-mock-table-id';
85
83
  }
@@ -133,14 +131,13 @@ var GridView = Provider( /*#__PURE__*/forwardRef(function (props, ref) {
133
131
  }
134
132
  }, [currentSettingHash, tableId]);
135
133
  useEffect(function () {
136
- if (debouncedWidth) {
137
- console.log('modal.dispatch', 'setTableWidth');
134
+ if (width) {
138
135
  modal.dispatch({
139
136
  type: 'setTableWidth',
140
- payload: debouncedWidth || {}
137
+ payload: width || {}
141
138
  });
142
139
  }
143
- }, [debouncedWidth]);
140
+ }, [width]);
144
141
  var _useTableSetting = useTableSetting({
145
142
  tableId: tableId,
146
143
  filter: filter,
@@ -9,10 +9,6 @@
9
9
  display: flex;
10
10
  flex-direction: column;
11
11
 
12
- .pisell-lowcode-table-body {
13
- overscroll-behavior: none;
14
- }
15
-
16
12
  .pisell-lowcode-table-thead {
17
13
  .pisell-lowcode-table-cell {
18
14
  padding: 0 14px;
@@ -3,7 +3,6 @@ declare type exportParams = {
3
3
  file_name?: string;
4
4
  form_id?: string | number;
5
5
  code?: string;
6
- url?: string;
7
6
  };
8
7
  export declare const exportData: (params: exportParams) => Promise<any>;
9
8
  export declare const batchImport: (params: any) => Promise<any>;
@@ -2,62 +2,31 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
2
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
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
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
- 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; }
6
- 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; }
7
- 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; }
8
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
9
- 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); }
10
5
  import { request } from "./utils";
11
-
12
- // 兜底api地址
13
- var defaultUrl = '/shop/form/data';
14
- /**
15
- * @title: 格式化接口地址参数
16
- * @description:
17
- * @param {any} params
18
- * @return {*}
19
- * @Author: WangHan
20
- * @Date: 2024-09-05 12:01
21
- */
22
- var formatApiParams = function formatApiParams(params) {
23
- var _url = (params === null || params === void 0 ? void 0 : params.url) || defaultUrl;
24
- var _params = _objectSpread({}, params);
25
- delete _params.url;
26
- return {
27
- url: _url,
28
- params: _objectSpread({}, _params)
29
- };
30
- };
31
-
32
6
  // 导出
33
7
  export var exportData = function exportData(params) {
34
- var _params = formatApiParams(params);
35
- return request.getRequest().post("".concat(_params === null || _params === void 0 ? void 0 : _params.url, "/export"), _params === null || _params === void 0 ? void 0 : _params.params);
8
+ return request.getRequest().post("/shop/form/data/export", params);
36
9
  };
37
10
 
38
11
  // 导入
39
12
  export var batchImport = function batchImport(params) {
40
- var _params = formatApiParams(params);
41
- return request.getRequest().post("".concat(_params === null || _params === void 0 ? void 0 : _params.url, "/import"), _params === null || _params === void 0 ? void 0 : _params.params);
13
+ return request.getRequest().post('/shop/form/data/import', params);
42
14
  };
43
15
 
44
16
  // 导入模版
45
17
  export var importTemplate = function importTemplate(params) {
46
- var _params = formatApiParams(params);
47
- return request.getRequest().post("".concat(_params === null || _params === void 0 ? void 0 : _params.url, "/download-template"), _params === null || _params === void 0 ? void 0 : _params.params);
18
+ return request.getRequest().post('/shop/form/data/download-template', params);
48
19
  };
49
20
  export var historyData = /*#__PURE__*/function () {
50
21
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
51
- var _params;
52
22
  return _regeneratorRuntime().wrap(function _callee$(_context) {
53
23
  while (1) switch (_context.prev = _context.next) {
54
24
  case 0:
55
- _params = formatApiParams(params);
56
- _context.next = 3;
57
- return request.getRequest().get("".concat(_params === null || _params === void 0 ? void 0 : _params.url, "/task"), _params === null || _params === void 0 ? void 0 : _params.params);
58
- case 3:
25
+ _context.next = 2;
26
+ return request.getRequest().get('/shop/form/data/task', params);
27
+ case 2:
59
28
  return _context.abrupt("return", _context.sent);
60
- case 4:
29
+ case 3:
61
30
  case "end":
62
31
  return _context.stop();
63
32
  }
@@ -177,8 +177,6 @@ export declare type ExportImportType = {
177
177
  templateFileUrl: string;
178
178
  /** 标题 */
179
179
  title: string;
180
- hiddenKeys?: string[];
181
- apiUrl?: string;
182
180
  };
183
181
  export declare type GridViewProps = {
184
182
  columns: any;
package/es/index.d.ts CHANGED
@@ -72,7 +72,6 @@ export { default as List } from './components/list';
72
72
  export { default as Sort } from './components/sort';
73
73
  export { default as InputNumberRange } from './components/input-number-range';
74
74
  export { default as LowCodePage } from './components/lowCodePage';
75
- export { default as PickerView } from './components/picker-view';
76
75
  export { default as Segmented } from './components/segmented';
77
76
  export { default as VirtualKeyboard } from './components/virtual-keyboard';
78
77
  export { default as VirtualKeyboardTime } from './components/virtual-keyboard/Time';
@@ -102,5 +101,4 @@ export { default as PisellAlert } from './components/pisellAlert';
102
101
  export { default as PisellCard } from './components/pisellCard';
103
102
  export { default as PisellInformationEntry } from './components/pisellInformationEntry';
104
103
  export { default as usePisellConfig } from './components/pisell-config-provider/hooks/usePisellConfig';
105
- export { globalConfig, default as PisellContext, } from './components/pisell-config-provider/context';
106
- export { default as PisellTags } from './components/pisellTags';
104
+ export { globalConfig, default as PisellContext } from './components/pisell-config-provider/context';
package/es/index.js CHANGED
@@ -92,7 +92,6 @@ export { default as List } from "./components/list";
92
92
  export { default as Sort } from "./components/sort";
93
93
  export { default as InputNumberRange } from "./components/input-number-range";
94
94
  export { default as LowCodePage } from "./components/lowCodePage";
95
- export { default as PickerView } from "./components/picker-view";
96
95
  export { default as Segmented } from "./components/segmented";
97
96
  export { default as VirtualKeyboard } from "./components/virtual-keyboard";
98
97
  export { default as VirtualKeyboardTime } from "./components/virtual-keyboard/Time";
@@ -124,5 +123,4 @@ export { default as PisellAlert } from "./components/pisellAlert";
124
123
  export { default as PisellCard } from "./components/pisellCard";
125
124
  export { default as PisellInformationEntry } from "./components/pisellInformationEntry";
126
125
  export { default as usePisellConfig } from "./components/pisell-config-provider/hooks/usePisellConfig";
127
- export { globalConfig, default as PisellContext } from "./components/pisell-config-provider/context";
128
- export { default as PisellTags } from "./components/pisellTags";
126
+ export { globalConfig, default as PisellContext } from "./components/pisell-config-provider/context";
@@ -97,18 +97,6 @@ declare const _default: {
97
97
  'table-action-export-import-log-copy': string;
98
98
  'table-action-export-import-table-success-copy': string;
99
99
  'drag-sort-tree-unavailable-today-tip': string;
100
- 'date-picker-today': string;
101
- 'date-picker-yesterday': string;
102
- 'date-picker-tomorrow': string;
103
- 'date-picker-next_monday': string;
104
- 'date-picker-last_friday': string;
105
- 'date-picker-first_day_of_this_month': string;
106
- 'date-picker-last_day_of_this_month': string;
107
- 'date-picker-first_day_of_next_month': string;
108
- 'date-picker-last_day_of_last_month': string;
109
- 'date-picker-invalid-date': string;
110
- "date-picker-apply": string;
111
- 'date-picker-shortcut-custom': string;
112
100
  'pisell-input-copy-success': string;
113
101
  'pisell-input-copy': string;
114
102
  'pisell-empty-description-no-data': string;
@@ -119,19 +119,6 @@ export default {
119
119
  'table-action-export-import-log-copy': 'Copy',
120
120
  'table-action-export-import-table-success-copy': 'Copy Success',
121
121
  'drag-sort-tree-unavailable-today-tip': 'Unavailable today',
122
- // 日期组件
123
- 'date-picker-today': 'Today',
124
- 'date-picker-yesterday': 'Yesterday',
125
- 'date-picker-tomorrow': 'Tomorrow',
126
- 'date-picker-next_monday': 'Next monday',
127
- 'date-picker-last_friday': 'Last friday',
128
- 'date-picker-first_day_of_this_month': 'First day of this month',
129
- 'date-picker-last_day_of_this_month': 'Last day of this month',
130
- 'date-picker-first_day_of_next_month': 'First day of next month',
131
- 'date-picker-last_day_of_last_month': 'Last day of last month',
132
- 'date-picker-invalid-date': 'Invalid date',
133
- "date-picker-apply": "Apply",
134
- 'date-picker-shortcut-custom': 'Custom',
135
122
  'pisell-input-copy-success': 'Copy Success',
136
123
  'pisell-input-copy': 'Copy',
137
124
  // 空状态
@@ -97,18 +97,6 @@ declare const _default: {
97
97
  'table-action-export-import-log-copy': string;
98
98
  'table-action-export-import-table-success-copy': string;
99
99
  'drag-sort-tree-unavailable-today-tip': string;
100
- 'date-picker-today': string;
101
- 'date-picker-yesterday': string;
102
- 'date-picker-tomorrow': string;
103
- 'date-picker-next_monday': string;
104
- 'date-picker-last_friday': string;
105
- 'date-picker-first_day_of_this_month': string;
106
- 'date-picker-last_day_of_this_month': string;
107
- 'date-picker-first_day_of_next_month': string;
108
- 'date-picker-last_day_of_last_month': string;
109
- 'date-picker-invalid-date': string;
110
- "date-picker-apply": string;
111
- 'date-picker-shortcut-custom': string;
112
100
  'pisell-input-copy-success': string;
113
101
  'pisell-input-copy': string;
114
102
  'pisell-empty-description-no-data': string;
@@ -119,19 +119,6 @@ export default {
119
119
  'table-action-export-import-log-copy': '复制',
120
120
  'table-action-export-import-table-success-copy': '复制成功',
121
121
  'drag-sort-tree-unavailable-today-tip': '今日不可用',
122
- // 日期组件
123
- 'date-picker-today': '今天',
124
- 'date-picker-yesterday': '昨天',
125
- 'date-picker-tomorrow': '明天',
126
- 'date-picker-next_monday': '下个星期一',
127
- 'date-picker-last_friday': '上个星期五',
128
- 'date-picker-first_day_of_this_month': '本月的第一天',
129
- 'date-picker-last_day_of_this_month': '本月的最后一天',
130
- 'date-picker-first_day_of_next_month': '下个月的第一天',
131
- 'date-picker-last_day_of_last_month': '上个月的最后一天',
132
- 'date-picker-invalid-date': '无效日期',
133
- "date-picker-apply": "确定",
134
- 'date-picker-shortcut-custom': '自定义',
135
122
  'pisell-input-copy-success': '复制成功',
136
123
  'pisell-input-copy': '复制',
137
124
  // 空状态
@@ -97,18 +97,6 @@ declare const _default: {
97
97
  'table-action-export-import-log-copy': string;
98
98
  'table-action-export-import-table-success-copy': string;
99
99
  'drag-sort-tree-unavailable-today-tip': string;
100
- 'date-picker-today': string;
101
- 'date-picker-yesterday': string;
102
- 'date-picker-tomorrow': string;
103
- 'date-picker-next_monday': string;
104
- 'date-picker-last_friday': string;
105
- 'date-picker-first_day_of_this_month': string;
106
- 'date-picker-last_day_of_this_month': string;
107
- 'date-picker-first_day_of_next_month': string;
108
- 'date-picker-last_day_of_last_month': string;
109
- 'date-picker-invalid-date': string;
110
- "date-picker-apply": string;
111
- 'date-picker-shortcut-custom': string;
112
100
  'pisell-input-copy-success': string;
113
101
  'pisell-input-copy': string;
114
102
  'pisell-empty-description-no-data': string;
@@ -119,19 +119,6 @@ export default {
119
119
  'table-action-export-import-log-copy': '復製',
120
120
  'table-action-export-import-table-success-copy': '復製成功',
121
121
  'drag-sort-tree-unavailable-today-tip': '今日不可用',
122
- // 日期组件
123
- 'date-picker-today': '今天',
124
- 'date-picker-yesterday': '昨天',
125
- 'date-picker-tomorrow': '明天',
126
- 'date-picker-next_monday': '下個星期一',
127
- 'date-picker-last_friday': '上個星期五',
128
- 'date-picker-first_day_of_this_month': '本月的第一天',
129
- 'date-picker-last_day_of_this_month': '本月的最後一天',
130
- 'date-picker-first_day_of_next_month': '下個月的第一天',
131
- 'date-picker-last_day_of_last_month': '上個月的最後一天',
132
- 'date-picker-invalid-date': '無效日期',
133
- "date-picker-apply": "确定",
134
- 'date-picker-shortcut-custom': '自定義',
135
122
  'pisell-input-copy-success': '復製成功',
136
123
  'pisell-input-copy': '復製',
137
124
  // 空状态
@@ -32,15 +32,15 @@ __export(date_picker_exports, {
32
32
  default: () => date_picker_default
33
33
  });
34
34
  module.exports = __toCommonJS(date_picker_exports);
35
+ var import_antd = require("antd");
35
36
  var import_hoc = require("../../utils/hoc");
36
37
  var import_dayjs = __toESM(require("dayjs"));
37
38
  var import_date_picker = require("@pisell/date-picker");
38
39
  var import_localeData = __toESM(require("dayjs/plugin/localeData"));
39
40
  var import_weekday = __toESM(require("dayjs/plugin/weekday"));
40
- var import_datePickerCpt = __toESM(require("./datePickerCpt"));
41
41
  import_dayjs.default.extend(import_weekday.default);
42
42
  import_dayjs.default.extend(import_localeData.default);
43
- var DatePicker = (0, import_hoc.withMomentProps)(import_datePickerCpt.default, [
43
+ var DatePicker = (0, import_hoc.withMomentProps)(import_antd.DatePicker, [
44
44
  "defaultPickerValue",
45
45
  "defaultValue",
46
46
  "showTime.defaultValue",
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import './index.less';
2
3
  import { SortType } from './types';
3
4
  declare const DragSortTree: (props: SortType) => React.JSX.Element;
4
5
  export default DragSortTree;
@@ -37,6 +37,7 @@ var import_core = require("@dnd-kit/core");
37
37
  var import_sortable = require("@dnd-kit/sortable");
38
38
  var import_TreeItem = __toESM(require("./TreeItem"));
39
39
  var import_modifiers = require("@dnd-kit/modifiers");
40
+ var import_index = require("./index.less");
40
41
  var DragSortTree = (props) => {
41
42
  const { value, rowKey, tabKey, hiddenKeys, onChange } = props;
42
43
  const [items, setItems] = (0, import_react.useState)(value || []);
@@ -38,7 +38,6 @@ var import_context = __toESM(require("./context"));
38
38
  var import_hooks = require("../../hooks");
39
39
  var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
40
40
  var import_pisellMessage = require("../pisellMessage");
41
- var import_functions = require("../pisellModal/components/functions");
42
41
  var platformMap = {
43
42
  phone: "h5",
44
43
  pc: "pc",
@@ -64,7 +63,6 @@ var PisellConfigProvider = (props) => {
64
63
  };
65
64
  const staticFunction = import_antd.App.useApp();
66
65
  (0, import_pisellMessage.setMessage)(staticFunction.message);
67
- (0, import_functions.setModal)(staticFunction.modal);
68
66
  import_context.globalConfig.setConfig(config);
69
67
  return /* @__PURE__ */ import_react.default.createElement(import_context.default.Provider, { value: config }, children);
70
68
  };
@@ -1,30 +1,12 @@
1
1
  import { ModalFuncProps } from 'antd';
2
- import { useAppProps } from 'antd/es/app/context';
3
2
  import { PisellContextType } from '../../../pisell-config-provider/context';
4
3
  import './index.less';
5
- declare const setModal: (m: useAppProps['modal']) => void;
6
4
  export interface PisellModalFuncProps extends ModalFuncProps {
7
5
  platform?: PisellContextType['platform'];
8
6
  }
9
- export declare const info: (props: PisellModalFuncProps) => {
10
- destroy: () => void;
11
- update: (configUpdate: ModalFuncProps | ((prevConfig: ModalFuncProps) => ModalFuncProps)) => void;
12
- };
13
- export declare const success: (props: PisellModalFuncProps) => {
14
- destroy: () => void;
15
- update: (configUpdate: ModalFuncProps | ((prevConfig: ModalFuncProps) => ModalFuncProps)) => void;
16
- };
17
- export declare const error: (props: PisellModalFuncProps) => {
18
- destroy: () => void;
19
- update: (configUpdate: ModalFuncProps | ((prevConfig: ModalFuncProps) => ModalFuncProps)) => void;
20
- };
21
- export declare const warning: (props: PisellModalFuncProps) => {
22
- destroy: () => void;
23
- update: (configUpdate: ModalFuncProps | ((prevConfig: ModalFuncProps) => ModalFuncProps)) => void;
24
- };
7
+ export declare const info: (props: PisellModalFuncProps) => any;
8
+ export declare const success: (props: PisellModalFuncProps) => any;
9
+ export declare const error: (props: PisellModalFuncProps) => any;
10
+ export declare const warning: (props: PisellModalFuncProps) => any;
25
11
  export declare const warn: (props: PisellModalFuncProps) => any;
26
- export declare const confirm: (props: PisellModalFuncProps) => {
27
- destroy: () => void;
28
- update: (configUpdate: ModalFuncProps | ((prevConfig: ModalFuncProps) => ModalFuncProps)) => void;
29
- };
30
- export { setModal };
12
+ export declare const confirm: (props: PisellModalFuncProps) => any;
@@ -32,19 +32,15 @@ __export(functions_exports, {
32
32
  confirm: () => confirm,
33
33
  error: () => error,
34
34
  info: () => info,
35
- setModal: () => setModal,
36
35
  success: () => success,
37
36
  warn: () => warn,
38
37
  warning: () => warning
39
38
  });
40
39
  module.exports = __toCommonJS(functions_exports);
40
+ var import_modal = __toESM(require("../../../modal"));
41
41
  var import_classnames = __toESM(require("classnames"));
42
42
  var import_context = require("../../../pisell-config-provider/context");
43
43
  var import_index = require("./index.less");
44
- var Modal;
45
- var setModal = (m) => {
46
- Modal = m;
47
- };
48
44
  var genConfig = (props) => {
49
45
  const { platform } = import_context.globalConfig.getConfig();
50
46
  return {
@@ -52,7 +48,6 @@ var genConfig = (props) => {
52
48
  wrapClassName: (0, import_classnames.default)("pisell-modal-function-wrap", {
53
49
  ["pisell-modal-mobile-function-wrap"]: platform === "h5"
54
50
  }),
55
- transitionName: "pisell-move-down",
56
51
  cancelButtonProps: {
57
52
  block: true,
58
53
  size: "large",
@@ -67,29 +62,28 @@ var genConfig = (props) => {
67
62
  };
68
63
  };
69
64
  var info = (props) => {
70
- return Modal.info(genConfig(props));
65
+ return import_modal.default.info(genConfig(props));
71
66
  };
72
67
  var success = (props) => {
73
- return Modal.success(genConfig(props));
68
+ return import_modal.default.success(genConfig(props));
74
69
  };
75
70
  var error = (props) => {
76
- return Modal.error(genConfig(props));
71
+ return import_modal.default.error(genConfig(props));
77
72
  };
78
73
  var warning = (props) => {
79
- return Modal.warning(genConfig(props));
74
+ return import_modal.default.warning(genConfig(props));
80
75
  };
81
76
  var warn = (props) => {
82
- return Modal.warn(genConfig(props));
77
+ return import_modal.default.warn(genConfig(props));
83
78
  };
84
79
  var confirm = (props) => {
85
- return Modal.confirm(genConfig(props));
80
+ return import_modal.default.confirm(genConfig(props));
86
81
  };
87
82
  // Annotate the CommonJS export names for ESM import in node:
88
83
  0 && (module.exports = {
89
84
  confirm,
90
85
  error,
91
86
  info,
92
- setModal,
93
87
  success,
94
88
  warn,
95
89
  warning
@@ -32,27 +32,12 @@ export interface PisellModalProps extends ModalProps {
32
32
  }
33
33
  declare const PisellModal: {
34
34
  (props: PisellModalProps): React.JSX.Element;
35
- confirm: (props: import("./components/functions").PisellModalFuncProps) => {
36
- destroy: () => void;
37
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
38
- };
39
- info: (props: import("./components/functions").PisellModalFuncProps) => {
40
- destroy: () => void;
41
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
42
- };
43
- error: (props: import("./components/functions").PisellModalFuncProps) => {
44
- destroy: () => void;
45
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
46
- };
35
+ confirm: (props: import("./components/functions").PisellModalFuncProps) => any;
36
+ info: (props: import("./components/functions").PisellModalFuncProps) => any;
37
+ error: (props: import("./components/functions").PisellModalFuncProps) => any;
47
38
  warn: (props: import("./components/functions").PisellModalFuncProps) => any;
48
- warning: (props: import("./components/functions").PisellModalFuncProps) => {
49
- destroy: () => void;
50
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
51
- };
52
- success: (props: import("./components/functions").PisellModalFuncProps) => {
53
- destroy: () => void;
54
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
55
- };
39
+ warning: (props: import("./components/functions").PisellModalFuncProps) => any;
40
+ success: (props: import("./components/functions").PisellModalFuncProps) => any;
56
41
  Information: (props: import("./components/Information").InformationProps) => React.JSX.Element;
57
42
  };
58
43
  export default PisellModal;
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import { ExportImportType } from '../../../../../types';
3
- import './index.less';
1
+ import React from "react";
2
+ import { ExportImportType } from "../../../../../types";
3
+ import "./index.less";
4
4
  declare const ExportFile: (props: {
5
5
  exportImport: ExportImportType;
6
6
  }) => React.JSX.Element;
@@ -56,7 +56,7 @@ var exportStatusOptions = {
56
56
  };
57
57
  var ExportFile = (props) => {
58
58
  const { exportImport } = props;
59
- const { formId, formCode, apiUrl } = exportImport;
59
+ const { formId, formCode } = exportImport;
60
60
  const [list, setList] = (0, import_react.useState)([]);
61
61
  const [defaultParams, setDefaultParams] = (0, import_react.useState)(defaultData);
62
62
  const context = (0, import_useEngineContext.default)();
@@ -85,11 +85,7 @@ var ExportFile = (props) => {
85
85
  });
86
86
  const init = () => {
87
87
  if ((defaultParams == null ? void 0 : defaultParams.form_id) || (defaultParams == null ? void 0 : defaultParams.code)) {
88
- const _defaultParams = {
89
- ...defaultParams,
90
- url: apiUrl
91
- };
92
- _historyList.run(_defaultParams);
88
+ _historyList.run(defaultParams);
93
89
  }
94
90
  };
95
91
  (0, import_react.useEffect)(() => {
@@ -40,7 +40,7 @@ var _batchExport = async (params) => {
40
40
  }
41
41
  };
42
42
  var batchExport = (exportParams, exportImport) => {
43
- const { selectLists, formId, formCode, apiUrl } = exportImport;
43
+ const { selectLists, formId, formCode } = exportImport;
44
44
  let _name = (0, import_file.getFileDateName)();
45
45
  let params = {};
46
46
  if (formId) {
@@ -49,7 +49,6 @@ var batchExport = (exportParams, exportImport) => {
49
49
  if (formCode) {
50
50
  params.code = formCode;
51
51
  }
52
- params.url = apiUrl;
53
52
  console.log("exportParams", exportParams);
54
53
  const type = (exportParams == null ? void 0 : exportParams.type) || import_status.defaultOptions.exportType;
55
54
  if (type === import_status.defaultOptions.exportType) {
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import { ExportImportType } from '../../../../../types';
3
- import './index.less';
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;