cnhis-design-vue 3.2.16-beta.8 → 3.2.17-release.0

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 (97) hide show
  1. package/es/components/base-search/style/index.css +1 -1
  2. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
  3. package/es/components/card-reader-sdk-cn/index.d.ts +18 -0
  4. package/es/components/card-reader-sdk-cn/index.js +1 -0
  5. package/es/components/card-reader-sdk-cn/src/henan/index.d.ts +17 -0
  6. package/es/components/card-reader-sdk-cn/src/henan/index.js +1 -0
  7. package/es/components/classification/index.d.ts +9 -0
  8. package/es/components/classification/src/components/search-filter/index.vue.d.ts +9 -0
  9. package/es/components/classification/src/components/set-classification/index.vue.d.ts +9 -0
  10. package/es/components/classification/src/index.vue.d.ts +9 -0
  11. package/es/components/expand-field/index.d.ts +28 -1
  12. package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +28 -1
  13. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +28 -1
  14. package/es/components/expand-field/src/components/form.vue.d.ts +28 -1
  15. package/es/components/expand-field/src/index.vue.d.ts +28 -1
  16. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  17. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  18. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  19. package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
  20. package/es/components/fabric-chart/src/interface.d.ts +1 -0
  21. package/es/components/form-config/index.d.ts +147 -24
  22. package/es/components/form-config/src/FormConfig.vue.d.ts +147 -24
  23. package/es/components/form-config/src/FormConfig.vue2.js +1 -1
  24. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +8 -0
  25. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +210 -95
  26. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -1
  27. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  28. package/es/components/form-render/src/components/renderer/text.js +1 -1
  29. package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
  30. package/es/components/form-render/src/types/fieldItem.d.ts +3 -1
  31. package/es/components/iho-chat/index.d.ts +321 -365
  32. package/es/components/iho-chat/src/Index.vue.d.ts +321 -365
  33. package/es/components/iho-chat/src/Index.vue2.js +1 -1
  34. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +9 -0
  35. package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +18 -0
  36. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +18 -0
  37. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +65 -182
  38. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -1
  39. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +94 -182
  40. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  41. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +9 -0
  42. package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +37 -20
  43. package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
  44. package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +19 -91
  45. package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -1
  46. package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +10 -91
  47. package/es/components/iho-chat/src/components/MessageEvent.vue2.js +1 -1
  48. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +18 -0
  49. package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +12 -46
  50. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  51. package/es/components/iho-chat/src/components/SelectLabel.vue.d.ts +54 -0
  52. package/es/components/iho-chat/src/components/SelectLabel.vue.js +1 -0
  53. package/es/components/iho-chat/src/components/SelectLabel.vue2.js +1 -0
  54. package/es/components/iho-chat/src/components/SiderList.vue.d.ts +9 -0
  55. package/es/components/iho-chat/src/components/Video.vue.d.ts +9 -0
  56. package/es/components/iho-chat/src/hooks/useData.d.ts +30 -0
  57. package/es/components/iho-chat/src/hooks/useData.js +1 -1
  58. package/es/components/iho-chat/src/hooks/useVideo.d.ts +9 -0
  59. package/es/components/iho-chat/src/types/index.d.ts +9 -0
  60. package/es/components/iho-chat/style/index.css +1 -1
  61. package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue.d.ts +1 -0
  62. package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +1 -1
  63. package/es/components/iho-table/src/types/index.d.ts +3 -0
  64. package/es/components/index.css +1 -1
  65. package/es/components/quick-search/style/index.css +1 -1
  66. package/es/components/scale-view/src/hooks/use-component.d.ts +7 -7
  67. package/es/components/select-label/index.d.ts +7 -7
  68. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue.d.ts +5 -1
  69. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +1 -1
  70. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue.d.ts +7 -7
  71. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +1 -1
  72. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue.d.ts +5 -1
  73. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +1 -1
  74. package/es/components/select-label/src/index.vue.d.ts +7 -7
  75. package/es/components/select-label/src/types/index.d.ts +4 -1
  76. package/es/components/select-label/style/index.css +1 -1
  77. package/es/components/select-person/index.d.ts +28 -1
  78. package/es/components/select-person/src/SelectPerson.vue.d.ts +15 -1
  79. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  80. package/es/components/select-person/src/index.vue.d.ts +28 -1
  81. package/es/components/select-person/src/index.vue2.js +1 -1
  82. package/es/components/shortcut-setter/index.d.ts +2 -0
  83. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +2 -0
  84. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +9 -0
  85. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +8 -0
  86. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -1
  87. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +9 -0
  88. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +9 -0
  89. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +2 -7
  90. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -1
  91. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +8 -0
  92. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -1
  93. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +11 -7
  94. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +11 -7
  95. package/es/components/table-filter/src/types/index.d.ts +3 -0
  96. package/es/shared/package.json.js +1 -1
  97. package/package.json +2 -2
