@steedos-widgets/amis-lib 1.3.0-beta.3 → 1.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/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +21 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +21 -10
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +12 -9
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/toolbar.d.ts +4 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -5245,7 +5245,7 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
|
|
|
5245
5245
|
|
|
5246
5246
|
function getObjectHeaderQuickSearchBox(mainObject, fields, formFactor, { isLookup = false, keywordsSearchBoxName = "__keywords" } = {}){
|
|
5247
5247
|
const searchableFieldsLabel = [];
|
|
5248
|
-
_.each(fields, function (field) {
|
|
5248
|
+
_.each(mainObject.fields, function (field) {
|
|
5249
5249
|
if (isFieldQuickSearchable(field, mainObject.NAME_FIELD_KEY)) {
|
|
5250
5250
|
searchableFieldsLabel.push(field.label);
|
|
5251
5251
|
}
|
|
@@ -5437,8 +5437,14 @@ function getObjectHeaderToolbar(mainObject, fields, formFactor, {
|
|
|
5437
5437
|
|
|
5438
5438
|
function getObjectFooterToolbar(mainObject, formFactor, options) {
|
|
5439
5439
|
if (formFactor === 'SMALL') {
|
|
5440
|
+
// return [
|
|
5441
|
+
// "load-more",
|
|
5442
|
+
// ]
|
|
5440
5443
|
return [
|
|
5441
|
-
|
|
5444
|
+
{
|
|
5445
|
+
"type": "pagination",
|
|
5446
|
+
"maxButtons": 5
|
|
5447
|
+
}
|
|
5442
5448
|
]
|
|
5443
5449
|
}
|
|
5444
5450
|
else {
|
|
@@ -5837,13 +5843,16 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
5837
5843
|
})){
|
|
5838
5844
|
i++;
|
|
5839
5845
|
tableFields.push(field);
|
|
5840
|
-
if(isFieldQuickSearchable(field, refObjectConfig.NAME_FIELD_KEY)){
|
|
5841
|
-
searchableFields.push(field.name);
|
|
5842
|
-
}
|
|
5843
5846
|
}
|
|
5844
5847
|
}
|
|
5845
5848
|
});
|
|
5846
5849
|
|
|
5850
|
+
_$1.each(refObjectConfig.fields, function (field) {
|
|
5851
|
+
if(isFieldQuickSearchable(field, refObjectConfig.NAME_FIELD_KEY)){
|
|
5852
|
+
searchableFields.push(field.name);
|
|
5853
|
+
}
|
|
5854
|
+
});
|
|
5855
|
+
|
|
5847
5856
|
const fields = {
|
|
5848
5857
|
[referenceTo.labelField.name]: referenceTo.labelField,
|
|
5849
5858
|
[referenceTo.valueField.name]: referenceTo.valueField
|
|
@@ -8050,7 +8059,7 @@ function getMobileLines(tpls){
|
|
|
8050
8059
|
lineChildrenClassName = "steedos-listview-item-left two-lines-truncate";
|
|
8051
8060
|
if(item.field.is_wide){
|
|
8052
8061
|
// 左侧全行样式可以单独写
|
|
8053
|
-
lineChildrenClassName = "steedos-listview-item-wide truncate";
|
|
8062
|
+
lineChildrenClassName = "steedos-listview-item-wide two-lines-truncate";
|
|
8054
8063
|
}
|
|
8055
8064
|
if(lines.length === 0){
|
|
8056
8065
|
// 第一个字段加粗黑色显示
|
|
@@ -8363,7 +8372,7 @@ async function getTableApi(mainObject, fields, options){
|
|
|
8363
8372
|
baseFilters = filter;
|
|
8364
8373
|
}
|
|
8365
8374
|
|
|
8366
|
-
_$1.each(fields, function (field) {
|
|
8375
|
+
_$1.each(mainObject.fields, function (field) {
|
|
8367
8376
|
if (isFieldQuickSearchable(field, mainObject.NAME_FIELD_KEY)) {
|
|
8368
8377
|
searchableFields.push(field.name);
|
|
8369
8378
|
}
|
|
@@ -8424,8 +8433,9 @@ async function getTableApi(mainObject, fields, options){
|
|
|
8424
8433
|
// 所以会把localSearchableFilter中已经存过的页码覆盖
|
|
8425
8434
|
// 如果是第一次加载组件始终让翻页页码从本地存储中取值
|
|
8426
8435
|
let formFactor = "${options.formFactor}";
|
|
8427
|
-
//
|
|
8428
|
-
|
|
8436
|
+
// api.data.pageNo = formFactor === "SMALL" ? 1 : (localListViewProps.page || 1);
|
|
8437
|
+
// 移动端暂时去除加载更多,放开翻页
|
|
8438
|
+
api.data.pageNo = localListViewProps.page || 1;
|
|
8429
8439
|
}
|
|
8430
8440
|
}
|
|
8431
8441
|
}
|
|
@@ -8625,7 +8635,8 @@ async function getTableApi(mainObject, fields, options){
|
|
|
8625
8635
|
// 如果是第一次加载组件始终让翻页页码从本地存储中取值
|
|
8626
8636
|
let formFactor = "${options.formFactor}";
|
|
8627
8637
|
// 移动端不识别本地存储中的翻页页码,否则点击加载更多按钮后无法刷新回第一页
|
|
8628
|
-
selfData.page = formFactor === "SMALL" ? 1 : (localListViewProps.page || 1);
|
|
8638
|
+
// selfData.page = formFactor === "SMALL" ? 1 : (localListViewProps.page || 1);
|
|
8639
|
+
selfData.page = localListViewProps.page || 1;
|
|
8629
8640
|
}
|
|
8630
8641
|
}
|
|
8631
8642
|
delete selfData.context;
|