bxs-tools-ui 1.2.17 → 1.2.19

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.
@@ -1178,7 +1178,7 @@ function initInsuranceData(insData) {
1178
1178
  e.placeholder = e.placeholder || '请输入保费';
1179
1179
  break;
1180
1180
  }
1181
- if (e.optConf && e.optConf.length) {
1181
+ if (e.optConf && e.optConf.length && e.optConf[1]) {
1182
1182
  var options = [];
1183
1183
  for (var i = e.optConf[0]; i <= e.optConf[1]; i += (e.optConf[2] && e.optConf[2] && e.optConf[2].step) || 1) {
1184
1184
  options.push({
@@ -1189,7 +1189,7 @@ function initInsuranceData(insData) {
1189
1189
  e.opts = options;
1190
1190
  }
1191
1191
  if (e.opts && e.opts.length) {
1192
- e.opts = e.opts.map(function (o) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, o), { isHide: o.isHide || null, isDisabled: o.isDisabled || null, isInvalid: o.isInvalid || null })); });
1192
+ e.opts = e.opts.map(function (o) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, o), { desc: o.desc || o.val, isHide: o.isHide || null, isDisabled: o.isDisabled || null, isInvalid: o.isInvalid || null })); });
1193
1193
  }
1194
1194
  });
1195
1195
  }
@@ -2035,7 +2035,7 @@ function productDataHandler(prodData, productVerifyData, personData) {
2035
2035
  var option = backupOpts_1.find(function (o) { return o.val == c.value; });
2036
2036
  return {
2037
2037
  val: c.value,
2038
- desc: c.desc,
2038
+ desc: c.desc || c.value,
2039
2039
  isHide: (option && option.isHide) || null,
2040
2040
  isDisabled: (option && option.isDisabled) || null,
2041
2041
  isInvalid: null
@@ -2093,7 +2093,7 @@ function productDataHandler(prodData, productVerifyData, personData) {
2093
2093
  return elementVerify && elementVerify.some(function (c) { return c.value == eleData.value; });
2094
2094
  }).map(function (v) { return ({
2095
2095
  val: v.value,
2096
- desc: v.desc,
2096
+ desc: v.desc || v.value,
2097
2097
  isHide: null,
2098
2098
  isDisabled: null,
2099
2099
  isInvalid: null
@@ -1178,7 +1178,7 @@ function initInsuranceData(insData) {
1178
1178
  e.placeholder = e.placeholder || '请输入保费';
1179
1179
  break;
1180
1180
  }
1181
- if (e.optConf && e.optConf.length) {
1181
+ if (e.optConf && e.optConf.length && e.optConf[1]) {
1182
1182
  var options = [];
1183
1183
  for (var i = e.optConf[0]; i <= e.optConf[1]; i += (e.optConf[2] && e.optConf[2] && e.optConf[2].step) || 1) {
1184
1184
  options.push({
@@ -1189,7 +1189,7 @@ function initInsuranceData(insData) {
1189
1189
  e.opts = options;
1190
1190
  }
1191
1191
  if (e.opts && e.opts.length) {
1192
- e.opts = e.opts.map(function (o) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, o), { isHide: o.isHide || null, isDisabled: o.isDisabled || null, isInvalid: o.isInvalid || null })); });
1192
+ e.opts = e.opts.map(function (o) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, o), { desc: o.desc || o.val, isHide: o.isHide || null, isDisabled: o.isDisabled || null, isInvalid: o.isInvalid || null })); });
1193
1193
  }
1194
1194
  });
1195
1195
  }
