@steedos-widgets/amis-object 1.2.6-beta.13 → 1.2.6-beta.14

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.
@@ -1232,11 +1232,13 @@ body {
1232
1232
  flex-direction: unset !important;
1233
1233
  }
1234
1234
  .steedos-global-footer-popup {
1235
- height: calc(100vh - 125px);
1236
1235
  width: 100%;
1236
+ top: 54px !important;
1237
+ bottom: 64px;
1238
+ position: fixed;
1237
1239
  }
1238
1240
  .steedos-global-footer-popup .antd-Nav-Menu {
1239
- height: 101.1%;
1241
+ height: 100%;
1240
1242
  overflow: auto;
1241
1243
  box-shadow: none;
1242
1244
  }
@@ -1261,18 +1263,30 @@ body {
1261
1263
  .steedos-object-listview .antd-Table-content {
1262
1264
  max-height: calc(100vh - 263px);
1263
1265
  }
1266
+ .steedos-global-footer-root .antd-Nav-Menu-horizontal:after {
1267
+ /*手机端底部导航左右间隔不平衡*/
1268
+ content: unset;
1269
+ }
1264
1270
  }
1265
1271
  .steedos-global-footer ul {
1266
1272
  order: unset !important;
1267
1273
  }
1268
1274
 
1269
1275
  .sidebar-wrapper {
1270
- transition: 0.5s ease translate;
1271
- translate: -100% 0;
1276
+ transition: 0.5s ease transform;
1272
1277
  will-change: transform;
1278
+ transform: translate(-100%, 0);
1279
+ -webkit-transform: translate(-100%, 0);
1280
+ -moz-transform: translate(-100%, 0);
1281
+ -ms-transform: translate(-100%, 0);
1282
+ -o-transform: translate(-100%, 0);
1273
1283
  }
1274
1284
  body.sidebar-open .sidebar-wrapper {
1275
- translate: 0 0;
1285
+ transform: translate(0, 0);
1286
+ -webkit-transform: translate(0, 0);
1287
+ -moz-transform: translate(0, 0);
1288
+ -ms-transform: translate(0, 0);
1289
+ -o-transform: translate(0, 0);
1276
1290
  }
1277
1291
  body.sidebar #sidebar {
1278
1292
  margin-top: 50px;
@@ -3290,8 +3290,8 @@
3290
3290
  },
