uiw 4.10.6 → 4.11.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 +2 -1
- package/cjs/index.d.ts +2 -0
- package/cjs/index.js +21 -0
- package/cjs/index.js.map +2 -2
- package/dist/uiw.css +69 -47
- package/dist/uiw.js +427 -236
- package/dist/uiw.min.css +1 -1
- package/dist/uiw.min.js +1 -1
- package/esm/index.d.ts +2 -0
- package/esm/index.js +2 -0
- package/esm/index.js.map +3 -2
- package/package.json +56 -55
- package/src/index.ts +2 -0
package/dist/uiw.js
CHANGED
|
@@ -1007,9 +1007,93 @@ try {
|
|
|
1007
1007
|
|
|
1008
1008
|
/***/ }),
|
|
1009
1009
|
|
|
1010
|
-
/***/
|
|
1011
|
-
/***/ (function(
|
|
1010
|
+
/***/ 787:
|
|
1011
|
+
/***/ (function(module) {
|
|
1012
|
+
|
|
1013
|
+
"use strict";
|
|
1014
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__787__;
|
|
1015
|
+
|
|
1016
|
+
/***/ }),
|
|
1012
1017
|
|
|
1018
|
+
/***/ 156:
|
|
1019
|
+
/***/ (function(module) {
|
|
1020
|
+
|
|
1021
|
+
"use strict";
|
|
1022
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__156__;
|
|
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__);
|
|
@@ -1043,6 +1127,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1043
1127
|
"Divider": function() { return /* reexport */ react_divider_esm; },
|
|
1044
1128
|
"Drawer": function() { return /* reexport */ react_drawer_esm; },
|
|
1045
1129
|
"Dropdown": function() { return /* reexport */ Dropdown; },
|
|
1130
|
+
"Empty": function() { return /* reexport */ react_empty_esm; },
|
|
1046
1131
|
"FileInput": function() { return /* reexport */ react_file_input_esm; },
|
|
1047
1132
|
"Form": function() { return /* reexport */ react_form_esm; },
|
|
1048
1133
|
"FormItem": function() { return /* reexport */ FormItem; },
|
|
@@ -4502,7 +4587,7 @@ function TimePicker(props) {
|
|
|
4502
4587
|
hideDisabled: hideDisabled,
|
|
4503
4588
|
precision: precision
|
|
4504
4589
|
};
|
|
4505
|
-
var inputValue = date ? formatter(format, date) : '';
|
|
4590
|
+
var inputValue = date ? formatter(format, new Date(date)) : '';
|
|
4506
4591
|
var datePickerTime = date || new Date();
|
|
4507
4592
|
|
|
4508
4593
|
var _props = _extends({}, inputProps, {
|
|
@@ -6218,6 +6303,70 @@ function Dropdown(props) {
|
|
|
6218
6303
|
children: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(children, Object.assign({}, children.props))
|
|
6219
6304
|
}));
|
|
6220
6305
|
}
|
|
6306
|
+
;// CONCATENATED MODULE: ../react-empty/esm/style/index.css
|
|
6307
|
+
// extracted by mini-css-extract-plugin
|
|
6308
|
+
/* harmony default export */ var react_empty_esm_style = ({});
|
|
6309
|
+
;// CONCATENATED MODULE: ../react-empty/esm/index.js
|
|
6310
|
+
|
|
6311
|
+
|
|
6312
|
+
var react_empty_esm_excluded = ["prefixCls", "className", "icon", "iconProps", "size", "description", "children"];
|
|
6313
|
+
|
|
6314
|
+
|
|
6315
|
+
|
|
6316
|
+
|
|
6317
|
+
|
|
6318
|
+
var Empty = function Empty(props) {
|
|
6319
|
+
var _props$prefixCls = props.prefixCls,
|
|
6320
|
+
prefixCls = _props$prefixCls === void 0 ? 'w-empty' : _props$prefixCls,
|
|
6321
|
+
className = props.className,
|
|
6322
|
+
icon = props.icon,
|
|
6323
|
+
iconProps = props.iconProps,
|
|
6324
|
+
_props$size = props.size,
|
|
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
|
+
|
|
6331
|
+
var cls = [prefixCls, className].filter(Boolean).join(' ').trim();
|
|
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
|
+
}))
|
|
6359
|
+
}), description && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
6360
|
+
className: prefixCls + "-description",
|
|
6361
|
+
children: description
|
|
6362
|
+
}), children && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
6363
|
+
className: prefixCls + "-footer",
|
|
6364
|
+
children: children
|
|
6365
|
+
})]
|
|
6366
|
+
}));
|
|
6367
|
+
};
|
|
6368
|
+
|
|
6369
|
+
/* harmony default export */ var react_empty_esm = (Empty);
|
|
6221
6370
|
;// CONCATENATED MODULE: ../react-file-input/esm/Input.js
|
|
6222
6371
|
|
|
6223
6372
|
|
|
@@ -6673,7 +6822,7 @@ function Row_Row(props) {
|
|
|
6673
6822
|
|
|
6674
6823
|
|
|
6675
6824
|
|
|
6676
|
-
var FormItem_excluded = ["prefixCls", "className", "style", "label", "labelFor", "labelClassName", "labelStyle", "help", "inline", "initialValue", "validator", "hasError"];
|
|
6825
|
+
var FormItem_excluded = ["prefixCls", "className", "required", "style", "label", "labelFor", "labelClassName", "labelStyle", "help", "inline", "initialValue", "validator", "hasError"];
|
|
6677
6826
|
|
|
6678
6827
|
|
|
6679
6828
|
|
|
@@ -6697,6 +6846,7 @@ var FormItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
6697
6846
|
var _this$props = this.props,
|
|
6698
6847
|
prefixCls = _this$props.prefixCls,
|
|
6699
6848
|
className = _this$props.className,
|
|
6849
|
+
required = _this$props.required,
|
|
6700
6850
|
style = _this$props.style,
|
|
6701
6851
|
label = _this$props.label,
|
|
6702
6852
|
labelFor = _this$props.labelFor,
|
|
@@ -6716,14 +6866,19 @@ var FormItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
6716
6866
|
style: style
|
|
6717
6867
|
}, otherProps, {
|
|
6718
6868
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(Row_Row, {
|
|
6719
|
-
children: [/*#__PURE__*/(0,jsx_runtime.
|
|
6869
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(Col, {
|
|
6720
6870
|
fixed: true,
|
|
6721
6871
|
className: labelCls,
|
|
6722
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)("label", {
|
|
6872
|
+
children: [required && /*#__PURE__*/(0,jsx_runtime.jsx)("label", {
|
|
6873
|
+
style: {
|
|
6874
|
+
color: 'red'
|
|
6875
|
+
},
|
|
6876
|
+
children: "*"
|
|
6877
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("label", {
|
|
6723
6878
|
style: labelStyle,
|
|
6724
6879
|
htmlFor: labelFor,
|
|
6725
6880
|
children: label
|
|
6726
|
-
})
|
|
6881
|
+
})]
|
|
6727
6882
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Col, {
|
|
6728
6883
|
className: "w-form-row",
|
|
6729
6884
|
children: this.props.children
|
|
@@ -6741,11 +6896,18 @@ var FormItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
6741
6896
|
className: cls,
|
|
6742
6897
|
style: style
|
|
6743
6898
|
}, otherProps, {
|
|
6744
|
-
children: [label && /*#__PURE__*/(0,jsx_runtime.
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6899
|
+
children: [label && /*#__PURE__*/(0,jsx_runtime.jsxs)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
|
|
6900
|
+
children: [required && /*#__PURE__*/(0,jsx_runtime.jsx)("label", {
|
|
6901
|
+
style: {
|
|
6902
|
+
color: 'red'
|
|
6903
|
+
},
|
|
6904
|
+
children: "*"
|
|
6905
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("label", {
|
|
6906
|
+
className: labelCls,
|
|
6907
|
+
style: labelStyle,
|
|
6908
|
+
htmlFor: labelFor,
|
|
6909
|
+
children: label
|
|
6910
|
+
})]
|
|
6749
6911
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Col, {
|
|
6750
6912
|
className: "w-form-row",
|
|
6751
6913
|
children: this.props.children
|
|
@@ -6812,7 +6974,8 @@ var isPromise = function isPromise(promise) {
|
|
|
6812
6974
|
return promise && typeof promise.then === 'function';
|
|
6813
6975
|
};
|
|
6814
6976
|
|
|
6815
|
-
function Form(_ref, ref
|
|
6977
|
+
function Form(_ref, ref //| React.RefObject<FormRefType>,
|
|
6978
|
+
) {
|
|
6816
6979
|
var _ref$prefixCls = _ref.prefixCls,
|
|
6817
6980
|
prefixCls = _ref$prefixCls === void 0 ? 'w-form' : _ref$prefixCls,
|
|
6818
6981
|
className = _ref.className,
|
|
@@ -6825,19 +6988,26 @@ function Form(_ref, ref) {
|
|
|
6825
6988
|
afterSubmit = _ref.afterSubmit,
|
|
6826
6989
|
others = _objectWithoutPropertiesLoose(_ref, Form_excluded);
|
|
6827
6990
|
|
|
6828
|
-
var initData =
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
6833
|
-
|
|
6834
|
-
|
|
6835
|
-
|
|
6991
|
+
var initData = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
6992
|
+
return newFormState(fields, function (_ref2) {
|
|
6993
|
+
var initialValue = _ref2.initialValue;
|
|
6994
|
+
initialValue = newInitialValue(initialValue);
|
|
6995
|
+
return {
|
|
6996
|
+
initialValue: initialValue,
|
|
6997
|
+
currentValue: initialValue
|
|
6998
|
+
};
|
|
6999
|
+
});
|
|
7000
|
+
}, []);
|
|
6836
7001
|
|
|
6837
|
-
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(initData),
|
|
7002
|
+
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(JSON.parse(JSON.stringify(initData))),
|
|
6838
7003
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6839
7004
|
data = _useState2[0],
|
|
6840
|
-
|
|
7005
|
+
setDatas = _useState2[1];
|
|
7006
|
+
|
|
7007
|
+
var setData = function setData(values) {
|
|
7008
|
+
// 解决value为数组时不进行深拷贝,initvalue无法重置问题
|
|
7009
|
+
setDatas(JSON.parse(JSON.stringify(values)));
|
|
7010
|
+
};
|
|
6841
7011
|
|
|
6842
7012
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useImperativeHandle)(ref, function () {
|
|
6843
7013
|
return {
|
|
@@ -6845,7 +7015,11 @@ function Form(_ref, ref) {
|
|
|
6845
7015
|
resetForm: handleReset,
|
|
6846
7016
|
getFieldValues: function getFieldValues() {
|
|
6847
7017
|
return data.current;
|
|
6848
|
-
}
|
|
7018
|
+
},
|
|
7019
|
+
getError: function getError() {
|
|
7020
|
+
return data.errors;
|
|
7021
|
+
},
|
|
7022
|
+
setFields: setFields
|
|
6849
7023
|
};
|
|
6850
7024
|
}, [data]);
|
|
6851
7025
|
var formUnits = {};
|
|
@@ -6875,6 +7049,11 @@ function Form(_ref, ref) {
|
|
|
6875
7049
|
})));
|
|
6876
7050
|
}
|
|
6877
7051
|
|
|
7052
|
+
function setFields(fields) {
|
|
7053
|
+
data.current = fields;
|
|
7054
|
+
setData(data);
|
|
7055
|
+
}
|
|
7056
|
+
|
|
6878
7057
|
function handleChange(name, validator, element, cb) {
|
|
6879
7058
|
return function (env, list) {
|
|
6880
7059
|
var value = env && env.target && 'value' in env.target ? env.target.value : env; // 控件 Checkbox.Group 多选值的处理
|
|
@@ -6937,13 +7116,11 @@ function Form(_ref, ref) {
|
|
|
6937
7116
|
setData(_extends({}, data, nextState, {
|
|
6938
7117
|
errors: {}
|
|
6939
7118
|
}));
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
});
|
|
6946
|
-
};
|
|
7119
|
+
afterSubmit && afterSubmit({
|
|
7120
|
+
state: data,
|
|
7121
|
+
response: response,
|
|
7122
|
+
reset: handleReset
|
|
7123
|
+
});
|
|
6947
7124
|
};
|
|
6948
7125
|
|
|
6949
7126
|
try {
|
|
@@ -7012,10 +7189,10 @@ function Form(_ref, ref) {
|
|
|
7012
7189
|
props.id = element.props.id;
|
|
7013
7190
|
props.value = hasCurrentValue ? data.current && data.current[name] : props.value; // : element.props.value;
|
|
7014
7191
|
|
|
7015
|
-
var type = element.props.type;
|
|
7192
|
+
var type = element.props.type; // console.log('type', element)
|
|
7016
7193
|
|
|
7017
|
-
if (type === 'checkbox' || type === 'switch') {
|
|
7018
|
-
props.checked = !!props.
|
|
7194
|
+
if (type === 'checkbox' || type === 'switch' || typeof props.value === 'boolean') {
|
|
7195
|
+
props.checked = !!props.value;
|
|
7019
7196
|
delete props.value;
|
|
7020
7197
|
}
|
|
7021
7198
|
|
|
@@ -9129,11 +9306,95 @@ function Rate(props) {
|
|
|
9129
9306
|
})
|
|
9130
9307
|
}));
|
|
9131
9308
|
}
|
|
9309
|
+
;// CONCATENATED MODULE: ../react-tag/esm/style/index.css
|
|
9310
|
+
// extracted by mini-css-extract-plugin
|
|
9311
|
+
/* harmony default export */ var react_tag_esm_style = ({});
|
|
9312
|
+
;// CONCATENATED MODULE: ../react-tag/esm/index.js
|
|
9313
|
+
|
|
9314
|
+
|
|
9315
|
+
var react_tag_esm_excluded = ["prefixCls", "className", "style", "title", "children", "visible", "color", "disabled", "bordered", "closable", "light", "onClose"];
|
|
9316
|
+
|
|
9317
|
+
|
|
9318
|
+
|
|
9319
|
+
|
|
9320
|
+
/* harmony default export */ var react_tag_esm = (function (props) {
|
|
9321
|
+
if (props === void 0) {
|
|
9322
|
+
props = {};
|
|
9323
|
+
}
|
|
9324
|
+
|
|
9325
|
+
var _props = props,
|
|
9326
|
+
_props$prefixCls = _props.prefixCls,
|
|
9327
|
+
prefixCls = _props$prefixCls === void 0 ? 'w-tag' : _props$prefixCls,
|
|
9328
|
+
className = _props.className,
|
|
9329
|
+
style = _props.style,
|
|
9330
|
+
_props$title = _props.title,
|
|
9331
|
+
title = _props$title === void 0 ? '' : _props$title,
|
|
9332
|
+
children = _props.children,
|
|
9333
|
+
_props$visible = _props.visible,
|
|
9334
|
+
visible = _props$visible === void 0 ? true : _props$visible,
|
|
9335
|
+
_props$color = _props.color,
|
|
9336
|
+
color = _props$color === void 0 ? '#6E6E6E' : _props$color,
|
|
9337
|
+
_props$disabled = _props.disabled,
|
|
9338
|
+
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
9339
|
+
_props$bordered = _props.bordered,
|
|
9340
|
+
bordered = _props$bordered === void 0 ? true : _props$bordered,
|
|
9341
|
+
closable = _props.closable,
|
|
9342
|
+
_props$light = _props.light,
|
|
9343
|
+
light = _props$light === void 0 ? false : _props$light,
|
|
9344
|
+
onClose = _props.onClose,
|
|
9345
|
+
other = _objectWithoutPropertiesLoose(props, react_tag_esm_excluded);
|
|
9346
|
+
|
|
9347
|
+
var cls = [prefixCls, className, light ? prefixCls + "-light" : null, disabled ? 'disabled' : null].filter(Boolean).join(' ').trim();
|
|
9348
|
+
|
|
9349
|
+
var styl = _extends({}, style);
|
|
9350
|
+
|
|
9351
|
+
if (!light) {
|
|
9352
|
+
styl.color = '#fff';
|
|
9353
|
+
styl.backgroundColor = color;
|
|
9354
|
+
} else {
|
|
9355
|
+
styl.color = color;
|
|
9356
|
+
styl.borderColor = color;
|
|
9357
|
+
|
|
9358
|
+
if (bordered && light) {
|
|
9359
|
+
styl.boxShadow = "inset 0 0 0 1px " + color;
|
|
9360
|
+
}
|
|
9361
|
+
}
|
|
9362
|
+
|
|
9363
|
+
if (!visible) {
|
|
9364
|
+
return null;
|
|
9365
|
+
}
|
|
9366
|
+
|
|
9367
|
+
var closeBtn = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
9368
|
+
return closable ? /*#__PURE__*/(0,jsx_runtime.jsx)("svg", {
|
|
9369
|
+
onClick: onClose,
|
|
9370
|
+
className: prefixCls + "-close",
|
|
9371
|
+
width: "15",
|
|
9372
|
+
height: "15",
|
|
9373
|
+
viewBox: "0 0 16 16",
|
|
9374
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
9375
|
+
d: "M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z"
|
|
9376
|
+
})
|
|
9377
|
+
}) : null;
|
|
9378
|
+
}, [closable]);
|
|
9379
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", _extends({
|
|
9380
|
+
className: cls,
|
|
9381
|
+
style: styl
|
|
9382
|
+
}, other, {
|
|
9383
|
+
children: [title || children, closeBtn]
|
|
9384
|
+
}));
|
|
9385
|
+
});
|
|
9386
|
+
;// CONCATENATED MODULE: ../react-search-select/esm/style/index.css
|
|
9387
|
+
// extracted by mini-css-extract-plugin
|
|
9388
|
+
/* harmony default export */ var react_search_select_esm_style = ({});
|
|
9132
9389
|
;// CONCATENATED MODULE: ../react-search-select/esm/index.js
|
|
9133
9390
|
|
|
9134
9391
|
|
|
9135
9392
|
|
|
9136
|
-
|
|
9393
|
+
|
|
9394
|
+
var react_search_select_esm_excluded = ["allowClear", "disabled", "size", "option", "loading", "prefixCls", "className", "mode", "style", "isOpen", "value", "defaultValue", "showSearch", "placeholder", "onSearch", "onChange", "onSelect"];
|
|
9395
|
+
|
|
9396
|
+
|
|
9397
|
+
|
|
9137
9398
|
|
|
9138
9399
|
|
|
9139
9400
|
|
|
@@ -9154,6 +9415,11 @@ function SearchSelect(props) {
|
|
|
9154
9415
|
option = _props$option === void 0 ? [] : _props$option,
|
|
9155
9416
|
_props$loading = props.loading,
|
|
9156
9417
|
loading = _props$loading === void 0 ? false : _props$loading,
|
|
9418
|
+
_props$prefixCls = props.prefixCls,
|
|
9419
|
+
prefixCls = _props$prefixCls === void 0 ? 'w-search-select' : _props$prefixCls,
|
|
9420
|
+
className = props.className,
|
|
9421
|
+
_props$mode = props.mode,
|
|
9422
|
+
mode = _props$mode === void 0 ? 'single' : _props$mode,
|
|
9157
9423
|
style = props.style,
|
|
9158
9424
|
value = props.value,
|
|
9159
9425
|
defaultValue = props.defaultValue,
|
|
@@ -9164,12 +9430,19 @@ function SearchSelect(props) {
|
|
|
9164
9430
|
onSelect = props.onSelect,
|
|
9165
9431
|
others = _objectWithoutPropertiesLoose(props, react_search_select_esm_excluded);
|
|
9166
9432
|
|
|
9433
|
+
var cls = [prefixCls, className].filter(Boolean).join(' ').trim();
|
|
9434
|
+
var isMultiple = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
9435
|
+
return mode === 'multiple';
|
|
9436
|
+
}, [mode]);
|
|
9437
|
+
|
|
9167
9438
|
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
|
|
9168
9439
|
_useState2 = _slicedToArray(_useState, 2),
|
|
9169
9440
|
innerIsOpen = _useState2[0],
|
|
9170
9441
|
setInnerIsOpen = _useState2[1];
|
|
9171
9442
|
|
|
9172
|
-
var _useState3 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(
|
|
9443
|
+
var _useState3 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(option.filter(function (item) {
|
|
9444
|
+
return item.value === value;
|
|
9445
|
+
})),
|
|
9173
9446
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
9174
9447
|
selectedValue = _useState4[0],
|
|
9175
9448
|
setSelectedValue = _useState4[1];
|
|
@@ -9185,28 +9458,58 @@ function SearchSelect(props) {
|
|
|
9185
9458
|
setSelectIconType = _useState8[1];
|
|
9186
9459
|
|
|
9187
9460
|
var divRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
9461
|
+
var valueRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
|
|
9462
|
+
valueRef.current = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
9463
|
+
return selectedValue;
|
|
9464
|
+
}, [selectedValue]);
|
|
9188
9465
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
9189
9466
|
if (defaultValue) {
|
|
9190
|
-
var defaultMenuItem = option.
|
|
9191
|
-
return
|
|
9467
|
+
var defaultMenuItem = option.filter(function (opt) {
|
|
9468
|
+
return opt.value === defaultValue;
|
|
9192
9469
|
});
|
|
9193
|
-
setSelectedValue(
|
|
9194
|
-
setSelectedLabel(defaultMenuItem ? defaultMenuItem.label : '');
|
|
9470
|
+
setSelectedValue(defaultMenuItem);
|
|
9195
9471
|
}
|
|
9196
9472
|
}, []);
|
|
9197
|
-
|
|
9198
|
-
|
|
9199
|
-
|
|
9200
|
-
|
|
9201
|
-
|
|
9473
|
+
|
|
9474
|
+
function removeSelectItem(index) {
|
|
9475
|
+
var selectedValue = valueRef.current;
|
|
9476
|
+
selectedValue.splice(index, 1);
|
|
9477
|
+
|
|
9478
|
+
var values = _toConsumableArray(selectedValue);
|
|
9479
|
+
|
|
9480
|
+
return values;
|
|
9481
|
+
}
|
|
9202
9482
|
|
|
9203
9483
|
function handleItemClick(item) {
|
|
9204
9484
|
setInnerIsOpen(false);
|
|
9205
|
-
|
|
9485
|
+
var values = [item];
|
|
9486
|
+
setSelectedValue(values);
|
|
9206
9487
|
setSelectedLabel(item.label);
|
|
9207
|
-
|
|
9488
|
+
var resultValue = item.value;
|
|
9489
|
+
onSelect && onSelect(resultValue); // 支持form组件
|
|
9490
|
+
|
|
9491
|
+
handleSelectChange(resultValue);
|
|
9492
|
+
}
|
|
9493
|
+
|
|
9494
|
+
function handleItemsClick(item) {
|
|
9495
|
+
var values = [];
|
|
9496
|
+
var index = selectedValue.findIndex(function (finds) {
|
|
9497
|
+
return finds.value === item.value;
|
|
9498
|
+
});
|
|
9499
|
+
|
|
9500
|
+
if (index !== -1) {
|
|
9501
|
+
values = removeSelectItem(index);
|
|
9502
|
+
} else {
|
|
9503
|
+
values = [].concat(_toConsumableArray(selectedValue), [item]);
|
|
9504
|
+
}
|
|
9505
|
+
|
|
9506
|
+
setSelectedValue(values);
|
|
9507
|
+
var resultValue = values.map(function (item) {
|
|
9508
|
+
return item.value;
|
|
9509
|
+
});
|
|
9510
|
+
onSelect && onSelect(resultValue); // // 支持form组件
|
|
9208
9511
|
|
|
9209
|
-
handleSelectChange(
|
|
9512
|
+
handleSelectChange(resultValue);
|
|
9210
9513
|
} // 渲染icon
|
|
9211
9514
|
|
|
9212
9515
|
|
|
@@ -9228,14 +9531,13 @@ function SearchSelect(props) {
|
|
|
9228
9531
|
setInnerIsOpen(!!value);
|
|
9229
9532
|
setSelectedLabel(value);
|
|
9230
9533
|
setSelectIconType(showSearch && value ? 'loading' : '');
|
|
9231
|
-
showSearch && onSearch && onSearch(value);
|
|
9232
|
-
handleSelectChange(value);
|
|
9534
|
+
showSearch && onSearch && onSearch(value); // handleSelectChange(value);
|
|
9233
9535
|
} // 清除选中的值
|
|
9234
9536
|
|
|
9235
9537
|
|
|
9236
9538
|
function resetSelectedValue() {
|
|
9237
9539
|
setInnerIsOpen(false);
|
|
9238
|
-
setSelectedValue(
|
|
9540
|
+
setSelectedValue([]);
|
|
9239
9541
|
setSelectedLabel('');
|
|
9240
9542
|
setSelectIconType('');
|
|
9241
9543
|
handleSelectChange('');
|
|
@@ -9245,7 +9547,15 @@ function SearchSelect(props) {
|
|
|
9245
9547
|
onChange && onChange(value);
|
|
9246
9548
|
}
|
|
9247
9549
|
|
|
9550
|
+
function inputKeyDown(e) {
|
|
9551
|
+
if (selectedValue.length > 0 && !!selectedLabel && e.keyCode === 8) {
|
|
9552
|
+
var values = removeSelectItem(selectedValue.length - 1);
|
|
9553
|
+
setSelectedValue(values);
|
|
9554
|
+
}
|
|
9555
|
+
}
|
|
9556
|
+
|
|
9248
9557
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(Dropdown, _extends({
|
|
9558
|
+
className: cls,
|
|
9249
9559
|
trigger: "focus",
|
|
9250
9560
|
style: {
|
|
9251
9561
|
marginTop: 5
|
|
@@ -9253,7 +9563,8 @@ function SearchSelect(props) {
|
|
|
9253
9563
|
disabled: option && option.length > 0 ? false : true
|
|
9254
9564
|
}, others, {
|
|
9255
9565
|
onVisibleChange: function onVisibleChange(open) {
|
|
9256
|
-
|
|
9566
|
+
if (!open && isMultiple) setSelectedLabel('');
|
|
9567
|
+
setInnerIsOpen(open);
|
|
9257
9568
|
},
|
|
9258
9569
|
isOpen: innerIsOpen,
|
|
9259
9570
|
menu: /*#__PURE__*/(0,jsx_runtime.jsx)(react_menu_esm, {
|
|
@@ -9261,6 +9572,7 @@ function SearchSelect(props) {
|
|
|
9261
9572
|
style: {
|
|
9262
9573
|
minHeight: 25,
|
|
9263
9574
|
maxHeight: 280,
|
|
9575
|
+
minWidth: (style == null ? void 0 : style.minWidth) || 200,
|
|
9264
9576
|
overflowY: 'scroll',
|
|
9265
9577
|
width: divRef.current ? divRef.current.offsetWidth : 'auto'
|
|
9266
9578
|
},
|
|
@@ -9271,12 +9583,14 @@ function SearchSelect(props) {
|
|
|
9271
9583
|
},
|
|
9272
9584
|
children: loading ? '正在加载数据...' : '没有数据'
|
|
9273
9585
|
}) : option.map(function (item, idx) {
|
|
9274
|
-
var active = selectedValue
|
|
9586
|
+
var active = !!selectedValue.find(function (finds) {
|
|
9587
|
+
return finds.value === item.value;
|
|
9588
|
+
});
|
|
9275
9589
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(react_menu_esm.Item, {
|
|
9276
9590
|
active: active,
|
|
9277
9591
|
text: item.label,
|
|
9278
9592
|
onClick: function onClick() {
|
|
9279
|
-
return handleItemClick(item);
|
|
9593
|
+
return isMultiple ? handleItemsClick(item) : handleItemClick(item);
|
|
9280
9594
|
}
|
|
9281
9595
|
}, idx);
|
|
9282
9596
|
})
|
|
@@ -9289,19 +9603,51 @@ function SearchSelect(props) {
|
|
|
9289
9603
|
onMouseLeave: function onMouseLeave() {
|
|
9290
9604
|
return renderSelectIcon('leave');
|
|
9291
9605
|
},
|
|
9292
|
-
style:
|
|
9293
|
-
|
|
9294
|
-
|
|
9295
|
-
|
|
9296
|
-
|
|
9297
|
-
|
|
9298
|
-
|
|
9299
|
-
|
|
9300
|
-
|
|
9301
|
-
|
|
9302
|
-
|
|
9303
|
-
|
|
9304
|
-
|
|
9606
|
+
style: _extends({
|
|
9607
|
+
width: 'auto',
|
|
9608
|
+
maxWidth: 'none'
|
|
9609
|
+
}, style),
|
|
9610
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
9611
|
+
style: isMultiple ? {
|
|
9612
|
+
display: 'flex',
|
|
9613
|
+
flexFlow: 'wrap',
|
|
9614
|
+
padding: 2,
|
|
9615
|
+
borderRadius: 3,
|
|
9616
|
+
boxShadow: '0px 0px 2px #333'
|
|
9617
|
+
} : undefined,
|
|
9618
|
+
children: [isMultiple && selectedValue.map(function (item, index) {
|
|
9619
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(react_tag_esm, {
|
|
9620
|
+
style: {
|
|
9621
|
+
margin: '0px 3px 3px 0px',
|
|
9622
|
+
display: 'flex',
|
|
9623
|
+
alignItems: 'center'
|
|
9624
|
+
},
|
|
9625
|
+
closable: true,
|
|
9626
|
+
onClose: function onClose() {
|
|
9627
|
+
return setSelectedValue(removeSelectItem(index));
|
|
9628
|
+
},
|
|
9629
|
+
color: "#ccc",
|
|
9630
|
+
children: item.label
|
|
9631
|
+
}, index);
|
|
9632
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)(react_input_esm, {
|
|
9633
|
+
style: {
|
|
9634
|
+
flex: 1,
|
|
9635
|
+
boxShadow: 'none'
|
|
9636
|
+
},
|
|
9637
|
+
className: isMultiple ? prefixCls + "-input-contents" : undefined,
|
|
9638
|
+
readOnly: !showSearch,
|
|
9639
|
+
size: size,
|
|
9640
|
+
disabled: disabled,
|
|
9641
|
+
onKeyDown: inputKeyDown,
|
|
9642
|
+
onChange: handleInputChange,
|
|
9643
|
+
value: selectedLabel,
|
|
9644
|
+
placeholder: placeholder,
|
|
9645
|
+
addonAfter: (selectIconType === 'close' || selectIconType === 'loading' && loading) && /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
9646
|
+
type: selectIconType,
|
|
9647
|
+
spin: loading && selectIconType === 'loading',
|
|
9648
|
+
onClick: resetSelectedValue
|
|
9649
|
+
})
|
|
9650
|
+
})]
|
|
9305
9651
|
})
|
|
9306
9652
|
})
|
|
9307
9653
|
}));
|
|
@@ -10308,7 +10654,7 @@ var getAllColumnsKeys = function getAllColumnsKeys(data, keys) {
|
|
|
10308
10654
|
;// CONCATENATED MODULE: ../react-table/esm/index.js
|
|
10309
10655
|
|
|
10310
10656
|
|
|
10311
|
-
var react_table_esm_excluded = ["prefixCls", "className", "columns", "data", "title", "footer", "bordered", "onCell", "onCellHead"];
|
|
10657
|
+
var react_table_esm_excluded = ["prefixCls", "className", "columns", "data", "title", "footer", "bordered", "onCell", "onCellHead", "empty", "children"];
|
|
10312
10658
|
|
|
10313
10659
|
|
|
10314
10660
|
|
|
@@ -10337,6 +10683,7 @@ var react_table_esm_excluded = ["prefixCls", "className", "columns", "data", "ti
|
|
|
10337
10683
|
onCell = _props$onCell === void 0 ? noop : _props$onCell,
|
|
10338
10684
|
_props$onCellHead = _props.onCellHead,
|
|
10339
10685
|
onCellHead = _props$onCellHead === void 0 ? noop : _props$onCellHead,
|
|
10686
|
+
empty = _props.empty,
|
|
10340
10687
|
other = _objectWithoutPropertiesLoose(props, react_table_esm_excluded);
|
|
10341
10688
|
|
|
10342
10689
|
var cls = [prefixCls, className, bordered ? prefixCls + "-bordered" : null].filter(Boolean).join(' ').trim();
|
|
@@ -10403,6 +10750,17 @@ var react_table_esm_excluded = ["prefixCls", "className", "columns", "data", "ti
|
|
|
10403
10750
|
})
|
|
10404
10751
|
}, rowNum);
|
|
10405
10752
|
})
|
|
10753
|
+
}), data && data.length === 0 && empty && /*#__PURE__*/(0,jsx_runtime.jsx)("tbody", {
|
|
10754
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("tr", {
|
|
10755
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("td", {
|
|
10756
|
+
colSpan: columns.length,
|
|
10757
|
+
style: {
|
|
10758
|
+
position: 'relative',
|
|
10759
|
+
left: 0
|
|
10760
|
+
},
|
|
10761
|
+
children: empty
|
|
10762
|
+
})
|
|
10763
|
+
})
|
|
10406
10764
|
}), props.children]
|
|
10407
10765
|
}), footer && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
10408
10766
|
className: prefixCls + "-footer",
|
|
@@ -10533,83 +10891,6 @@ function Tabs(props) {
|
|
|
10533
10891
|
})]
|
|
10534
10892
|
}));
|
|
10535
10893
|
}
|
|
10536
|
-
;// CONCATENATED MODULE: ../react-tag/esm/style/index.css
|
|
10537
|
-
// extracted by mini-css-extract-plugin
|
|
10538
|
-
/* harmony default export */ var react_tag_esm_style = ({});
|
|
10539
|
-
;// CONCATENATED MODULE: ../react-tag/esm/index.js
|
|
10540
|
-
|
|
10541
|
-
|
|
10542
|
-
var react_tag_esm_excluded = ["prefixCls", "className", "style", "title", "children", "visible", "color", "disabled", "bordered", "closable", "light", "onClose"];
|
|
10543
|
-
|
|
10544
|
-
|
|
10545
|
-
|
|
10546
|
-
|
|
10547
|
-
/* harmony default export */ var react_tag_esm = (function (props) {
|
|
10548
|
-
if (props === void 0) {
|
|
10549
|
-
props = {};
|
|
10550
|
-
}
|
|
10551
|
-
|
|
10552
|
-
var _props = props,
|
|
10553
|
-
_props$prefixCls = _props.prefixCls,
|
|
10554
|
-
prefixCls = _props$prefixCls === void 0 ? 'w-tag' : _props$prefixCls,
|
|
10555
|
-
className = _props.className,
|
|
10556
|
-
style = _props.style,
|
|
10557
|
-
_props$title = _props.title,
|
|
10558
|
-
title = _props$title === void 0 ? '' : _props$title,
|
|
10559
|
-
children = _props.children,
|
|
10560
|
-
_props$visible = _props.visible,
|
|
10561
|
-
visible = _props$visible === void 0 ? true : _props$visible,
|
|
10562
|
-
_props$color = _props.color,
|
|
10563
|
-
color = _props$color === void 0 ? '#6E6E6E' : _props$color,
|
|
10564
|
-
_props$disabled = _props.disabled,
|
|
10565
|
-
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
10566
|
-
_props$bordered = _props.bordered,
|
|
10567
|
-
bordered = _props$bordered === void 0 ? true : _props$bordered,
|
|
10568
|
-
closable = _props.closable,
|
|
10569
|
-
_props$light = _props.light,
|
|
10570
|
-
light = _props$light === void 0 ? false : _props$light,
|
|
10571
|
-
onClose = _props.onClose,
|
|
10572
|
-
other = _objectWithoutPropertiesLoose(props, react_tag_esm_excluded);
|
|
10573
|
-
|
|
10574
|
-
var cls = [prefixCls, className, light ? prefixCls + "-light" : null, disabled ? 'disabled' : null].filter(Boolean).join(' ').trim();
|
|
10575
|
-
|
|
10576
|
-
var styl = _extends({}, style);
|
|
10577
|
-
|
|
10578
|
-
if (!light) {
|
|
10579
|
-
styl.color = '#fff';
|
|
10580
|
-
styl.backgroundColor = color;
|
|
10581
|
-
} else {
|
|
10582
|
-
styl.color = color;
|
|
10583
|
-
styl.borderColor = color;
|
|
10584
|
-
|
|
10585
|
-
if (bordered && light) {
|
|
10586
|
-
styl.boxShadow = "inset 0 0 0 1px " + color;
|
|
10587
|
-
}
|
|
10588
|
-
}
|
|
10589
|
-
|
|
10590
|
-
if (!visible) {
|
|
10591
|
-
return null;
|
|
10592
|
-
}
|
|
10593
|
-
|
|
10594
|
-
var closeBtn = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
10595
|
-
return closable ? /*#__PURE__*/(0,jsx_runtime.jsx)("svg", {
|
|
10596
|
-
onClick: onClose,
|
|
10597
|
-
className: prefixCls + "-close",
|
|
10598
|
-
width: "15",
|
|
10599
|
-
height: "15",
|
|
10600
|
-
viewBox: "0 0 16 16",
|
|
10601
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
10602
|
-
d: "M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z"
|
|
10603
|
-
})
|
|
10604
|
-
}) : null;
|
|
10605
|
-
}, [closable]);
|
|
10606
|
-
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", _extends({
|
|
10607
|
-
className: cls,
|
|
10608
|
-
style: styl
|
|
10609
|
-
}, other, {
|
|
10610
|
-
children: [title || children, closeBtn]
|
|
10611
|
-
}));
|
|
10612
|
-
});
|
|
10613
10894
|
;// CONCATENATED MODULE: ../react-textarea/esm/style/index.css
|
|
10614
10895
|
// extracted by mini-css-extract-plugin
|
|
10615
10896
|
/* harmony default export */ var react_textarea_esm_style = ({});
|
|
@@ -11229,98 +11510,8 @@ function TreeChecked(_ref) {
|
|
|
11229
11510
|
|
|
11230
11511
|
|
|
11231
11512
|
|
|
11232
|
-
/***/ }),
|
|
11233
|
-
|
|
11234
|
-
/***/ 787:
|
|
11235
|
-
/***/ (function(module) {
|
|
11236
11513
|
|
|
11237
|
-
|
|
11238
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__787__;
|
|
11239
|
-
|
|
11240
|
-
/***/ }),
|
|
11241
|
-
|
|
11242
|
-
/***/ 156:
|
|
11243
|
-
/***/ (function(module) {
|
|
11244
|
-
|
|
11245
|
-
"use strict";
|
|
11246
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__156__;
|
|
11247
|
-
|
|
11248
|
-
/***/ })
|
|
11249
|
-
|
|
11250
|
-
/******/ });
|
|
11251
|
-
/************************************************************************/
|
|
11252
|
-
/******/ // The module cache
|
|
11253
|
-
/******/ var __webpack_module_cache__ = {};
|
|
11254
|
-
/******/
|
|
11255
|
-
/******/ // The require function
|
|
11256
|
-
/******/ function __webpack_require__(moduleId) {
|
|
11257
|
-
/******/ // Check if module is in cache
|
|
11258
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
11259
|
-
/******/ if (cachedModule !== undefined) {
|
|
11260
|
-
/******/ return cachedModule.exports;
|
|
11261
|
-
/******/ }
|
|
11262
|
-
/******/ // Create a new module (and put it into the cache)
|
|
11263
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
11264
|
-
/******/ // no module.id needed
|
|
11265
|
-
/******/ // no module.loaded needed
|
|
11266
|
-
/******/ exports: {}
|
|
11267
|
-
/******/ };
|
|
11268
|
-
/******/
|
|
11269
|
-
/******/ // Execute the module function
|
|
11270
|
-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
11271
|
-
/******/
|
|
11272
|
-
/******/ // Return the exports of the module
|
|
11273
|
-
/******/ return module.exports;
|
|
11274
|
-
/******/ }
|
|
11275
|
-
/******/
|
|
11276
|
-
/************************************************************************/
|
|
11277
|
-
/******/ /* webpack/runtime/compat get default export */
|
|
11278
|
-
/******/ !function() {
|
|
11279
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
11280
|
-
/******/ __webpack_require__.n = function(module) {
|
|
11281
|
-
/******/ var getter = module && module.__esModule ?
|
|
11282
|
-
/******/ function() { return module['default']; } :
|
|
11283
|
-
/******/ function() { return module; };
|
|
11284
|
-
/******/ __webpack_require__.d(getter, { a: getter });
|
|
11285
|
-
/******/ return getter;
|
|
11286
|
-
/******/ };
|
|
11287
|
-
/******/ }();
|
|
11288
|
-
/******/
|
|
11289
|
-
/******/ /* webpack/runtime/define property getters */
|
|
11290
|
-
/******/ !function() {
|
|
11291
|
-
/******/ // define getter functions for harmony exports
|
|
11292
|
-
/******/ __webpack_require__.d = function(exports, definition) {
|
|
11293
|
-
/******/ for(var key in definition) {
|
|
11294
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
11295
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
11296
|
-
/******/ }
|
|
11297
|
-
/******/ }
|
|
11298
|
-
/******/ };
|
|
11299
|
-
/******/ }();
|
|
11300
|
-
/******/
|
|
11301
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
11302
|
-
/******/ !function() {
|
|
11303
|
-
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
11304
|
-
/******/ }();
|
|
11305
|
-
/******/
|
|
11306
|
-
/******/ /* webpack/runtime/make namespace object */
|
|
11307
|
-
/******/ !function() {
|
|
11308
|
-
/******/ // define __esModule on exports
|
|
11309
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
11310
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
11311
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
11312
|
-
/******/ }
|
|
11313
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
11314
|
-
/******/ };
|
|
11315
|
-
/******/ }();
|
|
11316
|
-
/******/
|
|
11317
|
-
/************************************************************************/
|
|
11318
|
-
/******/
|
|
11319
|
-
/******/ // startup
|
|
11320
|
-
/******/ // Load entry module and return exports
|
|
11321
|
-
/******/ // This entry module doesn't tell about it's top-level declarations so it can't be inlined
|
|
11322
|
-
/******/ var __webpack_exports__ = __webpack_require__(523);
|
|
11323
|
-
/******/
|
|
11514
|
+
}();
|
|
11324
11515
|
/******/ return __webpack_exports__;
|
|
11325
11516
|
/******/ })()
|
|
11326
11517
|
;
|