@@ -2035,7 +2035,7 @@ function productDataHandler(prodData, productVerifyData, personData) {
2035
2035
  var option = backupOpts_1.find(function (o) { return o.val == c.value; });
2036
2036
  return {
2037
2037
  val: c.value,
2038
- desc: c.desc,
2038
+ desc: c.desc || c.value,
2039
2039
  isHide: (option && option.isHide) || null,
2040
2040
  isDisabled: (option && option.isDisabled) || null,
2041
2041
  isInvalid: null
@@ -2093,7 +2093,7 @@ function productDataHandler(prodData, productVerifyData, personData) {
2093
2093
  return elementVerify && elementVerify.some(function (c) { return c.value == eleData.value; });
2094
2094
  }).map(function (v) { return ({
2095
2095
  val: v.value,
2096
- desc: v.desc,
2096
+ desc: v.desc || v.value,
2097
2097
  isHide: null,
2098
2098
  isDisabled: null,
2099
2099
  isInvalid: null
@@ -908,7 +908,7 @@ function initInsuranceData(insData) {
908
908
  e.placeholder = e.placeholder || '请输入保费';
909
909
  break;
910
910
  }
911
- if (e.optConf && e.optConf.length) {
911
+ if (e.optConf && e.optConf.length && e.optConf[1]) {
912
912
  var options = [];
913
913
  for (var i = e.optConf[0]; i <= e.optConf[1]; i += (e.optConf[2] && e.optConf[2] && e.optConf[2].step) || 1) {
914
914
  options.push({
@@ -919,7 +919,7 @@ function initInsuranceData(insData) {
919
919
  e.opts = options;
920
920
  }
921
921
  if (e.opts && e.opts.length) {
922
- e.opts = e.opts.map(function (o) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, o), { isHide: o.isHide || null, isDisabled: o.isDisabled || null, isInvalid: o.isInvalid || null })); });
922
+ e.opts = e.opts.map(function (o) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, o), { desc: o.desc || o.val, isHide: o.isHide || null, isDisabled: o.isDisabled || null, isInvalid: o.isInvalid || null })); });
923
923
  }
924
924
  });
925
925
  }
@@ -2317,7 +2317,7 @@ function productDataHandler(prodData, productVerifyData, personData) {
2317
2317
  var option = backupOpts_1.find(function (o) { return o.val == c.value; });
2318
2318
  return {
2319
2319
  val: c.value,
2320
- desc: c.desc,
2320
+ desc: c.desc || c.value,
2321
2321
  isHide: (option && option.isHide) || null,
2322
2322
  isDisabled: (option && option.isDisabled) || null,
2323
2323
  isInvalid: null
@@ -2375,7 +2375,7 @@ function productDataHandler(prodData, productVerifyData, personData) {
2375
2375
  return elementVerify && elementVerify.some(function (c) { return c.value == eleData.value; });
2376
2376
  }).map(function (v) { return ({
2377
2377
  val: v.value,
2378
- desc: v.desc,
2378
+ desc: v.desc || v.value,
2379
2379
  isHide: null,
2380
2380
  isDisabled: null,
2381
2381
  isInvalid: null
package/lib/index.js CHANGED
@@ -3192,7 +3192,7 @@ function initInsuranceData(insData) {
3192
3192
  e.placeholder = e.placeholder || '请输入保费';
3193
3193
  break;
3194
3194
  }
3195
- if (e.optConf && e.optConf.length) {
3195
+ if (e.optConf && e.optConf.length && e.optConf[1]) {
3196
3196
  var options = [];
3197
3197
  for (var i = e.optConf[0]; i <= e.optConf[1]; i += (e.optConf[2] && e.optConf[2] && e.optConf[2].step) || 1) {
3198
3198
  options.push({
@@ -3203,7 +3203,7 @@ function initInsuranceData(insData) {
3203
3203
  e.opts = options;
3204
3204
  }
3205
3205
  if (e.opts && e.opts.length) {
3206
- e.opts = e.opts.map(function (o) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, o), { isHide: o.isHide || null, isDisabled: o.isDisabled || null, isInvalid: o.isInvalid || null })); });
3206
+ e.opts = e.opts.map(function (o) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, o), { desc: o.desc || o.val, isHide: o.isHide || null, isDisabled: o.isDisabled || null, isInvalid: o.isInvalid || null })); });
3207
3207
  }
3208
3208
  });
3209
3209
  }
