@chaoswise/ui 2.3.0 → 2.3.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.
Files changed (53) hide show
  1. package/lib/Button/index.js +0 -8
  2. package/lib/CWCascader/index.js +56 -1
  3. package/lib/CWCascader/index.less +22 -0
  4. package/lib/CWCascader/rc-cascader/Cascader.js +45 -21
  5. package/lib/CWCascader/rc-cascader/OptionList/Column.js +115 -48
  6. package/lib/CWCascader/rc-cascader/OptionList/index.js +11 -5
  7. package/lib/CWCascader/rc-cascader/OptionList/useKeyboard.js +64 -68
  8. package/lib/CWCascader/rc-cascader/hooks/useDisplayValues.js +45 -16
  9. package/lib/CWCascader/rc-cascader/hooks/useEntities.js +0 -8
  10. package/lib/CWCascader/rc-cascader/utils/treeUtil.js +45 -1
  11. package/lib/CWRangePicker/DropdownMenu/MoreTimeList/index.js +0 -1
  12. package/lib/CWRangePicker/DropdownMenu/index.js +5 -32
  13. package/lib/CWRangePicker/DropdownMenu/index.less +11 -7
  14. package/lib/CWRangePicker/Refresh/index.js +32 -16
  15. package/lib/CWRangePicker/TimeSpan/index.js +11 -11
  16. package/lib/CWRangePicker/index.js +105 -64
  17. package/lib/CWRangePicker/locale/en_US.js +2 -1
  18. package/lib/CWRangePicker/locale/zh_CN.js +2 -1
  19. package/lib/CWRangePicker/utils/index.js +10 -4
  20. package/lib/CWSelect/index.js +4 -4
  21. package/lib/CWSelect/index.less +1 -1
  22. package/lib/Cascader/index.less +24 -2
  23. package/lib/DropdownDatePicker/DropdownMenu/MoreTimeList/index.js +46 -0
  24. package/lib/DropdownDatePicker/DropdownMenu/MoreTimeList/index.less +14 -0
  25. package/lib/DropdownDatePicker/DropdownMenu/index.js +126 -0
  26. package/lib/DropdownDatePicker/DropdownMenu/index.less +68 -0
  27. package/lib/DropdownDatePicker/assets/Calendar2.js +15 -0
  28. package/lib/DropdownDatePicker/assets/Recover.js +18 -0
  29. package/lib/DropdownDatePicker/assets/live.js +19 -0
  30. package/lib/DropdownDatePicker/assets/more.js +23 -0
  31. package/lib/DropdownDatePicker/index.js +357 -0
  32. package/lib/DropdownDatePicker/index.less +34 -0
  33. package/lib/DropdownDatePicker/locale/en_US.js +21 -0
  34. package/lib/DropdownDatePicker/locale/index.js +12 -0
  35. package/lib/DropdownDatePicker/locale/zh_CN.js +21 -0
  36. package/lib/DropdownDatePicker/utils/index.js +251 -0
  37. package/lib/InputNumber/index.js +15 -11
  38. package/lib/ModuleFederation/ErrorBoundary/index.js +54 -0
  39. package/lib/ModuleFederation/index.js +10 -0
  40. package/lib/ModuleFederation/react-dynamic-remote-component/RemoteComponent.js +185 -0
  41. package/lib/ModuleFederation/react-dynamic-remote-component/attach-script.js +42 -0
  42. package/lib/ModuleFederation/react-dynamic-remote-component/index.js +1 -0
  43. package/lib/ModuleFederation/react-dynamic-remote-component/load-module.js +44 -0
  44. package/lib/ModuleFederation/react-dynamic-remote-component/loading-script.js +35 -0
  45. package/lib/ModuleFederation/react-dynamic-remote-component/suspend.js +28 -0
  46. package/lib/ModuleFederation/react-dynamic-remote-component/utils.js +7 -0
  47. package/lib/QuickTransfer/locale/index.js +1 -4
  48. package/lib/QuickTransfer/locale/zh_CN.js +0 -8
  49. package/lib/RangePicker/components/ExtraTimeFooter.js +8 -2
  50. package/lib/RangePicker/index.js +5 -0
  51. package/lib/RangePicker/index.less +22 -7
  52. package/lib/SimplePagination/index.js +1 -1
  53. package/package.json +3 -2
