cnhis-design-vue 3.1.14-beta.12 → 3.1.14-beta.15
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/es/_virtual/plugin-vue_export-helper.js +9 -0
- package/es/node_modules/@formily/path/esm/contexts.js +22 -0
- package/es/node_modules/@formily/path/esm/destructor.js +124 -0
- package/es/node_modules/@formily/path/esm/index.js +579 -0
- package/es/node_modules/@formily/path/esm/matcher.js +199 -0
- package/es/node_modules/@formily/path/esm/parser.js +402 -0
- package/es/node_modules/@formily/path/esm/shared.js +73 -0
- package/es/node_modules/@formily/path/esm/tokenizer.js +287 -0
- package/es/node_modules/@formily/path/esm/tokens.js +240 -0
- package/es/node_modules/@formily/path/esm/types.js +17 -0
- package/es/packages/big-table/index.js +1 -2
- package/es/packages/big-table/src/BigTable.js +5 -3
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +8 -11
- package/es/packages/big-table/src/components/NoData.js +73 -3
- package/es/packages/big-table/src/components/edit-form/edit-separate.js +89 -3
- package/es/packages/big-table/src/components/input-button.js +34 -3
- package/es/packages/big-table/src/components/separate.js +29 -3
- package/es/packages/big-table/src/hooks/useEdit.js +2 -3
- package/es/packages/big-table/style/index.css +133 -0
- package/es/packages/bpmn-workflow/index.js +1 -2
- package/es/packages/bpmn-workflow/src/BpmnWorkflow.js +253 -3
- package/es/packages/button-print/index.js +1 -2
- package/es/packages/button-print/src/ButtonPrint.js +5 -3
- package/es/packages/button-print/src/ButtonPrint.vue_vue_type_script_setup_true_lang.js +4 -5
- package/es/packages/button-print/src/components/IdentityVerification.js +129 -3
- package/es/packages/chunk-upload/index.js +1 -1
- package/es/packages/chunk-upload/src/chunk-upload-new.js +474 -3
- package/es/packages/chunk-upload/src/vod-chunk-upload/index.js +2 -3
- package/es/packages/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.js +328 -3
- package/es/packages/chunk-upload/src/vod-upload-modal.js +3 -4
- package/es/packages/drag-layout/index.js +1 -2
- package/es/packages/drag-layout/src/DragFormLeftItem.js +123 -3
- package/es/packages/drag-layout/src/DragFormRightItem.js +268 -3
- package/es/packages/drag-layout/src/DragLayout.js +658 -3
- package/es/packages/fabric-chart/index.js +1 -2
- package/es/packages/fabric-chart/src/FabricChart.js +315 -3
- package/es/packages/fabric-chart/src/components/PopupTip.js +33 -3
- package/es/packages/fabric-chart/src/hooks/useLeft.js +15 -4
- package/es/packages/field-set/index.d.ts +2509 -5166
- package/es/packages/field-set/index.js +1 -2
- package/es/packages/field-set/src/FieldSet.js +346 -3
- package/es/packages/field-set/src/FieldSet.vue.d.ts +2492 -5169
- package/es/packages/form-render/index.js +2 -3
- package/es/packages/form-render/src/FormRender.js +188 -3
- package/es/packages/form-render/src/components/renderer/combination.d.ts +6 -0
- package/es/packages/form-render/src/components/renderer/combination.js +55 -19
- package/es/packages/form-render/src/components/renderer/select.js +1 -2
- package/es/packages/form-render/src/components/renderer/simpleComponent.d.ts +1 -0
- package/es/packages/form-render/src/components/renderer/simpleComponent.js +4 -3
- package/es/packages/form-render/src/hooks/useFieldListAdaptor.js +1 -0
- package/es/packages/form-render/src/types/fieldItem.d.ts +1 -0
- package/es/packages/form-table/index.js +1 -2
- package/es/packages/form-table/src/FormTable.js +475 -3
- package/es/packages/form-table/src/components/index.js +28 -42
- package/es/packages/form-table/src/components/table-age.js +232 -3
- package/es/packages/form-table/src/components/table-date-picker.js +176 -3
- package/es/packages/form-table/src/components/table-digital.js +138 -3
- package/es/packages/form-table/src/components/table-input-password.js +138 -3
- package/es/packages/form-table/src/components/table-input.js +124 -3
- package/es/packages/form-table/src/components/table-month-picker.js +100 -3
- package/es/packages/form-table/src/components/table-search-more.js +5 -3
- package/es/packages/form-table/src/components/table-search-more.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/packages/form-table/src/components/table-search.js +5 -3
- package/es/packages/form-table/src/components/table-search.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/packages/form-table/src/components/table-select-multiple.js +161 -3
- package/es/packages/form-table/src/components/table-select.js +156 -3
- package/es/packages/form-table/src/components/table-textarea.js +154 -3
- package/es/packages/form-table/src/components/table-time-picker.js +146 -3
- package/es/packages/form-table/src/components/table-tree-select.js +282 -3
- package/es/packages/form-table/src/components/text-over-tooltip.js +63 -3
- package/es/packages/index.css +133 -0
- package/es/packages/info-header/index.js +1 -2
- package/es/packages/info-header/src/HiddenContent.js +65 -3
- package/es/packages/info-header/src/InfoEllipsis.js +42 -3
- package/es/packages/info-header/src/InfoHeader.js +229 -3
- package/es/packages/map/index.js +1 -2
- package/es/packages/map/src/Map.js +337 -3
- package/es/packages/scale-view/index.js +1 -2
- package/es/packages/scale-view/src/ScaleView.js +418 -3
- package/es/packages/scale-view/src/components/AnswerParse.js +79 -3
- package/es/packages/scale-view/src/components/EvaluateCountdown.js +108 -3
- package/es/packages/scale-view/src/components/EvaluatePage.js +140 -3
- package/es/packages/scale-view/src/components/LoadingCom.js +17 -5
- package/es/packages/scale-view/src/components/NoData.js +73 -3
- package/es/packages/scale-view/src/components/formitem/r-cascader.js +3 -3
- package/es/packages/scale-view/src/components/formitem/r-select.js +3 -3
- package/es/packages/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.js +78 -3
- package/es/packages/select-label/index.js +3 -5
- package/es/packages/select-label/src/LabelFormContent.js +441 -3
- package/es/packages/select-label/src/SelectLabel.js +5 -3
- package/es/packages/select-label/src/SelectLabel.vue_vue_type_script_setup_true_lang.js +5 -21
- package/es/packages/select-label/src/components/label-classify.js +128 -3
- package/es/packages/select-person/index.js +1 -2
- package/es/packages/select-person/src/SearchTree.js +5 -3
- package/es/packages/select-person/src/SearchTree.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/packages/select-person/src/SelectPerson.js +5 -3
- package/es/packages/select-person/src/SelectPerson.vue_vue_type_script_setup_true_lang.js +4 -5
- package/es/packages/shortcut-provider/index.js +1 -2
- package/es/packages/shortcut-provider/src/ShortcutProvider.js +33 -3
- package/es/packages/shortcut-provider/src/types/index.d.ts +11 -9
- package/es/packages/shortcut-provider/src/utils/index.js +5 -5
- package/es/packages/shortcut-setter/index.d.ts +3248 -1486
- package/es/packages/shortcut-setter/index.js +1 -2
- package/es/packages/shortcut-setter/src/ShortcutSetter.js +42 -3
- package/es/packages/shortcut-setter/src/ShortcutSetter.vue.d.ts +3248 -1486
- package/es/packages/shortcut-setter/src/ShortcutSetterItem.js +139 -3
- package/es/packages/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +1700 -1661
- package/es/packages/steps-wheel/index.js +1 -2
- package/es/packages/steps-wheel/src/StepsWheel.js +264 -3
- package/es/packages/time-line/index.js +1 -2
- package/es/packages/time-line/src/TimeLine.js +69 -3
- package/es/src/components/SelectPage/SelectPage.js +62 -3
- package/es/src/components/SelectPage/index.js +2 -3
- package/es/src/components/SvgIcon/SvgIcon.js +35 -3
- package/es/src/components/SvgIcon/index.js +2 -3
- package/es/src/components/TextOverTooltip/TextOverTooltip.js +75 -3
- package/es/src/components/TextOverTooltip/index.js +2 -3
- package/es/src/components/player-vod/index.js +13 -3
- package/global.d.ts +8 -8
- package/package.json +1 -1
- package/es/packages/big-table/src/components/NoData.vue_vue_type_script_setup_true_lang.js +0 -72
- package/es/packages/big-table/src/components/edit-form/edit-separate.vue_vue_type_script_setup_true_lang.js +0 -89
- package/es/packages/big-table/src/components/input-button.vue_vue_type_script_setup_true_lang.js +0 -33
- package/es/packages/big-table/src/components/separate.vue_vue_type_script_setup_true_lang.js +0 -28
- package/es/packages/bpmn-workflow/src/BpmnWorkflow.vue_vue_type_script_setup_true_lang.js +0 -252
- package/es/packages/button-print/src/components/IdentityVerification.vue_vue_type_script_setup_true_lang.js +0 -128
- package/es/packages/chunk-upload/src/chunk-upload-new.vue_vue_type_script_setup_true_lang.js +0 -473
- package/es/packages/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue_vue_type_script_setup_true_lang.js +0 -327
- package/es/packages/drag-layout/src/DragFormLeftItem.vue_vue_type_script_setup_true_lang.js +0 -122
- package/es/packages/drag-layout/src/DragFormRightItem.vue_vue_type_script_setup_true_lang.js +0 -267
- package/es/packages/drag-layout/src/DragLayout.vue_vue_type_script_setup_true_lang.js +0 -659
- package/es/packages/fabric-chart/src/FabricChart.vue_vue_type_script_setup_true_lang.js +0 -316
- package/es/packages/fabric-chart/src/components/PopupTip.vue_vue_type_script_setup_true_lang.js +0 -32
- package/es/packages/field-set/src/FieldSet.vue_vue_type_script_setup_true_lang.js +0 -22
- package/es/packages/field-set/src/NewFieldSet.js +0 -4
- package/es/packages/field-set/src/NewFieldSet.vue.d.ts +0 -2607
- package/es/packages/field-set/src/NewFieldSet.vue_vue_type_script_setup_true_lang.js +0 -299
- package/es/packages/field-set/src/OldFieldSet.js +0 -4
- package/es/packages/field-set/src/OldFieldSet.vue.d.ts +0 -2610
- package/es/packages/field-set/src/OldFieldSet.vue_vue_type_script_setup_true_lang.js +0 -330
- package/es/packages/form-render/src/FormRender.vue_vue_type_script_setup_true_lang.js +0 -187
- package/es/packages/form-table/src/FormTable.vue_vue_type_script_setup_true_lang.js +0 -474
- package/es/packages/form-table/src/components/table-age.vue_vue_type_script_setup_true_lang.js +0 -232
- package/es/packages/form-table/src/components/table-date-picker.vue_vue_type_script_setup_true_lang.js +0 -175
- package/es/packages/form-table/src/components/table-digital.vue_vue_type_script_setup_true_lang.js +0 -138
- package/es/packages/form-table/src/components/table-input-password.vue_vue_type_script_setup_true_lang.js +0 -138
- package/es/packages/form-table/src/components/table-input.vue_vue_type_script_setup_true_lang.js +0 -124
- package/es/packages/form-table/src/components/table-month-picker.vue_vue_type_script_setup_true_lang.js +0 -99
- package/es/packages/form-table/src/components/table-select-multiple.vue_vue_type_script_setup_true_lang.js +0 -160
- package/es/packages/form-table/src/components/table-select.vue_vue_type_script_setup_true_lang.js +0 -155
- package/es/packages/form-table/src/components/table-textarea.vue_vue_type_script_setup_true_lang.js +0 -153
- package/es/packages/form-table/src/components/table-time-picker.vue_vue_type_script_setup_true_lang.js +0 -145
- package/es/packages/form-table/src/components/table-tree-select.vue_vue_type_script_setup_true_lang.js +0 -281
- package/es/packages/form-table/src/components/text-over-tooltip.vue_vue_type_script_setup_true_lang.js +0 -62
- package/es/packages/info-header/src/HiddenContent.vue_vue_type_script_setup_true_lang.js +0 -64
- package/es/packages/info-header/src/InfoEllipsis.vue_vue_type_script_setup_true_lang.js +0 -41
- package/es/packages/info-header/src/InfoHeader.vue_vue_type_script_setup_true_lang.js +0 -230
- package/es/packages/map/src/Map.vue_vue_type_script_setup_true_lang.js +0 -336
- package/es/packages/scale-view/src/ScaleView.vue_vue_type_script_setup_true_lang.js +0 -422
- package/es/packages/scale-view/src/components/AnswerParse.vue_vue_type_script_setup_true_lang.js +0 -78
- package/es/packages/scale-view/src/components/EvaluateCountdown.vue_vue_type_script_setup_true_lang.js +0 -107
- package/es/packages/scale-view/src/components/EvaluatePage.vue_vue_type_script_setup_true_lang.js +0 -139
- package/es/packages/scale-view/src/components/LoadingCom.vue_vue_type_template_id_413329b0_lang.js +0 -16
- package/es/packages/scale-view/src/components/NoData.vue_vue_type_script_setup_true_lang.js +0 -72
- package/es/packages/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue_vue_type_script_setup_true_lang.js +0 -77
- package/es/packages/select-label/src/LabelFormContent.vue_vue_type_script_setup_true_lang.js +0 -441
- package/es/packages/select-label/src/components/label-classify.vue_vue_type_script_setup_true_lang.js +0 -127
- package/es/packages/shortcut-provider/src/ShortcutProvider.vue_vue_type_script_setup_true_lang.js +0 -32
- package/es/packages/shortcut-setter/src/ShortcutSetter.vue_vue_type_script_setup_true_lang.js +0 -38
- package/es/packages/shortcut-setter/src/ShortcutSetterItem.vue_vue_type_script_setup_true_lang.js +0 -125
- package/es/packages/steps-wheel/src/StepsWheel.vue_vue_type_script_setup_true_lang.js +0 -263
- package/es/packages/time-line/src/TimeLine.vue_vue_type_script_setup_true_lang.js +0 -68
- package/es/src/components/SelectPage/SelectPage.vue_vue_type_script_setup_true_lang.js +0 -61
- package/es/src/components/SvgIcon/SvgIcon.vue_vue_type_script_setup_true_lang.js +0 -34
- package/es/src/components/TextOverTooltip/TextOverTooltip.vue_vue_type_script_setup_true_lang.js +0 -74
- package/es/src/components/player-vod/index.vue_vue_type_script_setup_true_lang.js +0 -12
package/es/packages/index.css
CHANGED
|
@@ -389,12 +389,145 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
389
389
|
}
|
|
390
390
|
.custom-big-table .domPropsInnerHTML-span {
|
|
391
391
|
height: 100%;
|
|
392
|
+
/* 老版图标样式 */
|
|
392
393
|
}
|
|
393
394
|
.custom-big-table .domPropsInnerHTML-span img {
|
|
394
395
|
display: inline-block;
|
|
395
396
|
height: var(--tableImageHeight);
|
|
396
397
|
width: var(--tableImageWidth);
|
|
397
398
|
}
|
|
399
|
+
.custom-big-table .domPropsInnerHTML-span .icon-dot-red {
|
|
400
|
+
width: 8px;
|
|
401
|
+
height: 8px;
|
|
402
|
+
-webkit-border-radius: 50%;
|
|
403
|
+
-moz-border-radius: 50%;
|
|
404
|
+
border-radius: 50%;
|
|
405
|
+
background: red;
|
|
406
|
+
display: inline-block;
|
|
407
|
+
margin-right: 6px;
|
|
408
|
+
box-shadow: 0px 2px 4px 0px rgba(255, 0, 0, 0.5);
|
|
409
|
+
}
|
|
410
|
+
.custom-big-table .domPropsInnerHTML-span .icon-dot-blue {
|
|
411
|
+
width: 8px;
|
|
412
|
+
height: 8px;
|
|
413
|
+
-webkit-border-radius: 50%;
|
|
414
|
+
-moz-border-radius: 50%;
|
|
415
|
+
border-radius: 50%;
|
|
416
|
+
background: blue;
|
|
417
|
+
display: inline-block;
|
|
418
|
+
margin-right: 6px;
|
|
419
|
+
box-shadow: 0px 2px 4px 0px rgba(0, 0, 255, 0.5);
|
|
420
|
+
}
|
|
421
|
+
.custom-big-table .domPropsInnerHTML-span .icon-dot-green {
|
|
422
|
+
width: 8px;
|
|
423
|
+
height: 8px;
|
|
424
|
+
-webkit-border-radius: 50%;
|
|
425
|
+
-moz-border-radius: 50%;
|
|
426
|
+
border-radius: 50%;
|
|
427
|
+
background: green;
|
|
428
|
+
display: inline-block;
|
|
429
|
+
margin-right: 6px;
|
|
430
|
+
box-shadow: 0px 2px 4px 0px rgba(0, 128, 0, 0.5);
|
|
431
|
+
}
|
|
432
|
+
.custom-big-table .domPropsInnerHTML-span .icon-dot-gray {
|
|
433
|
+
width: 8px;
|
|
434
|
+
height: 8px;
|
|
435
|
+
-webkit-border-radius: 50%;
|
|
436
|
+
-moz-border-radius: 50%;
|
|
437
|
+
border-radius: 50%;
|
|
438
|
+
background: gray;
|
|
439
|
+
display: inline-block;
|
|
440
|
+
margin-right: 6px;
|
|
441
|
+
box-shadow: 0px 2px 4px 0px rgba(128, 128, 128, 0.5);
|
|
442
|
+
}
|
|
443
|
+
.custom-big-table .domPropsInnerHTML-span .icon-dot-yellow {
|
|
444
|
+
width: 8px;
|
|
445
|
+
height: 8px;
|
|
446
|
+
-webkit-border-radius: 50%;
|
|
447
|
+
-moz-border-radius: 50%;
|
|
448
|
+
border-radius: 50%;
|
|
449
|
+
background: yellow;
|
|
450
|
+
display: inline-block;
|
|
451
|
+
margin-right: 6px;
|
|
452
|
+
box-shadow: 0px 2px 4px 0px rgba(255, 255, 0, 0.5);
|
|
453
|
+
}
|
|
454
|
+
.custom-big-table .domPropsInnerHTML-span .icon-dot-resolved {
|
|
455
|
+
width: 8px;
|
|
456
|
+
height: 8px;
|
|
457
|
+
-webkit-border-radius: 50%;
|
|
458
|
+
-moz-border-radius: 50%;
|
|
459
|
+
border-radius: 50%;
|
|
460
|
+
background: #36be8c;
|
|
461
|
+
display: inline-block;
|
|
462
|
+
margin-right: 6px;
|
|
463
|
+
box-shadow: 0px 2px 4px 0px rgba(54, 190, 140, 0.5);
|
|
464
|
+
}
|
|
465
|
+
.custom-big-table .domPropsInnerHTML-span .icon-dot-huifu {
|
|
466
|
+
width: 8px;
|
|
467
|
+
height: 8px;
|
|
468
|
+
-webkit-border-radius: 50%;
|
|
469
|
+
-moz-border-radius: 50%;
|
|
470
|
+
border-radius: 50%;
|
|
471
|
+
background: #42d0f6;
|
|
472
|
+
display: inline-block;
|
|
473
|
+
margin-right: 6px;
|
|
474
|
+
box-shadow: 0px 2px 4px 0px rgba(66, 208, 246, 0.5);
|
|
475
|
+
}
|
|
476
|
+
.custom-big-table .domPropsInnerHTML-span .icon-dot-close {
|
|
477
|
+
width: 8px;
|
|
478
|
+
height: 8px;
|
|
479
|
+
-webkit-border-radius: 50%;
|
|
480
|
+
-moz-border-radius: 50%;
|
|
481
|
+
border-radius: 50%;
|
|
482
|
+
background: #718391;
|
|
483
|
+
display: inline-block;
|
|
484
|
+
margin-right: 6px;
|
|
485
|
+
box-shadow: 0px 2px 4px 0px rgba(113, 131, 145, 0.5);
|
|
486
|
+
}
|
|
487
|
+
.custom-big-table .domPropsInnerHTML-span .icon-dot-audit {
|
|
488
|
+
width: 8px;
|
|
489
|
+
height: 8px;
|
|
490
|
+
-webkit-border-radius: 50%;
|
|
491
|
+
-moz-border-radius: 50%;
|
|
492
|
+
border-radius: 50%;
|
|
493
|
+
background: #f4ba32;
|
|
494
|
+
display: inline-block;
|
|
495
|
+
margin-right: 6px;
|
|
496
|
+
box-shadow: 0px 2px 4px 0px rgba(244, 186, 50, 0.5);
|
|
497
|
+
}
|
|
498
|
+
.custom-big-table .domPropsInnerHTML-span .icon-dot-design {
|
|
499
|
+
width: 8px;
|
|
500
|
+
height: 8px;
|
|
501
|
+
-webkit-border-radius: 50%;
|
|
502
|
+
-moz-border-radius: 50%;
|
|
503
|
+
border-radius: 50%;
|
|
504
|
+
background: #927ce1;
|
|
505
|
+
display: inline-block;
|
|
506
|
+
margin-right: 6px;
|
|
507
|
+
box-shadow: 0px 2px 4px 0px rgba(146, 124, 225, 0.5);
|
|
508
|
+
}
|
|
509
|
+
.custom-big-table .domPropsInnerHTML-span .icon-dot-develop {
|
|
510
|
+
width: 8px;
|
|
511
|
+
height: 8px;
|
|
512
|
+
-webkit-border-radius: 50%;
|
|
513
|
+
-moz-border-radius: 50%;
|
|
514
|
+
border-radius: 50%;
|
|
515
|
+
background: #4eb0ef;
|
|
516
|
+
display: inline-block;
|
|
517
|
+
margin-right: 6px;
|
|
518
|
+
box-shadow: 0px 2px 4px 0px rgba(78, 176, 239, 0.5);
|
|
519
|
+
}
|
|
520
|
+
.custom-big-table .domPropsInnerHTML-span .icon-dot-develop-complete {
|
|
521
|
+
width: 8px;
|
|
522
|
+
height: 8px;
|
|
523
|
+
-webkit-border-radius: 50%;
|
|
524
|
+
-moz-border-radius: 50%;
|
|
525
|
+
border-radius: 50%;
|
|
526
|
+
background: #6381f9;
|
|
527
|
+
display: inline-block;
|
|
528
|
+
margin-right: 6px;
|
|
529
|
+
box-shadow: 0px 2px 4px 0px rgba(99, 129, 249, 0.5);
|
|
530
|
+
}
|
|
398
531
|
.no-data-tip {
|
|
399
532
|
display: flex;
|
|
400
533
|
flex-direction: column;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { COMPONENT_NAMESPACE } from '../../src/global/variable';
|
|
2
2
|
import { safeComponentRegister } from '../../src/utils';
|
|
3
|
-
import './src/InfoHeader.js';
|
|
4
|
-
import script from './src/InfoHeader.vue_vue_type_script_setup_true_lang.js';
|
|
3
|
+
import script from './src/InfoHeader.js';
|
|
5
4
|
|
|
6
5
|
const InfoHeader = script;
|
|
7
6
|
InfoHeader.install = function(app) {
|
|
@@ -1,4 +1,66 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeStyle, unref, createElementVNode, createVNode, normalizeClass } from 'vue';
|
|
2
|
+
import InfoEllipsis from './InfoEllipsis.js';
|
|
3
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
const _hoisted_1 = { class: "c-info-header__hidden--content" };
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "HiddenContent",
|
|
8
|
+
props: {
|
|
9
|
+
content: { type: String, default: "" },
|
|
10
|
+
tip: String,
|
|
11
|
+
width: { type: Number },
|
|
12
|
+
contentStyle: { type: Object, default: () => ({}) }
|
|
13
|
+
},
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
const hidden = ref(true);
|
|
17
|
+
function toggleHidden() {
|
|
18
|
+
hidden.value = !hidden.value;
|
|
19
|
+
}
|
|
20
|
+
const wrapperStyle = computed(() => {
|
|
21
|
+
const width = props.width + "px";
|
|
22
|
+
return { maxWidth: width, width };
|
|
23
|
+
});
|
|
24
|
+
const parsedContentStyle = computed(() => {
|
|
25
|
+
if (!props.width)
|
|
26
|
+
return "";
|
|
27
|
+
const maxWidth = props.width - 40 + "px";
|
|
28
|
+
return Object.assign({}, props.contentStyle, { maxWidth });
|
|
29
|
+
});
|
|
30
|
+
const displayContent = computed(() => {
|
|
31
|
+
let { content } = props;
|
|
32
|
+
content += "";
|
|
33
|
+
if (!hidden.value)
|
|
34
|
+
return content;
|
|
35
|
+
if (!content)
|
|
36
|
+
return "-";
|
|
37
|
+
const length = content.length;
|
|
38
|
+
if (!length || length === 1)
|
|
39
|
+
return content;
|
|
40
|
+
const hiddenNum = Math.floor(length / 2);
|
|
41
|
+
const prefixNum = Math.floor((length - hiddenNum) / 2);
|
|
42
|
+
return `${content.substring(0, prefixNum)}${"*".repeat(hiddenNum)}${content == null ? void 0 : content.substring(prefixNum + hiddenNum)}`;
|
|
43
|
+
});
|
|
44
|
+
return (_ctx, _cache) => {
|
|
45
|
+
return openBlock(), createElementBlock("div", {
|
|
46
|
+
class: "c-info-header__hidden",
|
|
47
|
+
style: normalizeStyle(unref(wrapperStyle))
|
|
48
|
+
}, [
|
|
49
|
+
createElementVNode("div", _hoisted_1, [
|
|
50
|
+
createVNode(InfoEllipsis, {
|
|
51
|
+
"content-style": unref(parsedContentStyle),
|
|
52
|
+
content: unref(displayContent),
|
|
53
|
+
tip: __props.tip
|
|
54
|
+
}, null, 8, ["content-style", "content", "tip"])
|
|
55
|
+
]),
|
|
56
|
+
createElementVNode("i", {
|
|
57
|
+
onClick: toggleHidden,
|
|
58
|
+
class: normalizeClass(["c-info-header__hidden--icon", "iconfont", `icon-${hidden.value ? "guanbi-yanjing" : "faxian-yanjing"}`])
|
|
59
|
+
}, null, 2)
|
|
60
|
+
], 4);
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
var HiddenContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "HiddenContent.vue"]]);
|
|
65
|
+
|
|
66
|
+
export { HiddenContent as default };
|
|
@@ -1,4 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { defineComponent, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, normalizeStyle, createTextVNode, toDisplayString } from 'vue';
|
|
2
|
+
import { NTooltip, NEllipsis } from 'naive-ui';
|
|
3
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "InfoEllipsis",
|
|
7
|
+
props: {
|
|
8
|
+
content: { type: String, default: "" },
|
|
9
|
+
tip: { type: String },
|
|
10
|
+
contentStyle: { type: Object, default: () => ({}) }
|
|
11
|
+
},
|
|
12
|
+
setup(__props) {
|
|
13
|
+
return (_ctx, _cache) => {
|
|
14
|
+
return openBlock(), createBlock(unref(NTooltip), {
|
|
15
|
+
disabled: !__props.tip
|
|
16
|
+
}, {
|
|
17
|
+
trigger: withCtx(() => [
|
|
18
|
+
createElementVNode("section", null, [
|
|
19
|
+
createVNode(unref(NEllipsis), {
|
|
20
|
+
style: normalizeStyle(__props.contentStyle),
|
|
21
|
+
tooltip: { placement: __props.tip ? "bottom" : "top" }
|
|
22
|
+
}, {
|
|
23
|
+
default: withCtx(() => {
|
|
24
|
+
var _a;
|
|
25
|
+
return [
|
|
26
|
+
createTextVNode(toDisplayString((_a = __props.content) != null ? _a : "-"), 1)
|
|
27
|
+
];
|
|
28
|
+
}),
|
|
29
|
+
_: 1
|
|
30
|
+
}, 8, ["style", "tooltip"])
|
|
31
|
+
])
|
|
32
|
+
]),
|
|
33
|
+
default: withCtx(() => [
|
|
34
|
+
createTextVNode(" " + toDisplayString(__props.tip), 1)
|
|
35
|
+
]),
|
|
36
|
+
_: 1
|
|
37
|
+
}, 8, ["disabled"]);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
var InfoEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "InfoEllipsis.vue"]]);
|
|
42
|
+
|
|
43
|
+
export { InfoEllipsis as default };
|
|
@@ -1,4 +1,230 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { defineComponent, ref, nextTick, onMounted, watch, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createCommentVNode, Fragment, toDisplayString, renderList, withDirectives, createBlock, unref, withCtx, createTextVNode, vShow, createVNode } from 'vue';
|
|
2
|
+
import { NTag, NDescriptions, NDescriptionsItem } from 'naive-ui';
|
|
3
|
+
import { useThrottleFn, useEventListener } from '@vueuse/core';
|
|
4
|
+
import SlotRender from '../../../src/components/SlotRender';
|
|
5
|
+
import InfoEllipsis from './InfoEllipsis.js';
|
|
6
|
+
import HiddenContent from './HiddenContent.js';
|
|
7
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
3
8
|
|
|
4
|
-
|
|
9
|
+
const _hoisted_1 = { class: "c-info-header__operation" };
|
|
10
|
+
const _hoisted_2 = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "c-info-header__divider"
|
|
13
|
+
};
|
|
14
|
+
const _hoisted_3 = { class: "c-info-header__patient" };
|
|
15
|
+
const _hoisted_4 = { class: "c-info-header__patientHeader" };
|
|
16
|
+
const _hoisted_5 = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "c-info-header__patientHeader--name"
|
|
19
|
+
};
|
|
20
|
+
const _hoisted_6 = {
|
|
21
|
+
key: 1,
|
|
22
|
+
class: "c-info-header__patientHeader--sex"
|
|
23
|
+
};
|
|
24
|
+
const _hoisted_7 = {
|
|
25
|
+
key: 2,
|
|
26
|
+
class: "c-info-header__patientHeader--age"
|
|
27
|
+
};
|
|
28
|
+
const _hoisted_8 = { class: "c-info-header__setting" };
|
|
29
|
+
const _hoisted_9 = /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-bianji" }, null, -1);
|
|
30
|
+
const _hoisted_10 = /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-setting" }, null, -1);
|
|
31
|
+
const _hoisted_11 = /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-double_down" }, null, -1);
|
|
32
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
33
|
+
__name: "InfoHeader",
|
|
34
|
+
props: {
|
|
35
|
+
compact: { type: Boolean, required: true },
|
|
36
|
+
separator: { type: String, default: ":" },
|
|
37
|
+
patientInfo: { type: Object, default: () => ({}) },
|
|
38
|
+
infoList: { type: Array, required: true },
|
|
39
|
+
labelField: { type: String, default: "label" },
|
|
40
|
+
valueField: { type: String, default: "value" },
|
|
41
|
+
minColumnWidth: { type: [String, Number], default: 240 },
|
|
42
|
+
rowHeight: { type: [String, Number], default: 32 }
|
|
43
|
+
},
|
|
44
|
+
emits: [
|
|
45
|
+
"openPatientInfo",
|
|
46
|
+
"fieldSet",
|
|
47
|
+
"update:compact"
|
|
48
|
+
],
|
|
49
|
+
setup(__props, { expose, emit }) {
|
|
50
|
+
const props = __props;
|
|
51
|
+
function toggleCompact() {
|
|
52
|
+
emit("update:compact", !props.compact);
|
|
53
|
+
}
|
|
54
|
+
function openPatientInfo() {
|
|
55
|
+
emit("openPatientInfo");
|
|
56
|
+
}
|
|
57
|
+
function fieldSet() {
|
|
58
|
+
emit("fieldSet");
|
|
59
|
+
}
|
|
60
|
+
function getTagColor(type) {
|
|
61
|
+
return {
|
|
62
|
+
color: type === "warning" ? "#fcc200" : "rgba(45, 122, 255, 0.1)",
|
|
63
|
+
textColor: type === "warning" ? "#ffffff" : "#2563F4"
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function getDescriptionItemStyle({ bold = true, contentStyle = {} } = {}) {
|
|
67
|
+
return { fontWeight: bold ? 700 : 500, ...contentStyle };
|
|
68
|
+
}
|
|
69
|
+
function getEllipsisStyle(index, { bold = true, contentStyle = {} } = {}) {
|
|
70
|
+
const width = descriptionWidthList.value[index] + "px";
|
|
71
|
+
return { width, maxWidth: width, fontWeight: bold ? 700 : 500, ...contentStyle };
|
|
72
|
+
}
|
|
73
|
+
function needHidden(item) {
|
|
74
|
+
return ["\u7535\u8BDD", "\u8EAB\u4EFD\u8BC1"].some((key) => {
|
|
75
|
+
var _a, _b;
|
|
76
|
+
return (_b = (_a = item[props.labelField]) == null ? void 0 : _a.includes) == null ? void 0 : _b.call(_a, key);
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
const infoRef = ref();
|
|
80
|
+
const columnNum = ref(3);
|
|
81
|
+
const maxColumnWidth = ref(0);
|
|
82
|
+
const descriptionWidthList = ref([]);
|
|
83
|
+
const updateColumn = useThrottleFn(async function() {
|
|
84
|
+
await nextTick();
|
|
85
|
+
const infoWrapper = infoRef.value;
|
|
86
|
+
if (!infoWrapper)
|
|
87
|
+
return;
|
|
88
|
+
const { clientWidth } = infoWrapper;
|
|
89
|
+
columnNum.value = Math.floor(clientWidth / +props.minColumnWidth);
|
|
90
|
+
maxColumnWidth.value = Math.floor(clientWidth / columnNum.value);
|
|
91
|
+
await nextTick();
|
|
92
|
+
const labels = infoWrapper.querySelectorAll(".n-descriptions-table-content__label");
|
|
93
|
+
if (!labels)
|
|
94
|
+
return;
|
|
95
|
+
descriptionWidthList.value = Array.from(labels).map((label) => {
|
|
96
|
+
return maxColumnWidth.value - label.clientWidth - 20;
|
|
97
|
+
});
|
|
98
|
+
}, 100, true, false);
|
|
99
|
+
onMounted(updateColumn);
|
|
100
|
+
watch([() => props.minColumnWidth, () => props.infoList], updateColumn, {
|
|
101
|
+
flush: "post",
|
|
102
|
+
deep: true
|
|
103
|
+
});
|
|
104
|
+
expose({
|
|
105
|
+
update: updateColumn
|
|
106
|
+
});
|
|
107
|
+
useEventListener(window, "resize", updateColumn);
|
|
108
|
+
return (_ctx, _cache) => {
|
|
109
|
+
return openBlock(), createElementBlock("div", {
|
|
110
|
+
class: normalizeClass(["c-info-header", { "is-compact": __props.compact }]),
|
|
111
|
+
style: normalizeStyle({ "--row-height": __props.rowHeight, "--column-width": maxColumnWidth.value })
|
|
112
|
+
}, [
|
|
113
|
+
createElementVNode("section", _hoisted_1, [
|
|
114
|
+
renderSlot(_ctx.$slots, "operation")
|
|
115
|
+
]),
|
|
116
|
+
_ctx.$slots.operation ? (openBlock(), createElementBlock("div", _hoisted_2)) : createCommentVNode("v-if", true),
|
|
117
|
+
createElementVNode("section", _hoisted_3, [
|
|
118
|
+
renderSlot(_ctx.$slots, "patientModule"),
|
|
119
|
+
!_ctx.$slots.avatarModule ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
120
|
+
renderSlot(_ctx.$slots, "avatar"),
|
|
121
|
+
createElementVNode("section", null, [
|
|
122
|
+
createElementVNode("header", _hoisted_4, [
|
|
123
|
+
__props.patientInfo.name ? (openBlock(), createElementBlock("div", _hoisted_5, toDisplayString(__props.patientInfo.name), 1)) : createCommentVNode("v-if", true),
|
|
124
|
+
__props.patientInfo.sex ? (openBlock(), createElementBlock("div", _hoisted_6, "/ " + toDisplayString(__props.patientInfo.sex), 1)) : createCommentVNode("v-if", true),
|
|
125
|
+
__props.patientInfo.age ? (openBlock(), createElementBlock("div", _hoisted_7, " / " + toDisplayString(__props.patientInfo.age) + toDisplayString(__props.patientInfo.ageUnit || "\u5C81"), 1)) : createCommentVNode("v-if", true),
|
|
126
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.patientInfo.tagList || [], (tag) => {
|
|
127
|
+
return withDirectives((openBlock(), createBlock(unref(NTag), {
|
|
128
|
+
key: tag.content,
|
|
129
|
+
size: "medium",
|
|
130
|
+
bordered: false,
|
|
131
|
+
color: getTagColor(tag.type || "warning")
|
|
132
|
+
}, {
|
|
133
|
+
default: withCtx(() => [
|
|
134
|
+
createTextVNode(toDisplayString(tag.content), 1)
|
|
135
|
+
]),
|
|
136
|
+
_: 2
|
|
137
|
+
}, 1032, ["color"])), [
|
|
138
|
+
[vShow, tag.content]
|
|
139
|
+
]);
|
|
140
|
+
}), 128))
|
|
141
|
+
]),
|
|
142
|
+
renderSlot(_ctx.$slots, "avatarInfo")
|
|
143
|
+
])
|
|
144
|
+
], 64)) : createCommentVNode("v-if", true)
|
|
145
|
+
]),
|
|
146
|
+
createElementVNode("section", {
|
|
147
|
+
class: "c-info-header__info",
|
|
148
|
+
style: normalizeStyle({ "--row-num": __props.compact ? 1 : 2 }),
|
|
149
|
+
ref_key: "infoRef",
|
|
150
|
+
ref: infoRef
|
|
151
|
+
}, [
|
|
152
|
+
renderSlot(_ctx.$slots, "info", {}, () => [
|
|
153
|
+
createVNode(unref(NDescriptions), {
|
|
154
|
+
"label-align": "right",
|
|
155
|
+
style: { width: "100%" },
|
|
156
|
+
"label-placement": "left",
|
|
157
|
+
separator: ":",
|
|
158
|
+
column: columnNum.value
|
|
159
|
+
}, {
|
|
160
|
+
default: withCtx(() => [
|
|
161
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.infoList, (item, index) => {
|
|
162
|
+
return openBlock(), createBlock(unref(NDescriptionsItem), {
|
|
163
|
+
key: item[__props.labelField],
|
|
164
|
+
label: item[__props.labelField]
|
|
165
|
+
}, {
|
|
166
|
+
default: withCtx(() => [
|
|
167
|
+
item.slot ? (openBlock(), createBlock(unref(SlotRender), {
|
|
168
|
+
key: 0,
|
|
169
|
+
renderer: item.slot,
|
|
170
|
+
"root-slots": _ctx.$slots,
|
|
171
|
+
item,
|
|
172
|
+
style: normalizeStyle(getDescriptionItemStyle(item)),
|
|
173
|
+
width: descriptionWidthList.value[index]
|
|
174
|
+
}, null, 8, ["renderer", "root-slots", "item", "style", "width"])) : needHidden(item) ? (openBlock(), createBlock(HiddenContent, {
|
|
175
|
+
key: 1,
|
|
176
|
+
content: item[__props.valueField],
|
|
177
|
+
tip: item.tip,
|
|
178
|
+
"content-style": getDescriptionItemStyle(item),
|
|
179
|
+
width: descriptionWidthList.value[index]
|
|
180
|
+
}, null, 8, ["content", "tip", "content-style", "width"])) : (openBlock(), createBlock(InfoEllipsis, {
|
|
181
|
+
key: 2,
|
|
182
|
+
"content-style": getEllipsisStyle(index, item),
|
|
183
|
+
content: item[__props.valueField],
|
|
184
|
+
tip: item.tip
|
|
185
|
+
}, null, 8, ["content-style", "content", "tip"]))
|
|
186
|
+
]),
|
|
187
|
+
_: 2
|
|
188
|
+
}, 1032, ["label"]);
|
|
189
|
+
}), 128))
|
|
190
|
+
]),
|
|
191
|
+
_: 1
|
|
192
|
+
}, 8, ["column"])
|
|
193
|
+
])
|
|
194
|
+
], 4),
|
|
195
|
+
createElementVNode("section", _hoisted_8, [
|
|
196
|
+
renderSlot(_ctx.$slots, "setting"),
|
|
197
|
+
!_ctx.$slots.setting ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
198
|
+
createElementVNode("div", {
|
|
199
|
+
class: "c-info-header__settingIcon",
|
|
200
|
+
onClick: openPatientInfo
|
|
201
|
+
}, [
|
|
202
|
+
renderSlot(_ctx.$slots, "patientInfoIcon", {}, () => [
|
|
203
|
+
_hoisted_9
|
|
204
|
+
])
|
|
205
|
+
]),
|
|
206
|
+
createElementVNode("div", {
|
|
207
|
+
class: "c-info-header__settingIcon",
|
|
208
|
+
onClick: fieldSet
|
|
209
|
+
}, [
|
|
210
|
+
renderSlot(_ctx.$slots, "fieldSetIcon", {}, () => [
|
|
211
|
+
_hoisted_10
|
|
212
|
+
])
|
|
213
|
+
]),
|
|
214
|
+
createElementVNode("div", {
|
|
215
|
+
class: "c-info-header__settingIcon",
|
|
216
|
+
onClick: toggleCompact
|
|
217
|
+
}, [
|
|
218
|
+
renderSlot(_ctx.$slots, "compactIcon", {}, () => [
|
|
219
|
+
_hoisted_11
|
|
220
|
+
])
|
|
221
|
+
])
|
|
222
|
+
], 64)) : createCommentVNode("v-if", true)
|
|
223
|
+
])
|
|
224
|
+
], 6);
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
var script = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "InfoHeader.vue"]]);
|
|
229
|
+
|
|
230
|
+
export { script as default };
|
package/es/packages/map/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { COMPONENT_NAMESPACE } from '../../src/global/variable';
|
|
2
2
|
import { safeComponentRegister } from '../../src/utils';
|
|
3
|
-
import './src/Map.js';
|
|
4
|
-
import script from './src/Map.vue_vue_type_script_setup_true_lang.js';
|
|
3
|
+
import script from './src/Map.js';
|
|
5
4
|
|
|
6
5
|
const Map = script;
|
|
7
6
|
Map.install = function(app) {
|