cnhis-design-vue 2.0.5 → 2.0.8
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/CHANGELOG.md +38 -16
- package/es/affix/index.js +8 -8
- package/es/age/index.js +10 -10
- package/es/alert/index.js +8 -8
- package/es/anchor/index.js +8 -8
- package/es/auto-complete/index.js +8 -8
- package/es/avatar/index.js +8 -8
- package/es/back-top/index.js +8 -8
- package/es/badge/index.js +8 -8
- package/es/base/index.js +8 -8
- package/es/big-table/index.js +102 -98
- package/es/big-table/style.css +1 -1
- package/es/breadcrumb/index.js +8 -8
- package/es/button/index.js +84 -61
- package/es/button/style.css +1 -1
- package/es/calendar/index.js +8 -8
- package/es/captcha/index.js +3 -3
- package/es/card/index.js +8 -8
- package/es/carousel/index.js +8 -8
- package/es/cascader/index.js +8 -8
- package/es/checkbox/index.js +9 -9
- package/es/col/index.js +8 -8
- package/es/collapse/index.js +8 -8
- package/es/color-picker/index.js +3 -3
- package/es/comment/index.js +8 -8
- package/es/config-provider/index.js +8 -8
- package/es/date-picker/index.js +8 -8
- package/es/descriptions/index.js +8 -8
- package/es/divider/index.js +8 -8
- package/es/drag-layout/index.js +3 -3
- package/es/drawer/index.js +8 -8
- package/es/dropdown/index.js +8 -8
- package/es/editor/index.js +1 -1
- package/es/empty/index.js +8 -8
- package/es/fabric-chart/index.js +9 -9
- package/es/form/index.js +8 -8
- package/es/form-model/index.js +8 -8
- package/es/form-table/index.js +62 -62
- package/es/index/index.js +479 -452
- package/es/index/style.css +1 -1
- package/es/input/index.js +9 -9
- package/es/input-number/index.js +8 -8
- package/es/layout/index.js +8 -8
- package/es/list/index.js +8 -8
- package/es/locale-provider/index.js +8 -8
- package/es/map/index.js +9 -9
- package/es/mentions/index.js +8 -8
- package/es/menu/index.js +8 -8
- package/es/message/index.js +8 -8
- package/es/multi-chat/index.js +75 -75
- package/es/multi-chat-client/index.js +69 -69
- package/es/multi-chat-history/index.js +4 -4
- package/es/multi-chat-record/index.js +14 -14
- package/es/multi-chat-setting/index.js +22 -22
- package/es/multi-chat-sip/index.js +1 -1
- package/es/notification/index.js +8 -8
- package/es/page-header/index.js +8 -8
- package/es/pagination/index.js +8 -8
- package/es/popconfirm/index.js +8 -8
- package/es/popover/index.js +8 -8
- package/es/progress/index.js +8 -8
- package/es/radio/index.js +9 -9
- package/es/rate/index.js +8 -8
- package/es/result/index.js +8 -8
- package/es/row/index.js +8 -8
- package/es/scale-view/index.js +24 -24
- package/es/select/index.js +11 -11
- package/es/select-label/index.js +11 -11
- package/es/select-person/index.js +2 -2
- package/es/skeleton/index.js +8 -8
- package/es/slider/index.js +8 -8
- package/es/space/index.js +8 -8
- package/es/spin/index.js +8 -8
- package/es/statistic/index.js +8 -8
- package/es/steps/index.js +8 -8
- package/es/switch/index.js +8 -8
- package/es/table-filter/index.js +109 -86
- package/es/table-filter/style.css +1 -1
- package/es/tabs/index.js +8 -8
- package/es/tag/index.js +9 -9
- package/es/time-picker/index.js +8 -8
- package/es/timeline/index.js +8 -8
- package/es/tooltip/index.js +8 -8
- package/es/transfer/index.js +8 -8
- package/es/tree/index.js +8 -8
- package/es/tree-select/index.js +8 -8
- package/es/upload/index.js +8 -8
- package/es/verification-code/index.js +2 -2
- package/lib/cui.common.js +9508 -5181
- package/lib/cui.umd.js +9508 -5181
- package/lib/cui.umd.min.js +91 -91
- package/package.json +1 -1
- package/packages/big-table/src/BigTable.vue +6 -2
- package/packages/button/src/ButtonPrint/index.vue +18 -1
package/package.json
CHANGED
|
@@ -380,8 +380,12 @@ export default create({
|
|
|
380
380
|
const list = value.map(v => {
|
|
381
381
|
const newV = {};
|
|
382
382
|
for (let i in v) {
|
|
383
|
-
|
|
384
|
-
|
|
383
|
+
if (typeof v[i] === 'number') {
|
|
384
|
+
newV[i] = v[i]
|
|
385
|
+
} else {
|
|
386
|
+
newV[i] = JSON.parse(JSON.stringify(v[i] || ""));
|
|
387
|
+
}
|
|
388
|
+
if (newV[i] && typeof v[i] === "string" && !newV[i].includes('security-code')) {
|
|
385
389
|
newV[i] = this.$xss(v[i]);
|
|
386
390
|
}
|
|
387
391
|
}
|
|
@@ -214,11 +214,14 @@ export default create({
|
|
|
214
214
|
timeout: 5000
|
|
215
215
|
};
|
|
216
216
|
let printUrlPrefix = this?.printConfig?.printUrlPrefix;
|
|
217
|
+
let customCofing = this?.printConfig?.customCofing || {};
|
|
218
|
+
let cCofing = this.getCustomCofing(customCofing);
|
|
217
219
|
if (axios !== this.axios && printUrlPrefix) {
|
|
218
220
|
config.baseURL = printUrlPrefix;
|
|
219
221
|
}
|
|
220
222
|
httpFn = axios.create({
|
|
221
|
-
...config
|
|
223
|
+
...config,
|
|
224
|
+
...cCofing
|
|
222
225
|
});
|
|
223
226
|
const formatListResult = await this.queryFormatList();
|
|
224
227
|
if (this.versionType == 1 || this.versionType == 3) {
|
|
@@ -637,6 +640,20 @@ export default create({
|
|
|
637
640
|
},
|
|
638
641
|
callLocalServicesErrorCb(res) {
|
|
639
642
|
this.$emit('error', res);
|
|
643
|
+
},
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* 获取 axios 自定义配置
|
|
647
|
+
*/
|
|
648
|
+
getCustomCofing(customCofing){
|
|
649
|
+
let cCofing = {}
|
|
650
|
+
let type = typeof customCofing;
|
|
651
|
+
if(type === 'function'){
|
|
652
|
+
cCofing = customCofing();
|
|
653
|
+
} else if(type === 'object'){
|
|
654
|
+
cCofing = customCofing;
|
|
655
|
+
}
|
|
656
|
+
return cCofing;
|
|
640
657
|
}
|
|
641
658
|
}
|
|
642
659
|
});
|