@steedos-widgets/sortable 3.6.12 → 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.
@@ -25040,7 +25040,7 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
25040
25040
  * @Author: baozhoutao@steedos.com
25041
25041
  * @Date: 2022-07-05 15:55:39
25042
25042
  * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
25043
- * @LastEditTime: 2024-02-23 16:37:06
25043
+ * @LastEditTime: 2024-04-25 19:01:52
25044
25044
  * @Description:
25045
25045
  */
25046
25046
 
@@ -25273,37 +25273,41 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
25273
25273
  * 本次存储代码段
25274
25274
  */
25275
25275
  try {
25276
- const listViewPropsStoreKey = location.pathname + "/crud";
25277
- let localListViewProps = sessionStorage.getItem(listViewPropsStoreKey);
25278
- /**
25279
- * localListViewProps规范来自crud请求api中api.data.$self参数值的。
25280
- * 比如:{"perPage":20,"page":1,"__searchable__name":"7","__searchable__between__n1__c":[null,null],"filter":[["name","contains","a"]]}
25281
- * __searchable__...:顶部放大镜搜索条件
25282
- * filter:右侧过滤器
25283
- * perPage:每页条数
25284
- * page:当前页码
25285
- * orderBy:排序字段
25286
- * orderDir:排序方向
25287
- */
25288
- if (localListViewProps) {
25289
- localListViewProps = JSON.parse(localListViewProps);
25290
- // localListViewProps.perPage = 3;
25291
- let listSchema = {};
25292
- if(localListViewProps.orderBy){
25293
- listSchema.orderBy = localListViewProps.orderBy;
25294
- }
25295
- if(localListViewProps.orderDir){
25296
- listSchema.orderDir = localListViewProps.orderDir;
25297
- }
25276
+ const listViewPropsStoreKey = location.pathname + "/crud";
25277
+ let localListViewProps = sessionStorage.getItem(listViewPropsStoreKey);
25278
+ /**
25279
+ * localListViewProps规范来自crud请求api中api.data.$self参数值的。
25280
+ * 比如:{"perPage":20,"page":1,"__searchable__name":"7","__searchable__between__n1__c":[null,null],"filter":[["name","contains","a"]]}
25281
+ * __searchable__...:顶部放大镜搜索条件
25282
+ * filter:右侧过滤器
25283
+ * perPage:每页条数
25284
+ * page:当前页码
25285
+ * orderBy:排序字段
25286
+ * orderDir:排序方向
25287
+ */
25288
+ if (localListViewProps) {
25289
+ localListViewProps = JSON.parse(localListViewProps);
25290
+ // localListViewProps.perPage = 3;
25291
+ let listSchema = {};
25292
+ if (localListViewProps.orderBy) {
25293
+ listSchema.orderBy = localListViewProps.orderBy;
25294
+ }
25295
+ if (localListViewProps.orderDir) {
25296
+ listSchema.orderDir = localListViewProps.orderDir;
25297
+ }
25298
25298
 
25299
- if(localListViewProps.perPage){
25300
- listSchema.perPage = localListViewProps.perPage;
25299
+ if (localListViewProps.perPage) {
25300
+ listSchema.perPage = localListViewProps.perPage;
25301
+ }
25302
+ if (window.innerWidth > 768) {
25303
+ // 列表视图组件PC端高度自动计算实现满屏效果,手机端不需要满屏效果,所以不用autofillheight
25304
+ listSchema.autoFillHeight = true;
25305
+ }
25306
+ defaults.listSchema = lodash.exports.defaultsDeep({}, listSchema, defaults.listSchema || {});
25301
25307
  }
25302
- defaults.listSchema = lodash.exports.defaultsDeep({}, listSchema, defaults.listSchema || {});
25303
- }
25304
25308
  }
25305
25309
  catch (ex) {
25306
- console.error("本地存储中crud参数解析异常:", ex);
25310
+ console.error("本地存储中crud参数解析异常:", ex);
25307
25311
  }
25308
25312
 
25309
25313
  ctx.defaults = defaults;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos-widgets/sortable",
3
- "version": "3.6.12",
3
+ "version": "6.3.0-beta.4",
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.12"
48
+ "@steedos-widgets/amis-lib": "6.3.0-beta.4"
49
49
  },
50
- "gitHead": "e71fedfe247929278dab0a0ecc9679246d4ad7f7"
50
+ "gitHead": "afb5860e5aa4887b725bcc085cf7a22016797c55"
51
51
  }