@@ -0,0 +1,44 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
3
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
+ // 加载指定组件
6
+ export var loadModule = function loadModule(url, scope, module) {
7
+ return /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
8
+ var container, factory, Module, error;
9
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
10
+ while (1) switch (_context.prev = _context.next) {
11
+ case 0:
12
+ _context.prev = 0;
13
+ _context.next = 3;
14
+ return __webpack_init_sharing__('default');
15
+ case 3:
16
+ container = window[scope];
17
+ if (container.isInitialized) {
18
+ _context.next = 8;
19
+ break;
20
+ }
21
+ container.isInitialized = true;
22
+ // webpack行为:初始化容器,提供共享模块
23
+ _context.next = 8;
24
+ return container.init(__webpack_share_scopes__["default"]);
25
+ case 8:
26
+ _context.next = 10;
27
+ return window[scope].get(module);
28
+ case 10:
29
+ factory = _context.sent;
30
+ Module = factory();
31
+ return _context.abrupt("return", Module);
32
+ case 15:
33
+ _context.prev = 15;
34
+ _context.t0 = _context["catch"](0);
35
+ error = new Error("There was a problem loading the remote module. Please check the parameters (url: ".concat(url, " scope: ").concat(scope, " module: ").concat(module, ")"));
36
+ error.name = 'RemoteModuleLoadingError';
37
+ throw error;
38
+ case 20:
39
+ case "end":
40
+ return _context.stop();
41
+ }
42
+ }, _callee, null, [[0, 15]]);
43
+ }));
44
+ };
@@ -0,0 +1,35 @@
1
+ var injectedScripts = {};
2
+ // 引入配置文件
3
+ export var loadScript = function loadScript(url) {
4
+ var id = url; // 锁定唯一id
5
+ var existingElement = document.getElementById(id);
6
+
7
+ // 引入的js是否已经存在
8
+ if (existingElement) {
9
+ // Fixed: 修复多个组件共享配置读取失败的问题
10
+ if (injectedScripts[id]) {
11
+ return Promise.resolve(true);
12
+ }
13
+ return new Promise(function (resolve) {
14
+ existingElement.addEventListener('load', function () {
15
+ injectedScripts[id] = true;
16
+ resolve(true);
17
+ });
18
+ });
19
+ }
20
+ var element = document.createElement('script');
21
+ element.src = url;
22
+ element.type = 'text/javascript';
23
+ element.id = id;
24
+ var scriptLoadPromise = new Promise(function (resolve, reject) {
25
+ element.addEventListener('load', function () {
26
+ injectedScripts[id] = true;
27
+ resolve(true);
28
+ });
29
+ element.onerror = function (e) {
30
+ reject(e);
31
+ };
32
+ });
33
+ document.head.appendChild(element);
34
+ return scriptLoadPromise;
35
+ };
@@ -0,0 +1,28 @@
1
+ // 根据组件加载状态处理Suspense的返回值
2
+ export var suspend = function suspend(promise) {
3
+ var result;
4
+ var status = 'pending';
5
+ var suspender = promise.then(function (response) {
6
+ status = 'success';
7
+ result = response;
8
+ }, function (error) {
9
+ status = 'error';
10
+ result = error;
11
+ });
12
+ return function () {
13
+ switch (status) {
14
+ case 'pending':
15
+ {
16
+ throw suspender;
17
+ }
18
+ case 'error':
19
+ {
20
+ throw result;
21
+ }
22
+ default:
23
+ {
24
+ return result;
25
+ }
26
+ }
27
+ };
28
+ };
@@ -0,0 +1,7 @@
1
+ // 拼接模块唯一id
2
+ export var getRemoteModuleId = function getRemoteModuleId(_ref) {
3
+ var url = _ref.url,
4
+ module = _ref.module,
5
+ scope = _ref.scope;
6
+ return [url, scope, module].join();
7
+ };
@@ -9,7 +9,4 @@ export var getLocale = function getLocale(locale) {
9
9
  default:
10
10
  return zhCN;
11
11
  }
