cnhis-design-vue 0.2.20-beta → 0.2.24-beta

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.
Files changed (144) hide show
  1. package/lib/cui.common.js +1231 -2422
  2. package/lib/cui.umd.js +1231 -2422
  3. package/lib/cui.umd.min.js +63 -63
  4. package/package.json +2 -2
  5. package/packages/big-table/src/BigTable.vue +1 -0
  6. package/packages/big-table/src/assets/style/table-base.less +5 -0
  7. package/packages/big-table/src/components/TextOverTooltip.vue +1 -1
  8. package/packages/multi-chat/chat/index.vue +1 -1
  9. package/packages/multi-chat/components/user-status.vue +1 -1
  10. package/packages/scale-view/answerParse.vue +4 -4
  11. package/packages/select-label/label-classify.vue +129 -0
  12. package/packages/select-label/labelFormContent.vue +263 -130
  13. package/packages/select-label/select-label.vue +111 -18
  14. package/packages/table-filter/src/base-search-com/BaseSearch.vue +2 -1
  15. package/packages/table-filter/src/components/search-modal/set-classification.vue +19 -1
  16. package/packages/table-filter/src/mixins/mixins.js +10 -2
  17. package/packages/table-filter/src/quick-search/QuickSearch.vue +16 -7
  18. package/es/affix/index.js +0 -3008
  19. package/es/age/index.js +0 -3767
  20. package/es/age/style.css +0 -1
  21. package/es/alert/index.js +0 -3008
  22. package/es/anchor/index.js +0 -3021
  23. package/es/auto-complete/index.js +0 -3008
  24. package/es/avatar/index.js +0 -3008
  25. package/es/back-top/index.js +0 -3008
  26. package/es/badge/index.js +0 -3008
  27. package/es/base/index.js +0 -2896
  28. package/es/big-table/index.js +0 -19626
  29. package/es/big-table/style.css +0 -1
  30. package/es/breadcrumb/index.js +0 -3032
  31. package/es/button/index.js +0 -9128
  32. package/es/button/style.css +0 -1
  33. package/es/calendar/index.js +0 -3008
  34. package/es/captcha/index.js +0 -3618
  35. package/es/captcha/style.css +0 -1
  36. package/es/card/index.js +0 -3032
  37. package/es/carousel/index.js +0 -3008
  38. package/es/cascader/index.js +0 -3008
  39. package/es/checkbox/index.js +0 -3344
  40. package/es/checkbox/style.css +0 -1
  41. package/es/col/index.js +0 -3009
  42. package/es/collapse/index.js +0 -3021
  43. package/es/color-picker/index.js +0 -3532
  44. package/es/color-picker/style.css +0 -1
  45. package/es/comment/index.js +0 -3008
  46. package/es/config-provider/index.js +0 -3008
  47. package/es/date-picker/index.js +0 -3043
  48. package/es/descriptions/index.js +0 -3021
  49. package/es/divider/index.js +0 -3008
  50. package/es/drag-layout/index.js +0 -4814
  51. package/es/drag-layout/style.css +0 -1
  52. package/es/drawer/index.js +0 -3008
  53. package/es/dropdown/index.js +0 -3008
  54. package/es/editor/index.js +0 -3273
  55. package/es/editor/style.css +0 -1
  56. package/es/empty/index.js +0 -3008
  57. package/es/fabric-chart/index.js +0 -9844
  58. package/es/fabric-chart/style.css +0 -1
  59. package/es/form/index.js +0 -3019
  60. package/es/form-model/index.js +0 -3018
  61. package/es/grid/index.js +0 -3776
  62. package/es/icon/index.js +0 -2962
  63. package/es/img/calling.ba1a517f.png +0 -0
  64. package/es/img/failure.96c6f004.png +0 -0
  65. package/es/img/no-permission.3aa0dddb.png +0 -0
  66. package/es/img/nodata.bbccf960.png +0 -0
  67. package/es/index/index.js +0 -110944
  68. package/es/index/style.css +0 -1
  69. package/es/input/index.js +0 -4384
  70. package/es/input/style.css +0 -1
  71. package/es/input-number/index.js +0 -3008
  72. package/es/keep-cache/index.js +0 -3288
  73. package/es/layout/index.js +0 -3054
  74. package/es/list/index.js +0 -3032
  75. package/es/locale-provider/index.js +0 -3008
  76. package/es/map/index.js +0 -3677
  77. package/es/map/style.css +0 -1
  78. package/es/media/msgTip.6865f0c7.mp3 +0 -0
  79. package/es/mentions/index.js +0 -3021
  80. package/es/menu/index.js +0 -3054
  81. package/es/message/index.js +0 -2896
  82. package/es/modal/index.js +0 -2962
  83. package/es/multi-chat/index.js +0 -24268
  84. package/es/multi-chat/style.css +0 -1
  85. package/es/multi-chat-client/index.js +0 -18293
  86. package/es/multi-chat-client/style.css +0 -1
  87. package/es/multi-chat-history/index.js +0 -4571
  88. package/es/multi-chat-history/style.css +0 -1
  89. package/es/multi-chat-record/index.js +0 -4831
  90. package/es/multi-chat-record/style.css +0 -1
  91. package/es/multi-chat-setting/index.js +0 -13452
  92. package/es/multi-chat-setting/style.css +0 -1
  93. package/es/multi-chat-sip/index.js +0 -3313
  94. package/es/multi-chat-sip/style.css +0 -1
  95. package/es/notification/index.js +0 -2896
  96. package/es/page-header/index.js +0 -3008
  97. package/es/pagination/index.js +0 -3008
  98. package/es/popconfirm/index.js +0 -3008
  99. package/es/popover/index.js +0 -3008
  100. package/es/progress/index.js +0 -3008
  101. package/es/radio/index.js +0 -3335
  102. package/es/radio/style.css +0 -1
  103. package/es/rate/index.js +0 -3008
  104. package/es/result/index.js +0 -3008
  105. package/es/row/index.js +0 -3008
  106. package/es/scale-view/index.js +0 -18009
  107. package/es/scale-view/style.css +0 -1
  108. package/es/select/index.js +0 -4567
  109. package/es/select/style.css +0 -1
  110. package/es/select-label/index.js +0 -5226
  111. package/es/select-label/style.css +0 -1
  112. package/es/select-person/index.js +0 -5427
  113. package/es/select-person/style.css +0 -1
  114. package/es/skeleton/index.js +0 -3008
  115. package/es/slider/index.js +0 -3008
  116. package/es/space/index.js +0 -3008
  117. package/es/spin/index.js +0 -3008
  118. package/es/statistic/index.js +0 -3021
  119. package/es/steps/index.js +0 -3021
  120. package/es/switch/index.js +0 -3008
  121. package/es/table-filter/index.js +0 -24120
  122. package/es/table-filter/style.css +0 -1
  123. package/es/tabs/index.js +0 -3021
  124. package/es/tag/index.js +0 -3909
  125. package/es/tag/style.css +0 -1
  126. package/es/time-picker/index.js +0 -3008
  127. package/es/timeline/index.js +0 -3018
  128. package/es/tooltip/index.js +0 -3008
  129. package/es/transfer/index.js +0 -3008
  130. package/es/tree/index.js +0 -3021
  131. package/es/tree-select/index.js +0 -3021
  132. package/es/upload/index.js +0 -3008
  133. package/es/utils/UniRTCv2.js +0 -586
  134. package/es/utils/chatFetch.js +0 -85
  135. package/es/utils/clickoutside.js +0 -76
  136. package/es/utils/crypto.js +0 -40
  137. package/es/utils/kty-sdk.js +0 -1030
  138. package/es/utils/kty.min-1.0.0.js +0 -6
  139. package/es/utils/sip-device.js +0 -112
  140. package/es/utils/time-domain.js +0 -195
  141. package/es/utils/utils-map.js +0 -530
  142. package/es/utils/vexutils.js +0 -963
  143. package/es/verification-code/index.js +0 -3487
  144. package/es/verification-code/style.css +0 -1
