@lingxiteam/assets 4.2.1-alpha.1 → 4.2.1-alpha.2

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.
@@ -1475,7 +1475,7 @@ var todoActionObject = {
1475
1475
  }];
1476
1476
  }
1477
1477
  }, {
1478
- key: 'callBack2'
1478
+ key: 'callback2'
1479
1479
  }]
1480
1480
  },
1481
1481
  setTreeSelectedKey: {
@@ -4613,15 +4613,18 @@ var todoActionObject = {
4613
4613
  fields: [{
4614
4614
  title: '选中key(@{name})',
4615
4615
  value: '$loopDataKeys_@{options.id}$',
4616
- type: 'array'
4616
+ type: 'array',
4617
+ description: '循环列表选择模式下,当前选中数据的标识集合'
4617
4618
  }, {
4618
4619
  title: '选中数据(@{name})',
4619
4620
  value: '$loopDataValues_@{options.id}$',
4620
- type: 'array'
4621
+ type: 'array',
4622
+ description: '循环列表选择模式下,当前选中的数据集合'
4621
4623
  }, {
4622
4624
  title: '选中索引值(@{name})',
4623
4625
  value: '$loopDataIndexs_@{options.id}$',
4624
- type: 'array'
4626
+ type: 'array',
4627
+ description: '点击循环项在列表中的索引值集合,从0开始计数,用于定位点击项在列表中的位置'
4625
4628
  }]
4626
4629
  }]
4627
4630
  },
@@ -60,7 +60,6 @@ export declare const getApiResponseFields: (lastObj: KV, context: CallbackContex
60
60
  isRoot: boolean;
61
61
  dataId: string | number;
62
62
  type: string;
63
- description: string;
64
63
  }[];