12
- };
13
- export default (function () {
14
- return 'aaa';
15
- });
12
+ };
@@ -1,11 +1,3 @@
1
- /*
2
- * @Author: andrew.qiao andrew.qiao@cloudwise.com
3
- * @Date: 2022-05-19 18:53:55
4
- * @LastEditors: andrew.qiao andrew.qiao@cloudwise.com
5
- * @LastEditTime: 2022-08-23 16:39:14
6
- * @FilePath: /change_01/aops_web_commons/packages/ui/components/QuickTransfer/locale/zh_CN.js
7
- * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
- */
9
1
  export default {
10
2
  'addedList': '已添加',
11
3
  'clear': '清空',
@@ -43,7 +43,10 @@ export default function ExtraTimeFooter(_ref) {
43
43
  }, showTime && /*#__PURE__*/React.createElement("div", {
44
44
  className: "cw-rangePicker-time"
45
45
  }, /*#__PURE__*/React.createElement("div", {
46
- className: "cw-rangePicker-leftTime"
46
+ className: "cw-rangePicker-leftTime",
47
+ onMouseDown: function onMouseDown(e) {
48
+ e.stopPropagation();
49
+ }
47
50
  }, /*#__PURE__*/React.createElement(_TimePicker, _extends({
48
51
  value: startTimeValue,
49
52
  onChange: startChange,
@@ -54,7 +57,10 @@ export default function ExtraTimeFooter(_ref) {
54
57
  type: "swap-right",
55
58
  className: "cw-rangePicker-swap-icon"
56
59
  }), /*#__PURE__*/React.createElement("div", {
57
- className: "cw-rangePicker-rightTime"
60
+ className: "cw-rangePicker-rightTime",
61
+ onMouseDown: function onMouseDown(e) {
62
+ e.stopPropagation();
63
+ }
58
64
  }, /*#__PURE__*/React.createElement(_TimePicker, _extends({
59
65
  getPopupContainer: getPopupContainer,
60
66
  value: endTimeValue,
@@ -165,6 +165,7 @@ var _RangePicker = /*#__PURE__*/forwardRef(function (props, ref) {
165
165
  };
166
166
  // TimePicker开始时间改变触发的事件
167
167
  var changeStartTime = function changeStartTime(newStartTime) {
168
+ if (!newStartTime) return;
168
169
  setStartTimeParams(newStartTime);
169
170
  isBtnRef.current = false;
170
171
  if (Array.isArray(dateValue)) {
@@ -182,6 +183,7 @@ var _RangePicker = /*#__PURE__*/forwardRef(function (props, ref) {
182
183
  };
183
184
  // TimePicker结束时间改变触发的事件
184
185
  var changeEndTime = function changeEndTime(newEndTime) {
186
+ if (!newEndTime) return;
185
187
  setEndTimeParams(newEndTime);
186
188
  isBtnRef.current = false;
187
189
  if (Array.isArray(dateValue)) {
@@ -373,6 +375,9 @@ var _RangePicker = /*#__PURE__*/forwardRef(function (props, ref) {
373
375
  className: "cw-new-range-picker-wrapper",
374
376
  ref: wrapperRef
375
377
  }, /*#__PURE__*/React.createElement(RangePicker, _extends({
378
+ popupStyle: {
379
+ zIndex: 9999
380
+ },
376
381
  panelRender: panelRender ? panelRender : function (panelNode) {
377
382
  var rangesToArray = Object.entries(ranges);
378
383
  return /*#__PURE__*/React.createElement("div", {
@@ -86,24 +86,39 @@
86
86
  }
87
87
 
88
88
  .@{ant-prefix}-time-picker-panel {
89
- top: -232px !important;
90
-
89
+ bottom: -28px !important;
90
+ top: auto !important;
91
91
  .@{ant-prefix}-time-picker-panel-inner {
92
92
  border-radius: 2px !important;
93
93
  width: 160px;
94
94
  left: 0;
95
+ display: flex;
96
+ flex-direction: column-reverse;
95
97
  .@{ant-prefix}-time-picker-panel-input-wrap {
96
- display: none;
98
+ display: flex;
99
+ justify-content: center;
100
+ align-items: center;
101
+ border: @border-width-base @border-style-base @border-color-base;
102
+ padding: 0;
103
+ height: 28px;
104
+ &:hover{
105
+ border-color: @primary-5;
106
+ }
107
+ &:focus-within{
108
+ border-color: @primary-color;
109
+ }
110
+ .@{ant-prefix}-time-picker-panel-input{
111
+ text-align: center;
112
+ }
97
113
  }
98
-
99
114
  .@{ant-prefix}-time-picker-panel-combobox {
100
115
  width: 100%;
101
- height: 232px;
116
+ height: 200px;
102
117
 
103
118
  .@{ant-prefix}-time-picker-panel-select {
104
119
  width: 33.3%;
105
- height: 223px;
106
- max-height: 232px;
120
+ height: 200px;
121
+ max-height: 200px;
107
122
 
108
123
  ul {
109
124
  width: 100%;
@@ -91,7 +91,7 @@ function SimplePagination(props) {
91
91
  }
92
92
  if (current_ < 1) return;
93
93
  if (current_ > allPage) return;
94
- if (current_ === pageInfo.current) return;
94
+ if (current_ === _current) return;
95
95
  _onChange(current_, _pageSize);
96
96
  setPageInfo(_objectSpread(_objectSpread({}, pageInfo), {}, {
97
97
  current: current_
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chaoswise/ui",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "description": "公共UI库",
5
5
  "keywords": [
6
6
  "ui",
@@ -89,6 +89,7 @@
89
89
  "prop-types": "^15.7.2",
90
90
  "rc-cascader": "~3.9.0",
91
91
  "rc-field-form": "~1.27.0",
92
+ "rc-input-number": "~7.3.0",
92
93
  "rc-notification": "^4.5.7",
93
94
  "rc-picker": "^2.6.4",
94
95
  "rc-select": "^10.2.4",
@@ -139,5 +140,5 @@
139
140
  "access": "public"
140
141
  },
141
142
  "license": "MIT",
142
- "gitHead": "37c6b99e216fadee27df4128da5657fcb74e0465"
143
+ "gitHead": "59cb2ef17cec258258a9b37afde767275d147c25"
143
144
  }