@steedos-widgets/sortable 3.6.11-beta.6 → 3.6.11-beta.7

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.
@@ -24624,7 +24624,6 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
24624
24624
  // 等升级到amis 3.4+,blur事件换成change事件执行onChangeScript,就可以不用在onSearchScript中执行onChangeScript了
24625
24625
  // 基于amis3.6,已经不再用blur事件触发onChangeScript,所以这里把之前加上的onChangeScript去掉了,如果以后还要换blur来触发onChangeScript脚本的话,这里又要加回onChangeScript脚本
24626
24626
  const onSearchScript = `
24627
- // console.log("==search=onSearchScript===");
24628
24627
  // 下面的脚本只为解决点击搜索表单取消按钮,再重新在其中输入过滤条件但是不点击搜索按钮或回车按键触发搜索,此时在快速搜索框输入过滤条件按回车按键会把搜索表单中的过滤条件清空的问题
24629
24628
  const scope = event.context.scoped;
24630
24629
  // 如果点击过顶部搜索栏表单的取消按钮,会把此处event.data.__super.__super.__super中的搜索表单项的所有字段设置为null
@@ -24645,13 +24644,15 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
24645
24644
  }, 500);
24646
24645
  `;
24647
24646
 
24648
- const onBlurScript = `
24649
- // console.log("==search=onBlurScript===");
24650
- // 失去焦点事件触发搜索
24651
- const scope = event.context.scoped;
24652
- const sb = SteedosUI.getClosestAmisComponentByType(scope, "search-box");
24653
- sb.handleSearch();
24654
- `;
24647
+ // const onBlurScript = `
24648
+ // // 失去焦点事件触发搜索,先去掉,因为会有bug,见:[Bug]: 列表上快速搜索输入框输入内容后点击放大镜界面上列表未显示过滤后的内容 #6742
24649
+ // const value = event.data.value;
24650
+ // setTimeout(function(){
24651
+ // const scope = event.context.scoped;
24652
+ // const sb = SteedosUI.getClosestAmisComponentByType(scope, "search-box");
24653
+ // sb.handleSearch(value);
24654
+ // }, 500);
24655
+ // `;
24655
24656
 
24656
24657
  return {
24657
24658
  "type": "tooltip-wrapper",
@@ -24690,14 +24691,14 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
24690
24691
  },
24691
24692
  ]
24692
24693
  },
24693
- "blur": {
24694
- "actions": [
24695
- {
24696
- "actionType": "custom",
24697
- "script": onBlurScript
24698
- },
24699
- ]
24700
- }
24694
+ // "blur": {
24695
+ // "actions": [
24696
+ // {
24697
+ // "actionType": "custom",
24698
+ // "script": onBlurScript
24699
+ // },
24700
+ // ]
24701
+ // }
24701
24702
  }
24702
24703
  }
24703
24704
  ]
@@ -24730,13 +24731,10 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
24730
24731
  // listView.handleChangePage(1);
24731
24732
 
24732
24733
 
24733
- // 触发搜索,而不是reload,因为快速搜索输入框失去焦点已经会触发搜索了,这里用reload的话,会有bug
24734
- // 不加setTimeout的话,快速搜索输入框失去焦点再触发此脚本还是有问题
24735
- setTimeout(function(){
24736
- const scope = event.context.scoped;
24737
- const sb = SteedosUI.getClosestAmisComponentByType(scope, "search-box");
24738
- sb.handleSearch();
24739
- }, 500);
24734
+ // 触发搜索,而不是reload,因为使用search-box可以在amissdk是3.6.3-patch.8+实现快速搜索输入框中过滤条件变更时再点刷新可以自动跳转到第一页面
24735
+ const scope = event.context.scoped;
24736
+ const sb = SteedosUI.getClosestAmisComponentByType(scope, "search-box");
24737
+ sb.handleSearch();
24740
24738
  `;
24741
24739
  toolbarReloadButton = {
24742
24740
  // "type": "reload",//不可以直接使用reload,因为它不会设置页码到第一页,这在加载更多按钮的翻页模式下会有问题
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos-widgets/sortable",
3
- "version": "3.6.11-beta.6",
3
+ "version": "3.6.11-beta.7",
4
4
  "main": "dist/sortable.cjs.js",
5
5
  "module": "dist/sortable.esm.js",
6
6
  "unpkg": "dist/sortable.umd.js",
@@ -45,7 +45,7 @@
45
45
  "dependencies": {
46
46
  "@dnd-kit/core": "^6.0.5",
47
47
  "@dnd-kit/sortable": "^7.0.1",
48
- "@steedos-widgets/amis-lib": "3.6.11-beta.6"
48
+ "@steedos-widgets/amis-lib": "3.6.11-beta.7"
49
49
  },
50
- "gitHead": "ec28d2b74bc6d694fff7ee806b79faeffc459f0d"
50
+ "gitHead": "46c5199ed3fa9d1dc9ba82dfcfcad56e1638639e"
51
51
  }