@@ -6187,7 +6187,7 @@ function productDataHandler(prodData, productVerifyData, personData) {
6187
6187
  var option = backupOpts_1.find(function (o) { return o.val == c.value; });
6188
6188
  return {
6189
6189
  val: c.value,
6190
- desc: c.desc,
6190
+ desc: c.desc || c.value,
6191
6191
  isHide: (option && option.isHide) || null,
6192
6192
  isDisabled: (option && option.isDisabled) || null,
6193
6193
  isInvalid: null
@@ -6245,7 +6245,7 @@ function productDataHandler(prodData, productVerifyData, personData) {
6245
6245
  return elementVerify && elementVerify.some(function (c) { return c.value == eleData.value; });
6246
6246
  }).map(function (v) { return ({
6247
6247
  val: v.value,
6248
- desc: v.desc,
6248
+ desc: v.desc || v.value,
6249
6249
  isHide: null,
6250
6250
  isDisabled: null,
6251
6251
  isInvalid: null
@@ -728,7 +728,7 @@ function productDataHandler(prodData, productVerifyData, personData) {
728
728
  var option = backupOpts_1.find(function (o) { return o.val == c.value; });
729
729
  return {
730
730
  val: c.value,
731
- desc: c.desc,
731
+ desc: c.desc || c.value,
732
732
  isHide: (option && option.isHide) || null,
733
733
  isDisabled: (option && option.isDisabled) || null,
734
734
  isInvalid: null
@@ -786,7 +786,7 @@ function productDataHandler(prodData, productVerifyData, personData) {
786
786
  return elementVerify && elementVerify.some(function (c) { return c.value == eleData.value; });
787
787
  }).map(function (v) { return ({
788
788
  val: v.value,
789
- desc: v.desc,
789
+ desc: v.desc || v.value,
790
790
  isHide: null,
791
791
  isDisabled: null,
792
792
  isInvalid: null
@@ -4905,7 +4905,7 @@ function initInsuranceData(insData) {
4905
4905
  e.placeholder = e.placeholder || '请输入保费';
4906
4906
  break;
4907
4907
  }
4908
- if (e.optConf && e.optConf.length) {
4908
+ if (e.optConf && e.optConf.length && e.optConf[1]) {
4909
4909
  var options = [];
4910
4910
  for (var i = e.optConf[0]; i <= e.optConf[1]; i += (e.optConf[2] && e.optConf[2] && e.optConf[2].step) || 1) {
4911
4911
  options.push({
@@ -4916,7 +4916,7 @@ function initInsuranceData(insData) {
4916
4916
  e.opts = options;
4917
4917
  }
4918
4918
  if (e.opts && e.opts.length) {
4919
- e.opts = e.opts.map(function (o) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, o), { isHide: o.isHide || null, isDisabled: o.isDisabled || null, isInvalid: o.isInvalid || null })); });
4919
+ e.opts = e.opts.map(function (o) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, o), { desc: o.desc || o.val, isHide: o.isHide || null, isDisabled: o.isDisabled || null, isInvalid: o.isInvalid || null })); });
4920
4920
  }
4921
4921
  });
4922
4922
  }
@@ -728,7 +728,7 @@ function productDataHandler(prodData, productVerifyData, personData) {
728
728
  var option = backupOpts_1.find(function (o) { return o.val == c.value; });
729
729
  return {
730
730
  val: c.value,
731
- desc: c.desc,
731
+ desc: c.desc || c.value,
732
732
  isHide: (option && option.isHide) || null,
733
733
  isDisabled: (option && option.isDisabled) || null,
734
734
  isInvalid: null
@@ -786,7 +786,7 @@ function productDataHandler(prodData, productVerifyData, personData) {
786
786
  return elementVerify && elementVerify.some(function (c) { return c.value == eleData.value; });
787
787
  }).map(function (v) { return ({
788
788
  val: v.value,
789
- desc: v.desc,
789
+ desc: v.desc || v.value,
790
790
  isHide: null,
791
791
  isDisabled: null,
792
792
  isInvalid: null
@@ -4990,7 +4990,7 @@ function initInsuranceData(insData) {
4990
4990
  e.placeholder = e.placeholder || '请输入保费';
4991
4991
  break;
4992
4992
  }
4993
- if (e.optConf && e.optConf.length) {
4993
+ if (e.optConf && e.optConf.length && e.optConf[1]) {
4994
4994
  var options = [];
4995
4995
  for (var i = e.optConf[0]; i <= e.optConf[1]; i += (e.optConf[2] && e.optConf[2] && e.optConf[2].step) || 1) {
4996
4996
  options.push({
@@ -5001,7 +5001,7 @@ function initInsuranceData(insData) {
5001
5001
  e.opts = options;
5002
5002
  }
5003
5003
  if (e.opts && e.opts.length) {
5004
- e.opts = e.opts.map(function (o) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, o), { isHide: o.isHide || null, isDisabled: o.isDisabled || null, isInvalid: o.isInvalid || null })); });
5004
+ e.opts = e.opts.map(function (o) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, o), { desc: o.desc || o.val, isHide: o.isHide || null, isDisabled: o.isDisabled || null, isInvalid: o.isInvalid || null })); });
5005
5005
  }
5006
5006
  });
5007
5007
  }
@@ -1535,7 +1535,7 @@ function initInsuranceData(insData) {
1535
1535
  e.placeholder = e.placeholder || '请输入保费';
1536
1536
  break;
1537
1537
  }
1538
- if (e.optConf && e.optConf.length) {
1538
+ if (e.optConf && e.optConf.length && e.optConf[1]) {
1539
1539
  var options = [];
1540
1540
  for (var i = e.optConf[0]; i <= e.optConf[1]; i += (e.optConf[2] && e.optConf[2] && e.optConf[2].step) || 1) {
1541
1541
  options.push({
@@ -1546,7 +1546,7 @@ function initInsuranceData(insData) {
1546
1546
  e.opts = options;
1547
1547
  }
1548
1548
  if (e.opts && e.opts.length) {
1549
- e.opts = e.opts.map(function (o) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, o), { isHide: o.isHide || null, isDisabled: o.isDisabled || null, isInvalid: o.isInvalid || null })); });
1549
+ e.opts = e.opts.map(function (o) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, o), { desc: o.desc || o.val, isHide: o.isHide || null, isDisabled: o.isDisabled || null, isInvalid: o.isInvalid || null })); });
1550
1550
  }
