uiw 4.11.0 → 4.11.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/dist/uiw.css CHANGED
@@ -1251,7 +1251,8 @@ sup.w-badge-count {
1251
1251
  .w-timepicker-spinner > ul > li {
1252
1252
  cursor: pointer;
1253
1253
  text-align: center;
1254
- padding: 5px 0;
1254
+ height: 28px;
1255
+ line-height: 28px;
1255
1256
  transition: all 0.3s;
1256
1257
  color: #393e48;
1257
1258
  }
@@ -2246,23 +2247,15 @@ sup.w-badge-count {
2246
2247
  }
2247
2248
 
2248
2249
  .w-empty {
2249
- position: -webkit-sticky;
2250
- position: sticky;
2251
- left: 0;
2252
- overflow: hidden;
2253
- margin: -5px -8px;
2254
- padding: 32px 0;
2255
- display: flex;
2256
- align-items: center;
2257
- flex-direction: column;
2258
- }
2259
- .w-empty-text {
2260
- color: rgba(0, 0, 0, 0.25);
2261
- margin-top: 10px;
2250
+ color: #c7c7c7;
2251
+ text-align: center;
2262
2252
  }
2263
2253
  .w-empty-description {
2264
2254
  margin-top: 10px;
2265
2255
  }
2256
+ .w-empty-footer {
2257
+ margin-top: 16px;
2258
+ }
2266
2259
 
2267
2260
  .w-fileinput input::-webkit-file-upload-button {
2268
2261
  background: transparent;
package/dist/uiw.js CHANGED
@@ -1007,9 +1007,93 @@ try {
1007
1007
 
1008
1008
  /***/ }),
1009
1009
 
1010
- /***/ 518:
1011
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1010
+ /***/ 787:
1011
+ /***/ (function(module) {
1012
+
1013
+ "use strict";
1014
+ module.exports = __WEBPACK_EXTERNAL_MODULE__787__;
1015
+
1016
+ /***/ }),
1017
+
1018
+ /***/ 156:
1019
+ /***/ (function(module) {
1020
+
1021
+ "use strict";
1022
+ module.exports = __WEBPACK_EXTERNAL_MODULE__156__;
1012
1023
 
1024
+ /***/ })
1025
+
1026
+ /******/ });
1027
+ /************************************************************************/
1028
+ /******/ // The module cache
1029
+ /******/ var __webpack_module_cache__ = {};
1030
+ /******/
1031
+ /******/ // The require function
1032
+ /******/ function __webpack_require__(moduleId) {
1033
+ /******/ // Check if module is in cache
1034
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
1035
+ /******/ if (cachedModule !== undefined) {
1036
+ /******/ return cachedModule.exports;
1037
+ /******/ }
1038
+ /******/ // Create a new module (and put it into the cache)
1039
+ /******/ var module = __webpack_module_cache__[moduleId] = {
1040
+ /******/ // no module.id needed
1041
+ /******/ // no module.loaded needed
1042
+ /******/ exports: {}
1043
+ /******/ };
1044
+ /******/
1045
+ /******/ // Execute the module function
1046
+ /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
1047
+ /******/
1048
+ /******/ // Return the exports of the module
1049
+ /******/ return module.exports;
1050
+ /******/ }
1051
+ /******/
1052
+ /************************************************************************/
1053
+ /******/ /* webpack/runtime/compat get default export */
1054
+ /******/ !function() {
1055
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
1056
+ /******/ __webpack_require__.n = function(module) {
1057
+ /******/ var getter = module && module.__esModule ?
1058
+ /******/ function() { return module['default']; } :
1059
+ /******/ function() { return module; };
1060
+ /******/ __webpack_require__.d(getter, { a: getter });
1061
+ /******/ return getter;
1062
+ /******/ };
1063
+ /******/ }();
1064
+ /******/
1065
+ /******/ /* webpack/runtime/define property getters */
1066
+ /******/ !function() {
1067
+ /******/ // define getter functions for harmony exports
1068
+ /******/ __webpack_require__.d = function(exports, definition) {
1069
+ /******/ for(var key in definition) {
1070
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1071
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1072
+ /******/ }
1073
+ /******/ }
1074
+ /******/ };
1075
+ /******/ }();
1076
+ /******/
1077
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
1078
+ /******/ !function() {
1079
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
1080
+ /******/ }();
1081
+ /******/
1082
+ /******/ /* webpack/runtime/make namespace object */
1083
+ /******/ !function() {
1084
+ /******/ // define __esModule on exports
1085
+ /******/ __webpack_require__.r = function(exports) {
1086
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
1087
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1088
+ /******/ }
1089
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
1090
+ /******/ };
1091
+ /******/ }();
1092
+ /******/
1093
+ /************************************************************************/
1094
+ var __webpack_exports__ = {};
1095
+ // This entry need to be wrapped in an IIFE because it need to be in strict mode.
1096
+ !function() {
1013
1097
  "use strict";
1014
1098
  // ESM COMPAT FLAG
1015
1099
  __webpack_require__.r(__webpack_exports__);
@@ -4503,7 +4587,7 @@ function TimePicker(props) {
4503
4587
  hideDisabled: hideDisabled,
4504
4588
  precision: precision
4505
4589
  };
4506
- var inputValue = date ? formatter(format, date) : '';
4590
+ var inputValue = date ? formatter(format, new Date(date)) : '';
4507
4591
  var datePickerTime = date || new Date();
4508
4592
 
4509
4593
  var _props = _extends({}, inputProps, {
@@ -6225,6 +6309,8 @@ function Dropdown(props) {
6225
6309
  ;// CONCATENATED MODULE: ../react-empty/esm/index.js
6226
6310
 
6227
6311
 
6312
+ var react_empty_esm_excluded = ["prefixCls", "className", "icon", "iconProps", "size", "description", "children"];
6313
+
6228
6314
 
6229
6315
 
6230
6316
 
@@ -6233,57 +6319,51 @@ var Empty = function Empty(props) {
6233
6319
  var _props$prefixCls = props.prefixCls,
6234
6320
  prefixCls = _props$prefixCls === void 0 ? 'w-empty' : _props$prefixCls,
6235
6321
  className = props.className,
6236
- _props$iconColor = props.iconColor,
6237
- iconColor = _props$iconColor === void 0 ? '#cdcdcd' : _props$iconColor,
6322
+ icon = props.icon,
6323
+ iconProps = props.iconProps,
6238
6324
  _props$size = props.size,
6239
- size = _props$size === void 0 ? 40 : _props$size,
6240
- _props$text = props.text,
6241
- text = _props$text === void 0 ? '暂无数据' : _props$text,
6242
- _props$textColor = props.textColor,
6243
- textColor = _props$textColor === void 0 ? '#cdcdcd' : _props$textColor,
6244
- type = props.type,
6245
- description = props.description;
6325
+ size = _props$size === void 0 ? 64 : _props$size,
6326
+ _props$description = props.description,
6327
+ description = _props$description === void 0 ? '暂无数据' : _props$description,
6328
+ children = props.children,
6329
+ other = _objectWithoutPropertiesLoose(props, react_empty_esm_excluded);
6330
+
6246
6331
  var cls = [prefixCls, className].filter(Boolean).join(' ').trim();
6247
- var nData = type ? type : /*#__PURE__*/(0,jsx_runtime.jsxs)("svg", {
6248
- viewBox: "0 0 1024 1024",
6249
- version: "1.1",
6250
- xmlns: "http://www.w3.org/2000/svg",
6251
- "p-id": "5994",
6252
- width: "32",
6253
- height: "32",
6254
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
6255
- d: "M894.44765695 767.84195243a27.75019293 27.75019293 0 0 0-27.75019292 27.75019292v123.2341595a14.88130617 14.88130617 0 0 1-14.66947243 14.66947243H185.28193991a14.88130617 14.88130617 0 0 1-14.66947243-14.66947243V157.76137102a14.88130617 14.88130617 0 0 1 14.66947243-14.66947243h666.74605169a14.88130617 14.88130617 0 0 1 14.66947243 14.66947243v41.09570503a27.75019293 27.75019293 0 1 0 55.50038698 0v-41.09570503a70.22281728 70.22281728 0 0 0-70.16985941-70.16985941H607.62505101a27.75019293 27.75019293 0 0 0-13.66326385-51.89921564H439.16443192a27.75019293 27.75019293 0 0 0-13.66326385 51.89921564H185.28193991A70.22281728 70.22281728 0 0 0 115.11208049 157.76137102v761.01197483a70.22281728 70.22281728 0 0 0 70.16985942 70.16985941h666.74605169a70.22281728 70.22281728 0 0 0 70.16985941-70.16985941v-123.1812005a27.75019293 27.75019293 0 0 0-27.75019406-27.75019292z",
6256
- "p-id": "5995",
6257
- fill: "#cdcdcd"
6258
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
6259
- d: "M254.65742221 297.9951707h127.94745515a27.75019293 27.75019293 0 0 0 0-55.50038585H254.65742221a27.75019293 27.75019293 0 1 0 0 55.50038585zM254.65742221 553.94304h127.94745515a27.75019293 27.75019293 0 0 0 0-55.50038585H254.65742221a27.75019293 27.75019293 0 0 0 0 55.50038585zM254.65742221 809.83795029h521.26937202a27.75019293 27.75019293 0 0 0 0-55.50038584H254.65742221a27.75019293 27.75019293 0 1 0 0 55.50038584zM981.72307341 719.70278173l-88.91712625-91.61800477a27.75019293 27.75019293 0 1 0-39.82470485 38.65962041l88.91712739 91.61800476a27.75019293 27.75019293 0 1 0 39.82470371-38.6596204z",
6260
- "p-id": "5996",
6261
- fill: "#cdcdcd"
6262
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
6263
- d: "M929.92977464 437.85826304a260.23749859 260.23749859 0 1 0-260.23749859 260.23749746A260.50229021 260.50229021 0 0 0 929.92977464 437.85826304z m-260.18453959 204.94894535A204.73711161 204.73711161 0 1 1 874.48234666 437.85826304a204.94894535 204.94894535 0 0 1-204.73711161 204.94894535z",
6264
- "p-id": "5997",
6265
- fill: iconColor
6266
- })]
6267
- });
6268
- return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
6269
- className: cls,
6270
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
6271
- type: nData,
6272
- style: {
6273
- fontSize: size,
6274
- color: iconColor
6275
- }
6276
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
6277
- className: prefixCls + "-text",
6278
- style: {
6279
- color: textColor
6280
- },
6281
- children: text
6332
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", _extends({
6333
+ className: cls
6334
+ }, other, {
6335
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
6336
+ className: prefixCls + "-icon",
6337
+ children: icon ? icon : /*#__PURE__*/(0,jsx_runtime.jsxs)("svg", _extends({
6338
+ viewBox: "0 0 1024 1024",
6339
+ width: size,
6340
+ height: size
6341
+ }, iconProps, {
6342
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
6343
+ d: "M20.48 860.16a491.52 102.4 0 1 0 983.04 0 491.52 102.4 0 1 0-983.04 0Z",
6344
+ fill: "#F5F5F5"
6345
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
6346
+ d: "M225.28 409.6l573.44-8.06912 112.78336 183.296H102.4z",
6347
+ fill: "#C4C5C7"
6348
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
6349
+ d: "M266.24 61.44h491.52a40.96 40.96 0 0 1 40.96 40.96v532.48a40.96 40.96 0 0 1-40.96 40.96H266.24a40.96 40.96 0 0 1-40.96-40.96V102.4a40.96 40.96 0 0 1 40.96-40.96z",
6350
+ fill: "#F5F5F7"
6351
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
6352
+ d: "M348.16 143.36h327.68a40.96 40.96 0 0 1 40.96 40.96v122.88a40.96 40.96 0 0 1-40.96 40.96H348.16a40.96 40.96 0 0 1-40.96-40.96V184.32a40.96 40.96 0 0 1 40.96-40.96zM327.68 409.6h368.64a20.48 20.48 0 0 1 0 40.96H327.68a20.48 20.48 0 0 1 0-40.96zM327.68 491.52h368.64a20.48 20.48 0 0 1 0 40.96H327.68a20.48 20.48 0 0 1 0-40.96z",
6353
+ fill: "#EBECEC"
6354
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
6355
+ d: "M673.44384 607.58016v13.43488c0 25.14944-20.0704 45.52704-44.8512 45.52704H382.95552l-2.2528-0.06144c-23.7568-1.16736-42.63936-21.07392-42.63936-45.4656v-13.45536c0-12.55424-10.0352-22.7328-22.44608-22.7328H102.4v250.30656C102.4 860.2624 122.49088 880.64 147.29216 880.64h719.31904c24.7808 0 44.89216-20.3776 44.89216-45.50656V584.82688H695.88992c-12.3904 0-22.44608 10.17856-22.44608 22.7328z",
6356
+ fill: "#E0E0E0"
6357
+ })]
6358
+ }))
6282
6359
  }), description && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
