sun-biz 0.0.4-beta.53 → 0.0.4-beta.54
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/components/index.js +7 -4
- package/dist/index.js +7 -4
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -7245,7 +7245,7 @@ const user_selectvue_type_script_lang_tsx_name_UserSelect_setup_true_hoisted_1 =
|
|
|
7245
7245
|
}
|
|
7246
7246
|
};
|
|
7247
7247
|
const user_selectvue_type_script_lang_tsx_name_UserSelect_setup_true_hoisted_2 = {
|
|
7248
|
-
class: "border-t
|
|
7248
|
+
class: "border-t px-2 pt-2"
|
|
7249
7249
|
};
|
|
7250
7250
|
// 全局事件:用于关闭其他实例的 popover
|
|
7251
7251
|
const CLOSE_OTHER_POPOVERS_EVENT = 'user-select:close-others'; /*
|
|
@@ -7438,7 +7438,9 @@ const CLOSE_OTHER_POPOVERS_EVENT = 'user-select:close-others'; /*
|
|
|
7438
7438
|
label: item.userName,
|
|
7439
7439
|
value: item.userId
|
|
7440
7440
|
})); // 保留已选中的项,确保选中状态能正确回显
|
|
7441
|
-
|
|
7441
|
+
// 只有在非搜索状态下(没有关键字)才合并选中项,搜索时以搜索结果为准
|
|
7442
|
+
const isSearch = !!data?.keyWord;
|
|
7443
|
+
if (!isSearch && selectedRows.value?.length) {
|
|
7442
7444
|
const selectedList = selectedRows.value.map((item)=>({
|
|
7443
7445
|
...item,
|
|
7444
7446
|
userId: item.value || item.userId,
|
|
@@ -7450,7 +7452,7 @@ const CLOSE_OTHER_POPOVERS_EVENT = 'user-select:close-others'; /*
|
|
|
7450
7452
|
...list,
|
|
7451
7453
|
...selectedList
|
|
7452
7454
|
], 'userId');
|
|
7453
|
-
} else if (attrs.modelValue && Array.isArray(props.defaultValue) && props.defaultValue.length) {
|
|
7455
|
+
} else if (!isSearch && attrs.modelValue && Array.isArray(props.defaultValue) && props.defaultValue.length) {
|
|
7454
7456
|
const defaultList = props.defaultValue.map((item)=>({
|
|
7455
7457
|
...item,
|
|
7456
7458
|
userId: item.value || item.userId,
|
|
@@ -9453,7 +9455,8 @@ const FormUnitvue_type_script_setup_true_lang_ts_name_formUnit_hoisted_1 = {
|
|
|
9453
9455
|
class: "overflow-hidden"
|
|
9454
9456
|
};
|
|
9455
9457
|
const FormUnitvue_type_script_setup_true_lang_ts_name_formUnit_hoisted_2 = {
|
|
9456
|
-
key: 1
|
|
9458
|
+
key: 1,
|
|
9459
|
+
class: "text-base"
|
|
9457
9460
|
};
|
|
9458
9461
|
const DICT_SELECT = 'dictSelect';
|
|
9459
9462
|
/* ESM default export */ const FormUnitvue_type_script_setup_true_lang_ts_name_formUnit = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
|
package/dist/index.js
CHANGED
|
@@ -7914,7 +7914,7 @@ const user_selectvue_type_script_lang_tsx_name_UserSelect_setup_true_hoisted_1 =
|
|
|
7914
7914
|
}
|
|
7915
7915
|
};
|
|
7916
7916
|
const user_selectvue_type_script_lang_tsx_name_UserSelect_setup_true_hoisted_2 = {
|
|
7917
|
-
class: "border-t
|
|
7917
|
+
class: "border-t px-2 pt-2"
|
|
7918
7918
|
};
|
|
7919
7919
|
// 全局事件:用于关闭其他实例的 popover
|
|
7920
7920
|
const CLOSE_OTHER_POPOVERS_EVENT = 'user-select:close-others'; /*
|
|
@@ -8107,7 +8107,9 @@ const CLOSE_OTHER_POPOVERS_EVENT = 'user-select:close-others'; /*
|
|
|
8107
8107
|
label: item.userName,
|
|
8108
8108
|
value: item.userId
|
|
8109
8109
|
})); // 保留已选中的项,确保选中状态能正确回显
|
|
8110
|
-
|
|
8110
|
+
// 只有在非搜索状态下(没有关键字)才合并选中项,搜索时以搜索结果为准
|
|
8111
|
+
const isSearch = !!data?.keyWord;
|
|
8112
|
+
if (!isSearch && selectedRows.value?.length) {
|
|
8111
8113
|
const selectedList = selectedRows.value.map((item)=>({
|
|
8112
8114
|
...item,
|
|
8113
8115
|
userId: item.value || item.userId,
|
|
@@ -8119,7 +8121,7 @@ const CLOSE_OTHER_POPOVERS_EVENT = 'user-select:close-others'; /*
|
|
|
8119
8121
|
...list,
|
|
8120
8122
|
...selectedList
|
|
8121
8123
|
], 'userId');
|
|
8122
|
-
} else if (attrs.modelValue && Array.isArray(props.defaultValue) && props.defaultValue.length) {
|
|
8124
|
+
} else if (!isSearch && attrs.modelValue && Array.isArray(props.defaultValue) && props.defaultValue.length) {
|
|
8123
8125
|
const defaultList = props.defaultValue.map((item)=>({
|
|
8124
8126
|
...item,
|
|
8125
8127
|
userId: item.value || item.userId,
|
|
@@ -10395,7 +10397,8 @@ const FormUnitvue_type_script_setup_true_lang_ts_name_formUnit_hoisted_1 = {
|
|
|
10395
10397
|
class: "overflow-hidden"
|
|
10396
10398
|
};
|
|
10397
10399
|
const FormUnitvue_type_script_setup_true_lang_ts_name_formUnit_hoisted_2 = {
|
|
10398
|
-
key: 1
|
|
10400
|
+
key: 1,
|
|
10401
|
+
class: "text-base"
|
|
10399
10402
|
};
|
|
10400
10403
|
const DICT_SELECT = 'dictSelect';
|
|
10401
10404
|
/* ESM default export */ const FormUnitvue_type_script_setup_true_lang_ts_name_formUnit = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
|