@titaui/pc 1.16.29-beta.1 → 1.16.29-beta.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.
|
@@ -117,7 +117,8 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
117
117
|
targetOffset: [0, 0]
|
|
118
118
|
} : _props$popupAlign,
|
|
119
119
|
_props$enableDimissio = props.enableDimissionSwitch,
|
|
120
|
-
enableDimissionSwitch = _props$enableDimissio === void 0 ? false : _props$enableDimissio
|
|
120
|
+
enableDimissionSwitch = _props$enableDimissio === void 0 ? false : _props$enableDimissio,
|
|
121
|
+
staffStatusDefault = props.staffStatusDefault;
|
|
121
122
|
|
|
122
123
|
var _useState = (0, _react.useState)([]),
|
|
123
124
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -129,7 +130,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
129
130
|
selectedText = _useState4[0],
|
|
130
131
|
setSelectedText = _useState4[1];
|
|
131
132
|
|
|
132
|
-
var _useState5 = (0, _react.useState)(_enum.StaffStatus.OnTheJob),
|
|
133
|
+
var _useState5 = (0, _react.useState)((staffStatusDefault === null || staffStatusDefault === void 0 ? void 0 : staffStatusDefault.toString()) || _enum.StaffStatus.OnTheJob),
|
|
133
134
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
134
135
|
staffStatus = _useState6[0],
|
|
135
136
|
setStaffStatus = _useState6[1];
|