@steedos-widgets/amis-lib 3.6.11 → 6.3.0-beta.3
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/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +6 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +6 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +3 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -8275,9 +8275,12 @@ function getObjectHeaderQuickSearchBox(mainObject, fields, formFactor, { isLooku
|
|
|
8275
8275
|
// 而点击回车按键又不会触发blur事件,所以只能每次回车事件中额外再执行一次onChangeScript
|
|
8276
8276
|
// 等升级到amis 3.4+,blur事件换成change事件执行onChangeScript,就可以不用在onSearchScript中执行onChangeScript了
|
|
8277
8277
|
// 基于amis3.6,已经不再用blur事件触发onChangeScript,所以这里把之前加上的onChangeScript去掉了,如果以后还要换blur来触发onChangeScript脚本的话,这里又要加回onChangeScript脚本
|
|
8278
|
+
// 这里重新额外先执行下onChangeScript,是因为不执行还有bug:[Bug]: amis升级到6.3后列表快速搜索功能,有时点击右上角的刷新按钮会按上次搜索的过滤条件请求数据 #6734
|
|
8278
8279
|
const onSearchScript = `
|
|
8280
|
+
${onChangeScript}
|
|
8281
|
+
|
|
8279
8282
|
// 下面的脚本只为解决点击搜索表单取消按钮,再重新在其中输入过滤条件但是不点击搜索按钮或回车按键触发搜索,此时在快速搜索框输入过滤条件按回车按键会把搜索表单中的过滤条件清空的问题
|
|
8280
|
-
const scope = event.context.scoped;
|
|
8283
|
+
// const scope = event.context.scoped;
|
|
8281
8284
|
// 如果点击过顶部搜索栏表单的取消按钮,会把此处event.data.__super.__super.__super中的搜索表单项的所有字段设置为null
|
|
8282
8285
|
// 点击取消按钮后继续在表单项中输入过滤条件且最后没有点击回车按键或点击表单项搜索按钮的话,在快速搜索中点击回车按钮提交搜索会所顶部搜索表单中的字段值清空
|
|
8283
8286
|
let isLookup = event.data.isLookup;
|
|
@@ -8386,7 +8389,8 @@ function getObjectHeaderToolbar(mainObject, fields, formFactor, {
|
|
|
8386
8389
|
// 触发搜索,而不是reload,因为使用search-box可以在amissdk是3.6.3-patch.8+实现在非第一页的情况下,快速搜索输入框中过滤条件变更时再点刷新可以自动跳转翻页到第一页
|
|
8387
8390
|
const scope = event.context.scoped;
|
|
8388
8391
|
const sb = SteedosUI.getClosestAmisComponentByType(scope, "search-box");
|
|
8389
|
-
sb.
|
|
8392
|
+
const sbValue = sb.state.value;
|
|
8393
|
+
sb.handleSearch(sbValue);
|
|
8390
8394
|
`;
|
|
8391
8395
|
toolbarReloadButton = {
|
|
8392
8396
|
// "type": "reload",//不可以直接使用reload,因为它不会设置页码到第一页,这在加载更多按钮的翻页模式下会有问题
|