1551
1551
  });
1552
1552
  }
@@ -3804,7 +3804,7 @@ function productDataHandler(prodData, productVerifyData, personData) {
3804
3804
  var option = backupOpts_1.find(function (o) { return o.val == c.value; });
3805
3805
  return {
3806
3806
  val: c.value,
3807
- desc: c.desc,
3807
+ desc: c.desc || c.value,
3808
3808
  isHide: (option && option.isHide) || null,
3809
3809
  isDisabled: (option && option.isDisabled) || null,
3810
3810
  isInvalid: null
@@ -3862,7 +3862,7 @@ function productDataHandler(prodData, productVerifyData, personData) {
3862
3862
  return elementVerify && elementVerify.some(function (c) { return c.value == eleData.value; });
3863
3863
  }).map(function (v) { return ({
3864
3864
  val: v.value,
3865
- desc: v.desc,
3865
+ desc: v.desc || v.value,
3866
3866
  isHide: null,
3867
3867
  isDisabled: null,
3868
3868
  isInvalid: null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bxs-tools-ui",
3
- "version": "1.2.17",
3
+ "version": "1.2.19",
4
4
  "description": "微易前端业务组件",
5
5
  "main": "lib/index.js",
6
6
  "files": [
@@ -53,7 +53,7 @@ export function initInsuranceData(insData : IProdInsurance) : void {
53
53
  e.placeholder = e.placeholder || '请输入保费';
54
54
  break;
55
55
  }
56
- if (e.optConf && e.optConf.length) {
56
+ if (e.optConf && e.optConf.length && e.optConf[1]) {
57
57
  let options : any = [];
58
58
  for (let i = e.optConf[0]; i <= e.optConf[1]; i += (e.optConf[2] && e.optConf[2] && e.optConf[2].step) || 1) {
59
59
  options.push({
@@ -66,6 +66,7 @@ export function initInsuranceData(insData : IProdInsurance) : void {
66
66
  if (e.opts && e.opts.length) {
67
67
  e.opts = e.opts.map(o => ({
68
68
  ...o,
69
+ desc: o.desc || o.val,
69
70
  isHide: o.isHide || null,
70
71
  isDisabled: o.isDisabled || null,
71
72
  isInvalid: o.isInvalid || null
@@ -176,7 +176,7 @@ export function productDataHandler(prodData : IPbProduct, productVerifyData : an
176
176
  const option = backupOpts.find(o => o.val == c.value);
177
177
  return {
178
178
  val: c.value,
179
- desc: c.desc,
179
+ desc: c.desc || c.value,
180
180
  isHide: (option && option.isHide) || null,
181
181
  isDisabled: (option && option.isDisabled) || null,
182
182
  isInvalid: null
@@ -243,7 +243,7 @@ export function productDataHandler(prodData : IPbProduct, productVerifyData : an
243
243
  return elementVerify && elementVerify.some(c => c.value == eleData.value)
244
244
  }).map(v => ({
245
245
  val: v.value,
246
- desc: v.desc,
246
+ desc: v.desc || v.value,
247
247
  isHide: null,
248
248
  isDisabled: null,
249
249
  isInvalid: null