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