@@ -1,530 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.default = void 0;
5
-
6
- require("ant-design-vue/es/message/style");
7
-
8
- var _message = _interopRequireDefault(require("ant-design-vue/es/message"));
9
-
10
- var _moment = _interopRequireDefault(require("moment"));
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15
-
16
- var _toString = Object.prototype.toString;
17
- var _default = {
18
- isJSON: function isJSON(str) {
19
- if (typeof str == 'string') {
20
- try {
21
- var obj = JSON.parse(str);
22
-
23
- if (typeof obj == 'object' && obj) {
24
- return true;
25
- } else {
26
- return false;
27
- }
28
- } catch (e) {
29
- return false;
30
- }
31
- }
32
-
33
- return false;
34
- },
35
- isPlainObject: function isPlainObject(obj) {
36
- return _toString.call(obj) === '[object Object]';
37
- },
38
- isObject: function isObject(obj) {
39
- return obj !== null && typeof obj === 'object';
40
- },
41
- isArray: function isArray(list) {
42
- return Array.isArray(list);
43
- },
44
- isEmpty: function isEmpty(obj) {
45
- for (var key in obj) {
46
- return false;
47
- }
48
-
49
- return true;
50
- },
51
- isString: function isString(val) {
52
- return _toString.call(val) === '[object String]';
53
- },
54
- isNumber: function isNumber(val) {
55
- return _toString.call(val) === '[object Number]';
56
- },
57
- parseCondition: function parseCondition() {},
58
- toDateString: function toDateString(time, format) {
59
- return (0, _moment.default)(time).format(format);
60
- },
61
-
62
- /**
63
- *
64
- * 时间转换
65
- * @param {type} type 时间戳类型
66
- * @param {time} time 时间戳
67
- */
68
- formatTime: function formatTime(type, time) {
69
- var format = '';
70
- if (!time) return '';
71
-
72
- switch (type) {
73
- case 'DATE':
74
- format = 'yyyy-MM-dd';
75
- break;
76
-
77
- case 'DATETIME':
78
- format = 'yyyy-MM-dd HH:mm:ss';
79
- break;
80
-
81
- case 'TIME':
82
- format = 'HH:mm:ss';
83
- break;
84
-
85
- case 'MOUTH':
86
- format = 'MM-dd';
87
- break;
88
-
89
- case 'DATETIMESTR':
90
- format = 'yyyy年M月dd日 HH:mm';
91
- break;
92
-
93
- case 'MOUTHTIME':
94
- format = 'M月d日 HH:mm';
95
- break;
96
-
97
- case 'HM':
98
- format = ' HH:mm';
99
- break;
100
-
101
- default:
102
- break;
103
- }
104
-
105
- return (0, _moment.default)(time).format(format);
106
- },
107
- filterOption: function filterOption(input, option) {
108
- var _option$componentOpti;
109
-
110
- return ((_option$componentOpti = option.componentOptions.children[0]) == null ? void 0 : _option$componentOpti.text.toLowerCase().indexOf(input.toLowerCase())) >= 0;
111
- },
112
- // color 获取 alpha
113
- getAlphafloat: function getAlphafloat(a, alpha) {
114
- if (typeof a !== 'undefined') {
115
- return parseFloat((a / 256).toFixed(2));
116
- }
117
-
118
- if (typeof alpha !== 'undefined') {
119
- if (1 < alpha && alpha <= 100) {
120
- return parseFloat((alpha / 100).toFixed(2));
121
- }
122
-
123
- if (0 <= alpha && alpha <= 1) {
124
- return parseFloat(alpha.toFixed(2));
125
- }
126
- }
127
-
128
- return 1;
129
- },
130
- // hex 转 rgba
131
- hexToRGBA: function hexToRGBA(hex, alpha) {
132
- var isValidHex = function isValidHex(hex) {
133
- return /^#([A-Fa-f0-9]{3,4}){1,2}$/.test(hex);
134
- };
135
-
136
- var getChunksFromString = function getChunksFromString(st, chunkSize) {
137
- return st.match(new RegExp(".{" + chunkSize + "}", 'g'));
138
- };
139
-
140
- var convertHexUnitTo256 = function convertHexUnitTo256(hexStr) {
141
- return parseInt(hexStr.repeat(2 / hexStr.length), 16);
142
- };
143
-
144
- if (!isValidHex(hex)) {
145
- console.log('Invalid HEX');
146
- return '';
147
- }
148
-
149
- var chunkSize = Math.floor((hex.length - 1) / 3);
150
- var hexArr = getChunksFromString(hex.slice(1), chunkSize);
151
-
152
- var _hexArr$map = hexArr.map(convertHexUnitTo256),
153
- r = _hexArr$map[0],
154
- g = _hexArr$map[1],
155
- b = _hexArr$map[2],
156
- a = _hexArr$map[3];
157
-
158
- return {
159
- r: r,
160
- g: g,
161
- b: b,
162
- a: this.getAlphafloat(a, alpha)
163
- };
164
- },
165
- // 标签样式解析
166
- handleLabelColor: function handleLabelColor(item, isSelect) {
167
- var _item$color;
168
-
169
- var tempColor = '#5585f5';
170
- var oldColorMap = {
171
- blue: '#0000ff',
172
- sky: '#87ceeb',
173
- azure: '#f0ffff',
174
- palegreen: '#98fb98',
175
- yellow: '#ffff00',
176
- darkorange: '#ff8c00',
177
- magenta: '#ff00ff',
178
- purple: '#800080',
179
- maroon: '#800000',
180
- orange: '#ffa500',
181
- green: '#008000',
182
- red: '#ff0000',
183
- grey: '#808080'
184
- };
185
-
186
- if (item != null && (_item$color = item.color) != null && _item$color.includes('-')) {
187
- var str = item.color.split('-')[1];
188
- tempColor = oldColorMap[str] || '#5585f5';
189
- } else {
190
- tempColor = item.color || '#5585f5';
191
- }
192
-
193
- var tempRgba = this.hexToRGBA(tempColor) || {
194
- r: 85,
195
- g: 133,
196
- b: 245,
197
- a: 1
198
- };
199
-
200
- if (isSelect) {
201
- return {
202
- color: '#fff',
203
- background: "rgba(" + tempRgba.r + ", " + tempRgba.g + ", " + tempRgba.b + ")",
204
- borderColor: "rgba(" + tempRgba.r + ", " + tempRgba.g + ", " + tempRgba.b + ")"
205
- };
206
- }
207
-
208
- if (item.isSelect) {
209
- return {
210
- color: '#fff',
211
- background: "rgba(" + tempRgba.r + ", " + tempRgba.g + ", " + tempRgba.b + ")",
212
- borderColor: "rgba(" + tempRgba.r + ", " + tempRgba.g + ", " + tempRgba.b + ")"
213
- };
214
- } else {
215
- var isSys = !(item.isPublic && item.isPublic == 1);
216
- var color = isSys ? 'rgba(28, 28, 28, 1)' : 'rgba(33, 33, 33, 0.6)';
217
- return {
218
- color: color,
219
- background: 'rgba(250, 250, 250, 1)',
220
- borderColor: 'rgba(213, 213, 213, 0.8)'
221
- };
222
- }
223
- },
224
- // 生日范围校验
225
- validateBirthday: function validateBirthday(val, title, type) {
226
- var res = true;
227
- if (!type) return false;
228
- var regObj = {
229
- DAYReg: /^([0-9]|[1-9][0-9]|[1-2][0-9][0-9]|[3][0-5][0-9]|(360|361|363|362|364|365))$/,
230
- MONTHReg: /^(?:[0-9]|1[0-2])$/,
231
- YEARReg: /^(?:[1-9]?\d|100)$/
232
- };
233
- var testReg = type + "Reg";
234
-
235
- if (!regObj[testReg].test(+val)) {
236
- // 1.9.40请输入
237
- _message.default.warning(title + "\u8BF7\u8F93\u5165", 2);
238
-
239
- res = false;
240
- }
241
-
242
- return res;
243
- },
244
-
245
- /**
246
- * @deprecated: 获取按钮的操作对象
247
- * @param {Object} row 行对象
248
- * @param {Object} btn 按钮
249
- */
250
- getRowOperatorIdSetting: function getRowOperatorIdSetting(row, btn) {
251
- if (row === void 0) {
252
- row = {};
253
- }
254
-
255
- /** 行操作id */
256
-
257
- /**
258
- * 行按钮对象
259
- * operatorColumn 数据为:1290160860597063680###987654321
260
- * btnId(按钮id)###objid(触发对象的id)
261
- * */
262
- if (row.operatorColumn) {
263
- var rowOperatorId = row.operatorColumn.find(function (v) {
264
- return v.includes(btn.sid);
265
- });
266
-
267
- if (btn.setting && typeof rowOperatorId === 'string' && rowOperatorId.includes('###')) {
268
- var _rowOperatorId$split = rowOperatorId.split('###'),
269
- btnId = _rowOperatorId$split[0],
270
- objId = _rowOperatorId$split[1];
271
-
272
- if (btnId && objId) {
273
- var settingObj = JSON.parse(btn.setting);
274
-
275
- if (Array.isArray(settingObj)) {
276
- var f = settingObj.find(function (s) {
277
- return s.obj_id == objId;
278
- });
279
-
280
- if (f) {
281
- var _copyBtn = JSON.parse(JSON.stringify(btn));
282
-
283
- _copyBtn.settingObj = _extends({}, f);
284
- _copyBtn.setting = JSON.stringify(f);
285
- return _copyBtn;
286
- }
287
- }
288
- }
289
- }
290
- }
291
-
292
- var copyBtn = JSON.parse(JSON.stringify(btn));
293
-
294
- if (this.isJSON(copyBtn.setting)) {
295
- var btnSetting = JSON.parse(copyBtn.setting);
296
-
297
- if (Array.isArray(btnSetting)) {
298
- var _settingObj = btnSetting[0] || {};
299
-
300
- copyBtn.settingObj = _extends({}, _settingObj);
301
- copyBtn.setting = JSON.stringify(_settingObj);
302
- return copyBtn;
303
- } else {
304
- return copyBtn;
305
- }
306
- }
307
-
308
- return btn;
309
- },
310
- handleMultiTips: function handleMultiTips(str, arr) {
311
- if (arr === void 0) {
312
- arr = {};
313
- }
314
-
315
- if (!str.includes('/*###*/')) return str;
316
- var compileList = str.split('/*###*/');
317
- if (compileList.length != 3) return str;
318
- var compileStr = compileList[1];
319
- var list = [].concat(arr);
320
- var len = list.length > 100 ? 100 : list.length;
321
- var result = [];
322
- var resultStr = '';
323
-
324
- var getVal = function getVal(t, i, r) {
325
- return t.replace(r, function () {
326
- var pKey = arguments[1];
327
- return list[i][pKey] || '';
328
- });
329
- };
330
-
331
- for (var i = 0; i < len; i++) {
332
- result.push(getVal(compileStr, i, /\${form.selectRows.(.*?)\}/g));
333
- }
334
-
335
- resultStr = compileList[0] + result.join(',');
336
-
337
- if (list.length > 100) {
338
- resultStr = resultStr + ("\u7B49" + list.length + "\u6761\u6570\u636E\u5417\uFF1F");
339
- } else {
340
- resultStr = resultStr + compileList[2];
341
- }
342
-
343
- return resultStr;
344
- },
345
-
346
- /**
347
- * 变量转换
348
- * @param {string} str
349
- * @param {object} obj
350
- * @param {string | number} noval // 没有值,默认赋值
351
- */
352
- handleSysParams: function handleSysParams(str, obj, noval) {
353
- if (obj === void 0) {
354
- obj = {};
355
- }
356
-
357
- if (noval === void 0) {
358
- noval = '';
359
- }
360
-
361
- var p = _extends({}, obj);
362
-
363
- var that = this;
364
-
365
- var getVal = function getVal(t, r, k) {
366
- return t.replace(r, function () {
367
- var pKey = arguments[1];
368
- var pls = pKey.split('!');
369
- var plsList = pls.slice(1);
370
- var f = plsList.find(function (v) {
371
- return v || v == 0;
372
- });
373
- var res = p[k][pls[0]];
374
- res = that.$utils.notEmpty(res) ? res : '';
375
- return res || f || noval;
376
- });
377
- };
378
-
379
- if (typeof str === 'string') {
380
- if (str.includes('form')) {
381
- str = getVal(str, /\${form.(.*?)\}/g, 'form');
382
- }
383
-
384
- if (str.includes('sys')) {
385
- str = getVal(str, /\${sys.(.*?)\}/g, 'sys');
386
- }
387
-
388
- if (str.includes('db')) {
389
- str = getVal(str, /\${db.(.*?)\}/g, 'db');
390
- }
391
-
392
- if (str.includes('table')) {
393
- str = getVal(str, /\${table.(.*?)\}/g, 'table');
394
- }
395
- }
396
-
397
- return str;
398
- },
399
- paramsToPrintValue: function paramsToPrintValue(item) {
400
- var _this = this;
401
-
402
- if (this.isEmpty(item)) return;
403
- Object.keys(item).forEach(function (key) {
404
- if (_this.isString(item[key])) {
405
- // 直接展示映射的值
406
- if (item[key] && item[key].startsWith('###{')) {
407
- var temp = JSON.parse(item[key].replace('###', ''));
408
- item[key] = temp.change_text;
409
- } // 直接展示级联的值
410
-
411
-
412
- if (item[key] && item[key].startsWith('{') && JSON.parse(item[key]).objs) {
413
- item[key] = JSON.parse(item[key]).objStr;
414
- }
415
- }
416
- });
417
- return item;
418
- },
419
-
420
- /**
421
- * 按钮setting中params参数解析
422
- */
423
- setParamsValue: function setParamsValue(paramsList, dbData) {
424
- var pmDB = {};
425
-
426
- if (paramsList && paramsList.length > 0) {
427
- paramsList.forEach(function (it) {
428
- if (it.p_value) {
429
- it.p_name = it.p_name.trim();
430
-
431
- if (it.p_value.includes('.') && it.p_value.split('.').length == 2) {
432
- var p_key = it.p_value.split('.')[0].trim(); // TODO去空格
433
-
434
- var c_key = it.p_value.split('.')[1].trim(); // TODO去空格
435
-
436
- if (dbData[p_key] && (dbData[p_key][c_key] || dbData[p_key][c_key] == 0)) {
437
- if (typeof dbData[p_key][c_key] == 'string' && dbData[p_key][c_key].includes('###{')) {
438
- try {
439
- dbData[p_key][c_key] = JSON.parse(dbData[p_key][c_key].split('###')[1]).value;
440
- pmDB[it.p_name] = dbData[p_key][c_key];
441
- } catch (error) {
442
- console.log(error);
443
- }
444
- } else {
445
- pmDB[it.p_name] = dbData[p_key][c_key];
446
- }
447
- } else {
448
- pmDB[it.p_name] = '';
449
- }
450
- } else {
451
- pmDB[it.p_name] = it.p_value;
452
- }
453
- }
454
- });
455
- }
456
-
457
- return pmDB;
458
- },
459
-
460
- /**
461
- * 防抖
462
- * @param {func} func 回调函数
463
- * @param {wait} number 时间间隔
464
- * @param {immediate} boolean 第一是否执行
465
- */
466
- debounce: function debounce(func, wait, immediate) {
467
- var timeout, args, context, timestamp, result;
468
-
469
- var later = function later() {
470
- // 据上一次触发时间间隔
471
- var last = +new Date() - timestamp; // 上次被包装函数被调用时间间隔 last 小于设定时间间隔 wait
472
-
473
- if (last < wait && last > 0) {
474
- timeout = setTimeout(later, wait - last);
475
- } else {
476
- timeout = null; // 如果设定为immediate===true,因为开始边界已经调用过了此处无需调用
477
-
478
- if (!immediate) {
479
- result = func.apply(context, args);
480
- if (!timeout) context = args = null;
481
- }
482
- }
483
- };
484
-
485
- return function () {
486
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
487
- args[_key] = arguments[_key];
488
- }
489
-
490
- context = this;
491
- timestamp = +new Date();
492
- var callNow = immediate && !timeout; // 如果延时不存在,重新设定延时
493
-
494
- if (!timeout) timeout = setTimeout(later, wait);
495
-
496
- if (callNow) {
497
- result = func.apply(context, args);
498
- context = args = null;
499
- }
500
-
501
- return result;
502
- };
503
- },
504
-
505
- /**
506
- * 转换含有###的值
507
- * @param {*} item
508
- * @param {*} k key
509
- * @returns
510
- */
511
- paramsToValue: function paramsToValue(item, k) {
512
- var _this2 = this;
513
-
514
- if (k === void 0) {
515
- k = "value";
516
- }
517
-
518
- if (this.isEmpty(item)) return;
519
- Object.keys(item).forEach(function (key) {
520
- if (_this2.isString(item[key])) {
521
- if (item[key] && item[key].startsWith("###{")) {
522
- var temp = JSON.parse(item[key].replace("###", ""));
523
- item[key] = temp[k];
524
- }
525
- }
526
- });
527
- return item;
528
- }
529
- };
530
- exports.default = _default;