3291
3291
  {
3292
3292
  "type": "dropdown-button",
3293
- "className": "",
3294
- "label": "\${uiSchema.list_views[listName].label}",
3293
+ "className": "",
3294
+ "label": "\${listName ? uiSchema.list_views[listName].label : uiSchema.list_views[defaultListName].label}",
3295
3295
  "rightIcon": "fa fa-caret-down",
3296
3296
  "size": "sm",
3297
3297
  "hideCaret": true,
@@ -3699,7 +3699,7 @@
3699
3699
  "icon": "fa fa-table-columns",
3700
3700
  "btnClassName": "antd-Button--iconOnly bg-white p-2 rounded border-gray-300 text-gray-500",
3701
3701
  "align": "right",
3702
- "visibleOn": "${window:innerWidth > 768}",
3702
+ "visibleOn": "${window:innerWidth > 768 && !!!isLookup}",
3703
3703
  "buttons": [
3704
3704
  {
3705
3705
  "label": "显示为",
@@ -5040,6 +5040,8 @@ setTimeout(()=>{
5040
5040
  ...ctx
5041
5041
  });
5042
5042
 
5043
+ pickerSchema.affixHeader = false;
5044
+
5043
5045
  var headerToolbarItems = [];
5044
5046
  const isMobile = window.innerWidth < 768;
5045
5047
  if(referenceTo.objectName === "space_users" && field.reference_to_field === "user" && !isMobile){
@@ -5057,14 +5059,11 @@ setTimeout(()=>{
5057
5059
  pickerSchema.headerToolbar.push(new_button);
5058
5060
  }
5059
5061
  pickerSchema.footerToolbar = refObjectConfig.enable_tree ? [] : getObjectFooterToolbar();
5060
- //TODO: 等待放大镜bug修复,if会去掉,始终显示放大镜
5061
- if(referenceTo.objectName != "space_users" || field.reference_to_field != "user"){
5062
- if (ctx.filterVisible !== false) {
5063
- pickerSchema.filter = await getObjectFilter(refObjectConfig, fields, {
5064
- isLookup: true,
5065
- ...ctx
5066
- });
5067
- }
5062
+ if (ctx.filterVisible !== false) {
5063
+ pickerSchema.filter = await getObjectFilter(refObjectConfig, fields, {
5064
+ isLookup: true,
5065
+ ...ctx
5066
+ });
5068
5067
  }
5069
5068
  pickerSchema.data = Object.assign({}, pickerSchema.data, {
5070
5069
  "&": "$$",
@@ -5310,8 +5309,10 @@ setTimeout(()=>{
5310
5309
 
5311
5310
  if(referenceTo.objectName === "space_users" && field.reference_to_field === "user"){
5312
5311
  if(ctx.idsDependOn || field.amis){
5312
+ // ids人员点选模式
5313
5313
  return await lookupToAmisIdsPicker(field, readonly, ctx);
5314
5314
  }
5315
+ // 左侧树右侧人员列表的下拉框模式,不再支持,而是执行下面的lookupToAmisPicker函数弹出选人窗口
5315
5316
  // return await lookupToAmisSelectUser(field, readonly, ctx);
5316
5317
  }
5317
5318
 
@@ -5412,6 +5413,9 @@ setTimeout(()=>{
5412
5413
  top: top,
5413
5414
  ...ctx
5414
5415
  });
5416
+
5417
+ pickerSchema.affixHeader = false;
5418
+
5415
5419
  }
5416
5420
 
5417
5421
  const data = {
@@ -5441,7 +5445,6 @@ setTimeout(()=>{
5441
5445
  if(readonly){
5442
5446
  data.tpl = await getLookupTpl(field, ctx);
5443
5447
  }
5444
-
5445
5448
  return data;
5446
5449
  }
5447
5450
 
@@ -7616,7 +7619,11 @@ setTimeout(()=>{
7616
7619
  filters = systemFilters;
7617
7620
  };
7618
7621
  if(api.data.$self.additionalFilters){
7619
- userFilters.push(api.data.$self.additionalFilters)
7622
+ if(_.isString(api.data.$self.additionalFilters)){
7623
+ userFilters.push(eval(api.data.$self.additionalFilters))
7624
+ }else{
7625
+ userFilters.push(api.data.$self.additionalFilters)
7626
+ }
7620
7627
  }
7621
7628
 
7622
7629
  if(api.data.$self._isRelated){
@@ -12690,8 +12697,9 @@ setTimeout(()=>{
12690
12697
 
12691
12698
  var AmisObjectListView = function (props) { return __awaiter(void 0, void 0, void 0, function () {
12692
12699
  var $schema, top, perPage, _a, showHeader, data, defaultData, _b, className, crudClassName, _c, showDisplayAs, sideSchema, _e, filterVisible, headerToolbarItems, headerSchema, ctx, listName, defaults, objectApiName, displayAs, formFactor, isMobile, uiSchema, listView, schemaKeys, listSchema, setDataToComponentId, amisSchemaData, listViewId, listViewSchemaProps, serviceData;
12693
- return __generator(this, function (_f) {
12694
- switch (_f.label) {
12700
+ var _f;
12701
+ return __generator(this, function (_g) {
12702
+ switch (_g.label) {
12695
12703
  case 0:
12696
12704
  // console.time('AmisObjectListView')
12697
12705
  console.log("AmisObjectListView props", props);
@@ -12724,7 +12732,7 @@ setTimeout(()=>{
12724
12732
  }
12725
12733
  return [4 /*yield*/, getUISchema(objectApiName, false)];
12726
12734
  case 1:
12727
- uiSchema = _f.sent();
12735
+ uiSchema = _g.sent();
12728
12736
  listView = ___default.find(uiSchema.list_views, function (listView, name) {
12729
12737
  // 传入listViewName空值则取第一个
12730
12738
  if (!listName) {
@@ -12788,6 +12796,7 @@ setTimeout(()=>{
12788
12796
  if (!___default.has(data, 'uiSchema')) {
12789
12797
  serviceData.uiSchema = uiSchema;
12790
12798
  }
12799
+ serviceData.defaultListName = (_f = ___default.first(___default.values(uiSchema.list_views))) === null || _f === void 0 ? void 0 : _f.name;
12791
12800
  // console.timeEnd('AmisObjectListView')
12792
12801
  // console.log('serviceData===>', serviceData)
12793
12802
  // console.log('headerSchema===>', headerSchema)