@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.umd.js CHANGED
@@ -6473,13 +6473,17 @@ setTimeout(()=>{
6473
6473
  let valueField = mainObject.key_field || '_id';
6474
6474
  const api = await getApi(mainObject, null, fields, {count: options.queryCount, alias: 'rows', limit: top, queryOptions: `filters: {__filters}, top: {__top}, skip: {__skip}, sort: "{__sort}"`});
6475
6475
  api.data.$term = "$term";
6476
+ api.data.term = "$term";
6476
6477
  api.data.$self = "$$";
6478
+ api.data.self = "$$";
6477
6479
  api.data.filter = "$filter";
6478
6480
  api.data.loaded = "${loaded}";
6479
6481
  api.data.listViewId = "${listViewId}";
6480
6482
  api.requestAdaptor = `
6481
6483
  // selfData 中的数据由 CRUD 控制. selfData中,只能获取到 CRUD 给定的data. 无法从数据链中获取数据.
6482
6484
  let selfData = JSON.parse(JSON.stringify(api.data.$self));
6485
+ // 保留一份初始data,以供自定义发送适配器中获取原始数据。
6486
+ const data = _.cloneDeep(api.data);
6483
6487
  try{
6484
6488
  // TODO: 不应该直接在这里取localStorage,应该从外面传入
6485
6489
  const listViewId = api.data.listViewId;