@vortex-ui/env-puzzle 2.0.0-beta.9 → 3.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -46
- package/lib/b-map/b-map.d.ts +1 -1
- package/lib/b-map/b-map.js +100 -162
- package/lib/b-map/b-map.js.map +1 -1
- package/lib/b-map/custom-overlay.js +17 -37
- package/lib/b-map/custom-overlay.js.map +1 -1
- package/lib/b-map/drawing.js +11 -25
- package/lib/b-map/drawing.js.map +1 -1
- package/lib/b-map/index.d.ts +2 -2
- package/lib/b-map/index.js +4 -16
- package/lib/b-map/index.js.map +1 -1
- package/lib/b-map/js/marker-clusterer.js +223 -339
- package/lib/b-map/js/marker-clusterer.js.map +1 -1
- package/lib/b-map/lushu.js +17 -36
- package/lib/b-map/lushu.js.map +1 -1
- package/lib/b-map/marker-clusterer.js +6 -14
- package/lib/b-map/marker-clusterer.js.map +1 -1
- package/lib/b-map/marker.js +32 -70
- package/lib/b-map/marker.js.map +1 -1
- package/lib/b-map/polygon.js +5 -13
- package/lib/b-map/polygon.js.map +1 -1
- package/lib/b-map/style/css.js.map +1 -1
- package/lib/b-map/style/index.js.map +1 -1
- package/lib/b-map/style/index.less +10 -10
- package/lib/create-modal/create-modal.d.ts +3 -2
- package/lib/create-modal/create-modal.js +163 -307
- package/lib/create-modal/create-modal.js.map +1 -1
- package/lib/create-modal/index.d.ts +1 -2
- package/lib/create-modal/index.js +2 -8
- package/lib/create-modal/index.js.map +1 -1
- package/lib/create-modal/style/css.js +0 -18
- package/lib/create-modal/style/css.js.map +1 -1
- package/lib/create-modal/style/index.css +2 -2
- package/lib/create-modal/style/index.d.ts +0 -9
- package/lib/create-modal/style/index.js +0 -18
- package/lib/create-modal/style/index.js.map +1 -1
- package/lib/create-modal/style/index.less +116 -119
- package/lib/global.less +5 -6
- package/lib/import-modal/import-modal.d.ts +3 -1
- package/lib/import-modal/import-modal.js +140 -204
- package/lib/import-modal/import-modal.js.map +1 -1
- package/lib/import-modal/index.js +2 -6
- package/lib/import-modal/index.js.map +1 -1
- package/lib/import-modal/style/css.js +0 -10
- package/lib/import-modal/style/css.js.map +1 -1
- package/lib/import-modal/style/index.d.ts +0 -5
- package/lib/import-modal/style/index.js +0 -10
- package/lib/import-modal/style/index.js.map +1 -1
- package/lib/import-modal/style/index.less +14 -15
- package/lib/index.js +1 -14
- package/lib/index.js.map +1 -1
- package/lib/interface/index.js.map +1 -1
- package/lib/mapv-Layer/Function.js +0 -2
- package/lib/mapv-Layer/Function.js.map +1 -1
- package/lib/mapv-Layer/index.js +2 -6
- package/lib/mapv-Layer/index.js.map +1 -1
- package/lib/mapv-Layer/mapv-Layer.js +19 -40
- package/lib/mapv-Layer/mapv-Layer.js.map +1 -1
- package/lib/mapv-Layer/style/css.js.map +1 -1
- package/lib/mapv-Layer/style/index.js.map +1 -1
- package/lib/percent/index.d.ts +1 -1
- package/lib/percent/index.js +2 -7
- package/lib/percent/index.js.map +1 -1
- package/lib/percent/interface.js.map +1 -1
- package/lib/percent/line-percent.js +20 -37
- package/lib/percent/line-percent.js.map +1 -1
- package/lib/percent/percent.js +20 -43
- package/lib/percent/percent.js.map +1 -1
- package/lib/percent/style/css.js.map +1 -1
- package/lib/percent/style/index.js.map +1 -1
- package/lib/percent/style/index.less +41 -41
- package/lib/scroll/index.js +2 -6
- package/lib/scroll/index.js.map +1 -1
- package/lib/scroll/scroll.d.ts +1 -1
- package/lib/scroll/scroll.js +19 -47
- package/lib/scroll/scroll.js.map +1 -1
- package/lib/scroll/style/css.js.map +1 -1
- package/lib/scroll/style/index.js.map +1 -1
- package/lib/scroll/style/index.less +3 -3
- package/lib/scroll-select/index.js +2 -6
- package/lib/scroll-select/index.js.map +1 -1
- package/lib/scroll-select/scrollSelect.d.ts +2 -1
- package/lib/scroll-select/scrollSelect.js +144 -218
- package/lib/scroll-select/scrollSelect.js.map +1 -1
- package/lib/scroll-select/style/css.js +0 -2
- package/lib/scroll-select/style/css.js.map +1 -1
- package/lib/scroll-select/style/index.d.ts +0 -1
- package/lib/scroll-select/style/index.js +0 -2
- package/lib/scroll-select/style/index.js.map +1 -1
- package/lib/scroll-select/style/index.less +7 -7
- package/lib/style/color.less +1 -1
- package/lib/table/index.js +2 -6
- package/lib/table/index.js.map +1 -1
- package/lib/table/style/css.js +0 -2
- package/lib/table/style/css.js.map +1 -1
- package/lib/table/style/index.d.ts +0 -1
- package/lib/table/style/index.js +0 -2
- package/lib/table/style/index.js.map +1 -1
- package/lib/table/table.d.ts +1 -1
- package/lib/table/table.js +24 -56
- package/lib/table/table.js.map +1 -1
- package/lib/template/action.d.ts +3 -1
- package/lib/template/action.js +93 -132
- package/lib/template/action.js.map +1 -1
- package/lib/template/card-table.d.ts +7 -6
- package/lib/template/card-table.js +40 -82
- package/lib/template/card-table.js.map +1 -1
- package/lib/template/card.d.ts +1 -1
- package/lib/template/card.js +20 -38
- package/lib/template/card.js.map +1 -1
- package/lib/template/check-row.d.ts +2 -1
- package/lib/template/check-row.js +7 -12
- package/lib/template/check-row.js.map +1 -1
- package/lib/template/field.js +8 -24
- package/lib/template/field.js.map +1 -1
- package/lib/template/filter.d.ts +1 -2
- package/lib/template/filter.js +25 -63
- package/lib/template/filter.js.map +1 -1
- package/lib/template/icon.js +4 -15
- package/lib/template/icon.js.map +1 -1
- package/lib/template/index.d.ts +2 -3
- package/lib/template/index.js +4 -12
- package/lib/template/index.js.map +1 -1
- package/lib/template/interface.js.map +1 -1
- package/lib/template/renderColumnButtons.js +80 -104
- package/lib/template/renderColumnButtons.js.map +1 -1
- package/lib/template/style/action.css +3 -2
- package/lib/template/style/action.less +74 -71
- package/lib/template/style/card.css +2 -2
- package/lib/template/style/card.less +87 -88
- package/lib/template/style/check-row.less +27 -27
- package/lib/template/style/css.js +0 -36
- package/lib/template/style/css.js.map +1 -1
- package/lib/template/style/field.less +11 -11
- package/lib/template/style/filter.css +0 -29
- package/lib/template/style/filter.less +46 -72
- package/lib/template/style/icon.less +7 -7
- package/lib/template/style/index.css +8 -42
- package/lib/template/style/index.d.ts +0 -18
- package/lib/template/style/index.js +0 -36
- package/lib/template/style/index.js.map +1 -1
- package/lib/template/style/index.less +48 -49
- package/lib/template/style/table.css +0 -6
- package/lib/template/style/table.less +79 -91
- package/lib/template/table.d.ts +7 -5
- package/lib/template/table.js +23 -45
- package/lib/template/table.js.map +1 -1
- package/lib/template/template.d.ts +4 -4
- package/lib/template/template.js +134 -258
- package/lib/template/template.js.map +1 -1
- package/lib/template/toolbar.d.ts +1 -1
- package/lib/template/toolbar.js +57 -63
- package/lib/template/toolbar.js.map +1 -1
- package/lib/to-map/container.js +58 -112
- package/lib/to-map/container.js.map +1 -1
- package/lib/to-map/draw-area.js +14 -34
- package/lib/to-map/draw-area.js.map +1 -1
- package/lib/to-map/index.d.ts +1 -1
- package/lib/to-map/index.js +2 -7
- package/lib/to-map/index.js.map +1 -1
- package/lib/to-map/style/css.js +0 -2
- package/lib/to-map/style/css.js.map +1 -1
- package/lib/to-map/style/index.d.ts +0 -1
- package/lib/to-map/style/index.js +0 -2
- package/lib/to-map/style/index.js.map +1 -1
- package/lib/to-map/style/index.less +86 -86
- package/lib/to-map/to-map.js +22 -49
- package/lib/to-map/to-map.js.map +1 -1
- package/lib/upload/index.js +2 -6
- package/lib/upload/index.js.map +1 -1
- package/lib/upload/style/css.js +0 -5
- package/lib/upload/style/css.js.map +1 -1
- package/lib/upload/style/index.d.ts +0 -2
- package/lib/upload/style/index.js +0 -5
- package/lib/upload/style/index.js.map +1 -1
- package/lib/upload/upload.d.ts +4 -1
- package/lib/upload/upload.js +164 -245
- package/lib/upload/upload.js.map +1 -1
- package/lib/use-simple-res/demos/index.d.ts +2 -1
- package/lib/use-simple-res/demos/index.js +31 -59
- package/lib/use-simple-res/demos/index.js.map +1 -1
- package/lib/use-simple-res/index.d.ts +0 -1
- package/lib/use-simple-res/index.js +61 -75
- package/lib/use-simple-res/index.js.map +1 -1
- package/lib/use-simple-res/style/css.js.map +1 -1
- package/lib/use-simple-res/style/index.js.map +1 -1
- package/lib/utils/dom-util.js +8 -27
- package/lib/utils/dom-util.js.map +1 -1
- package/lib/utils/request-util.d.ts +10 -1
- package/lib/utils/request-util.js +170 -45
- package/lib/utils/request-util.js.map +1 -1
- package/lib/utils/string-util.d.ts +2 -0
- package/lib/utils/string-util.js +34 -16
- package/lib/utils/string-util.js.map +1 -1
- package/lib/view-modal/index.d.ts +0 -1
- package/lib/view-modal/index.js +2 -8
- package/lib/view-modal/index.js.map +1 -1
- package/lib/view-modal/style/css.js +0 -12
- package/lib/view-modal/style/css.js.map +1 -1
- package/lib/view-modal/style/index.css +3 -41
- package/lib/view-modal/style/index.d.ts +0 -7
- package/lib/view-modal/style/index.js +0 -12
- package/lib/view-modal/style/index.js.map +1 -1
- package/lib/view-modal/style/index.less +42 -57
- package/lib/view-modal/view-modal.d.ts +1 -1
- package/lib/view-modal/view-modal.js +36 -86
- package/lib/view-modal/view-modal.js.map +1 -1
- package/package.json +157 -143
- package/lib/style/css.js +0 -13
- package/lib/style/css.js.map +0 -1
- package/lib/style/darkGreen.css +0 -719
- package/lib/style/darkGreen.less +0 -482
- package/lib/style/index.d.ts +0 -2
- package/lib/style/index.js +0 -13
- package/lib/style/index.js.map +0 -1
- package/lib/template/vtx-search/index.d.ts +0 -2
- package/lib/template/vtx-search/index.js +0 -126
- package/lib/template/vtx-search/index.js.map +0 -1
- package/lib/template/vtx-search/style/index.css +0 -92
- package/lib/template/vtx-search/style/index.less +0 -92
|
@@ -1,73 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
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); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.renderFieldItem = exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _button = _interopRequireDefault(require("antd/lib/button"));
|
|
11
|
-
|
|
12
|
-
var _message = _interopRequireDefault(require("antd/lib/message"));
|
|
13
|
-
|
|
14
|
-
var _form = _interopRequireDefault(require("antd/lib/form"));
|
|
15
|
-
|
|
7
|
+
var _antd = require("antd");
|
|
16
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
|
-
|
|
18
|
-
var _col = _interopRequireDefault(require("antd/lib/col"));
|
|
19
|
-
|
|
20
|
-
var _input = _interopRequireDefault(require("antd/lib/input"));
|
|
21
|
-
|
|
22
|
-
var _tooltip = _interopRequireDefault(require("antd/lib/tooltip"));
|
|
23
|
-
|
|
24
|
-
var _inputNumber = _interopRequireDefault(require("antd/lib/input-number"));
|
|
25
|
-
|
|
26
9
|
var _vtxFormLayout = _interopRequireDefault(require("@vtx/components/lib/vtx-form-layout"));
|
|
27
|
-
|
|
28
10
|
var _vtxModal = _interopRequireDefault(require("@vtx/components/lib/vtx-modal"));
|
|
29
|
-
|
|
30
11
|
var _classnames2 = _interopRequireDefault(require("classnames"));
|
|
31
|
-
|
|
32
|
-
var
|
|
33
|
-
|
|
34
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
35
|
-
|
|
36
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
37
|
-
|
|
38
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
39
|
-
|
|
40
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
41
|
-
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t4 in e) "default" !== _t4 && {}.hasOwnProperty.call(e, _t4) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t4)) && (i.get || i.set) ? o(f, _t4, i) : f[_t4] = e[_t4]); return f; })(e, t); }
|
|
14
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
42
15
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
43
|
-
|
|
44
|
-
function
|
|
45
|
-
|
|
46
|
-
function
|
|
47
|
-
|
|
48
|
-
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, $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 generator._invoke = function (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); } }; }(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; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return 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, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), 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 (object) { var 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; }
|
|
49
|
-
|
|
50
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
51
|
-
|
|
16
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
17
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
18
|
+
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
19
|
+
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
|
|
20
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
52
21
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
53
|
-
|
|
54
|
-
function
|
|
55
|
-
|
|
56
|
-
function
|
|
57
|
-
|
|
58
|
-
function
|
|
59
|
-
|
|
60
|
-
function
|
|
61
|
-
|
|
62
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
63
|
-
|
|
22
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
23
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
24
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
25
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
26
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
27
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
28
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
29
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
64
30
|
var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
|
|
65
31
|
function adopt(value) {
|
|
66
32
|
return value instanceof P ? value : new P(function (resolve) {
|
|
67
33
|
resolve(value);
|
|
68
34
|
});
|
|
69
35
|
}
|
|
70
|
-
|
|
71
36
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
72
37
|
function fulfilled(value) {
|
|
73
38
|
try {
|
|
@@ -76,7 +41,6 @@ var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P
|
|
|
76
41
|
reject(e);
|
|
77
42
|
}
|
|
78
43
|
}
|
|
79
|
-
|
|
80
44
|
function rejected(value) {
|
|
81
45
|
try {
|
|
82
46
|
step(generator["throw"](value));
|
|
@@ -84,170 +48,130 @@ var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P
|
|
|
84
48
|
reject(e);
|
|
85
49
|
}
|
|
86
50
|
}
|
|
87
|
-
|
|
88
51
|
function step(result) {
|
|
89
52
|
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
90
53
|
}
|
|
91
|
-
|
|
92
54
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
93
55
|
});
|
|
94
56
|
};
|
|
95
|
-
|
|
96
57
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
97
58
|
var t = {};
|
|
98
|
-
|
|
99
|
-
for (var p in s) {
|
|
100
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
101
|
-
}
|
|
102
|
-
|
|
59
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
103
60
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
104
61
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
105
62
|
}
|
|
106
63
|
return t;
|
|
107
64
|
};
|
|
108
|
-
|
|
109
|
-
var
|
|
110
|
-
|
|
111
|
-
var renderFieldItem = function renderFieldItem(reactNode, parentNode, viewModel, viewMode) {
|
|
112
|
-
var hasChildrenWithKeyProp = false; // 处理数组的方式传入的值
|
|
113
|
-
|
|
65
|
+
var _renderFieldItem = exports.renderFieldItem = function renderFieldItem(reactNode, parentNode, viewModel, viewMode) {
|
|
66
|
+
var hasChildrenWithKeyProp = false;
|
|
67
|
+
// 处理数组的方式传入的值
|
|
114
68
|
var hasReactDOMWithKeyProp = false;
|
|
115
|
-
|
|
116
69
|
_react["default"].Children.forEach(reactNode, function (child, index) {
|
|
117
70
|
if ((child === null || child === void 0 ? void 0 : child.key) && child) {
|
|
118
|
-
if (
|
|
71
|
+
if (/*#__PURE__*/_react["default"].isValidElement(child.props.children)) {
|
|
119
72
|
hasChildrenWithKeyProp = true;
|
|
120
73
|
} else {
|
|
121
74
|
hasReactDOMWithKeyProp = true;
|
|
122
75
|
}
|
|
123
76
|
}
|
|
124
77
|
});
|
|
125
|
-
|
|
126
78
|
if (hasReactDOMWithKeyProp) {
|
|
127
79
|
if (Array.isArray(reactNode)) {
|
|
128
80
|
var resultArray = [];
|
|
129
81
|
reactNode.forEach(function (item) {
|
|
130
|
-
resultArray.push(
|
|
82
|
+
resultArray.push(/*#__PURE__*/_react["default"].cloneElement(item, {}, _renderFieldItem(item)));
|
|
131
83
|
});
|
|
132
84
|
}
|
|
133
85
|
}
|
|
134
|
-
|
|
135
86
|
if (hasChildrenWithKeyProp) {
|
|
136
87
|
if (Array.isArray(reactNode)) {
|
|
137
88
|
var _resultArray = [];
|
|
138
89
|
reactNode.forEach(function (item) {
|
|
139
|
-
_resultArray.push(
|
|
90
|
+
_resultArray.push(/*#__PURE__*/_react["default"].cloneElement(item, {}, _renderFieldItem(item.props.children)));
|
|
140
91
|
});
|
|
141
92
|
return _resultArray;
|
|
142
93
|
} else {
|
|
143
94
|
var node = reactNode;
|
|
144
|
-
|
|
145
|
-
var result = /*#__PURE__*/_react["default"].cloneElement(node, {}, renderFieldItem(node.props.children));
|
|
146
|
-
|
|
95
|
+
var result = /*#__PURE__*/_react["default"].cloneElement(node, {}, _renderFieldItem(node.props.children));
|
|
147
96
|
return result;
|
|
148
97
|
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
|
|
98
|
+
}
|
|
99
|
+
// child: : React.ReactNode 但是有个type类型
|
|
152
100
|
return _react["default"].Children.map(reactNode, function (child, index) {
|
|
153
|
-
var _classnames;
|
|
154
|
-
|
|
155
101
|
var _a, _b, _c;
|
|
156
|
-
|
|
157
102
|
if (child === null || typeof child === 'string' || typeof child === 'boolean' || typeof child === 'number') {
|
|
158
|
-
return
|
|
159
|
-
className: 'text-node'
|
|
160
|
-
}, child);
|
|
103
|
+
return child;
|
|
161
104
|
}
|
|
162
|
-
|
|
163
105
|
var _child = child,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
var displayName = (_a = child === null || child === void 0 ? void 0 : child.type) === null || _a === void 0 ? void 0 : _a.displayName;
|
|
167
|
-
|
|
168
|
-
var title = props['data-title'];
|
|
169
|
-
|
|
106
|
+
props = _child.props,
|
|
107
|
+
type = _child.type;
|
|
108
|
+
var displayName = (_a = child === null || child === void 0 ? void 0 : child.type) === null || _a === void 0 ? void 0 : _a.displayName;
|
|
109
|
+
// 标题组件用到的props
|
|
110
|
+
var title = props['data-title'];
|
|
111
|
+
// 没有 label 也没有 name, 视为默认元素
|
|
170
112
|
if (title) {
|
|
171
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
113
|
+
return /*#__PURE__*/_react["default"].createElement(_antd.Col, {
|
|
172
114
|
key: title,
|
|
173
115
|
span: 24
|
|
174
116
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
175
117
|
className: "env-create-modal-title"
|
|
176
118
|
}, title));
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
|
|
119
|
+
}
|
|
120
|
+
// 传入样式处理
|
|
180
121
|
var style = props['data-style'];
|
|
181
|
-
var className = props['data-class'];
|
|
182
|
-
|
|
122
|
+
var className = props['data-class'];
|
|
123
|
+
// 表单组件用到的props
|
|
183
124
|
var required = props['data-required'];
|
|
184
125
|
var label = props['data-label'];
|
|
185
126
|
var name = props['data-name'];
|
|
186
|
-
var weights = props['data-weights'];
|
|
187
|
-
|
|
127
|
+
var weights = props['data-weights'];
|
|
188
128
|
var rules = props['data-rules'] || [];
|
|
189
129
|
var labelAfter = props['data-label-after'];
|
|
190
130
|
var mode = props['v-mode']; // 获取是编辑模式还是只读模式
|
|
191
|
-
|
|
192
131
|
var viewName = (props === null || props === void 0 ? void 0 : props['v-name']) ? props === null || props === void 0 ? void 0 : props['v-name'] : name;
|
|
193
|
-
var tooltip = props === null || props === void 0 ? void 0 : props['data-tooltip'];
|
|
132
|
+
var tooltip = props === null || props === void 0 ? void 0 : props['data-tooltip'];
|
|
133
|
+
// 获取所有的
|
|
194
134
|
// 自定义列 默认为24
|
|
195
|
-
|
|
196
135
|
var fromItemProps = {};
|
|
197
136
|
var fromElementProps = {};
|
|
198
|
-
|
|
199
137
|
for (var i in props) {
|
|
200
138
|
if (i.includes('data-')) {
|
|
201
139
|
var _result = i.replace('data-', '');
|
|
202
|
-
|
|
203
140
|
var arr = _result.split('-').map(function (item, index) {
|
|
204
141
|
if (index !== 0) {
|
|
205
142
|
return item.charAt(0).toLocaleUpperCase() + item.slice(1);
|
|
206
143
|
}
|
|
207
|
-
|
|
208
144
|
return item;
|
|
209
145
|
});
|
|
210
|
-
|
|
211
146
|
switch (_result) {
|
|
212
147
|
case 'span':
|
|
213
148
|
break;
|
|
214
|
-
|
|
215
149
|
case 'style':
|
|
216
150
|
break;
|
|
217
|
-
|
|
218
151
|
case 'label-after':
|
|
219
152
|
break;
|
|
220
|
-
|
|
221
153
|
case 'class':
|
|
222
154
|
break;
|
|
223
|
-
|
|
224
155
|
case 'required':
|
|
225
156
|
break;
|
|
226
|
-
|
|
227
157
|
default:
|
|
228
158
|
fromItemProps[arr.join('')] = props[i];
|
|
229
159
|
break;
|
|
230
160
|
}
|
|
231
|
-
|
|
232
161
|
fromElementProps[i] = undefined;
|
|
233
162
|
}
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
|
|
163
|
+
}
|
|
164
|
+
// 不设置 `data-label` 和 `data-name` 则视为自定义字段
|
|
237
165
|
if (!label && !name) {
|
|
238
166
|
var propChildren = child.props.children;
|
|
239
|
-
|
|
240
167
|
if (propChildren) {
|
|
241
|
-
var clonedNode = /*#__PURE__*/_react["default"].cloneElement(child, {},
|
|
242
|
-
|
|
168
|
+
var clonedNode = /*#__PURE__*/_react["default"].cloneElement(child, {}, _renderFieldItem(propChildren, child));
|
|
243
169
|
return clonedNode;
|
|
244
170
|
}
|
|
245
|
-
|
|
246
171
|
return child;
|
|
247
172
|
}
|
|
248
|
-
|
|
249
173
|
if (!props['data-rules']) {
|
|
250
|
-
if (type ===
|
|
174
|
+
if (type === _antd.Input || type === _antd.Input.TextArea) {
|
|
251
175
|
rules.push({
|
|
252
176
|
required: required !== null && required !== void 0 ? required : false,
|
|
253
177
|
message: "".concat(label, "\u4E0D\u80FD\u4E3A\u7A7A")
|
|
@@ -267,35 +191,28 @@ var renderFieldItem = function renderFieldItem(reactNode, parentNode, viewModel,
|
|
|
267
191
|
message: "".concat(label, "\u4E0D\u80FD\u4E3A\u7A7A")
|
|
268
192
|
});
|
|
269
193
|
}
|
|
270
|
-
}
|
|
194
|
+
}
|
|
195
|
+
// 很多时候input会忘记设置最大长度的属性
|
|
271
196
|
// 这里为input组件自动注入`maxlength`属性
|
|
272
|
-
|
|
273
|
-
|
|
274
197
|
var maxLength = props.maxLength;
|
|
275
|
-
|
|
276
|
-
if ((type === _input["default"] || type === _input["default"].TextArea) && !maxLength) {
|
|
198
|
+
if ((type === _antd.Input || type === _antd.Input.TextArea) && !maxLength) {
|
|
277
199
|
child = /*#__PURE__*/_react["default"].cloneElement(child, {
|
|
278
200
|
maxLength: 50
|
|
279
201
|
});
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
|
|
202
|
+
}
|
|
203
|
+
// 深copy比较
|
|
283
204
|
var isUpload = displayName === 'HJYUpload';
|
|
284
|
-
|
|
285
205
|
var getValuePropName = function getValuePropName() {
|
|
286
206
|
switch (displayName) {
|
|
287
207
|
case 'Checkbox':
|
|
288
208
|
case 'Switch':
|
|
289
209
|
return 'checked';
|
|
290
|
-
|
|
291
210
|
case 'HJYUpload':
|
|
292
211
|
return 'fileList';
|
|
293
|
-
|
|
294
212
|
default:
|
|
295
213
|
return 'value';
|
|
296
214
|
}
|
|
297
215
|
};
|
|
298
|
-
|
|
299
216
|
var rest = Object.assign(Object.assign(Object.assign(Object.assign({
|
|
300
217
|
valuePropName: getValuePropName()
|
|
301
218
|
}, isUpload ? {
|
|
@@ -303,7 +220,6 @@ var renderFieldItem = function renderFieldItem(reactNode, parentNode, viewModel,
|
|
|
303
220
|
if (Array.isArray(e)) {
|
|
304
221
|
return e;
|
|
305
222
|
}
|
|
306
|
-
|
|
307
223
|
return e && e.fileList;
|
|
308
224
|
}
|
|
309
225
|
} : {}), {
|
|
@@ -312,7 +228,6 @@ var renderFieldItem = function renderFieldItem(reactNode, parentNode, viewModel,
|
|
|
312
228
|
label: label
|
|
313
229
|
});
|
|
314
230
|
var viewRest = Object.assign({}, fromItemProps);
|
|
315
|
-
|
|
316
231
|
if (viewMode == 'read' && mode != 'edit' || mode == 'read') {
|
|
317
232
|
// 图片用Upload组件配置 mode 模式即可
|
|
318
233
|
return /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, Object.assign({
|
|
@@ -320,20 +235,16 @@ var renderFieldItem = function renderFieldItem(reactNode, parentNode, viewModel,
|
|
|
320
235
|
style: style,
|
|
321
236
|
className: className,
|
|
322
237
|
weights: weights,
|
|
323
|
-
label: /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(
|
|
238
|
+
label: /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_antd.Tooltip, {
|
|
324
239
|
title: typeof tooltip == 'string' ? tooltip : label
|
|
325
240
|
}, label))
|
|
326
|
-
}, viewRest
|
|
241
|
+
}, viewRest), (viewModel === null || viewModel === void 0 ? void 0 : viewModel[viewName]) ? viewModel[viewName] : '--');
|
|
327
242
|
}
|
|
328
|
-
|
|
329
243
|
var formNode1 = /*#__PURE__*/_react["default"].cloneElement(child, Object.assign({
|
|
330
|
-
placeholder: initPlaceholder(props.placeholder, label, child)
|
|
244
|
+
placeholder: initPlaceholder(props.placeholder, label, child === null || child === void 0 ? void 0 : child.type)
|
|
331
245
|
}, fromElementProps));
|
|
332
|
-
|
|
333
246
|
var divNode = /*#__PURE__*/_react["default"].cloneElement(child, Object.assign({}, fromElementProps));
|
|
334
|
-
|
|
335
247
|
var labelAfterNode = labelAfter;
|
|
336
|
-
|
|
337
248
|
if (((_c = (_b = labelAfter === null || labelAfter === void 0 ? void 0 : labelAfter.props) === null || _b === void 0 ? void 0 : _b.children) === null || _c === void 0 ? void 0 : _c.type) === 'div' && typeof label == 'string') {
|
|
338
249
|
var span = document.createElement('span');
|
|
339
250
|
span.style.fontSize = '14px';
|
|
@@ -351,225 +262,181 @@ var renderFieldItem = function renderFieldItem(reactNode, parentNode, viewModel,
|
|
|
351
262
|
}));
|
|
352
263
|
document.body.removeChild(span);
|
|
353
264
|
}
|
|
354
|
-
|
|
355
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, child.type == 'div' ? /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, Object.assign({
|
|
265
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, child.type == 'div' ? (/*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, Object.assign({
|
|
356
266
|
key: index,
|
|
357
267
|
style: style,
|
|
358
|
-
className: (0, _classnames2["default"])((
|
|
268
|
+
className: (0, _classnames2["default"])(_defineProperty(_defineProperty(_defineProperty({
|
|
359
269
|
className: className
|
|
360
|
-
},
|
|
270
|
+
}, 'vtx-form-item', true), 'vtx-form-item-vertical', true), 'vtx-form-item--inline', true)),
|
|
361
271
|
weights: weights,
|
|
362
272
|
inline: true
|
|
363
|
-
}, rest), divNode) : /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, Object.assign({
|
|
273
|
+
}, rest), divNode)) : (/*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, Object.assign({
|
|
364
274
|
key: index,
|
|
365
275
|
style: style,
|
|
366
276
|
className: className,
|
|
367
277
|
weights: weights
|
|
368
278
|
}, rest, {
|
|
369
279
|
extra: labelAfterNode
|
|
370
|
-
}), formNode1));
|
|
280
|
+
}), formNode1)));
|
|
371
281
|
});
|
|
372
282
|
};
|
|
373
283
|
/**
|
|
374
284
|
*
|
|
375
285
|
* @param {String | String[]} placeholder
|
|
376
286
|
* @param {String} label
|
|
377
|
-
* @param {ANY}
|
|
287
|
+
* @param {ANY} type
|
|
378
288
|
* @return {String | String[]} 返回placeholder
|
|
379
289
|
*/
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
exports.renderFieldItem = renderFieldItem;
|
|
383
|
-
|
|
384
|
-
function initPlaceholder(placeholder, label, child) {
|
|
385
|
-
var _a;
|
|
386
|
-
|
|
387
|
-
var type = child === null || child === void 0 ? void 0 : child.type;
|
|
388
|
-
|
|
290
|
+
function initPlaceholder(placeholder, label, type) {
|
|
291
|
+
var _a, _b, _c;
|
|
389
292
|
if (placeholder) {
|
|
390
293
|
return placeholder;
|
|
391
294
|
}
|
|
392
|
-
|
|
393
|
-
var
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
// }
|
|
398
|
-
|
|
295
|
+
var isInput = type === _antd.Input || type === _antd.Input.TextArea || type === _antd.InputNumber || ((_a = type === null || type === void 0 ? void 0 : type.propTypes) === null || _a === void 0 ? void 0 : _a.maxLength);
|
|
296
|
+
var itemType = undefined;
|
|
297
|
+
if (type && _typeof(type) != 'object') {
|
|
298
|
+
itemType = (_c = (_b = type === null || type === void 0 ? void 0 : type.toString()) === null || _b === void 0 ? void 0 : _b.match(/function\s*([^(]*)\(/)) === null || _c === void 0 ? void 0 : _c[1];
|
|
299
|
+
}
|
|
399
300
|
if (isInput) {
|
|
400
|
-
return '请输入' + label;
|
|
401
|
-
} else if (
|
|
301
|
+
return '请输入' + label;
|
|
302
|
+
} else if (itemType === 'RangePicker') {
|
|
402
303
|
return ['开始时间', '结束时间'];
|
|
403
304
|
} else {
|
|
404
305
|
return '请选择' + label;
|
|
405
306
|
}
|
|
406
307
|
}
|
|
407
|
-
|
|
408
308
|
var CreateModal = function CreateModal(props, ref) {
|
|
409
309
|
var size = props.size,
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
form = _Form$useForm2[0];
|
|
443
|
-
|
|
310
|
+
width = props.width,
|
|
311
|
+
children = props.children,
|
|
312
|
+
visible = props.visible,
|
|
313
|
+
onSave = props.onSave,
|
|
314
|
+
onReset = props.onReset,
|
|
315
|
+
onError = props.onError,
|
|
316
|
+
onCancel = props.onCancel,
|
|
317
|
+
_props$deafultFooter = props.deafultFooter,
|
|
318
|
+
deafultFooter = _props$deafultFooter === void 0 ? false : _props$deafultFooter,
|
|
319
|
+
_props$extraFooter = props.extraFooter,
|
|
320
|
+
extraFooter = _props$extraFooter === void 0 ? [] : _props$extraFooter,
|
|
321
|
+
_props$clearText = props.clearText,
|
|
322
|
+
clearText = _props$clearText === void 0 ? '清空' : _props$clearText,
|
|
323
|
+
_props$okText = props.okText,
|
|
324
|
+
okText = _props$okText === void 0 ? '保存' : _props$okText,
|
|
325
|
+
_props$closeText = props.closeText,
|
|
326
|
+
closeText = _props$closeText === void 0 ? '关闭' : _props$closeText,
|
|
327
|
+
_props$onlyForm = props.onlyForm,
|
|
328
|
+
onlyForm = _props$onlyForm === void 0 ? false : _props$onlyForm,
|
|
329
|
+
footer = props.footer,
|
|
330
|
+
formProps = props.formProps,
|
|
331
|
+
onlyCloseBtn = props.onlyCloseBtn,
|
|
332
|
+
isViewLayout = props.isViewLayout,
|
|
333
|
+
isCompact = props.isCompact,
|
|
334
|
+
viewModel = props.viewModel,
|
|
335
|
+
viewMode = props.viewMode,
|
|
336
|
+
labelColSpan = props.labelColSpan,
|
|
337
|
+
layout = props.layout,
|
|
338
|
+
rest = __rest(props, ["size", "width", "children", "visible", "onSave", "onReset", "onError", "onCancel", "deafultFooter", "extraFooter", "clearText", "okText", "closeText", "onlyForm", "footer", "formProps", "onlyCloseBtn", "isViewLayout", "isCompact", "viewModel", "viewMode", "labelColSpan", "layout"]);
|
|
339
|
+
var _Form$useForm = _antd.Form.useForm(),
|
|
340
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
341
|
+
form = _Form$useForm2[0];
|
|
444
342
|
var formRef = (0, _react.useRef)(null);
|
|
445
|
-
|
|
446
343
|
var _useState = (0, _react.useState)(false),
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
344
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
345
|
+
saving = _useState2[0],
|
|
346
|
+
setSaving = _useState2[1];
|
|
451
347
|
(0, _react.useImperativeHandle)(ref, function () {
|
|
452
348
|
return {
|
|
453
349
|
form: form
|
|
454
350
|
};
|
|
455
351
|
});
|
|
456
|
-
|
|
457
352
|
var handleSave = function handleSave() {
|
|
458
|
-
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/
|
|
459
|
-
var _a, res;
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
_context.prev = 11;
|
|
483
|
-
setSaving(true);
|
|
484
|
-
_context.t1 = onSave;
|
|
485
|
-
|
|
486
|
-
if (!_context.t1) {
|
|
487
|
-
_context.next = 17;
|
|
488
|
-
break;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
_context.next = 17;
|
|
492
|
-
return onSave(res);
|
|
493
|
-
|
|
494
|
-
case 17:
|
|
495
|
-
_context.next = 22;
|
|
353
|
+
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
354
|
+
var _a, res, _t, _t2, _t3;
|
|
355
|
+
return _regenerator().w(function (_context) {
|
|
356
|
+
while (1) switch (_context.p = _context.n) {
|
|
357
|
+
case 0:
|
|
358
|
+
res = undefined;
|
|
359
|
+
_context.p = 1;
|
|
360
|
+
_context.n = 2;
|
|
361
|
+
return form.validateFields();
|
|
362
|
+
case 2:
|
|
363
|
+
res = _context.v;
|
|
364
|
+
_context.n = 4;
|
|
365
|
+
break;
|
|
366
|
+
case 3:
|
|
367
|
+
_context.p = 3;
|
|
368
|
+
_t = _context.v;
|
|
369
|
+
onError && onError(_t);
|
|
370
|
+
return _context.a(2);
|
|
371
|
+
case 4:
|
|
372
|
+
_context.p = 4;
|
|
373
|
+
setSaving(true);
|
|
374
|
+
_t2 = onSave;
|
|
375
|
+
if (!_t2) {
|
|
376
|
+
_context.n = 5;
|
|
496
377
|
break;
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
378
|
+
}
|
|
379
|
+
_context.n = 5;
|
|
380
|
+
return onSave(res);
|
|
381
|
+
case 5:
|
|
382
|
+
_context.n = 7;
|
|
383
|
+
break;
|
|
384
|
+
case 6:
|
|
385
|
+
_context.p = 6;
|
|
386
|
+
_t3 = _context.v;
|
|
387
|
+
_antd.message.error(((_a = _t3 === null || _t3 === void 0 ? void 0 : _t3.data) === null || _a === void 0 ? void 0 : _a.msg) || (_t3 === null || _t3 === void 0 ? void 0 : _t3.data) || _t3);
|
|
388
|
+
case 7:
|
|
389
|
+
_context.p = 7;
|
|
390
|
+
setSaving(false);
|
|
391
|
+
return _context.f(7);
|
|
392
|
+
case 8:
|
|
393
|
+
return _context.a(2);
|
|
513
394
|
}
|
|
514
|
-
}, _callee, null, [[
|
|
395
|
+
}, _callee, null, [[4, 6, 7, 8], [1, 3]]);
|
|
515
396
|
}));
|
|
516
397
|
};
|
|
517
|
-
|
|
518
398
|
var handleReset = function handleReset() {
|
|
519
399
|
form.resetFields();
|
|
520
400
|
onReset && onReset();
|
|
521
401
|
};
|
|
522
|
-
|
|
523
402
|
_react["default"].useEffect(function () {
|
|
524
403
|
// 关闭弹窗后, 清除错误, 清除数据
|
|
525
404
|
if (!visible && formRef.current && !onlyForm) {
|
|
526
405
|
form.resetFields();
|
|
527
406
|
}
|
|
528
407
|
}, [visible]);
|
|
529
|
-
|
|
530
408
|
var getWidth = function getWidth() {
|
|
531
409
|
if (typeof width === 'number') {
|
|
532
410
|
return width;
|
|
533
411
|
}
|
|
534
|
-
|
|
535
412
|
switch (size) {
|
|
536
413
|
case 'xsmall':
|
|
537
414
|
return _vtxModal["default"].size.xsmall;
|
|
538
|
-
|
|
539
415
|
case 'small':
|
|
540
416
|
return _vtxModal["default"].size.small;
|
|
541
|
-
|
|
542
417
|
case 'middle':
|
|
543
|
-
|
|
544
|
-
return 900;
|
|
545
|
-
|
|
418
|
+
return _vtxModal["default"].size.middle;
|
|
546
419
|
case 'large':
|
|
547
420
|
return _vtxModal["default"].size.large;
|
|
548
|
-
|
|
549
421
|
default:
|
|
550
|
-
|
|
551
|
-
return 900;
|
|
422
|
+
return _vtxModal["default"].size.middle;
|
|
552
423
|
}
|
|
553
424
|
};
|
|
554
|
-
|
|
555
425
|
var getCols = function getCols() {
|
|
556
426
|
switch (size) {
|
|
557
427
|
case 'xsmall':
|
|
558
428
|
return 1;
|
|
559
|
-
|
|
560
429
|
case 'small':
|
|
561
430
|
return 1;
|
|
562
|
-
|
|
563
431
|
case 'middle':
|
|
564
432
|
return undefined;
|
|
565
|
-
|
|
566
433
|
case 'large':
|
|
567
434
|
return 3;
|
|
568
|
-
|
|
569
435
|
default:
|
|
570
436
|
return undefined;
|
|
571
437
|
}
|
|
572
|
-
};
|
|
438
|
+
};
|
|
439
|
+
// const getCard = () => {
|
|
573
440
|
// switch (size) {
|
|
574
441
|
// case 'xsmall':
|
|
575
442
|
// return false;
|
|
@@ -583,49 +450,44 @@ var CreateModal = function CreateModal(props, ref) {
|
|
|
583
450
|
// return true;
|
|
584
451
|
// }
|
|
585
452
|
// };
|
|
586
|
-
|
|
587
|
-
|
|
588
453
|
var getLabelColSpan = function getLabelColSpan() {
|
|
589
|
-
return labelColSpan ? labelColSpan :
|
|
454
|
+
return labelColSpan ? labelColSpan : undefined;
|
|
590
455
|
};
|
|
591
|
-
|
|
592
456
|
var getLayout = function getLayout() {
|
|
593
457
|
if (layout) return layout;
|
|
594
|
-
|
|
595
458
|
if (viewMode == 'mix') {
|
|
596
459
|
return undefined;
|
|
597
460
|
} else if ((viewMode == 'read' || viewMode == 'inline') && isViewLayout != false) {
|
|
598
461
|
return 'inline';
|
|
599
462
|
} else {
|
|
600
|
-
return '
|
|
463
|
+
return 'vertical';
|
|
601
464
|
}
|
|
602
465
|
};
|
|
603
|
-
|
|
604
466
|
var renderFooter = function renderFooter() {
|
|
605
467
|
if (footer) {
|
|
606
468
|
// 优先使用自定义的footer
|
|
607
469
|
return footer;
|
|
608
470
|
} else if ((viewMode == 'read' || viewMode == 'inline') && onlyCloseBtn != false) {
|
|
609
|
-
return [/*#__PURE__*/_react["default"].createElement(
|
|
471
|
+
return [/*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
610
472
|
key: "confirm",
|
|
611
473
|
onClick: onCancel
|
|
612
474
|
}, closeText)];
|
|
613
475
|
} else if (deafultFooter) {
|
|
614
476
|
// 使用默认的footer 确定和取消按钮
|
|
615
|
-
return [/*#__PURE__*/_react["default"].createElement(
|
|
477
|
+
return [/*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
616
478
|
key: "cancel",
|
|
617
479
|
onClick: onCancel
|
|
618
|
-
}, "\u53D6\u6D88"), /*#__PURE__*/_react["default"].createElement(
|
|
480
|
+
}, "\u53D6\u6D88"), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
619
481
|
key: "save",
|
|
620
482
|
type: "primary",
|
|
621
483
|
onClick: handleSave ? handleSave : null
|
|
622
484
|
}, "\u786E\u5B9A")];
|
|
623
485
|
} else {
|
|
624
|
-
return [/*#__PURE__*/_react["default"].createElement(
|
|
486
|
+
return [/*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
625
487
|
disabled: saving,
|
|
626
488
|
key: "clear",
|
|
627
489
|
onClick: handleReset
|
|
628
|
-
}, clearText)].concat(_toConsumableArray(extraFooter), [/*#__PURE__*/_react["default"].createElement(
|
|
490
|
+
}, clearText)].concat(_toConsumableArray(extraFooter), [/*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
629
491
|
loading: saving,
|
|
630
492
|
key: "save",
|
|
631
493
|
type: "primary",
|
|
@@ -634,31 +496,25 @@ var CreateModal = function CreateModal(props, ref) {
|
|
|
634
496
|
}, okText)]);
|
|
635
497
|
}
|
|
636
498
|
};
|
|
637
|
-
|
|
638
|
-
var formNode = /*#__PURE__*/_react["default"].createElement(_form["default"], Object.assign({
|
|
499
|
+
var formNode = /*#__PURE__*/_react["default"].createElement(_antd.Form, Object.assign({
|
|
639
500
|
ref: formRef,
|
|
640
501
|
form: form,
|
|
641
|
-
layout: getLayout()
|
|
642
|
-
scrollToFirstError: true
|
|
502
|
+
layout: getLayout()
|
|
643
503
|
}, formProps), /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"], {
|
|
644
504
|
cols: getCols(),
|
|
645
505
|
labelColSpan: getLabelColSpan(),
|
|
646
506
|
layout: getLayout()
|
|
647
|
-
},
|
|
648
|
-
|
|
649
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, !onlyForm ? /*#__PURE__*/_react["default"].createElement(_vtxModal["default"], Object.assign({
|
|
507
|
+
}, _renderFieldItem(children, undefined, viewModel, viewMode)));
|
|
508
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, !onlyForm ? (/*#__PURE__*/_react["default"].createElement(_vtxModal["default"], Object.assign({
|
|
650
509
|
className: viewMode == 'read' && isCompact != false ? 'env-create-view-modal' : 'env-create-modal',
|
|
651
510
|
visible: onlyForm ? true : visible,
|
|
652
511
|
width: getWidth(),
|
|
653
512
|
maskClosable: false,
|
|
654
513
|
onCancel: onCancel,
|
|
655
514
|
footer: renderFooter()
|
|
656
|
-
}, rest), formNode) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
515
|
+
}, rest), formNode)) : (/*#__PURE__*/_react["default"].createElement("div", {
|
|
657
516
|
className: viewMode == 'read' && isCompact != false ? 'env-create-view-modal' : 'env-create-modal'
|
|
658
|
-
}, formNode));
|
|
517
|
+
}, formNode)));
|
|
659
518
|
};
|
|
660
|
-
|
|
661
|
-
var _default = /*#__PURE__*/(0, _react.forwardRef)(CreateModal);
|
|
662
|
-
|
|
663
|
-
exports["default"] = _default;
|
|
519
|
+
var _default = exports["default"] = /*#__PURE__*/(0, _react.forwardRef)(CreateModal);
|
|
664
520
|
//# sourceMappingURL=create-modal.js.map
|