@zgfe/business-lib 1.0.21-cdp.20 → 1.0.21-cdp.23
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/es/cycleTime/month.js +15 -1
- package/es/select/demo/index.js +0 -1
- package/es/select/index.js +1 -0
- package/es/select/overlay.js +3 -2
- package/es/select/types.d.ts +1 -0
- package/package.json +2 -2
package/es/cycleTime/month.js
CHANGED
|
@@ -73,6 +73,17 @@ var MonthDay = function MonthDay(props) {
|
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
function onDelMonthDay(day) {
|
|
77
|
+
setChosenDayList(function (list) {
|
|
78
|
+
var res = _.cloneDeep(list);
|
|
79
|
+
|
|
80
|
+
res.forEach(function (item, i) {
|
|
81
|
+
if (item.value === day.value) res.splice(i, 1);
|
|
82
|
+
});
|
|
83
|
+
return res;
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
|
|
76
87
|
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
77
88
|
overlay: /*#__PURE__*/React.createElement("div", {
|
|
78
89
|
className: "".concat(classPrefix, "-overlay")
|
|
@@ -99,7 +110,10 @@ var MonthDay = function MonthDay(props) {
|
|
|
99
110
|
}, chosenDayList.map(function (item) {
|
|
100
111
|
return /*#__PURE__*/React.createElement(Tag, {
|
|
101
112
|
closable: true,
|
|
102
|
-
key: item.value
|
|
113
|
+
key: item.value,
|
|
114
|
+
onClose: function onClose() {
|
|
115
|
+
onDelMonthDay(item);
|
|
116
|
+
}
|
|
103
117
|
}, item.label);
|
|
104
118
|
})), /*#__PURE__*/React.createElement(IconFont, {
|
|
105
119
|
type: "xiangxia"
|
package/es/select/demo/index.js
CHANGED
|
@@ -77,7 +77,6 @@ export default (function () {
|
|
|
77
77
|
keyField: "value",
|
|
78
78
|
enableSearch: true,
|
|
79
79
|
theme: "secondary",
|
|
80
|
-
popupContainer: true,
|
|
81
80
|
onChange: onChange,
|
|
82
81
|
disableItemList: disabledList,
|
|
83
82
|
dropdownExtra: /*#__PURE__*/React.createElement(Button, null, "+ \u6DFB\u52A0")
|
package/es/select/index.js
CHANGED
|
@@ -67,6 +67,7 @@ var BizSelect = function BizSelect(props) {
|
|
|
67
67
|
setWidth((boxRef === null || boxRef === void 0 ? void 0 : (_boxRef$current = boxRef.current) === null || _boxRef$current === void 0 ? void 0 : _boxRef$current.width) || 200);
|
|
68
68
|
|
|
69
69
|
if (props.defaultValue) {
|
|
70
|
+
console.log('>>>>>>初始化参数', props.defaultValue, getValue(props.defaultValue));
|
|
70
71
|
setCurrent(getValue(props.defaultValue));
|
|
71
72
|
}
|
|
72
73
|
|
package/es/select/overlay.js
CHANGED
|
@@ -28,7 +28,8 @@ var SelectOverlay = function SelectOverlay(props) {
|
|
|
28
28
|
disableItemList = props.disableItemList,
|
|
29
29
|
dropdownExtra = props.dropdownExtra,
|
|
30
30
|
loading = props.loading,
|
|
31
|
-
customLabel = props.customLabel
|
|
31
|
+
customLabel = props.customLabel,
|
|
32
|
+
overlayClassName = props.overlayClassName;
|
|
32
33
|
|
|
33
34
|
var _useState = useState(),
|
|
34
35
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -198,7 +199,7 @@ var SelectOverlay = function SelectOverlay(props) {
|
|
|
198
199
|
}
|
|
199
200
|
|
|
200
201
|
return /*#__PURE__*/React.createElement("div", {
|
|
201
|
-
className: "".concat(classPrefix, "-overlay")
|
|
202
|
+
className: "".concat(classPrefix, "-overlay ").concat(overlayClassName)
|
|
202
203
|
}, props.enableSearch && !props.multiple && /*#__PURE__*/React.createElement(BizSearchInput, {
|
|
203
204
|
className: "".concat(classPrefix, "-search"),
|
|
204
205
|
onChange: onSearch
|
package/es/select/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/business-lib",
|
|
3
|
-
"version": "1.0.21-cdp.
|
|
3
|
+
"version": "1.0.21-cdp.23",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"react": "^16.12.0 || ^17.0.0",
|
|
59
59
|
"yorkie": "^2.0.0"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "9f02adda4e59080b6be0b198794640af485b95bf"
|
|
62
62
|
}
|