@teamias/rex-design 0.0.1
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/LICENSE +21 -0
- package/README.md +43 -0
- package/dist/components/action-buttons/action-buttons.d.ts +2 -0
- package/dist/components/action-buttons/action-buttons.js +182 -0
- package/dist/components/action-buttons/demo/index.d.ts +2 -0
- package/dist/components/action-buttons/demo/index.js +69 -0
- package/dist/components/action-buttons/index.d.ts +3 -0
- package/dist/components/action-buttons/index.js +3 -0
- package/dist/components/action-buttons/modules/handlerFilter.d.ts +2 -0
- package/dist/components/action-buttons/modules/handlerFilter.js +62 -0
- package/dist/components/action-buttons/types.d.ts +96 -0
- package/dist/components/action-buttons/types.js +3 -0
- package/dist/components/base-form/base-form.d.ts +3 -0
- package/dist/components/base-form/base-form.js +260 -0
- package/dist/components/base-form/demo/index.d.ts +4 -0
- package/dist/components/base-form/demo/index.js +515 -0
- package/dist/components/base-form/index.d.ts +4 -0
- package/dist/components/base-form/index.js +4 -0
- package/dist/components/base-form/locales/en-US.json +21 -0
- package/dist/components/base-form/locales/zh-CN.json +21 -0
- package/dist/components/base-form/locales.index.d.ts +42 -0
- package/dist/components/base-form/locales.index.js +4 -0
- package/dist/components/base-form/modules/dependencyUtils.d.ts +13 -0
- package/dist/components/base-form/modules/dependencyUtils.js +43 -0
- package/dist/components/base-form/modules/handlerData.d.ts +8 -0
- package/dist/components/base-form/modules/handlerData.js +59 -0
- package/dist/components/base-form/modules/renderComponentNode.d.ts +11 -0
- package/dist/components/base-form/modules/renderComponentNode.js +607 -0
- package/dist/components/base-form/modules/valuesToFields.d.ts +10 -0
- package/dist/components/base-form/modules/valuesToFields.js +18 -0
- package/dist/components/base-form/style/index.d.ts +3 -0
- package/dist/components/base-form/style/index.js +8 -0
- package/dist/components/base-form/types.d.ts +181 -0
- package/dist/components/base-form/types.js +10 -0
- package/dist/components/base-list-table/base-list-table.d.ts +33 -0
- package/dist/components/base-list-table/base-list-table.js +292 -0
- package/dist/components/base-list-table/demo/BasicBaseListTable.d.ts +2 -0
- package/dist/components/base-list-table/demo/BasicBaseListTable.js +1469 -0
- package/dist/components/base-list-table/demo/NoData.d.ts +2 -0
- package/dist/components/base-list-table/demo/NoData.js +55 -0
- package/dist/components/base-list-table/demo/TableMaxRowCount.d.ts +2 -0
- package/dist/components/base-list-table/demo/TableMaxRowCount.js +1696 -0
- package/dist/components/base-list-table/demo/VirtualDemo.d.ts +2 -0
- package/dist/components/base-list-table/demo/VirtualDemo.js +548 -0
- package/dist/components/base-list-table/index.d.ts +1 -0
- package/dist/components/base-list-table/index.js +1 -0
- package/dist/components/base-list-table/style/index.d.ts +5 -0
- package/dist/components/base-list-table/style/index.js +17 -0
- package/dist/components/base-table/base-table.d.ts +51 -0
- package/dist/components/base-table/base-table.js +291 -0
- package/dist/components/base-table/components/BaseTableRow.d.ts +1 -0
- package/dist/components/base-table/components/BaseTableRow.js +129 -0
- package/dist/components/base-table/demo/BaseTableAll.d.ts +2 -0
- package/dist/components/base-table/demo/BaseTableAll.js +66 -0
- package/dist/components/base-table/demo/BaseTableBasic.d.ts +2 -0
- package/dist/components/base-table/demo/BaseTableBasic.js +58 -0
- package/dist/components/base-table/demo/BaseTableIndex.d.ts +2 -0
- package/dist/components/base-table/demo/BaseTableIndex.js +57 -0
- package/dist/components/base-table/demo/BaseTableRowSelect.d.ts +2 -0
- package/dist/components/base-table/demo/BaseTableRowSelect.js +45 -0
- package/dist/components/base-table/demo/tableData.d.ts +332 -0
- package/dist/components/base-table/demo/tableData.js +293 -0
- package/dist/components/base-table/index.d.ts +1 -0
- package/dist/components/base-table/index.js +1 -0
- package/dist/components/base-table/style/index.d.ts +3 -0
- package/dist/components/base-table/style/index.js +9 -0
- package/dist/components/data-cell/data-cell.d.ts +3 -0
- package/dist/components/data-cell/data-cell.js +17 -0
- package/dist/components/data-cell/demo/index.d.ts +2 -0
- package/dist/components/data-cell/demo/index.js +332 -0
- package/dist/components/data-cell/index.d.ts +2 -0
- package/dist/components/data-cell/index.js +2 -0
- package/dist/components/data-cell/modules/cellItemMap.d.ts +3 -0
- package/dist/components/data-cell/modules/cellItemMap.js +374 -0
- package/dist/components/data-cell/style/index.d.ts +7 -0
- package/dist/components/data-cell/style/index.js +23 -0
- package/dist/components/data-cell/types.d.ts +192 -0
- package/dist/components/data-cell/types.js +1 -0
- package/dist/components/icons/assets/icon-park--arrow-up.svg +7 -0
- package/dist/components/icons/assets/index.d.ts +4 -0
- package/dist/components/icons/assets/index.js +9 -0
- package/dist/components/icons/assets/svg-spinners--blocks-shuffle-3.svg +21 -0
- package/dist/components/icons/demo/index.d.ts +2 -0
- package/dist/components/icons/demo/index.js +43 -0
- package/dist/components/icons/icons.d.ts +39 -0
- package/dist/components/icons/icons.js +251 -0
- package/dist/components/icons/index.d.ts +1 -0
- package/dist/components/icons/index.js +1 -0
- package/dist/components/icons/style/index.d.ts +2 -0
- package/dist/components/icons/style/index.js +5 -0
- package/dist/components/media-viewer/demo/index.d.ts +2 -0
- package/dist/components/media-viewer/demo/index.js +23 -0
- package/dist/components/media-viewer/index.d.ts +1 -0
- package/dist/components/media-viewer/index.js +1 -0
- package/dist/components/media-viewer/media-viewer.d.ts +48 -0
- package/dist/components/media-viewer/media-viewer.js +119 -0
- package/dist/components/media-viewer/style/index.d.ts +6 -0
- package/dist/components/media-viewer/style/index.js +31 -0
- package/dist/hooks/request-fields-container/demo/index.d.ts +2 -0
- package/dist/hooks/request-fields-container/demo/index.js +36 -0
- package/dist/hooks/request-fields-container/index.d.ts +4 -0
- package/dist/hooks/request-fields-container/index.js +3 -0
- package/dist/hooks/request-fields-container/request-fields-container-context-provider.d.ts +22 -0
- package/dist/hooks/request-fields-container/request-fields-container-context-provider.js +134 -0
- package/dist/hooks/request-fields-container/request-fields-container-context.d.ts +39 -0
- package/dist/hooks/request-fields-container/request-fields-container-context.js +5 -0
- package/dist/hooks/request-fields-container/request-fields-container-hoc.d.ts +4 -0
- package/dist/hooks/request-fields-container/request-fields-container-hoc.js +31 -0
- package/dist/hooks/request-fields-container/use-request-fields-container.d.ts +22 -0
- package/dist/hooks/request-fields-container/use-request-fields-container.js +131 -0
- package/dist/hooks/rex-pro-config-provider/demo/index.d.ts +2 -0
- package/dist/hooks/rex-pro-config-provider/demo/index.js +61 -0
- package/dist/hooks/rex-pro-config-provider/index.d.ts +2 -0
- package/dist/hooks/rex-pro-config-provider/index.js +2 -0
- package/dist/hooks/rex-pro-config-provider/rex-pro-config-context.d.ts +27 -0
- package/dist/hooks/rex-pro-config-provider/rex-pro-config-context.js +33 -0
- package/dist/hooks/rex-pro-config-provider/rex-pro-config-provider.d.ts +6 -0
- package/dist/hooks/rex-pro-config-provider/rex-pro-config-provider.js +24 -0
- package/dist/hooks/rex-pro-config-provider/use-rex-pro-config-provider.d.ts +2 -0
- package/dist/hooks/rex-pro-config-provider/use-rex-pro-config-provider.js +11 -0
- package/dist/hooks/use-state-data/demo/index.d.ts +2 -0
- package/dist/hooks/use-state-data/demo/index.js +135 -0
- package/dist/hooks/use-state-data/index.d.ts +1 -0
- package/dist/hooks/use-state-data/index.js +1 -0
- package/dist/hooks/use-state-data/use-state-data.d.ts +11 -0
- package/dist/hooks/use-state-data/use-state-data.js +64 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +10 -0
- package/dist/types/svg.d.ts +4 -0
- package/dist/utils/locales/en-US.json +13 -0
- package/dist/utils/locales/index.d.ts +26 -0
- package/dist/utils/locales/index.js +4 -0
- package/dist/utils/locales/zh-CN.json +13 -0
- package/package.json +90 -0
|
@@ -0,0 +1,515 @@
|
|
|
1
|
+
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); }
|
|
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 e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
3
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
4
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
5
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
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(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
9
|
+
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); }
|
|
10
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
11
|
+
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."); }
|
|
12
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
13
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
14
|
+
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; } }
|
|
15
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
16
|
+
import { ProForm, ProFormDependency, ProFormSelect } from "@ant-design/pro-components";
|
|
17
|
+
import { Button, Card } from 'antd';
|
|
18
|
+
import { UserOutlined } from '@ant-design/icons';
|
|
19
|
+
import { RexProConfigProvider } from "../../..";
|
|
20
|
+
import { createIntl } from "react-intl";
|
|
21
|
+
import { crush } from "radash";
|
|
22
|
+
import { BaseForm } from "../base-form";
|
|
23
|
+
import { dataToInitialValues, getFieldsDefaultValues } from "../modules/handlerData";
|
|
24
|
+
import { valuesToFields } from "../modules/valuesToFields";
|
|
25
|
+
import { designDataEntryEnUS } from "../locales.index";
|
|
26
|
+
import React from "react";
|
|
27
|
+
export default (function () {
|
|
28
|
+
var fields = [{
|
|
29
|
+
"label": "成本区间",
|
|
30
|
+
"valueType": "multipleComponents",
|
|
31
|
+
"compact": true,
|
|
32
|
+
"subItems": [{
|
|
33
|
+
"valueType": "select",
|
|
34
|
+
"field": "avg_cost",
|
|
35
|
+
"defaultValue": "avg_cost",
|
|
36
|
+
// "itemWidth": "150px",
|
|
37
|
+
"fieldProps": {
|
|
38
|
+
"allowClear": false,
|
|
39
|
+
"popupMatchSelectWidth": false,
|
|
40
|
+
"maxTagCount": 1
|
|
41
|
+
},
|
|
42
|
+
hidden: false,
|
|
43
|
+
"options": [{
|
|
44
|
+
"label": "成本区间",
|
|
45
|
+
"value": "avg_cost"
|
|
46
|
+
}]
|
|
47
|
+
}, {
|
|
48
|
+
"field": ["avg_cost_min", "avg_cost_max"],
|
|
49
|
+
"valueType": "inputNumberRange",
|
|
50
|
+
// "itemWidth": "150px",
|
|
51
|
+
"fieldProps": []
|
|
52
|
+
}],
|
|
53
|
+
hidden: false
|
|
54
|
+
}, {
|
|
55
|
+
valueType: 'multipleComponents',
|
|
56
|
+
label: 'multipleComponents',
|
|
57
|
+
compact: true,
|
|
58
|
+
subItems: [{
|
|
59
|
+
valueType: 'input',
|
|
60
|
+
field: 'multipleComponents-input',
|
|
61
|
+
labelWidth: '100px',
|
|
62
|
+
// itemWidth: '20%',
|
|
63
|
+
defaultValue: '2025-05-05',
|
|
64
|
+
formItemProps: {
|
|
65
|
+
style: {
|
|
66
|
+
background: '#000',
|
|
67
|
+
padding: 10
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
fieldProps: {
|
|
71
|
+
prefix: /*#__PURE__*/React.createElement(UserOutlined, null),
|
|
72
|
+
disabled: true
|
|
73
|
+
}
|
|
74
|
+
}, {
|
|
75
|
+
valueType: 'treeSelect',
|
|
76
|
+
field: 'multipleComponents-treeSelect',
|
|
77
|
+
// itemWidth: '80%',
|
|
78
|
+
defaultValue: 'light',
|
|
79
|
+
options: [{
|
|
80
|
+
label: 'Light',
|
|
81
|
+
value: 'light'
|
|
82
|
+
}, {
|
|
83
|
+
label: 'Light2',
|
|
84
|
+
value: 'light2'
|
|
85
|
+
}]
|
|
86
|
+
}, {
|
|
87
|
+
valueType: 'datePicker',
|
|
88
|
+
field: 'multipleComponents-datePicker',
|
|
89
|
+
defaultValue: '2025-05-05'
|
|
90
|
+
}, {
|
|
91
|
+
valueType: 'treeSelect',
|
|
92
|
+
field: 'multipleComponents-treeSelect2',
|
|
93
|
+
options: [{
|
|
94
|
+
label: 'Light123',
|
|
95
|
+
value: 'light123'
|
|
96
|
+
}, {
|
|
97
|
+
label: 'Light456',
|
|
98
|
+
value: 'light456'
|
|
99
|
+
}],
|
|
100
|
+
fieldProps: {
|
|
101
|
+
disabled: true
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
// {
|
|
105
|
+
// valueType: 'inputNumberRange',
|
|
106
|
+
// field: ['multipleComponents-min', 'multipleComponents-max'],
|
|
107
|
+
// defaultValue: [2, 5],
|
|
108
|
+
// },
|
|
109
|
+
// {
|
|
110
|
+
// valueType: 'select',
|
|
111
|
+
// field: 'multipleComponents-select',
|
|
112
|
+
// defaultValue: 'light',
|
|
113
|
+
// options: [
|
|
114
|
+
// {label: 'Light', value: 'light'},
|
|
115
|
+
// {label: 'Light2', value: 'light2'},
|
|
116
|
+
// ],
|
|
117
|
+
// },
|
|
118
|
+
// {
|
|
119
|
+
// valueType: 'dateRange',
|
|
120
|
+
// field: ['multipleComponents-start', 'multipleComponents-end'],
|
|
121
|
+
// },
|
|
122
|
+
]
|
|
123
|
+
}, {
|
|
124
|
+
valueType: 'input',
|
|
125
|
+
field: 'input',
|
|
126
|
+
label: 'input',
|
|
127
|
+
defaultValue: 'input',
|
|
128
|
+
hidden: false
|
|
129
|
+
}, {
|
|
130
|
+
valueType: 'select',
|
|
131
|
+
field: 'select',
|
|
132
|
+
label: 'select',
|
|
133
|
+
defaultValue: 'light',
|
|
134
|
+
options: [{
|
|
135
|
+
label: 'Light',
|
|
136
|
+
value: 'light'
|
|
137
|
+
}, {
|
|
138
|
+
label: 'Light2',
|
|
139
|
+
value: 'light2'
|
|
140
|
+
}]
|
|
141
|
+
}, {
|
|
142
|
+
valueType: 'selectDim',
|
|
143
|
+
field: 'selectDim',
|
|
144
|
+
label: 'selectDim',
|
|
145
|
+
api: '/selectData',
|
|
146
|
+
defaultParams: {
|
|
147
|
+
a: 1,
|
|
148
|
+
b: 2
|
|
149
|
+
}
|
|
150
|
+
}, {
|
|
151
|
+
valueType: 'dateRange',
|
|
152
|
+
field: ['dateRange-start', 'dateRange-end'],
|
|
153
|
+
label: 'dateRange',
|
|
154
|
+
defaultValue: -29
|
|
155
|
+
}, {
|
|
156
|
+
valueType: 'cascader',
|
|
157
|
+
field: 'cascader',
|
|
158
|
+
label: 'cascader',
|
|
159
|
+
options: [{
|
|
160
|
+
label: 'Light',
|
|
161
|
+
value: 'light'
|
|
162
|
+
}, {
|
|
163
|
+
label: 'Light2',
|
|
164
|
+
value: 'light2'
|
|
165
|
+
}]
|
|
166
|
+
}, {
|
|
167
|
+
valueType: 'treeSelect',
|
|
168
|
+
field: 'treeSelect',
|
|
169
|
+
label: 'treeSelect',
|
|
170
|
+
options: [{
|
|
171
|
+
label: 'Light',
|
|
172
|
+
value: 'light'
|
|
173
|
+
}, {
|
|
174
|
+
label: 'Light2',
|
|
175
|
+
value: 'light2'
|
|
176
|
+
}],
|
|
177
|
+
fieldProps: {
|
|
178
|
+
disabled: true
|
|
179
|
+
}
|
|
180
|
+
}, {
|
|
181
|
+
valueType: 'checkbox',
|
|
182
|
+
field: 'checkbox',
|
|
183
|
+
label: 'checkbox',
|
|
184
|
+
defaultValue: true
|
|
185
|
+
}, {
|
|
186
|
+
valueType: 'checkboxGroup',
|
|
187
|
+
field: 'checkboxGroup',
|
|
188
|
+
label: 'checkboxGroup',
|
|
189
|
+
options: [{
|
|
190
|
+
label: 'Light',
|
|
191
|
+
value: 'light'
|
|
192
|
+
}, {
|
|
193
|
+
label: 'Light2',
|
|
194
|
+
value: 'light2'
|
|
195
|
+
}]
|
|
196
|
+
}, {
|
|
197
|
+
valueType: 'radioGroup',
|
|
198
|
+
field: 'radioGroup',
|
|
199
|
+
label: 'radioGroup',
|
|
200
|
+
defaultValue: 'light',
|
|
201
|
+
options: [{
|
|
202
|
+
label: 'Light',
|
|
203
|
+
value: 'light'
|
|
204
|
+
}, {
|
|
205
|
+
label: 'Light2',
|
|
206
|
+
value: 'light2'
|
|
207
|
+
}]
|
|
208
|
+
}, {
|
|
209
|
+
valueType: 'inputNumber',
|
|
210
|
+
field: 'inputNumber',
|
|
211
|
+
label: 'inputNumber',
|
|
212
|
+
defaultValue: 2
|
|
213
|
+
}, {
|
|
214
|
+
valueType: 'inputNumberRange',
|
|
215
|
+
field: ['inputNumberRange-min', 'inputNumberRange-max'],
|
|
216
|
+
label: 'inputNumberRange',
|
|
217
|
+
defaultValue: [2, 5]
|
|
218
|
+
}, {
|
|
219
|
+
valueType: 'textArea',
|
|
220
|
+
field: 'textArea',
|
|
221
|
+
label: 'textArea',
|
|
222
|
+
defaultValue: 'qweqwe'
|
|
223
|
+
}, {
|
|
224
|
+
valueType: 'switch',
|
|
225
|
+
field: 'switch',
|
|
226
|
+
label: 'switch'
|
|
227
|
+
}, {
|
|
228
|
+
valueType: 'datePicker',
|
|
229
|
+
field: 'datePicker',
|
|
230
|
+
label: 'datePicker',
|
|
231
|
+
defaultValue: '2025-05-05'
|
|
232
|
+
}];
|
|
233
|
+
var initialValues = getFieldsDefaultValues(fields);
|
|
234
|
+
// console.log(initialValues);
|
|
235
|
+
|
|
236
|
+
return /*#__PURE__*/React.createElement(RexProConfigProvider, {
|
|
237
|
+
value: {
|
|
238
|
+
intl: createIntl({
|
|
239
|
+
locale: 'en-US',
|
|
240
|
+
messages: crush(designDataEntryEnUS),
|
|
241
|
+
onError: function onError() {}
|
|
242
|
+
})
|
|
243
|
+
}
|
|
244
|
+
}, /*#__PURE__*/React.createElement(ProForm, {
|
|
245
|
+
initialValues: initialValues,
|
|
246
|
+
onFinish: function onFinish(values) {
|
|
247
|
+
console.log(values);
|
|
248
|
+
}
|
|
249
|
+
}, /*#__PURE__*/React.createElement(BaseForm, {
|
|
250
|
+
fields: fields,
|
|
251
|
+
itemWidth: "50%",
|
|
252
|
+
fieldProps: {
|
|
253
|
+
'multipleComponents-treeSelect': {
|
|
254
|
+
valueType: 'input',
|
|
255
|
+
formItemProps: {
|
|
256
|
+
style: {
|
|
257
|
+
background: 'red'
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
fieldProps: {
|
|
261
|
+
size: 'small'
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
})));
|
|
266
|
+
});
|
|
267
|
+
var s1 = function s1(params) {
|
|
268
|
+
// console.log('触发1');
|
|
269
|
+
|
|
270
|
+
fetch('/test/s1', {
|
|
271
|
+
method: 'post',
|
|
272
|
+
body: JSON.stringify(params)
|
|
273
|
+
});
|
|
274
|
+
return new Promise(function (rel) {
|
|
275
|
+
setTimeout(function () {
|
|
276
|
+
rel([{
|
|
277
|
+
label: '选项1',
|
|
278
|
+
value: '选项1'
|
|
279
|
+
}, {
|
|
280
|
+
label: '选项2',
|
|
281
|
+
value: '选项2'
|
|
282
|
+
}, {
|
|
283
|
+
label: '选项3',
|
|
284
|
+
value: '选项3'
|
|
285
|
+
}, {
|
|
286
|
+
label: '选项4',
|
|
287
|
+
value: '选项4'
|
|
288
|
+
}]);
|
|
289
|
+
}, 1000);
|
|
290
|
+
});
|
|
291
|
+
};
|
|
292
|
+
var s2 = function s2(params) {
|
|
293
|
+
// console.log('触发2');
|
|
294
|
+
fetch('/test/s2', {
|
|
295
|
+
method: 'post',
|
|
296
|
+
body: JSON.stringify(params)
|
|
297
|
+
});
|
|
298
|
+
return new Promise(function (rel) {
|
|
299
|
+
setTimeout(function () {
|
|
300
|
+
rel([{
|
|
301
|
+
label: '2-选项1',
|
|
302
|
+
value: '1'
|
|
303
|
+
}, {
|
|
304
|
+
label: '2-选项2',
|
|
305
|
+
value: '2'
|
|
306
|
+
}, {
|
|
307
|
+
label: '2-选项3',
|
|
308
|
+
value: '3'
|
|
309
|
+
}, {
|
|
310
|
+
label: '2-选项4',
|
|
311
|
+
value: '4'
|
|
312
|
+
}]);
|
|
313
|
+
}, 1000);
|
|
314
|
+
});
|
|
315
|
+
};
|
|
316
|
+
export var BaseFormBasicTest = function BaseFormBasicTest() {
|
|
317
|
+
var _ProForm$useForm = ProForm.useForm(),
|
|
318
|
+
_ProForm$useForm2 = _slicedToArray(_ProForm$useForm, 1),
|
|
319
|
+
form = _ProForm$useForm2[0];
|
|
320
|
+
var fields = [{
|
|
321
|
+
valueType: 'select',
|
|
322
|
+
field: 'select-false',
|
|
323
|
+
label: 'select-false',
|
|
324
|
+
api: '/select1',
|
|
325
|
+
params: {
|
|
326
|
+
type: 'FilterForm'
|
|
327
|
+
}
|
|
328
|
+
}, {
|
|
329
|
+
valueType: 'select',
|
|
330
|
+
field: 'select-true',
|
|
331
|
+
label: 'select-true',
|
|
332
|
+
api: '/select2',
|
|
333
|
+
params: {
|
|
334
|
+
type: 'FilterForm'
|
|
335
|
+
},
|
|
336
|
+
dependencies: [{
|
|
337
|
+
action: 'search',
|
|
338
|
+
field: ['select-false']
|
|
339
|
+
}]
|
|
340
|
+
}, {
|
|
341
|
+
valueType: 'dateRange',
|
|
342
|
+
field: ['start', 'end']
|
|
343
|
+
// defaultValue: 1,
|
|
344
|
+
}];
|
|
345
|
+
var initialValues = dataToInitialValues({
|
|
346
|
+
'select-false': '选项1',
|
|
347
|
+
'select-true': '2-选项1',
|
|
348
|
+
start: "2025-07-18",
|
|
349
|
+
end: "2025-08-20"
|
|
350
|
+
// 'start-end': ["2025-07-18", "2025-08-20"],
|
|
351
|
+
}, fields);
|
|
352
|
+
console.log(initialValues);
|
|
353
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(ProForm, {
|
|
354
|
+
disabled: true,
|
|
355
|
+
onFinish: function onFinish(e) {
|
|
356
|
+
return console.log(e);
|
|
357
|
+
}
|
|
358
|
+
}, /*#__PURE__*/React.createElement(ProFormSelect, {
|
|
359
|
+
name: "select1",
|
|
360
|
+
label: "\u9009\u62E91",
|
|
361
|
+
params: {
|
|
362
|
+
type: 'QueryFilter'
|
|
363
|
+
},
|
|
364
|
+
request: s1
|
|
365
|
+
}), /*#__PURE__*/React.createElement(ProFormDependency, {
|
|
366
|
+
name: ['select1']
|
|
367
|
+
}, function (data) {
|
|
368
|
+
console.log('执行');
|
|
369
|
+
return /*#__PURE__*/React.createElement(ProFormSelect, {
|
|
370
|
+
name: "select2",
|
|
371
|
+
label: "\u9009\u62E92",
|
|
372
|
+
params: _objectSpread({
|
|
373
|
+
type: 'QueryFilter'
|
|
374
|
+
}, data),
|
|
375
|
+
request: s1
|
|
376
|
+
});
|
|
377
|
+
}))), /*#__PURE__*/React.createElement(Button, {
|
|
378
|
+
onClick: function onClick() {
|
|
379
|
+
// console.log(form);
|
|
380
|
+
var data = valuesToFields({
|
|
381
|
+
'select-false': '选项1',
|
|
382
|
+
'select-true': '2-选项1'
|
|
383
|
+
});
|
|
384
|
+
// console.log(data);
|
|
385
|
+
form.setFields(data);
|
|
386
|
+
}
|
|
387
|
+
}, "setValue"), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(ProForm
|
|
388
|
+
// disabled
|
|
389
|
+
, {
|
|
390
|
+
form: form,
|
|
391
|
+
initialValues: initialValues,
|
|
392
|
+
onFinish: function onFinish(e) {
|
|
393
|
+
return console.log(e);
|
|
394
|
+
}
|
|
395
|
+
}, /*#__PURE__*/React.createElement(BaseForm, {
|
|
396
|
+
requestOptions: ( /*#__PURE__*/function () {
|
|
397
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(api, params) {
|
|
398
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
399
|
+
while (1) switch (_context.prev = _context.next) {
|
|
400
|
+
case 0:
|
|
401
|
+
return _context.abrupt("return", api === '/select1' ? s1(params) : s2(params));
|
|
402
|
+
case 1:
|
|
403
|
+
case "end":
|
|
404
|
+
return _context.stop();
|
|
405
|
+
}
|
|
406
|
+
}, _callee);
|
|
407
|
+
}));
|
|
408
|
+
return function (_x, _x2) {
|
|
409
|
+
return _ref.apply(this, arguments);
|
|
410
|
+
};
|
|
411
|
+
}()),
|
|
412
|
+
fields: fields
|
|
413
|
+
}))));
|
|
414
|
+
};
|
|
415
|
+
export var BaseFormBasicDepend = function BaseFormBasicDepend() {
|
|
416
|
+
var fields = [{
|
|
417
|
+
valueType: 'dateRange',
|
|
418
|
+
field: ['dateRange-start', 'dateRange-end'],
|
|
419
|
+
label: 'dateRange',
|
|
420
|
+
defaultValue: -6
|
|
421
|
+
}, {
|
|
422
|
+
valueType: 'selectDim',
|
|
423
|
+
field: 'selectDim',
|
|
424
|
+
label: 'selectDim',
|
|
425
|
+
api: '/selectData',
|
|
426
|
+
defaultValue: '2'
|
|
427
|
+
// 1 2 3 4
|
|
428
|
+
}, {
|
|
429
|
+
valueType: 'select',
|
|
430
|
+
field: 'select',
|
|
431
|
+
label: 'select',
|
|
432
|
+
api: '/selectData',
|
|
433
|
+
dependenciesV2: [{
|
|
434
|
+
field: 'selectDim',
|
|
435
|
+
action: 'updateData',
|
|
436
|
+
op: 'eq',
|
|
437
|
+
target: '2'
|
|
438
|
+
}]
|
|
439
|
+
}, {
|
|
440
|
+
valueType: 'input',
|
|
441
|
+
field: 'input111',
|
|
442
|
+
label: 'input (selectDim === 2 显示)',
|
|
443
|
+
dependenciesV2: [{
|
|
444
|
+
field: 'selectDim',
|
|
445
|
+
action: 'show',
|
|
446
|
+
op: 'eq',
|
|
447
|
+
target: '2'
|
|
448
|
+
}]
|
|
449
|
+
}, {
|
|
450
|
+
valueType: 'input',
|
|
451
|
+
field: 'input222',
|
|
452
|
+
label: 'input (selectDim 为空时隐藏)',
|
|
453
|
+
dependenciesV2: [{
|
|
454
|
+
field: 'selectDim',
|
|
455
|
+
action: 'hidden',
|
|
456
|
+
op: 'empty'
|
|
457
|
+
}]
|
|
458
|
+
}, {
|
|
459
|
+
valueType: 'input',
|
|
460
|
+
field: 'input333',
|
|
461
|
+
label: 'input (selectDim 改变时,清空值)',
|
|
462
|
+
dependenciesV2: [{
|
|
463
|
+
field: 'selectDim',
|
|
464
|
+
action: 'clear'
|
|
465
|
+
}]
|
|
466
|
+
}, {
|
|
467
|
+
valueType: 'input',
|
|
468
|
+
field: 'input444',
|
|
469
|
+
label: 'input (selectDim 改变时同步赋值)',
|
|
470
|
+
dependenciesV2: [{
|
|
471
|
+
field: 'selectDim',
|
|
472
|
+
action: 'syncValue'
|
|
473
|
+
}]
|
|
474
|
+
}, {
|
|
475
|
+
valueType: 'input',
|
|
476
|
+
field: 'input555',
|
|
477
|
+
label: 'input (selectDim 非空disabled)',
|
|
478
|
+
dependenciesV2: [{
|
|
479
|
+
field: 'selectDim',
|
|
480
|
+
action: 'disabled',
|
|
481
|
+
op: 'notEmpty'
|
|
482
|
+
}, {
|
|
483
|
+
field: 'selectDim',
|
|
484
|
+
action: 'syncValue'
|
|
485
|
+
}]
|
|
486
|
+
}];
|
|
487
|
+
var initialValues = getFieldsDefaultValues(fields);
|
|
488
|
+
// console.log(initialValues);
|
|
489
|
+
|
|
490
|
+
return /*#__PURE__*/React.createElement(ProForm, {
|
|
491
|
+
initialValues: initialValues,
|
|
492
|
+
onFinish: function onFinish(values) {
|
|
493
|
+
console.log(values);
|
|
494
|
+
}
|
|
495
|
+
}, /*#__PURE__*/React.createElement(BaseForm, {
|
|
496
|
+
fields: fields,
|
|
497
|
+
itemWidth: "50%",
|
|
498
|
+
requestOptions: ( /*#__PURE__*/function () {
|
|
499
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(api, params) {
|
|
500
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
501
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
502
|
+
case 0:
|
|
503
|
+
return _context2.abrupt("return", api === '/select1' ? s1(params) : s2(params));
|
|
504
|
+
case 1:
|
|
505
|
+
case "end":
|
|
506
|
+
return _context2.stop();
|
|
507
|
+
}
|
|
508
|
+
}, _callee2);
|
|
509
|
+
}));
|
|
510
|
+
return function (_x3, _x4) {
|
|
511
|
+
return _ref2.apply(this, arguments);
|
|
512
|
+
};
|
|
513
|
+
}())
|
|
514
|
+
}));
|
|
515
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"bit": {
|
|
3
|
+
"data-entry": {
|
|
4
|
+
"base-form": {
|
|
5
|
+
"placeholder": {
|
|
6
|
+
"date-range": {
|
|
7
|
+
"end": "End time",
|
|
8
|
+
"start": "Start time"
|
|
9
|
+
},
|
|
10
|
+
"input": "Please enter",
|
|
11
|
+
"input-number-range": {
|
|
12
|
+
"max": "Maximum value",
|
|
13
|
+
"min": "Minimum value"
|
|
14
|
+
},
|
|
15
|
+
"select": "Please select"
|
|
16
|
+
},
|
|
17
|
+
"value-type-match-error": "Not matched"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"bit": {
|
|
3
|
+
"data-entry": {
|
|
4
|
+
"base-form": {
|
|
5
|
+
"placeholder": {
|
|
6
|
+
"input": "请输入",
|
|
7
|
+
"select": "请选择",
|
|
8
|
+
"date-range": {
|
|
9
|
+
"start": "开始时间",
|
|
10
|
+
"end": "结束时间"
|
|
11
|
+
},
|
|
12
|
+
"input-number-range": {
|
|
13
|
+
"min": "最小值",
|
|
14
|
+
"max": "最大值"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"value-type-match-error": "匹配不到"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare const designDataEntryZhCN: {
|
|
2
|
+
bit: {
|
|
3
|
+
"data-entry": {
|
|
4
|
+
"base-form": {
|
|
5
|
+
placeholder: {
|
|
6
|
+
input: string;
|
|
7
|
+
select: string;
|
|
8
|
+
"date-range": {
|
|
9
|
+
start: string;
|
|
10
|
+
end: string;
|
|
11
|
+
};
|
|
12
|
+
"input-number-range": {
|
|
13
|
+
min: string;
|
|
14
|
+
max: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
"value-type-match-error": string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const designDataEntryEnUS: {
|
|
23
|
+
bit: {
|
|
24
|
+
"data-entry": {
|
|
25
|
+
"base-form": {
|
|
26
|
+
placeholder: {
|
|
27
|
+
"date-range": {
|
|
28
|
+
end: string;
|
|
29
|
+
start: string;
|
|
30
|
+
};
|
|
31
|
+
input: string;
|
|
32
|
+
"input-number-range": {
|
|
33
|
+
max: string;
|
|
34
|
+
min: string;
|
|
35
|
+
};
|
|
36
|
+
select: string;
|
|
37
|
+
};
|
|
38
|
+
"value-type-match-error": string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TDependencyAction } from "../types";
|
|
2
|
+
type Dependency = {
|
|
3
|
+
action: TDependencyAction;
|
|
4
|
+
field: string | string[];
|
|
5
|
+
};
|
|
6
|
+
export declare const processDependencyFields: (dependencies: Dependency[]) => {
|
|
7
|
+
allFields: string[];
|
|
8
|
+
visibleFields: string[];
|
|
9
|
+
valueFields: string[];
|
|
10
|
+
searchFields: string[];
|
|
11
|
+
disabledFields: string[];
|
|
12
|
+
};
|
|
13
|
+
export {};
|