@@ -1 +1 @@
1
- .classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter{cursor:pointer;font-size:18px}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter:last-child{margin-left:16px}.classification-modal-block .n-card-header .svg-wrap .n-icon{cursor:pointer}.classification-modal-block .n-card__content{overflow-y:auto}.classification-modal-block .n-card__content .table-modal-list .list-title{background-color:#f2f2f4;border:1px solid #e1dfdf;display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-title .list-title-item{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content{padding:0}.classification-modal-block .n-card__content .table-modal-list .list-content li{display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item{align-items:center;display:flex;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item .n-icon{cursor:pointer;margin-right:8px}.classification-modal-block .n-card__content .table-modal-list .list-content li.checked,.classification-modal-block .n-card__content .table-modal-list .list-content li.checked .text{background-color:#f2f2f2}.classification-modal-block .n-card__content .table-modal-list .list-content li .text{background-color:#fff;display:inline-block;padding:0 10px;position:relative}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line{position:relative;text-align:center;width:75%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line:before{border:1px solid #e8e8e8;content:"";left:0;margin-top:20px;position:absolute;width:100%}.classification-modal-block .n-card__content .table-modal-list .list-title-item{margin-left:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item{border-bottom:1px solid #e1dfdf;margin-left:-1px;margin-top:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch{height:16px;min-width:28px;width:28px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch:after{height:12px;width:12px}.classification-modal-block .n-card__content .table-modal-list .list-content-radio,.classification-modal-block .n-card__content .table-modal-list .list-content-switch{text-align:center}.classification-modal-block .n-card__content .table-modal-list .anticon+.anticon{margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .item-name{display:flex;height:32px;line-height:32px;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .item-name .label{text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .item-name .addAction{align-items:center;cursor:pointer;display:flex}.classification-modal-block .n-card__content .class-filter-content .item-name .blue{color:#2d7aff;margin-right:8px}.classification-modal-block .n-card__content .class-filter-content .n-form-item-label{width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content{align-items:center;display:flex;flex-wrap:wrap;line-height:32px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .label{display:inline-block;height:32px;line-height:32px;margin-bottom:10px;text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn-dashed{border-color:#a6a6a6;color:#a6a6a6}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .parent-name{align-items:center;display:flex}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .parent-input{margin-bottom:10px;margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag{align-items:center;background-color:rgba(45,122,255,.1);border:1px solid #2d7aff;border-radius:3px;box-sizing:border-box;color:#2d7aff;display:flex;justify-content:center;margin-bottom:10px;margin-right:10px;max-width:120px;padding:0 10px;position:relative}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .anticon-close{color:#2d7aff;cursor:pointer;display:flex;justify-content:center;line-height:1;width:18px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select,.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .ant-input-disabled{background-color:#2d7aff;color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .anticon-close{color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn{margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list{border-top:1px solid #e6e6e6;margin-bottom:6px;margin-top:16px;padding:12px 0 0}.classification-modal-block .n-card__content .class-filter-content .select-item-list li{align-items:center;display:flex;list-style:none;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .index-span{display:inline-block;width:30px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item{margin-right:10px;width:120px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item.n-date-picker{width:auto}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper{display:flex}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper .form-item{margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .delete-item-icon{color:red;cursor:pointer;font-size:18px;margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .filter-expression{display:flex;flex-direction:column}.classification-modal-block .n-card__content .class-filter-content .filter-expression .textarea{margin-top:6px}.classification-modal-block .n-card__footer{padding-top:10px}.classification-modal-block .n-card__footer .flex_between{display:flex;justify-content:space-between}.classification-modal-block .n-card__footer .flex_right{display:flex;justify-content:right}.classification-modal-block .n-card__footer .n-button{margin-left:8px}.render-widget-input-number-group{align-items:center;display:flex}.render-widget-input-number-group .divider{text-align:center;width:24px}.render-widget-date-range{align-items:center;display:flex;flex-wrap:nowrap;width:100%}.render-widget-date-range .radio-date-group{border:1px solid #d9d9d9;display:flex;flex-wrap:nowrap}.render-widget-date-range .radio-date-group .radio-date-item{border-left:1px solid #d9d9d9;cursor:pointer;height:30px;line-height:30px;padding:0 8px;white-space:nowrap}.render-widget-date-range .radio-date-group .radio-date-item:first-child{border:none}.render-widget-date-range .radio-date-group .radio-date-item.radio-date-item-active{background:#3e65cf;border-color:#3e65cf;color:#fff}.render-widget-date-range .select-date-left{margin-left:16px}.render-widget-date-range .select-date-right{margin-right:16px}.render-widget-date-range .date-detail-range{display:flex;flex-wrap:nowrap}.render-widget-date-range .date-detail-range .divider{text-align:center;width:10px}.label-attr-filter-container .edit-f-label{font-size:14px;line-height:32px;padding-left:0}.label-attr-filter-container .edit-f-content.label-select-height{flex:none;height:74px;overflow:hidden}.label-attr-filter-container .edit-f-content .label-f-content{display:flex;flex-wrap:wrap}.label-attr-filter-container .edit-f-content .label-f-content .n-tag{border:1px solid #e0e0e6;height:32px;margin:0 8px 8px 0;max-width:108px;text-align:center}.label-attr-filter-container .edit-f-content .label-f-content .n-tag .n-tag__content{align-items:center;display:inline-flex}.label-attr-filter-container .edit-f-content .label-f-content .n-tag .n-tag__content span{display:inline-block;height:100%;line-height:30px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:80px}.label-attr-filter-container .label-f-unfold-btn{margin:8px 0}.label-attr-filter-container .label-f-unfold-btn .operate-btn{align-items:center;cursor:pointer;display:flex}.label-attr-filter-container .label-f-unfold-btn .operate-btn .n-icon{margin-left:6px}.select-dynamic-popover .n-base-select-menu__empty{justify-content:left;padding:0}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options{background:#fff;box-shadow:0 0 6px rgba(0,0,0,.2);display:flex;flex-direction:column;justify-content:left}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .n-empty{padding:12px 32px}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .mixins-options-active{background:#f1f1f1}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-header{display:flex}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-header .name{align-items:center;display:flex;flex:1;font-weight:700;height:34px;padding:0 12px}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content{list-style:none;margin:0;max-height:250px;outline:none;overflow:auto;padding-left:0}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li{color:rgba(0,0,0,.65);cursor:pointer;display:flex;font-size:14px;line-height:22px;text-overflow:ellipsis;transition:background .3s ease;white-space:nowrap}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li.actived{color:#5585f5}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li:hover{background:#f1f1f1}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li .content{flex:1;overflow:hidden;padding:5px 12px;text-overflow:ellipsis;white-space:nowrap}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination{width:100%}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination .n-button-group{display:flex}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination .n-button-group .n-button{flex:1}.classify-fieldkey-popover{width:200px}.quick-search-block .quick-item{margin-bottom:10px;min-width:32px;width:20%}.quick-search-block .quick-item .quick-row{display:flex}.quick-search-block .quick-item .quick-row .quick-item-title{box-sizing:border-box;flex-basis:134px;line-height:32px;min-width:130px;overflow:hidden;padding-left:4px;padding-right:4px;text-align:right;text-overflow:ellipsis;white-space:nowrap}.quick-search-block .quick-item .quick-row .quick-item-col{align-items:center;display:flex;padding:0 4px;width:calc(100% - 134px)}.quick-search-block .quick-item .quick-row .quick-item-title-default{width:25%}.quick-search-block .quick-item .quick-row .quick-item-col-default{width:75%}.quick-search-block.quick-search-table .quick-item{display:inline-block}.quick-search-block.quick-search-table .quick-item.quick-block{display:block;width:100%}
1
+ .classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter{cursor:pointer;font-size:18px}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter:last-child{margin-left:16px}.classification-modal-block .n-card-header .svg-wrap .n-icon{cursor:pointer}.classification-modal-block .n-card__content{overflow-y:auto}.classification-modal-block .n-card__content .table-modal-list .list-title{background-color:#f2f2f4;border:1px solid #e1dfdf;display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-title .list-title-item{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content{padding:0}.classification-modal-block .n-card__content .table-modal-list .list-content li{display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item{align-items:center;display:flex;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item .n-icon{cursor:pointer;margin-right:8px}.classification-modal-block .n-card__content .table-modal-list .list-content li.checked,.classification-modal-block .n-card__content .table-modal-list .list-content li.checked .text{background-color:#f2f2f2}.classification-modal-block .n-card__content .table-modal-list .list-content li .text{background-color:#fff;display:inline-block;padding:0 10px;position:relative}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line{position:relative;text-align:center;width:75%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line:before{border:1px solid #e8e8e8;content:"";left:0;margin-top:20px;position:absolute;width:100%}.classification-modal-block .n-card__content .table-modal-list .list-title-item{margin-left:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item{border-bottom:1px solid #e1dfdf;margin-left:-1px;margin-top:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch{height:16px;min-width:28px;width:28px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch:after{height:12px;width:12px}.classification-modal-block .n-card__content .table-modal-list .list-content-radio,.classification-modal-block .n-card__content .table-modal-list .list-content-switch{text-align:center}.classification-modal-block .n-card__content .table-modal-list .anticon+.anticon{margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .item-name{display:flex;height:32px;line-height:32px;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .item-name .label{text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .item-name .addAction{align-items:center;cursor:pointer;display:flex}.classification-modal-block .n-card__content .class-filter-content .item-name .blue{color:#2d7aff;margin-right:8px}.classification-modal-block .n-card__content .class-filter-content .n-form-item-label{width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content{align-items:center;display:flex;flex-wrap:wrap;line-height:32px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .label{display:inline-block;height:32px;line-height:32px;margin-bottom:10px;text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn-dashed{border-color:#a6a6a6;color:#a6a6a6}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .parent-name{align-items:center;display:flex}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .parent-input{margin-bottom:10px;margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag{align-items:center;background-color:rgba(45,122,255,.1);border:1px solid #2d7aff;border-radius:3px;box-sizing:border-box;color:#2d7aff;display:flex;justify-content:center;margin-bottom:10px;margin-right:10px;max-width:120px;padding:0 10px;position:relative}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .anticon-close{color:#2d7aff;cursor:pointer;display:flex;justify-content:center;line-height:1;width:18px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select,.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .ant-input-disabled{background-color:#2d7aff;color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .anticon-close{color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn{margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list{border-top:1px solid #e6e6e6;margin-bottom:6px;margin-top:16px;padding:12px 0 0}.classification-modal-block .n-card__content .class-filter-content .select-item-list li{align-items:center;display:flex;list-style:none;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .index-span{display:inline-block;width:30px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item{margin-right:10px;width:120px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item.n-date-picker{width:auto}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper{display:flex}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper .form-item{margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .delete-item-icon{color:red;cursor:pointer;font-size:18px;margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .filter-expression{display:flex;flex-direction:column}.classification-modal-block .n-card__content .class-filter-content .filter-expression .textarea{margin-top:6px}.classification-modal-block .n-card__footer{padding-top:10px}.classification-modal-block .n-card__footer .flex_between{display:flex;justify-content:space-between}.classification-modal-block .n-card__footer .flex_right{display:flex;justify-content:right}.classification-modal-block .n-card__footer .n-button{margin-left:8px}.render-widget-input-number-group{align-items:center;display:flex}.render-widget-input-number-group .divider{text-align:center;width:24px}.render-widget-date-range{align-items:center;display:flex;flex-wrap:nowrap;width:100%}.render-widget-date-range .radio-date-group{border:1px solid #d9d9d9;display:flex;flex-wrap:nowrap}.render-widget-date-range .radio-date-group .radio-date-item{border-left:1px solid #d9d9d9;cursor:pointer;height:30px;line-height:30px;padding:0 8px;white-space:nowrap}.render-widget-date-range .radio-date-group .radio-date-item:first-child{border:none}.render-widget-date-range .radio-date-group .radio-date-item.radio-date-item-active{background:#3e65cf;border-color:#3e65cf;color:#fff}.render-widget-date-range .select-date-left{margin-left:16px}.render-widget-date-range .select-date-right{margin-right:16px}.render-widget-date-range .date-detail-range{display:flex;flex-wrap:nowrap}.render-widget-date-range .date-detail-range .divider{text-align:center;width:10px}.label-attr-filter-container .edit-f-label{font-size:14px;line-height:32px;padding-left:0}.label-attr-filter-container .edit-f-content.label-select-height{flex:none;height:74px;overflow:hidden}.label-attr-filter-container .edit-f-content .label-f-content{display:flex;flex-wrap:wrap}.label-attr-filter-container .edit-f-content .label-f-content .n-tag{border:1px solid #e0e0e6;height:32px;margin:0 8px 8px 0;max-width:108px;text-align:center}.label-attr-filter-container .edit-f-content .label-f-content .n-tag .n-tag__content{align-items:center;display:inline-flex}.label-attr-filter-container .edit-f-content .label-f-content .n-tag .n-tag__content span{display:inline-block;height:100%;line-height:30px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:80px}.label-attr-filter-container .edit-f-content .label-f-content .label-img{border:1px solid #e0e0e6;box-sizing:border-box;cursor:pointer;display:block;margin:0 8px 8px 0;max-height:32px}.label-attr-filter-container .label-f-unfold-btn{margin:8px 0}.label-attr-filter-container .label-f-unfold-btn .operate-btn{align-items:center;cursor:pointer;display:flex}.label-attr-filter-container .label-f-unfold-btn .operate-btn .n-icon{margin-left:6px}.select-dynamic-popover .n-base-select-menu__empty{justify-content:left;padding:0}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options{background:#fff;box-shadow:0 0 6px rgba(0,0,0,.2);display:flex;flex-direction:column;justify-content:left}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .n-empty{padding:12px 32px}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .mixins-options-active{background:#f1f1f1}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-header{display:flex}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-header .name{align-items:center;display:flex;flex:1;font-weight:700;height:34px;padding:0 12px}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content{list-style:none;margin:0;max-height:250px;outline:none;overflow:auto;padding-left:0}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li{color:rgba(0,0,0,.65);cursor:pointer;display:flex;font-size:14px;line-height:22px;text-overflow:ellipsis;transition:background .3s ease;white-space:nowrap}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li.actived{color:#5585f5}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li:hover{background:#f1f1f1}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li .content{flex:1;overflow:hidden;padding:5px 12px;text-overflow:ellipsis;white-space:nowrap}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination{width:100%}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination .n-button-group{display:flex}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination .n-button-group .n-button{flex:1}.classify-fieldkey-popover{width:200px}.quick-search-block .quick-item{margin-bottom:10px;min-width:32px;width:20%}.quick-search-block .quick-item .quick-row{display:flex}.quick-search-block .quick-item .quick-row .quick-item-title{box-sizing:border-box;flex-basis:134px;line-height:32px;min-width:130px;overflow:hidden;padding-left:4px;padding-right:4px;text-align:right;text-overflow:ellipsis;white-space:nowrap}.quick-search-block .quick-item .quick-row .quick-item-col{align-items:center;display:flex;padding:0 4px;width:calc(100% - 134px)}.quick-search-block .quick-item .quick-row .quick-item-title-default{width:25%}.quick-search-block .quick-item .quick-row .quick-item-col-default{width:75%}.quick-search-block.quick-search-table .quick-item{display:inline-block}.quick-search-block.quick-search-table .quick-item.quick-block{display:block;width:100%}
@@ -1167,11 +1167,7 @@ export declare const componentMap: {
1167
1167
  maxHeight: string;
1168
1168
  };
1169
1169
  closeTag: (selectItem: import("../../../../components/select-label").ISelectLabelItemType) => void;
1170
- formatActiveStyle: (activeItem: import("../../../../components/select-label").ISelectLabelItemType) => {
1171
- background: string;
1172
- color: string;
1173
- borderColor: string;
1174
- };
1170
+ formatActiveStyle: (activeItem: import("../../../../components/select-label").ISelectLabelItemType, isPic?: boolean) => any;
1175
1171
  handleEditLabel: () => void;
1176
1172
  handleLabelCancel: () => void;
1177
1173
  changeModalWindow: () => void;
@@ -1180,9 +1176,9 @@ export declare const componentMap: {
1180
1176
  NTag: any;
1181
1177
  NIcon: any;
1182
1178
  NModal: any;
1183
- NSpace: any;
1184
1179
  NTooltip: any;
1185
1180
  AddCircleOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1181
+ CloseOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1186
1182
  IhoLabelFormContent: import("vue").DefineComponent<{
1187
1183
  selectedList: {
1188
1184
  type: import("vue").PropType<import("../../../../components/select-label").ISelectLabelItemType[]>;
@@ -1264,10 +1260,14 @@ export declare const componentMap: {
1264
1260
  labelShowText: string;
1265
1261
  backgroundColor: string;
1266
1262
  fontColor?: string | undefined;
1263
+ bsv12?: string | undefined;
1264
+ bsv13?: string | undefined;
1265
+ exclusiveCode?: string | undefined;
1267
1266
  }[]>;
1268
1267
  showCheck: (label: import("../../../../components/select-label").IhoTabLabelItemType) => boolean;
1269
1268
  onHandleLabelChange: (isSelect?: boolean | undefined, item?: import("../../../../components/select-label").IhoTabLabelItemType | undefined, categoryItem?: import("../../../../components/select-label").ICategoryLabelItemType | undefined) => void;
1270
- formatStyle: (item: any) => any;
1269
+ onHandlePicChange: (item: import("../../../../components/select-label").IhoTabLabelItemType, categoryItem: import("../../../../components/select-label").ICategoryLabelItemType) => void;
1270
+ formatStyle: (item: any, isPic?: boolean) => any;
1271
1271
  NTag: any;
1272
1272
  NTooltip: any;
1273
1273
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -634,11 +634,7 @@ declare const SelectLabel: SFCWithInstall<import("vue").DefineComponent<{
634
634
  maxHeight: string;
635
635
  };
636
636
  closeTag: (selectItem: import("./src/types").ISelectLabelItemType) => void;
637
- formatActiveStyle: (activeItem: import("./src/types").ISelectLabelItemType) => {
638
- background: string;
639
- color: string;
640
- borderColor: string;
641
- };
637
+ formatActiveStyle: (activeItem: import("./src/types").ISelectLabelItemType, isPic?: boolean) => any;
642
638
  handleEditLabel: () => void;
643
639
  handleLabelCancel: () => void;
644
640
  changeModalWindow: () => void;
@@ -647,9 +643,9 @@ declare const SelectLabel: SFCWithInstall<import("vue").DefineComponent<{
647
643
  NTag: any;
648
644
  NIcon: any;
649
645
  NModal: any;
650
- NSpace: any;
651
646
  NTooltip: any;
652
647
  AddCircleOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
648
+ CloseOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
653
649
  IhoLabelFormContent: import("vue").DefineComponent<{
654
650
  selectedList: {
655
651
  type: import("vue").PropType<import("./src/types").ISelectLabelItemType[]>;
@@ -731,10 +727,14 @@ declare const SelectLabel: SFCWithInstall<import("vue").DefineComponent<{
731
727
  labelShowText: string;
732
728
  backgroundColor: string;
733
729
  fontColor?: string | undefined;
730
+ bsv12?: string | undefined;
731
+ bsv13?: string | undefined;
732
+ exclusiveCode?: string | undefined;
734
733
  }[]>;
735
734
  showCheck: (label: import("./src/types").IhoTabLabelItemType) => boolean;
736
735
  onHandleLabelChange: (isSelect?: boolean | undefined, item?: import("./src/types").IhoTabLabelItemType | undefined, categoryItem?: import("./src/types").ICategoryLabelItemType | undefined) => void;
737
- formatStyle: (item: any) => any;
736
+ onHandlePicChange: (item: import("./src/types").IhoTabLabelItemType, categoryItem: import("./src/types").ICategoryLabelItemType) => void;
737
+ formatStyle: (item: any, isPic?: boolean) => any;
738
738
  NTag: any;
739
739
  NTooltip: any;
740
740
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -81,10 +81,14 @@ declare const _default: import("vue").DefineComponent<{
81
81
  labelShowText: string;
82
82
  backgroundColor: string;
83
83
  fontColor?: string | undefined;
84
+ bsv12?: string | undefined;
85
+ bsv13?: string | undefined;
86
+ exclusiveCode?: string | undefined;
84
87
  }[]>;
85
88
  showCheck: (label: import("../../../../components/select-label/src/types").IhoTabLabelItemType) => boolean;
86
89
  onHandleLabelChange: (isSelect?: boolean | undefined, item?: import("../../../../components/select-label/src/types").IhoTabLabelItemType | undefined, categoryItem?: ICategoryLabelItemType | undefined) => void;
87
- formatStyle: (item: any) => any;
90
+ onHandlePicChange: (item: import("../../../../components/select-label/src/types").IhoTabLabelItemType, categoryItem: ICategoryLabelItemType) => void;
91
+ formatStyle: (item: any, isPic?: boolean) => any;
88
92
  NTag: any;
89
93
  NTooltip: any;
90
94
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -1 +1 @@
1
- import{createElementVNode as e,defineComponent as l,ref as a,watch as t,openBlock as i,createElementBlock as s,createCommentVNode as o,withDirectives as d,normalizeClass as r,createVNode as c,unref as n,withCtx as f,Fragment as y,renderList as u,createBlock as p,createTextVNode as v,toDisplayString as b,vShow as g}from"vue";import{NAnchor as C,NAnchorLink as m}from"naive-ui";import h from"./iho-label-classify.vue.js";var w,x;const L={key:0,class:"label-disable-wrap"},I=[e("p",{class:"label-disable-title"},(null==(w=window.getLanguageByCode)?void 0:w.call(window,"10010.1.516"))||"无可选标签",-1),e("p",{class:"label-disable-desc"},(null==(x=window.getLanguageByCode)?void 0:x.call(window,"10010.1.517"))||"请联系管理员进行标签管理设置",-1)],k={style:{height:"100%"}},N={class:"label-wrap"},S=["id"];var A=l({__name:"IhoLabelFormContent",props:{selectedList:{type:Array,default:()=>[]},categoryList:{type:Array,default:()=>[]},isChangeWindow:{type:Boolean,default:!1},explicit:{type:Boolean,default:!1}},emits:["explicitOnChange"],setup(l,{expose:w,emit:x}){const A=l,B=a(),O=a(null),$=()=>{var e;return null==(e=O.value)?void 0:e.querySelector(".right-label-wrap")},_=e=>{e.preventDefault()},F=(e,l,a)=>{let t=B.value||[];if(e)l.exclusiveCode&&(t=t.filter((e=>e.exclusiveCode!=l.exclusiveCode))),t.push({classifyId:a.classifyId,classifyName:a.classifyName,labelCode:l.labelCode,labelShowText:l.labelShowText,backgroundColor:l.backgroundColor,fontColor:l.fontColor,exclusiveCode:l.exclusiveCode});else{const e=t.findIndex((e=>e.classifyId===a.classifyId&&e.labelCode===l.labelCode));e>-1&&t.splice(e,1)}B.value=t,A.explicit&&x("explicitOnChange",t)};return t((()=>A.selectedList),(e=>{if(e){let l=Array.isArray(e)?e:[];B.value=JSON.parse(JSON.stringify(l))}}),{immediate:!0,deep:!0}),w({handleLabelForm:e=>{e([...B.value||[]])}}),(a,t)=>(i(),s("div",{class:"c-label-form-content",ref_key:"labelFormContent",ref:O},[l.categoryList.length?o("v-if",!0):(i(),s("div",L,I)),d(e("div",k,[e("div",N,[e("div",{class:r(["left-label-wrap",{"total-left-label-wrap":l.isChangeWindow}])},[c(n(C),{"offset-target":$,type:"block",onClick:_},{default:f((()=>[(i(!0),s(y,null,u(l.categoryList,(e=>(i(),p(n(m),{key:e.classifyId,href:`#${e.classifyId}-${e.classifyName}`,title:e.classifyName},null,8,["href","title"])))),128))])),_:1})],2),e("div",{class:r(["right-label-wrap",{"total-right-label-wrap":l.isChangeWindow}])},[(i(!0),s(y,null,u(l.categoryList,((l,a)=>(i(),s("div",{key:a,class:"edit-label-content"},[e("div",{class:"edit-label",id:`${l.classifyId}-${l.classifyName}`},[v(b(l.classifyName),1),o(" <span class=\"edit-label-type\">({{ v.multipleChoice == 2 ? '单' : '多' }}选)</span> ")],8,S),c(h,{categoryItem:l,selectedList:B.value,handleLabelChange:F},null,8,["categoryItem","selectedList"])])))),128))],2)])],512),[[g,l.categoryList.length>0]])],512))}});export{A as default};
1
+ import{createElementVNode as e,defineComponent as l,ref as a,watch as t,openBlock as s,createElementBlock as i,createCommentVNode as o,withDirectives as d,normalizeClass as r,createVNode as c,unref as n,withCtx as f,Fragment as y,renderList as u,createBlock as p,createTextVNode as v,toDisplayString as b,vShow as g}from"vue";import{NAnchor as C,NAnchorLink as m}from"naive-ui";import h from"./iho-label-classify.vue.js";var w,x;const L={key:0,class:"label-disable-wrap"},I=[e("p",{class:"label-disable-title"},(null==(w=window.getLanguageByCode)?void 0:w.call(window,"10010.1.516"))||"无可选标签",-1),e("p",{class:"label-disable-desc"},(null==(x=window.getLanguageByCode)?void 0:x.call(window,"10010.1.517"))||"请联系管理员进行标签管理设置",-1)],k={style:{height:"100%"}},N={class:"label-wrap"},S=["id"];var A=l({__name:"IhoLabelFormContent",props:{selectedList:{type:Array,default:()=>[]},categoryList:{type:Array,default:()=>[]},isChangeWindow:{type:Boolean,default:!1},explicit:{type:Boolean,default:!1}},emits:["explicitOnChange"],setup(l,{expose:w,emit:x}){const A=l,B=a(),O=a(null),$=()=>{var e;return null==(e=O.value)?void 0:e.querySelector(".right-label-wrap")},_=e=>{e.preventDefault()},F=(e,l,a)=>{let t=B.value||[];if(e)l.exclusiveCode&&(t=t.filter((e=>e.exclusiveCode!=l.exclusiveCode))),t.push({classifyId:a.classifyId,classifyName:a.classifyName,labelCode:l.labelCode,labelShowText:l.labelShowText,backgroundColor:l.backgroundColor,fontColor:l.fontColor,exclusiveCode:l.exclusiveCode,bsv12:l.bsv12,bsv13:l.bsv13});else{const e=t.findIndex((e=>e.classifyId===a.classifyId&&e.labelCode===l.labelCode));e>-1&&t.splice(e,1)}B.value=t,A.explicit&&x("explicitOnChange",t)};return t((()=>A.selectedList),(e=>{if(e){let l=Array.isArray(e)?e:[];B.value=JSON.parse(JSON.stringify(l))}}),{immediate:!0,deep:!0}),w({handleLabelForm:e=>{e([...B.value||[]])}}),(a,t)=>(s(),i("div",{class:"c-label-form-content",ref_key:"labelFormContent",ref:O},[l.categoryList.length?o("v-if",!0):(s(),i("div",L,I)),d(e("div",k,[e("div",N,[e("div",{class:r(["left-label-wrap",{"total-left-label-wrap":l.isChangeWindow}])},[c(n(C),{"offset-target":$,type:"block",onClick:_},{default:f((()=>[(s(!0),i(y,null,u(l.categoryList,(e=>(s(),p(n(m),{key:e.classifyId,href:`#${e.classifyId}-${e.classifyName}`,title:e.classifyName},null,8,["href","title"])))),128))])),_:1})],2),e("div",{class:r(["right-label-wrap",{"total-right-label-wrap":l.isChangeWindow}])},[(s(!0),i(y,null,u(l.categoryList,((l,a)=>(s(),i("div",{key:a,class:"edit-label-content"},[e("div",{class:"edit-label",id:`${l.classifyId}-${l.classifyName}`},[v(b(l.classifyName),1),o(" <span class=\"edit-label-type\">({{ v.multipleChoice == 2 ? '单' : '多' }}选)</span> ")],8,S),c(h,{categoryItem:l,selectedList:B.value,handleLabelChange:F},null,8,["categoryItem","selectedList"])])))),128))],2)])],512),[[g,l.categoryList.length>0]])],512))}});export{A as default};
@@ -41,11 +41,7 @@ declare const _default: import("vue").DefineComponent<{
41
41
  maxHeight: string;
42
42
  };
43
43
  closeTag: (selectItem: ISelectLabelItemType) => void;
44
- formatActiveStyle: (activeItem: ISelectLabelItemType) => {
45
- background: string;
46
- color: string;
47
- borderColor: string;
48
- };
44
+ formatActiveStyle: (activeItem: ISelectLabelItemType, isPic?: boolean) => any;
49
45
  handleEditLabel: () => void;
50
46
  handleLabelCancel: () => void;
51
47
  changeModalWindow: () => void;
@@ -54,9 +50,9 @@ declare const _default: import("vue").DefineComponent<{
54
50
  NTag: any;
55
51
  NIcon: any;
56
52
  NModal: any;
57
- NSpace: any;
58
53
  NTooltip: any;
59
54
  AddCircleOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
55
+ CloseOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
60
56
  IhoLabelFormContent: import("vue").DefineComponent<{
61
57
  selectedList: {
62
58
  type: PropType<ISelectLabelItemType[]>;
@@ -138,10 +134,14 @@ declare const _default: import("vue").DefineComponent<{
138
134
  labelShowText: string;
139
135
  backgroundColor: string;
140
136
  fontColor?: string | undefined;
137
+ bsv12?: string | undefined;
138
+ bsv13?: string | undefined;
139
+ exclusiveCode?: string | undefined;
141
140
  }[]>;
142
141
  showCheck: (label: import("../../../../components/select-label/src/types").IhoTabLabelItemType) => boolean;
143
142
  onHandleLabelChange: (isSelect?: boolean | undefined, item?: import("../../../../components/select-label/src/types").IhoTabLabelItemType | undefined, categoryItem?: ICategoryLabelItemType | undefined) => void;
144
- formatStyle: (item: any) => any;
143
+ onHandlePicChange: (item: import("../../../../components/select-label/src/types").IhoTabLabelItemType, categoryItem: ICategoryLabelItemType) => void;
144
+ formatStyle: (item: any, isPic?: boolean) => any;
145
145
  NTag: any;
146
146
  NTooltip: any;
147
147
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -1 +1 @@
1
- import{createElementVNode as e,defineComponent as l,ref as i,reactive as a,watch as o,openBlock as t,createElementBlock as n,Fragment as s,createBlock as d,unref as c,withCtx as r,renderList as g,normalizeStyle as u,createVNode as p,toDisplayString as h,createTextVNode as m,createCommentVNode as w,normalizeClass as x}from"vue";import{NSpace as C,NTag as b,NTooltip as f,NIcon as v,NModal as y}from"naive-ui";import{AddCircleOutline as L}from"@vicons/ionicons5";import{cloneDeep as W}from"lodash-es";import k from"./IhoLabelFormContent.vue.js";var H;const _={class:"c-select-label"},z={key:1,class:"outexplicit"},I=e("span",null,(null==(H=window.getLanguageByCode)?void 0:H.call(window,"10010.1.518"))||"选择标签",-1),B={class:"svg-wrap"};var V=l({__name:"IhoSelectLabel",props:{selectedList:{type:Array,default:()=>[]},categoryList:{type:Array,default:()=>[]},explicit:{type:Boolean,default:!1}},emits:["onChange"],setup(l,{emit:H}){const V=l,A=i(null),F=i(),S=a({labelVisible:!1,isChangeWindow:!1,modalWidth:"763px",modalHeight:"404px",maxHeight:"404px"}),E=()=>{V.explicit||(S.labelVisible=!0)},O=()=>{V.explicit||(S.modalWidth="763px",S.modalHeight="404px",S.maxHeight="404px",S.isChangeWindow=!1,S.labelVisible=!1)},R=()=>{S.isChangeWindow=!S.isChangeWindow;let e=document.body.clientHeight;S.modalWidth="763px"===S.modalWidth?"100%":"763px",S.modalHeight="404px"===S.modalHeight?e-110+"px":"404px",S.maxHeight="auto"===S.modalHeight?"404px":"none"},T=()=>{var e;null==(e=A.value)||e.handleLabelForm((e=>{H("onChange",[...e]),F.value=e,O()}))},$=()=>{T()};return o((()=>V.selectedList),(e=>{if(e){let l=Array.isArray(e)?e:[];F.value=W(l)}}),{immediate:!0,deep:!0}),(i,a)=>{var o,W;return t(),n(s,null,[e("div",_,[l.explicit?w("v-if",!0):(t(),d(c(C),{key:0,align:"center"},{default:r((()=>{var i;return[(t(!0),n(s,null,g(F.value,(l=>{return t(),d(c(b),{bordered:!1,key:`${l.classifyId}-${l.labelCode}`,class:"select-label-active",style:u((i=l,{background:i.backgroundColor,color:(null==i?void 0:i.fontColor)||"#fff",borderColor:i.backgroundColor})),size:"small",closable:"",onClose:e=>(e=>{const l=F.value||[],i=l.findIndex((l=>l.classifyId==e.classifyId&&l.labelCode==e.labelCode));i>-1&&l.splice(i,1),F.value=l,H("onChange",[...l])})(l)},{default:r((()=>[p(c(f),{placement:"top-start",duration:0},{trigger:r((()=>[e("span",null,h(l.labelShowText),1)])),default:r((()=>[e("span",null,h(l.labelShowText),1)])),_:2},1024)])),_:2},1032,["style","onClose"]);var i})),128)),l.explicit?w("v-if",!0):(t(),n("span",{key:0,class:"form-add-icon form-add-icon-label",onClick:E},[p(c(v),{class:"add-icon",component:c(L)},null,8,["component"]),m((null==(i=window.getLanguageByCode)?void 0:i.call(window,"10010.1.279"))||"新增")]))]})),_:1})),l.explicit?(t(),n("div",z,[p(k,{ref_key:"labelFormContentRef",ref:A,categoryList:l.categoryList,selectedList:l.selectedList,isChangeWindow:S.isChangeWindow,explicit:l.explicit,onExplicitOnChange:$},null,8,["categoryList","selectedList","isChangeWindow","explicit"])])):w("v-if",!0)]),w(" 弹窗 "),p(c(y),{preset:"dialog",class:x(["label-form-modal-wrap modal-wrap standard-modal standard-modal-white",{"modal-screen":S.isChangeWindow}]),show:S.labelVisible,"onUpdate:show":a[0]||(a[0]=e=>S.labelVisible=e),onPositiveClick:T,onNegativeClick:O,onClose:O,"mask-closable":!1,"close-on-esc":!1,"show-icon":!1,"negative-text":(null==(o=window.getLanguageByCode)?void 0:o.call(window,"10010.1.28"))||"取消","positive-text":(null==(W=window.getLanguageByCode)?void 0:W.call(window,"10010.1.27"))||"确定",style:u({width:S.modalWidth})},{header:r((()=>[I,e("div",B,[e("i",{onClick:R,class:x(["iconfont-select-label",S.isChangeWindow?"icon-select-label-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-select-label-menzhenyishengzhanxitongtubiaozuidahua"])},null,2)])])),default:r((()=>[p(k,{ref_key:"labelFormContentRef",ref:A,categoryList:l.categoryList,selectedList:F.value,isChangeWindow:S.isChangeWindow,explicit:l.explicit,onExplicitOnChange:$},null,8,["categoryList","selectedList","isChangeWindow","explicit"])])),_:1},8,["show","class","style"])],64)}}});export{V as default};
1
+ import{createElementVNode as e,defineComponent as l,ref as i,reactive as o,watch as a,openBlock as t,createElementBlock as n,Fragment as s,renderList as d,createBlock as c,unref as r,normalizeStyle as g,withCtx as p,createVNode as u,toDisplayString as m,createCommentVNode as h,createTextVNode as b,normalizeClass as w}from"vue";import{NTag as x,NTooltip as C,NIcon as f,NModal as v}from"naive-ui";import{CloseOutline as y,AddCircleOutline as L}from"@vicons/ionicons5";import{cloneDeep as k}from"lodash-es";import W from"./IhoLabelFormContent.vue.js";var H;const z={class:"c-select-label"},_={key:0,class:"out-selectlabel-wapper"},I=["src"],B={key:1,class:"outexplicit"},V=e("span",null,(null==(H=window.getLanguageByCode)?void 0:H.call(window,"10010.1.518"))||"选择标签",-1),A={class:"svg-wrap"};var F=l({__name:"IhoSelectLabel",props:{selectedList:{type:Array,default:()=>[]},categoryList:{type:Array,default:()=>[]},explicit:{type:Boolean,default:!1}},emits:["onChange"],setup(l,{emit:H}){const F=l,S=i(null),T=i(),E=o({labelVisible:!1,isChangeWindow:!1,modalWidth:"763px",modalHeight:"404px",maxHeight:"404px"}),O=e=>{const l=T.value||[],i=l.findIndex((l=>l.classifyId==e.classifyId&&l.labelCode==e.labelCode));i>-1&&l.splice(i,1),T.value=l,H("onChange",[...l])},R=(e,l=!1)=>{const i={borderColor:e.backgroundColor};return l||(i.background=e.backgroundColor,i.color=(null==e?void 0:e.fontColor)||"#fff"),i},$=()=>{F.explicit||(E.labelVisible=!0)},j=()=>{F.explicit||(E.modalWidth="763px",E.modalHeight="404px",E.maxHeight="404px",E.isChangeWindow=!1,E.labelVisible=!1)},N=()=>{E.isChangeWindow=!E.isChangeWindow;let e=document.body.clientHeight;E.modalWidth="763px"===E.modalWidth?"100%":"763px",E.modalHeight="404px"===E.modalHeight?e-110+"px":"404px",E.maxHeight="auto"===E.modalHeight?"404px":"none"},P=()=>{var e;null==(e=S.value)||e.handleLabelForm((e=>{H("onChange",[...e]),T.value=e,j()}))},U=()=>{P()};return a((()=>F.selectedList),(e=>{if(e){let l=Array.isArray(e)?e:[];T.value=k(l)}}),{immediate:!0,deep:!0}),(i,o)=>{var a,k,H;return t(),n(s,null,[e("div",z,[l.explicit?h("v-if",!0):(t(),n("div",_,[(t(!0),n(s,null,d(T.value,(l=>(t(),n(s,{key:`${l.classifyId}-${l.labelCode}`},["1"!=l.bsv12&&l.bsv12?"2"==l.bsv12?(t(),c(r(C),{key:1,placement:"top-start",duration:0},{trigger:p((()=>[e("div",{class:"label-img",style:g(R(l))},[e("img",{class:"label-img-content",src:l.bsv13,alt:""},null,8,I),u(r(f),{class:"close-icon",size:17,color:"#fff",component:r(y),onClick:e=>O(l)},null,8,["component","onClick"])],4)])),default:p((()=>[e("span",null,m(l.labelShowText),1)])),_:2},1024)):h("v-if",!0):(t(),c(r(x),{key:0,bordered:!1,class:"select-label-active",style:g(R(l)),size:"small",closable:"",onClose:e=>O(l)},{default:p((()=>[u(r(C),{placement:"top-start",duration:0},{trigger:p((()=>[e("span",null,m(l.labelShowText),1)])),default:p((()=>[e("span",null,m(l.labelShowText),1)])),_:2},1024)])),_:2},1032,["style","onClose"]))],64)))),128)),l.explicit?h("v-if",!0):(t(),n("span",{key:0,class:"form-add-icon form-add-icon-label",onClick:$},[u(r(f),{class:"add-icon",component:r(L)},null,8,["component"]),b((null==(a=window.getLanguageByCode)?void 0:a.call(window,"10010.1.279"))||"新增")]))])),l.explicit?(t(),n("div",B,[u(W,{ref_key:"labelFormContentRef",ref:S,categoryList:l.categoryList,selectedList:l.selectedList,isChangeWindow:E.isChangeWindow,explicit:l.explicit,onExplicitOnChange:U},null,8,["categoryList","selectedList","isChangeWindow","explicit"])])):h("v-if",!0)]),h(" 弹窗 "),u(r(v),{preset:"dialog",class:w(["label-form-modal-wrap modal-wrap standard-modal standard-modal-white",{"modal-screen":E.isChangeWindow}]),show:E.labelVisible,"onUpdate:show":o[0]||(o[0]=e=>E.labelVisible=e),onPositiveClick:P,onNegativeClick:j,onClose:j,"mask-closable":!1,"close-on-esc":!1,"show-icon":!1,"negative-text":(null==(k=window.getLanguageByCode)?void 0:k.call(window,"10010.1.28"))||"取消","positive-text":(null==(H=window.getLanguageByCode)?void 0:H.call(window,"10010.1.27"))||"确定",style:g({width:E.modalWidth})},{header:p((()=>[V,e("div",A,[e("i",{onClick:N,class:w(["iconfont-select-label",E.isChangeWindow?"icon-select-label-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-select-label-menzhenyishengzhanxitongtubiaozuidahua"])},null,2)])])),default:p((()=>[u(W,{ref_key:"labelFormContentRef",ref:S,categoryList:l.categoryList,selectedList:T.value,isChangeWindow:E.isChangeWindow,explicit:l.explicit,onExplicitOnChange:U},null,8,["categoryList","selectedList","isChangeWindow","explicit"])])),_:1},8,["show","class","style"])],64)}}});export{F as default};
@@ -34,10 +34,14 @@ declare const _default: import("vue").DefineComponent<{
34
34
  labelShowText: string;
35
35
  backgroundColor: string;
36
36
  fontColor?: string | undefined;
37
+ bsv12?: string | undefined;
38
+ bsv13?: string | undefined;
39
+ exclusiveCode?: string | undefined;
37
40
  }[]>;
38
41
  showCheck: (label: IhoTabLabelItemType) => boolean;
39
42
  onHandleLabelChange: (isSelect?: boolean, item?: IhoTabLabelItemType, categoryItem?: ICategoryLabelItemType) => void;
40
- formatStyle: (item: any) => any;
43
+ onHandlePicChange: (item: IhoTabLabelItemType, categoryItem: ICategoryLabelItemType) => void;
44
+ formatStyle: (item: any, isPic?: boolean) => any;
41
45
  NTag: any;
42
46
  NTooltip: any;
43
47
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -1 +1 @@
1
- import{createElementVNode as e,defineComponent as l,ref as a,openBlock as t,createElementBlock as o,unref as n,Fragment as d,renderList as c,createBlock as s,normalizeStyle as r,withCtx as i,createVNode as u,toDisplayString as b}from"vue";import{NTag as g,NTooltip as p}from"naive-ui";var y,f;const h={class:"edit-content"},C={key:0,class:"label-disable-wrap"},k=[e("p",{class:"label-disable-title"},(null==(y=window.getLanguageByCode)?void 0:y.call(window,"10010.1.516"))||"无可选标签",-1),e("p",{class:"label-disable-desc"},(null==(f=window.getLanguageByCode)?void 0:f.call(window,"10010.1.517"))||"请联系管理员进行标签管理设置",-1)],v={key:1,class:"label-content"};var w=l({__name:"iho-label-classify",props:{categoryItem:{type:Object,default:()=>({})},selectedList:{type:Array,default:()=>[]},handleLabelChange:{type:Function,default:()=>({})}},setup(l){var y;const f=l,w="rgb(85, 133, 245)";let m=a((null==(y=f.categoryItem)?void 0:y.labelList)||[]);const I=e=>f.selectedList.findIndex((l=>l.classifyId===f.categoryItem.classifyId&&l.labelCode===e.labelCode))>-1;function L(e){const l={background:e.backgroundColor||w,borderColor:e.backgroundColor||w};return e.fontColor&&(l.color=e.fontColor),I(e)?l:{}}return(a,y)=>(t(),o("div",h,[n(m)&&0!==n(m).length?(t(),o("div",v,[(t(!0),o(d,null,c(n(m),(a=>(t(),s(n(g),{checkable:"",checked:I(a),"onUpdate:checked":e=>((e,l,a)=>{f.handleLabelChange(e,l,a)})(e,a,l.categoryItem),key:a.labelCode,style:r(L(a))},{default:i((()=>[u(n(p),{placement:"top-start",duration:0},{trigger:i((()=>[e("span",null,b(a.labelShowText),1)])),default:i((()=>[e("span",null,b(a.labelShowText),1)])),_:2},1024)])),_:2},1032,["checked","onUpdate:checked","style"])))),128))])):(t(),o("div",C,k))]))}});export{w as default};
1
+ import{createElementVNode as e,defineComponent as l,ref as a,openBlock as t,createElementBlock as o,unref as n,Fragment as c,renderList as s,createBlock as d,normalizeStyle as r,withCtx as i,createVNode as b,toDisplayString as u,createCommentVNode as g}from"vue";import{NTag as y,NTooltip as p}from"naive-ui";var f,h;const v={class:"edit-content"},k={key:0,class:"label-disable-wrap"},C=[e("p",{class:"label-disable-title"},(null==(f=window.getLanguageByCode)?void 0:f.call(window,"10010.1.516"))||"无可选标签",-1),e("p",{class:"label-disable-desc"},(null==(h=window.getLanguageByCode)?void 0:h.call(window,"10010.1.517"))||"请联系管理员进行标签管理设置",-1)],m={key:1,class:"label-content"},w=["src","onClick"];var I=l({__name:"iho-label-classify",props:{categoryItem:{type:Object,default:()=>({})},selectedList:{type:Array,default:()=>[]},handleLabelChange:{type:Function,default:()=>({})}},setup(l){var f;const h=l,I="rgb(85, 133, 245)";let L=a((null==(f=h.categoryItem)?void 0:f.labelList)||[]);const x=e=>h.selectedList.findIndex((l=>l.classifyId===h.categoryItem.classifyId&&l.labelCode===e.labelCode))>-1;function _(e,l=!1){const a={borderColor:e.backgroundColor||I};return l||(a.background=e.backgroundColor||I),e.fontColor&&(a.color=e.fontColor),x(e)?a:{}}return(a,f)=>(t(),o("div",v,[n(L)&&0!==n(L).length?(t(),o("div",m,[(t(!0),o(c,null,s(n(L),(a=>(t(),o(c,{key:a.labelCode},["1"!=a.bsv12&&a.bsv12?"2"==a.bsv12?(t(),d(n(p),{key:1,placement:"top-start",duration:0},{trigger:i((()=>[e("img",{class:"label-img",src:a.bsv13,alt:"",style:r(_(a,!0)),onClick:e=>((e,l)=>{const a=x(e);h.handleLabelChange(!a,e,l)})(a,l.categoryItem)},null,12,w)])),default:i((()=>[e("span",null,u(a.labelShowText),1)])),_:2},1024)):g("v-if",!0):(t(),d(n(y),{key:0,checkable:"",checked:x(a),"onUpdate:checked":e=>((e,l,a)=>{h.handleLabelChange(e,l,a)})(e,a,l.categoryItem),style:r(_(a))},{default:i((()=>[b(n(p),{placement:"top-start",duration:0},{trigger:i((()=>[e("span",null,u(a.labelShowText),1)])),default:i((()=>[e("span",null,u(a.labelShowText),1)])),_:2},1024)])),_:2},1032,["checked","onUpdate:checked","style"]))],64)))),128))])):(t(),o("div",k,C))]))}});export{I as default};
@@ -635,11 +635,7 @@ declare const _default: import("vue").DefineComponent<{
635
635
  maxHeight: string;
636
636
  };
637
637
  closeTag: (selectItem: import("../../../components/select-label/src/types").ISelectLabelItemType) => void;
638
- formatActiveStyle: (activeItem: import("../../../components/select-label/src/types").ISelectLabelItemType) => {
639
- background: string;
640
- color: string;
641
- borderColor: string;
642
- };
638
+ formatActiveStyle: (activeItem: import("../../../components/select-label/src/types").ISelectLabelItemType, isPic?: boolean) => any;
643
639
  handleEditLabel: () => void;
644
640
  handleLabelCancel: () => void;
645
641
  changeModalWindow: () => void;
@@ -648,9 +644,9 @@ declare const _default: import("vue").DefineComponent<{
648
644
  NTag: any;
649
645
  NIcon: any;
650
646
  NModal: any;
651
- NSpace: any;
652
647
  NTooltip: any;
653
648
  AddCircleOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
649
+ CloseOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
654
650
  IhoLabelFormContent: import("vue").DefineComponent<{
655
651
  selectedList: {
656
652
  type: PropType<import("../../../components/select-label/src/types").ISelectLabelItemType[]>;
@@ -732,10 +728,14 @@ declare const _default: import("vue").DefineComponent<{
732
728
  labelShowText: string;
733
729
  backgroundColor: string;
734
730
  fontColor?: string | undefined;
731
+ bsv12?: string | undefined;
732
+ bsv13?: string | undefined;
733
+ exclusiveCode?: string | undefined;
735
734
  }[]>;
736
735
  showCheck: (label: import("../../../components/select-label/src/types").IhoTabLabelItemType) => boolean;
737
736
  onHandleLabelChange: (isSelect?: boolean | undefined, item?: import("../../../components/select-label/src/types").IhoTabLabelItemType | undefined, categoryItem?: ICategoryLabelItemType | undefined) => void;
738
- formatStyle: (item: any) => any;
737
+ onHandlePicChange: (item: import("../../../components/select-label/src/types").IhoTabLabelItemType, categoryItem: ICategoryLabelItemType) => void;
738
+ formatStyle: (item: any, isPic?: boolean) => any;
739
739
  NTag: any;
740
740
  NTooltip: any;
741
741
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -8,5 +8,8 @@ export type IhoTabLabelItemType = {
8
8
  labelShowText: string;
9
9
  backgroundColor: string;
10
10
  fontColor?: string;
11
+ bsv12?: string;
12
+ bsv13?: string;
13
+ exclusiveCode?: string;
11
14
  };
12
- export type ISelectLabelItemType = Pick<ICategoryLabelItemType, 'classifyId' | 'classifyName'> & Pick<IhoTabLabelItemType, 'labelCode' | 'labelShowText' | 'backgroundColor' | 'fontColor'>;
15
+ export type ISelectLabelItemType = Pick<ICategoryLabelItemType, 'classifyId' | 'classifyName'> & Pick<IhoTabLabelItemType, 'labelCode' | 'labelShowText' | 'backgroundColor' | 'fontColor' | 'bsv12' | 'bsv13' | 'exclusiveCode'>;
@@ -1 +1 @@
1
- @font-face{font-family:select-label-iconfont;src:url(select-label-iconfont.ttf) format("truetype")}.iconfont-select-label{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:select-label-iconfont!important;font-size:14px;font-style:normal}.icon-select-label-menzhenyishengzhanxitongtubiaozuixiaohua2:before{content:"\e778"}.icon-select-label-menzhenyishengzhanxitongtubiaozuidahua:before{content:"\e779"}.c-select-label .label-disable-wrap{align-items:center;display:flex;flex-direction:column;font-size:14px;line-height:20px;width:100%}.c-select-label .label-disable-wrap .label-disable-img{height:248px;width:320px}.c-select-label .common-label{border:1px solid rgba(0,0,0,.1);border-radius:4px;margin-top:8px!important;padding:4px 12px}.c-select-label .common-label>span{color:rgba(0,0,0,.9);margin-right:16px}.c-select-label .form-add-icon-label{align-items:center;color:#2d7aff;cursor:pointer;display:inline-flex;vertical-align:middle}.c-select-label .anticon+.anticon{margin-left:16px}.c-select-label .n-tag{border:1px solid #e0e0e6;margin:0 8px 0 0;max-width:108px}.c-select-label .n-tag .n-base-icon{color:#fff}.c-select-label .n-tag .n-tag__content{align-items:center;display:inline-block;line-height:20px;max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-label-form-content{border-bottom:1px solid #e8e8e8;border-top:1px solid #e8e8e8;height:100%;width:100%}.c-label-form-content .label-wrap{display:flex;height:100%;width:100%}.c-label-form-content .label-wrap .left-label-wrap{border-right:1px solid #e8e8e8;max-height:404px;width:140px}.c-label-form-content .label-wrap .left-label-wrap.total-left-label-wrap{height:calc(100vh - 109px);max-height:calc(100vh - 109px)}.c-label-form-content .label-wrap .left-label-wrap.explicit-label-wrap{height:auto;overflow:hidden;overflow-y:auto;width:100%}.c-label-form-content .label-wrap .left-label-wrap .n-anchor.n-anchor--block .n-anchor-link{font-size:14px;padding:10px 8px}.c-label-form-content .label-wrap .left-label-wrap .n-anchor.n-anchor--block .n-anchor-link.n-anchor-link--active{background-color:#f2f2f2}.c-label-form-content .label-wrap .right-label-wrap{flex:1;max-height:404px;overflow-y:auto}.c-label-form-content .label-wrap .right-label-wrap.total-right-label-wrap{max-height:calc(100vh - 109px)}.c-label-form-content .label-wrap .right-label-wrap .label-add{display:inline-flex;height:30px;justify-content:center;line-height:30px;position:relative;text-align:center;top:2px;width:108px}.c-label-form-content .label-wrap .right-label-wrap .label-add .selfval{align-items:center;display:flex;justify-content:center}.c-label-form-content .label-wrap .right-label-wrap .add-input{width:108px}.c-label-form-content .label-wrap .right-label-wrap .add-input .n-input__suffix{cursor:pointer}.c-label-form-content .label-wrap .explicit-continer{border:1px solid #d5d5d5;width:100%}.c-label-form-content .edit-label-type{font-size:12px;margin-left:4px}.c-label-form-content .edit-label-content{margin-top:10px;padding:0 14px}.c-label-form-content .edit-label-content .edit-content{margin-top:8px;width:100%}.c-label-form-content .edit-label-content .edit-content .n-tag{border:1px solid #e0e0e6;margin:0 8px 8px 0;max-width:108px;text-align:center}.c-label-form-content .edit-label-content .edit-content .n-tag .n-tag__content{align-items:center;display:inline-flex}.c-label-form-content .edit-label-content .edit-content .n-tag .n-tag__content span{display:inline-block;height:100%;line-height:30px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:80px}.n-dialog__title .svg-wrap{margin:0 0 0 auto}.n-dialog__title .svg-wrap i{cursor:pointer;font-size:16px}
1
+ @font-face{font-family:select-label-iconfont;src:url(select-label-iconfont.ttf) format("truetype")}.iconfont-select-label{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:select-label-iconfont!important;font-size:14px;font-style:normal}.icon-select-label-menzhenyishengzhanxitongtubiaozuixiaohua2:before{content:"\e778"}.icon-select-label-menzhenyishengzhanxitongtubiaozuidahua:before{content:"\e779"}.c-select-label .out-selectlabel-wapper{align-items:center;display:flex;flex-wrap:wrap}.c-select-label .label-disable-wrap{align-items:center;display:flex;flex-direction:column;font-size:14px;line-height:20px;width:100%}.c-select-label .label-disable-wrap .label-disable-img{height:248px;width:320px}.c-select-label .common-label{border:1px solid rgba(0,0,0,.1);border-radius:4px;margin-top:8px!important;padding:4px 12px}.c-select-label .common-label>span{color:rgba(0,0,0,.9);margin-right:16px}.c-select-label .form-add-icon-label{align-items:center;color:#2d7aff;cursor:pointer;display:inline-flex;margin-bottom:8px;vertical-align:middle}.c-select-label .anticon+.anticon{margin-left:16px}.c-select-label .n-tag{border:1px solid #e0e0e6;margin:0 8px 8px 0;max-width:108px}.c-select-label .n-tag .n-base-icon{color:#fff}.c-select-label .n-tag .n-tag__content{align-items:center;display:inline-block;line-height:20px;max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-select-label .label-img{align-items:center;border:1px solid #e0e0e6;display:block;display:flex;margin:0 8px 8px 0;padding:0 3px 0 6px}.c-select-label .label-img .label-img-content{display:block;height:20px;margin-right:3px}.c-select-label .label-img .close-icon{cursor:pointer}.c-label-form-content{border-bottom:1px solid #e8e8e8;border-top:1px solid #e8e8e8;height:100%;width:100%}.c-label-form-content .label-wrap{display:flex;height:100%;width:100%}.c-label-form-content .label-wrap .left-label-wrap{border-right:1px solid #e8e8e8;max-height:404px;width:140px}.c-label-form-content .label-wrap .left-label-wrap.total-left-label-wrap{height:calc(100vh - 109px);max-height:calc(100vh - 109px)}.c-label-form-content .label-wrap .left-label-wrap.explicit-label-wrap{height:auto;overflow:hidden;overflow-y:auto;width:100%}.c-label-form-content .label-wrap .left-label-wrap .n-anchor.n-anchor--block .n-anchor-link{font-size:14px;padding:10px 8px}.c-label-form-content .label-wrap .left-label-wrap .n-anchor.n-anchor--block .n-anchor-link.n-anchor-link--active{background-color:#f2f2f2}.c-label-form-content .label-wrap .right-label-wrap{flex:1;max-height:404px;overflow-y:auto}.c-label-form-content .label-wrap .right-label-wrap.total-right-label-wrap{max-height:calc(100vh - 109px)}.c-label-form-content .label-wrap .right-label-wrap .label-add{display:inline-flex;height:30px;justify-content:center;line-height:30px;position:relative;text-align:center;top:2px;width:108px}.c-label-form-content .label-wrap .right-label-wrap .label-add .selfval{align-items:center;display:flex;justify-content:center}.c-label-form-content .label-wrap .right-label-wrap .add-input{width:108px}.c-label-form-content .label-wrap .right-label-wrap .add-input .n-input__suffix{cursor:pointer}.c-label-form-content .label-wrap .explicit-continer{border:1px solid #d5d5d5;width:100%}.c-label-form-content .edit-label-type{font-size:12px;margin-left:4px}.c-label-form-content .edit-label-content{margin-top:10px;padding:0 14px}.c-label-form-content .edit-label-content .edit-content{margin-top:8px;width:100%}.c-label-form-content .edit-label-content .edit-content .label-content{align-items:center;display:flex;flex-wrap:wrap}.c-label-form-content .edit-label-content .edit-content .n-tag{border:1px solid #e0e0e6;height:28px;margin:0 8px 8px 0;max-width:108px;text-align:center}.c-label-form-content .edit-label-content .edit-content .n-tag .n-tag__content{align-items:center;display:inline-flex}.c-label-form-content .edit-label-content .edit-content .n-tag .n-tag__content span{display:inline-block;height:100%;line-height:30px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:80px}.c-label-form-content .edit-label-content .edit-content .label-img{border:1px solid #e0e0e6;box-sizing:border-box;cursor:pointer;display:block;height:28px;margin:0 8px 8px 0;padding:0}.n-dialog__title .svg-wrap{margin:0 0 0 auto}.n-dialog__title .svg-wrap i{cursor:pointer;font-size:16px}
@@ -103,6 +103,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
103
103
  uncheckableField: {
104
104
  type: StringConstructor;
105
105
  };
106
+ onlyForwardCascade: {
107
+ type: BooleanConstructor;
108
+ };
106
109
  }, {
107
110
  $attrs: {
108
111
  [x: string]: unknown;
@@ -211,6 +214,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
211
214
  uncheckableField: {
212
215
  type: StringConstructor;
213
216
  };
217
+ onlyForwardCascade: {
218
+ type: BooleanConstructor;
219
+ };
214
220
  }>> & {
215
221
  onCheck?: ((...args: any[]) => any) | undefined;
216
222
  onCheckWithLevel?: ((...args: any[]) => any) | undefined;
@@ -665,6 +671,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
665
671
  uncheckableField: {
666
672
  type: StringConstructor;
667
673
  };
674
+ onlyForwardCascade: {
675
+ type: BooleanConstructor;
676
+ };
668
677
  }, {
669
678
  searchFilterBase: {
670
679
  isOpen: boolean;
@@ -769,6 +778,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
769
778
  uncheckableField: {
770
779
  type: StringConstructor;
771
780
  };
781
+ onlyForwardCascade: {
782
+ type: BooleanConstructor;
783
+ };
772
784
  }>> & {}>>;
773
785
  emit: any;
774
786
  keyword: import("vue").Ref<string>;
@@ -853,7 +865,11 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
853
865
  key: string | number;
854
866
  }[];
855
867
  setTagData: (tree: import("naive-ui").TreeOption[]) => void;
856
- updateTreeChecked: (keys: (string | number)[]) => void;
868
+ getFlattenKeys: (tree: import("naive-ui").TreeOption[]) => any[];
869
+ updateTreeChecked: (keys: (string | number)[], _: any, meta: {
870
+ node: import("naive-ui").TreeOption | null;
871
+ action: "check" | "uncheck";
872
+ }) => void;
857
873
  setCheckedAll: () => void;
858
874
  clearAll: () => void;
859
875
  closeTag: (tag: {
@@ -1195,6 +1211,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
1195
1211
  uncheckableField: {
1196
1212
  type: StringConstructor;
1197
1213
  };
1214
+ onlyForwardCascade: {
1215
+ type: BooleanConstructor;
1216
+ };
1198
1217
  }>>, {
1199
1218
  data: (import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject)[];
1200
1219
  defaultList: ((string | number) | {
@@ -1227,6 +1246,7 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
1227
1246
  roleData: (import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject)[];
1228
1247
  roleFields: Record<string, any>;
1229
1248
  forceShowSelectAll: boolean;
1249
+ onlyForwardCascade: boolean;
1230
1250
  }>>;
1231
1251
  getProps: import("vue").ComputedRef<Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1232
1252
  defaultList: {
@@ -1332,6 +1352,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
1332
1352
  uncheckableField: {
1333
1353
  type: StringConstructor;
1334
1354
  };
1355
+ onlyForwardCascade: {
1356
+ type: BooleanConstructor;
1357
+ };
1335
1358
  }>> & {
1336
1359
  onCheck?: ((...args: any[]) => any) | undefined;
1337
1360
  onCheckWithLevel?: ((...args: any[]) => any) | undefined;
@@ -1444,6 +1467,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
1444
1467
  uncheckableField: {
1445
1468
  type: StringConstructor;
1446
1469
  };
1470
+ onlyForwardCascade: {
1471
+ type: BooleanConstructor;
1472
+ };
1447
1473
  }>> & {
1448
1474
  onCheck?: ((...args: any[]) => any) | undefined;
1449
1475
  onCheckWithLevel?: ((...args: any[]) => any) | undefined;
@@ -1482,5 +1508,6 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
1482
1508
  switchTypeData: import("../../shared/types").AnyObject;
1483
1509
  tagProps: import("../../shared/types").AnyObject;
1484
1510
  forceShowSelectAll: boolean;
1511
+ onlyForwardCascade: boolean;
1485
1512
  }>>;
1486
1513
  export default SelectPerson;
@@ -98,6 +98,9 @@ declare const _default: import("vue").DefineComponent<{
98
98
  uncheckableField: {
99
99
  type: StringConstructor;
100
100
  };
101
+ onlyForwardCascade: {
102
+ type: BooleanConstructor;
103
+ };
101
104
  }, {
102
105
  searchFilterBase: {
103
106
  isOpen: boolean;
@@ -189,6 +192,9 @@ declare const _default: import("vue").DefineComponent<{
189
192
  uncheckableField: {
190
193
  type: StringConstructor;
191
194
  };
195
+ onlyForwardCascade: {
196
+ type: BooleanConstructor;
197
+ };
192
198
  }>> & {}>>;
193
199
  emit: any;
194
200
  keyword: import("vue").Ref<string>;
@@ -267,7 +273,11 @@ declare const _default: import("vue").DefineComponent<{
267
273
  checkedAllChange: (checked: boolean) => void;
268
274
  uniq: (arr: ITag[]) => ITag[];
269
275
  setTagData: (tree: TreeOption[]) => void;
270
- updateTreeChecked: (keys: Array<IKey>) => void;
276
+ getFlattenKeys: (tree: TreeOption[]) => any[];
277
+ updateTreeChecked: (keys: Array<IKey>, _: any, meta: {
278
+ node: TreeOption | null;
279
+ action: 'check' | 'uncheck';
280
+ }) => void;
271
281
  setCheckedAll: () => void;
272
282
  clearAll: () => void;
273
283
  closeTag: (tag: ITag) => void;
@@ -593,6 +603,9 @@ declare const _default: import("vue").DefineComponent<{
593
603
  uncheckableField: {
594
604
  type: StringConstructor;
595
605
  };
606
+ onlyForwardCascade: {
607
+ type: BooleanConstructor;
608
+ };
596
609
  }>>, {
597
610
  data: ITreeOption[];
598
611
  defaultList: (IKey | ITag)[];
@@ -612,5 +625,6 @@ declare const _default: import("vue").DefineComponent<{
612
625
  roleData: ITreeOption[];
613
626
  roleFields: Record<string, any>;
614
627
  forceShowSelectAll: boolean;
628
+ onlyForwardCascade: boolean;
615
629
  }>;
616
630
  export default _default;
@@ -1 +1 @@
1
- import{defineComponent as e,inject as l,ref as t,computed as n,reactive as a,watch as i,openBlock as u,createBlock as o,unref as c,withCtx as r,createVNode as d,createCommentVNode as s,withKeys as v,createTextVNode as h,toDisplayString as p,createElementBlock as y,Fragment as k,renderList as f,withDirectives as m,vShow as g,mergeProps as w,createElementVNode as b,normalizeStyle as _,renderSlot as S}from"vue";import{NGrid as T,NGi as C,NSpace as L,NInputGroup as F,NInput as x,NIcon as j,NButton as B,NTag as D,NCheckbox as E,NEmpty as I,NTree as O}from"naive-ui";import{CloseCircleSharp as N}from"@vicons/ionicons5";import{searchFilterTree as P,getExpandedKeys as $}from"./utils/index.js";import{cloneDeep as A}from"lodash-es";import{SelectItemTypesConfig as R,SelectRoleEnumsConfig as K,SearchTypeConfig as U}from"./types/enums.js";import q from"./components/SearchMultiple.vue.js";import H from"./components/SearchOrgAndStaff.vue.js";import{InjectionSelectPersonEmits as M}from"./constants/index.js";var W,G;const z={key:0,class:"select-type-tags"},J={key:4,class:"tree-content"},Q={key:0};var V=e({__name:"SelectPerson",props:{defaultList:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},searchPlaceholder:{type:String,default:(null==(W=window.getLanguageByCode)?void 0:W.call(window,"10010.1.508"))||"输入关键字搜索"},searchButtonText:{type:String,default:(null==(G=window.getLanguageByCode)?void 0:G.call(window,"10010.1.36"))||"搜索"},wordbook:{type:Object,default:()=>({})},wordbookChild:{type:Object,default:()=>({})},showCount:{type:Boolean,default:!0},showClear:{type:Boolean,default:!0},multiple:{type:Boolean,default:!0},searchInner:{type:Boolean,default:!1},searchFilter:{type:Object,default:()=>({})},treeSetting:{type:Object,default:()=>({})},queryLoadChildData:{type:Function,default:void 0},queryTreeSearch:{type:Function,default:()=>Promise.resolve([])},showSelectType:{type:Boolean,default:!1},roleData:{type:Array,default:()=>[]},roleFields:{type:Object,default:()=>({label:"name",key:"id",children:"children"})},forceShowSelectAll:{type:Boolean},uncheckableField:{type:String}},setup(e,{expose:W}){var G,V,X,Y,Z,ee,le;const te=e,ne={isOpen:!1,multiple:!1,customTitles:[(null==(G=window.getLanguageByCode)?void 0:G.call(window,"10010.1.510"))||"联系人",(null==(V=window.getLanguageByCode)?void 0:V.call(window,"10010.1.511"))||"部门"],itemHeight:250},ae=[{key:"main",label:(null==(X=window.getLanguageByCode)?void 0:X.call(window,"10010.1.512"))||"选人员"},{key:"dept",label:(null==(Y=window.getLanguageByCode)?void 0:Y.call(window,"10010.1.513"))||"选科室"},{key:"role",label:(null==(Z=window.getLanguageByCode)?void 0:Z.call(window,"10010.1.514"))||"选角色"}],ie={dept:(null==(ee=window.getLanguageByCode)?void 0:ee.call(window,"10010.1.202"))||"科室",role:(null==(le=window.getLanguageByCode)?void 0:le.call(window,"10010.1.515"))||"角色"},ue=l(M),oe=t(""),ce=t(!1),re=t([]),de=t([]),se=t([]),ve=t([]),he=t([]),pe=t(!1),ye=t([]),ke=n((()=>!!te.queryLoadChildData)),fe=n((()=>{var e,l;return null!=(l=null==(e=null==te?void 0:te.treeSetting)?void 0:e.checkStrategy)?l:"child"})),me=n((()=>(null==te?void 0:te.searchFilter)&&Object.keys(null==te?void 0:te.searchFilter).length>0)),ge=t("main"),we=n((()=>me.value?{...A(ne),...te.searchFilter}:A(ne))),be=n((()=>{var e,l;return null!=(l=null==(e=null==te?void 0:te.wordbookChild)?void 0:e.user_expand_keys)?l:[]})),_e=n((()=>({height:te.multiple?"342px":"308px"}))),Se=n((()=>{if(te.showSelectType){return function(e,l){let t={};return e.reduce(((e,n)=>(!t[n[l]]&&(t[n[l]]=e.push(n)),e)),[])}([...Le.main.filter((e=>(e.itemType=R.PERSON,te.uncheckableField?e[xe.value]==K.STAFF&&!e[te.uncheckableField]:e[xe.value]==K.STAFF))),...Le.dept.filter((e=>(e.itemType=R.DEPT,te.uncheckableField?e[xe.value]==K.DEPT&&!e[te.uncheckableField]:e[xe.value]==K.DEPT))),...Le.role.filter((e=>(e.itemType=R.ROLE,te.uncheckableField?!e[te.uncheckableField]:e)))],"key")}let e=[];return re.value.forEach((l=>{for(let t=0,n=ve.value.length;t<n;t++){const n=ve.value[t];if(n.key==l){(!te.uncheckableField||te.uncheckableField&&!n.originItem[te.uncheckableField])&&e.push(n);break}}})),e})),Te=a({main:[],dept:[],role:[],temp:[]}),Ce=a({main:[],dept:[],role:[]}),Le=a({main:[],dept:[],role:[]}),Fe=a({main:[],dept:[],role:[]}),xe=n((()=>{var e;return(null==(e=te.wordbook)?void 0:e.type)||"type"})),je=n((()=>te.wordbookChild.user_id_obj||te.wordbook.parent_id_obj||Date.now()));function Be(){const e=A(Ke(te.data));Te.main=Te.temp=e,Oe(Te.temp,null,(e=>{Fe.main.push(e.key)})),ye.value=Fe.main,Te.dept=De(A(e),(e=>{Fe.dept.push(e.key)})),Te.role=Ee(A(te.roleData),(e=>{Fe.role.push(e.key)}))}function De(e,l){return e.filter((e=>{var t;te.showSelectType&&(null==(t=e.children)?void 0:t.length)&&(e.children=De(e.children,l));const n=e[xe.value]==K.DEPT;return n&&Ne(e,l),n}))}function Ee(e,l){const{label:t,key:n,children:a="children"}=te.roleFields;return e.map((e=>{var i;return e.key=e[n],e.label=e.title=e[t],(null==(i=e[a])?void 0:i.length)&&(e.children=Ee(e[a],l)),Ne(e,l),e}))}function Ie(e,l){var t,n;const a=["main","dept"].includes(l)?je.value:null==(t=te.roleFields)?void 0:t.key;for(let t=0,i=e.length;t<i;t++){const i=e[t],u=he.value.map((e=>e.key));Ce[l].includes(i.key)&&!u.includes(i.key)&&Le[l].push({...i,key:i[a]}),(null==(n=i.children)?void 0:n.length)&&Ie(i.children,l)}}function Oe(e,l,t){var n,a;for(let i=0,u=e.length;i<u;i++){const u=e[i];let o=be.value.reduce(((e,l)=>e+(u[l]?`${u[l]},`:"")),"");u.title_expand_strs=o.slice(0,-1),u.title=Re(u),u.label=Re(u),u.parentNode=l,u.key||(u.key=u[te.wordbookChild.user_id_obj]||u[te.wordbook.parent_id_obj]||Date.now()),(null==(n=u.children)?void 0:n.length)?(Oe(u.children,u,t),$e(u)):0===(null==(a=u.children)?void 0:a.length)&&Reflect.deleteProperty(u,"children"),Ne(u,t)}}function Ne(e,l){var t,n;switch(null!=(n=null==(t=null==te?void 0:te.treeSetting)?void 0:t.checkStrategy)?n:"child"){case"child":!function(e,l){e.disabled||e.children||!e.key||l&&l(e)}(e,l);break;case"parent":!function(e,l){e.disabled||e.tempTitle||!e.key||l&&l(e)}(e,l);break;case"all":!function(e,l){!e.disabled&&e.key&&l&&l(e)}(e,l)}}async function Pe(e){if(te.queryLoadChildData){const l=await te.queryLoadChildData(e);return l.children&&(l.children=l.children.map((e=>({...e,tempTitle:l.tempTitle?`${l.title}/${l.tempTitle}`:l.title})))),l}return e}function $e(e){var l;(null==(l=e.children)?void 0:l.every((e=>e.disabled)))&&(e.disabled=!0)}function Ae({option:e}){var l,t;if((null==(l=e.children)?void 0:l.length)||ke.value&&!(null==e?void 0:e.isLeaf)){const l=te.wordbook.user_count_obj&&e[te.wordbook.user_count_obj]||"",t=l?`(${l})`:"",n=`${e.title}${t}`;return d("span",{title:n},[n])}{const l=null!=(t=e.title_expand_strs)?t:"";return d("p",{class:"user_item"},[d("span",{title:e.title},[e.title]),d("span",{class:"user_item_expand",title:l},[l])])}}function Re(e){return e[te.wordbookChild.user_name_obj]||e[te.wordbook.parent_name_obj]||e.orgName||e.title||""}function Ke(e){var l;for(let t=0,n=e.length;t<n;t++){const n=e[t],a=te.wordbook.children||"children";if(null==(l=n[a])?void 0:l.length){const e=Ue(n[a],[]);n.innerItemsNum=e.length,n.innerLeafs=e,n.children=Ke(n[a])}}return te.showSelectType?e:qe(e,"")}function Ue(e,l){var t;for(let n=0,a=e.length;n<a;n++){const a=e[n];(null==(t=a.children)?void 0:t.length)?Ue(a.children,l):!a.disabled&&l.push(a)}return l}function qe(e,l){return e&&0!==e.length?e.map((e=>{var t;const n=Re(e),a=l?`${n}/${l}`:n;return{...e,tempTitle:l,children:(null==(t=e.children)?void 0:t.length)?qe(null==e?void 0:e.children,a):[]}})):[]}async function He(){var e,l;const t=null!=(l=null==(e=null==te?void 0:te.wordbook)?void 0:e.filter_key)?l:"keyword";if(pe.value=!!oe.value.trim(),ke.value)se.value=await te.queryTreeSearch(oe.value);else{const e=function(){const e={[U.SEARCH_ORG_STAFF]:me.value,[U.SEARCH_ORG]:te.searchInner},l=Object.keys(e).find((l=>e[l]));return null!=l?l:""}();se.value=P(e,Te.temp,oe.value,t)}de.value=se.value.length&&oe.value?$(se.value):[]}function Me(e,l){var t,n;switch(null!=(n=null==(t=null==te?void 0:te.treeSetting)?void 0:t.checkStrategy)?n:"child"){case"child":!function(e,l){for(let t=0,n=e.length;t<n;t++){const n=e[t];if(!n.disabled&&(!n.children||n.isLeaf)&&(l&&!re.value.includes(n.key)&&re.value.push(n.key),!l)){const e=re.value.findIndex((e=>e===n.key));re.value.splice(e,1)}n.children&&Me(n.children,l)}}(e,l);break;case"parent":!function(e,l){re.value=[];for(let t=0,n=e.length;t<n;t++){const n=e[t];if(!n.disabled&&!n.tempTitle&&(l&&!re.value.includes(n.key)&&re.value.push(n.key),!l)){const e=re.value.findIndex((e=>e===n.key));re.value.splice(e,1)}}}(e,l);break;case"all":!function(e,l){re.value=[];for(let t=0,n=e.length;t<n;t++){const n=e[t];if(!n.disabled&&(l&&!re.value.includes(n.key)&&re.value.push(n.key),!l)){const e=re.value.findIndex((e=>e===n.key));re.value.splice(e,1)}}}(e,l)}}function We(e){Me(se.value,e)}function Ge(e){var l;for(let t=0,n=e.length;t<n;t++){const n=e[t],a=he.value.map((e=>e.key));re.value.includes(n.key)&&!a.includes(n.key)&&ve.value.push({key:n.key,name:n.title,parentName:n.tempTitle,innerItemsNum:n.innerItemsNum,innerLeafs:n.innerLeafs,originItem:n}),(null==(l=n.children)?void 0:l.length)&&Ge(n.children)}}function ze(e){if(te.showSelectType){const l=ge.value;re.value=Ce[l]=e}else re.value=e}function Je(){Object.keys(Ce).forEach((e=>{Ce[e]=Le[e]=[]})),re.value=[]}function Qe(e){re.value=e}function Ve(){oe.value="",setTimeout((()=>{He()}))}return i((()=>te.data),(e=>{oe.value="",ce.value=pe.value=!1,re.value=[],de.value=[],se.value=[],ve.value=[],he.value=[],ye.value=[],function(){if(Be(),se.value=Te.temp,te.defaultList.length>0)if(ke.value)te.defaultList.forEach((e=>re.value.push(e.key))),ve.value=A(te.defaultList),he.value=A(te.defaultList);else{if(te.showSelectType){const e=ge.value;return te.defaultList.forEach((e=>{e.itemType===R.PERSON&&(Ce.main.push(e[je.value]),Le.main.push(e)),e.itemType===R.DEPT&&(Ce.dept.push(e[je.value]),Le.dept.push(e)),e.itemType===R.ROLE&&(Ce.role.push(e[te.roleFields.key]),Le.role.push(e))})),void(re.value=Ce[e])}te.defaultList.forEach((e=>re.value.push(e))),Ge(Te.temp)}}()}),{immediate:!0}),i((()=>re),(e=>{if(te.showSelectType){const l=ge.value;Le[l]=he.value.filter((l=>e.value.includes(l.key))),Ie(Te[l],l),te.showSelectType?ce.value=ye.value.every((e=>re.value.findIndex((l=>l===e))>-1)):ce.value=ye.value.every((e=>ve.value.findIndex((l=>l.key===e))>-1));const t=Se.value.map((e=>e.key));return ue("check",t),void ue("checkWithLevel",Se.value)}ve.value=he.value.filter((l=>e.value.includes(l.key))),Ge(ke.value?se.value:Te.temp);const l=ve.value.filter((l=>te.uncheckableField?e.value.includes(l.key)&&!l.originItem[te.uncheckableField]:e.value.includes(l.key)));ue("check",e.value),ue("checkWithLevel",l)}),{deep:!0}),i((()=>oe.value),(e=>{e||Ve()})),W({getCheckWithLevel:function(){var e;if(te.showSelectType)return null!=(e=Se.value)?e:[];const l=re.value,t=ve.value.filter((e=>te.uncheckableField?l.includes(e.key)&&!e.originItem[te.uncheckableField]:l.includes(e.key)));return null!=t?t:[]}}),(l,t)=>(u(),o(c(T),{cols:2,class:"c-select-person"},{default:r((()=>[d(c(C),null,{default:r((()=>[d(c(L),{vertical:"",style:{"padding-right":"12px","border-right":"1px solid #e8e8e8"}},{default:r((()=>{var l;return[d(c(F),{style:{"margin-bottom":"12px"}},{default:r((()=>[s(" clearable "),d(c(x),{class:"search-input",value:oe.value,"onUpdate:value":t[0]||(t[0]=e=>oe.value=e),placeholder:e.searchPlaceholder,onKeyup:v(He,["enter"])},{suffix:r((()=>[oe.value?(u(),o(c(j),{key:0,class:"search-clear",component:c(N),size:"16",onClick:Ve},null,8,["component"])):s("v-if",!0)])),_:1},8,["value","placeholder","onKeyup"]),d(c(B),{type:"primary",onClick:He},{default:r((()=>[h(p(e.searchButtonText),1)])),_:1})])),_:1}),e.showSelectType?(u(),y("div",z,[(u(),y(k,null,f(ae,(e=>d(c(D),{round:"",checkable:"",checked:ge.value===e.key,key:e.key,"onUpdate:checked":l=>function(e){ge.value=e.key,se.value=Te.temp=Te[e.key],re.value=Ce[e.key],ye.value=Fe[e.key]}(e)},{default:r((()=>[h(p(e.label),1)])),_:2},1032,["checked","onUpdate:checked"]))),64))])):s("v-if",!0),e.multiple&&!pe.value?m((u(),o(c(E),{key:1,checked:ce.value,"onUpdate:checked":[t[1]||(t[1]=e=>ce.value=e),We]},{default:r((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.37"))||"全选")]})),_:1},8,["checked"])),[[g,e.forceShowSelectAll||ye.value.length<1e3]]):s("v-if",!0),s(" 支持选人 "),e.searchInner&&e.multiple&&pe.value&&"parent"===c(fe)?(u(),o(q,{key:2,treeData:se.value,checkedKeys:re.value,onNotifyCheck:Qe},null,8,["treeData","checkedKeys"])):c(me)&&pe.value&&"parent"===c(fe)?(u(),y(k,{key:3},[s(" 同时兼容选人和选部门 "),s(" v-else-if=\"isSearchFilter && multiple && isSearch && checkStrategyResult === 'parent'\" "),d(H,{treeData:se.value,checkedKeys:re.value,searchFilter:c(we),isMultiple:e.multiple,onNotifyCheck:Qe,onNotifyClear:Ve},null,8,["treeData","checkedKeys","searchFilter","isMultiple"])],2112)):(u(),y("div",J,[0===se.value.length?(u(),o(c(I),{key:0,description:(null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.445"))||"暂无数据"})):(u(),o(c(O),w({key:1,"virtual-scroll":"",class:"c-select-person__scroll","checked-keys":re.value,"expanded-keys":de.value,"onUpdate:expanded-keys":t[2]||(t[2]=e=>de.value=e),checkable:e.multiple,cascade:"","allow-checking-not-loaded":"",selectable:!e.multiple,"selected-keys":re.value,"onUpdate:selected-keys":t[3]||(t[3]=e=>re.value=e),data:se.value,"check-strategy":"child","render-label":Ae},e.treeSetting,{"onUpdate:checkedKeys":ze,onLoad:Pe}),null,16,["checked-keys","expanded-keys","checkable","selectable","selected-keys","data"]))]))]})),_:1})])),_:1}),d(c(C),null,{default:r((()=>[d(c(L),{vertical:"",style:{"padding-left":"12px"}},{default:r((()=>[d(c(L),{justify:"space-between",style:{"margin-bottom":"20px"}},{default:r((()=>{var l;return[e.showCount?(u(),y("span",Q,"已选择:"+p(c(Se).length),1)):s("v-if",!0),e.showClear?(u(),y("span",{key:1,class:"c-select-person__clear-btn",onClick:Je},(null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.509"))||"清空")):s("v-if",!0)]})),_:1}),b("div",{class:"c-select-person__scroll",style:_(c(_e))},[(u(!0),y(k,null,f(c(Se),(t=>(u(),y("span",{class:"c-select-person__tag-item",key:t.key},[s(" 标签插槽 "),S(l.$slots,"tag",{tag:t},(()=>[h(p(t.name)+" "+p(t.parentName?`(${t.parentName})`:"")+" "+p(t.innerItemsNum?`(${t.innerItemsNum}人)`:"")+" "+p(e.showSelectType&&ie[t.itemType]?`(${ie[t.itemType]})`:""),1)])),d(c(j),{class:"tag-close",component:c(N),onClick:e=>function(e){if(te.showSelectType){const l=e.itemType===R.PERSON?"main":e.itemType;return Ce[l]=Ce[l].filter((l=>l!==e.key)),Le[l]=he.value.filter((e=>Ce[l].includes(e.key))),Ie(Te[l],l),void(ge.value==l&&(re.value=Ce[l]))}re.value=re.value.filter((l=>l!==e.key))}(t)},null,8,["component","onClick"])])))),128))],4)])),_:3})])),_:3})])),_:3}))}});export{V as default};
1
+ import{defineComponent as e,inject as l,ref as t,computed as n,reactive as a,watch as i,openBlock as u,createBlock as o,unref as c,withCtx as r,createVNode as d,createCommentVNode as s,withKeys as v,createTextVNode as h,toDisplayString as p,createElementBlock as y,Fragment as f,renderList as k,withDirectives as m,vShow as g,mergeProps as w,createElementVNode as b,normalizeStyle as _,renderSlot as S}from"vue";import{NGrid as T,NGi as C,NSpace as F,NInputGroup as L,NInput as x,NIcon as j,NButton as B,NTag as E,NCheckbox as D,NEmpty as I,NTree as O}from"naive-ui";import{CloseCircleSharp as N}from"@vicons/ionicons5";import{searchFilterTree as P,getExpandedKeys as $}from"./utils/index.js";import{cloneDeep as A,union as R,remove as K}from"lodash-es";import{SelectItemTypesConfig as U,SelectRoleEnumsConfig as q,SearchTypeConfig as H}from"./types/enums.js";import M from"./components/SearchMultiple.vue.js";import W from"./components/SearchOrgAndStaff.vue.js";import{InjectionSelectPersonEmits as G}from"./constants/index.js";var z,J;const Q={key:0,class:"select-type-tags"},V={key:4,class:"tree-content"},X={key:0};var Y=e({__name:"SelectPerson",props:{defaultList:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},searchPlaceholder:{type:String,default:(null==(z=window.getLanguageByCode)?void 0:z.call(window,"10010.1.508"))||"输入关键字搜索"},searchButtonText:{type:String,default:(null==(J=window.getLanguageByCode)?void 0:J.call(window,"10010.1.36"))||"搜索"},wordbook:{type:Object,default:()=>({})},wordbookChild:{type:Object,default:()=>({})},showCount:{type:Boolean,default:!0},showClear:{type:Boolean,default:!0},multiple:{type:Boolean,default:!0},searchInner:{type:Boolean,default:!1},searchFilter:{type:Object,default:()=>({})},treeSetting:{type:Object,default:()=>({})},queryLoadChildData:{type:Function,default:void 0},queryTreeSearch:{type:Function,default:()=>Promise.resolve([])},showSelectType:{type:Boolean,default:!1},roleData:{type:Array,default:()=>[]},roleFields:{type:Object,default:()=>({label:"name",key:"id",children:"children"})},forceShowSelectAll:{type:Boolean},uncheckableField:{type:String},onlyForwardCascade:{type:Boolean}},setup(e,{expose:z}){var J,Y,Z,ee,le,te,ne;const ae=e,ie={isOpen:!1,multiple:!1,customTitles:[(null==(J=window.getLanguageByCode)?void 0:J.call(window,"10010.1.510"))||"联系人",(null==(Y=window.getLanguageByCode)?void 0:Y.call(window,"10010.1.511"))||"部门"],itemHeight:250},ue=[{key:"main",label:(null==(Z=window.getLanguageByCode)?void 0:Z.call(window,"10010.1.512"))||"选人员"},{key:"dept",label:(null==(ee=window.getLanguageByCode)?void 0:ee.call(window,"10010.1.513"))||"选科室"},{key:"role",label:(null==(le=window.getLanguageByCode)?void 0:le.call(window,"10010.1.514"))||"选角色"}],oe={dept:(null==(te=window.getLanguageByCode)?void 0:te.call(window,"10010.1.202"))||"科室",role:(null==(ne=window.getLanguageByCode)?void 0:ne.call(window,"10010.1.515"))||"角色"},ce=l(G),re=t(""),de=t(!1),se=t([]),ve=t([]),he=t([]),pe=t([]),ye=t([]),fe=t(!1),ke=t([]),me=n((()=>!!ae.queryLoadChildData)),ge=n((()=>{var e,l;return null!=(l=null==(e=null==ae?void 0:ae.treeSetting)?void 0:e.checkStrategy)?l:"child"})),we=n((()=>(null==ae?void 0:ae.searchFilter)&&Object.keys(null==ae?void 0:ae.searchFilter).length>0)),be=t("main"),_e=n((()=>we.value?{...A(ie),...ae.searchFilter}:A(ie))),Se=n((()=>{var e,l;return null!=(l=null==(e=null==ae?void 0:ae.wordbookChild)?void 0:e.user_expand_keys)?l:[]})),Te=n((()=>({height:ae.multiple?"342px":"308px"}))),Ce=n((()=>{if(ae.showSelectType){return function(e,l){let t={};return e.reduce(((e,n)=>(!t[n[l]]&&(t[n[l]]=e.push(n)),e)),[])}([...xe.main.filter((e=>(e.itemType=U.PERSON,ae.uncheckableField?e[Be.value]==q.STAFF&&!e[ae.uncheckableField]:e[Be.value]==q.STAFF))),...xe.dept.filter((e=>(e.itemType=U.DEPT,ae.uncheckableField?e[Be.value]==q.DEPT&&!e[ae.uncheckableField]:e[Be.value]==q.DEPT))),...xe.role.filter((e=>(e.itemType=U.ROLE,ae.uncheckableField?!e[ae.uncheckableField]:e)))],"key")}let e=[];return se.value.forEach((l=>{for(let t=0,n=pe.value.length;t<n;t++){const n=pe.value[t];if(n.key==l){(!ae.uncheckableField||ae.uncheckableField&&!n.originItem[ae.uncheckableField])&&e.push(n);break}}})),e})),Fe=a({main:[],dept:[],role:[],temp:[]}),Le=a({main:[],dept:[],role:[]}),xe=a({main:[],dept:[],role:[]}),je=a({main:[],dept:[],role:[]}),Be=n((()=>{var e;return(null==(e=ae.wordbook)?void 0:e.type)||"type"})),Ee=n((()=>ae.wordbookChild.user_id_obj||ae.wordbook.parent_id_obj||Date.now()));function De(){const e=A(qe(ae.data));Fe.main=Fe.temp=e,Pe(Fe.temp,null,(e=>{je.main.push(e.key)})),ke.value=je.main,Fe.dept=Ie(A(e),(e=>{je.dept.push(e.key)})),Fe.role=Oe(A(ae.roleData),(e=>{je.role.push(e.key)}))}function Ie(e,l){return e.filter((e=>{var t;ae.showSelectType&&(null==(t=e.children)?void 0:t.length)&&(e.children=Ie(e.children,l));const n=e[Be.value]==q.DEPT;return n&&$e(e,l),n}))}function Oe(e,l){const{label:t,key:n,children:a="children"}=ae.roleFields;return e.map((e=>{var i;return e.key=e[n],e.label=e.title=e[t],(null==(i=e[a])?void 0:i.length)&&(e.children=Oe(e[a],l)),$e(e,l),e}))}function Ne(e,l){var t,n;const a=["main","dept"].includes(l)?Ee.value:null==(t=ae.roleFields)?void 0:t.key;for(let t=0,i=e.length;t<i;t++){const i=e[t],u=ye.value.map((e=>e.key));Le[l].includes(i.key)&&!u.includes(i.key)&&xe[l].push({...i,key:i[a]}),(null==(n=i.children)?void 0:n.length)&&Ne(i.children,l)}}function Pe(e,l,t){var n,a;for(let i=0,u=e.length;i<u;i++){const u=e[i];let o=Se.value.reduce(((e,l)=>e+(u[l]?`${u[l]},`:"")),"");u.title_expand_strs=o.slice(0,-1),u.title=Ue(u),u.label=Ue(u),u.parentNode=l,u.key||(u.key=u[ae.wordbookChild.user_id_obj]||u[ae.wordbook.parent_id_obj]||Date.now()),(null==(n=u.children)?void 0:n.length)?(Pe(u.children,u,t),Re(u)):0===(null==(a=u.children)?void 0:a.length)&&Reflect.deleteProperty(u,"children"),$e(u,t)}}function $e(e,l){var t,n;switch(null!=(n=null==(t=null==ae?void 0:ae.treeSetting)?void 0:t.checkStrategy)?n:"child"){case"child":!function(e,l){e.disabled||e.children||!e.key||l&&l(e)}(e,l);break;case"parent":!function(e,l){e.disabled||e.tempTitle||!e.key||l&&l(e)}(e,l);break;case"all":!function(e,l){!e.disabled&&e.key&&l&&l(e)}(e,l)}}async function Ae(e){if(ae.queryLoadChildData){const l=await ae.queryLoadChildData(e);return l.children&&(l.children=l.children.map((e=>({...e,tempTitle:l.tempTitle?`${l.title}/${l.tempTitle}`:l.title})))),l}return e}function Re(e){var l;(null==(l=e.children)?void 0:l.every((e=>e.disabled)))&&(e.disabled=!0)}function Ke({option:e}){var l,t;if((null==(l=e.children)?void 0:l.length)||me.value&&!(null==e?void 0:e.isLeaf)){const l=ae.wordbook.user_count_obj&&e[ae.wordbook.user_count_obj]||"",t=l?`(${l})`:"",n=`${e.title}${t}`;return d("span",{title:n},[n])}{const l=null!=(t=e.title_expand_strs)?t:"";return d("p",{class:"user_item"},[d("span",{title:e.title},[e.title]),d("span",{class:"user_item_expand",title:l},[l])])}}function Ue(e){return e[ae.wordbookChild.user_name_obj]||e[ae.wordbook.parent_name_obj]||e.orgName||e.title||""}function qe(e){var l;for(let t=0,n=e.length;t<n;t++){const n=e[t],a=ae.wordbook.children||"children";if(null==(l=n[a])?void 0:l.length){const e=He(n[a],[]);n.innerItemsNum=e.length,n.innerLeafs=e,n.children=qe(n[a])}}return ae.showSelectType?e:Me(e,"")}function He(e,l){var t;for(let n=0,a=e.length;n<a;n++){const a=e[n];(null==(t=a.children)?void 0:t.length)?He(a.children,l):!a.disabled&&l.push(a)}return l}function Me(e,l){return e&&0!==e.length?e.map((e=>{var t;const n=Ue(e),a=l?`${n}/${l}`:n;return{...e,tempTitle:l,children:(null==(t=e.children)?void 0:t.length)?Me(null==e?void 0:e.children,a):[]}})):[]}async function We(){var e,l;const t=null!=(l=null==(e=null==ae?void 0:ae.wordbook)?void 0:e.filter_key)?l:"keyword";if(fe.value=!!re.value.trim(),me.value)he.value=await ae.queryTreeSearch(re.value);else{const e=function(){const e={[H.SEARCH_ORG_STAFF]:we.value,[H.SEARCH_ORG]:ae.searchInner},l=Object.keys(e).find((l=>e[l]));return null!=l?l:""}();he.value=P(e,Fe.temp,re.value,t)}ve.value=he.value.length&&re.value?$(he.value):[]}function Ge(e,l){var t,n;switch(null!=(n=null==(t=null==ae?void 0:ae.treeSetting)?void 0:t.checkStrategy)?n:"child"){case"child":!function(e,l){for(let t=0,n=e.length;t<n;t++){const n=e[t];if(!n.disabled&&(!n.children||n.isLeaf)&&(l&&!se.value.includes(n.key)&&se.value.push(n.key),!l)){const e=se.value.findIndex((e=>e===n.key));se.value.splice(e,1)}n.children&&Ge(n.children,l)}}(e,l);break;case"parent":!function(e,l){se.value=[];for(let t=0,n=e.length;t<n;t++){const n=e[t];if(!n.disabled&&!n.tempTitle&&(l&&!se.value.includes(n.key)&&se.value.push(n.key),!l)){const e=se.value.findIndex((e=>e===n.key));se.value.splice(e,1)}}}(e,l);break;case"all":!function(e,l){se.value=[];for(let t=0,n=e.length;t<n;t++){const n=e[t];if(!n.disabled&&(l&&!se.value.includes(n.key)&&se.value.push(n.key),!l)){const e=se.value.findIndex((e=>e===n.key));se.value.splice(e,1)}}}(e,l)}}function ze(e){Ge(he.value,e)}function Je(e){var l;for(let t=0,n=e.length;t<n;t++){const n=e[t],a=ye.value.map((e=>e.key));se.value.includes(n.key)&&!a.includes(n.key)&&pe.value.push({key:n.key,name:n.title,parentName:n.tempTitle,innerItemsNum:n.innerItemsNum,innerLeafs:n.innerLeafs,originItem:n}),(null==(l=n.children)?void 0:l.length)&&Je(n.children)}}function Qe(e){const l=[];return e.forEach((e=>{var t;if(!e.disabled&&e.key&&l.push(e.key),null==(t=e.children)?void 0:t.length){const t=Qe(e.children);l.push(...t)}})),l}function Ve(e,l,t){var n;let a=e;if(ae.onlyForwardCascade&&"all"===ge.value){const{node:l,action:i}=t;if(null==(n=null==l?void 0:l.children)?void 0:n.length){const t=Qe(l.children);"check"===i?a=R(e,t):K(a,(e=>t.includes(e)))}}if(ae.showSelectType){const e=be.value;se.value=Le[e]=a}else se.value=a}function Xe(){Object.keys(Le).forEach((e=>{Le[e]=xe[e]=[]})),se.value=[]}function Ye(e){se.value=e}function Ze(){re.value="",setTimeout((()=>{We()}))}return i((()=>ae.data),(e=>{re.value="",de.value=fe.value=!1,se.value=[],ve.value=[],he.value=[],pe.value=[],ye.value=[],ke.value=[],function(){if(De(),he.value=Fe.temp,ae.defaultList.length>0)if(me.value)ae.defaultList.forEach((e=>se.value.push(e.key))),pe.value=A(ae.defaultList),ye.value=A(ae.defaultList);else{if(ae.showSelectType){const e=be.value;return ae.defaultList.forEach((e=>{e.itemType===U.PERSON&&(Le.main.push(e[Ee.value]),xe.main.push(e)),e.itemType===U.DEPT&&(Le.dept.push(e[Ee.value]),xe.dept.push(e)),e.itemType===U.ROLE&&(Le.role.push(e[ae.roleFields.key]),xe.role.push(e))})),void(se.value=Le[e])}ae.defaultList.forEach((e=>se.value.push(e))),Je(Fe.temp)}}()}),{immediate:!0}),i((()=>se),(e=>{if(ae.showSelectType){const l=be.value;xe[l]=ye.value.filter((l=>e.value.includes(l.key))),Ne(Fe[l],l),ae.showSelectType?de.value=ke.value.every((e=>se.value.findIndex((l=>l===e))>-1)):de.value=ke.value.every((e=>pe.value.findIndex((l=>l.key===e))>-1));const t=Ce.value.map((e=>e.key));return ce("check",t),void ce("checkWithLevel",Ce.value)}pe.value=ye.value.filter((l=>e.value.includes(l.key))),Je(me.value?he.value:Fe.temp);const l=pe.value.filter((l=>ae.uncheckableField?e.value.includes(l.key)&&!l.originItem[ae.uncheckableField]:e.value.includes(l.key)));ce("check",e.value),ce("checkWithLevel",l)}),{deep:!0}),i((()=>re.value),(e=>{e||Ze()})),z({getCheckWithLevel:function(){var e;if(ae.showSelectType)return null!=(e=Ce.value)?e:[];const l=se.value,t=pe.value.filter((e=>ae.uncheckableField?l.includes(e.key)&&!e.originItem[ae.uncheckableField]:l.includes(e.key)));return null!=t?t:[]}}),(l,t)=>(u(),o(c(T),{cols:2,class:"c-select-person"},{default:r((()=>[d(c(C),null,{default:r((()=>[d(c(F),{vertical:"",style:{"padding-right":"12px","border-right":"1px solid #e8e8e8"}},{default:r((()=>{var l;return[d(c(L),{style:{"margin-bottom":"12px"}},{default:r((()=>[s(" clearable "),d(c(x),{class:"search-input",value:re.value,"onUpdate:value":t[0]||(t[0]=e=>re.value=e),placeholder:e.searchPlaceholder,onKeyup:v(We,["enter"])},{suffix:r((()=>[re.value?(u(),o(c(j),{key:0,class:"search-clear",component:c(N),size:"16",onClick:Ze},null,8,["component"])):s("v-if",!0)])),_:1},8,["value","placeholder","onKeyup"]),d(c(B),{type:"primary",onClick:We},{default:r((()=>[h(p(e.searchButtonText),1)])),_:1})])),_:1}),e.showSelectType?(u(),y("div",Q,[(u(),y(f,null,k(ue,(e=>d(c(E),{round:"",checkable:"",checked:be.value===e.key,key:e.key,"onUpdate:checked":l=>function(e){be.value=e.key,he.value=Fe.temp=Fe[e.key],se.value=Le[e.key],ke.value=je[e.key]}(e)},{default:r((()=>[h(p(e.label),1)])),_:2},1032,["checked","onUpdate:checked"]))),64))])):s("v-if",!0),e.multiple&&!fe.value?m((u(),o(c(D),{key:1,checked:de.value,"onUpdate:checked":[t[1]||(t[1]=e=>de.value=e),ze]},{default:r((()=>{var e;return[h((null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.37"))||"全选")]})),_:1},8,["checked"])),[[g,e.forceShowSelectAll||ke.value.length<1e3]]):s("v-if",!0),s(" 支持选人 "),e.searchInner&&e.multiple&&fe.value&&"parent"===c(ge)?(u(),o(M,{key:2,treeData:he.value,checkedKeys:se.value,onNotifyCheck:Ye},null,8,["treeData","checkedKeys"])):c(we)&&fe.value&&"parent"===c(ge)?(u(),y(f,{key:3},[s(" 同时兼容选人和选部门 "),s(" v-else-if=\"isSearchFilter && multiple && isSearch && checkStrategyResult === 'parent'\" "),d(W,{treeData:he.value,checkedKeys:se.value,searchFilter:c(_e),isMultiple:e.multiple,onNotifyCheck:Ye,onNotifyClear:Ze},null,8,["treeData","checkedKeys","searchFilter","isMultiple"])],2112)):(u(),y("div",V,[0===he.value.length?(u(),o(c(I),{key:0,description:(null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.445"))||"暂无数据"})):(u(),o(c(O),w({key:1,"virtual-scroll":"",class:"c-select-person__scroll","checked-keys":se.value,"expanded-keys":ve.value,"onUpdate:expanded-keys":t[2]||(t[2]=e=>ve.value=e),checkable:e.multiple,cascade:!e.onlyForwardCascade,"allow-checking-not-loaded":"",selectable:!e.multiple,"selected-keys":se.value,"onUpdate:selected-keys":t[3]||(t[3]=e=>se.value=e),data:he.value,"check-strategy":"child","render-label":Ke},e.treeSetting,{"onUpdate:checkedKeys":Ve,onLoad:Ae}),null,16,["checked-keys","expanded-keys","checkable","cascade","selectable","selected-keys","data"]))]))]})),_:1})])),_:1}),d(c(C),null,{default:r((()=>[d(c(F),{vertical:"",style:{"padding-left":"12px"}},{default:r((()=>[d(c(F),{justify:"space-between",style:{"margin-bottom":"20px"}},{default:r((()=>{var l;return[e.showCount?(u(),y("span",X,"已选择:"+p(c(Ce).length),1)):s("v-if",!0),e.showClear?(u(),y("span",{key:1,class:"c-select-person__clear-btn",onClick:Xe},(null==(l=window.getLanguageByCode)?void 0:l.call(window,"10010.1.509"))||"清空")):s("v-if",!0)]})),_:1}),b("div",{class:"c-select-person__scroll",style:_(c(Te))},[(u(!0),y(f,null,k(c(Ce),(t=>(u(),y("span",{class:"c-select-person__tag-item",key:t.key},[s(" 标签插槽 "),S(l.$slots,"tag",{tag:t},(()=>[h(p(t.name)+" "+p(t.parentName?`(${t.parentName})`:"")+" "+p(t.innerItemsNum?`(${t.innerItemsNum}人)`:"")+" "+p(e.showSelectType&&oe[t.itemType]?`(${oe[t.itemType]})`:""),1)])),d(c(j),{class:"tag-close",component:c(N),onClick:e=>function(e){if(ae.showSelectType){const l=e.itemType===U.PERSON?"main":e.itemType;return Le[l]=Le[l].filter((l=>l!==e.key)),xe[l]=ye.value.filter((e=>Le[l].includes(e.key))),Ne(Fe[l],l),void(be.value==l&&(se.value=Le[l]))}se.value=se.value.filter((l=>l!==e.key))}(t)},null,8,["component","onClick"])])))),128))],4)])),_:3})])),_:3})])),_:3}))}});export{Y as default};