@bit-sun/business-component 3.1.10-alpha.12 → 3.1.10-alpha.13
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/dist/index.esm.js
CHANGED
|
@@ -4468,7 +4468,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4468
4468
|
if (type === 1) {
|
|
4469
4469
|
var _ctx$form;
|
|
4470
4470
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(resultSourceKey, source);
|
|
4471
|
-
if (onlyOneDateSelected === true && source.length === 1) {
|
|
4471
|
+
if (onlyOneDateSelected === true && source.length === 1 && isNil(value)) {
|
|
4472
4472
|
var _ctx$form2;
|
|
4473
4473
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form2 = ctx.form) === null || _ctx$form2 === void 0 ? void 0 : _ctx$form2.setFieldValue(resultSourceKey, source[0]['value']);
|
|
4474
4474
|
}
|
package/dist/index.js
CHANGED
|
@@ -4491,7 +4491,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
4491
4491
|
if (type === 1) {
|
|
4492
4492
|
var _ctx$form;
|
|
4493
4493
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(resultSourceKey, source);
|
|
4494
|
-
if (onlyOneDateSelected === true && source.length === 1) {
|
|
4494
|
+
if (onlyOneDateSelected === true && source.length === 1 && _.isNil(value)) {
|
|
4495
4495
|
var _ctx$form2;
|
|
4496
4496
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form2 = ctx.form) === null || _ctx$form2 === void 0 ? void 0 : _ctx$form2.setFieldValue(resultSourceKey, source[0]['value']);
|
|
4497
4497
|
}
|
package/package.json
CHANGED
|
@@ -373,7 +373,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
373
373
|
} else {
|
|
374
374
|
if (type === 1) {
|
|
375
375
|
ctx?.form?.setFieldSource(resultSourceKey, source)
|
|
376
|
-
if (onlyOneDateSelected === true && source.length === 1) {
|
|
376
|
+
if (onlyOneDateSelected === true && source.length === 1 && isNil(value)) {
|
|
377
377
|
ctx?.form?.setFieldValue(resultSourceKey, source[0]['value']);
|
|
378
378
|
}
|
|
379
379
|
setItems(source)
|