65
64
  /**
66
65
  * 提交业务对象
@@ -249,8 +249,7 @@ var addOpts = function addOpts(resAttrs, opts, lastObj, parentValue) {
249
249
  dataId: responseId,
250
250
  disabled: needResponseCodeKey ? false : disabled,
251
251
  serviceAttrType: c === null || c === void 0 ? void 0 : c.attrType,
252
- type: (_typeMap$c$attrType = typeMap[c.attrType]) !== null && _typeMap$c$attrType !== void 0 ? _typeMap$c$attrType : c.attrType,
253
- description: '-'
252
+ type: (_typeMap$c$attrType = typeMap[c.attrType]) !== null && _typeMap$c$attrType !== void 0 ? _typeMap$c$attrType : c.attrType
254
253
  });
255
254
  // 数组节点下的字段不能直接通过属性访问符访问,禁用掉
256
255
  if (c === null || c === void 0 ? void 0 : (_c$children = c.children) === null || _c$children === void 0 ? void 0 : _c$children.length) {
@@ -288,8 +287,7 @@ export var getApiResponseFields = function getApiResponseFields(lastObj, context
288
287
  // valueKey: lastObj.options.id,
289
288
  isRoot: true,
290
289
  dataId: responseId,
291
- type: 'object',
292
- description: '请求响应数据'
290
+ type: 'object'
293
291
  }];
294
292
  var _lastObj$options5 = lastObj.options,
295
293
  _source = _lastObj$options5._source,
@@ -358,9 +356,9 @@ export var getPostObjectResponseFields = function getPostObjectResponseFields(la
358
356
  if (source) {
359
357
  var _source$config, _source$config$option, _source$config$option2, _lastObj$options8, _source$config2, _source$config2$optio, _source$config2$optio2, _typeMap$source$type;
360
358
  opts.push({
361
- title: "\u8FD4\u56DE\u5BF9\u8C61-".concat(source === null || source === void 0 ? void 0 : (_source$config = source.config) === null || _source$config === void 0 ? void 0 : (_source$config$option = _source$config.options) === null || _source$config$option === void 0 ? void 0 : (_source$config$option2 = _source$config$option.object) === null || _source$config$option2 === void 0 ? void 0 : _source$config$option2.busiObjectName),
359
+ title: "\u8FD4\u56DE\u5BF9\u8C61-".concat(source === null || source === void 0 ? void 0 : (_source$config = source.config) === null || _source$config === void 0 ? void 0 : (_source$config$option = _source$config.options) === null || _source$config$option === void 0 ? void 0 : (_source$config$option2 = _source$config$option.service) === null || _source$config$option2 === void 0 ? void 0 : _source$config$option2.busiObjectName),
362
360
  actionTitle: lastObj === null || lastObj === void 0 ? void 0 : (_lastObj$options8 = lastObj.options) === null || _lastObj$options8 === void 0 ? void 0 : _lastObj$options8.actionTitle,
363
- value: "$reply_".concat(lastObj.options.id, "?.['").concat(source === null || source === void 0 ? void 0 : (_source$config2 = source.config) === null || _source$config2 === void 0 ? void 0 : (_source$config2$optio = _source$config2.options) === null || _source$config2$optio === void 0 ? void 0 : (_source$config2$optio2 = _source$config2$optio.object) === null || _source$config2$optio2 === void 0 ? void 0 : _source$config2$optio2.busiObjectId, "']$"),
361
+ value: "$reply_".concat(lastObj.options.id, "?.['").concat(source === null || source === void 0 ? void 0 : (_source$config2 = source.config) === null || _source$config2 === void 0 ? void 0 : (_source$config2$optio = _source$config2.options) === null || _source$config2$optio === void 0 ? void 0 : (_source$config2$optio2 = _source$config2$optio.service) === null || _source$config2$optio2 === void 0 ? void 0 : _source$config2$optio2.busiObjectId, "']$"),
364
362
  attrType: 'array',
365
363
  dataId: lastObj.dataId,
366
364
  type: (_typeMap$source$type = typeMap[source.type]) !== null && _typeMap$source$type !== void 0 ? _typeMap$source$type : source.type
@@ -1481,7 +1481,7 @@ var todoActionObject = {
1481
1481
  }];
1482
1482
  }
1483
1483
  }, {
1484
- key: 'callBack2'
1484
+ key: 'callback2'
1485
1485
  }]
1486
1486
  },
1487
1487
  setTreeSelectedKey: {
@@ -4619,15 +4619,18 @@ var todoActionObject = {
4619
4619
  fields: [{
4620
4620
  title: '选中key(@{name})',
4621
4621
  value: '$loopDataKeys_@{options.id}$',
4622
- type: 'array'
4622
+ type: 'array',
4623
+ description: '循环列表选择模式下,当前选中数据的标识集合'
4623
4624
  }, {
4624
4625
  title: '选中数据(@{name})',
4625
4626
  value: '$loopDataValues_@{options.id}$',
4626
- type: 'array'
4627
+ type: 'array',
4628
+ description: '循环列表选择模式下,当前选中的数据集合'
4627
4629
  }, {
4628
4630
  title: '选中索引值(@{name})',
4629
4631
  value: '$loopDataIndexs_@{options.id}$',
4630
- type: 'array'
4632
+ type: 'array',
4633
+ description: '点击循环项在列表中的索引值集合,从0开始计数,用于定位点击项在列表中的位置'
4631
4634
  }]
4632
4635
  }]
4633
4636
  },
@@ -60,7 +60,6 @@ export declare const getApiResponseFields: (lastObj: KV, context: CallbackContex
60
60
  isRoot: boolean;
61
61
  dataId: string | number;
62
62
  type: string;
63
- description: string;
64
63
  }[];
65
64
  /**
66
65
  * 提交业务对象
@@ -258,8 +258,7 @@ var addOpts = function addOpts(resAttrs, opts, lastObj, parentValue) {
258
258
  dataId: responseId,
259
259
  disabled: needResponseCodeKey ? false : disabled,
260
260
  serviceAttrType: c === null || c === void 0 ? void 0 : c.attrType,
261
- type: (_typeMap$c$attrType = typeMap[c.attrType]) !== null && _typeMap$c$attrType !== void 0 ? _typeMap$c$attrType : c.attrType,
262
- description: '-'
261
+ type: (_typeMap$c$attrType = typeMap[c.attrType]) !== null && _typeMap$c$attrType !== void 0 ? _typeMap$c$attrType : c.attrType
263
262
  });
264
263
  // 数组节点下的字段不能直接通过属性访问符访问,禁用掉
265
264
  if (c === null || c === void 0 ? void 0 : (_c$children = c.children) === null || _c$children === void 0 ? void 0 : _c$children.length) {
@@ -297,8 +296,7 @@ var getApiResponseFields = function getApiResponseFields(lastObj, context) {
297
296
  // valueKey: lastObj.options.id,
298
297
  isRoot: true,
299
298
  dataId: responseId,
300
- type: 'object',
301
- description: '请求响应数据'
299
+ type: 'object'
302
300
  }];
303
301
  var _lastObj$options5 = lastObj.options,
304
302
  _source = _lastObj$options5._source,
@@ -368,9 +366,9 @@ var getPostObjectResponseFields = function getPostObjectResponseFields(lastObj,
368
366
  if (source) {
369
367
  var _source$config, _source$config$option, _source$config$option2, _lastObj$options8, _source$config2, _source$config2$optio, _source$config2$optio2, _typeMap$source$type;
370
368
  opts.push({
371
- title: "\u8FD4\u56DE\u5BF9\u8C61-".concat(source === null || source === void 0 ? void 0 : (_source$config = source.config) === null || _source$config === void 0 ? void 0 : (_source$config$option = _source$config.options) === null || _source$config$option === void 0 ? void 0 : (_source$config$option2 = _source$config$option.object) === null || _source$config$option2 === void 0 ? void 0 : _source$config$option2.busiObjectName),
369
+ title: "\u8FD4\u56DE\u5BF9\u8C61-".concat(source === null || source === void 0 ? void 0 : (_source$config = source.config) === null || _source$config === void 0 ? void 0 : (_source$config$option = _source$config.options) === null || _source$config$option === void 0 ? void 0 : (_source$config$option2 = _source$config$option.service) === null || _source$config$option2 === void 0 ? void 0 : _source$config$option2.busiObjectName),
372
370
  actionTitle: lastObj === null || lastObj === void 0 ? void 0 : (_lastObj$options8 = lastObj.options) === null || _lastObj$options8 === void 0 ? void 0 : _lastObj$options8.actionTitle,
373
- value: "$reply_".concat(lastObj.options.id, "?.['").concat(source === null || source === void 0 ? void 0 : (_source$config2 = source.config) === null || _source$config2 === void 0 ? void 0 : (_source$config2$optio = _source$config2.options) === null || _source$config2$optio === void 0 ? void 0 : (_source$config2$optio2 = _source$config2$optio.object) === null || _source$config2$optio2 === void 0 ? void 0 : _source$config2$optio2.busiObjectId, "']$"),
371
+ value: "$reply_".concat(lastObj.options.id, "?.['").concat(source === null || source === void 0 ? void 0 : (_source$config2 = source.config) === null || _source$config2 === void 0 ? void 0 : (_source$config2$optio = _source$config2.options) === null || _source$config2$optio === void 0 ? void 0 : (_source$config2$optio2 = _source$config2$optio.service) === null || _source$config2$optio2 === void 0 ? void 0 : _source$config2$optio2.busiObjectId, "']$"),
374
372
  attrType: 'array',
375
373
  dataId: lastObj.dataId,
376
374
  type: (_typeMap$source$type = typeMap[source.type]) !== null && _typeMap$source$type !== void 0 ? _typeMap$source$type : source.type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingxiteam/assets",
3
- "version": "4.2.1-alpha.1",
3
+ "version": "4.2.1-alpha.2",
4
4
  "description": "灵犀低代码平台移动端 - 工具类",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",