@steedos-widgets/sortable 6.3.2 → 6.3.4

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/assets.json CHANGED
@@ -3,8 +3,8 @@
3
3
  {
4
4
  "package": "@steedos-widgets/sortable",
5
5
  "urls": [
6
- "https://unpkg.com/@steedos-widgets/sortable@6.3.2/dist/sortable.umd.js",
7
- "https://unpkg.com/@steedos-widgets/sortable@6.3.2/dist/sortable.umd.css"
6
+ "https://unpkg.com/@steedos-widgets/sortable@6.3.4/dist/sortable.umd.js",
7
+ "https://unpkg.com/@steedos-widgets/sortable@6.3.4/dist/sortable.umd.css"
8
8
  ],
9
9
  "library": "BuilderSortable"
10
10
  }
@@ -15,10 +15,10 @@
15
15
  "npm": {
16
16
  "package": "@steedos-widgets/sortable"
17
17
  },
18
- "url": "https://unpkg.com/@steedos-widgets/sortable@6.3.2/dist/meta.js",
18
+ "url": "https://unpkg.com/@steedos-widgets/sortable@6.3.4/dist/meta.js",
19
19
  "urls": {
20
- "default": "https://unpkg.com/@steedos-widgets/sortable@6.3.2/dist/meta.js",
21
- "design": "https://unpkg.com/@steedos-widgets/sortable@6.3.2/dist/meta.js"
20
+ "default": "https://unpkg.com/@steedos-widgets/sortable@6.3.4/dist/meta.js",
21
+ "design": "https://unpkg.com/@steedos-widgets/sortable@6.3.4/dist/meta.js"
22
22
  }
23
23
  }
24
24
  ]
@@ -58573,18 +58573,19 @@ function getObjectHeaderToolbar(mainObject, fields, formFactor, {
58573
58573
  }
58574
58574
  let toolbarReloadButton;
58575
58575
  const onReloadScript = `
58576
- // const scope = event.context.scoped;
58577
- // var listView = scope.parent.getComponents().find(function(n){
58578
- // return n.props.type === "crud";
58579
- // });
58580
- // listView.handleChangePage(1);
58581
-
58582
-
58583
58576
  // 触发搜索,而不是reload,因为使用search-box可以在amissdk是3.6.3-patch.8+实现在非第一页的情况下,快速搜索输入框中过滤条件变更时再点刷新可以自动跳转翻页到第一页
58584
58577
  const scope = event.context.scoped;
58585
58578
  const sb = SteedosUI.getClosestAmisComponentByType(scope, "search-box");
58586
- const sbValue = sb.state.value;
58587
- sb.handleSearch(sbValue);
58579
+ if (sb) {
58580
+ const sbValue = sb.state.value;
58581
+ sb.handleSearch(sbValue);
58582
+ }else{
58583
+ var listView = scope.parent.getComponents().find(function(n){
58584
+ return n.props.type === "crud";
58585
+ });
58586
+ listView.handleChangePage(1);
58587
+ }
58588
+
58588
58589
  `;
58589
58590
  toolbarReloadButton = {
58590
58591
  // "type": "reload",//不可以直接使用reload,因为它不会设置页码到第一页,这在加载更多按钮的翻页模式下会有问题