cnhis-design-vue 3.2.17-beta.2 → 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.
- package/es/components/base-search/style/index.css +1 -1
- package/es/components/card-reader-sdk-cn/index.d.ts +18 -0
- package/es/components/card-reader-sdk-cn/index.js +1 -0
- package/es/components/card-reader-sdk-cn/src/henan/index.d.ts +17 -0
- package/es/components/card-reader-sdk-cn/src/henan/index.js +1 -0
- package/es/components/classification/index.d.ts +9 -0
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +9 -0
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +9 -0
- package/es/components/classification/src/index.vue.d.ts +9 -0
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
- package/es/components/index.css +1 -1
- package/es/components/quick-search/style/index.css +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +7 -7
- package/es/components/select-label/index.d.ts +7 -7
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue.d.ts +5 -1
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +1 -1
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue.d.ts +7 -7
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +1 -1
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue.d.ts +5 -1
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +1 -1
- package/es/components/select-label/src/index.vue.d.ts +7 -7
- package/es/components/select-label/src/types/index.d.ts +4 -1
- package/es/components/select-label/style/index.css +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +9 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +8 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +9 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +9 -0
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +2 -7
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +8 -0
- package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +11 -7
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +11 -7
- package/es/components/table-filter/src/types/index.d.ts +3 -0
- package/es/shared/package.json.js +1 -1
- 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
|
-
|
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
|
-
|
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
|
-
|
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
|
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
|
-
|
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
|
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
|
-
|
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
|
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
|
-
|
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
|
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}
|
@@ -1007,6 +1007,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
1007
1007
|
valueCp: import("vue").WritableComputedRef<string[]>;
|
1008
1008
|
optionList: import("vue").ComputedRef<import("naive-ui").SelectOption[]>;
|
1009
1009
|
initTagList: () => Promise<void>;
|
1010
|
+
renderOption: ({ node, option }: {
|
1011
|
+
node: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
1012
|
+
[key: string]: any;
|
1013
|
+
}>;
|
1014
|
+
option: import("naive-ui").SelectOption;
|
1015
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
1016
|
+
[key: string]: any;
|
1017
|
+
}>;
|
1018
|
+
renderLabel: (option: any) => any;
|
1010
1019
|
NSelect: any;
|
1011
1020
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1012
1021
|
paramCfg: {
|
package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { VNode } from 'vue';
|
1
2
|
import { SelectOption } from 'naive-ui';
|
2
3
|
declare const _default: import("vue").DefineComponent<{
|
3
4
|
paramCfg: {
|
@@ -29,6 +30,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
29
30
|
valueCp: import("vue").WritableComputedRef<string[]>;
|
30
31
|
optionList: import("vue").ComputedRef<SelectOption[]>;
|
31
32
|
initTagList: () => Promise<void>;
|
33
|
+
renderOption: ({ node, option }: {
|
34
|
+
node: VNode;
|
35
|
+
option: SelectOption;
|
36
|
+
}) => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
37
|
+
[key: string]: any;
|
38
|
+
}>;
|
39
|
+
renderLabel: (option: any) => any;
|
32
40
|
NSelect: any;
|
33
41
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
34
42
|
paramCfg: {
|
package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as l,inject as a,computed as t,openBlock as o,createBlock as
|
1
|
+
import{defineComponent as e,ref as l,inject as a,computed as t,openBlock as o,createBlock as s,unref as r,isRef as u,h as n}from"vue";import{useMessage as i,NSelect as p,NTooltip as b}from"naive-ui";import d from"../../../hooks/useAsyncData.js";import{InjectionFilterApiConfig as m}from"../../../constants/index.js";var c=e({__name:"SelectLabel",props:{paramCfg:{type:Object,default:null},modelValue:{type:String,default:null}},emits:["update:modelValue"],setup(e,{emit:c}){const v=e,{getDynamicLabelData:f}=d(),h=i(),y=l([]),g=a(m),x=t({set(e){const l=e?e.join("|#|"):e;c("update:modelValue",l)},get:()=>v.modelValue?v.modelValue.split("|#|"):[]}),S=t((()=>{if(y.value&&y.value.length>0){let e=[],l=[];return y.value.forEach((a=>{a.labelList.forEach((a=>{e.includes(a.labelShowText)||(e.push(a.labelShowText),l.push({label:a.labelShowText,value:a.labelShowText,bsv12:a.bsv12,bsv13:a.bsv13}))}))})),l}return[]})),w=({node:e,option:l})=>n(b,{to:"body"},{trigger:()=>e,default:()=>l.label}),V=e=>"2"==e.bsv12?n("img",{src:e.bsv13||"",alt:e.label,style:{height:"28px",display:"block"}}):e.label;return(async()=>{try{const{defaultValue:e={}}=v.paramCfg._rawData,{classifyStr:l=""}=e;let a=await f({classifyStr:l},g);if(a){const{list:e=[]}=a;y.value=e}}catch(e){h.error(`获取标签数据请求失败:${e}`),console.log(e)}})(),(e,l)=>(o(),s(r(p),{to:"body",multiple:"",clearable:"",filterable:"",maxTagCount:"responsive",value:r(x),"onUpdate:value":l[0]||(l[0]=e=>u(x)?x.value=e:null),options:r(S),style:{width:"200px"},renderOption:w,renderLabel:V},null,8,["value","options"]))}});export{c as default};
|
@@ -964,6 +964,15 @@ declare const SelectLabel: import("vue").DefineComponent<{
|
|
964
964
|
valueCp: import("vue").WritableComputedRef<string[]>;
|
965
965
|
optionList: import("vue").ComputedRef<import("naive-ui").SelectOption[]>;
|
966
966
|
initTagList: () => Promise<void>;
|
967
|
+
renderOption: ({ node, option }: {
|
968
|
+
node: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
969
|
+
[key: string]: any;
|
970
|
+
}>;
|
971
|
+
option: import("naive-ui").SelectOption;
|
972
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
973
|
+
[key: string]: any;
|
974
|
+
}>;
|
975
|
+
renderLabel: (option: any) => any;
|
967
976
|
NSelect: any;
|
968
977
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
969
978
|
paramCfg: {
|
@@ -1131,6 +1131,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
1131
1131
|
valueCp: import("vue").WritableComputedRef<string[]>;
|
1132
1132
|
optionList: import("vue").ComputedRef<import("naive-ui").SelectOption[]>;
|
1133
1133
|
initTagList: () => Promise<void>;
|
1134
|
+
renderOption: ({ node, option }: {
|
1135
|
+
node: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
1136
|
+
[key: string]: any;
|
1137
|
+
}>;
|
1138
|
+
option: import("naive-ui").SelectOption;
|
1139
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
1140
|
+
[key: string]: any;
|
1141
|
+
}>;
|
1142
|
+
renderLabel: (option: any) => any;
|
1134
1143
|
NSelect: any;
|
1135
1144
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1136
1145
|
paramCfg: {
|
package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts
CHANGED
@@ -31,13 +31,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
31
31
|
categoryList: import("vue").ComputedRef<IFilterCategoryLabelItemType[]>;
|
32
32
|
onResize: (el: HTMLElement, categoryItem: IFilterCategoryLabelItemType) => void;
|
33
33
|
handleLabelUpfold: (categoryItem: IFilterCategoryLabelItemType) => void;
|
34
|
-
formatStyle: (item: IhoFilterTabLabelItemType) =>
|
35
|
-
|
36
|
-
borderColor: string;
|
37
|
-
} | {
|
38
|
-
background?: undefined;
|
39
|
-
borderColor?: undefined;
|
40
|
-
};
|
34
|
+
formatStyle: (item: IhoFilterTabLabelItemType, isPic?: boolean) => any;
|
35
|
+
onHandlePicChange: (item: IhoFilterTabLabelItemType) => void;
|
41
36
|
handleLabelChange: (isSelect: boolean, item: IhoFilterTabLabelItemType) => void;
|
42
37
|
initTagList: () => Promise<void>;
|
43
38
|
NTag: any;
|
package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as l,inject as t,watch as o,computed as
|
1
|
+
import{defineComponent as e,ref as l,inject as t,watch as o,computed as n,openBlock as a,createElementBlock as s,Fragment as i,renderList as c,unref as r,createElementVNode as d,toDisplayString as u,normalizeClass as p,withDirectives as f,createBlock as b,normalizeStyle as v,withCtx as m,createVNode as g,createCommentVNode as h,withModifiers as y}from"vue";import{useMessage as w,NTag as k,NTooltip as S,NIcon as C}from"naive-ui";import{ChevronUpCircleOutline as x,ChevronDownCircleOutline as L}from"@vicons/ionicons5";import T from"../../../directive/resize.js";import U from"../../../hooks/useAsyncData.js";import{InjectionFilterApiConfig as B}from"../../../constants/index.js";import{isString as j}from"lodash-es";var _,I;const z={class:"label-attr-filter-container"},D={class:"edit-f-label"},A={class:"label-f-content"},H=["src","onClick"],N={key:0,class:"label-f-unfold-btn"},O=["onClick"],$=d("span",null,(null==(_=window.getLanguageByCode)?void 0:_.call(window,"10010.1.388"))||"收起",-1),q=d("span",null,(null==(I=window.getLanguageByCode)?void 0:I.call(window,"10010.1.389"))||"展开",-1);var E=e({__name:"LabelInner",props:{componentCfg:{type:Object},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:_}){const I=e,{getDynamicLabelData:E}=U(),F=w(),G="rgb(85, 133, 245)",J=l([]),K=l([]),M=t(B);o((()=>I.value),(e=>{const l=e&&j(e)?e.split("|#|"):[];J.value=l}),{immediate:!0});const P=n((()=>K.value&&K.value.length>0?K.value.map((e=>(e.labelList.map((e=>{e.isSelect=J.value.includes(e.labelShowText)})),e))):[])),Q=(e,l=!1)=>{const t={borderColor:e.backgroundColor||G};return l||(t.background=e.backgroundColor||G),e.fontColor&&(t.color=e.fontColor),e.isSelect?t:{}},R=(e,l)=>{if(l.isSelect=e,e)J.value.push(l.labelShowText);else{const e=J.value.findIndex((e=>e===l.labelShowText));e>-1&&J.value.splice(e,1)}_("update:value",J.value.join("|#|"))};return(async()=>{try{const{widgetCfg:e={}}=I.componentCfg,{classifyStr:l=""}=e;let t=await E({classifyStr:l},M);if(t){const{list:e=[]}=t;K.value=e}}catch(e){F.error(`获取标签数据请求失败:${e}`),console.log(e)}})(),(e,l)=>(a(),s("div",z,[(a(!0),s(i,null,c(r(P),(e=>(a(),s("div",{class:"edit-labels-content",key:e.classifyId},[d("span",D,u(e.classifyName)+":",1),d("div",{class:p(["edit-f-content",{"label-select-height":!e.isUnfold&&e.labelList&&e.isShowBtn}])},[f((a(),s("div",A,[(a(!0),s(i,null,c(e.labelList,(e=>(a(),s(i,{key:e.labelCode},["1"!=e.bsv12&&e.bsv12?"2"==e.bsv12?(a(),b(r(S),{key:1,placement:"top-start",duration:0},{trigger:m((()=>[d("img",{class:"label-img",src:e.bsv13,alt:"",style:v(Q(e,!0)),onClick:l=>(e=>{const l=J.value.findIndex((l=>l===e.labelShowText));R(!(l>-1),e)})(e)},null,12,H)])),default:m((()=>[d("span",null,u(e.labelShowText),1)])),_:2},1024)):h("v-if",!0):(a(),b(r(k),{key:0,checkable:"",checked:e.isSelect,"onUpdate:checked":l=>R(l,e),style:v(Q(e))},{default:m((()=>[g(r(S),{placement:"top-start",duration:0},{trigger:m((()=>[d("span",null,u(e.labelShowText),1)])),default:m((()=>[d("span",null,u(e.labelShowText),1)])),_:2},1024)])),_:2},1032,["checked","onUpdate:checked","style"]))],64)))),128))])),[[r(T),l=>((e,l)=>{let t=e.offsetHeight||0;t&&(t>80?l.isShowBtn=!0:(l.isShowBtn=!1,l.isUnfold=!1))})(l,e)]])],2),e.labelList&&e.isShowBtn?(a(),s("div",N,[d("span",{class:"operate-btn",onClick:y((l=>(e=>{e.isUnfold=!e.isUnfold})(e)),["stop"])},[e.isUnfold?(a(),s(i,{key:0},[$,g(r(C),{component:r(x),size:"16"},null,8,["component"])],64)):(a(),s(i,{key:1},[q,g(r(C),{component:r(L),size:"16"},null,8,["component"])],64))],8,O)])):h("v-if",!0)])))),128))]))}});export{E as default};
|
package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { PropType } from 'vue';
|
2
|
+
import type { VNode } from 'vue';
|
2
3
|
import { SelectOption } from 'naive-ui';
|
3
4
|
import { AnyObject } from '../../../../../../shared/types';
|
4
5
|
declare const _default: import("vue").DefineComponent<{
|
@@ -32,6 +33,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
32
33
|
valueCp: import("vue").WritableComputedRef<string[]>;
|
33
34
|
optionList: import("vue").ComputedRef<SelectOption[]>;
|
34
35
|
initTagList: () => Promise<void>;
|
36
|
+
renderOption: ({ node, option }: {
|
37
|
+
node: VNode;
|
38
|
+
option: SelectOption;
|
39
|
+
}) => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
40
|
+
[key: string]: any;
|
41
|
+
}>;
|
42
|
+
renderLabel: (option: any) => any;
|
35
43
|
NSelect: any;
|
36
44
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
37
45
|
componentCfg: {
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,useAttrs as t,ref as
|
1
|
+
import{defineComponent as e,useAttrs as t,ref as l,inject as a,computed as o,openBlock as s,createBlock as n,unref as r,mergeProps as u,isRef as i,h as p}from"vue";import{useMessage as v,NSelect as b,NTooltip as c}from"naive-ui";import f from"../../../hooks/useAsyncData.js";import{InjectionFilterApiConfig as d}from"../../../constants/index.js";var m=e({__name:"LabelOut",props:{componentCfg:{type:Object},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:m}){const g=e,{getDynamicLabelData:h}=f(),y=t(),x=v(),S=l([]),w=a(d),j=o({set(e){const t=e?e.join("|#|"):e;m("update:value",t)},get:()=>g.value?g.value.split("|#|"):[]}),L=o((()=>{if(S.value&&S.value.length>0){let e=[],t=[];return S.value.forEach((l=>{l.labelList.forEach((l=>{e.includes(l.labelShowText)||(e.push(l.labelShowText),t.push({label:l.labelShowText,value:l.labelShowText,bsv12:l.bsv12,bsv13:l.bsv13}))}))})),t}return[]})),T=({node:e,option:t})=>p(c,{to:"body"},{trigger:()=>e,default:()=>t.label}),C=e=>"2"==e.bsv12?p("img",{src:e.bsv13||"",alt:e.label,style:{height:"28px",display:"block"}}):e.label;return(async()=>{try{const{widgetCfg:e={}}=g.componentCfg,{classifyStr:t=""}=e;let l=await h({classifyStr:t},w);if(l){const{list:e=[]}=l;S.value=e}}catch(e){x.error(`获取标签数据请求失败:${e}`),console.log(e)}})(),(e,t)=>(s(),n(r(b),u({to:"body"},r(y),{value:r(j),"onUpdate:value":t[0]||(t[0]=e=>i(j)?j.value=e:null),options:r(L),renderOption:T,renderLabel:C}),null,16,["value","options"]))}});export{m as default};
|
@@ -1251,13 +1251,8 @@ declare const LabelInner: import("vue").DefineComponent<{
|
|
1251
1251
|
categoryList: import("vue").ComputedRef<import("../../../types").IFilterCategoryLabelItemType[]>;
|
1252
1252
|
onResize: (el: HTMLElement, categoryItem: import("../../../types").IFilterCategoryLabelItemType) => void;
|
1253
1253
|
handleLabelUpfold: (categoryItem: import("../../../types").IFilterCategoryLabelItemType) => void;
|
1254
|
-
formatStyle: (item: import("../../../types").IhoFilterTabLabelItemType) =>
|
1255
|
-
|
1256
|
-
borderColor: string;
|
1257
|
-
} | {
|
1258
|
-
background?: undefined;
|
1259
|
-
borderColor?: undefined;
|
1260
|
-
};
|
1254
|
+
formatStyle: (item: import("../../../types").IhoFilterTabLabelItemType, isPic?: boolean) => any;
|
1255
|
+
onHandlePicChange: (item: import("../../../types").IhoFilterTabLabelItemType) => void;
|
1261
1256
|
handleLabelChange: (isSelect: boolean, item: import("../../../types").IhoFilterTabLabelItemType) => void;
|
1262
1257
|
initTagList: () => Promise<void>;
|
1263
1258
|
NTag: any;
|
@@ -1312,6 +1307,15 @@ declare const LabelOut: import("vue").DefineComponent<{
|
|
1312
1307
|
valueCp: import("vue").WritableComputedRef<string[]>;
|
1313
1308
|
optionList: import("vue").ComputedRef<import("naive-ui").SelectOption[]>;
|
1314
1309
|
initTagList: () => Promise<void>;
|
1310
|
+
renderOption: ({ node, option }: {
|
1311
|
+
node: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
1312
|
+
[key: string]: any;
|
1313
|
+
}>;
|
1314
|
+
option: import("naive-ui").SelectOption;
|
1315
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
1316
|
+
[key: string]: any;
|
1317
|
+
}>;
|
1318
|
+
renderLabel: (option: any) => any;
|
1315
1319
|
NSelect: any;
|
1316
1320
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1317
1321
|
componentCfg: {
|
@@ -1688,13 +1688,8 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
1688
1688
|
categoryList: import("vue").ComputedRef<import("../../../../../components/table-filter/src/types").IFilterCategoryLabelItemType[]>;
|
1689
1689
|
onResize: (el: HTMLElement, categoryItem: import("../../../../../components/table-filter/src/types").IFilterCategoryLabelItemType) => void;
|
1690
1690
|
handleLabelUpfold: (categoryItem: import("../../../../../components/table-filter/src/types").IFilterCategoryLabelItemType) => void;
|
1691
|
-
formatStyle: (item: import("../../../../../components/table-filter/src/types").IhoFilterTabLabelItemType) =>
|
1692
|
-
|
1693
|
-
borderColor: string;
|
1694
|
-
} | {
|
1695
|
-
background?: undefined;
|
1696
|
-
borderColor?: undefined;
|
1697
|
-
};
|
1691
|
+
formatStyle: (item: import("../../../../../components/table-filter/src/types").IhoFilterTabLabelItemType, isPic?: boolean) => any;
|
1692
|
+
onHandlePicChange: (item: import("../../../../../components/table-filter/src/types").IhoFilterTabLabelItemType) => void;
|
1698
1693
|
handleLabelChange: (isSelect: boolean, item: import("../../../../../components/table-filter/src/types").IhoFilterTabLabelItemType) => void;
|
1699
1694
|
initTagList: () => Promise<void>;
|
1700
1695
|
NTag: any;
|
@@ -1763,6 +1758,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
1763
1758
|
valueCp: import("vue").WritableComputedRef<string[]>;
|
1764
1759
|
optionList: import("vue").ComputedRef<import("naive-ui").SelectOption[]>;
|
1765
1760
|
initTagList: () => Promise<void>;
|
1761
|
+
renderOption: ({ node, option }: {
|
1762
|
+
node: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
1763
|
+
[key: string]: any;
|
1764
|
+
}>;
|
1765
|
+
option: import("naive-ui").SelectOption;
|
1766
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
1767
|
+
[key: string]: any;
|
1768
|
+
}>;
|
1769
|
+
renderLabel: (option: any) => any;
|
1766
1770
|
NSelect: any;
|
1767
1771
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1768
1772
|
componentCfg: {
|