@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.
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@3.6.11-beta.6/dist/sortable.umd.js",
7
- "https://unpkg.com/@steedos-widgets/sortable@3.6.11-beta.6/dist/sortable.umd.css"
6
+ "https://unpkg.com/@steedos-widgets/sortable@3.6.11-beta.7/dist/sortable.umd.js",
7
+ "https://unpkg.com/@steedos-widgets/sortable@3.6.11-beta.7/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@3.6.11-beta.6/dist/meta.js",
18
+ "url": "https://unpkg.com/@steedos-widgets/sortable@3.6.11-beta.7/dist/meta.js",
19
19
  "urls": {
20
- "default": "https://unpkg.com/@steedos-widgets/sortable@3.6.11-beta.6/dist/meta.js",
21
- "design": "https://unpkg.com/@steedos-widgets/sortable@3.6.11-beta.6/dist/meta.js"
20
+ "default": "https://unpkg.com/@steedos-widgets/sortable@3.6.11-beta.7/dist/meta.js",
21
+ "design": "https://unpkg.com/@steedos-widgets/sortable@3.6.11-beta.7/dist/meta.js"
22
22
  }
23
23
  }
24
24
  ]
@@ -58323,7 +58323,6 @@ function getObjectHeaderQuickSearchBox(mainObject, fields, formFactor, { isLooku
58323
58323
  // 等升级到amis 3.4+,blur事件换成change事件执行onChangeScript,就可以不用在onSearchScript中执行onChangeScript了
58324
58324
  // 基于amis3.6,已经不再用blur事件触发onChangeScript,所以这里把之前加上的onChangeScript去掉了,如果以后还要换blur来触发onChangeScript脚本的话,这里又要加回onChangeScript脚本
58325
58325
  const onSearchScript = `
58326
- // console.log("==search=onSearchScript===");
58327
58326
  // 下面的脚本只为解决点击搜索表单取消按钮,再重新在其中输入过滤条件但是不点击搜索按钮或回车按键触发搜索,此时在快速搜索框输入过滤条件按回车按键会把搜索表单中的过滤条件清空的问题
58328
58327
  const scope = event.context.scoped;
58329
58328
  // 如果点击过顶部搜索栏表单的取消按钮,会把此处event.data.__super.__super.__super中的搜索表单项的所有字段设置为null
@@ -58344,13 +58343,15 @@ function getObjectHeaderQuickSearchBox(mainObject, fields, formFactor, { isLooku
58344
58343
  }, 500);
58345
58344
  `;
58346
58345
 
58347
- const onBlurScript = `
58348
- // console.log("==search=onBlurScript===");
58349
- // 失去焦点事件触发搜索
58350
- const scope = event.context.scoped;
58351
- const sb = SteedosUI.getClosestAmisComponentByType(scope, "search-box");
58352
- sb.handleSearch();
58353
- `;
58346
+ // const onBlurScript = `
58347
+ // // 失去焦点事件触发搜索,先去掉,因为会有bug,见:[Bug]: 列表上快速搜索输入框输入内容后点击放大镜界面上列表未显示过滤后的内容 #6742
58348
+ // const value = event.data.value;
58349
+ // setTimeout(function(){
58350
+ // const scope = event.context.scoped;
58351
+ // const sb = SteedosUI.getClosestAmisComponentByType(scope, "search-box");
58352
+ // sb.handleSearch(value);
58353
+ // }, 500);
58354
+ // `;
58354
58355
 
58355
58356
  return {
58356
58357
  "type": "tooltip-wrapper",
@@ -58389,14 +58390,14 @@ function getObjectHeaderQuickSearchBox(mainObject, fields, formFactor, { isLooku
58389
58390
  },
58390
58391
  ]
58391
58392
  },
58392
- "blur": {
58393
- "actions": [
58394
- {
58395
- "actionType": "custom",
58396
- "script": onBlurScript
58397
- },
58398
- ]
58399
- }
58393
+ // "blur": {
58394
+ // "actions": [
58395
+ // {
58396
+ // "actionType": "custom",
58397
+ // "script": onBlurScript
58398
+ // },
58399
+ // ]
58400
+ // }
58400
58401
  }
58401
58402
  }
58402
58403
  ]
@@ -58429,13 +58430,10 @@ function getObjectHeaderToolbar(mainObject, fields, formFactor, {
58429
58430
  // listView.handleChangePage(1);
58430
58431
 
58431
58432
 
58432
- // 触发搜索,而不是reload,因为快速搜索输入框失去焦点已经会触发搜索了,这里用reload的话,会有bug
58433
- // 不加setTimeout的话,快速搜索输入框失去焦点再触发此脚本还是有问题
58434
- setTimeout(function(){
58435
- const scope = event.context.scoped;
58436
- const sb = SteedosUI.getClosestAmisComponentByType(scope, "search-box");
58437
- sb.handleSearch();
58438
- }, 500);
58433
+ // 触发搜索,而不是reload,因为使用search-box可以在amissdk是3.6.3-patch.8+实现快速搜索输入框中过滤条件变更时再点刷新可以自动跳转到第一页面
58434
+ const scope = event.context.scoped;
58435
+ const sb = SteedosUI.getClosestAmisComponentByType(scope, "search-box");
58436
+ sb.handleSearch();
58439
58437
  `;
58440
58438
  toolbarReloadButton = {
58441
58439
  // "type": "reload",//不可以直接使用reload,因为它不会设置页码到第一页,这在加载更多按钮的翻页模式下会有问题