@steedos-widgets/amis-lib 1.1.11 → 1.1.12-beta.1

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/index.esm.js CHANGED
@@ -6447,13 +6447,17 @@ async function getTableApi(mainObject, fields, options){
6447
6447
  let valueField = mainObject.key_field || '_id';
6448
6448
  const api = await getApi(mainObject, null, fields, {count: options.queryCount, alias: 'rows', limit: top, queryOptions: `filters: {__filters}, top: {__top}, skip: {__skip}, sort: "{__sort}"`});
6449
6449
  api.data.$term = "$term";
6450
+ api.data.term = "$term";
6450
6451
  api.data.$self = "$$";
6452
+ api.data.self = "$$";
6451
6453
  api.data.filter = "$filter";
6452
6454
  api.data.loaded = "${loaded}";
6453
6455
  api.data.listViewId = "${listViewId}";
6454
6456
  api.requestAdaptor = `
6455
6457
  // selfData 中的数据由 CRUD 控制. selfData中,只能获取到 CRUD 给定的data. 无法从数据链中获取数据.
6456
6458
  let selfData = JSON.parse(JSON.stringify(api.data.$self));
6459
+ // 保留一份初始data,以供自定义发送适配器中获取原始数据。
6460
+ const data = _.cloneDeep(api.data);
6457
6461
  try{
6458
6462
  // TODO: 不应该直接在这里取localStorage,应该从外面传入
6459
6463
  const listViewId = api.data.listViewId;