cnhis-design-vue 3.1.42-beta.2 → 3.1.42-beta.21

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 (155) hide show
  1. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  2. package/es/components/base-search/src/index.vue.js +1 -1
  3. package/es/components/base-search/style/index.css +1 -1
  4. package/es/components/big-table/index.d.ts +3 -4
  5. package/es/components/big-table/src/BigTable.vue.d.ts +3 -4
  6. package/es/components/big-table/src/BigTable.vue2.js +1 -1
  7. package/es/components/big-table/style/index.css +1 -1
  8. package/es/components/button-print/index.d.ts +4 -4
  9. package/es/components/button-print/src/ButtonPrint.vue.d.ts +4 -4
  10. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  11. package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
  12. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
  13. package/es/components/button-print/src/utils/print.js +1 -1
  14. package/es/components/config-provider/src/ConfigProvider.js +1 -1
  15. package/es/components/config-provider/src/interface.d.ts +4 -4
  16. package/es/components/date-picker/index.d.ts +4 -0
  17. package/es/components/date-picker/src/DatePicker.vue.d.ts +4 -0
  18. package/es/components/date-picker/src/DatePicker.vue.js +1 -1
  19. package/es/components/fabric-chart/index.d.ts +2 -2
  20. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
  21. package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +1 -0
  22. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
  23. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
  24. package/es/components/fabric-chart/src/hooks/useCenter.js +1 -1
  25. package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
  26. package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +16 -0
  27. package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -0
  28. package/es/components/field-set/index.d.ts +84 -15
  29. package/es/components/field-set/src/FieldSet.vue.d.ts +80 -29
  30. package/es/components/field-set/src/types/index.d.ts +18 -0
  31. package/es/components/field-set/src/types/index.js +1 -0
  32. package/es/components/form-config/index.d.ts +28 -25
  33. package/es/components/form-config/src/FormConfig.vue.d.ts +28 -25
  34. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  35. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +12 -12
  36. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +14 -13
  37. package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -1
  38. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
  39. package/es/components/form-config/src/constants/index.d.ts +12 -1
  40. package/es/components/form-config/src/constants/index.js +1 -1
  41. package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
  42. package/es/components/form-config/src/types/index.d.ts +1 -0
  43. package/es/components/form-render/index.d.ts +12 -12
  44. package/es/components/form-render/index.js +1 -1
  45. package/es/components/form-render/src/FormRender.vue.d.ts +12 -12
  46. package/es/components/form-render/src/FormRender.vue.js +1 -1
  47. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +12 -12
  48. package/es/components/form-render/src/components/renderer/complex.d.ts +1 -1
  49. package/es/components/form-render/src/components/renderer/date.js +1 -1
  50. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
  51. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
  52. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
  53. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  54. package/es/components/form-render/src/components/renderer/select.js +1 -1
  55. package/es/components/form-render/src/hooks/index.d.ts +1 -1
  56. package/es/components/form-render/src/hooks/index.js +1 -1
  57. package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +16 -0
  58. package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -0
  59. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  60. package/es/components/form-render/src/types/index.d.ts +2 -1
  61. package/es/components/iho-table/index.d.ts +7 -2
  62. package/es/components/iho-table/src/IhoTable.vue.d.ts +7 -2
  63. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  64. package/es/components/iho-table/src/constants/index.d.ts +2 -1
  65. package/es/components/iho-table/src/constants/index.js +1 -1
  66. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +5 -5
  67. package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
  68. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +22 -21
  69. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +1 -1
  70. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +3 -1
  71. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -1
  72. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  73. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  74. package/es/components/iho-table/src/plugins/highLightSetPlugin.d.ts +1 -0
  75. package/es/components/iho-table/src/plugins/highLightSetPlugin.js +1 -0
  76. package/es/components/iho-table/src/plugins/index.js +1 -1
  77. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
  78. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  79. package/es/components/iho-table/src/plugins/maxCheckSizePlugin.d.ts +1 -0
  80. package/es/components/iho-table/src/plugins/maxCheckSizePlugin.js +1 -0
  81. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +4 -0
  82. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  83. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  84. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -1
  85. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
  86. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
  87. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.d.ts +1 -0
  88. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -0
  89. package/es/components/iho-table/src/types/index.d.ts +3 -1
  90. package/es/components/iho-table/src/types/pluginType.d.ts +9 -4
  91. package/es/components/iho-table/src/utils/index.d.ts +3 -0
  92. package/es/components/iho-table/src/utils/index.js +1 -1
  93. package/es/components/iho-table/style/index.css +1 -1
  94. package/es/components/index.css +1 -1
  95. package/es/components/index.d.ts +1 -0
  96. package/es/components/index.js +1 -1
  97. package/es/components/info-header/index.d.ts +28 -28
  98. package/es/components/info-header/src/InfoHeader.vue.d.ts +28 -28
  99. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +3 -3
  100. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +3 -3
  101. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
  102. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -1
  103. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
  104. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +15 -15
  105. package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
  106. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +12 -12
  107. package/es/components/info-header/style/index.css +1 -1
  108. package/es/components/keyboard/index.d.ts +1 -1
  109. package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
  110. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  111. package/es/components/keyboard/src/constants/index.js +1 -1
  112. package/es/components/keyboard/style/index.css +1 -1
  113. package/es/components/scale-view/index.d.ts +25 -66
  114. package/es/components/scale-view/src/ScaleView.vue.d.ts +25 -66
  115. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  116. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
  117. package/es/components/scale-view/style/index.css +1 -1
  118. package/es/components/select-person/index.d.ts +1 -1
  119. package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
  120. package/es/components/shortcut-setter/index.d.ts +12 -12
  121. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +12 -12
  122. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
  123. package/es/components/steps-wheel/src/constants/index.js +1 -1
  124. package/es/components/steps-wheel/style/index.css +1 -1
  125. package/es/components/table-filter/index.d.ts +0 -1
  126. package/es/components/table-filter/index.js +1 -1
  127. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
  128. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +1 -1
  129. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  130. package/es/components/table-filter/src/hooks/useMixins.js +1 -1
  131. package/es/components/table-filter/src/tool/baseOptions.d.ts +0 -10
  132. package/es/components/table-filter/src/tool/baseOptions.js +1 -1
  133. package/es/components/table-filter/src/tool/generateDefOptions.d.ts +0 -7
  134. package/es/components/table-filter/src/tool/generateDefOptions.js +1 -1
  135. package/es/components/table-filter/src/types/index.d.ts +0 -74
  136. package/es/components/time-picker/src/TimePicker.vue.js +1 -1
  137. package/es/shared/{mixins → hooks}/index.d.ts +1 -0
  138. package/es/shared/{mixins → hooks}/index.js +1 -1
  139. package/es/{components/form-render/src → shared}/hooks/useAsyncQueue.d.ts +0 -14
  140. package/es/shared/hooks/useAsyncQueue.js +1 -0
  141. package/es/shared/{mixins → hooks}/useDateTime.d.ts +2 -2
  142. package/es/shared/hooks/useDateTime.js +1 -0
  143. package/package.json +2 -2
  144. package/es/components/form-render/src/hooks/useAsyncQueue.js +0 -1
  145. package/es/components/scale-view/src/hooks/scaleview-props.d.ts +0 -115
  146. package/es/components/scale-view/src/hooks/scaleview-props.js +0 -1
  147. package/es/components/table-filter/src/hooks/export.d.ts +0 -1
  148. package/es/components/table-filter/src/hooks/export.js +0 -1
  149. package/es/components/table-filter/src/tool/getWidgetType.d.ts +0 -1
  150. package/es/components/table-filter/src/tool/getWidgetType.js +0 -1
  151. package/es/shared/mixins/useDateTime.js +0 -1
  152. package/es/shared/utils/colorLog.d.ts +0 -31
  153. package/es/shared/utils/colorLog.js +0 -1
  154. /package/es/shared/{mixins → hooks}/useTheme.d.ts +0 -0
  155. /package/es/shared/{mixins → hooks}/useTheme.js +0 -0
