@steedos-widgets/amis-lib 3.6.7-beta.1 → 3.6.7-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 +11 -14
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +11 -14
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +9 -9
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/fields/list.d.ts +2 -6
- package/dist/types/lib/converter/amis/fields/lookup.d.ts +6 -20
- package/dist/types/lib/converter/amis/fields/table.d.ts +2 -7
- package/dist/types/lib/space_users.d.ts +2 -6
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -2744,14 +2744,14 @@ async function getTableSchema$1(object, fields, options){
|
|
|
2744
2744
|
headerToolbarClassName: "py-2 px-2 border-gray-300 border-solid border-b",
|
|
2745
2745
|
className: "",
|
|
2746
2746
|
draggable: false,
|
|
2747
|
-
defaultParams: getDefaultParams$1(options),
|
|
2748
2747
|
card: card,
|
|
2749
2748
|
syncLocation: false,
|
|
2750
2749
|
keepItemSelectionOnPageChange: true,
|
|
2751
2750
|
checkOnItemClick: isLookup ? true : false,
|
|
2752
2751
|
labelTpl: `\${${options.labelFieldName}}`,
|
|
2753
2752
|
autoFillHeight: false, // 自动高度效果不理想,先关闭
|
|
2754
|
-
columnsTogglable: false
|
|
2753
|
+
columnsTogglable: false,
|
|
2754
|
+
...getDefaultParams$1(options) //不可以使用crud的defaultParams属性,会造成翻页bug,https://github.com/steedos/steedos-platform/issues/6576
|
|
2755
2755
|
}
|
|
2756
2756
|
}
|
|
2757
2757
|
|
|
@@ -2777,7 +2777,6 @@ async function getTableSchema$1(object, fields, options){
|
|
|
2777
2777
|
headerToolbarClassName: "py-2 px-2 border-gray-300 border-solid border-b",
|
|
2778
2778
|
className: "",
|
|
2779
2779
|
draggable: false,
|
|
2780
|
-
defaultParams: getDefaultParams$1(options),
|
|
2781
2780
|
columns: columns,
|
|
2782
2781
|
syncLocation: false,
|
|
2783
2782
|
keepItemSelectionOnPageChange: true,
|
|
@@ -2785,7 +2784,8 @@ async function getTableSchema$1(object, fields, options){
|
|
|
2785
2784
|
labelTpl: `\${${options.labelFieldName}}`,
|
|
2786
2785
|
autoFillHeight: false, // 自动高度效果不理想,先关闭
|
|
2787
2786
|
columnsTogglable: false,
|
|
2788
|
-
...treeConfig
|
|
2787
|
+
...treeConfig,
|
|
2788
|
+
...getDefaultParams$1(options) //不可以使用crud的defaultParams属性,会造成翻页bug,https://github.com/steedos/steedos-platform/issues/6576
|
|
2789
2789
|
}
|
|
2790
2790
|
}
|
|
2791
2791
|
|
|
@@ -4388,7 +4388,6 @@ async function getListSchema$1(fields, options){
|
|
|
4388
4388
|
name: "thelist",
|
|
4389
4389
|
draggable: false,
|
|
4390
4390
|
headerToolbar: ['reload'],
|
|
4391
|
-
defaultParams: getDefaultParams(options),
|
|
4392
4391
|
syncLocation: false,
|
|
4393
4392
|
keepItemSelectionOnPageChange: true,
|
|
4394
4393
|
checkOnItemClick: false,
|
|
@@ -4410,7 +4409,8 @@ async function getListSchema$1(fields, options){
|
|
|
4410
4409
|
})
|
|
4411
4410
|
}
|
|
4412
4411
|
]
|
|
4413
|
-
}
|
|
4412
|
+
},
|
|
4413
|
+
...getDefaultParams(options) //不可以使用crud的defaultParams属性,会造成翻页bug,https://github.com/steedos/steedos-platform/issues/6576
|
|
4414
4414
|
}
|
|
4415
4415
|
}
|
|
4416
4416
|
|
|
@@ -4431,7 +4431,6 @@ async function getCardSchema(fields, options){
|
|
|
4431
4431
|
name: "cards",
|
|
4432
4432
|
draggable: false,
|
|
4433
4433
|
headerToolbar: ['statistics', 'pagination'],
|
|
4434
|
-
defaultParams: getDefaultParams(options),
|
|
4435
4434
|
syncLocation: false,
|
|
4436
4435
|
keepItemSelectionOnPageChange: false,
|
|
4437
4436
|
checkOnItemClick: false,
|
|
@@ -4442,7 +4441,8 @@ async function getCardSchema(fields, options){
|
|
|
4442
4441
|
"title": title
|
|
4443
4442
|
},
|
|
4444
4443
|
"body": [...listBody.columns]
|
|
4445
|
-
}
|
|
4444
|
+
},
|
|
4445
|
+
...getDefaultParams(options)
|
|
4446
4446
|
}
|
|
4447
4447
|
}
|
|
4448
4448
|
|
|
@@ -9993,9 +9993,7 @@ async function getListSchema(
|
|
|
9993
9993
|
}
|
|
9994
9994
|
|
|
9995
9995
|
if(localListViewProps.perPage){
|
|
9996
|
-
listSchema.
|
|
9997
|
-
perPage: localListViewProps.perPage
|
|
9998
|
-
};
|
|
9996
|
+
listSchema.perPage = localListViewProps.perPage;
|
|
9999
9997
|
}
|
|
10000
9998
|
defaults.listSchema = defaultsDeep$1({}, listSchema, defaults.listSchema || {});
|
|
10001
9999
|
}
|
|
@@ -11155,6 +11153,7 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
11155
11153
|
Object.assign({}, refObjectConfig.fields[column.field], {
|
|
11156
11154
|
width: column.width,
|
|
11157
11155
|
wrap: column.wrap,
|
|
11156
|
+
amis: column.amis
|
|
11158
11157
|
})
|
|
11159
11158
|
);
|
|
11160
11159
|
}
|
|
@@ -15326,9 +15325,7 @@ async function getSpaceUsersPickerAmisSchema(spaceUserSchema, name, options) {
|
|
|
15326
15325
|
"switch-per-page",
|
|
15327
15326
|
"pagination"
|
|
15328
15327
|
],
|
|
15329
|
-
"
|
|
15330
|
-
"perPage": 50
|
|
15331
|
-
},
|
|
15328
|
+
"perPage": 50,
|
|
15332
15329
|
"columns": [
|
|
15333
15330
|
{
|
|
15334
15331
|
"name": "_index",
|