@zgfe/business-lib 1.0.21-cdp.22 → 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/index.js +2 -5
- 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/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
|
|
|
@@ -87,11 +88,7 @@ var BizSelect = function BizSelect(props) {
|
|
|
87
88
|
};
|
|
88
89
|
}, []);
|
|
89
90
|
useEffect(function () {
|
|
90
|
-
if (!props.value)
|
|
91
|
-
setCurrent(undefined);
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
|
|
91
|
+
if (!props.value) return;
|
|
95
92
|
setCurrent(getValue(props.value));
|
|
96
93
|
}, [props.value]);
|
|
97
94
|
|
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
|
}
|