@steedos-widgets/sortable 6.3.0-beta.3 → 6.3.0-beta.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 +5 -5
- package/dist/sortable.cjs.js +32 -28
- package/dist/sortable.cjs.js.map +1 -1
- package/dist/sortable.esm.js +32 -28
- package/dist/sortable.esm.js.map +1 -1
- package/dist/sortable.umd.js +32 -28
- package/package.json +3 -3
package/dist/sortable.esm.js
CHANGED
|
@@ -58735,7 +58735,7 @@ async function getObjectFilter(objectSchema, fields, options) {
|
|
|
58735
58735
|
* @Author: baozhoutao@steedos.com
|
|
58736
58736
|
* @Date: 2022-07-05 15:55:39
|
|
58737
58737
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
58738
|
-
* @LastEditTime: 2024-
|
|
58738
|
+
* @LastEditTime: 2024-04-25 19:01:52
|
|
58739
58739
|
* @Description:
|
|
58740
58740
|
*/
|
|
58741
58741
|
|
|
@@ -58968,37 +58968,41 @@ async function getListSchema(
|
|
|
58968
58968
|
* 本次存储代码段
|
|
58969
58969
|
*/
|
|
58970
58970
|
try {
|
|
58971
|
-
|
|
58972
|
-
|
|
58973
|
-
|
|
58974
|
-
|
|
58975
|
-
|
|
58976
|
-
|
|
58977
|
-
|
|
58978
|
-
|
|
58979
|
-
|
|
58980
|
-
|
|
58981
|
-
|
|
58982
|
-
|
|
58983
|
-
|
|
58984
|
-
|
|
58985
|
-
|
|
58986
|
-
|
|
58987
|
-
|
|
58988
|
-
|
|
58989
|
-
|
|
58990
|
-
|
|
58991
|
-
|
|
58992
|
-
|
|
58971
|
+
const listViewPropsStoreKey = location.pathname + "/crud";
|
|
58972
|
+
let localListViewProps = sessionStorage.getItem(listViewPropsStoreKey);
|
|
58973
|
+
/**
|
|
58974
|
+
* localListViewProps规范来自crud请求api中api.data.$self参数值的。
|
|
58975
|
+
* 比如:{"perPage":20,"page":1,"__searchable__name":"7","__searchable__between__n1__c":[null,null],"filter":[["name","contains","a"]]}
|
|
58976
|
+
* __searchable__...:顶部放大镜搜索条件
|
|
58977
|
+
* filter:右侧过滤器
|
|
58978
|
+
* perPage:每页条数
|
|
58979
|
+
* page:当前页码
|
|
58980
|
+
* orderBy:排序字段
|
|
58981
|
+
* orderDir:排序方向
|
|
58982
|
+
*/
|
|
58983
|
+
if (localListViewProps) {
|
|
58984
|
+
localListViewProps = JSON.parse(localListViewProps);
|
|
58985
|
+
// localListViewProps.perPage = 3;
|
|
58986
|
+
let listSchema = {};
|
|
58987
|
+
if (localListViewProps.orderBy) {
|
|
58988
|
+
listSchema.orderBy = localListViewProps.orderBy;
|
|
58989
|
+
}
|
|
58990
|
+
if (localListViewProps.orderDir) {
|
|
58991
|
+
listSchema.orderDir = localListViewProps.orderDir;
|
|
58992
|
+
}
|
|
58993
58993
|
|
|
58994
|
-
|
|
58995
|
-
|
|
58994
|
+
if (localListViewProps.perPage) {
|
|
58995
|
+
listSchema.perPage = localListViewProps.perPage;
|
|
58996
|
+
}
|
|
58997
|
+
if (window.innerWidth > 768) {
|
|
58998
|
+
// 列表视图组件PC端高度自动计算实现满屏效果,手机端不需要满屏效果,所以不用autofillheight
|
|
58999
|
+
listSchema.autoFillHeight = true;
|
|
59000
|
+
}
|
|
59001
|
+
defaults.listSchema = lodash.exports.defaultsDeep({}, listSchema, defaults.listSchema || {});
|
|
58996
59002
|
}
|
|
58997
|
-
defaults.listSchema = lodash.exports.defaultsDeep({}, listSchema, defaults.listSchema || {});
|
|
58998
|
-
}
|
|
58999
59003
|
}
|
|
59000
59004
|
catch (ex) {
|
|
59001
|
-
|
|
59005
|
+
console.error("本地存储中crud参数解析异常:", ex);
|
|
59002
59006
|
}
|
|
59003
59007
|
|
|
59004
59008
|
ctx.defaults = defaults;
|