@@ -1 +1 @@
1
- .c-choice-wrap{display:flex;flex-wrap:wrap;width:100%}.c-choice-wrap .n-radio-input{height:14px;width:14px}.c-choice-wrap .scale-choice-img-wrap{background:#fff;border:1px solid #d5d5d5;border-radius:4px;display:inline-block;height:62px;margin-right:16px;min-width:74px;position:relative;width:74px}.c-choice-wrap .scale-choice-img-wrap:hover .scale-preview-wrap{display:flex}.c-choice-wrap .scale-choice-img-wrap>img{height:100%;object-fit:cover;width:100%}.c-choice-wrap .scale-choice-img-wrap .scale-preview-wrap{align-items:center;background:rgba(0,0,0,.75);border-radius:8px;bottom:0;display:none;font-size:20px;justify-content:center;left:0;position:absolute;right:0;top:0}.c-choice-wrap .scale-choice-img-wrap .scale-preview-wrap i.anticon{color:#fff;margin:0}.c-choice-wrap .presuffix-wrap{align-items:center;display:inline-flex;white-space:normal;width:100%}.c-choice-wrap .n-input{border-bottom:1px solid #d9d9d9;flex:1;max-width:300px}.c-choice-wrap .choose-other{flex:1}.c-choice-wrap .other-span{word-break:break-all}.c-choice-wrap.choice-wrap-1 label{width:100%}.c-choice-wrap.choice-wrap-1 label .n-input{max-width:300px}.c-choice-wrap.choice-wrap-2 label{width:50%}.c-choice-wrap.choice-wrap-3 label{width:33%}.c-choice-wrap.choice-wrap-4 label{width:25%}.c-choice-wrap label{align-items:center;display:inline-flex;margin:4px 0}.c-choice-wrap label .n-radio__label{align-items:center;display:inline-flex;flex:1;white-space:normal}.c-choice-wrap>.n-checkbox{align-items:center;display:inline-flex;margin:4px 0}.c-choice-wrap>.n-checkbox .n-checkbox__label{align-items:center;display:inline-flex;flex:1;white-space:normal}.c-choice-wrap.choice-wrap-1 .n-checkbox{width:100%}.c-choice-wrap.choice-wrap-1 .n-checkbox .n-input{max-width:300px}.c-choice-wrap.choice-wrap-2 .n-checkbox{width:50%}.c-choice-wrap.choice-wrap-3 .n-checkbox{width:33%}.c-choice-wrap.choice-wrap-4 .n-checkbox{width:25%}.c-scale{box-sizing:border-box;color:rgba(0,0,0,.65);height:100%;overflow:hidden;padding-bottom:50px;padding-top:4px;position:relative;text-align:left;width:100%}.c-scale.c-scale-nobtn{padding-bottom:4px}.c-scale .scale-container{box-sizing:border-box;height:100%;overflow-y:auto;padding-bottom:10px;transform-origin:0 0;width:100%}.c-scale .scale-container.scale-container-nopadding{height:100%}.c-scale .scale-container.scale-container-hasfooter{height:calc(100% - 50px)}.c-scale .scale-container::-webkit-scrollbar{background-color:#f5f5f5;height:6px;width:10px}.c-scale .scale-container::-webkit-scrollbar-track{background-color:#f2f2f2;border-radius:10px}.c-scale .scale-container::-webkit-scrollbar-thumb{background-color:#dbdcdc;border-radius:10px}.c-scale .no-data-tip{height:100%;width:100%}.c-scale .lb-title{text-align:center}.c-scale .map-container{cursor:pointer}.c-scale .linebar-div{margin-top:24px;text-align:center;width:100%}.c-scale .linebar-div .n-divider{margin-top:4px}.c-scale .my-prompt{background-color:#fff;border-radius:4px;box-shadow:0 5px 13px rgba(0,0,0,.14);padding:10px}.c-scale .img-card{width:100%}.main{box-sizing:border-box}.main .scale-label-required{font-weight:700}.main .required-text{color:#e02828;font-weight:700}.main .score-i{word-break:keep-all}.main .evalute-label{background:rgba(45,122,255,.1);border:1px solid rgba(45,122,255,.5);border-radius:4px;color:#2d7aff;display:inline-block;font-size:12px;height:20px;line-height:20px;margin-left:4px;padding:0 5px}.main .evalute-tip{background:rgba(255,194,0,.15);border-radius:2px;color:#fe9626;cursor:pointer;display:inline-block;margin-left:8px;padding:0 5px}.footer{align-items:center;background:#fff;border-top:1px solid #e8e8e8;bottom:0;box-sizing:border-box;display:flex;height:50px;left:0;position:absolute;width:100%}.footer .n-button+.n-button{margin-left:8px}.rich-text-content{word-break:break-all}.rich-text-content p{margin-bottom:0}.rich-text-content img{max-width:100%}.n-dialog.n-modal.c-evatip-dialog-wrap{max-height:unset;overflow-y:hidden;padding:0;width:494px!important}.n-dialog.n-modal.c-evatip-dialog-wrap .n-dialog__title{border-bottom:1px solid #e8e8e8;font-weight:600;height:52px;line-height:52px;padding-left:16px}.n-dialog.n-modal.c-evatip-dialog-wrap .n-base-icon{color:#666;margin:0;position:absolute}.n-dialog.n-modal.c-evatip-dialog-wrap .n-dialog__content{margin:0}.n-dialog.n-modal.c-evatip-dialog-wrap .evatip-container{color:#2e2e2e;font-size:16px;max-height:60vh;min-height:100px;overflow-y:auto;padding:26px 16px}.n-dialog.n-modal.c-evatip-dialog-wrap .evatip-container p{border:1px solid hsla(0,0%,84%,.6);border-radius:4px;font-size:14px;margin-bottom:0;margin-top:12px;padding:16px}.n-dialog.n-modal.c-evatip-dialog-wrap .n-dialog__action{border-top:1px solid #e8e8e8;box-sizing:border-box;display:block;padding:10px 16px;text-align:right;width:100%}.c-answerParse{background:hsla(0,64%,98%,.6);border-radius:8px;color:#2e2e2e;margin-bottom:12px;margin-top:6px;padding:16px}.c-answerParse .answer-res-wrap{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.c-answerParse .answer-res-wrap .answer-res{align-items:center;background:#f06f64;border-radius:18px;color:#fff;display:inline-flex;font-weight:700;line-height:36px;padding:0 18px}.c-answerParse .answer-res-wrap .answer-res svg{font-size:16px;margin-right:8px}.c-answerParse .answer-res-wrap .answer-score{color:#2e2e2e;font-size:14px;font-weight:600}.c-answerParse .correct-answer{line-height:20px;margin-bottom:16px}.c-answerParse .correct-answer p{display:inline-block;font-weight:700}.c-answerParse .correct-answer span{color:#91c850;font-size:16px;word-break:break-all}.c-answerParse .answer-key{line-height:20px}.c-answerParse .answer-key p{font-weight:700;line-height:20px;margin-bottom:16px}.c-answerParse .answer-key span{word-break:break-all}.c-answerParse.answerParse-success{background:rgba(234,251,228,.6)}.c-answerParse.answerParse-success .answer-res{background:#91c850}.c-evaluateCountdown{background:#f2f2f4;border-radius:8px;color:#212121;min-width:166px;padding:8px 12px;position:absolute;right:0;text-align:center;top:0;z-index:1}.c-evaluateCountdown.evaluateCountdown-hasTime:hover{background:#f1f1f4;padding:8px 32px}.c-evaluateCountdown.evaluateCountdown-hasTime:hover .countdown{font-size:26px;line-height:40px}.c-evaluateCountdown.evaluateCountdown-hasTime:hover .countdown span{line-height:unset}.c-evaluateCountdown.evaluateCountdown-hasTime:hover .countdown svg{display:none}.c-evaluateCountdown.evaluateCountdown-hasTime:hover .answered-wrap{display:block}.c-evaluateCountdown.evaluateCountdown-hasTime .answered-wrap{display:none}.c-evaluateCountdown .countdown{align-content:center;color:#000;display:flex;font-size:14px;justify-content:center}.c-evaluateCountdown .countdown span{line-height:18px}.c-evaluateCountdown .countdown svg{color:#969696;font-size:16px;margin-left:8px}.c-evaluateCountdown .countdown.countdown-red{color:#ff1818}.c-evaluateCountdown .answered-wrap span{color:#2d7aff}.c-evaluate-page{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.c-evaluate-page .evaluate-container{border:1px solid #e0e0e0;border-radius:15px;padding:45px 32px;text-align:center;width:620px}.c-evaluate-page .evaluate-container .evaluate-name{color:#212121;font-size:20px;line-height:28px;margin-bottom:10px;max-height:88px;overflow-y:auto;word-break:break-all}.c-evaluate-page .evaluate-container .evaluate-explain{background:#f2f2f4;border-radius:8px;margin-bottom:24px;overflow:hidden;padding:12px 22px 12px 30px;text-align:left}.c-evaluate-page .evaluate-container .evaluate-explain>div{max-height:206px;overflow-y:auto;padding-right:8px;word-break:break-all}.c-evaluate-page .evaluate-container .evaluate-score{display:flex;margin-bottom:24px}.c-evaluate-page .evaluate-container .evaluate-score li+li{border-left:1px solid hsla(0,0%,84%,.6)}.c-evaluate-page .evaluate-container .evaluate-score li{flex:1}.c-evaluate-page .evaluate-container .evaluate-score li div{color:#000;font-size:36px;line-height:50px}.c-evaluate-page .evaluate-container .evaluate-score li span{color:rgba(0,0,0,.6);font-size:14px;line-height:20px}.c-evaluate-page .evaluate-container .evaluate-time-range{color:#000;font-size:14px;line-height:20px;margin-bottom:20px}.c-evaluate-page .evaluate-container .evaluate-btn{border-radius:8px;color:#fff;font-size:18px;height:unset;padding:16px 0;text-align:center;width:380px}.c-totalScore-warp{background:#f2f2f4;border-radius:6px;color:#666;font-size:14px;font-weight:400;margin-bottom:16px;padding:16px}.c-totalScore-warp div+div{margin-top:4px}.c-totalScore-warp span{color:#090909;font-weight:500}.c-totalScore-warp .score-result{color:#2d7aff}.c-sign-wrap .sigan-content-wrap{display:flex;flex-wrap:wrap}.c-sign-wrap .sigan-content-wrap .sign-item{border:1px solid #d5d5d5;border-radius:4px;box-sizing:border-box;height:96px;margin-right:16px;overflow:hidden;position:relative;width:200px}.c-sign-wrap .sigan-content-wrap .sign-item>img{height:100%;width:100%}.c-sign-wrap .sigan-content-wrap .sign-item:hover>div{display:flex}.c-sign-wrap .sigan-content-wrap .sign-item>div{align-items:center;background:rgba(0,0,0,.8);border-radius:4px;bottom:0;display:none;justify-content:center;left:0;position:absolute;right:0;top:0}.c-sign-wrap .sigan-content-wrap .sign-item>div .n-icon{color:#fff;cursor:pointer;font-size:18px}.c-sign-wrap .sigan-content-wrap .sign-item>div .n-icon+.n-icon{margin-left:20px}.c-sign-wrap .sigan-content-wrap .add-sign-wrap{align-items:center;background:#fafafa;border:1px dashed #d5d5d5;border-radius:4px;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;height:96px;justify-content:center;width:200px}.c-sign-wrap .sigan-content-wrap .add-sign-wrap .svg-icon{color:#000;font-size:32px}.c-sign-wrap .sigan-content-wrap .add-sign-wrap span,.sign-com-wrap>span{color:#585858}.sign-com-wrap .sign-canvas{border:1px solid hsla(0,0%,84%,.6);border-radius:4px;margin-top:16px}.c-scale li,.c-scale ul{list-style:none;margin:0;padding:0}.c-scale .n-input{text-align:left;width:100%}.c-scale .n-form-item{--n-label-height:unset!important}.c-scale .c-scle-form-item>.n-form-item-blank{display:block}.no-data-tip{align-items:center;color:#333;display:flex;flex-direction:column;font-size:22px;height:100%;justify-content:center;width:100%}.no-data-tip>img{max-width:70%;width:260px}.no-data-tip>p{color:rgba(0,0,0,.8);font-size:16px;margin-bottom:0;margin-top:12px}.no-data-tip>span{color:rgba(0,0,0,.4);font-size:14px;margin-top:6px}.c-scale-address{max-width:500px}.c-scale-address .field-row{display:flex;overflow:hidden;width:100%}.c-scale-address .field-row .n-select{flex:1;padding:0 5px 5px 0;width:100%}.c-scale-address .field-row .n-select:last-child{padding-right:0}.c-scale-collection,.c-scale-collection .img-card{width:100%}.c-scale-collection.scale-collection-title{text-align:center}.c-scale-collection.scale-collection-title h1{font-weight:500}.c-scale-collection.prompt-message{background-color:#fff;border-radius:4px;box-shadow:0 5px 13px rgba(0,0,0,.14);color:#666;padding:10px;position:relative}.c-scale-collection.prompt-message.is-weak{color:#999}.c-scale-collection.prompt-message.is-strong{color:#ff1818;padding:8px 8px 8px 35px}.c-scale-collection.prompt-message .prompt-icon{font-size:18px;left:8px;position:absolute;top:8px}.c-scale-collection.prompt-message .prompt-message-content{font-size:14px;line-height:16px;word-break:break-all}.c-time-range{align-items:center;display:flex}.c-map-container{cursor:pointer;width:100%}.c-map-container .n-input.map-input .n-input__prefix{transform:rotate(180deg)}.c-map-container .n-input.map-input .n-input__prefix .n-icon{color:rgba(0,0,0,.65)}.c-map-container .n-input.map-input.n-input--disabled .n-input__input-el{background-color:#fff;color:rgba(0,0,0,.65);cursor:pointer}.c-scale-map-modal .n-card__content{overflow:hidden}.c-scale-upload{width:100%}.c-scale-upload .n-upload-file-list{display:flex}.c-scale-upload .n-upload-file-list .n-upload-file .n-upload-file-info .n-upload-file-info__action.n-upload-file-info__action--image-card-type{background:rgba(0,0,0,.5);box-sizing:border-box}.c-scale-upload .n-upload-file-list .n-upload-file .n-upload-file-info .n-upload-file-info__action.n-upload-file-info__action--image-card-type span.n-button__icon{color:#fff}.c-scale-upload .n-upload-file-list .n-upload-trigger.n-upload-trigger--image-card{background-color:#fafafa;border-color:#d5d5d5;height:184px;width:184px}.c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type{background-color:#fafafa;border-color:#d5d5d5;height:184px;padding:8px;width:184px}.c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type .n-image{height:100%}.c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type img{object-fit:cover!important}.c-scale-upload .upload-img-wrap{align-items:center;display:flex;flex-direction:column}.c-scale-upload .dragger-upload-text{align-items:center;display:flex}.c-scale-upload.scale-upload-file .n-upload-dragger{padding:16px 0}.c-scale-upload.scale-upload-file .n-upload{--n-item-disabled-opacity:1!important;opacity:1!important}.c-scale-upload.scale-upload-file .dragger-upload-text{color:rgba(0,0,0,.65)}.c-scale-upload.scale-upload-file .n-upload-file-list{display:flex;flex-direction:column;width:100%}.c-scale-upload.scale-upload-file .n-upload-file-list .n-upload-file{width:100%}.c-scale-upload.scale-upload-file .n-upload-trigger{background:#fafafa;border-color:#d5d5d5;width:100%}.text-over-tooltip-components{display:inline-block;max-width:98%}.text-over-tooltip-components .ellipsis{color:#35393c;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-over-tooltip-components .ellipsis i{font-style:normal;white-space:nowrap;word-break:keep-all}.text-over-tooltip-components .fs20{color:green;font-size:20px;font-weight:600;line-height:22px}.text-over-tooltip-components .fs12{color:orange;font-size:12px;font-weight:400;line-height:14px}.c-scale-modal-container.n-dialog{display:flex;flex-direction:column;height:60vh}.c-scale-modal-container.n-dialog.n-modal{min-width:560px;padding:0;width:50vw}.c-scale-modal-container.n-dialog .n-dialog__title{background:#fff;border-bottom:1px solid #e8e8e8;border-radius:8px 8px 0 0;box-sizing:border-box;height:52px;line-height:52px;padding:14px 16px}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content{align-items:center;color:#000;display:flex;font-size:16px;height:100%;justify-content:space-between;overflow:hidden;width:100%}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .modal-title-drag{flex:1}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .svg-wrap{right:16px}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .svg-wrap svg{cursor:pointer;font-size:14px}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .svg-wrap svg+svg{margin-left:16px}.c-scale-modal-container.n-dialog .n-dialog__content{height:100%;margin:0;overflow:hidden;padding:16px}.c-scale-modal-container.n-dialog .n-dialog__action{background:transparent;border-radius:0 0 8px 8px;border-top:1px solid #e8e8e8;box-sizing:border-box;height:52px;padding:10px 16px;text-align:right}
1
+ .c-choice-wrap{display:flex;flex-wrap:wrap;width:100%}.c-choice-wrap .n-radio-input{height:14px;width:14px}.c-choice-wrap .scale-choice-img-wrap{background:#fff;border:1px solid #d5d5d5;border-radius:4px;display:inline-block;height:62px;margin-right:16px;min-width:74px;position:relative;width:74px}.c-choice-wrap .scale-choice-img-wrap:hover .scale-preview-wrap{display:flex}.c-choice-wrap .scale-choice-img-wrap>img{height:100%;object-fit:cover;width:100%}.c-choice-wrap .scale-choice-img-wrap .scale-preview-wrap{align-items:center;background:rgba(0,0,0,.75);border-radius:8px;bottom:0;display:none;font-size:20px;justify-content:center;left:0;position:absolute;right:0;top:0}.c-choice-wrap .scale-choice-img-wrap .scale-preview-wrap i.anticon{color:#fff;margin:0}.c-choice-wrap .presuffix-wrap{align-items:center;display:inline-flex;white-space:normal;width:100%}.c-choice-wrap .n-input{border-bottom:1px solid #d9d9d9;flex:1;max-width:300px}.c-choice-wrap .choose-other{flex:1}.c-choice-wrap .other-span{word-break:break-all}.c-choice-wrap.choice-wrap-1 label{width:100%}.c-choice-wrap.choice-wrap-1 label .n-input{max-width:300px}.c-choice-wrap.choice-wrap-2 label{width:50%}.c-choice-wrap.choice-wrap-3 label{width:33%}.c-choice-wrap.choice-wrap-4 label{width:25%}.c-choice-wrap label{align-items:center;display:inline-flex;margin:4px 0}.c-choice-wrap label .n-radio__label{align-items:center;display:inline-flex;flex:1;white-space:normal}.c-choice-wrap>.n-checkbox{align-items:center;display:inline-flex;margin:4px 0}.c-choice-wrap>.n-checkbox .n-checkbox__label{align-items:center;display:inline-flex;flex:1;white-space:normal}.c-choice-wrap.choice-wrap-1 .n-checkbox{width:100%}.c-choice-wrap.choice-wrap-1 .n-checkbox .n-input{max-width:300px}.c-choice-wrap.choice-wrap-2 .n-checkbox{width:50%}.c-choice-wrap.choice-wrap-3 .n-checkbox{width:33%}.c-choice-wrap.choice-wrap-4 .n-checkbox{width:25%}.c-scale{box-sizing:border-box;color:rgba(0,0,0,.65);height:100%;overflow:hidden;padding-bottom:50px;padding-top:4px;position:relative;text-align:left;width:100%}.c-scale.c-scale-nobtn{padding-bottom:4px}.c-scale .scale-container{box-sizing:border-box;height:100%;overflow-y:auto;padding-bottom:10px;transform-origin:0 0;width:100%}.c-scale .scale-container.scale-container-nopadding{display:flex;flex-direction:column;height:100%}.c-scale .scale-container.scale-container-hasfooter{flex:1}.c-scale .scale-container::-webkit-scrollbar{background-color:#f5f5f5;height:6px;width:10px}.c-scale .scale-container::-webkit-scrollbar-track{background-color:#f2f2f2;border-radius:10px}.c-scale .scale-container::-webkit-scrollbar-thumb{background-color:#dbdcdc;border-radius:10px}.c-scale .no-data-tip{height:100%;width:100%}.c-scale .lb-title{text-align:center}.c-scale .map-container{cursor:pointer}.c-scale .linebar-div{margin-top:24px;text-align:center;width:100%}.c-scale .linebar-div .n-divider{margin-top:4px}.c-scale .my-prompt{background-color:#fff;border-radius:4px;box-shadow:0 5px 13px rgba(0,0,0,.14);padding:10px}.c-scale .img-card{width:100%}.main{box-sizing:border-box}.main .scale-label-required{font-weight:700}.main .required-text{color:#e02828;font-weight:700}.main .score-i{word-break:keep-all}.main .evalute-label{background:rgba(45,122,255,.1);border:1px solid rgba(45,122,255,.5);border-radius:4px;color:#2d7aff;display:inline-block;font-size:12px;height:20px;line-height:20px;margin-left:4px;padding:0 5px}.main .evalute-tip{background:rgba(255,194,0,.15);border-radius:2px;color:#fe9626;cursor:pointer;display:inline-block;margin-left:8px;padding:0 5px}.footer{align-items:center;background:#fff;border-top:1px solid #e8e8e8;box-sizing:border-box;display:flex;flex-basis:50px;height:50px;width:100%}.footer .n-button+.n-button{margin-left:8px}.rich-text-content{word-break:break-all}.rich-text-content p{margin-bottom:0}.rich-text-content img{max-width:100%}.n-dialog.n-modal.c-evatip-dialog-wrap{max-height:unset;overflow-y:hidden;padding:0;width:494px!important}.n-dialog.n-modal.c-evatip-dialog-wrap .n-dialog__title{border-bottom:1px solid #e8e8e8;font-weight:600;height:52px;line-height:52px;padding-left:16px}.n-dialog.n-modal.c-evatip-dialog-wrap .n-base-icon{color:#666;margin:0;position:absolute}.n-dialog.n-modal.c-evatip-dialog-wrap .n-dialog__content{margin:0}.n-dialog.n-modal.c-evatip-dialog-wrap .evatip-container{color:#2e2e2e;font-size:16px;max-height:60vh;min-height:100px;overflow-y:auto;padding:26px 16px}.n-dialog.n-modal.c-evatip-dialog-wrap .evatip-container p{border:1px solid hsla(0,0%,84%,.6);border-radius:4px;font-size:14px;margin-bottom:0;margin-top:12px;padding:16px}.n-dialog.n-modal.c-evatip-dialog-wrap .n-dialog__action{border-top:1px solid #e8e8e8;box-sizing:border-box;display:block;padding:10px 16px;text-align:right;width:100%}.c-answerParse{background:hsla(0,64%,98%,.6);border-radius:8px;color:#2e2e2e;margin-bottom:12px;margin-top:6px;padding:16px}.c-answerParse .answer-res-wrap{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.c-answerParse .answer-res-wrap .answer-res{align-items:center;background:#f06f64;border-radius:18px;color:#fff;display:inline-flex;font-weight:700;line-height:36px;padding:0 18px}.c-answerParse .answer-res-wrap .answer-res svg{font-size:16px;margin-right:8px}.c-answerParse .answer-res-wrap .answer-score{color:#2e2e2e;font-size:14px;font-weight:600}.c-answerParse .correct-answer{line-height:20px;margin-bottom:16px}.c-answerParse .correct-answer p{display:inline-block;font-weight:700}.c-answerParse .correct-answer span{color:#91c850;font-size:16px;word-break:break-all}.c-answerParse .answer-key{line-height:20px}.c-answerParse .answer-key p{font-weight:700;line-height:20px;margin-bottom:16px}.c-answerParse .answer-key span{word-break:break-all}.c-answerParse.answerParse-success{background:rgba(234,251,228,.6)}.c-answerParse.answerParse-success .answer-res{background:#91c850}.c-evaluateCountdown{background:#f2f2f4;border-radius:8px;color:#212121;min-width:166px;padding:8px 12px;position:absolute;right:0;text-align:center;top:0;z-index:1}.c-evaluateCountdown.evaluateCountdown-hasTime:hover{background:#f1f1f4;padding:8px 32px}.c-evaluateCountdown.evaluateCountdown-hasTime:hover .countdown{font-size:26px;line-height:40px}.c-evaluateCountdown.evaluateCountdown-hasTime:hover .countdown span{line-height:unset}.c-evaluateCountdown.evaluateCountdown-hasTime:hover .countdown svg{display:none}.c-evaluateCountdown.evaluateCountdown-hasTime:hover .answered-wrap{display:block}.c-evaluateCountdown.evaluateCountdown-hasTime .answered-wrap{display:none}.c-evaluateCountdown .countdown{align-content:center;color:#000;display:flex;font-size:14px;justify-content:center}.c-evaluateCountdown .countdown span{line-height:18px}.c-evaluateCountdown .countdown svg{color:#969696;font-size:16px;margin-left:8px}.c-evaluateCountdown .countdown.countdown-red{color:#ff1818}.c-evaluateCountdown .answered-wrap span{color:#2d7aff}.c-evaluate-page{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.c-evaluate-page .evaluate-container{border:1px solid #e0e0e0;border-radius:15px;padding:45px 32px;text-align:center;width:620px}.c-evaluate-page .evaluate-container .evaluate-name{color:#212121;font-size:20px;line-height:28px;margin-bottom:10px;max-height:88px;overflow-y:auto;word-break:break-all}.c-evaluate-page .evaluate-container .evaluate-explain{background:#f2f2f4;border-radius:8px;margin-bottom:24px;overflow:hidden;padding:12px 22px 12px 30px;text-align:left}.c-evaluate-page .evaluate-container .evaluate-explain>div{max-height:206px;overflow-y:auto;padding-right:8px;word-break:break-all}.c-evaluate-page .evaluate-container .evaluate-score{display:flex;margin-bottom:24px}.c-evaluate-page .evaluate-container .evaluate-score li+li{border-left:1px solid hsla(0,0%,84%,.6)}.c-evaluate-page .evaluate-container .evaluate-score li{flex:1}.c-evaluate-page .evaluate-container .evaluate-score li div{color:#000;font-size:36px;line-height:50px}.c-evaluate-page .evaluate-container .evaluate-score li span{color:rgba(0,0,0,.6);font-size:14px;line-height:20px}.c-evaluate-page .evaluate-container .evaluate-time-range{color:#000;font-size:14px;line-height:20px;margin-bottom:20px}.c-evaluate-page .evaluate-container .evaluate-btn{border-radius:8px;color:#fff;font-size:18px;height:unset;padding:16px 0;text-align:center;width:380px}.c-totalScore-warp{background:#f2f2f4;border-radius:6px;color:#666;font-size:14px;font-weight:400;margin-bottom:16px;padding:16px}.c-totalScore-warp div+div{margin-top:4px}.c-totalScore-warp span{color:#090909;font-weight:500}.c-totalScore-warp .score-result{color:#2d7aff}.c-sign-wrap .sigan-content-wrap{display:flex;flex-wrap:wrap}.c-sign-wrap .sigan-content-wrap .sign-item{border:1px solid #d5d5d5;border-radius:4px;box-sizing:border-box;height:96px;margin-right:16px;overflow:hidden;position:relative;width:200px}.c-sign-wrap .sigan-content-wrap .sign-item>img{height:100%;width:100%}.c-sign-wrap .sigan-content-wrap .sign-item:hover>div{display:flex}.c-sign-wrap .sigan-content-wrap .sign-item>div{align-items:center;background:rgba(0,0,0,.8);border-radius:4px;bottom:0;display:none;justify-content:center;left:0;position:absolute;right:0;top:0}.c-sign-wrap .sigan-content-wrap .sign-item>div .n-icon{color:#fff;cursor:pointer;font-size:18px}.c-sign-wrap .sigan-content-wrap .sign-item>div .n-icon+.n-icon{margin-left:20px}.c-sign-wrap .sigan-content-wrap .add-sign-wrap{align-items:center;background:#fafafa;border:1px dashed #d5d5d5;border-radius:4px;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;height:96px;justify-content:center;width:200px}.c-sign-wrap .sigan-content-wrap .add-sign-wrap .svg-icon{color:#000;font-size:32px}.c-sign-wrap .sigan-content-wrap .add-sign-wrap span,.sign-com-wrap>span{color:#585858}.sign-com-wrap .sign-canvas{border:1px solid hsla(0,0%,84%,.6);border-radius:4px;margin-top:16px}.c-scale li,.c-scale ul{list-style:none;margin:0;padding:0}.c-scale .n-input{text-align:left;width:100%}.c-scale .n-form-item{--n-label-height:unset!important}.c-scale .c-scle-form-item>.n-form-item-blank{display:block}.no-data-tip{align-items:center;color:#333;display:flex;flex-direction:column;font-size:22px;height:100%;justify-content:center;width:100%}.no-data-tip>img{max-width:70%;width:260px}.no-data-tip>p{color:rgba(0,0,0,.8);font-size:16px;margin-bottom:0;margin-top:12px}.no-data-tip>span{color:rgba(0,0,0,.4);font-size:14px;margin-top:6px}.c-scale-address{max-width:500px}.c-scale-address .field-row{display:flex;overflow:hidden;width:100%}.c-scale-address .field-row .n-select{flex:1;padding:0 5px 5px 0;width:100%}.c-scale-address .field-row .n-select:last-child{padding-right:0}.c-scale-collection,.c-scale-collection .img-card{width:100%}.c-scale-collection.scale-collection-title{text-align:center}.c-scale-collection.scale-collection-title h1{font-weight:500}.c-scale-collection.prompt-message{background-color:#fff;border-radius:4px;box-shadow:0 5px 13px rgba(0,0,0,.14);color:#666;padding:10px;position:relative}.c-scale-collection.prompt-message.is-weak{color:#999}.c-scale-collection.prompt-message.is-strong{color:#ff1818;padding:8px 8px 8px 35px}.c-scale-collection.prompt-message .prompt-icon{font-size:18px;left:8px;position:absolute;top:8px}.c-scale-collection.prompt-message .prompt-message-content{font-size:14px;line-height:16px;word-break:break-all}.c-time-range{align-items:center;display:flex}.c-map-container{cursor:pointer;width:100%}.c-map-container .n-input.map-input .n-input__prefix{transform:rotate(180deg)}.c-map-container .n-input.map-input .n-input__prefix .n-icon{color:rgba(0,0,0,.65)}.c-map-container .n-input.map-input.n-input--disabled .n-input__input-el{background-color:#fff;color:rgba(0,0,0,.65);cursor:pointer}.c-scale-map-modal .n-card__content{overflow:hidden}.c-scale-upload{width:100%}.c-scale-upload .n-upload-file-list{display:flex}.c-scale-upload .n-upload-file-list .n-upload-file .n-upload-file-info .n-upload-file-info__action.n-upload-file-info__action--image-card-type{background:rgba(0,0,0,.5);box-sizing:border-box}.c-scale-upload .n-upload-file-list .n-upload-file .n-upload-file-info .n-upload-file-info__action.n-upload-file-info__action--image-card-type span.n-button__icon{color:#fff}.c-scale-upload .n-upload-file-list .n-upload-trigger.n-upload-trigger--image-card{background-color:#fafafa;border-color:#d5d5d5;height:184px;width:184px}.c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type{background-color:#fafafa;border-color:#d5d5d5;height:184px;padding:8px;width:184px}.c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type .n-image{height:100%}.c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type img{object-fit:cover!important}.c-scale-upload .upload-img-wrap{align-items:center;display:flex;flex-direction:column}.c-scale-upload .dragger-upload-text{align-items:center;display:flex}.c-scale-upload.scale-upload-file .n-upload-dragger{padding:16px 0}.c-scale-upload.scale-upload-file .n-upload{--n-item-disabled-opacity:1!important;opacity:1!important}.c-scale-upload.scale-upload-file .dragger-upload-text{color:rgba(0,0,0,.65)}.c-scale-upload.scale-upload-file .n-upload-file-list{display:flex;flex-direction:column;width:100%}.c-scale-upload.scale-upload-file .n-upload-file-list .n-upload-file{width:100%}.c-scale-upload.scale-upload-file .n-upload-trigger{background:#fafafa;border-color:#d5d5d5;width:100%}.text-over-tooltip-components{display:inline-block;max-width:98%}.text-over-tooltip-components .ellipsis{color:#35393c;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-over-tooltip-components .ellipsis i{font-style:normal;white-space:nowrap;word-break:keep-all}.text-over-tooltip-components .fs20{color:green;font-size:20px;font-weight:600;line-height:22px}.text-over-tooltip-components .fs12{color:orange;font-size:12px;font-weight:400;line-height:14px}.c-scale-modal-container.n-dialog{display:flex;flex-direction:column;height:60vh}.c-scale-modal-container.n-dialog.n-modal{min-width:560px;padding:0;width:50vw}.c-scale-modal-container.n-dialog .n-dialog__title{background:#fff;border-bottom:1px solid #e8e8e8;border-radius:8px 8px 0 0;box-sizing:border-box;height:52px;line-height:52px;padding:14px 16px}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content{align-items:center;color:#000;display:flex;font-size:16px;height:100%;justify-content:space-between;overflow:hidden;width:100%}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .modal-title-drag{flex:1}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .svg-wrap{right:16px}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .svg-wrap svg{cursor:pointer;font-size:14px}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .svg-wrap svg+svg{margin-left:16px}.c-scale-modal-container.n-dialog .n-dialog__content{height:100%;margin:0;overflow:hidden;padding:16px}.c-scale-modal-container.n-dialog .n-dialog__action{background:transparent;border-radius:0 0 8px 8px;border-top:1px solid #e8e8e8;box-sizing:border-box;height:52px;padding:10px 16px;text-align:right}
@@ -299,7 +299,6 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
299
299
  data: (import("naive-ui/es/tree/src/interface").TreeOptionBase & {
300
300
  [k: string]: unknown;
301
301
  } & import("../../../es/shared/types").AnyObject)[];
302
- multiple: boolean;
303
302
  defaultList: ((string | number) | {
304
303
  key: string | number;
305
304
  name: string;
@@ -317,6 +316,7 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
317
316
  };
318
317
  showCount: boolean;
319
318
  showClear: boolean;
319
+ multiple: boolean;
320
320
  queryLoadChildData: (node: import("naive-ui").TreeOption) => Promise<void>;
321
321
  queryTreeSearch: (keyWork: string) => Promise<import("../../../es/shared/types").AnyObject[]>;
322
322
  }>>;
@@ -267,7 +267,6 @@ declare const _default: import("vue").DefineComponent<{
267
267
  onCheck?: ((...args: any[]) => any) | undefined;
268
268
  }, {
269
269
  data: ITreeOption[];
270
- multiple: boolean;
271
270
  defaultList: (IKey | ITag)[];
272
271
  searchPlaceholder: string;
273
272
  searchButtonText: string;
@@ -275,6 +274,7 @@ declare const _default: import("vue").DefineComponent<{
275
274
  wordbookChild: IWordBookChild<ITreeOption>;
276
275
  showCount: boolean;
277
276
  showClear: boolean;
277
+ multiple: boolean;
278
278
  queryLoadChildData: (node: TreeOption) => Promise<void>;
279
279
  queryTreeSearch: (keyWork: string) => Promise<Array<AnyObject>>;
280
280
  }>;
@@ -1984,7 +1984,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
1984
1984
  onScroll?: ((...args: any[]) => any) | undefined;
1985
1985
  onAnnotationChange?: ((...args: any[]) => any) | undefined;
1986
1986
  }>>;
1987
- emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
1987
+ emit: (event: "formChange" | "scroll" | "annotationChange", ...args: any[]) => void;
1988
1988
  nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
1989
1989
  formRenderRef: import("vue").Ref<HTMLElement | undefined>;
1990
1990
  formHeight: import("vue").ComputedRef<string>;
@@ -2140,32 +2140,32 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2140
2140
  data: any;
2141
2141
  loading: boolean;
2142
2142
  required: boolean;
2143
- hidden: boolean;
2144
- visible: boolean;
2145
- content: any;
2146
- reset: (options?: import("@formily/core").IFieldResetOptions | undefined) => Promise<void>;
2147
- active: boolean;
2148
- disabled: boolean;
2149
- display: import("@formily/core").FieldDisplayTypes;
2150
2143
  value: string;
2151
2144
  readonly index: string | number;
2145
+ disabled: boolean;
2152
2146
  onFocus: (...args: any[]) => Promise<void>;
2153
2147
  onBlur: (...args: any[]) => Promise<void>;
2154
2148
  onInput: (...args: any[]) => Promise<void>;
2149
+ reset: (options?: import("@formily/core").IFieldResetOptions | undefined) => Promise<void>;
2150
+ visible: boolean;
2155
2151
  submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
2156
2152
  validator: import("@formily/core").FieldValidator;
2157
2153
  pattern: import("@formily/core").FieldPatternTypes;
2158
2154
  title: string;
2159
2155
  form: import("@formily/core").Form<any>;
2156
+ content: any;
2160
2157
  componentProps: Record<string, any>;
2161
2158
  decoratorProps: Record<string, any>;
2159
+ display: import("@formily/core").FieldDisplayTypes;
2162
2160
  description: string;
2163
2161
  readOnly: boolean;
2164
2162
  editable: boolean;
2163
+ hidden: boolean;
2165
2164
  component: import("@formily/core").FieldComponent<any, any>;
2166
2165
  decorator: import("@formily/core").FieldDecorator<any, any>;
2167
2166
  validating: boolean;
2168
2167
  submitting: boolean;
2168
+ active: boolean;
2169
2169
  visited: boolean;
2170
2170
  selfModified: boolean;
2171
2171
  modified: boolean;
@@ -2252,7 +2252,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2252
2252
  };
2253
2253
  readonly disabled: BooleanConstructor;
2254
2254
  readonly displayDirective: {
2255
- readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
2255
+ readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
2256
2256
  readonly default: "if";
2257
2257
  };
2258
2258
  readonly closable: {
@@ -2277,7 +2277,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2277
2277
  };
2278
2278
  readonly disabled: BooleanConstructor;
2279
2279
  readonly displayDirective: {
2280
- readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
2280
+ readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
2281
2281
  readonly default: "if";
2282
2282
  };
2283
2283
  readonly closable: {
@@ -2291,10 +2291,10 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2291
2291
  }>>, {
2292
2292
  readonly disabled: boolean;
2293
2293
  readonly closable: boolean | undefined;
2294
- readonly displayDirective: "show" | "if" | "show:lazy";
2294
+ readonly displayDirective: "if" | "show" | "show:lazy";
2295
2295
  }>;
2296
2296
  NTabs: any;
2297
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2297
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "scroll" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2298
2298
  fieldList: {
2299
2299
  type: import("vue").PropType<import("..").FieldItem[]>;
2300
2300
  };
@@ -1986,7 +1986,7 @@ declare const _default: import("vue").DefineComponent<{
1986
1986
  onScroll?: ((...args: any[]) => any) | undefined;
1987
1987
  onAnnotationChange?: ((...args: any[]) => any) | undefined;
1988
1988
  }>>;
1989
- emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
1989
+ emit: (event: "formChange" | "scroll" | "annotationChange", ...args: any[]) => void;
1990
1990
  nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
1991
1991
  formRenderRef: import("vue").Ref<HTMLElement | undefined>;
1992
1992
  formHeight: import("vue").ComputedRef<string>;
@@ -2142,32 +2142,32 @@ declare const _default: import("vue").DefineComponent<{
2142
2142
  data: any;
2143
2143
  loading: boolean;
2144
2144
  required: boolean;
2145
- hidden: boolean;
2146
- visible: boolean;
2147
- content: any;
2148
- reset: (options?: import("../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
2149
- active: boolean;
2150
- disabled: boolean;
2151
- display: import("../../../../es/components/form-render").FieldDisplayTypes;
2152
2145
  value: string;
2153
2146
  readonly index: string | number;
2147
+ disabled: boolean;
2154
2148
  onFocus: (...args: any[]) => Promise<void>;
2155
2149
  onBlur: (...args: any[]) => Promise<void>;
2156
2150
  onInput: (...args: any[]) => Promise<void>;
2151
+ reset: (options?: import("../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
2152
+ visible: boolean;
2157
2153
  submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
2158
2154
  validator: import("../../../../es/components/form-render").FieldValidator;
2159
2155
  pattern: import("../../../../es/components/form-render").FieldPatternTypes;
2160
2156
  title: string;
2161
2157
  form: import("../../../../es/components/form-render").Form<any>;
2158
+ content: any;
2162
2159
  componentProps: Record<string, any>;
2163
2160
  decoratorProps: Record<string, any>;
2161
+ display: import("../../../../es/components/form-render").FieldDisplayTypes;
2164
2162
  description: string;
2165
2163
  readOnly: boolean;
2166
2164
  editable: boolean;
2165
+ hidden: boolean;
2167
2166
  component: import("../../../../es/components/form-render").FieldComponent<any, any>;
2168
2167
  decorator: import("../../../../es/components/form-render").FieldDecorator<any, any>;
2169
2168
  validating: boolean;
2170
2169
  submitting: boolean;
2170
+ active: boolean;
2171
2171
  visited: boolean;
2172
2172
  selfModified: boolean;
2173
2173
  modified: boolean;
@@ -2254,7 +2254,7 @@ declare const _default: import("vue").DefineComponent<{
2254
2254
  };
2255
2255
  readonly disabled: BooleanConstructor;
2256
2256
  readonly displayDirective: {
2257
- readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
2257
+ readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
2258
2258
  readonly default: "if";
2259
2259
  };
2260
2260
  readonly closable: {
@@ -2279,7 +2279,7 @@ declare const _default: import("vue").DefineComponent<{
2279
2279
  };
2280
2280
  readonly disabled: BooleanConstructor;
2281
2281
  readonly displayDirective: {
2282
- readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
2282
+ readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
2283
2283
  readonly default: "if";
2284
2284
  };
2285
2285
  readonly closable: {
@@ -2293,10 +2293,10 @@ declare const _default: import("vue").DefineComponent<{
2293
2293
  }>>, {
2294
2294
  readonly disabled: boolean;
2295
2295
  readonly closable: boolean | undefined;
2296
- readonly displayDirective: "show" | "if" | "show:lazy";
2296
+ readonly displayDirective: "if" | "show" | "show:lazy";
2297
2297
  }>;
2298
2298
  NTabs: any;
2299
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2299
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "scroll" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2300
2300
  fieldList: {
2301
2301
  type: import("vue").PropType<FieldItem[]>;
2302
2302
  };
@@ -1 +1 @@
1
- import{defineComponent as e,computed as t,toRefs as l,ref as n,watch as s,openBlock as o,createElementBlock as i,normalizeStyle as p,unref as r,normalizeClass as a,createElementVNode as d,Fragment as u,renderList as c,createCommentVNode as m,withDirectives as f,renderSlot as h,toDisplayString as v,vShow as g,createBlock as I,withCtx as x,createVNode as y,createTextVNode as B}from"vue";import{NTooltip as w,NEmpty as T}from"naive-ui";import{useTheme as S}from"../../../shared/mixins/useTheme.js";import"@vueuse/core";import{defaultCssVars as _}from"./constants/index.js";import b from"../../../_virtual/plugin-vue_export-helper.js";const k={class:"stepBox"},C=["title"],$=d("ul",{class:"nodeTipContent"},[d("li",null,[d("p",null,[d("span",{style:{"margin-right":"10px"}},"(1)"),B(" 2022-07-30 14:15:12 ")]),d("p",null,"周老师"),d("p",null,"步骤条提示"),d("p",null,"咱这是测试案例,请使用插槽:#nodeTipBox 自定义")]),d("li",null,[d("p",null,[d("span",{style:{"margin-right":"10px"}},"(2)"),B(" 2022-07-30 14:15:12 ")]),d("p",null,"周老师"),d("p",null,"步骤条提示"),d("p",null,"咱这是个测试案例,请使用插槽:#nodeTipBox 自定义")])],-1),L=["title"],R=["title"],j=["title"],M={key:0,style:{height:"48px"}},N={key:1},D={key:1};var W=b(e({__name:"StepsWheel",props:{stepInfo:{type:Object,default:()=>({list:[],cols:6})},currentStep:{type:Number,default:1},toolTipShow:{type:Boolean,default:!0},lastNodeRender:{type:Boolean,default:!1},noDataMsg:{type:String,default:"暂无节点数据"},placement:{type:String,default:"center"}},setup(e){const B=e,b=S(_,"StepsWheel"),W=t((()=>Math.ceil(P.value.length/B.stepInfo.cols))),A=t((()=>B.lastNodeRender)),{noDataMsg:E}=l(B),O=n(null),F=t((()=>{var e;let t=72;if(null==(e=null==O?void 0:O.value)?void 0:e.length){let e=O.value[0],l=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle;t=isNaN(parseInt(l["min-width"]))?72:parseInt(l["min-width"])}return`${20+B.stepInfo.cols*t}px`})),P=n([]),q=n([]),z=e=>{if(q.value.length){if(e.rowIndex===q.value.length)return!0;if(e.rowIndex<q.value.length)return q.value[e.rowIndex].some((e=>null==e?void 0:e.title))}return!1},G=e=>{const{list:t=[]}=B.stepInfo;return e.rowIndex%2==0&&"frist"==e.nodeType&&e.nodeIndex!==t.length},H=e=>{const{list:t=[]}=B.stepInfo;return e.rowIndex%2!=0&&"last"==e.nodeType&&e.nodeIndex!==t.length},J=(e,t)=>e.rowIndex%2==0?B.currentStep>=t+(B.stepInfo.cols-2*e.sort):B.currentStep>=t+2,K=(e,t)=>{let l=e.length,n=l%t==0?l/t:Math.floor(l/t+1),s=[];for(let l=0;l<n;l++){let n=e.slice(l*t,l*t+t);s.push(n)}return s},Q=e=>{const{cols:t}=B.stepInfo;let l=K(P.value,t),n=l[l.length-1].filter((e=>e));return W.value%2==0?e!=n[n.length-1].nodeIndex-(t-2*n[n.length-1].sort):e!=n[n.length-1].nodeIndex-1},U=e=>{const{cols:t}=B.stepInfo;let l=K(P.value,t),n=l[l.length-1].filter((e=>e));return W.value%2==0?A.value&&e==n[0].nodeIndex-(t-2*n[0].sort):A.value&&e==n[n.length-1].nodeIndex-1},V=(e,t)=>{const{cols:l}=B.stepInfo;let n=K(P.value,l),s=n[n.length-1].filter((e=>e));return W.value%2==0?"circle"===t?A.value&&e==s[0].nodeIndex-(l-2*s[0].sort)-l:A.value&&e==s[0].nodeIndex-(l-2*s[0].sort):"circle"===t?A.value&&e==s[s.length-1].nodeIndex-1-l:A.value&&e==s[s.length-1].nodeIndex-2};return s((()=>B.stepInfo),(e=>{var t;(null==(t=null==e?void 0:e.list)?void 0:t.length)&&((e,t)=>{let l=e.length+1,n=Math.ceil(e.length/t),s=!0,o=[];for(var i=0;i<n;i++)o[i]=new Array(t),o[i].fill(null);let p=0,r=0;for(let n=1;n<l;n++)o[p][r]=Object.assign(e[n-1],{nodeIndex:n,rowIndex:p+1}),s?n%t!=0?r++:(s=!s,p++):n%t!=0?r--:(s=!s,p++);let a=[];o.map((e=>{e.map(((e,t)=>e&&(e.sort=t))),e[0]&&(e[0].nodeType="frist"),e[e.length-1]&&(e[e.length-1].nodeType="last"),a=[...a,...e]})),P.value=a,q.value=o})(e.list,e.cols)}),{immediate:!0,deep:!0}),(t,l)=>(o(),i("div",{class:"step-wheel-box",style:p({minWidth:r(F),...r(b)})},[P.value.length?(o(),i("div",{key:0,class:a(["stepOut",{placementLeft:"left"===e.placement,placementRight:"right"===e.placement}])},[d("ul",k,[(o(!0),i(u,null,c(P.value,((l,n)=>(o(),i("li",{ref_for:!0,ref_key:"stepItemRef",ref:O,key:(null==l?void 0:l.stepId)||n,class:a(["stepItem",{[`stepItem_${n+1}`]:!0,[`${null==l?void 0:l.stepId}`]:!!(null==l?void 0:l.stepId)}])},[l?(o(),i(u,{key:0},[m(" 步骤头部信息 "),f(d("div",{class:a(["stepTopBox",{finished:U(n),stepTopBox_right:"right"===e.placement,stepTopBox_left:"left"===e.placement}])},[h(t.$slots,"stepTopBox",{stepItem:l},(()=>[d("span",{title:l.title},v(l.title),9,C)]))],2),[[g,l.title]]),m(" 步骤条的节点,此处为圆圈 "),e.toolTipShow?(o(),I(r(w),{key:0,placement:"top","show-arrow":!0,trigger:"hover",style:p({opacity:"0.88"})},{trigger:x((()=>[d("div",{class:a(["icon",{active:e.currentStep>=l.nodeIndex,finished:U(n)}])},null,2)])),default:x((()=>[h(t.$slots,"nodeTipBox",{stepItem:l,stepId:l.stepId},(()=>[$]))])),_:2},1032,["style"])):(o(),i("div",{key:1,class:a(["icon",{active:e.currentStep>=l.nodeIndex,finished:U(n)}])},null,2)),m(" 步骤条连接线,动态显示 "),"last"!==l.nodeType?f((o(),i("div",{key:2,class:a(["line",{lineActive:J(l,n),finished:V(n)}])},null,2)),[[g,Q(n)]]):m("v-if",!0),m(" 步骤条弯曲连线,动态渲染 "),G(l)||H(l)?(o(),i("div",{key:3,class:a({lineCircleActive:e.currentStep>l.nodeIndex,lineCircleFinished:V(n,"circle"),lineCircleRight:H(l),lineCircleLeft:G(l),lineCirclePlacementRight:H(l)&&"right"===e.placement,lineCirclePlacementLeft:G(l)&&"left"===e.placement})},null,2)):m("v-if",!0),m(" 步骤底部信息 "),d("div",{class:a(["stepBottomBox",{stepBottomBox_right:"right"===e.placement,stepBottomBox_left:"left"===e.placement}])},[h(t.$slots,"stepBottomBox",{stepItem:l},(()=>[m(" 步骤名称 "),f(d("p",{class:a(["stepLabel",{labelFinsh:U(n),stepLabel_right:"right"===e.placement,stepLabel_left:"left"===e.placement}]),title:l.label},v(l.label),11,L),[[g,l.label]]),d("div",{class:a({stepBottomCustomBox:!0,alignItemsEnd:"left"===e.placement,alignItemsStart:"right"===e.placement})},[h(t.$slots,"stepBottomCustomBox",{stepItem:l},(()=>[d("div",{class:a({stepBottomDefaultBox:!0,alignItemsEnd:"left"===e.placement,alignItemsStart:"right"===e.placement}),style:{width:"100%",display:"flex",flexDirection:"column"}},[f(d("p",{class:"stepExtra",title:l.person},v(l.person),9,R),[[g,l.person]]),m(" 步骤时间 "),f(d("p",{class:"statusTime",title:l.statusTime},v(l.statusTime),9,j),[[g,l.statusTime]])],2)]))],2)])),z(l)?(o(),i("div",M)):m("v-if",!0)],2)],64)):(o(),i("div",N,[m("null元素占位")]))],2)))),128))])],2)):(o(),i("div",D,[y(r(T),{description:r(E)},null,8,["description"])]))],4))}}),[["__file","StepsWheel.vue"]]);export{W as default};
1
+ import{defineComponent as e,computed as t,toRefs as l,ref as n,watch as s,openBlock as o,createElementBlock as i,normalizeStyle as p,unref as r,normalizeClass as a,createElementVNode as d,Fragment as u,renderList as c,createCommentVNode as m,withDirectives as h,renderSlot as f,toDisplayString as v,vShow as g,createBlock as I,withCtx as x,createVNode as y,createTextVNode as B}from"vue";import{NTooltip as w,NEmpty as T}from"naive-ui";import{useTheme as S}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"lodash-es";import{defaultCssVars as _}from"./constants/index.js";import k from"../../../_virtual/plugin-vue_export-helper.js";const b={class:"stepBox"},C=["title"],$=d("ul",{class:"nodeTipContent"},[d("li",null,[d("p",null,[d("span",{style:{"margin-right":"10px"}},"(1)"),B(" 2022-07-30 14:15:12 ")]),d("p",null,"周老师"),d("p",null,"步骤条提示"),d("p",null,"咱这是测试案例,请使用插槽:#nodeTipBox 自定义")]),d("li",null,[d("p",null,[d("span",{style:{"margin-right":"10px"}},"(2)"),B(" 2022-07-30 14:15:12 ")]),d("p",null,"周老师"),d("p",null,"步骤条提示"),d("p",null,"咱这是个测试案例,请使用插槽:#nodeTipBox 自定义")])],-1),L=["title"],R=["title"],j=["title"],M={key:0,style:{height:"48px"}},N={key:1},D={key:1};var W=k(e({__name:"StepsWheel",props:{stepInfo:{type:Object,default:()=>({list:[],cols:6})},currentStep:{type:Number,default:1},toolTipShow:{type:Boolean,default:!0},lastNodeRender:{type:Boolean,default:!1},noDataMsg:{type:String,default:"暂无节点数据"},placement:{type:String,default:"center"}},setup(e){const B=e,k=S(_,"StepsWheel"),W=t((()=>Math.ceil(P.value.length/B.stepInfo.cols))),A=t((()=>B.lastNodeRender)),{noDataMsg:E}=l(B),O=n(null),F=t((()=>{var e;let t=72;if(null==(e=null==O?void 0:O.value)?void 0:e.length){let e=O.value[0],l=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle;t=isNaN(parseInt(l["min-width"]))?72:parseInt(l["min-width"])}return`${20+B.stepInfo.cols*t}px`})),P=n([]),q=n([]),z=e=>{if(q.value.length){if(e.rowIndex===q.value.length)return!0;if(e.rowIndex<q.value.length)return q.value[e.rowIndex].some((e=>null==e?void 0:e.title))}return!1},G=e=>{const{list:t=[]}=B.stepInfo;return e.rowIndex%2==0&&"frist"==e.nodeType&&e.nodeIndex!==t.length},H=e=>{const{list:t=[]}=B.stepInfo;return e.rowIndex%2!=0&&"last"==e.nodeType&&e.nodeIndex!==t.length},J=(e,t)=>e.rowIndex%2==0?B.currentStep>=t+(B.stepInfo.cols-2*e.sort):B.currentStep>=t+2,K=(e,t)=>{let l=e.length,n=l%t==0?l/t:Math.floor(l/t+1),s=[];for(let l=0;l<n;l++){let n=e.slice(l*t,l*t+t);s.push(n)}return s},Q=e=>{const{cols:t}=B.stepInfo;let l=K(P.value,t),n=l[l.length-1].filter((e=>e));return W.value%2==0?e!=n[n.length-1].nodeIndex-(t-2*n[n.length-1].sort):e!=n[n.length-1].nodeIndex-1},U=e=>{const{cols:t}=B.stepInfo;let l=K(P.value,t),n=l[l.length-1].filter((e=>e));return W.value%2==0?A.value&&e==n[0].nodeIndex-(t-2*n[0].sort):A.value&&e==n[n.length-1].nodeIndex-1},V=(e,t)=>{const{cols:l}=B.stepInfo;let n=K(P.value,l),s=n[n.length-1].filter((e=>e));return W.value%2==0?"circle"===t?A.value&&e==s[0].nodeIndex-(l-2*s[0].sort)-l:A.value&&e==s[0].nodeIndex-(l-2*s[0].sort):"circle"===t?A.value&&e==s[s.length-1].nodeIndex-1-l:A.value&&e==s[s.length-1].nodeIndex-2};return s((()=>B.stepInfo),(e=>{var t;(null==(t=null==e?void 0:e.list)?void 0:t.length)&&((e,t)=>{let l=e.length+1,n=Math.ceil(e.length/t),s=!0,o=[];for(var i=0;i<n;i++)o[i]=new Array(t),o[i].fill(null);let p=0,r=0;for(let n=1;n<l;n++)o[p][r]=Object.assign(e[n-1],{nodeIndex:n,rowIndex:p+1}),s?n%t!=0?r++:(s=!s,p++):n%t!=0?r--:(s=!s,p++);let a=[];o.map((e=>{e.map(((e,t)=>e&&(e.sort=t))),e[0]&&(e[0].nodeType="frist"),e[e.length-1]&&(e[e.length-1].nodeType="last"),a=[...a,...e]})),P.value=a,q.value=o})(e.list,e.cols)}),{immediate:!0,deep:!0}),(t,l)=>(o(),i("div",{class:"step-wheel-box",style:p({minWidth:r(F),...r(k)})},[P.value.length?(o(),i("div",{key:0,class:a(["stepOut",{placementLeft:"left"===e.placement,placementRight:"right"===e.placement}])},[d("ul",b,[(o(!0),i(u,null,c(P.value,((l,n)=>(o(),i("li",{ref_for:!0,ref_key:"stepItemRef",ref:O,key:(null==l?void 0:l.stepId)||n,class:a(["stepItem",{[`stepItem_${n+1}`]:!0,[`${null==l?void 0:l.stepId}`]:!!(null==l?void 0:l.stepId)}])},[l?(o(),i(u,{key:0},[m(" 步骤头部信息 "),h(d("div",{class:a(["stepTopBox",{finished:U(n),stepTopBox_right:"right"===e.placement,stepTopBox_left:"left"===e.placement}])},[f(t.$slots,"stepTopBox",{stepItem:l},(()=>[d("span",{title:l.title},v(l.title),9,C)]))],2),[[g,l.title]]),m(" 步骤条的节点,此处为圆圈 "),e.toolTipShow?(o(),I(r(w),{key:0,placement:"top","show-arrow":!0,trigger:"hover",style:p({opacity:"0.88"})},{trigger:x((()=>[d("div",{class:a(["icon",{active:e.currentStep>=l.nodeIndex,finished:U(n)}])},null,2)])),default:x((()=>[f(t.$slots,"nodeTipBox",{stepItem:l,stepId:l.stepId},(()=>[$]))])),_:2},1032,["style"])):(o(),i("div",{key:1,class:a(["icon",{active:e.currentStep>=l.nodeIndex,finished:U(n)}])},null,2)),m(" 步骤条连接线,动态显示 "),"last"!==l.nodeType?h((o(),i("div",{key:2,class:a(["line",{lineActive:J(l,n),finished:V(n)}])},null,2)),[[g,Q(n)]]):m("v-if",!0),m(" 步骤条弯曲连线,动态渲染 "),G(l)||H(l)?(o(),i("div",{key:3,class:a({lineCircleActive:e.currentStep>l.nodeIndex,lineCircleFinished:V(n,"circle"),lineCircleRight:H(l),lineCircleLeft:G(l),lineCirclePlacementRight:H(l)&&"right"===e.placement,lineCirclePlacementLeft:G(l)&&"left"===e.placement})},null,2)):m("v-if",!0),m(" 步骤底部信息 "),d("div",{class:a(["stepBottomBox",{stepBottomBox_right:"right"===e.placement,stepBottomBox_left:"left"===e.placement}])},[f(t.$slots,"stepBottomBox",{stepItem:l},(()=>[m(" 步骤名称 "),h(d("p",{class:a(["stepLabel",{labelFinsh:U(n),stepLabel_right:"right"===e.placement,stepLabel_left:"left"===e.placement}]),title:l.label},v(l.label),11,L),[[g,l.label]]),d("div",{class:a({stepBottomCustomBox:!0,alignItemsEnd:"left"===e.placement,alignItemsStart:"right"===e.placement})},[f(t.$slots,"stepBottomCustomBox",{stepItem:l},(()=>[d("div",{class:a({stepBottomDefaultBox:!0,alignItemsEnd:"left"===e.placement,alignItemsStart:"right"===e.placement}),style:{width:"100%",display:"flex",flexDirection:"column"}},[h(d("p",{class:"stepExtra",title:l.person},v(l.person),9,R),[[g,l.person]]),m(" 步骤时间 "),h(d("p",{class:"statusTime",title:l.statusTime},v(l.statusTime),9,j),[[g,l.statusTime]])],2)]))],2)])),z(l)?(o(),i("div",M)):m("v-if",!0)],2)],64)):(o(),i("div",N,[m("null元素占位")]))],2)))),128))])],2)):(o(),i("div",D,[y(r(T),{description:r(E)},null,8,["description"])]))],4))}}),[["__file","StepsWheel.vue"]]);export{W as default};
@@ -1 +1 @@
1
- const c={"--c-color-primary":"#2563f4","--c-color-finish":"#5dc055"};export{c as defaultCssVars};
1
+ const c={"--c-primary-color":"#2563f4","--c-success-color":"#5dc055"};export{c as defaultCssVars};
@@ -1 +1 @@
1
- .step-wheel-box{font-family:PingFangSC-Medium,PingFang SC;font-size:16px;font-weight:500;height:100%;overflow:hidden;width:100%}.step-wheel-box .stepOut{display:flex;justify-content:center}.step-wheel-box .stepOut .stepBox{display:flex;flex-wrap:wrap;list-style:none;width:100%}.step-wheel-box .stepOut .stepItem{font-family:SimSun;font-size:16px;min-width:73px;position:relative;text-align:center;top:48px;width:15%}.step-wheel-box .stepOut .stepItem .lineCircleRight{border-color:#fff;border-bottom:1px dashed rgba(3,2,2,.4);border-left:0 dashed rgba(3,2,2,.4)!important;border-radius:0 25px 25px 0;border-right:1px dashed rgba(3,2,2,.4);border-top:1px dashed rgba(3,2,2,.4);display:block;height:100%;left:55%;position:absolute;top:6px;width:30%}.step-wheel-box .stepOut .stepItem .lineCirclePlacementRight{width:100%}.step-wheel-box .stepOut .stepItem .lineCircleLeft{border-color:#fff;border-bottom:1px dashed rgba(3,2,2,.4);border-left:1px dashed rgba(3,2,2,.4);border-radius:25px 0 0 25px;border-right:0 dashed rgba(3,2,2,.4)!important;border-top:1px dashed rgba(3,2,2,.4);display:block;height:100%;left:15%;position:absolute;top:6px;width:30%}.step-wheel-box .stepOut .stepItem .lineCirclePlacementLeft{left:-55%;width:100%}.step-wheel-box .stepOut .stepItem .lineCircleActive{border-top:1px solid var(--c-color-primary)}.step-wheel-box .stepOut .stepItem .lineCircleFinished{border-top:1px solid var(--c-color-finish)}.step-wheel-box .stepOut .stepItem .icon{background:#969696;border-radius:50%;height:13px;margin:0 auto;position:relative;width:13px;z-index:888}.step-wheel-box .stepOut .stepItem .active{background-color:var(--c-color-primary)}.step-wheel-box .stepOut .stepItem .finished{background-color:var(--c-color-finish)!important;border-color:var(--c-color-finish)!important;color:#fff!important}.step-wheel-box .stepOut .stepItem .labelFinsh{color:var(--c-color-finish)!important}.step-wheel-box .stepOut .stepItem .line{border-bottom:1px dashed rgba(3,2,2,.4);left:55%;position:absolute;top:6px;width:90%;z-index:111}.step-wheel-box .stepOut .stepItem .lineActive{border-bottom:1px solid var(--c-color-primary)}.step-wheel-box .stepOut .stepItem .stepTopBox{background:rgba(110,153,255,.11);border-radius:4px;color:var(--c-color-primary);cursor:pointer;height:40px;left:50%;line-height:40px;max-width:70%;min-width:73px;overflow:hidden;padding:0 5px;position:absolute;text-overflow:ellipsis;top:-48px;transform:translateX(-50%);white-space:nowrap}.step-wheel-box .stepOut .stepItem .stepTopBox_right{transform:translateX(-10%)}.step-wheel-box .stepOut .stepItem .stepTopBox_left{transform:translateX(-90%)}.step-wheel-box .stepOut .stepItem .stepBottomBox{align-items:center;cursor:pointer;display:flex;flex-direction:column;min-width:73px;overflow:hidden;padding:8px 0;width:100%}.step-wheel-box .stepOut .stepItem .stepBottomBox .stepBottomCustomBox{align-items:center;display:flex;flex-direction:column;height:calc(100% - 27px);width:100%}.step-wheel-box .stepOut .stepItem .stepBottomBox .stepBottomCustomBox .stepBottomDefaultBox{align-items:center}.step-wheel-box .stepOut .stepItem .stepBottomBox .stepBottomCustomBox .alignItemsEnd{align-items:flex-end;text-align:right}.step-wheel-box .stepOut .stepItem .stepBottomBox .stepBottomCustomBox .alignItemsStart{align-items:flex-start;text-align:left}.step-wheel-box .stepOut .stepItem .stepBottomBox .alignItemsEnd{align-items:flex-end;text-align:right}.step-wheel-box .stepOut .stepItem .stepBottomBox .alignItemsStart{align-items:flex-start;text-align:left}.step-wheel-box .stepOut .stepItem .stepBottomBox_right{align-items:flex-start;left:45%;position:relative}.step-wheel-box .stepOut .stepItem .stepBottomBox_left{align-items:flex-end;left:-45%;position:relative}.step-wheel-box .stepOut .stepItem .stepLabel{color:#212121;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.step-wheel-box .stepOut .stepItem .stepLabel_right{text-align:left}.step-wheel-box .stepOut .stepItem .stepLabel_left{text-align:right}.step-wheel-box .stepOut .stepItem .stepExtra{border:1px solid #cacaca;border-radius:4px;display:inline-block;margin:0;max-width:90%;overflow:hidden;padding:0 4px;text-overflow:ellipsis;white-space:nowrap;width:auto}.step-wheel-box .stepOut .stepItem .statusTime{color:rgba(0,0,0,.6);font-size:14px;font-weight:400;margin:0;max-width:90%}.placementRight{left:-1%;position:relative}.placementLeft{left:10%;position:relative}.nodeTipContent{margin:0;max-height:200px;max-width:400px;overflow:auto;padding:0;text-align:center}.nodeTipContent li{list-style:none;margin-bottom:5px}.nodeTipContent li p{margin:0}
1
+ .step-wheel-box{font-family:PingFangSC-Medium,PingFang SC;font-size:16px;font-weight:500;height:100%;overflow:hidden;width:100%}.step-wheel-box .stepOut{display:flex;justify-content:center}.step-wheel-box .stepOut .stepBox{display:flex;flex-wrap:wrap;list-style:none;width:100%}.step-wheel-box .stepOut .stepItem{font-family:SimSun;font-size:16px;min-width:73px;position:relative;text-align:center;top:48px;width:15%}.step-wheel-box .stepOut .stepItem .lineCircleRight{border-color:#fff;border-bottom:1px dashed rgba(3,2,2,.4);border-left:0 dashed rgba(3,2,2,.4)!important;border-radius:0 25px 25px 0;border-right:1px dashed rgba(3,2,2,.4);border-top:1px dashed rgba(3,2,2,.4);display:block;height:100%;left:55%;position:absolute;top:6px;width:30%}.step-wheel-box .stepOut .stepItem .lineCirclePlacementRight{width:100%}.step-wheel-box .stepOut .stepItem .lineCircleLeft{border-color:#fff;border-bottom:1px dashed rgba(3,2,2,.4);border-left:1px dashed rgba(3,2,2,.4);border-radius:25px 0 0 25px;border-right:0 dashed rgba(3,2,2,.4)!important;border-top:1px dashed rgba(3,2,2,.4);display:block;height:100%;left:15%;position:absolute;top:6px;width:30%}.step-wheel-box .stepOut .stepItem .lineCirclePlacementLeft{left:-55%;width:100%}.step-wheel-box .stepOut .stepItem .lineCircleActive{border-top:1px solid var(--c-primary-color)}.step-wheel-box .stepOut .stepItem .lineCircleFinished{border-top:1px solid var(--c-success-color)}.step-wheel-box .stepOut .stepItem .icon{background:#969696;border-radius:50%;height:13px;margin:0 auto;position:relative;width:13px;z-index:888}.step-wheel-box .stepOut .stepItem .active{background-color:var(--c-primary-color)}.step-wheel-box .stepOut .stepItem .finished{background-color:var(--c-success-color)!important;border-color:var(--c-success-color)!important;color:#fff!important}.step-wheel-box .stepOut .stepItem .labelFinsh{color:var(--c-success-color)!important}.step-wheel-box .stepOut .stepItem .line{border-bottom:1px dashed rgba(3,2,2,.4);left:55%;position:absolute;top:6px;width:90%;z-index:111}.step-wheel-box .stepOut .stepItem .lineActive{border-bottom:1px solid var(--c-primary-color)}.step-wheel-box .stepOut .stepItem .stepTopBox{background:rgba(110,153,255,.11);border-radius:4px;color:var(--c-primary-color);cursor:pointer;height:40px;left:50%;line-height:40px;max-width:70%;min-width:73px;overflow:hidden;padding:0 5px;position:absolute;text-overflow:ellipsis;top:-48px;transform:translateX(-50%);white-space:nowrap}.step-wheel-box .stepOut .stepItem .stepTopBox_right{transform:translateX(-10%)}.step-wheel-box .stepOut .stepItem .stepTopBox_left{transform:translateX(-90%)}.step-wheel-box .stepOut .stepItem .stepBottomBox{align-items:center;cursor:pointer;display:flex;flex-direction:column;min-width:73px;overflow:hidden;padding:8px 0;width:100%}.step-wheel-box .stepOut .stepItem .stepBottomBox .stepBottomCustomBox{align-items:center;display:flex;flex-direction:column;height:calc(100% - 27px);width:100%}.step-wheel-box .stepOut .stepItem .stepBottomBox .stepBottomCustomBox .stepBottomDefaultBox{align-items:center}.step-wheel-box .stepOut .stepItem .stepBottomBox .stepBottomCustomBox .alignItemsEnd{align-items:flex-end;text-align:right}.step-wheel-box .stepOut .stepItem .stepBottomBox .stepBottomCustomBox .alignItemsStart{align-items:flex-start;text-align:left}.step-wheel-box .stepOut .stepItem .stepBottomBox .alignItemsEnd{align-items:flex-end;text-align:right}.step-wheel-box .stepOut .stepItem .stepBottomBox .alignItemsStart{align-items:flex-start;text-align:left}.step-wheel-box .stepOut .stepItem .stepBottomBox_right{align-items:flex-start;left:45%;position:relative}.step-wheel-box .stepOut .stepItem .stepBottomBox_left{align-items:flex-end;left:-45%;position:relative}.step-wheel-box .stepOut .stepItem .stepLabel{color:#212121;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.step-wheel-box .stepOut .stepItem .stepLabel_right{text-align:left}.step-wheel-box .stepOut .stepItem .stepLabel_left{text-align:right}.step-wheel-box .stepOut .stepItem .stepExtra{border:1px solid #cacaca;border-radius:4px;display:inline-block;margin:0;max-width:90%;overflow:hidden;padding:0 4px;text-overflow:ellipsis;white-space:nowrap;width:auto}.step-wheel-box .stepOut .stepItem .statusTime{color:rgba(0,0,0,.6);font-size:14px;font-weight:400;margin:0;max-width:90%}.placementRight{left:-1%;position:relative}.placementLeft{left:10%;position:relative}.nodeTipContent{margin:0;max-height:200px;max-width:400px;overflow:auto;padding:0;text-align:center}.nodeTipContent li{list-style:none;margin-bottom:5px}.nodeTipContent li p{margin:0}
@@ -1,2 +1 @@
1
1
  export * from './src/types';
2
- export * from './src/hooks/export';
@@ -1 +1 @@
1
- import"./src/hooks/useAdvanced.js";
1
+
@@ -98,7 +98,7 @@ declare const _default: import("vue").DefineComponent<{
98
98
  }>> & {
99
99
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
100
100
  }, {
101
- multiple: boolean;
102
101
  value: string | number | unknown[];
102
+ multiple: boolean;
103
103
  }>;
104
104
  export default _default;
@@ -178,8 +178,8 @@ export declare const WidgetCfgMaps: Map<string, {
178
178
  }>> & {
179
179
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
180
180
  }, {
181
- multiple: boolean;
182
181
  value: string | number | unknown[];
182
+ multiple: boolean;
183
183
  }>;
184
184
  props: {
185
185
  clearable?: undefined;
@@ -1 +1 @@
1
- import{WidgetTypeEnums as e}from"../../types/enums.js";import{DatePresetValEnums as l}from"./enums.js";import{NInputNumber as t,NInput as a,NDatePicker as o}from"naive-ui";import r from"./components/CheckboxGroup.vue.js";import p from"./components/Select.vue.js";import s from"moment";import{presetValToTimestamp as n}from"./helpers/presetValToTimestamp.js";const m=e=>null==e?null:e,u=new Map([[e.INPUT_NUMBER,{component:t,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&(console.log("点击keyup>>>>>",l),l())}}],handlerProps:(e,{title:l}={})=>({...e,placeholder:`输入${l}`}),setDefaultValue:m}],[e.INPUT,{component:a,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&l()}}],handlerProps:(e,{title:l}={})=>({...e,placeholder:`搜索${l}`}),setDefaultValue:m}],[e.SELECT,{component:p,props:{clearable:!0,options:[],filterable:!0,multiple:!1},eventsBySearch:[{name:"change",handler(e,l,t){const{multiple:a}=t;a&&l()}}],handlerProps(e,{valueList:l,multiple:t,title:a}={}){const o={...e,placeholder:`请选择${a}`};return Array.isArray(l)&&(o.options=l.map((({value:e,label:l})=>({value:e,label:l})))),t&&(o.multiple=!0),o},setDefaultValue:m}],[e.DATE,{component:o,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps:(e,{title:l}={})=>({...e,placeholder:`请选择${l}`}),setDefaultValue:(e,t)=>t&&t!==l.CUSTOM?n(t,"YYYY-MM-DD HH:mm:ss"):e}],[e.DATE_TIME,{component:o,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps:(e,{title:l}={})=>({...e,placeholder:`请选择${l}`}),setDefaultValue:(e,t)=>t&&t!==l.CUSTOM?n(t,"YYYY-MM-DD HH:mm:ss"):e}],[e.CHECKBOX_GROUP,{component:r,props:{},style:{"line-height":"32px"},handlerProps(e,{valueList:l,multiple:t}={}){const a={...e,multiple:t};return Array.isArray(l)&&(a.options=l.map((({value:e,label:l})=>({value:e,label:l})))),a},setDefaultValue:m}]]),i=(l,t)=>!l||t!==e.DATE&&t!==e.DATE_TIME?l:s(l).format("YYYY-MM-DD HH:mm:ss");export{u as WidgetCfgMaps,i as formatItemData};
1
+ import{WidgetTypeEnums as e}from"../../types/enums.js";import{DatePresetValEnums as l}from"./enums.js";import{NInputNumber as t,NInput as a,NDatePicker as r}from"naive-ui";import o from"./components/CheckboxGroup.vue.js";import p from"./components/Select.vue.js";import s from"moment";import{presetValToTimestamp as n}from"./helpers/presetValToTimestamp.js";const m=e=>null==e?null:e,u=new Map([[e.INPUT_NUMBER,{component:t,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&l()}}],handlerProps:(e,{title:l}={})=>({...e,placeholder:`输入${l}`}),setDefaultValue:m}],[e.INPUT,{component:a,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&l()}}],handlerProps:(e,{title:l}={})=>({...e,placeholder:`搜索${l}`}),setDefaultValue:m}],[e.SELECT,{component:p,props:{clearable:!0,options:[],filterable:!0,multiple:!1},eventsBySearch:[{name:"change",handler(e,l,t){const{multiple:a}=t;a&&l()}}],handlerProps(e,{valueList:l,multiple:t,title:a}={}){const r={...e,placeholder:`请选择${a}`};return Array.isArray(l)&&(r.options=l.map((({value:e,label:l})=>({value:e,label:l})))),t&&(r.multiple=!0),r},setDefaultValue:m}],[e.DATE,{component:r,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps:(e,{title:l}={})=>({...e,placeholder:`请选择${l}`}),setDefaultValue:(e,t)=>t&&t!==l.CUSTOM?n(t,"YYYY-MM-DD HH:mm:ss"):e}],[e.DATE_TIME,{component:r,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps:(e,{title:l}={})=>({...e,placeholder:`请选择${l}`}),setDefaultValue:(e,t)=>t&&t!==l.CUSTOM?n(t,"YYYY-MM-DD HH:mm:ss"):e}],[e.CHECKBOX_GROUP,{component:o,props:{},style:{"line-height":"32px"},handlerProps(e,{valueList:l,multiple:t}={}){const a={...e,multiple:t};return Array.isArray(l)&&(a.options=l.map((({value:e,label:l})=>({value:e,label:l})))),a},setDefaultValue:m}]]),i=(l,t)=>!l||t!==e.DATE&&t!==e.DATE_TIME?l:s(l).format("YYYY-MM-DD HH:mm:ss");export{u as WidgetCfgMaps,i as formatItemData};
@@ -1 +1 @@
1
- import{ref as e}from"vue";import r from"./useRenderWidget.js";const{initRenderWidgetCfg:t,getRenderSearchConObj:n}=r();function o(){const r=e({});return{filterApiConfig:r,handleGetConfigApi:async function(e,t,n={},o){try{o&&(r.value=o);const i=r.value[t]||null;if("function"==typeof i){const r=await i(e,n);return Promise.resolve(r)}return Promise.reject(new Error(`${t} Is not a function`))}catch(e){return Promise.reject(e)}},outQuickSearchFn:{handlerInitSearchItem(e){Array.isArray(e)&&e.forEach((e=>{t(e)}))}}}}export{o as default};
1
+ import{ref as e}from"vue";import r from"./useRenderWidget.js";const{initRenderWidgetCfg:t}=r();function n(){const r=e({});return{filterApiConfig:r,handleGetConfigApi:async function(e,t,n={},o){try{o&&(r.value=o);const i=r.value[t]||null;if("function"==typeof i){const r=await i(e,n);return Promise.resolve(r)}return Promise.reject(new Error(`${t} Is not a function`))}catch(e){return Promise.reject(e)}},outQuickSearchFn:{handlerInitSearchItem(e){Array.isArray(e)&&e.forEach((e=>{t(e)}))}}}}export{n as default};
@@ -1,13 +1,3 @@
1
- export declare const widgetTypeOptions: {
2
- label: string;
3
- value: string;
4
- }[];
5
- export declare const widgetCfgOptions: {
6
- [x: string]: {
7
- label: string;
8
- value: string;
9
- }[];
10
- };
11
1
  export declare const widgetValOptions: {
12
2
  [x: string]: {
13
3
  [x: string]: {
@@ -1 +1 @@
1
- import{WidgetTypeEnums as l,WidgetOptionEnums as e,DataTypeEnums as a,WidgetValEnums as T}from"../types/enums.js";const E=[{label:"数字框",value:l.INPUT_NUMBER},{label:"文本框",value:l.INPUT},{label:"下拉框",value:l.SELECT},{label:"日期框",value:l.DATE},{label:"日期时间框",value:l.DATE_TIME}],u={[l.SELECT]:[{label:"单选",value:e.RADIO},{label:"多选",value:e.MULTIPLE}],[l.DATE_TIME]:[{label:"全部",value:e.ALL},{label:"选择时间",value:e.SELECT_TIME},{label:"过去时间",value:e.PAST_TIME},{label:"未来时间",value:e.FUTURE_TIME}]},b={[a.API]:{[l.DATE]:[{label:"今天",value:T.TODAY},{label:"明天",value:T.TOMORROW},{label:"昨天",value:T.YESTERDAY},{label:"本周初",value:T.WEEK_START},{label:"本周末",value:T.WEEK_END},{label:"本月初",value:T.MONTH_START},{label:"本月末",value:T.MONTH_END}],[l.DATE_TIME]:[{label:"当前时间",value:T.NOW},{label:"今天初",value:T.TODAY_START},{label:"今天末",value:T.TODAY_END},{label:"昨天初",value:T.YESTERDAY_START},{label:"昨天末",value:T.YESTERDAY_END},{label:"明天初",value:T.TOMORROW_START},{label:"明天末",value:T.TOMORROW_END},{label:"本周初",value:T.WEEK_START},{label:"本周末",value:T.WEEK_END},{label:"本月初",value:T.MONTH_START},{label:"本月末",value:T.MONTH_END}]},[a.SQL]:{[l.DATE_TIME]:[{label:"今天",value:T.TODAY},{label:"明天",value:T.TOMORROW},{label:"昨天",value:T.YESTERDAY},{label:"本周",value:T.THIS_WEEK},{label:"下周",value:T.NEXT_WEEK},{label:"上周",value:T.LAST_WEEK},{label:"本月",value:T.THIS_MONTH},{label:"下月",value:T.NEXT_MONTH},{label:"上月",value:T.LAST_MONTH},{label:"本季度",value:T.THIS_QUARTER},{label:"下季度",value:T.NEXT_QUARTER},{label:"上季度",value:T.LAST_QUARTER},{label:"本年",value:T.THIS_YEAR},{label:"下年",value:T.NEXT_YEAR},{label:"上年",value:T.LAST_YEAR}]}};export{u as widgetCfgOptions,E as widgetTypeOptions,b as widgetValOptions};
1
+ import{DataTypeEnums as l,WidgetTypeEnums as e,WidgetValEnums as a}from"../types/enums.js";const T={[l.API]:{[e.DATE]:[{label:"今天",value:a.TODAY},{label:"明天",value:a.TOMORROW},{label:"昨天",value:a.YESTERDAY},{label:"本周初",value:a.WEEK_START},{label:"本周末",value:a.WEEK_END},{label:"本月初",value:a.MONTH_START},{label:"本月末",value:a.MONTH_END}],[e.DATE_TIME]:[{label:"当前时间",value:a.NOW},{label:"今天初",value:a.TODAY_START},{label:"今天末",value:a.TODAY_END},{label:"昨天初",value:a.YESTERDAY_START},{label:"昨天末",value:a.YESTERDAY_END},{label:"明天初",value:a.TOMORROW_START},{label:"明天末",value:a.TOMORROW_END},{label:"本周初",value:a.WEEK_START},{label:"本周末",value:a.WEEK_END},{label:"本月初",value:a.MONTH_START},{label:"本月末",value:a.MONTH_END}]}};export{T as widgetValOptions};
@@ -1,10 +1,3 @@
1
- export declare const generateDefOptionsInSql: (widgetType: string, mappingConfig?: {
2
- mappingMethod: null;
3
- mapping: never[];
4
- }, optionSetting?: null) => {
5
- label: string;
6
- value: string;
7
- }[];
8
1
  export declare const generateDefOptionsInApi: (widgetType: string, mappingConfig?: {
9
2
  mappingMethod: null;
10
3
  mapping: never[];
@@ -1 +1 @@
1
- import{WidgetTypeEnums as T,MappingMethodEnums as n,WidgetValEnums as E,DataTypeEnums as r,WidgetOptionEnums as t}from"../types/enums.js";import{widgetValOptions as i}from"./baseOptions.js";import{isNil as l}from"./transformData.js";const e=(e,p={mappingMethod:null,mapping:[]},o=null)=>{var u,_;if(l(e))return[];if(e===T.SELECT){const{mapping:T,mappingMethod:r}=p;if(T&&r)return r===n.DICT?[{label:"默认选中第一项",value:E.FIRST_VAL}]:T}let A=null!=(_=null==(u=i[r.SQL])?void 0:u[e])?_:[];if(o===t.FUTURE_TIME){const T=[E.TODAY,E.TOMORROW,E.THIS_WEEK,E.NEXT_WEEK,E.THIS_MONTH,E.NEXT_MONTH,E.THIS_QUARTER,E.NEXT_QUARTER,E.THIS_YEAR,E.NEXT_YEAR];A=A.filter((({value:n})=>T.includes(n)))}if(o===t.PAST_TIME){const T=[E.TODAY,E.YESTERDAY,E.THIS_WEEK,E.LAST_WEEK,E.THIS_MONTH,E.LAST_MONTH,E.THIS_QUARTER,E.LAST_QUARTER,E.THIS_YEAR,E.LAST_YEAR];A=A.filter((({value:n})=>T.includes(n)))}return A},p=(n,E={mappingMethod:null,mapping:[]})=>{var t,e;if(l(n))return[];if(n===T.SELECT){const{mapping:T}=E;return T}return null!=(e=null==(t=i[r.API])?void 0:t[n])?e:[]};export{p as generateDefOptionsInApi,e as generateDefOptionsInSql};
1
+ import{WidgetTypeEnums as r,DataTypeEnums as n}from"../types/enums.js";import{widgetValOptions as t}from"./baseOptions.js";import{isNil as o}from"./transformData.js";const p=(p,m={mappingMethod:null,mapping:[]})=>{var i,s;if(o(p))return[];if(p===r.SELECT){const{mapping:r}=m;return r}return null!=(s=null==(i=t[n.API])?void 0:i[p])?s:[]};export{p as generateDefOptionsInApi};
@@ -113,19 +113,6 @@ export declare type ISaveType = {
113
113
  setting: any;
114
114
  conditionList: string;
115
115
  };
116
- export declare type ILabelItemListType = {
117
- allowCreateByPersonal: number;
118
- color: string;
119
- isPublic: string;
120
- isSelect: boolean;
121
- labelId: string;
122
- labelName: string;
123
- parentColor: string;
124
- parentId: string;
125
- parentType: string;
126
- typeId: string;
127
- typeName: string;
128
- };
129
116
  export declare type IClassifyListType = {
130
117
  displayCategory: string;
131
118
  isDefault: boolean;
@@ -174,70 +161,9 @@ export declare type IConditionMapType = {
174
161
  countTabCondition?: string;
175
162
  settingId?: string;
176
163
  };
177
- export declare type IbtnType = {
178
- buttonType: string;
179
- color: string;
180
- icon: string;
181
- id: string;
182
- isShow: number;
183
- name: string;
184
- setting: string;
185
- settingList: string;
186
- settingObj: IsettingObjType[];
187
- showStyle: string;
188
- sid: string;
189
- tableId: string;
190
- toggle: string;
191
- type: string;
192
- alias?: string;
193
- buttonRemark?: string;
194
- buttonGroup?: any;
195
- canHandleUniline?: boolean;
196
- chooseTwoData?: string;
197
- createdTime?: string;
198
- dataSource?: string;
199
- isButtonGroup?: boolean;
200
- isHide?: boolean;
201
- isImportGuage?: boolean;
202
- iconSetting?: string;
203
- isShowFoldGroupBtn?: boolean;
204
- isVisible?: boolean;
205
- printType?: any;
206
- quoteSetting?: string;
207
- showStyleSetting?: string;
208
- strategy?: string;
209
- updatedTime?: string;
210
- __printConfig?: any;
211
- };
212
- export declare type IsettingObjType = {
213
- obj_id: string;
214
- trigger_type: string;
215
- isTips: string;
216
- trigger_id?: string;
217
- trigger_name?: string;
218
- params?: IparamsType[];
219
- editAllRow?: number;
220
- tipsMsg?: any;
221
- newTitle?: string;
222
- display?: string;
223
- importComponentId?: string;
224
- importComponentName?: string;
225
- prevStepSetting?: any;
226
- linkShowType?: string;
227
- conditionExpression?: string;
228
- conditionParams?: any;
229
- };
230
- export declare type IparamsType = Record<'p_name' | 'p_value', string>;
231
164
  export declare type IsettingsType = {
232
165
  hideQuickSearch: number;
233
166
  };
234
- export declare type IeditTableWrapperItem = {
235
- options?: IeditTableWrapperDetail;
236
- };
237
- export declare type IeditTableWrapperDetail = {
238
- isButtonFolding?: boolean;
239
- extendParams?: any;
240
- };
241
167
  export declare type ICheckboxType = Record<'label' | 'value', string>;
242
168
  export declare type IApiServerType = {
243
169
  name: string;
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as r,ref as i,computed as s,openBlock as t,createBlock as m,unref as o,mergeProps as u,createSlots as a,renderList as f,withCtx as l,renderSlot as p}from"vue";import{NTimePicker as n}from"naive-ui";import"../../../shared/utils/index.js";import"lodash-es";import{useDateTime as _}from"../../../shared/mixins/useDateTime.js";import c from"../../../_virtual/plugin-vue_export-helper.js";var v=c(e({__name:"TimePicker",setup(e,{expose:c}){const v=r(),d=i(null),k=s((()=>v.format?v.format:"HH:mm:ss")),{focus:x,blur:h}=_(d,k);return c({$timePicker:d,focus:x,blur:h}),(e,r)=>(t(),m(o(n),u({ref_key:"timePickerRef",ref:d},e.$attrs),a({_:2},[f(e.$slots,((r,i)=>({name:i,fn:l((()=>[p(e.$slots,i)]))})))]),1040))}}),[["__file","TimePicker.vue"]]);export{v as default};
1
+ import{defineComponent as e,useAttrs as r,ref as o,computed as s,openBlock as t,createBlock as i,unref as m,mergeProps as u,createSlots as a,renderList as f,withCtx as l,renderSlot as p}from"vue";import{NTimePicker as n}from"naive-ui";import"../../../shared/utils/index.js";import"lodash-es";import{useDateTime as _}from"../../../shared/hooks/useDateTime.js";import c from"../../../_virtual/plugin-vue_export-helper.js";var k=c(e({__name:"TimePicker",setup(e,{expose:c}){const k=r(),v=o(null),d=s((()=>k.format?k.format:"HH:mm:ss")),{focus:h,blur:x}=_(v,d);return c({$timePicker:v,focus:h,blur:x}),(e,r)=>(t(),i(m(n),u({ref_key:"timePickerRef",ref:v},e.$attrs),a({_:2},[f(e.$slots,((r,o)=>({name:o,fn:l((()=>[p(e.$slots,o)]))})))]),1040))}}),[["__file","TimePicker.vue"]]);export{k as default};
@@ -1,2 +1,3 @@
1
1
  export * from './useTheme';
2
2
  export * from './useDateTime';
3
+ export * from './useAsyncQueue';
@@ -1 +1 @@
1
- export{useTheme}from"./useTheme.js";export{useDateTime}from"./useDateTime.js";
1
+ export{useTheme}from"./useTheme.js";export{useDateTime}from"./useDateTime.js";export{AsyncQueue}from"./useAsyncQueue.js";
@@ -1,11 +1,3 @@
1
- import { AnyObject, UndefinedAble } from '../../../../../es/shared/types';
2
- import { ComputedRef } from 'vue';
3
- import { FormAsyncQueueItem } from '../types';
4
- import { RequestInstance } from '../../../../../es/components/form-render';
5
- declare type ProcessorOption = Partial<{
6
- afterRequest(key: string, payload?: unknown): AnyObject[];
7
- beforeRequest(key: string, params?: unknown): UndefinedAble<AnyObject> | void;
8
- }>;
9
1
  interface EntryCallback {
10
2
  (err?: any, result?: any): void;
11
3
  }
@@ -38,10 +30,4 @@ export declare class AsyncQueue<T = any, K = any, R = any> {
38
30
  private _startProcess;
39
31
  private _handlerResult;
40
32
  }
41
- export declare function useAsyncQueue(requestInstance: ComputedRef<UndefinedAble<RequestInstance>>): {
42
- create: (parallelism?: number, option?: ProcessorOption) => AsyncQueue<FormAsyncQueueItem, any, {
43
- label: string;
44
- value: unknown;
45
- }[]>;
46
- };
47
33
  export {};
@@ -0,0 +1 @@
1
+ import{cloneDeep as s}from"lodash-es";class e{constructor(s,e,t){this.item=s,this.key=e,this.state=0,this.callback=t}}class t{constructor(s){this._list=s?Array.from(s):[]}enqueue(s){this._list.push(s)}dequeue(){return this._list.shift()}}class i{constructor({name:s,processor:e,getKey:i,parallelism:r}){this._queued=new t,this._entries=new Map,this._activeTasks=0,this._processingLock=!1,this._stopped=!1,this.name=s,this.processor=e,this.getKey=i,this.parallelism=r||100}add(t,i){if(this._stopped)return i(new Error("Queue was stopped"));const r=this.getKey(t);if(this._entries.has(r)){const e=this._entries.get(r);return void(1===e.state?setTimeout((()=>{i&&i(s(e.error),s(e.result))})):e.callbacks?e.callbacks.push(i):e.callbacks=[i])}const c=new e(t,r,i);this._entries.set(r,c),this._queued.enqueue(c),this._processingLock||(this._processingLock=!0,Promise.resolve().then(this._ensureProcessing.bind(this)))}addAsync(s){return new Promise(((e,t)=>{this.add(s,((s,i)=>{s&&t(s),e(i)}))}))}_ensureProcessing(){for(;this._activeTasks<this.parallelism;){const s=this._queued.dequeue();if(!s)break;this._activeTasks++,s.state=0,this._startProcess(s)}this._processingLock=!1}_startProcess(s){this.processor(s.item,((e,t)=>{e?this._handlerResult(s,e):this._handlerResult(s,e,t)}),(()=>this._entries.delete(s.key)))}_handlerResult(e,t,i){const r=e.callback;e.state=1,e.callback=void 0,e.result=s(i),e.error=s(t),this._activeTasks--,r&&r(t,i),e.callbacks&&e.callbacks.forEach((s=>s(t,i))),this._processingLock||(this._processingLock=!0,Promise.resolve().then(this._ensureProcessing.bind(this)))}}export{i as AsyncQueue};
@@ -1,6 +1,6 @@
1
- import { Ref } from 'vue';
1
+ import { Ref, ComputedRef } from 'vue';
2
2
  import { AnyObject } from '../../../es/shared/types';
3
- export declare function useDateTime(datePickerRef: Ref<AnyObject | null>, formatRef: Ref<string>): {
3
+ export declare function useDateTime(datePickerRef: Ref<AnyObject | null>, formatRef: ComputedRef<string | [string, string]>): {
4
4
  focus: () => any;
5
5
  blur: () => any;
6
6
  };
@@ -0,0 +1 @@
1
+ import{computed as t,unref as e}from"vue";import{useDebounceFn as n,useEventListener as l}from"@vueuse/core";function o(o,c){const r=n((t=>{!function(t){const e=t.target;if(["INPUT"].includes(e.tagName)){const{selectionStart:t=0,selectionEnd:n=0}=e;t===n&&e.select()}}(t)}),200),i=t((()=>{var t;return null==(t=o.value)?void 0:t.$el}));function s(t,n,l){const o=t.value;if(!o)return;const r=t.selectionEnd||0,i=o.length;let s=0,u=0,a=0,f="",v=0;for(;s<i;){const t=o[s++];if(/\d/.test(t)&&(f+=t),s===r){a=f.length;const t=o.slice(s).match(/^\d+/);v=t?t[0].length:0}}const d=e(c),g=Array.isArray(d)?function(t){var e,n;let l=!1,o=t.parentNode||null;for(;o;){if(null==(n=null==(e=o.classList)?void 0:e.contains)?void 0:n.call(e,"n-time-picker")){l=!0;break}o=o.parentNode||null}return l}(t)?d[1]:d[0]:d;let h="",m=0,p=0;for(s=0;s<g.length&&(l||!(u>=f.length));){const t=g[s++];if(/[yMdHms]/.test(t)?h+=f[u++]||"0":h+=t,n&&u===a){a=-1,m=h.length,p=m;let t=g.slice(s).match(/^[yMdHms]+/);t?(v=Math.min(v,t[0].length),v&&(h+=f.slice(u,u+v),u+=v),s+=t[0].length):(t=g.slice(s).match(/^([^yMdHms]+)([yMdHms]*)/),t&&(m+=t[1].length,p=m+t[2].length))}}const y=h!==o;if(y){t.value=h;const e=new InputEvent("input");t.dispatchEvent(e)}return n&&(m=m||h.length+1,p=p||h.length+1,t.setSelectionRange(m,p)),y}return l(i,"input",(function(t){const e=t.target;if(!e.value||!Reflect.get(e,"_f_"))return;Reflect.set(e,"_f_",0),s(e,!0)&&(t.preventDefault(),t.stopPropagation())}),!0),l(i,"keydown",(function(t){const{key:e,target:n}=t;/\d/.test(e)&&n?Reflect.set(n,"_f_",1):"Enter"===e&&s(t.target,!1,!0)}),!0),l(i,"click",r,!0),{focus:()=>{var t,e;return null==(e=null==(t=o.value)?void 0:t.focus)?void 0:e.call(t)},blur:()=>{var t,e;return null==(e=null==(t=o.value)?void 0:t.blur)?void 0:e.call(t)}}}export{o as useDateTime};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.42-beta.2",
3
+ "version": "3.1.42-beta.21",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -61,5 +61,5 @@
61
61
  "iOS 7",
62
62
  "last 3 iOS versions"
63
63
  ],
64
- "gitHead": "e8fdeb8a9c5f516409ae639692f72ba1f9e4fbd7"
64
+ "gitHead": "ebec4005f599cf7cd12718e640f3f7dd5bb2326f"
65
65
  }
@@ -1 +0,0 @@
1
- import{uuidGenerator as s}from"../../../../shared/utils/index.js";import{cloneDeep as e,isFunction as t}from"lodash-es";import{unref as r}from"vue";import"../../index.js";import{useCommonLog as i}from"./useCommonLog.js";import{useFormRequest as o}from"./useFormRequest.js";class a{constructor(s,e,t){this.item=s,this.key=e,this.state=0,this.callback=t}}class c{constructor(s){this._list=s?Array.from(s):[]}enqueue(s){this._list.push(s)}dequeue(){return this._list.shift()}}class n{constructor({name:s,processor:e,getKey:t,parallelism:r}){this._queued=new c,this._entries=new Map,this._activeTasks=0,this._processingLock=!1,this._stopped=!1,this.name=s,this.processor=e,this.getKey=t,this.parallelism=r||100}add(s,t){if(this._stopped)return t(new Error("Queue was stopped"));const r=this.getKey(s);if(this._entries.has(r)){const s=this._entries.get(r);return void(1===s.state?setTimeout((()=>{t&&t(e(s.error),e(s.result))})):s.callbacks?s.callbacks.push(t):s.callbacks=[t])}const i=new a(s,r,t);this._entries.set(r,i),this._queued.enqueue(i),this._processingLock||(this._processingLock=!0,Promise.resolve().then(this._ensureProcessing.bind(this)))}addAsync(s){return new Promise(((e,t)=>{this.add(s,((s,r)=>{s&&t(s),e(r)}))}))}_ensureProcessing(){for(;this._activeTasks<this.parallelism;){const s=this._queued.dequeue();if(!s)break;this._activeTasks++,s.state=0,this._startProcess(s)}this._processingLock=!1}_startProcess(s){this.processor(s.item,((e,t)=>{e?this._handlerResult(s,e):this._handlerResult(s,e,t)}),(()=>this._entries.delete(s.key)))}_handlerResult(s,t,r){const i=s.callback;s.state=1,s.callback=void 0,s.result=e(r),s.error=e(t),this._activeTasks--,i&&i(t,r),s.callbacks&&s.callbacks.forEach((s=>s(t,r))),this._processingLock||(this._processingLock=!0,Promise.resolve().then(this._ensureProcessing.bind(this)))}}function h(e){const{getHttpInstance:a}=o();return{create:function(o=3,c){return new n({name:"FormRenderAsyncQueue",parallelism:o,async processor({key:s,method:o="post",cache:n,params:h,url:l},u,p){var m,d;const _=null!=(m=r(e))?m:a();if(!_)return i().invalidHttpInstanceLog(),u(),void p();try{c&&t(c.beforeRequest)&&(h=null!=(d=c.beforeRequest(s,h))?d:{});let e=await _[o](l,h);c&&t(c.afterRequest)&&(e=c.afterRequest(s,e)),u(void 0,Array.isArray(e)?e:[]),!n&&p()}catch(s){u(new Error(`Request error => ${s}`)),p()}},getKey:({url:e,method:t="post",cache:r,params:i})=>r?e+t+JSON.stringify(i||{}):s()})}}}export{n as AsyncQueue,h as useAsyncQueue};