@steedos-widgets/amis-object 1.3.0-beta.4 → 1.3.0-beta.6
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/amis-object.cjs.css +48 -15
- package/dist/amis-object.cjs.js +15 -14
- package/dist/amis-object.cjs.js.map +1 -1
- package/dist/amis-object.esm.css +48 -15
- package/dist/amis-object.esm.js +15 -14
- package/dist/amis-object.esm.js.map +1 -1
- package/dist/amis-object.umd.css +48 -15
- package/dist/amis-object.umd.js +10 -10
- package/dist/amis-object.umd.js.map +1 -1
- package/dist/assets.json +16 -16
- package/package.json +3 -3
package/dist/amis-object.cjs.css
CHANGED
|
@@ -1202,6 +1202,25 @@ fieldset.antd-Collapse > legend{
|
|
|
1202
1202
|
.steedos-object-table .antd-Table-footToolbar .antd-Crud-toolbar-item .antd-Pagination-inputGroup-left {
|
|
1203
1203
|
display: none;
|
|
1204
1204
|
}
|
|
1205
|
+
.steedos-object-table .antd-Table-footToolbar .antd-Crud-toolbar-item .antd-Pagination-inputGroup-input {
|
|
1206
|
+
min-width: 0;
|
|
1207
|
+
width: 30px;
|
|
1208
|
+
}
|
|
1209
|
+
.steedos-object-table .antd-Table-footToolbar .antd-Crud-toolbar-item .antd-Pagination-inputGroup-right {
|
|
1210
|
+
width: 25px;
|
|
1211
|
+
}
|
|
1212
|
+
body.zoom-large .steedos-object-table .antd-Table-footToolbar {
|
|
1213
|
+
zoom: 90%;
|
|
1214
|
+
}
|
|
1215
|
+
body.zoom-extra-large .steedos-object-table .antd-Table-footToolbar {
|
|
1216
|
+
zoom: 80%;
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
/* 手机屏幕宽度小于380px时隐藏分页器快速跳转*/
|
|
1220
|
+
@media (max-width: 380px) {
|
|
1221
|
+
.steedos-object-table .antd-Table-footToolbar .antd-Pagination-inputGroup {
|
|
1222
|
+
display: none;
|
|
1223
|
+
}
|
|
1205
1224
|
}
|
|
1206
1225
|
.steedos-object-table .two-lines-truncate {
|
|
1207
1226
|
white-space: pre-wrap;
|
|
@@ -1382,35 +1401,35 @@ fieldset.antd-Collapse > legend{
|
|
|
1382
1401
|
/*
|
|
1383
1402
|
列表快速搜索,手机端及PC端分栏模式需要独占一行
|
|
1384
1403
|
*/
|
|
1385
|
-
.steedos-crud-mobile-search-box .antd-Crud .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child {
|
|
1404
|
+
.steedos-crud-mobile-search-box .antd-Crud .antd-Table-headToolbar .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child {
|
|
1386
1405
|
width: 100%;
|
|
1387
1406
|
margin-top: 8px;
|
|
1388
1407
|
}
|
|
1389
|
-
.steedos-crud-mobile-search-box .antd-Crud .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child .antd-TooltipWrapper {
|
|
1408
|
+
.steedos-crud-mobile-search-box .antd-Crud .antd-Table-headToolbar .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child .antd-TooltipWrapper {
|
|
1390
1409
|
width: 100%;
|
|
1391
1410
|
}
|
|
1392
|
-
.steedos-crud-mobile-search-box .antd-Crud .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child .antd-TooltipWrapper .antd-SearchBox.is-active {
|
|
1411
|
+
.steedos-crud-mobile-search-box .antd-Crud .antd-Table-headToolbar .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child .antd-TooltipWrapper .antd-SearchBox.is-active {
|
|
1393
1412
|
width: 100%;
|
|
1394
1413
|
}
|
|
1395
|
-
.page-list-split .steedos-object-listview .antd-Crud .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child {
|
|
1414
|
+
.page-list-split .steedos-object-listview .antd-Crud .antd-Table-headToolbar .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child {
|
|
1396
1415
|
width: 100%;
|
|
1397
1416
|
margin-top: 8px;
|
|
1398
1417
|
}
|
|
1399
|
-
.page-list-split .steedos-object-listview .antd-Crud .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child .antd-TooltipWrapper {
|
|
1418
|
+
.page-list-split .steedos-object-listview .antd-Crud .antd-Table-headToolbar .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child .antd-TooltipWrapper {
|
|
1400
1419
|
width: 100%;
|
|
1401
1420
|
}
|
|
1402
|
-
.page-list-split .steedos-object-listview .antd-Crud .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child .antd-TooltipWrapper .antd-SearchBox.is-active {
|
|
1421
|
+
.page-list-split .steedos-object-listview .antd-Crud .antd-Table-headToolbar .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child .antd-TooltipWrapper .antd-SearchBox.is-active {
|
|
1403
1422
|
width: 100%;
|
|
1404
1423
|
}
|
|
1405
1424
|
@media (max-width: 768px) {
|
|
1406
|
-
.steedos-object-listview .antd-Crud .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child {
|
|
1425
|
+
.steedos-object-listview .antd-Crud .antd-Table-headToolbar .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child {
|
|
1407
1426
|
width: 100%;
|
|
1408
1427
|
margin-top: 8px;
|
|
1409
1428
|
}
|
|
1410
|
-
.steedos-object-listview .antd-Crud .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child .antd-TooltipWrapper {
|
|
1429
|
+
.steedos-object-listview .antd-Crud .antd-Table-headToolbar .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child .antd-TooltipWrapper {
|
|
1411
1430
|
width: 100%;
|
|
1412
1431
|
}
|
|
1413
|
-
.steedos-object-listview .antd-Crud .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child .antd-TooltipWrapper .antd-SearchBox.is-active {
|
|
1432
|
+
.steedos-object-listview .antd-Crud .antd-Table-headToolbar .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child .antd-TooltipWrapper .antd-SearchBox.is-active {
|
|
1414
1433
|
width: 100%;
|
|
1415
1434
|
}
|
|
1416
1435
|
}
|
|
@@ -1578,28 +1597,42 @@ fieldset.antd-Collapse > legend{
|
|
|
1578
1597
|
}
|
|
1579
1598
|
@media (max-width: 767px) {
|
|
1580
1599
|
.steedos-object-table .antd-Table-content {
|
|
1581
|
-
max-height: calc(100vh -
|
|
1600
|
+
max-height: calc(100vh - 208px);
|
|
1582
1601
|
}
|
|
1583
1602
|
.steedos-object-listview .antd-Table-content {
|
|
1584
|
-
max-height: calc(100vh -
|
|
1603
|
+
max-height: calc(100vh - 299px);
|
|
1585
1604
|
}
|
|
1586
1605
|
body.zoom-large .steedos-object-table .antd-Table-content {
|
|
1587
|
-
max-height: calc(100vh -
|
|
1606
|
+
max-height: calc(100vh - 334px);
|
|
1588
1607
|
}
|
|
1589
1608
|
body.zoom-large .steedos-object-listview .antd-Table-content {
|
|
1590
|
-
max-height: calc(100vh -
|
|
1609
|
+
max-height: calc(100vh - 424px);
|
|
1591
1610
|
}
|
|
1592
1611
|
body.zoom-extra-large .steedos-object-table .antd-Table-content {
|
|
1593
|
-
max-height: calc(100vh -
|
|
1612
|
+
max-height: calc(100vh - 432px);
|
|
1594
1613
|
}
|
|
1595
1614
|
body.zoom-extra-large .steedos-object-listview .antd-Table-content {
|
|
1596
|
-
max-height: calc(100vh -
|
|
1615
|
+
max-height: calc(100vh - 530px);
|
|
1597
1616
|
}
|
|
1598
1617
|
.steedos-global-footer-root .antd-Nav-Menu-horizontal:after {
|
|
1599
1618
|
/*手机端底部导航左右间隔不平衡*/
|
|
1600
1619
|
content: unset;
|
|
1601
1620
|
}
|
|
1602
1621
|
}
|
|
1622
|
+
@media (max-width: 767px) and (max-height: 700px) {
|
|
1623
|
+
body.zoom-large .steedos-object-table .antd-Table-content {
|
|
1624
|
+
max-height: calc(100vh - 304px);
|
|
1625
|
+
}
|
|
1626
|
+
body.zoom-large .steedos-object-listview .antd-Table-content {
|
|
1627
|
+
max-height: calc(100vh - 396px);
|
|
1628
|
+
}
|
|
1629
|
+
body.zoom-extra-large .steedos-object-table .antd-Table-content {
|
|
1630
|
+
max-height: calc(100vh - 412px);
|
|
1631
|
+
}
|
|
1632
|
+
body.zoom-extra-large .steedos-object-listview .antd-Table-content {
|
|
1633
|
+
max-height: calc(100vh - 472px);
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1603
1636
|
.steedos-global-footer ul {
|
|
1604
1637
|
order: unset !important;
|
|
1605
1638
|
}
|
package/dist/amis-object.cjs.js
CHANGED
|
@@ -5606,7 +5606,7 @@ const getSchema$2 = (uiSchema) => {
|
|
|
5606
5606
|
* @Author: baozhoutao@steedos.com
|
|
5607
5607
|
* @Date: 2022-11-07 17:00:38
|
|
5608
5608
|
* @LastEditors: baozhoutao@steedos.com
|
|
5609
|
-
* @LastEditTime:
|
|
5609
|
+
* @LastEditTime: 2023-08-24 16:44:42
|
|
5610
5610
|
* @Description:
|
|
5611
5611
|
*/
|
|
5612
5612
|
|
|
@@ -5626,7 +5626,7 @@ const getSchema$1 = (uiSchema)=>{
|
|
|
5626
5626
|
"componentId": "",
|
|
5627
5627
|
"args": {
|
|
5628
5628
|
"blank": false,
|
|
5629
|
-
"url": "/app/${app_id}/${objectName}/view/${_id}"
|
|
5629
|
+
"url": "/app/${app_id}/${objectName}/view/${_id}?side_object=${objectName}&side_listview_id=${listName}"
|
|
5630
5630
|
},
|
|
5631
5631
|
"actionType": "link"
|
|
5632
5632
|
}
|
|
@@ -7212,7 +7212,7 @@ async function getObjectRecordDetailHeader(objectSchema, recordId, options) {
|
|
|
7212
7212
|
"actions": [
|
|
7213
7213
|
{
|
|
7214
7214
|
"actionType": "custom",
|
|
7215
|
-
"script": "
|
|
7215
|
+
"script": "window.goBack()"
|
|
7216
7216
|
}
|
|
7217
7217
|
]
|
|
7218
7218
|
}
|
|
@@ -11481,6 +11481,7 @@ async function getTableOperation(ctx){
|
|
|
11481
11481
|
|
|
11482
11482
|
async function getTableSchema$1(fields, options){
|
|
11483
11483
|
let isLookup = options && options.isLookup;
|
|
11484
|
+
let hiddenColumnOperation = options && options.hiddenColumnOperation;
|
|
11484
11485
|
if(!options){
|
|
11485
11486
|
options = {};
|
|
11486
11487
|
}
|
|
@@ -11490,7 +11491,7 @@ async function getTableSchema$1(fields, options){
|
|
|
11490
11491
|
}
|
|
11491
11492
|
else {
|
|
11492
11493
|
columns = await getTableColumns$1(fields, options);
|
|
11493
|
-
if(!isLookup){
|
|
11494
|
+
if(!isLookup && !hiddenColumnOperation){
|
|
11494
11495
|
columns.push(await getTableOperation(options));
|
|
11495
11496
|
}
|
|
11496
11497
|
}
|
|
@@ -13339,7 +13340,7 @@ async function getObjectDetail(objectSchema, recordId, ctx){
|
|
|
13339
13340
|
// "blank": false
|
|
13340
13341
|
// },
|
|
13341
13342
|
"actionType": "custom",
|
|
13342
|
-
"script": "
|
|
13343
|
+
"script": "window.goBack()",
|
|
13343
13344
|
"expression": "this.__deletedRecord === true"
|
|
13344
13345
|
}
|
|
13345
13346
|
]
|
|
@@ -17833,12 +17834,12 @@ var AmisObjectForm = function (props) { return __awaiter(void 0, void 0, void 0,
|
|
|
17833
17834
|
}); };
|
|
17834
17835
|
|
|
17835
17836
|
var AmisObjectListView = function (props) { return __awaiter(void 0, void 0, void 0, function () {
|
|
17836
|
-
var $schema, top, perPage, _a, showHeader, data, defaultData, _b, crud, _c, className, crudClassName, _d, showDisplayAs, sideSchema, _f, filterVisible, headerToolbarItems, rowClassNameExpr, headerSchema, ctx, listName, defaults, objectApiName, displayAs, formFactor, isMobile, uiSchema, listView, schemaKeys, listSchema, setDataToComponentId, amisSchemaData, listViewId, listViewSchemaProps, serviceData;
|
|
17837
|
-
var
|
|
17838
|
-
return __generator(this, function (
|
|
17839
|
-
switch (
|
|
17837
|
+
var $schema, top, perPage, _a, showHeader, data, defaultData, _b, crud, _c, className, crudClassName, _d, showDisplayAs, sideSchema, _f, filterVisible, headerToolbarItems, rowClassNameExpr, _g, hiddenColumnOperation, headerSchema, ctx, listName, defaults, objectApiName, displayAs, formFactor, isMobile, uiSchema, listView, schemaKeys, listSchema, setDataToComponentId, amisSchemaData, listViewId, listViewSchemaProps, serviceData;
|
|
17838
|
+
var _h;
|
|
17839
|
+
return __generator(this, function (_j) {
|
|
17840
|
+
switch (_j.label) {
|
|
17840
17841
|
case 0:
|
|
17841
|
-
$schema = props.$schema, top = props.top, perPage = props.perPage, _a = props.showHeader, showHeader = _a === void 0 ? true : _a, data = props.data, defaultData = props.defaultData, _b = props.crud, crud = _b === void 0 ? {} : _b, _c = props.className, className = _c === void 0 ? "" : _c, crudClassName = props.crudClassName, _d = props.showDisplayAs, showDisplayAs = _d === void 0 ? false : _d, sideSchema = props.sideSchema, props.columnsTogglable, _f = props.filterVisible, filterVisible = _f === void 0 ? true : _f, headerToolbarItems = props.headerToolbarItems, rowClassNameExpr = props.rowClassNameExpr;
|
|
17842
|
+
$schema = props.$schema, top = props.top, perPage = props.perPage, _a = props.showHeader, showHeader = _a === void 0 ? true : _a, data = props.data, defaultData = props.defaultData, _b = props.crud, crud = _b === void 0 ? {} : _b, _c = props.className, className = _c === void 0 ? "" : _c, crudClassName = props.crudClassName, _d = props.showDisplayAs, showDisplayAs = _d === void 0 ? false : _d, sideSchema = props.sideSchema, props.columnsTogglable, _f = props.filterVisible, filterVisible = _f === void 0 ? true : _f, headerToolbarItems = props.headerToolbarItems, rowClassNameExpr = props.rowClassNameExpr, _g = props.hiddenColumnOperation, hiddenColumnOperation = _g === void 0 ? false : _g;
|
|
17842
17843
|
headerSchema = props.headerSchema;
|
|
17843
17844
|
ctx = props.ctx;
|
|
17844
17845
|
listName = (defaultData === null || defaultData === void 0 ? void 0 : defaultData.listName) || (data === null || data === void 0 ? void 0 : data.listName) || (props === null || props === void 0 ? void 0 : props.listName);
|
|
@@ -17867,7 +17868,7 @@ var AmisObjectListView = function (props) { return __awaiter(void 0, void 0, voi
|
|
|
17867
17868
|
}
|
|
17868
17869
|
return [4 /*yield*/, getUISchema(objectApiName, false)];
|
|
17869
17870
|
case 1:
|
|
17870
|
-
uiSchema =
|
|
17871
|
+
uiSchema = _j.sent();
|
|
17871
17872
|
listView = ___default.find(uiSchema.list_views, function (listView, name) {
|
|
17872
17873
|
// 传入listViewName空值则取第一个
|
|
17873
17874
|
if (!listName) {
|
|
@@ -17918,7 +17919,7 @@ var AmisObjectListView = function (props) { return __awaiter(void 0, void 0, voi
|
|
|
17918
17919
|
}
|
|
17919
17920
|
amisSchemaData = Object.assign({}, data, defaultData);
|
|
17920
17921
|
listViewId = (ctx === null || ctx === void 0 ? void 0 : ctx.listViewId) || amisSchemaData.listViewId;
|
|
17921
|
-
listViewSchemaProps = __assign$2(__assign$2({ top: top, perPage: perPage, showHeader: showHeader, defaults: defaults }, ctx), { listViewId: listViewId, setDataToComponentId: setDataToComponentId, filterVisible: filterVisible, showDisplayAs: showDisplayAs, displayAs: displayAs, headerToolbarItems: headerToolbarItems, rowClassNameExpr: rowClassNameExpr });
|
|
17922
|
+
listViewSchemaProps = __assign$2(__assign$2({ top: top, perPage: perPage, showHeader: showHeader, defaults: defaults }, ctx), { listViewId: listViewId, setDataToComponentId: setDataToComponentId, filterVisible: filterVisible, showDisplayAs: showDisplayAs, displayAs: displayAs, headerToolbarItems: headerToolbarItems, rowClassNameExpr: rowClassNameExpr, hiddenColumnOperation: hiddenColumnOperation });
|
|
17922
17923
|
if (!headerSchema) {
|
|
17923
17924
|
headerSchema = getObjectListHeader$1(uiSchema, listName, ctx);
|
|
17924
17925
|
}
|
|
@@ -17932,7 +17933,7 @@ var AmisObjectListView = function (props) { return __awaiter(void 0, void 0, voi
|
|
|
17932
17933
|
if (!___default.has(data, 'uiSchema')) {
|
|
17933
17934
|
serviceData.uiSchema = uiSchema;
|
|
17934
17935
|
}
|
|
17935
|
-
serviceData.defaultListName = listName ? listName : (
|
|
17936
|
+
serviceData.defaultListName = listName ? listName : (_h = ___default.first(___default.values(uiSchema.list_views))) === null || _h === void 0 ? void 0 : _h.name;
|
|
17936
17937
|
// console.timeEnd('AmisObjectListView')
|
|
17937
17938
|
// console.log('serviceData===>', serviceData)
|
|
17938
17939
|
// console.log('headerSchema===>', headerSchema)
|
|
@@ -19263,7 +19264,7 @@ var AmisGlobalHeader = function (props) { return __awaiter(void 0, void 0, void
|
|
|
19263
19264
|
"actions": [
|
|
19264
19265
|
{
|
|
19265
19266
|
"actionType": "custom",
|
|
19266
|
-
"script": "
|
|
19267
|
+
"script": "window.goBack()"
|
|
19267
19268
|
}
|
|
19268
19269
|
]
|
|
19269
19270
|
}
|