@kdcloudjs/kdesign 1.7.40 → 1.7.41
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/CHANGELOG.md +19 -0
- package/dist/kdesign-complete.less +79 -5
- package/dist/kdesign.css +69 -1
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +331 -32
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +2 -2
- package/dist/kdesign.min.js +10 -10
- package/dist/kdesign.min.js.map +1 -1
- package/es/button/index.d.ts +2 -1
- package/es/carousel/index.d.ts +2 -2
- package/es/city-picker/index.d.ts +2 -0
- package/es/collapse/index.d.ts +2 -2
- package/es/config-provider/compDefaultProps.d.ts +1 -0
- package/es/config-provider/compDefaultProps.js +2 -1
- package/es/input/TextArea.js +16 -8
- package/es/input/style/index.css +3 -0
- package/es/input/style/index.less +9 -5
- package/es/modal/modal.d.ts +4 -0
- package/es/modal/modal.js +221 -20
- package/es/modal/style/index.css +65 -0
- package/es/modal/style/index.less +70 -0
- package/es/notification-base/notice.js +6 -1
- package/es/search/search-panel.d.ts +1 -1
- package/es/select/index.d.ts +1 -0
- package/es/select/index.js +1 -0
- package/lib/button/index.d.ts +2 -1
- package/lib/carousel/index.d.ts +2 -2
- package/lib/city-picker/index.d.ts +2 -0
- package/lib/collapse/index.d.ts +2 -2
- package/lib/config-provider/compDefaultProps.d.ts +1 -0
- package/lib/config-provider/compDefaultProps.js +2 -1
- package/lib/input/TextArea.js +16 -8
- package/lib/input/style/index.css +3 -0
- package/lib/input/style/index.less +9 -5
- package/lib/modal/modal.d.ts +4 -0
- package/lib/modal/modal.js +221 -20
- package/lib/modal/style/index.css +65 -0
- package/lib/modal/style/index.less +70 -0
- package/lib/notification-base/notice.js +6 -1
- package/lib/search/search-panel.d.ts +1 -1
- package/lib/select/index.d.ts +1 -0
- package/lib/select/index.js +14 -0
- package/package.json +8 -2
package/dist/kdesign.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* @kdcloudjs/kdesign v1.7.
|
|
3
|
+
* @kdcloudjs/kdesign v1.7.40
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2020-present, Kingdee, Inc.
|
|
6
6
|
* All rights reserved.
|
|
@@ -5368,7 +5368,7 @@ ButtonGroup.displayName = 'ButtonGroup';
|
|
|
5368
5368
|
/*!*************************************!*\
|
|
5369
5369
|
!*** ./components/button/index.tsx ***!
|
|
5370
5370
|
\*************************************/
|
|
5371
|
-
/*! exports provided: ButtonType, IButtonProps, default */
|
|
5371
|
+
/*! exports provided: ButtonType, IButtonProps, ButtonSize, ButtonShape, ButtonIconPlace, ButtonHTMLType, OverlayType, ButtonGroupType, default */
|
|
5372
5372
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5373
5373
|
|
|
5374
5374
|
"use strict";
|
|
@@ -5379,11 +5379,24 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5379
5379
|
|
|
5380
5380
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IButtonProps", function() { return _button__WEBPACK_IMPORTED_MODULE_0__["IButtonProps"]; });
|
|
5381
5381
|
|
|
5382
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonSize", function() { return _button__WEBPACK_IMPORTED_MODULE_0__["ButtonSize"]; });
|
|
5383
|
+
|
|
5384
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonShape", function() { return _button__WEBPACK_IMPORTED_MODULE_0__["ButtonShape"]; });
|
|
5385
|
+
|
|
5386
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonIconPlace", function() { return _button__WEBPACK_IMPORTED_MODULE_0__["ButtonIconPlace"]; });
|
|
5387
|
+
|
|
5388
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonHTMLType", function() { return _button__WEBPACK_IMPORTED_MODULE_0__["ButtonHTMLType"]; });
|
|
5389
|
+
|
|
5390
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OverlayType", function() { return _group__WEBPACK_IMPORTED_MODULE_1__["OverlayType"]; });
|
|
5391
|
+
|
|
5392
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonGroupType", function() { return _group__WEBPACK_IMPORTED_MODULE_1__["ButtonGroupType"]; });
|
|
5393
|
+
|
|
5382
5394
|
|
|
5383
5395
|
|
|
5384
5396
|
var Button = _button__WEBPACK_IMPORTED_MODULE_0__["default"];
|
|
5385
5397
|
Button.Dropdown = _group__WEBPACK_IMPORTED_MODULE_1__["default"];
|
|
5386
5398
|
|
|
5399
|
+
|
|
5387
5400
|
/* harmony default export */ __webpack_exports__["default"] = (Button);
|
|
5388
5401
|
|
|
5389
5402
|
/***/ }),
|
|
@@ -6012,7 +6025,7 @@ var FadeList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.forward
|
|
|
6012
6025
|
/*!***************************************!*\
|
|
6013
6026
|
!*** ./components/carousel/index.tsx ***!
|
|
6014
6027
|
\***************************************/
|
|
6015
|
-
/*! exports provided: DotPositionTypes, EffectTypes, CarouselProps, Slidebar, FadeList, SlideList, default */
|
|
6028
|
+
/*! exports provided: DotPositionTypes, EffectTypes, CarouselProps, DotPositionType, EffectType, Slidebar, FadeList, SlideList, default */
|
|
6016
6029
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6017
6030
|
|
|
6018
6031
|
"use strict";
|
|
@@ -6020,6 +6033,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6020
6033
|
/* harmony import */ var _carousel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./carousel */ "./components/carousel/carousel.tsx");
|
|
6021
6034
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CarouselProps", function() { return _carousel__WEBPACK_IMPORTED_MODULE_0__["CarouselProps"]; });
|
|
6022
6035
|
|
|
6036
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DotPositionType", function() { return _carousel__WEBPACK_IMPORTED_MODULE_0__["DotPositionType"]; });
|
|
6037
|
+
|
|
6038
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EffectType", function() { return _carousel__WEBPACK_IMPORTED_MODULE_0__["EffectType"]; });
|
|
6039
|
+
|
|
6023
6040
|
/* harmony import */ var _slidebar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./slidebar */ "./components/carousel/slidebar.tsx");
|
|
6024
6041
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Slidebar", function() { return _slidebar__WEBPACK_IMPORTED_MODULE_1__["Slidebar"]; });
|
|
6025
6042
|
|
|
@@ -8105,18 +8122,53 @@ Select.displayName = 'CityPicker';
|
|
|
8105
8122
|
/*!******************************************!*\
|
|
8106
8123
|
!*** ./components/city-picker/index.tsx ***!
|
|
8107
8124
|
\******************************************/
|
|
8108
|
-
/*! exports provided: default */
|
|
8125
|
+
/*! exports provided: City, BorderType, Size, Type, CityList, CityPickerProps, ICityPickerOptionProps, default */
|
|
8109
8126
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
8110
8127
|
|
|
8111
8128
|
"use strict";
|
|
8112
8129
|
__webpack_require__.r(__webpack_exports__);
|
|
8113
8130
|
/* harmony import */ var _city_picker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./city-picker */ "./components/city-picker/city-picker.tsx");
|
|
8131
|
+
/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./interface */ "./components/city-picker/interface.tsx");
|
|
8132
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "City", function() { return _interface__WEBPACK_IMPORTED_MODULE_1__["City"]; });
|
|
8133
|
+
|
|
8134
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BorderType", function() { return _interface__WEBPACK_IMPORTED_MODULE_1__["BorderType"]; });
|
|
8135
|
+
|
|
8136
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Size", function() { return _interface__WEBPACK_IMPORTED_MODULE_1__["Size"]; });
|
|
8137
|
+
|
|
8138
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Type", function() { return _interface__WEBPACK_IMPORTED_MODULE_1__["Type"]; });
|
|
8139
|
+
|
|
8140
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CityList", function() { return _interface__WEBPACK_IMPORTED_MODULE_1__["CityList"]; });
|
|
8141
|
+
|
|
8142
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CityPickerProps", function() { return _interface__WEBPACK_IMPORTED_MODULE_1__["CityPickerProps"]; });
|
|
8143
|
+
|
|
8144
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ICityPickerOptionProps", function() { return _interface__WEBPACK_IMPORTED_MODULE_1__["ICityPickerOptionProps"]; });
|
|
8145
|
+
|
|
8114
8146
|
/* empty/unused harmony star reexport */
|
|
8115
8147
|
|
|
8148
|
+
|
|
8149
|
+
|
|
8116
8150
|
/* harmony default export */ __webpack_exports__["default"] = (_city_picker__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
|
8117
8151
|
|
|
8118
8152
|
/***/ }),
|
|
8119
8153
|
|
|
8154
|
+
/***/ "./components/city-picker/interface.tsx":
|
|
8155
|
+
/*!**********************************************!*\
|
|
8156
|
+
!*** ./components/city-picker/interface.tsx ***!
|
|
8157
|
+
\**********************************************/
|
|
8158
|
+
/*! exports provided: BorderTypes, Sizes */
|
|
8159
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
8160
|
+
|
|
8161
|
+
"use strict";
|
|
8162
|
+
__webpack_require__.r(__webpack_exports__);
|
|
8163
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BorderTypes", function() { return BorderTypes; });
|
|
8164
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sizes", function() { return Sizes; });
|
|
8165
|
+
/* harmony import */ var _utils_type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_utils/type */ "./components/_utils/type.ts");
|
|
8166
|
+
|
|
8167
|
+
var BorderTypes = Object(_utils_type__WEBPACK_IMPORTED_MODULE_0__["tuple"])('none', 'underline', 'bordered');
|
|
8168
|
+
var Sizes = Object(_utils_type__WEBPACK_IMPORTED_MODULE_0__["tuple"])('large', 'middle', 'small'); // 选择框大小
|
|
8169
|
+
|
|
8170
|
+
/***/ }),
|
|
8171
|
+
|
|
8120
8172
|
/***/ "./components/city-picker/option.tsx":
|
|
8121
8173
|
/*!*******************************************!*\
|
|
8122
8174
|
!*** ./components/city-picker/option.tsx ***!
|
|
@@ -8805,12 +8857,14 @@ InternalCollapse.displayName = 'Collapse';
|
|
|
8805
8857
|
/*!***************************************!*\
|
|
8806
8858
|
!*** ./components/collapse/index.tsx ***!
|
|
8807
8859
|
\***************************************/
|
|
8808
|
-
/*! exports provided: PanelProps, Panel, default */
|
|
8860
|
+
/*! exports provided: PanelProps, Panel, IconPositionType, default */
|
|
8809
8861
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
8810
8862
|
|
|
8811
8863
|
"use strict";
|
|
8812
8864
|
__webpack_require__.r(__webpack_exports__);
|
|
8813
8865
|
/* harmony import */ var _collapse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./collapse */ "./components/collapse/collapse.tsx");
|
|
8866
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IconPositionType", function() { return _collapse__WEBPACK_IMPORTED_MODULE_0__["IconPositionType"]; });
|
|
8867
|
+
|
|
8814
8868
|
/* harmony import */ var _panel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./panel */ "./components/collapse/panel.tsx");
|
|
8815
8869
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Panel", function() { return _panel__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
|
8816
8870
|
|
|
@@ -10197,7 +10251,8 @@ var compDefaultProps = {
|
|
|
10197
10251
|
cancelButtonProps: {},
|
|
10198
10252
|
okButtonProps: {},
|
|
10199
10253
|
showline: true,
|
|
10200
|
-
overroll: false
|
|
10254
|
+
overroll: false,
|
|
10255
|
+
resizable: false
|
|
10201
10256
|
},
|
|
10202
10257
|
Menu: {
|
|
10203
10258
|
mode: 'vertical',
|
|
@@ -21817,6 +21872,10 @@ var InternalTextarea = function InternalTextarea(props, ref) {
|
|
|
21817
21872
|
_useState6 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default()(_useState5, 2),
|
|
21818
21873
|
showNumberMark = _useState6[0],
|
|
21819
21874
|
setShowNumberMark = _useState6[1];
|
|
21875
|
+
var _useState7 = Object(react__WEBPACK_IMPORTED_MODULE_7__["useState"])(false),
|
|
21876
|
+
_useState8 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default()(_useState7, 2),
|
|
21877
|
+
numberMarkError = _useState8[0],
|
|
21878
|
+
setNumberMarkError = _useState8[1];
|
|
21820
21879
|
var resizeTextarea = Object(react__WEBPACK_IMPORTED_MODULE_7__["useCallback"])(function () {
|
|
21821
21880
|
if (!autoSize || !textareaRef.current) {
|
|
21822
21881
|
return;
|
|
@@ -21865,21 +21924,25 @@ var InternalTextarea = function InternalTextarea(props, ref) {
|
|
|
21865
21924
|
onChange && onChange(event);
|
|
21866
21925
|
};
|
|
21867
21926
|
var renderNumberMark = function renderNumberMark() {
|
|
21868
|
-
|
|
21869
|
-
|
|
21870
|
-
|
|
21871
|
-
}
|
|
21872
|
-
if (count && showNumberMark && !disabled && maxLength !== '' && maxLength >= 0) {
|
|
21873
|
-
var countClass = classnames__WEBPACK_IMPORTED_MODULE_8___default()("".concat(textAreaPrefixCls, "-textarea-mark"), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, "".concat(textAreaPrefixCls, "-textarea-mark-inner"), countPosition === 'inner'));
|
|
21927
|
+
if (count && (showNumberMark || numberMarkError) && !disabled && maxLength !== '' && maxLength >= 0) {
|
|
21928
|
+
var _classNames;
|
|
21929
|
+
var countClass = classnames__WEBPACK_IMPORTED_MODULE_8___default()("".concat(textAreaPrefixCls, "-textarea-mark"), (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(textAreaPrefixCls, "-textarea-mark-inner"), countPosition === 'inner'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(textAreaPrefixCls, "-textarea-mark-error"), numberMarkError), _classNames));
|
|
21874
21930
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div", {
|
|
21875
21931
|
className: countClass
|
|
21876
|
-
},
|
|
21932
|
+
}, value ? value.length : 0, "/", maxLength);
|
|
21877
21933
|
}
|
|
21878
21934
|
return null;
|
|
21879
21935
|
};
|
|
21880
21936
|
Object(react__WEBPACK_IMPORTED_MODULE_7__["useEffect"])(function () {
|
|
21881
21937
|
resizeTextarea();
|
|
21882
21938
|
}, [value, resizeTextarea]);
|
|
21939
|
+
Object(react__WEBPACK_IMPORTED_MODULE_7__["useEffect"])(function () {
|
|
21940
|
+
if (value && maxLength && value.length > maxLength) {
|
|
21941
|
+
setNumberMarkError(true);
|
|
21942
|
+
} else {
|
|
21943
|
+
setNumberMarkError(false);
|
|
21944
|
+
}
|
|
21945
|
+
}, [value]);
|
|
21883
21946
|
Object(react__WEBPACK_IMPORTED_MODULE_7__["useEffect"])(function () {
|
|
21884
21947
|
if (propsValue !== undefined) {
|
|
21885
21948
|
setValue(propsValue);
|
|
@@ -21921,7 +21984,7 @@ var InternalTextarea = function InternalTextarea(props, ref) {
|
|
|
21921
21984
|
ref: textareaRef,
|
|
21922
21985
|
disabled: disabled,
|
|
21923
21986
|
style: _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, textareaStyles, hadCount || !!allowClear ? otherStyles : style),
|
|
21924
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_8___default()("".concat(prefixCls, "-textarea"), (_classNames2 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-borderless"), borderType === 'none'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-underline"), borderType === 'underline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-no-resize"), canResize !== true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-allowClear-spacing"), !!allowClear), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-error"), status === 'error'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _classNames2), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, className, className && !allowClear && !hadCount)),
|
|
21987
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_8___default()("".concat(prefixCls, "-textarea"), (_classNames2 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-borderless"), borderType === 'none'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-underline"), borderType === 'underline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-no-resize"), canResize !== true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-allowClear-spacing"), !!allowClear), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-error"), status === 'error' || numberMarkError), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _classNames2), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, className, className && !allowClear && !hadCount)),
|
|
21925
21988
|
onChange: handleChange,
|
|
21926
21989
|
onFocus: !disabled ? handleFocus : undefined,
|
|
21927
21990
|
onBlur: !disabled ? handleBlur : undefined,
|
|
@@ -24796,7 +24859,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24796
24859
|
|
|
24797
24860
|
|
|
24798
24861
|
|
|
24799
|
-
var _excluded = ["body", "bodyClassName", "bodyStyle", "cancelButtonProps", "cancelText", "className", "closable", "closeIcon", "destroyOnClose", "draggable", "focusTriggerAfterClose", "footer", "footerClassName", "footerStyle", "footerBtnOrder", "getContainer", "height", "keyboard", "mask", "maskClosable", "maskStyle", "maskClassName", "okButtonProps", "okText", "onCancel", "onOk", "prefixCls", "title", "titleIcon", "type", "visible", "width", "showline", "onDragStart", "onDrag", "onDragStop", "bounds", "overroll"];
|
|
24862
|
+
var _excluded = ["body", "bodyClassName", "bodyStyle", "cancelButtonProps", "cancelText", "className", "closable", "closeIcon", "destroyOnClose", "draggable", "focusTriggerAfterClose", "footer", "footerClassName", "footerStyle", "footerBtnOrder", "getContainer", "height", "keyboard", "mask", "maskClosable", "maskStyle", "maskClassName", "okButtonProps", "okText", "onCancel", "onOk", "prefixCls", "title", "titleIcon", "type", "visible", "width", "showline", "onDragStart", "onDrag", "onDragStop", "bounds", "overroll", "resizable"];
|
|
24800
24863
|
|
|
24801
24864
|
|
|
24802
24865
|
|
|
@@ -24813,6 +24876,28 @@ var _excluded = ["body", "bodyClassName", "bodyStyle", "cancelButtonProps", "can
|
|
|
24813
24876
|
|
|
24814
24877
|
var ConfirmModalTypes = ['confirm', 'normal'];
|
|
24815
24878
|
var ModalTypes = Object(_utils_type__WEBPACK_IMPORTED_MODULE_10__["tuple"])('confirm', 'warning', 'error', 'normal');
|
|
24879
|
+
var DragDirection;
|
|
24880
|
+
(function (DragDirection) {
|
|
24881
|
+
DragDirection["N"] = "n";
|
|
24882
|
+
DragDirection["E"] = "e";
|
|
24883
|
+
DragDirection["S"] = "s";
|
|
24884
|
+
DragDirection["W"] = "w";
|
|
24885
|
+
DragDirection["NE"] = "ne";
|
|
24886
|
+
DragDirection["NW"] = "nw";
|
|
24887
|
+
DragDirection["SE"] = "se";
|
|
24888
|
+
DragDirection["SW"] = "sw";
|
|
24889
|
+
})(DragDirection || (DragDirection = {}));
|
|
24890
|
+
var initPosition = {
|
|
24891
|
+
initialX: 0,
|
|
24892
|
+
initialY: 0,
|
|
24893
|
+
initialWidth: 0,
|
|
24894
|
+
initialHeight: 0,
|
|
24895
|
+
top: 0,
|
|
24896
|
+
left: 0,
|
|
24897
|
+
x: 0,
|
|
24898
|
+
y: 0,
|
|
24899
|
+
type: null
|
|
24900
|
+
};
|
|
24816
24901
|
var InternalModal = function InternalModal(props, ref) {
|
|
24817
24902
|
var _classNames3, _classNames4;
|
|
24818
24903
|
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_6__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
@@ -24858,12 +24943,14 @@ var InternalModal = function InternalModal(props, ref) {
|
|
|
24858
24943
|
onDragStop = modalProps.onDragStop,
|
|
24859
24944
|
bounds = modalProps.bounds,
|
|
24860
24945
|
overroll = modalProps.overroll,
|
|
24946
|
+
resizable = modalProps.resizable,
|
|
24861
24947
|
others = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default()(modalProps, _excluded);
|
|
24862
24948
|
var isForceController = visible !== undefined;
|
|
24863
24949
|
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_6__["useState"])(isForceController ? visible : true),
|
|
24864
24950
|
_useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_useState, 2),
|
|
24865
24951
|
innerVisible = _useState2[0],
|
|
24866
24952
|
setInnerVisible = _useState2[1]; // 需要根据visible来判断,不能一开始为true再去设置false
|
|
24953
|
+
|
|
24867
24954
|
var previousActiveElement = Object(react__WEBPACK_IMPORTED_MODULE_6__["useRef"])(null);
|
|
24868
24955
|
var innerRef = Object(react__WEBPACK_IMPORTED_MODULE_6__["useRef"])(null);
|
|
24869
24956
|
var wrapperRef = Object(react__WEBPACK_IMPORTED_MODULE_6__["useRef"])(null);
|
|
@@ -24879,6 +24966,16 @@ var InternalModal = function InternalModal(props, ref) {
|
|
|
24879
24966
|
}
|
|
24880
24967
|
modalContainer = document.body;
|
|
24881
24968
|
}
|
|
24969
|
+
var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_6__["useState"])(modalContainer && !overroll ? {
|
|
24970
|
+
x: -(width / 2),
|
|
24971
|
+
y: -(height / 2)
|
|
24972
|
+
} : {
|
|
24973
|
+
x: 0,
|
|
24974
|
+
y: 0
|
|
24975
|
+
}),
|
|
24976
|
+
_useState4 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_useState3, 2),
|
|
24977
|
+
position = _useState4[0],
|
|
24978
|
+
setPosition = _useState4[1];
|
|
24882
24979
|
Object(_utils_hooks__WEBPACK_IMPORTED_MODULE_17__["useHideDocumentScrollBar"])(isForceController ? !!visible : !!innerVisible, modalContainer === document.body, !!mask);
|
|
24883
24980
|
var closeModal = Object(react__WEBPACK_IMPORTED_MODULE_6__["useCallback"])(function () {
|
|
24884
24981
|
setInnerVisible(false);
|
|
@@ -24968,6 +25065,153 @@ var InternalModal = function InternalModal(props, ref) {
|
|
|
24968
25065
|
document.body.removeEventListener('keydown', escapeToCloseModal);
|
|
24969
25066
|
};
|
|
24970
25067
|
}, [keyboard, escapeToCloseModal, proxyCloseModal, onCancel]);
|
|
25068
|
+
var isResizing = false;
|
|
25069
|
+
var initPositionRef = Object(react__WEBPACK_IMPORTED_MODULE_6__["useRef"])(initPosition);
|
|
25070
|
+
var startResize = Object(react__WEBPACK_IMPORTED_MODULE_6__["useCallback"])(function (event) {
|
|
25071
|
+
var targetElement = event.target;
|
|
25072
|
+
if (!targetElement.classList.contains("".concat(modalPrefixCls, "-resise-handle")) || !containerRef.current) {
|
|
25073
|
+
return;
|
|
25074
|
+
}
|
|
25075
|
+
var _containerRef$current = containerRef.current.getBoundingClientRect(),
|
|
25076
|
+
initialWidth = _containerRef$current.width,
|
|
25077
|
+
initialHeight = _containerRef$current.height,
|
|
25078
|
+
top = _containerRef$current.top,
|
|
25079
|
+
left = _containerRef$current.left;
|
|
25080
|
+
initPositionRef.current = {
|
|
25081
|
+
initialX: event.clientX,
|
|
25082
|
+
initialY: event.clientY,
|
|
25083
|
+
initialWidth: initialWidth,
|
|
25084
|
+
initialHeight: initialHeight,
|
|
25085
|
+
top: top,
|
|
25086
|
+
left: left,
|
|
25087
|
+
x: position.x,
|
|
25088
|
+
y: position.y,
|
|
25089
|
+
type: targetElement.dataset.type
|
|
25090
|
+
};
|
|
25091
|
+
event.preventDefault();
|
|
25092
|
+
isResizing = true;
|
|
25093
|
+
if (overroll && wrapperRef.current) {
|
|
25094
|
+
wrapperRef.current.classList.add("".concat(modalPrefixCls, "-wrapper-resizable"));
|
|
25095
|
+
setPosition({
|
|
25096
|
+
x: left,
|
|
25097
|
+
y: top
|
|
25098
|
+
});
|
|
25099
|
+
initPositionRef.current.x = left;
|
|
25100
|
+
initPositionRef.current.y = top;
|
|
25101
|
+
}
|
|
25102
|
+
document.addEventListener('mousemove', resize);
|
|
25103
|
+
document.addEventListener('mouseup', stopResize);
|
|
25104
|
+
}, [position]);
|
|
25105
|
+
Object(react__WEBPACK_IMPORTED_MODULE_6__["useEffect"])(function () {
|
|
25106
|
+
if (containerRef.current && visible) {
|
|
25107
|
+
containerRef.current.addEventListener('mousedown', startResize);
|
|
25108
|
+
}
|
|
25109
|
+
return function () {
|
|
25110
|
+
if (containerRef.current) {
|
|
25111
|
+
containerRef.current.removeEventListener('mousedown', startResize);
|
|
25112
|
+
}
|
|
25113
|
+
};
|
|
25114
|
+
}, [containerRef, startResize, visible]);
|
|
25115
|
+
var resize = function resize(event) {
|
|
25116
|
+
if (!containerRef.current) return;
|
|
25117
|
+
if (!isResizing || !containerRef.current) return;
|
|
25118
|
+
var _initPositionRef$curr = initPositionRef.current,
|
|
25119
|
+
initialX = _initPositionRef$curr.initialX,
|
|
25120
|
+
initialY = _initPositionRef$curr.initialY,
|
|
25121
|
+
initialHeight = _initPositionRef$curr.initialHeight,
|
|
25122
|
+
initialWidth = _initPositionRef$curr.initialWidth,
|
|
25123
|
+
y = _initPositionRef$curr.y,
|
|
25124
|
+
x = _initPositionRef$curr.x,
|
|
25125
|
+
type = _initPositionRef$curr.type;
|
|
25126
|
+
var curNHeight = initialY - event.clientY;
|
|
25127
|
+
var curSHeight = -curNHeight;
|
|
25128
|
+
var curEWidth = event.clientX - initialX;
|
|
25129
|
+
var curWWidth = -curEWidth;
|
|
25130
|
+
switch (type) {
|
|
25131
|
+
case DragDirection.N:
|
|
25132
|
+
{
|
|
25133
|
+
containerRef.current.style.height = "".concat(curNHeight + initialHeight, "px");
|
|
25134
|
+
setPosition(function (pre) {
|
|
25135
|
+
return {
|
|
25136
|
+
y: y - curNHeight,
|
|
25137
|
+
x: pre.x
|
|
25138
|
+
};
|
|
25139
|
+
});
|
|
25140
|
+
break;
|
|
25141
|
+
}
|
|
25142
|
+
case DragDirection.E:
|
|
25143
|
+
{
|
|
25144
|
+
containerRef.current.style.width = "".concat(curEWidth + initialWidth, "px");
|
|
25145
|
+
break;
|
|
25146
|
+
}
|
|
25147
|
+
case DragDirection.S:
|
|
25148
|
+
{
|
|
25149
|
+
containerRef.current.style.height = "".concat(curSHeight + initialHeight, "px");
|
|
25150
|
+
break;
|
|
25151
|
+
}
|
|
25152
|
+
case DragDirection.W:
|
|
25153
|
+
{
|
|
25154
|
+
containerRef.current.style.width = "".concat(curWWidth + initialWidth, "px");
|
|
25155
|
+
setPosition(function (pre) {
|
|
25156
|
+
return {
|
|
25157
|
+
y: pre.y,
|
|
25158
|
+
x: x - curWWidth
|
|
25159
|
+
};
|
|
25160
|
+
});
|
|
25161
|
+
break;
|
|
25162
|
+
}
|
|
25163
|
+
case DragDirection.NE:
|
|
25164
|
+
{
|
|
25165
|
+
containerRef.current.style.height = "".concat(curNHeight + initialHeight, "px");
|
|
25166
|
+
containerRef.current.style.width = "".concat(curEWidth + initialWidth, "px");
|
|
25167
|
+
setPosition(function (pre) {
|
|
25168
|
+
return {
|
|
25169
|
+
y: y - curNHeight,
|
|
25170
|
+
x: pre.x
|
|
25171
|
+
};
|
|
25172
|
+
});
|
|
25173
|
+
break;
|
|
25174
|
+
}
|
|
25175
|
+
case DragDirection.NW:
|
|
25176
|
+
{
|
|
25177
|
+
containerRef.current.style.height = "".concat(curNHeight + initialHeight, "px");
|
|
25178
|
+
containerRef.current.style.width = "".concat(curWWidth + initialWidth, "px");
|
|
25179
|
+
setPosition({
|
|
25180
|
+
y: y - curNHeight,
|
|
25181
|
+
x: x - curWWidth
|
|
25182
|
+
});
|
|
25183
|
+
break;
|
|
25184
|
+
}
|
|
25185
|
+
case DragDirection.SE:
|
|
25186
|
+
{
|
|
25187
|
+
containerRef.current.style.height = "".concat(curSHeight + initialHeight, "px");
|
|
25188
|
+
containerRef.current.style.width = "".concat(curEWidth + initialWidth, "px");
|
|
25189
|
+
break;
|
|
25190
|
+
}
|
|
25191
|
+
case DragDirection.SW:
|
|
25192
|
+
{
|
|
25193
|
+
containerRef.current.style.width = "".concat(curWWidth + initialWidth, "px");
|
|
25194
|
+
containerRef.current.style.height = "".concat(curSHeight + initialHeight, "px");
|
|
25195
|
+
setPosition(function (pre) {
|
|
25196
|
+
return {
|
|
25197
|
+
y: pre.y,
|
|
25198
|
+
x: x - curWWidth
|
|
25199
|
+
};
|
|
25200
|
+
});
|
|
25201
|
+
break;
|
|
25202
|
+
}
|
|
25203
|
+
default:
|
|
25204
|
+
{
|
|
25205
|
+
break;
|
|
25206
|
+
}
|
|
25207
|
+
}
|
|
25208
|
+
};
|
|
25209
|
+
var stopResize = function stopResize() {
|
|
25210
|
+
isResizing = false;
|
|
25211
|
+
initPositionRef.current = initPosition;
|
|
25212
|
+
document.removeEventListener('mousemove', resize);
|
|
25213
|
+
document.removeEventListener('mouseup', stopResize);
|
|
25214
|
+
};
|
|
24971
25215
|
var handleMaskClick = Object(react__WEBPACK_IMPORTED_MODULE_6__["useCallback"])(function () {
|
|
24972
25216
|
if (maskClosable) {
|
|
24973
25217
|
proxyCloseModal(onCancel);
|
|
@@ -24990,7 +25234,31 @@ var InternalModal = function InternalModal(props, ref) {
|
|
|
24990
25234
|
ref: containerRef,
|
|
24991
25235
|
tabIndex: -1,
|
|
24992
25236
|
onKeyDown: enterToCloseModal
|
|
24993
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", {
|
|
25237
|
+
}, resizable && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_6___default.a.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", {
|
|
25238
|
+
"data-type": "n",
|
|
25239
|
+
className: "".concat(modalPrefixCls, "-resise-handle ").concat(modalPrefixCls, "-resise-n")
|
|
25240
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", {
|
|
25241
|
+
"data-type": "e",
|
|
25242
|
+
className: "".concat(modalPrefixCls, "-resise-handle ").concat(modalPrefixCls, "-resise-e")
|
|
25243
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", {
|
|
25244
|
+
"data-type": "s",
|
|
25245
|
+
className: "".concat(modalPrefixCls, "-resise-handle ").concat(modalPrefixCls, "-resise-s")
|
|
25246
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", {
|
|
25247
|
+
"data-type": "w",
|
|
25248
|
+
className: "".concat(modalPrefixCls, "-resise-handle ").concat(modalPrefixCls, "-resise-w")
|
|
25249
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", {
|
|
25250
|
+
"data-type": "ne",
|
|
25251
|
+
className: "".concat(modalPrefixCls, "-resise-handle ").concat(modalPrefixCls, "-resise-ne")
|
|
25252
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", {
|
|
25253
|
+
"data-type": "se",
|
|
25254
|
+
className: "".concat(modalPrefixCls, "-resise-handle ").concat(modalPrefixCls, "-resise-se")
|
|
25255
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", {
|
|
25256
|
+
"data-type": "sw",
|
|
25257
|
+
className: "".concat(modalPrefixCls, "-resise-handle ").concat(modalPrefixCls, "-resise-sw")
|
|
25258
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", {
|
|
25259
|
+
"data-type": "nw",
|
|
25260
|
+
className: "".concat(modalPrefixCls, "-resise-handle ").concat(modalPrefixCls, "-resise-nw")
|
|
25261
|
+
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", {
|
|
24994
25262
|
className: headerClass
|
|
24995
25263
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", {
|
|
24996
25264
|
className: "".concat(modalPrefixCls, "-title-container")
|
|
@@ -25019,12 +25287,12 @@ var InternalModal = function InternalModal(props, ref) {
|
|
|
25019
25287
|
var handleDragStart = function handleDragStart(e, data) {
|
|
25020
25288
|
onDragStart === null || onDragStart === void 0 ? void 0 : onDragStart(e, data);
|
|
25021
25289
|
};
|
|
25022
|
-
var
|
|
25023
|
-
|
|
25024
|
-
|
|
25025
|
-
|
|
25026
|
-
|
|
25027
|
-
|
|
25290
|
+
var handleDrag = function handleDrag(e, ui) {
|
|
25291
|
+
setPosition({
|
|
25292
|
+
x: ui.x,
|
|
25293
|
+
y: ui.y
|
|
25294
|
+
});
|
|
25295
|
+
onDrag === null || onDrag === void 0 ? void 0 : onDrag(e, ui);
|
|
25028
25296
|
};
|
|
25029
25297
|
var comp = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
|
|
25030
25298
|
className: modalClasses
|
|
@@ -25036,27 +25304,24 @@ var InternalModal = function InternalModal(props, ref) {
|
|
|
25036
25304
|
tabIndex: -1,
|
|
25037
25305
|
className: classnames__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, "".concat(modalPrefixCls, "-wrapper"), modalContainer && ((isForceController ? visible : innerVisible) || !destroyOnClose))),
|
|
25038
25306
|
ref: wrapperRef,
|
|
25039
|
-
|
|
25307
|
+
onMouseDown: handleWrapperClick
|
|
25040
25308
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", {
|
|
25041
25309
|
className: "".concat(modalPrefixCls, "-dialog")
|
|
25042
25310
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_draggable__WEBPACK_IMPORTED_MODULE_15___default.a, {
|
|
25043
|
-
|
|
25044
|
-
x: 0,
|
|
25045
|
-
y: 0
|
|
25046
|
-
},
|
|
25311
|
+
position: position,
|
|
25047
25312
|
handle: ".".concat(headerClass),
|
|
25048
25313
|
disabled: !draggable,
|
|
25049
25314
|
onStart: handleDragStart,
|
|
25050
|
-
onDrag:
|
|
25315
|
+
onDrag: handleDrag,
|
|
25051
25316
|
onStop: onDragStop,
|
|
25052
25317
|
bounds: bounds,
|
|
25053
25318
|
cancel: ".".concat(modalPrefixCls, "-title-container, .").concat(modalPrefixCls, "-close-icon")
|
|
25054
25319
|
}, container))) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_draggable__WEBPACK_IMPORTED_MODULE_15___default.a, {
|
|
25055
|
-
defaultPosition: defaultPosition,
|
|
25056
25320
|
handle: ".".concat(headerClass),
|
|
25057
25321
|
disabled: !draggable,
|
|
25322
|
+
position: position,
|
|
25058
25323
|
onStart: handleDragStart,
|
|
25059
|
-
onDrag:
|
|
25324
|
+
onDrag: handleDrag,
|
|
25060
25325
|
onStop: onDragStop,
|
|
25061
25326
|
bounds: bounds,
|
|
25062
25327
|
cancel: ".".concat(modalPrefixCls, "-title-container, .").concat(modalPrefixCls, "-close-icon")
|
|
@@ -25250,6 +25515,7 @@ var Notice = function Notice(props) {
|
|
|
25250
25515
|
key = noticeProps.key;
|
|
25251
25516
|
var noticePrefixCls = getPrefixCls(prefixCls, suffixCls, customPrefixcls);
|
|
25252
25517
|
var timer = null;
|
|
25518
|
+
var isTransition = false;
|
|
25253
25519
|
var noticeRef = Object(react__WEBPACK_IMPORTED_MODULE_2__["useRef"])();
|
|
25254
25520
|
var noticeClasses = classnames__WEBPACK_IMPORTED_MODULE_3___default()(noticePrefixCls, className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(noticePrefixCls, "-").concat(type), type), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(noticePrefixCls, "-closable"), closable), _classNames));
|
|
25255
25521
|
var animationEvent = function animationEvent() {
|
|
@@ -25258,7 +25524,10 @@ var Notice = function Notice(props) {
|
|
|
25258
25524
|
(_noticeRef$current2 = noticeRef.current) === null || _noticeRef$current2 === void 0 ? void 0 : _noticeRef$current2.classList.add("".concat(noticePrefixCls, "-leave-after"));
|
|
25259
25525
|
};
|
|
25260
25526
|
var transitionEvent = function transitionEvent() {
|
|
25261
|
-
|
|
25527
|
+
if (!isTransition) {
|
|
25528
|
+
onClose && onClose(key);
|
|
25529
|
+
}
|
|
25530
|
+
isTransition = true;
|
|
25262
25531
|
};
|
|
25263
25532
|
var clearEventListener = function clearEventListener() {
|
|
25264
25533
|
var _noticeRef$current3, _noticeRef$current4;
|
|
@@ -25267,6 +25536,7 @@ var Notice = function Notice(props) {
|
|
|
25267
25536
|
};
|
|
25268
25537
|
var handleClose = function handleClose() {
|
|
25269
25538
|
var _noticeRef$current5, _noticeRef$current6, _noticeRef$current7;
|
|
25539
|
+
isTransition = false;
|
|
25270
25540
|
(_noticeRef$current5 = noticeRef.current) === null || _noticeRef$current5 === void 0 ? void 0 : _noticeRef$current5.classList.add("".concat(noticePrefixCls, "-leave"));
|
|
25271
25541
|
(_noticeRef$current6 = noticeRef.current) === null || _noticeRef$current6 === void 0 ? void 0 : _noticeRef$current6.addEventListener('animationend', animationEvent);
|
|
25272
25542
|
(_noticeRef$current7 = noticeRef.current) === null || _noticeRef$current7 === void 0 ? void 0 : _noticeRef$current7.addEventListener('transitionend', transitionEvent);
|
|
@@ -29096,21 +29366,50 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29096
29366
|
/*!*************************************!*\
|
|
29097
29367
|
!*** ./components/select/index.tsx ***!
|
|
29098
29368
|
\*************************************/
|
|
29099
|
-
/*! exports provided: default */
|
|
29369
|
+
/*! exports provided: SelectSizes, BorderTypes, Modes, default */
|
|
29100
29370
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29101
29371
|
|
|
29102
29372
|
"use strict";
|
|
29103
29373
|
__webpack_require__.r(__webpack_exports__);
|
|
29104
29374
|
/* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./select */ "./components/select/select.tsx");
|
|
29105
29375
|
/* harmony import */ var _option__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./option */ "./components/select/option.tsx");
|
|
29376
|
+
/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./interface */ "./components/select/interface.tsx");
|
|
29377
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectSizes", function() { return _interface__WEBPACK_IMPORTED_MODULE_2__["SelectSizes"]; });
|
|
29378
|
+
|
|
29379
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BorderTypes", function() { return _interface__WEBPACK_IMPORTED_MODULE_2__["BorderTypes"]; });
|
|
29380
|
+
|
|
29381
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Modes", function() { return _interface__WEBPACK_IMPORTED_MODULE_2__["Modes"]; });
|
|
29382
|
+
|
|
29106
29383
|
|
|
29107
29384
|
|
|
29108
29385
|
var Select = _select__WEBPACK_IMPORTED_MODULE_0__["default"];
|
|
29109
29386
|
Select.Option = _option__WEBPACK_IMPORTED_MODULE_1__["default"];
|
|
29387
|
+
|
|
29110
29388
|
/* harmony default export */ __webpack_exports__["default"] = (Select);
|
|
29111
29389
|
|
|
29112
29390
|
/***/ }),
|
|
29113
29391
|
|
|
29392
|
+
/***/ "./components/select/interface.tsx":
|
|
29393
|
+
/*!*****************************************!*\
|
|
29394
|
+
!*** ./components/select/interface.tsx ***!
|
|
29395
|
+
\*****************************************/
|
|
29396
|
+
/*! exports provided: SelectSizes, BorderTypes, Modes */
|
|
29397
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29398
|
+
|
|
29399
|
+
"use strict";
|
|
29400
|
+
__webpack_require__.r(__webpack_exports__);
|
|
29401
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectSizes", function() { return SelectSizes; });
|
|
29402
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BorderTypes", function() { return BorderTypes; });
|
|
29403
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Modes", function() { return Modes; });
|
|
29404
|
+
/* harmony import */ var _utils_type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_utils/type */ "./components/_utils/type.ts");
|
|
29405
|
+
|
|
29406
|
+
var SelectSizes = Object(_utils_type__WEBPACK_IMPORTED_MODULE_0__["tuple"])('large', 'middle', 'small'); // 选择框大小
|
|
29407
|
+
|
|
29408
|
+
var BorderTypes = Object(_utils_type__WEBPACK_IMPORTED_MODULE_0__["tuple"])('none', 'underline', 'bordered');
|
|
29409
|
+
var Modes = Object(_utils_type__WEBPACK_IMPORTED_MODULE_0__["tuple"])('multiple', 'single');
|
|
29410
|
+
|
|
29411
|
+
/***/ }),
|
|
29412
|
+
|
|
29114
29413
|
/***/ "./components/select/option.tsx":
|
|
29115
29414
|
/*!**************************************!*\
|
|
29116
29415
|
!*** ./components/select/option.tsx ***!
|