@whitesev/pops 2.4.0 → 2.4.1

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.
@@ -10922,14 +10922,13 @@ var pops = (function () {
10922
10922
  for (let index = 0; index < 10; index++) {
10923
10923
  data.push({
10924
10924
  value: `测试${index}`,
10925
- text: `测试${index}-html`,
10926
10925
  enableDeleteButton: true,
10927
10926
  deleteButtonClickCallback(event, $dataItem, dataItem, config) {
10928
10927
  console.log("删除当前项", [event, $dataItem, dataItem, config]);
10929
10928
  return true;
10930
10929
  },
10931
10930
  itemView(dateItem, $parent) {
10932
- return dateItem.text;
10931
+ return `测试${index}-html`;
10933
10932
  },
10934
10933
  clickCallback(event, $dataItem, dataItem, config) {
10935
10934
  console.log("item项的点击回调", [event, $dataItem, data, config]);
@@ -11578,7 +11577,6 @@ var pops = (function () {
11578
11577
  // 需目标高度+搜索建议框高度大于文档高度,则显示在上面
11579
11578
  let targetBottom = targetRect.bottom;
11580
11579
  let searchSuggestionContainerHeight = popsDOMUtils.height(SearchSuggestion.$el.$hintULContainer);
11581
- console.log(targetBottom, searchSuggestionContainerHeight, targetBottom + searchSuggestionContainerHeight, documentHeight);
11582
11580
  if (targetBottom + searchSuggestionContainerHeight > documentHeight) {
11583
11581
  // 在上面
11584
11582
  position = "top";