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