6283
6360
  className: prefixCls + "-description",
6284
6361
  children: description
6362
+ }), children && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
6363
+ className: prefixCls + "-footer",
6364
+ children: children
6285
6365
  })]
6286
- });
6366
+ }));
6287
6367
  };
6288
6368
 
6289
6369
  /* harmony default export */ var react_empty_esm = (Empty);
@@ -11319,99 +11399,7 @@ function TreeChecked(_ref) {
11319
11399
 
11320
11400
 
11321
11401
 
11322
-
11323
- /***/ }),
11324
-
11325
- /***/ 787:
11326
- /***/ (function(module) {
11327
-
11328
- "use strict";
11329
- module.exports = __WEBPACK_EXTERNAL_MODULE__787__;
11330
-
11331
- /***/ }),
11332
-
11333
- /***/ 156:
11334
- /***/ (function(module) {
11335
-
11336
- "use strict";
11337
- module.exports = __WEBPACK_EXTERNAL_MODULE__156__;
11338
-
11339
- /***/ })
11340
-
11341
- /******/ });
11342
- /************************************************************************/
11343
- /******/ // The module cache
11344
- /******/ var __webpack_module_cache__ = {};
11345
- /******/
11346
- /******/ // The require function
11347
- /******/ function __webpack_require__(moduleId) {
11348
- /******/ // Check if module is in cache
11349
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
11350
- /******/ if (cachedModule !== undefined) {
11351
- /******/ return cachedModule.exports;
11352
- /******/ }
11353
- /******/ // Create a new module (and put it into the cache)
11354
- /******/ var module = __webpack_module_cache__[moduleId] = {
11355
- /******/ // no module.id needed
11356
- /******/ // no module.loaded needed
11357
- /******/ exports: {}
11358
- /******/ };
11359
- /******/
11360
- /******/ // Execute the module function
11361
- /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
11362
- /******/
11363
- /******/ // Return the exports of the module
11364
- /******/ return module.exports;
11365
- /******/ }
11366
- /******/
11367
- /************************************************************************/
11368
- /******/ /* webpack/runtime/compat get default export */
11369
- /******/ !function() {
11370
- /******/ // getDefaultExport function for compatibility with non-harmony modules
11371
- /******/ __webpack_require__.n = function(module) {
11372
- /******/ var getter = module && module.__esModule ?
11373
- /******/ function() { return module['default']; } :
11374
- /******/ function() { return module; };
11375
- /******/ __webpack_require__.d(getter, { a: getter });
11376
- /******/ return getter;
11377
- /******/ };
11378
- /******/ }();
11379
- /******/
11380
- /******/ /* webpack/runtime/define property getters */
11381
- /******/ !function() {
11382
- /******/ // define getter functions for harmony exports
11383
- /******/ __webpack_require__.d = function(exports, definition) {
11384
- /******/ for(var key in definition) {
11385
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
11386
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
11387
- /******/ }
11388
- /******/ }
11389
- /******/ };
11390
- /******/ }();
11391
- /******/
11392
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
11393
- /******/ !function() {
11394
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
11395
- /******/ }();
11396
- /******/
11397
- /******/ /* webpack/runtime/make namespace object */
11398
- /******/ !function() {
11399
- /******/ // define __esModule on exports
11400
- /******/ __webpack_require__.r = function(exports) {
11401
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
11402
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
11403
- /******/ }
11404
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
11405
- /******/ };
11406
- /******/ }();
11407
- /******/
11408
- /************************************************************************/
11409
- /******/
11410
- /******/ // startup
11411
- /******/ // Load entry module and return exports
11412
- /******/ // This entry module doesn't tell about it's top-level declarations so it can't be inlined
11413
- /******/ var __webpack_exports__ = __webpack_require__(518);
11414
- /******/
11402
+ }();
11415
11403
  /******/ return __webpack_exports__;
11416
11404
  /******/ })()
11417
11405
  ;