cnhis-design-vue 3.1.44-release.4 → 3.1.44-release.5

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 (199) hide show
  1. package/README.md +87 -87
  2. package/es/components/base-search/src/index.vue.js +1 -1
  3. package/es/components/base-search/src/index.vue2.js +1 -0
  4. package/es/components/big-table/src/BigTable.vue.js +1 -1
  5. package/es/components/big-table/src/components/NoData.vue.js +1 -1
  6. package/es/components/big-table/src/components/NoData.vue2.js +1 -0
  7. package/es/components/big-table/src/components/edit-form/edit-separate.vue.js +1 -1
  8. package/es/components/big-table/src/components/edit-form/edit-separate.vue2.js +1 -0
  9. package/es/components/big-table/src/components/input-button.vue.js +1 -1
  10. package/es/components/big-table/src/components/input-button.vue2.js +1 -0
  11. package/es/components/big-table/src/components/separate.vue.js +1 -1
  12. package/es/components/big-table/src/components/separate.vue2.js +1 -0
  13. package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -1
  14. package/es/components/bpmn-workflow/src/BpmnWorkflow.vue2.js +1 -0
  15. package/es/components/button-print/src/ButtonPrint.vue.js +1 -1
  16. package/es/components/button-print/src/components/EditFormat.vue.js +1 -1
  17. package/es/components/button-print/src/components/EditFormat.vue2.js +1 -0
  18. package/es/components/button-print/src/components/IdentityVerification.vue.js +1 -1
  19. package/es/components/button-print/src/components/IdentityVerification.vue2.js +1 -0
  20. package/es/components/button-print/src/components/Preview.vue.js +1 -1
  21. package/es/components/classification/src/components/search-filter/index.vue.js +1 -1
  22. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -0
  23. package/es/components/classification/src/components/set-classification/index.vue.js +1 -1
  24. package/es/components/classification/src/components/set-classification/index.vue2.js +1 -0
  25. package/es/components/classification/src/components/table-modal/index.vue.js +1 -1
  26. package/es/components/classification/src/components/table-modal/index.vue2.js +1 -0
  27. package/es/components/classification/src/index.vue.js +1 -1
  28. package/es/components/classification/src/index.vue2.js +1 -0
  29. package/es/components/date-picker/src/DatePicker.vue.js +1 -1
  30. package/es/components/date-picker/src/DatePicker.vue2.js +1 -0
  31. package/es/components/fabric-chart/src/FabricChart.vue.js +1 -1
  32. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -0
  33. package/es/components/fabric-chart/src/components/PopupTip.vue.js +1 -1
  34. package/es/components/fabric-chart/src/components/PopupTip.vue2.js +1 -0
  35. package/es/components/fabric-chart/src/utils/utils.js +1 -1
  36. package/es/components/field-set/src/FieldSet.vue.js +1 -1
  37. package/es/components/field-set/src/FieldSet.vue2.js +1 -0
  38. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  39. package/es/components/form-config/src/FormConfig.vue2.js +1 -0
  40. package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -1
  41. package/es/components/form-config/src/components/FormConfigCreator.vue2.js +1 -0
  42. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -1
  43. package/es/components/form-config/src/components/FormConfigDragDisplay.vue2.js +1 -0
  44. package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -1
  45. package/es/components/form-config/src/components/FormConfigEdit.vue2.js +1 -0
  46. package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -1
  47. package/es/components/form-config/src/components/renderer/CloseButton.vue2.js +1 -0
  48. package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -1
  49. package/es/components/form-config/src/components/renderer/ComplexNode.vue2.js +1 -0
  50. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
  51. package/es/components/form-config/src/components/renderer/DefaultNode.vue2.js +1 -0
  52. package/es/components/form-render/src/FormRender.vue.js +1 -1
  53. package/es/components/form-render/src/FormRender.vue2.js +1 -0
  54. package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -1
  55. package/es/components/form-render/src/FormRenderWrapper.vue2.js +1 -0
  56. package/es/components/form-render/src/components/renderer/combination.js +1 -1
  57. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  58. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
  59. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +1 -1
  60. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue2.js +1 -0
  61. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
  62. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  63. package/es/components/form-render/src/components/renderer/select.js +1 -1
  64. package/es/components/form-render/src/components/tooltipMessage.vue.js +1 -1
  65. package/es/components/form-render/src/components/tooltipMessage.vue2.js +1 -0
  66. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
  67. package/es/components/guide/src/renderer.js +1 -1
  68. package/es/components/iho-select-label/src/LabelFormContent.vue.js +1 -1
  69. package/es/components/iho-select-label/src/LabelFormContent.vue2.js +1 -0
  70. package/es/components/iho-select-label/src/SelectLabel.vue.js +1 -1
  71. package/es/components/iho-select-label/src/SelectLabel.vue2.js +1 -0
  72. package/es/components/iho-select-label/src/components/label-classify.vue.js +1 -1
  73. package/es/components/iho-select-label/src/components/label-classify.vue2.js +1 -0
  74. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  75. package/es/components/iho-table/src/IhoTable.vue2.js +1 -0
  76. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.js +1 -1
  77. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue2.js +1 -0
  78. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
  79. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -0
  80. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -1
  81. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +1 -0
  82. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
  83. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +1 -1
  84. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue2.js +1 -0
  85. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
  86. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -0
  87. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -1
  88. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
  89. package/es/components/iho-table/src/utils/index.js +1 -1
  90. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  91. package/es/components/info-header/src/InfoHeader.vue2.js +1 -0
  92. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.js +1 -1
  93. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +1 -0
  94. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.js +1 -1
  95. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue2.js +1 -0
  96. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -1
  97. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue2.js +1 -0
  98. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +1 -1
  99. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue2.js +1 -0
  100. package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
  101. package/es/components/info-header/src/components/infoDescription/index.vue2.js +1 -0
  102. package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -1
  103. package/es/components/info-header/src/components/patientInfo/index.vue2.js +1 -0
  104. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  105. package/es/components/keyboard/src/Keyboard.vue2.js +1 -0
  106. package/es/components/keyboard/src/components/InputNumber.vue.js +1 -1
  107. package/es/components/keyboard/src/components/InputNumber.vue2.js +1 -0
  108. package/es/components/keyboard/src/components/NumberPanel.vue.js +1 -1
  109. package/es/components/keyboard/src/components/NumberPanel.vue2.js +1 -0
  110. package/es/components/map/src/Map.vue.js +1 -1
  111. package/es/components/map/src/Map.vue2.js +1 -0
  112. package/es/components/quick-search/src/index.vue.js +1 -1
  113. package/es/components/quick-search/src/index.vue2.js +1 -0
  114. package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -1
  115. package/es/components/recommend-search/src/RecommendSearch.vue2.js +1 -0
  116. package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -1
  117. package/es/components/recommend-search/src/components/RecommendInput.vue2.js +1 -0
  118. package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -1
  119. package/es/components/recommend-search/src/components/RecommendMenu.vue2.js +1 -0
  120. package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -1
  121. package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +1 -0
  122. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  123. package/es/components/scale-view/src/ScaleView.vue2.js +1 -0
  124. package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -1
  125. package/es/components/scale-view/src/components/AnswerParse.vue2.js +1 -0
  126. package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -1
  127. package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +1 -0
  128. package/es/components/scale-view/src/components/EvaluatePage.vue.js +1 -1
  129. package/es/components/scale-view/src/components/EvaluatePage.vue2.js +1 -0
  130. package/es/components/scale-view/src/components/LoadingCom.vue.js +1 -1
  131. package/es/components/scale-view/src/components/NoData.vue.js +1 -1
  132. package/es/components/scale-view/src/components/NoData.vue2.js +1 -0
  133. package/es/components/search-cascader/src/SearchCascader.vue.js +1 -1
  134. package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -0
  135. package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
  136. package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
  137. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -0
  138. package/es/components/select-label/src/SelectLabel.vue.js +1 -1
  139. package/es/components/select-label/src/components/label-classify.vue.js +1 -1
  140. package/es/components/select-label/src/components/label-classify.vue2.js +1 -0
  141. package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
  142. package/es/components/select-person/src/SearchMultiple.vue.js +1 -1
  143. package/es/components/select-person/src/SelectPerson.vue.js +1 -1
  144. package/es/components/shortcut-provider/src/ShortcutProvider.vue.js +1 -1
  145. package/es/components/shortcut-provider/src/ShortcutProvider.vue2.js +1 -0
  146. package/es/components/shortcut-setter/src/ShortcutSetter.vue.js +1 -1
  147. package/es/components/shortcut-setter/src/ShortcutSetter.vue2.js +1 -0
  148. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.js +1 -1
  149. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue2.js +1 -0
  150. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
  151. package/es/components/steps-wheel/src/StepsWheel.vue2.js +1 -0
  152. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -1
  153. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -0
  154. package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
  155. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -0
  156. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -1
  157. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue2.js +1 -0
  158. package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -1
  159. package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +1 -0
  160. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.js +1 -1
  161. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -0
  162. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.js +1 -1
  163. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -0
  164. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.js +1 -1
  165. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +1 -0
  166. package/es/components/table-filter/src/components/render-widget/components/Label.vue.js +1 -1
  167. package/es/components/table-filter/src/components/render-widget/components/Label.vue2.js +1 -0
  168. package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -1
  169. package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -0
  170. package/es/components/table-filter/src/components/render-widget/components/SelectLabel.vue.js +1 -1
  171. package/es/components/table-filter/src/components/render-widget/components/SelectLabel.vue2.js +1 -0
  172. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  173. package/es/components/time-line/src/TimeLine.vue.js +1 -1
  174. package/es/components/time-line/src/TimeLine.vue2.js +1 -0
  175. package/es/components/time-picker/src/TimePicker.vue.js +1 -1
  176. package/es/components/time-picker/src/TimePicker.vue2.js +1 -0
  177. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.js +1 -1
  178. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +1 -0
  179. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -1
  180. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +1 -0
  181. package/es/env.d.ts +25 -25
  182. package/es/shared/components/SelectPage/SelectPage.vue.js +1 -1
  183. package/es/shared/components/SelectPage/SelectPage.vue2.js +1 -0
  184. package/es/shared/components/SvgIcon/SvgIcon.vue.js +1 -1
  185. package/es/shared/components/SvgIcon/SvgIcon.vue2.js +1 -0
  186. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -1
  187. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue2.js +1 -0
  188. package/es/shared/components/no-data/NoData.vue.js +1 -1
  189. package/es/shared/components/no-data/NoData.vue2.js +1 -0
  190. package/es/shared/package.json.js +1 -1
  191. package/package.json +1 -1
  192. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  193. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  194. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  195. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  196. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  197. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  198. package/es/shared/utils/tapable/index.d.ts +0 -139
  199. /package/es/_virtual/{plugin-vue_export-helper.js → _plugin-vue_export-helper.js} +0 -0
@@ -1 +1 @@
1
- import{defineComponent as e,ref as l,watch as t,openBlock as u,createBlock as r,unref as a,withCtx as i,createVNode as n,createElementVNode as p}from"vue";import{NInputGroup as o,NInputNumber as d}from"naive-ui";import{isString as m}from"lodash-es";import s from"../../../../../../_virtual/plugin-vue_export-helper.js";const v=p("span",{class:"divider"}," ~ ",-1);var c=s(e({__name:"InputNumberGroup",props:{startPlaceholder:{type:String,default:"请输入"},endPlaceholder:{type:String,default:"请输入"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:p}){const s=e,c=l(),h=l();function f(e,l){var t,u;let r="";switch(l){case"startNumber":r=`${null!=e?e:""} ~ ${null!=(t=h.value)?t:""}`;break;case"endNumber":r=`${null!=(u=c.value)?u:""} ~ ${null!=e?e:""}`}const a=r.split(" ~ ").some((e=>e.trim()));p("update:value",a?r:"")}return t((()=>s.value),(e=>{if(c.value=h.value=null,e&&m(e)&&e.includes("~")){const[l,t]=e.split("~");return l.trim()&&(c.value=Number(l.trim())),void(t.trim()&&(h.value=Number(t.trim())))}}),{immediate:!0}),(l,t)=>(u(),r(a(o),{class:"render-widget-input-number-group"},{default:i((()=>[n(a(d),{style:{minWidth:"88px"},placeholder:e.startPlaceholder,value:c.value,"onUpdate:value":t[0]||(t[0]=e=>f(e,"startNumber"))},null,8,["placeholder","value"]),v,n(a(d),{style:{minWidth:"88px"},placeholder:e.endPlaceholder,value:h.value,"onUpdate:value":t[1]||(t[1]=e=>f(e,"endNumber"))},null,8,["placeholder","value"])])),_:1}))}}),[["__file","InputNumberGroup.vue"]]);export{c as default};
1
+ import r from"./InputNumberGroup.vue2.js";import u from"../../../../../../_virtual/_plugin-vue_export-helper.js";var e=u(r,[["__file","InputNumberGroup.vue"]]);export{e as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as l,watch as t,openBlock as a,createBlock as u,unref as r,withCtx as n,createVNode as i,createElementVNode as d}from"vue";import{NInputGroup as o,NInputNumber as s}from"naive-ui";import{isString as m}from"lodash-es";const p=d("span",{class:"divider"}," ~ ",-1);var v=e({__name:"InputNumberGroup",props:{startPlaceholder:{type:String,default:"请输入"},endPlaceholder:{type:String,default:"请输入"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:d}){const v=e,c=l(),h=l();function f(e,l){var t,a;let u="";switch(l){case"startNumber":u=`${null!=e?e:""} ~ ${null!=(t=h.value)?t:""}`;break;case"endNumber":u=`${null!=(a=c.value)?a:""} ~ ${null!=e?e:""}`}const r=u.split(" ~ ").some((e=>e.trim()));d("update:value",r?u:"")}return t((()=>v.value),(e=>{if(c.value=h.value=null,e&&m(e)&&e.includes("~")){const[l,t]=e.split("~");return l.trim()&&(c.value=Number(l.trim())),void(t.trim()&&(h.value=Number(t.trim())))}}),{immediate:!0}),(l,t)=>(a(),u(r(o),{class:"render-widget-input-number-group"},{default:n((()=>[i(r(s),{style:{minWidth:"88px"},placeholder:e.startPlaceholder,value:c.value,"onUpdate:value":t[0]||(t[0]=e=>f(e,"startNumber"))},null,8,["placeholder","value"]),p,i(r(s),{style:{minWidth:"88px"},placeholder:e.endPlaceholder,value:h.value,"onUpdate:value":t[1]||(t[1]=e=>f(e,"endNumber"))},null,8,["placeholder","value"])])),_:1}))}});export{v as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as l,watch as t,computed as o,openBlock as s,createElementBlock as a,Fragment as i,renderList as n,unref as c,createElementVNode as r,toDisplayString as p,normalizeClass as u,withDirectives as d,createBlock as f,normalizeStyle as m,withCtx as b,createVNode as v,withModifiers as h,createCommentVNode as g}from"vue";import{NTag as y,NTooltip as k,NIcon as S}from"naive-ui";import{ChevronUpCircleOutline as C,ChevronDownCircleOutline as w}from"@vicons/ionicons5";import x from"../../../directive/resize.js";import _ from"../../../hooks/useMixins.js";import{isString as L}from"lodash-es";import U from"../../../../../../_virtual/plugin-vue_export-helper.js";const j={class:"label-attr-filter-container"},B={class:"edit-f-label"},T={class:"label-f-content"},z={key:0,class:"label-f-unfold-btn"},A=["onClick"],I=r("span",null,"收起",-1),O=r("span",null,"展开",-1);var q=U(e({__name:"Label",props:{componentCfg:{type:Object},value:{type:String,default:""},filterApiConfig:{type:Object}},emits:["update:value"],setup(e,{emit:U}){const q=e,{handleGetConfigApi:G}=_(),H="rgb(85, 133, 245)",M=l([]),N=l([]);t((()=>q.value),(e=>{const l=e&&L(e)?e.split("|#|"):[];M.value=l}),{immediate:!0});const D=o((()=>N.value&&N.value.length>0?N.value.map((e=>(e.labelList.map((e=>{e.isSelect=M.value.includes(e.labelShowText)})),e))):[])),E=e=>e.isSelect?{background:e.backgroundColor||H,borderColor:e.backgroundColor||H}:{};return(async()=>{try{const{widgetCfg:e={}}=q.componentCfg,{classifyStr:l=""}=e;let t=await G({classifyStr:l},"requestListByClassify",{},q.filterApiConfig);if(t){const{data:e}=t,{list:l=[]}=e;N.value=l}}catch(e){console.log(e)}})(),(e,l)=>(s(),a("div",j,[(s(!0),a(i,null,n(c(D),(e=>(s(),a("div",{class:"edit-labels-content",key:e.classifyId},[r("span",B,p(e.classifyName)+":",1),r("div",{class:u(["edit-f-content",{"label-select-height":!e.isUnfold&&e.labelList&&e.isShowBtn}])},[d((s(),a("div",T,[(s(!0),a(i,null,n(e.labelList,(e=>(s(),f(c(y),{checkable:"",key:e.labelCode,checked:e.isSelect,"onUpdate:checked":l=>((e,l)=>{if(l.isSelect=e,e)M.value.push(l.labelShowText);else{const e=M.value.findIndex((e=>e===l.labelShowText));e>-1&&M.value.splice(e,1)}U("update:value",M.value.join("|#|"))})(l,e),style:m(E(e))},{default:b((()=>[v(c(k),{placement:"top-start",duration:0},{trigger:b((()=>[r("span",null,p(e.labelShowText),1)])),default:b((()=>[r("span",null,p(e.labelShowText),1)])),_:2},1024)])),_:2},1032,["checked","onUpdate:checked","style"])))),128))])),[[c(x),l=>((e,l)=>{let t=e.offsetHeight||0;t&&(t>80?l.isShowBtn=!0:(l.isShowBtn=!1,l.isUnfold=!1))})(l,e)]])],2),e.labelList&&e.isShowBtn?(s(),a("div",z,[r("span",{class:"operate-btn",onClick:h((l=>(e=>{e.isUnfold=!e.isUnfold})(e)),["stop"])},[e.isUnfold?(s(),a(i,{key:0},[I,v(c(S),{component:c(C),size:"16"},null,8,["component"])],64)):(s(),a(i,{key:1},[O,v(c(S),{component:c(w),size:"16"},null,8,["component"])],64))],8,A)])):g("v-if",!0)])))),128))]))}}),[["__file","Label.vue"]]);export{q as default};
1
+ import e from"./Label.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var l=r(e,[["__file","Label.vue"]]);export{l as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as l,watch as t,computed as s,openBlock as o,createElementBlock as a,Fragment as i,renderList as n,unref as c,createElementVNode as r,toDisplayString as d,normalizeClass as p,withDirectives as u,createBlock as f,normalizeStyle as b,withCtx as m,createVNode as v,withModifiers as h,createCommentVNode as g}from"vue";import{NTag as y,NTooltip as k,NIcon as S}from"naive-ui";import{ChevronUpCircleOutline as C,ChevronDownCircleOutline as w}from"@vicons/ionicons5";import x from"../../../directive/resize.js";import U from"../../../hooks/useMixins.js";import{isString as L}from"lodash-es";const j={class:"label-attr-filter-container"},B={class:"edit-f-label"},T={class:"label-f-content"},_={key:0,class:"label-f-unfold-btn"},z=["onClick"],A=r("span",null,"收起",-1),I=r("span",null,"展开",-1);var O=e({__name:"Label",props:{componentCfg:{type:Object},value:{type:String,default:""},filterApiConfig:{type:Object}},emits:["update:value"],setup(e,{emit:O}){const q=e,{handleGetConfigApi:G}=U(),H="rgb(85, 133, 245)",M=l([]),N=l([]);t((()=>q.value),(e=>{const l=e&&L(e)?e.split("|#|"):[];M.value=l}),{immediate:!0});const D=s((()=>N.value&&N.value.length>0?N.value.map((e=>(e.labelList.map((e=>{e.isSelect=M.value.includes(e.labelShowText)})),e))):[])),E=e=>e.isSelect?{background:e.backgroundColor||H,borderColor:e.backgroundColor||H}:{};return(async()=>{try{const{widgetCfg:e={}}=q.componentCfg,{classifyStr:l=""}=e;let t=await G({classifyStr:l},"requestListByClassify",{},q.filterApiConfig);if(t){const{data:e}=t,{list:l=[]}=e;N.value=l}}catch(e){console.log(e)}})(),(e,l)=>(o(),a("div",j,[(o(!0),a(i,null,n(c(D),(e=>(o(),a("div",{class:"edit-labels-content",key:e.classifyId},[r("span",B,d(e.classifyName)+":",1),r("div",{class:p(["edit-f-content",{"label-select-height":!e.isUnfold&&e.labelList&&e.isShowBtn}])},[u((o(),a("div",T,[(o(!0),a(i,null,n(e.labelList,(e=>(o(),f(c(y),{checkable:"",key:e.labelCode,checked:e.isSelect,"onUpdate:checked":l=>((e,l)=>{if(l.isSelect=e,e)M.value.push(l.labelShowText);else{const e=M.value.findIndex((e=>e===l.labelShowText));e>-1&&M.value.splice(e,1)}O("update:value",M.value.join("|#|"))})(l,e),style:b(E(e))},{default:m((()=>[v(c(k),{placement:"top-start",duration:0},{trigger:m((()=>[r("span",null,d(e.labelShowText),1)])),default:m((()=>[r("span",null,d(e.labelShowText),1)])),_:2},1024)])),_:2},1032,["checked","onUpdate:checked","style"])))),128))])),[[c(x),l=>((e,l)=>{let t=e.offsetHeight||0;t&&(t>80?l.isShowBtn=!0:(l.isShowBtn=!1,l.isUnfold=!1))})(l,e)]])],2),e.labelList&&e.isShowBtn?(o(),a("div",_,[r("span",{class:"operate-btn",onClick:h((l=>(e=>{e.isUnfold=!e.isUnfold})(e)),["stop"])},[e.isUnfold?(o(),a(i,{key:0},[A,v(c(S),{component:c(C),size:"16"},null,8,["component"])],64)):(o(),a(i,{key:1},[I,v(c(S),{component:c(w),size:"16"},null,8,["component"])],64))],8,z)])):g("v-if",!0)])))),128))]))}});export{O as default};
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as a,ref as t,computed as n,openBlock as l,createBlock as i,unref as o,mergeProps as u,isRef as r,h as s}from"vue";import{NSelect as c,NTag as p}from"naive-ui";import{useDebounceFn as v}from"@vueuse/core";import d from"../../../hooks/useMixins.js";import f from"../../../../../../_virtual/plugin-vue_export-helper.js";var m=f(e({__name:"Select",props:{value:{type:[Array,String,Number]},filterApiConfig:{type:Object}},emits:["update:value","changeInitState"],setup(e,{emit:f}){const m=e,{handleGetConfigApi:y}=d(),g=a(),h=t([]),b=t(!1),w=t(!1),A=n({set(e){const a=Array.isArray(e)?e:e?[e]:null;f("update:value",a)},get(){var e;if(Array.isArray(m.value)&&m.value.length>0){const{multiple:e}=g;return e||1!=m.value.length?m.value:m.value[0]}return null!=(e=m.value)?e:null}});async function I(e){try{if(g.dynamicOptionInfo){const{autograph:a,dataSourceId:t,dataSourceType:n,filterKeys:l,showKeys:i,valueKey:o}=g.dynamicOptionInfo;let u={wordbookId:t,autograph:a,wordbookType:n,fieldKeys:l,page:1};l.length>0&&(u[l[0]]=e),w.value=!0;let r=await y(u,"requestDynamicSelect",{},m.filterApiConfig);if(r){const{fieldList:e=[],rows:a=[]}=r,t=a.map((e=>({...e,label:e[i[0]],value:e[o]})));return h.value=t,t}}}catch(e){console.log(e)}finally{w.value=!1}}const S=v((async e=>{await async function(e){const{manualMapping:a}=g;if(!a){const a=e.trim();await I(a)}}(e)}),300);async function C(){const{manualMapping:e,dynamicOptionInfo:a,valueList:t}=g;if(e&&Array.isArray(t))return b.value=!1,void(h.value=t.map((({value:e,label:a})=>({value:e,label:a}))));Object.keys(a).length>0&&m.filterApiConfig&&(b.value=!0,await I(""))}function O(e){const{manualMapping:a}=g;if(a)return s("div",e.label);const{showKeys:t=[]}=g.dynamicOptionInfo;return g.dynamicOptionInfo&&t.length>0?s("div",{class:"select-widget-dynamic-option"},t.map((a=>s("span",{class:"select-widget-dynamic-item"},e[a])))):s("div",e.label)}function _({option:e,handleClose:a}){const{multiple:t}=g;return t?s(p,{style:{padding:"0 8px"},closable:!0,onClose:e=>{e.stopPropagation(),a()}},{default:()=>s("div",e.label)}):s("div",e.label)}return async function(){const{manualMapping:e,defValue:a,defValueUnit:t,_frontId:n,isInit:l}=g;await C();const i=Array.isArray(m.value)?m.value.length>0:m.value;if(!l&&!i){if(e)return f("update:value",a),void f("changeInitState",n,!0);if(t)switch(t){case"FIRST":{const e=h.value[0];f("update:value",[e.value]),f("changeInitState",n,!0);break}}}}(),(e,a)=>(l(),i(o(c),u(o(g),{value:o(A),"onUpdate:value":a[0]||(a[0]=e=>r(A)?A.value=e:null),loading:w.value,options:h.value,remote:b.value,"render-label":O,"render-tag":_,onSearch:o(S),onClear:C}),null,16,["value","loading","options","remote","onSearch"]))}}),[["__file","Select.vue"]]);export{m as default};
1
+ import e from"./Select.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","Select.vue"]]);export{t as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,useAttrs as a,ref as t,computed as n,openBlock as l,createBlock as i,unref as o,mergeProps as u,isRef as r,h as s}from"vue";import{NSelect as c,NTag as p}from"naive-ui";import{useDebounceFn as v}from"@vueuse/core";import d from"../../../hooks/useMixins.js";var f=e({__name:"Select",props:{value:{type:[Array,String,Number]},filterApiConfig:{type:Object}},emits:["update:value","changeInitState"],setup(e,{emit:f}){const y=e,{handleGetConfigApi:m}=d(),g=a(),h=t([]),b=t(!1),w=t(!1),A=n({set(e){const a=Array.isArray(e)?e:e?[e]:null;f("update:value",a)},get(){var e;if(Array.isArray(y.value)&&y.value.length>0){const{multiple:e}=g;return e||1!=y.value.length?y.value:y.value[0]}return null!=(e=y.value)?e:null}});async function I(e){try{if(g.dynamicOptionInfo){const{autograph:a,dataSourceId:t,dataSourceType:n,filterKeys:l,showKeys:i,valueKey:o}=g.dynamicOptionInfo;let u={wordbookId:t,autograph:a,wordbookType:n,fieldKeys:l,page:1};l.length>0&&(u[l[0]]=e),w.value=!0;let r=await m(u,"requestDynamicSelect",{},y.filterApiConfig);if(r){const{fieldList:e=[],rows:a=[]}=r,t=a.map((e=>({...e,label:e[i[0]],value:e[o]})));return h.value=t,t}}}catch(e){console.log(e)}finally{w.value=!1}}const S=v((async e=>{await async function(e){const{manualMapping:a}=g;if(!a){const a=e.trim();await I(a)}}(e)}),300);async function C(){const{manualMapping:e,dynamicOptionInfo:a,valueList:t}=g;if(e&&Array.isArray(t))return b.value=!1,void(h.value=t.map((({value:e,label:a})=>({value:e,label:a}))));Object.keys(a).length>0&&y.filterApiConfig&&(b.value=!0,await I(""))}function O(e){const{manualMapping:a}=g;if(a)return s("div",e.label);const{showKeys:t=[]}=g.dynamicOptionInfo;return g.dynamicOptionInfo&&t.length>0?s("div",{class:"select-widget-dynamic-option"},t.map((a=>s("span",{class:"select-widget-dynamic-item"},e[a])))):s("div",e.label)}function k({option:e,handleClose:a}){const{multiple:t}=g;return t?s(p,{style:{padding:"0 8px"},closable:!0,onClose:e=>{e.stopPropagation(),a()}},{default:()=>s("div",e.label)}):s("div",e.label)}return async function(){const{manualMapping:e,defValue:a,defValueUnit:t,_frontId:n,isInit:l}=g;await C();const i=Array.isArray(y.value)?y.value.length>0:y.value;if(!l&&!i){if(e)return f("update:value",a),void f("changeInitState",n,!0);if(t)switch(t){case"FIRST":{const e=h.value[0];f("update:value",[e.value]),f("changeInitState",n,!0);break}}}}(),(e,a)=>(l(),i(o(c),u(o(g),{value:o(A),"onUpdate:value":a[0]||(a[0]=e=>r(A)?A.value=e:null),loading:w.value,options:h.value,remote:b.value,"render-label":O,"render-tag":k,onSearch:o(S),onClear:C}),null,16,["value","loading","options","remote","onSearch"]))}});export{f as default};
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as t,ref as l,computed as a,openBlock as o,createBlock as i,unref as u,mergeProps as s,isRef as n}from"vue";import{NSelect as r}from"naive-ui";import p from"../../../hooks/useMixins.js";import f from"../../../../../../_virtual/plugin-vue_export-helper.js";var v=f(e({__name:"SelectLabel",props:{componentCfg:{type:Object},value:{type:String,default:""},filterApiConfig:{type:Object}},emits:["update:value"],setup(e,{emit:f}){const v=e,{handleGetConfigApi:c}=p(),h=t(),m=l([]),g=a({set(e){const t=e?e.join("|#|"):e;f("update:value",t)},get:()=>v.value?v.value.split("|#|"):[]}),b=a((()=>{if(m.value&&m.value.length>0){let e=[],t=[];return m.value.forEach((l=>{l.labelList.forEach((l=>{e.includes(l.labelShowText)||(e.push(l.labelShowText),t.push({label:l.labelShowText,value:l.labelShowText}))}))})),t}return[]}));return(async()=>{try{const{widgetCfg:e={}}=v.componentCfg,{classifyStr:t=""}=e;let l=await c({classifyStr:t},"requestListByClassify",{},v.filterApiConfig);if(l){const{data:e}=l,{list:t=[]}=e;m.value=t}}catch(e){console.log(e)}})(),(e,t)=>(o(),i(u(r),s(u(h),{value:u(g),"onUpdate:value":t[0]||(t[0]=e=>n(g)?g.value=e:null),options:u(b)}),null,16,["value","options"]))}}),[["__file","SelectLabel.vue"]]);export{v as default};
1
+ import e from"./SelectLabel.vue2.js";import l from"../../../../../../_virtual/_plugin-vue_export-helper.js";var r=l(e,[["__file","SelectLabel.vue"]]);export{r as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,useAttrs as t,ref as l,computed as a,openBlock as o,createBlock as i,unref as s,mergeProps as u,isRef as n}from"vue";import{NSelect as r}from"naive-ui";import p from"../../../hooks/useMixins.js";var f=e({__name:"SelectLabel",props:{componentCfg:{type:Object},value:{type:String,default:""},filterApiConfig:{type:Object}},emits:["update:value"],setup(e,{emit:f}){const c=e,{handleGetConfigApi:v}=p(),h=t(),g=l([]),m=a({set(e){const t=e?e.join("|#|"):e;f("update:value",t)},get:()=>c.value?c.value.split("|#|"):[]}),b=a((()=>{if(g.value&&g.value.length>0){let e=[],t=[];return g.value.forEach((l=>{l.labelList.forEach((l=>{e.includes(l.labelShowText)||(e.push(l.labelShowText),t.push({label:l.labelShowText,value:l.labelShowText}))}))})),t}return[]}));return(async()=>{try{const{widgetCfg:e={}}=c.componentCfg,{classifyStr:t=""}=e;let l=await v({classifyStr:t},"requestListByClassify",{},c.filterApiConfig);if(l){const{data:e}=l,{list:t=[]}=e;g.value=t}}catch(e){console.log(e)}})(),(e,t)=>(o(),i(s(r),u(s(h),{value:s(m),"onUpdate:value":t[0]||(t[0]=e=>n(m)?m.value=e:null),options:s(b)}),null,16,["value","options"]))}});export{f as default};
@@ -1 +1 @@
1
- import{defineComponent as e,h as t}from"vue";import{WidgetTypeEnums as i}from"../../types/enums.js";import{WidgetCfgMaps as n}from"./widgetCfgMaps.js";import r from"../../../../../_virtual/plugin-vue_export-helper.js";const a=[i.DATE,i.DATE_TIME,i.CHECKBOX_GROUP];var l=r(e({props:{cfg:{type:Object,required:!0},modelValue:{type:[Array,String,Number]},filterApiConfig:{type:Object}},emits:["update:modelValue","outFilterChange","changeInit"],computed:{valueCp(){return this.cfg.value}},data:()=>({initialProps:{}}),methods:{search(){this.$emit("outFilterChange")},getEleWidth(e){const{widgetType:t,widgetCfg:n,filterExplicit:r}=e;if(a.includes(t))return;const l=i.SELECT!==t&&i.SELECTLABEL!==t||!n.multiple?"100%":"200px";return{width:0===r?"100%":e.advanceColWidth?`${e.advanceColWidth}px`:l}},initComponentProps(e){const{_frontId:t,widgetType:i,alias:r,title:a,placeholder:l,widgetCfg:o,filterExplicit:s}=e,{props:p,handlerProps:h}=n.get(i);let d={...p};h&&(d=h(d,{...o,title:r||a,_frontId:t,filterExplicit:s})),l&&(d.placeholder=l),this.initialProps=d,d.value&&(this.valueCp=d.value)},generateWidget(e){const{widgetType:i}=e;if(!n.has(i))return null;const{value:r}=e,{component:a,style:l,eventsBySearch:o=[]}=n.get(i),s={...this.initialProps,value:r,componentCfg:e,filterApiConfig:this.filterApiConfig},p=o.reduce(((e,t)=>{const{name:i,handler:n}=t;let r=this.search;return n&&(r=e=>{n(e,this.search,s)}),{...e,[`on${i}`]:r}}),{});return t(a,{...l,...s,style:this.getEleWidth(e),value:this.valueCp,"onUpdate:value":e=>this.handleUpdate(e),onChangeInitState:(...e)=>this.handleChangeInitState(...e),...p})},handleUpdate(e){this.$emit("update:modelValue",e)},handleChangeInitState(e,t){this.$emit("changeInit",e,t)}},created(){this.initComponentProps(this.cfg)},render(){return this.generateWidget(this.cfg)}}),[["__file","index.vue"]]);export{l as default};
1
+ import{defineComponent as e,h as t}from"vue";import{WidgetTypeEnums as i}from"../../types/enums.js";import{WidgetCfgMaps as n}from"./widgetCfgMaps.js";import r from"../../../../../_virtual/_plugin-vue_export-helper.js";const a=[i.DATE,i.DATE_TIME,i.CHECKBOX_GROUP];var l=r(e({props:{cfg:{type:Object,required:!0},modelValue:{type:[Array,String,Number]},filterApiConfig:{type:Object}},emits:["update:modelValue","outFilterChange","changeInit"],computed:{valueCp(){return this.cfg.value}},data:()=>({initialProps:{}}),methods:{search(){this.$emit("outFilterChange")},getEleWidth(e){const{widgetType:t,widgetCfg:n,filterExplicit:r}=e;if(a.includes(t))return;const l=i.SELECT!==t&&i.SELECTLABEL!==t||!n.multiple?"100%":"200px";return{width:0===r?"100%":e.advanceColWidth?`${e.advanceColWidth}px`:l}},initComponentProps(e){const{_frontId:t,widgetType:i,alias:r,title:a,placeholder:l,widgetCfg:o,filterExplicit:s}=e,{props:p,handlerProps:h}=n.get(i);let d={...p};h&&(d=h(d,{...o,title:r||a,_frontId:t,filterExplicit:s})),l&&(d.placeholder=l),this.initialProps=d,d.value&&(this.valueCp=d.value)},generateWidget(e){const{widgetType:i}=e;if(!n.has(i))return null;const{value:r}=e,{component:a,style:l,eventsBySearch:o=[]}=n.get(i),s={...this.initialProps,value:r,componentCfg:e,filterApiConfig:this.filterApiConfig},p=o.reduce(((e,t)=>{const{name:i,handler:n}=t;let r=this.search;return n&&(r=e=>{n(e,this.search,s)}),{...e,[`on${i}`]:r}}),{});return t(a,{...l,...s,style:this.getEleWidth(e),value:this.valueCp,"onUpdate:value":e=>this.handleUpdate(e),onChangeInitState:(...e)=>this.handleChangeInitState(...e),...p})},handleUpdate(e){this.$emit("update:modelValue",e)},handleChangeInitState(e,t){this.$emit("changeInit",e,t)}},created(){this.initComponentProps(this.cfg)},render(){return this.generateWidget(this.cfg)}}),[["__file","index.vue"]]);export{l as default};
@@ -1 +1 @@
1
- import{defineComponent as e,openBlock as t,createBlock as a,unref as l,withCtx as n,createElementBlock as i,Fragment as s,renderList as p,createVNode as r,createTextVNode as u,toDisplayString as m,createElementVNode as o,createCommentVNode as c}from"vue";import{NTimeline as f,NTimelineItem as y,NSpace as _,NButton as d}from"naive-ui";import v from"../../../_virtual/plugin-vue_export-helper.js";const x={class:"content"},T={class:"content-name"},g={key:0,class:"content-extra"};var k=v(e({__name:"TimeLine",props:{items:{type:Array,default:()=>[]}},setup:e=>(v,k)=>(t(),a(l(f),{class:"c-time-line"},{default:n((()=>[(t(!0),i(s,null,p(e.items,((e,f)=>(t(),a(l(y),{key:f,type:e.type},{default:n((()=>[(t(!0),i(s,null,p(e.subItem,((s,p)=>(t(),a(l(_),{key:p,vertical:"",align:"start"},{default:n((()=>[r(l(d),{strong:"",secondary:"",type:e.type},{default:n((()=>[u(m(s.title),1)])),_:2},1032,["type"]),o("div",x,[r(l(_),{justify:"space-between"},{default:n((()=>[o("span",T,m(s.name),1),o("span",null,m(s.time),1)])),_:2},1024),s.extraText?(t(),i("p",g,m(s.extraText),1)):c("v-if",!0),o("p",null,m(s.content),1)])])),_:2},1024)))),128))])),_:2},1032,["type"])))),128))])),_:1}))}),[["__file","TimeLine.vue"]]);export{k as default};
1
+ import e from"./TimeLine.vue2.js";import i from"../../../_virtual/_plugin-vue_export-helper.js";var r=i(e,[["__file","TimeLine.vue"]]);export{r as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,openBlock as t,createBlock as a,unref as n,withCtx as l,createElementBlock as s,Fragment as p,renderList as i,createVNode as r,createTextVNode as u,toDisplayString as c,createElementVNode as m,createCommentVNode as o}from"vue";import{NTimeline as y,NTimelineItem as f,NSpace as d,NButton as _}from"naive-ui";const v={class:"content"},x={class:"content-name"},k={key:0,class:"content-extra"};var T=e({__name:"TimeLine",props:{items:{type:Array,default:()=>[]}},setup:e=>(T,b)=>(t(),a(n(y),{class:"c-time-line"},{default:l((()=>[(t(!0),s(p,null,i(e.items,((e,y)=>(t(),a(n(f),{key:y,type:e.type},{default:l((()=>[(t(!0),s(p,null,i(e.subItem,((p,i)=>(t(),a(n(d),{key:i,vertical:"",align:"start"},{default:l((()=>[r(n(_),{strong:"",secondary:"",type:e.type},{default:l((()=>[u(c(p.title),1)])),_:2},1032,["type"]),m("div",v,[r(n(d),{justify:"space-between"},{default:l((()=>[m("span",x,c(p.name),1),m("span",null,c(p.time),1)])),_:2},1024),p.extraText?(t(),s("p",k,c(p.extraText),1)):o("v-if",!0),m("p",null,c(p.content),1)])])),_:2},1024)))),128))])),_:2},1032,["type"])))),128))])),_:1}))});export{T as default};
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as r,ref as t,computed as o,openBlock as s,createBlock as i,unref as m,mergeProps as u,createSlots as f,renderList as a,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 c}from"../../../shared/hooks/useDateTime.js";import _ from"../../../_virtual/plugin-vue_export-helper.js";var k=_(e({__name:"TimePicker",setup(e,{expose:_}){const k=r(),v=t(null),d=o((()=>Reflect.get(k,"format")?k.format:"HH:mm:ss")),{focus:h,blur:x}=c(v,d,k);return _({$timePicker:v,focus:h,blur:x}),(e,r)=>(s(),i(m(n),u({ref_key:"timePickerRef",ref:v},e.$attrs),f({_:2},[a(e.$slots,((r,t)=>({name:t,fn:l((()=>[p(e.$slots,t)]))})))]),1040))}}),[["__file","TimePicker.vue"]]);export{k as default};
1
+ import e from"./TimePicker.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","TimePicker.vue"]]);export{i as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,useAttrs as r,ref as s,computed as t,openBlock as o,createBlock as m,unref as i,mergeProps as a,createSlots as f,renderList as u,withCtx as l,renderSlot as n}from"vue";import{NTimePicker as p}from"naive-ui";import"../../../shared/utils/index.js";import"lodash-es";import{useDateTime as c}from"../../../shared/hooks/useDateTime.js";var d=e({__name:"TimePicker",setup(e,{expose:d}){const k=r(),h=s(null),$=t((()=>Reflect.get(k,"format")?k.format:"HH:mm:ss")),{focus:_,blur:v}=c(h,$,k);return d({$timePicker:h,focus:_,blur:v}),(e,r)=>(o(),m(i(p),a({ref_key:"timePickerRef",ref:h},e.$attrs),f({_:2},[u(e.$slots,((r,s)=>({name:s,fn:l((()=>[n(e.$slots,s)]))})))]),1040))}});export{d as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as l,reactive as t,onMounted as o,nextTick as i,onUnmounted as n,resolveComponent as a,openBlock as r,createElementBlock as s,createCommentVNode as c,createVNode as u,unref as d,withCtx as p,createElementVNode as f,Fragment as m,renderList as g,withDirectives as v,normalizeClass as h,toDisplayString as _,vShow as k,createTextVNode as y}from"vue";import L from"spark-md5";import C from"axios";import{useMessage as x,NIcon as z,NProgress as S,NButton as w}from"naive-ui";import{UploadProps as F,getUploadData as b,statusSet as I}from"./hooks/upload-data.js";import{UploadComputed as A}from"./hooks/upload-computed.js";import{FolderOutline as M,DocumentAttachOutline as q,Close as B}from"@vicons/ionicons5";import E from"../../../_virtual/plugin-vue_export-helper.js";const U={class:"c-chunk-upload-container"},$=f("p",null,"点击或将文件拖拽到这里上传",-1),D={class:"c-file-list-conatiner"},N={key:0,class:"file-list"},j={class:"c-f-item"},P={class:"c-f-item-icon"},R={class:"c-f-item-info"},T={class:"c-f-item-info-title"},G={class:"title"},J={class:"size"},K={class:"c-f-item-info-time"},O={class:"c-f-item-btn"},H={class:"upload-btn"},Q=f("span",null,"上传新文件",-1);var V=E(e({__name:"chunk-upload-new",props:{...F},emits:["getSumbitList","closeUpload"],setup(e,{expose:F,emit:E}){const V=e,{UploadState:W}=b();var X=C.create({});const Y=l(null),Z=l(null),ee=t(W),le=x(),{initState:te,uploadArguments:oe,autoStart:ie,btnAttrs:ne}=A(V,ee);te();const ae=e=>{let l=new FileReader;(new Date).getTime();let t=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,o=0;const i=1024e4;let n=Math.ceil(e.size/i),a=new L.ArrayBuffer;function r(){let n=o*i,a=n+i>=e.size?e.size:n+i;l.readAsArrayBuffer(t.call(e.file,n,a))}I(e,"md5"),e.pause(),r(),l.onload=l=>{if(a.append(l.target.result),o<n)o++,r();else{let l=a.end();se(l,e)}},l.onerror=function(){console.warn(`文件${e.name}读取出错,请检查该文件`),e.cancel()}},re=e=>{let l=(e=>{const l=(null==V?void 0:V.max_size)||"";if(!l)return!1;let t=e.size/1024<+l;return t||le.error(`附件大小超过了${(e=>{let l;return e?(l=+(+e).toFixed(2),l<1024?l+"KB":l<1048576?(l/1024).toFixed(2)+"MB":l<1073741824?(l/1048576).toFixed(2)+"GB":void 0):l})(l)}`),!t})(e);((e,l)=>{let t=!1;if(e){if(e.includes("*"))return!1;let o=l.getExtension();e.includes(o)||(le.error(`不支持${o}格式`),t=!0)}return t})(V.propsCategoryMap,e)||(()=>{var e,l;if(V.maxLength>0){let t=(null==(e=V.defaultList)?void 0:e.length)||0,o=(null==(l=ee.configList)?void 0:l.length)||0;if(V.maxLength<=t+o)return le.error(`最多只能上传${V.maxLength}个`),!0}return!1})()||l?e.ignored=!0:(e.file_upload_status="",I(e,"init"),e.crm_upload_config={...e},ee.configList.push(e),I(e,"ready"),ie.value&&(e.pause(),ae(e)))},se=async(e,l)=>{try{const t=await((e,l,t)=>{let o=ee.uploadConfig.checkFileMd5Exist;return new Promise(((i,n)=>{const a={md5:l,fileName:e,...oe.value};X.get(o,{params:a}).then((e=>{i(e.data)})).catch((e=>{I(t,"failed"),console.log("verifyUpload -> err",e)}))}))})(l.name,e,l);if("00000"==t.code){const{data:e}=t||{};if(e.presence)return I(l,"complete"),l.crm_chkuns_complete_status="complete",void(l.crm_uploade_resInfo={url:e.path,name:l.name,size:l.size})}l.uniqueIdentifier=e,I(l,"uploading"),l.resume()}catch(e){console.log(e,"chunk-upload-computeMD5Success")}},ce=()=>{},ue=(e,l,t)=>{let o=JSON.parse(t);o.success?(I(l,"merging"),((e,l)=>{new Promise(((t,o)=>{const i={...e,...oe.value};X.post(ee.uploadConfig.partFileMerge,i,{timeout:0}).then((({data:e})=>{if("00000"===e.code){if(I(l,"complete"),Y.value){let t=(null==e?void 0:e.data)||{};Y.value.fileList.forEach((e=>{e.uniqueIdentifier==l.uniqueIdentifier&&(e.crm_chkuns_complete_status="complete",e.crm_uploade_resInfo={url:t.path||t.url,name:l.name,size:l.size,...t})}))}t()}else le.error("上传失败"),t()})).catch((e=>{console.log("mergeRequest -> err",e),o()}))}))})({md5:l.uniqueIdentifier,fileName:l.name,fileChunkNum:l.chunks.length},l),o.needMerge&&I(l,"merging")):I(l,"failed")},de=()=>{var e,l;let t=(null==(l=null==(e=null==Z?void 0:Z.value)?void 0:e.$el)?void 0:l.querySelector("input"))||!1;t&&t.click()},pe=(e,l="text")=>((null==e?void 0:e.file_upload_status)||{})[l],fe=e=>["complete","failed"].includes(pe(e,"status")),me=(e,l)=>{I(l,"failed")},ge=(e,l)=>{if("complete"==l.crm_chkuns_complete_status)return 100;return parseInt(100*e+"",10)},ve=()=>{var e;0!=((null==(e=ee.configList)?void 0:e.length)||0)?i((()=>{ee.configList.forEach((e=>{(e.file_upload_status||{}).status&&(I(e,"uploading"),ae(e))}))})):le.info("请选择文件")},he=()=>{var e,l;console.log("cancelcancelcancel"),null==(l=null==(e=Y.value)?void 0:e.uploader)||l.cancel(),ee.configList=[],E("closeUpload",!1)};return(()=>{try{console.log(V.getChunkUploadConfig),V.getChunkUploadConfig().then((e=>{console.log(e),ee.uploadConfig={...e},ee.headers={Authorization:"bearer "+ee.uploadConfig.token},(()=>{for(const e in ee.headers)X.defaults.headers.common[e]=ee.headers[e];X.defaults.withCredentials=ee.withCredentials})()}))}catch(e){console.log(e)}})(),o((()=>{i((()=>{}))})),n((()=>{})),F({cancel:he,confirm:()=>{console.log("ininini");const{configList:e}=ee;0!==((null==e?void 0:e.length)||0)?e.filter((e=>!["complete","failed"].includes(e.file_upload_status.status))).length>0?le.info("请上传文件或者等待文件上传完成!"):((()=>{var e;let l=(null==(e=null==ee?void 0:ee.configList)?void 0:e.length)||0,t=[];l>0&&ee.configList.forEach((e=>{"complete"==e.crm_chkuns_complete_status&&t.push({size:e.size,...e.crm_uploade_resInfo})})),E("getSumbitList",t)})(),he()):le.info("请选择文件上传")}}),(e,l)=>{const t=a("uploader-unsupport"),o=a("uploader-drop"),i=a("uploader-file"),n=a("uploader-list"),L=a("uploader-btn"),C=a("uploader");return r(),s("div",U,[c(" 上传 "),u(C,{ref_key:"uploaderDom",ref:Y,options:ee.options,autoStart:d(ie),onFileAdded:re,onFileSuccess:ue,onFileProgress:ce,onFileError:me,class:"uploader-app"},{default:p((()=>[u(t),u(o,null,{default:p((()=>[f("div",{class:"c-drap-container dragger-btn",onClick:de},[u(d(z),{component:d(M)},null,8,["component"]),$])])),_:1}),u(n,null,{default:p((e=>[f("div",D,[e?(r(),s("ul",N,[(r(!0),s(m,null,g(e.fileList,(e=>(r(),s("li",{key:e.id},[v(u(i,{class:h("file_"+e.id),ref_for:!0,ref:"files",file:e,list:!0},{default:p((l=>[f("div",{class:h(["c-file-container",{"c-file-boder-bottom":fe(e)}])},[f("div",j,[f("div",P,[u(d(z),{component:d(q),style:{color:"#5585f5"}},null,8,["component"])]),f("div",R,[f("div",T,[f("span",G,_(e.name),1),f("span",J,"("+_(l.formatedSize)+")",1)]),f("div",K,[f("span",null,_(l.formatedTimeRemaining),1),f("span",null,_(pe(e,"text")),1)])]),f("div",O,[u(d(z),{component:d(B),onClick:l=>(e=>{e.cancel?e.cancel():e.remove&&e.remove();let l=e.id;ee.configList=ee.configList.filter((e=>e.id!==l))})(e)},null,8,["component","onClick"])])]),u(d(S),{percentage:ge(ee.progress,e),type:"line","show-indicator":!1},null,8,["percentage"])],2)])),_:2},1032,["class","file"]),[[k,!e.ignored]])])))),128))])):c("v-if",!0)])])),_:1}),f("div",H,[v(u(L,{attrs:d(ne),ref_key:"uploadBtnDom",ref:Z},{default:p((()=>[Q])),_:1},8,["attrs"]),[[k,!1]]),u(d(w),{type:"primary",class:"mgl-10",onClick:ve},{default:p((()=>[y("开始上传")])),_:1})])])),_:1},8,["options","autoStart"])])}}}),[["__file","chunk-upload-new.vue"]]);export{V as default};
1
+ import e from"./chunk-upload-new.vue2.js";import u from"../../../_virtual/_plugin-vue_export-helper.js";var r=u(e,[["__file","chunk-upload-new.vue"]]);export{r as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,reactive as l,onMounted as o,nextTick as i,onUnmounted as n,resolveComponent as a,openBlock as s,createElementBlock as r,createCommentVNode as c,createVNode as u,unref as d,withCtx as p,createElementVNode as f,Fragment as m,renderList as g,withDirectives as h,normalizeClass as v,toDisplayString as _,vShow as k,createTextVNode as y}from"vue";import L from"spark-md5";import C from"axios";import{useMessage as z,NIcon as x,NProgress as S,NButton as F}from"naive-ui";import{UploadProps as w,getUploadData as b,statusSet as I}from"./hooks/upload-data.js";import{UploadComputed as A}from"./hooks/upload-computed.js";import{FolderOutline as M,DocumentAttachOutline as q,Close as B}from"@vicons/ionicons5";const E={class:"c-chunk-upload-container"},U=f("p",null,"点击或将文件拖拽到这里上传",-1),$={class:"c-file-list-conatiner"},D={key:0,class:"file-list"},N={class:"c-f-item"},P={class:"c-f-item-icon"},R={class:"c-f-item-info"},j={class:"c-f-item-info-title"},T={class:"title"},G={class:"size"},J={class:"c-f-item-info-time"},K={class:"c-f-item-btn"},O={class:"upload-btn"},H=f("span",null,"上传新文件",-1);var Q=e({__name:"chunk-upload-new",props:{...w},emits:["getSumbitList","closeUpload"],setup(e,{expose:w,emit:Q}){const V=e,{UploadState:W}=b();var X=C.create({});const Y=t(null),Z=t(null),ee=l(W),te=z(),{initState:le,uploadArguments:oe,autoStart:ie,btnAttrs:ne}=A(V,ee);le();const ae=e=>{let t=new FileReader;(new Date).getTime();let l=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,o=0;const i=1024e4;let n=Math.ceil(e.size/i),a=new L.ArrayBuffer;function s(){let n=o*i,a=n+i>=e.size?e.size:n+i;t.readAsArrayBuffer(l.call(e.file,n,a))}I(e,"md5"),e.pause(),s(),t.onload=t=>{if(a.append(t.target.result),o<n)o++,s();else{let t=a.end();re(t,e)}},t.onerror=function(){console.warn(`文件${e.name}读取出错,请检查该文件`),e.cancel()}},se=e=>{let t=(e=>{const t=(null==V?void 0:V.max_size)||"";if(!t)return!1;let l=e.size/1024<+t;return l||te.error(`附件大小超过了${(e=>{let t;return e?(t=+(+e).toFixed(2),t<1024?t+"KB":t<1048576?(t/1024).toFixed(2)+"MB":t<1073741824?(t/1048576).toFixed(2)+"GB":void 0):t})(t)}`),!l})(e);((e,t)=>{let l=!1;if(e){if(e.includes("*"))return!1;let o=t.getExtension();e.includes(o)||(te.error(`不支持${o}格式`),l=!0)}return l})(V.propsCategoryMap,e)||(()=>{var e,t;if(V.maxLength>0){let l=(null==(e=V.defaultList)?void 0:e.length)||0,o=(null==(t=ee.configList)?void 0:t.length)||0;if(V.maxLength<=l+o)return te.error(`最多只能上传${V.maxLength}个`),!0}return!1})()||t?e.ignored=!0:(e.file_upload_status="",I(e,"init"),e.crm_upload_config={...e},ee.configList.push(e),I(e,"ready"),ie.value&&(e.pause(),ae(e)))},re=async(e,t)=>{try{const l=await((e,t,l)=>{let o=ee.uploadConfig.checkFileMd5Exist;return new Promise(((i,n)=>{const a={md5:t,fileName:e,...oe.value};X.get(o,{params:a}).then((e=>{i(e.data)})).catch((e=>{I(l,"failed"),console.log("verifyUpload -> err",e)}))}))})(t.name,e,t);if("00000"==l.code){const{data:e}=l||{};if(e.presence)return I(t,"complete"),t.crm_chkuns_complete_status="complete",void(t.crm_uploade_resInfo={url:e.path,name:t.name,size:t.size})}t.uniqueIdentifier=e,I(t,"uploading"),t.resume()}catch(e){console.log(e,"chunk-upload-computeMD5Success")}},ce=()=>{},ue=(e,t,l)=>{let o=JSON.parse(l);o.success?(I(t,"merging"),((e,t)=>{new Promise(((l,o)=>{const i={...e,...oe.value};X.post(ee.uploadConfig.partFileMerge,i,{timeout:0}).then((({data:e})=>{if("00000"===e.code){if(I(t,"complete"),Y.value){let l=(null==e?void 0:e.data)||{};Y.value.fileList.forEach((e=>{e.uniqueIdentifier==t.uniqueIdentifier&&(e.crm_chkuns_complete_status="complete",e.crm_uploade_resInfo={url:l.path||l.url,name:t.name,size:t.size,...l})}))}l()}else te.error("上传失败"),l()})).catch((e=>{console.log("mergeRequest -> err",e),o()}))}))})({md5:t.uniqueIdentifier,fileName:t.name,fileChunkNum:t.chunks.length},t),o.needMerge&&I(t,"merging")):I(t,"failed")},de=()=>{var e,t;let l=(null==(t=null==(e=null==Z?void 0:Z.value)?void 0:e.$el)?void 0:t.querySelector("input"))||!1;l&&l.click()},pe=(e,t="text")=>((null==e?void 0:e.file_upload_status)||{})[t],fe=e=>["complete","failed"].includes(pe(e,"status")),me=(e,t)=>{I(t,"failed")},ge=(e,t)=>{if("complete"==t.crm_chkuns_complete_status)return 100;return parseInt(100*e+"",10)},he=()=>{var e;0!=((null==(e=ee.configList)?void 0:e.length)||0)?i((()=>{ee.configList.forEach((e=>{(e.file_upload_status||{}).status&&(I(e,"uploading"),ae(e))}))})):te.info("请选择文件")},ve=()=>{var e,t;console.log("cancelcancelcancel"),null==(t=null==(e=Y.value)?void 0:e.uploader)||t.cancel(),ee.configList=[],Q("closeUpload",!1)};return(()=>{try{console.log(V.getChunkUploadConfig),V.getChunkUploadConfig().then((e=>{console.log(e),ee.uploadConfig={...e},ee.headers={Authorization:"bearer "+ee.uploadConfig.token},(()=>{for(const e in ee.headers)X.defaults.headers.common[e]=ee.headers[e];X.defaults.withCredentials=ee.withCredentials})()}))}catch(e){console.log(e)}})(),o((()=>{i((()=>{}))})),n((()=>{})),w({cancel:ve,confirm:()=>{console.log("ininini");const{configList:e}=ee;0!==((null==e?void 0:e.length)||0)?e.filter((e=>!["complete","failed"].includes(e.file_upload_status.status))).length>0?te.info("请上传文件或者等待文件上传完成!"):((()=>{var e;let t=(null==(e=null==ee?void 0:ee.configList)?void 0:e.length)||0,l=[];t>0&&ee.configList.forEach((e=>{"complete"==e.crm_chkuns_complete_status&&l.push({size:e.size,...e.crm_uploade_resInfo})})),Q("getSumbitList",l)})(),ve()):te.info("请选择文件上传")}}),(e,t)=>{const l=a("uploader-unsupport"),o=a("uploader-drop"),i=a("uploader-file"),n=a("uploader-list"),L=a("uploader-btn"),C=a("uploader");return s(),r("div",E,[c(" 上传 "),u(C,{ref_key:"uploaderDom",ref:Y,options:ee.options,autoStart:d(ie),onFileAdded:se,onFileSuccess:ue,onFileProgress:ce,onFileError:me,class:"uploader-app"},{default:p((()=>[u(l),u(o,null,{default:p((()=>[f("div",{class:"c-drap-container dragger-btn",onClick:de},[u(d(x),{component:d(M)},null,8,["component"]),U])])),_:1}),u(n,null,{default:p((e=>[f("div",$,[e?(s(),r("ul",D,[(s(!0),r(m,null,g(e.fileList,(e=>(s(),r("li",{key:e.id},[h(u(i,{class:v("file_"+e.id),ref_for:!0,ref:"files",file:e,list:!0},{default:p((t=>[f("div",{class:v(["c-file-container",{"c-file-boder-bottom":fe(e)}])},[f("div",N,[f("div",P,[u(d(x),{component:d(q),style:{color:"#5585f5"}},null,8,["component"])]),f("div",R,[f("div",j,[f("span",T,_(e.name),1),f("span",G,"("+_(t.formatedSize)+")",1)]),f("div",J,[f("span",null,_(t.formatedTimeRemaining),1),f("span",null,_(pe(e,"text")),1)])]),f("div",K,[u(d(x),{component:d(B),onClick:t=>(e=>{e.cancel?e.cancel():e.remove&&e.remove();let t=e.id;ee.configList=ee.configList.filter((e=>e.id!==t))})(e)},null,8,["component","onClick"])])]),u(d(S),{percentage:ge(ee.progress,e),type:"line","show-indicator":!1},null,8,["percentage"])],2)])),_:2},1032,["class","file"]),[[k,!e.ignored]])])))),128))])):c("v-if",!0)])])),_:1}),f("div",O,[h(u(L,{attrs:d(ne),ref_key:"uploadBtnDom",ref:Z},{default:p((()=>[H])),_:1},8,["attrs"]),[[k,!1]]),u(d(F),{type:"primary",class:"mgl-10",onClick:he},{default:p((()=>[y("开始上传")])),_:1})])])),_:1},8,["options","autoStart"])])}}});export{Q as default};
@@ -1 +1 @@
1
- import{defineComponent as e,reactive as o,computed as l,onMounted as s,openBlock as i,createElementBlock as t,withDirectives as a,normalizeClass as r,unref as n,createElementVNode as d,Fragment as u,vShow as p,createCommentVNode as m,createVNode as c,withCtx as v,normalizeStyle as f,toDisplayString as g,createTextVNode as h,withModifiers as k,createBlock as y}from"vue";import"xe-utils";import"moment";import b from"../../../../shared/utils/vexutilsExpand.js";import{getVodData as C}from"../hooks/vod-data.js";import{VodComputed as U}from"../hooks/vod-computed.js";import L from"../../../../shared/components/player-vod/video-modal.js";import V from"../vod-upload-modal.js";import{NIcon as _,NButton as D}from"naive-ui";import{PlayCircleSharp as x,PlayCircleOutline as O,RemoveCircleSharp as w}from"@vicons/ionicons5";import S from"../../../../shared/assets/img/video_default_cover.png.js";import j from"../../../../shared/assets/img/video.png.js";import F from"../../../../shared/assets/img/success.png.js";import z from"../../../../shared/components/VueDraggable/src/vuedraggable.js";import N from"../../../../_virtual/plugin-vue_export-helper.js";const M={class:"c-upload"},A={class:"chunk-btn-content"},J={class:"c-uploader-btn"},B=["src"],E=d("div",{class:"uploader-text"},[d("p",null,"点击上传"),d("span",{class:"guage-text"},"上传视频(不超过50M)")],-1),P=["src"],T=d("div",{class:"uploader-text"},[d("p",null,"上传视频")],-1),R={class:"vod-wrap c-uploader-preview-wrap"},G={key:0,class:"vod-def-bg vod-uploading"},H={class:"vod-def-bg vod-done"},K=["src"],$=["src"],q={class:"c-icon-wrap"},I={class:"vod-def-bg vod-error"},Q=["src"],W={class:"tooltip-wrap error-wrap"},X=["onClick"];var Y=N(e({__name:"vod-chunk-upload",props:{formData:{type:Object,default:()=>({})},source:String,limitNum:{default:1},defFileList:{default:""},isLock:Boolean,isDetail:{type:Boolean,default:!1},getChunkUploadConfig:{type:Function,default:()=>Promise.resolve({})}},emits:["vodFileList"],setup(e,{emit:N}){const Y=e,{VodState:Z}=C(),ee=o(Z),oe={},{isShowBtn:le,maskHeight:se,showPercent:ie,allow_format:te,defaultValue:ae,isDisabled:re,max_size:ne,maxlength:de}=U(Y,ee,{mainForm:oe});console.log(le.value,"----isShowBtn---",Y.formData.title),l((()=>ue()));const ue=()=>{const{formData:e}=Y;let o=[];if(o="guage"===Y.source?Y.defFileList:null==oe?void 0:oe.handleSysParams(oe.defaultValue[e.name]||e.default_val),o=JSON.parse(JSON.stringify(o)),!o)return[];let l=[];return Array.isArray(o)&&(l=[...o]),b.isJSON(o)&&(l=JSON.parse(o)),Array.isArray(l)?(l.forEach((e=>{e.thumbUrl=e.vodCoverUrl||void 0,e.uid=(-Math.random()).toString(),e.status="done"})),ee.fileList=l,console.log(ee.fileList,"----list---list"),pe(l),l):[]},pe=e=>{if(!Array.isArray(e))return"";const{formData:o,source:l}=Y;let s=[];e.forEach((e=>{if("done"===e.status&&(e.response&&"00000"==e.response.code||e.url)){const{data:o={}}=e.response||{};e.url||o.videoUrl;let l=e.vodCoverUrl||o.vodCoverUrl;s.push({name:e.name,size:e.size,url:e.url||o.videoUrl,vodCoverUrl:l,uid:e.id||e.uid||(-Math.random()).toString()})}})),console.log(s,"---resList---",Y.formData.title);let i=JSON.stringify(s);"guage"!==l?oe.baseForm.setFieldsValue({[o.val_key]:i}):N("vodFileList",i,Y.formData)},me=(e,o)=>{let l,s;if(e.type&&(s=e.type),e.url||e.videoUrl){if(l=e.url||e.videoUrl,!s){let e=l.split(".");s=`video/${e[e.length-1]}`}}else l=URL.createObjectURL(e.originFileObj);ee.playerOptions={sources:[{type:s,src:l}]},ee.videoVisible=!0},ce=()=>{ee.videoVisible=!1},ve=()=>{re.value||(ee.chunkUploadVisible=!0)},fe=e=>{let o=[];e.forEach((e=>{let l=e.videoCoverPic||void 0;o.push({name:e.videoName||e.name,url:e.videoUrl||e.url,size:e.size,vodCoverUrl:l,status:"done",uid:(-Math.random()).toString()})})),ee.fileList.push(...o),pe(ee.fileList)},ge=()=>{pe(ee.fileList)};return s((()=>{ue()})),(o,l)=>(i(),t("div",M,[e.isDetail||Y.isLock?m("v-if",!0):a((i(),t("div",{key:0,class:r(["c-chunk-uploader-btn",{"disable-upload":n(re)}]),onClick:ve},[d("div",A,[d("div",J,["guage"==Y.source?(i(),t(u,{key:0},[d("img",{src:n(j),class:"guage-img"},null,8,B),E],64)):(i(),t(u,{key:1},[d("img",{src:n(j),class:"guage-img"},null,8,P),T],64))])])],2)),[[p,n(le)]]),c(n(z),{modelValue:ee.fileList,"onUpdate:modelValue":l[0]||(l[0]=e=>ee.fileList=e),animation:"150",itemKey:"uid",disabled:n(re).value,options:ee.draggableOptions,onUpdate:ge,class:"drag-content"},{item:v((({element:o,index:l})=>{return[d("div",R,[m(" 上传中 "),"uploading"===o.status?(i(),t("div",G,[m(" TODO: 封面图补充 "),d("div",{class:"uploading-mask",style:f({height:n(se)(o)})},[d("span",null,g(n(ie)(o.percent))+"%",1)],4)])):"done"===o.status?(i(),t(u,{key:1},[m(" 上传完成 "),d("div",H,[d("img",{src:(s=o,s.thumbUrl?s.thumbUrl:S),class:"vod-cover-img"},null,8,K),d("div",{class:r(["tooltip-wrap",{"is-new":o.isNew}])},[d("img",{src:n(F),class:"upload-img"},null,8,$),h(" 上传成功 ")],2),m(" 播放图标 "),d("div",q,[c(n(_),{component:n(x),class:"icon-play theme_filled",onClick:k((e=>me(o)),["prevent","stop"])},null,8,["component","onClick"]),c(n(_),{component:n(O),class:"icon-play theme_outlined",onClick:k((e=>me(o)),["prevent","stop"])},null,8,["component","onClick"])])])],2112)):"error"===o.status?(i(),t(u,{key:2},[m(" 上传失败 "),d("div",I,[d("img",{src:o.thumbUrl,class:"vod-cover-img"},null,8,Q),d("div",W,[d("span",null,g(o.message?o.message:"上传失败,继续上传?"),1),c(n(D),{size:"small",onClick:k((e=>{}),["prevent","stop"])},{default:v((()=>[h("确定")])),_:2},1032,["onClick"])])])],2112)):m("v-if",!0),!["done","error"].includes(o.status)||n(re)||e.isDetail?m("v-if",!0):(i(),t("div",{key:3,onClick:k((e=>{return o=l,ee.fileList.splice(o,1),void pe(ee.fileList);var o}),["stop"]),class:"uploader-preview-delete"},[c(n(_),{class:"pre-delete",component:n(w)},null,8,["component"])],8,X))])];var s})),_:1},8,["modelValue","disabled","options"]),ee.videoVisible?(i(),y(n(L),{key:1,visible:ee.videoVisible,formData:Y.formData,playerOptions:ee.playerOptions,onCloseVideoModal:ce},null,8,["visible","formData","playerOptions"])):m("v-if",!0),c(n(V),{modelValue:ee.chunkUploadVisible,"onUpdate:modelValue":l[1]||(l[1]=e=>ee.chunkUploadVisible=e),modalTitle:Y.formData.name,max_size:n(ne),maxLength:n(de),propsCategoryMap:n(te),defaultList:ee.fileList,getChunkUploadConfig:e.getChunkUploadConfig,onGetSumbitList:fe},null,8,["modelValue","modalTitle","max_size","maxLength","propsCategoryMap","defaultList","getChunkUploadConfig"])]))}}),[["__file","vod-chunk-upload.vue"]]);export{Y as default};
1
+ import o from"./vod-chunk-upload.vue2.js";import u from"../../../../_virtual/_plugin-vue_export-helper.js";var e=u(o,[["__file","vod-chunk-upload.vue"]]);export{e as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,reactive as o,computed as s,onMounted as l,openBlock as i,createElementBlock as t,withDirectives as a,normalizeClass as r,unref as n,createElementVNode as d,Fragment as u,vShow as p,createCommentVNode as m,createVNode as c,withCtx as v,normalizeStyle as f,toDisplayString as g,createTextVNode as h,withModifiers as y,createBlock as k}from"vue";import"xe-utils";import"moment";import b from"../../../../shared/utils/vexutilsExpand.js";import{getVodData as C}from"../hooks/vod-data.js";import{VodComputed as U}from"../hooks/vod-computed.js";import L from"../../../../shared/components/player-vod/video-modal.js";import V from"../vod-upload-modal.js";import{NIcon as D,NButton as O}from"naive-ui";import{PlayCircleSharp as w,PlayCircleOutline as x,RemoveCircleSharp as S}from"@vicons/ionicons5";import _ from"../../../../shared/assets/img/video_default_cover.png.js";import j from"../../../../shared/assets/img/video.png.js";import F from"../../../../shared/assets/img/success.png.js";import z from"../../../../shared/components/VueDraggable/src/vuedraggable.js";const N={class:"c-upload"},M={class:"chunk-btn-content"},A={class:"c-uploader-btn"},J=["src"],B=d("div",{class:"uploader-text"},[d("p",null,"点击上传"),d("span",{class:"guage-text"},"上传视频(不超过50M)")],-1),E=["src"],P=d("div",{class:"uploader-text"},[d("p",null,"上传视频")],-1),T={class:"vod-wrap c-uploader-preview-wrap"},R={key:0,class:"vod-def-bg vod-uploading"},G={class:"vod-def-bg vod-done"},H=["src"],K=["src"],$={class:"c-icon-wrap"},q={class:"vod-def-bg vod-error"},I=["src"],Q={class:"tooltip-wrap error-wrap"},W=["onClick"];var X=e({__name:"vod-chunk-upload",props:{formData:{type:Object,default:()=>({})},source:String,limitNum:{default:1},defFileList:{default:""},isLock:Boolean,isDetail:{type:Boolean,default:!1},getChunkUploadConfig:{type:Function,default:()=>Promise.resolve({})}},emits:["vodFileList"],setup(e,{emit:X}){const Y=e,{VodState:Z}=C(),ee=o(Z),oe={},{isShowBtn:se,maskHeight:le,showPercent:ie,allow_format:te,defaultValue:ae,isDisabled:re,max_size:ne,maxlength:de}=U(Y,ee,{mainForm:oe});console.log(se.value,"----isShowBtn---",Y.formData.title),s((()=>ue()));const ue=()=>{const{formData:e}=Y;let o=[];if(o="guage"===Y.source?Y.defFileList:null==oe?void 0:oe.handleSysParams(oe.defaultValue[e.name]||e.default_val),o=JSON.parse(JSON.stringify(o)),!o)return[];let s=[];return Array.isArray(o)&&(s=[...o]),b.isJSON(o)&&(s=JSON.parse(o)),Array.isArray(s)?(s.forEach((e=>{e.thumbUrl=e.vodCoverUrl||void 0,e.uid=(-Math.random()).toString(),e.status="done"})),ee.fileList=s,console.log(ee.fileList,"----list---list"),pe(s),s):[]},pe=e=>{if(!Array.isArray(e))return"";const{formData:o,source:s}=Y;let l=[];e.forEach((e=>{if("done"===e.status&&(e.response&&"00000"==e.response.code||e.url)){const{data:o={}}=e.response||{};e.url||o.videoUrl;let s=e.vodCoverUrl||o.vodCoverUrl;l.push({name:e.name,size:e.size,url:e.url||o.videoUrl,vodCoverUrl:s,uid:e.id||e.uid||(-Math.random()).toString()})}})),console.log(l,"---resList---",Y.formData.title);let i=JSON.stringify(l);"guage"!==s?oe.baseForm.setFieldsValue({[o.val_key]:i}):X("vodFileList",i,Y.formData)},me=(e,o)=>{let s,l;if(e.type&&(l=e.type),e.url||e.videoUrl){if(s=e.url||e.videoUrl,!l){let e=s.split(".");l=`video/${e[e.length-1]}`}}else s=URL.createObjectURL(e.originFileObj);ee.playerOptions={sources:[{type:l,src:s}]},ee.videoVisible=!0},ce=()=>{ee.videoVisible=!1},ve=()=>{re.value||(ee.chunkUploadVisible=!0)},fe=e=>{let o=[];e.forEach((e=>{let s=e.videoCoverPic||void 0;o.push({name:e.videoName||e.name,url:e.videoUrl||e.url,size:e.size,vodCoverUrl:s,status:"done",uid:(-Math.random()).toString()})})),ee.fileList.push(...o),pe(ee.fileList)},ge=()=>{pe(ee.fileList)};return l((()=>{ue()})),(o,s)=>(i(),t("div",N,[e.isDetail||Y.isLock?m("v-if",!0):a((i(),t("div",{key:0,class:r(["c-chunk-uploader-btn",{"disable-upload":n(re)}]),onClick:ve},[d("div",M,[d("div",A,["guage"==Y.source?(i(),t(u,{key:0},[d("img",{src:n(j),class:"guage-img"},null,8,J),B],64)):(i(),t(u,{key:1},[d("img",{src:n(j),class:"guage-img"},null,8,E),P],64))])])],2)),[[p,n(se)]]),c(n(z),{modelValue:ee.fileList,"onUpdate:modelValue":s[0]||(s[0]=e=>ee.fileList=e),animation:"150",itemKey:"uid",disabled:n(re).value,options:ee.draggableOptions,onUpdate:ge,class:"drag-content"},{item:v((({element:o,index:s})=>{return[d("div",T,[m(" 上传中 "),"uploading"===o.status?(i(),t("div",R,[m(" TODO: 封面图补充 "),d("div",{class:"uploading-mask",style:f({height:n(le)(o)})},[d("span",null,g(n(ie)(o.percent))+"%",1)],4)])):"done"===o.status?(i(),t(u,{key:1},[m(" 上传完成 "),d("div",G,[d("img",{src:(l=o,l.thumbUrl?l.thumbUrl:_),class:"vod-cover-img"},null,8,H),d("div",{class:r(["tooltip-wrap",{"is-new":o.isNew}])},[d("img",{src:n(F),class:"upload-img"},null,8,K),h(" 上传成功 ")],2),m(" 播放图标 "),d("div",$,[c(n(D),{component:n(w),class:"icon-play theme_filled",onClick:y((e=>me(o)),["prevent","stop"])},null,8,["component","onClick"]),c(n(D),{component:n(x),class:"icon-play theme_outlined",onClick:y((e=>me(o)),["prevent","stop"])},null,8,["component","onClick"])])])],2112)):"error"===o.status?(i(),t(u,{key:2},[m(" 上传失败 "),d("div",q,[d("img",{src:o.thumbUrl,class:"vod-cover-img"},null,8,I),d("div",Q,[d("span",null,g(o.message?o.message:"上传失败,继续上传?"),1),c(n(O),{size:"small",onClick:y((e=>{}),["prevent","stop"])},{default:v((()=>[h("确定")])),_:2},1032,["onClick"])])])],2112)):m("v-if",!0),!["done","error"].includes(o.status)||n(re)||e.isDetail?m("v-if",!0):(i(),t("div",{key:3,onClick:y((e=>{return o=s,ee.fileList.splice(o,1),void pe(ee.fileList);var o}),["stop"]),class:"uploader-preview-delete"},[c(n(D),{class:"pre-delete",component:n(S)},null,8,["component"])],8,W))])];var l})),_:1},8,["modelValue","disabled","options"]),ee.videoVisible?(i(),k(n(L),{key:1,visible:ee.videoVisible,formData:Y.formData,playerOptions:ee.playerOptions,onCloseVideoModal:ce},null,8,["visible","formData","playerOptions"])):m("v-if",!0),c(n(V),{modelValue:ee.chunkUploadVisible,"onUpdate:modelValue":s[1]||(s[1]=e=>ee.chunkUploadVisible=e),modalTitle:Y.formData.name,max_size:n(ne),maxLength:n(de),propsCategoryMap:n(te),defaultList:ee.fileList,getChunkUploadConfig:e.getChunkUploadConfig,onGetSumbitList:fe},null,8,["modelValue","modalTitle","max_size","maxLength","propsCategoryMap","defaultList","getChunkUploadConfig"])]))}});export{X as default};
package/es/env.d.ts CHANGED
@@ -1,25 +1,25 @@
1
- /// <reference types="vite/client" />
2
-
3
- interface ImportMetaEnv {
4
- readonly VITE_APP_TYPE: string;
5
- // 更多环境变量...
6
- }
7
-
8
- interface ImportMeta {
9
- readonly env: ImportMetaEnv;
10
- }
11
-
12
- declare module '*.vue' {
13
- // @ts-ignore
14
- import type { App, defineComponent } from 'vue';
15
- // // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
16
- // // const component: DefineComponent<{}, {}, any>
17
- const component: ReturnType<typeof defineComponent> & {
18
- install(app: App): void;
19
- };
20
- // @ts-ignore
21
- export default component;
22
- }
23
-
24
- declare module '*.js';
25
-
1
+ /// <reference types="vite/client" />
2
+
3
+ interface ImportMetaEnv {
4
+ readonly VITE_APP_TYPE: string;
5
+ // 更多环境变量...
6
+ }
7
+
8
+ interface ImportMeta {
9
+ readonly env: ImportMetaEnv;
10
+ }
11
+
12
+ declare module '*.vue' {
13
+ // @ts-ignore
14
+ import type { App, defineComponent } from 'vue';
15
+ // // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
16
+ // // const component: DefineComponent<{}, {}, any>
17
+ const component: ReturnType<typeof defineComponent> & {
18
+ install(app: App): void;
19
+ };
20
+ // @ts-ignore
21
+ export default component;
22
+ }
23
+
24
+ declare module '*.js';
25
+
@@ -1 +1 @@
1
- import{defineComponent as e,resolveComponent as a,openBlock as n,createElementBlock as o,createVNode as t,unref as l,withModifiers as s,withCtx as r,createTextVNode as c}from"vue";import{NButton as i}from"naive-ui";import{ChevronBackOutline as g,ChevronForwardOutline as p}from"@vicons/ionicons5";import d from"../../../_virtual/plugin-vue_export-helper.js";var f=d(e({__name:"SelectPage",props:{searchPageConfig:{type:Object,default:()=>({page:1,total:0,hasNextPage:!1})},handleSearchChangePage:{type:Function,default:()=>{}}},setup(e){const d=e;return(e,f)=>{const h=a("n-icon");return n(),o("div",{class:"form-select-btn",onMousedown:f[2]||(f[2]=e=>e.preventDefault())},[t(l(i),{disabled:d.searchPageConfig.page<=1,type:"dashed",block:"",onClick:f[0]||(f[0]=s((e=>d.handleSearchChangePage("prev")),["self","stop"]))},{default:r((()=>[t(h,{component:l(g)},null,8,["component"]),c(" 上一页 ")])),_:1},8,["disabled"]),t(l(i),{disabled:1==+d.searchPageConfig.asyncCount?!d.searchPageConfig.hasNextPage:d.searchPageConfig.page>=d.searchPageConfig.total,type:"dashed",block:"",onClick:f[1]||(f[1]=s((e=>d.handleSearchChangePage("next")),["self","stop"]))},{default:r((()=>[c(" 下一页 "),t(h,{component:l(p)},null,8,["component"])])),_:1},8,["disabled"])],32)}}}),[["__file","SelectPage.vue"]]);export{f as default};
1
+ import e from"./SelectPage.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","SelectPage.vue"]]);export{t as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,resolveComponent as a,openBlock as n,createElementBlock as o,createVNode as t,unref as s,withModifiers as c,withCtx as l,createTextVNode as r}from"vue";import{NButton as g}from"naive-ui";import{ChevronBackOutline as i,ChevronForwardOutline as d}from"@vicons/ionicons5";var p=e({__name:"SelectPage",props:{searchPageConfig:{type:Object,default:()=>({page:1,total:0,hasNextPage:!1})},handleSearchChangePage:{type:Function,default:()=>{}}},setup(e){const p=e;return(e,h)=>{const f=a("n-icon");return n(),o("div",{class:"form-select-btn",onMousedown:h[2]||(h[2]=e=>e.preventDefault())},[t(s(g),{disabled:p.searchPageConfig.page<=1,type:"dashed",block:"",onClick:h[0]||(h[0]=c((e=>p.handleSearchChangePage("prev")),["self","stop"]))},{default:l((()=>[t(f,{component:s(i)},null,8,["component"]),r(" 上一页 ")])),_:1},8,["disabled"]),t(s(g),{disabled:1==+p.searchPageConfig.asyncCount?!p.searchPageConfig.hasNextPage:p.searchPageConfig.page>=p.searchPageConfig.total,type:"dashed",block:"",onClick:h[1]||(h[1]=c((e=>p.handleSearchChangePage("next")),["self","stop"]))},{default:l((()=>[r(" 下一页 "),t(f,{component:s(d)},null,8,["component"])])),_:1},8,["disabled"])],32)}}});export{p as default};
@@ -1 +1 @@
1
- import{defineComponent as e,computed as l,openBlock as s,createElementBlock as t,mergeProps as a,unref as i,toDisplayString as n,createCommentVNode as r,createElementVNode as o}from"vue";import u from"../../../_virtual/plugin-vue_export-helper.js";const c={key:0},v=["xlink:href"];var f=u(e({__name:"SvgIcon",props:{iconClass:{default:""},title:{default:""},className:null},setup(e){const u=e,f=l((()=>`#icon-${u.iconClass}`)),p=l((()=>u.className?"svg-icon "+u.className:"svg-icon"));return(l,u)=>(s(),t("svg",a({class:i(p),"aria-hidden":"true"},l.$attrs),[e.title?(s(),t("title",c,n(e.title),1)):r("v-if",!0),o("use",{"xlink:href":i(f)},null,8,v)],16))}}),[["__file","SvgIcon.vue"]]);export{f as default};
1
+ import e from"./SvgIcon.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var o=r(e,[["__file","SvgIcon.vue"]]);export{o as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as s,computed as e,openBlock as t,createElementBlock as l,mergeProps as a,unref as i,toDisplayString as n,createCommentVNode as c,createElementVNode as o}from"vue";const r={key:0},u=["xlink:href"];var f=s({__name:"SvgIcon",props:{iconClass:{default:""},title:{default:""},className:null},setup(s){const f=s,v=e((()=>`#icon-${f.iconClass}`)),m=e((()=>f.className?"svg-icon "+f.className:"svg-icon"));return(e,f)=>(t(),l("svg",a({class:i(m),"aria-hidden":"true"},e.$attrs),[s.title?(t(),l("title",r,n(s.title),1)):c("v-if",!0),o("use",{"xlink:href":i(v)},null,8,u)],16))}});export{f as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,computed as l,openBlock as o,createElementBlock as i,createVNode as a,unref as r,withCtx as s,createElementVNode as u,normalizeClass as n,renderSlot as p,toDisplayString as f,createTextVNode as m}from"vue";import{NTooltip as v}from"naive-ui";import"xe-utils";import"moment";import c from"../../utils/vexutilsExpand.js";import d from"../../../_virtual/plugin-vue_export-helper.js";const x={class:"text-over-tooltip-components"};var _=d(e({__name:"TextOverTooltip",props:{content:null,className:null,refName:null,effect:{default:"dark"},placement:{default:"top"},tooltipTitle:{default:""},isAlias:{type:Boolean}},setup(e){const d=e;let _=t(!1);const N=l((()=>{let e=d.tooltipTitle||d.content||"";return c.isNumber(e)?e.toString():e})),T=t(null),h=()=>{_.value=!1};return(t,l)=>(o(),i("div",x,[a(r(v),{effect:e.effect,show:r(_),placement:e.placement},{trigger:s((()=>[u("div",{class:n(["ellipsis",e.className]),onMouseover:l[0]||(l[0]=t=>(e=>{if(d.isAlias)return void(_.value=!0);let t=T.value.parentNode.offsetWidth,l=T.value.offsetWidth;_.value=l>t})(e.refName)),onMouseout:h},[u("i",{ref:e=>{e&&(T.value=e)}},[p(t.$slots,"default"),u("i",null,f(e.content),1)],512)],34)])),default:s((()=>[m(" "+f(r(N)),1)])),_:3},8,["effect","show","placement"])]))}}),[["__file","TextOverTooltip.vue"]]);export{_ as default};
1
+ import e from"./TextOverTooltip.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var o=r(e,[["__file","TextOverTooltip.vue"]]);export{o as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,computed as l,openBlock as o,createElementBlock as a,createVNode as s,unref as i,withCtx as n,createElementVNode as u,normalizeClass as r,renderSlot as f,toDisplayString as p,createTextVNode as m}from"vue";import{NTooltip as c}from"naive-ui";import"xe-utils";import"moment";import v from"../../utils/vexutilsExpand.js";const d={class:"text-over-tooltip-components"};var x=e({__name:"TextOverTooltip",props:{content:null,className:null,refName:null,effect:{default:"dark"},placement:{default:"top"},tooltipTitle:{default:""},isAlias:{type:Boolean}},setup(e){const x=e;let N=t(!1);const h=l((()=>{let e=x.tooltipTitle||x.content||"";return v.isNumber(e)?e.toString():e})),T=t(null),g=()=>{N.value=!1};return(t,l)=>(o(),a("div",d,[s(i(c),{effect:e.effect,show:i(N),placement:e.placement},{trigger:n((()=>[u("div",{class:r(["ellipsis",e.className]),onMouseover:l[0]||(l[0]=t=>(e=>{if(x.isAlias)return void(N.value=!0);let t=T.value.parentNode.offsetWidth,l=T.value.offsetWidth;N.value=l>t})(e.refName)),onMouseout:g},[u("i",{ref:e=>{e&&(T.value=e)}},[f(t.$slots,"default"),u("i",null,p(e.content),1)],512)],34)])),default:n((()=>[m(" "+p(i(h)),1)])),_:3},8,["effect","show","placement"])]))}});export{x as default};
@@ -1 +1 @@
1
- import{defineComponent as t,computed as e,openBlock as o,createElementBlock as a,unref as r,createCommentVNode as i,createElementVNode as s,toDisplayString as n}from"vue";import p from"../../assets/img/nodata.png.js";import m from"../../assets/img/no-permission.png.js";import l from"../../assets/img/failure.png.js";import f from"../../assets/img/notfound.png.js";import g from"../../../_virtual/plugin-vue_export-helper.js";const u=["src"];var c=g(t({__name:"NoData",props:{noDataTip:{type:String,default:"暂无数据"},noDataImg:{type:String,default:"nodata"},showImg:{type:Boolean,default:!0}},setup(t){const g=t,c={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",fontSize:"22px",color:"#333"},d={width:"260px",maxWidth:"70%"},x={marginTop:"12px",marginBottom:"0",fontSize:"16px",color:"rgb(0 0 0 / 80%)"},y={marginTop:"6px",fontSize:"14px",color:"rgb(0 0 0 / 40%)"},h=e((()=>{let t=null;switch(g.noDataImg){case"no-permission":t=m;break;case"failure":t=l;break;case"nodata":t=p;break;default:t=f}return t})),v=e((()=>{let t="";switch(g.noDataImg){case"no-permission":t="请联系管理员";break;case"failure":t="请稍后再试"}return t}));return(e,p)=>(o(),a("div",{style:c},[t.showImg?(o(),a("img",{key:0,style:d,src:r(h),alt:""},null,8,u)):i("v-if",!0),s("p",{style:x},n(t.noDataTip),1),r(v)?(o(),a("span",{key:1,style:y},n(r(v)),1)):i("v-if",!0)]))}}),[["__file","NoData.vue"]]);export{c as default};
1
+ import e from"./NoData.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var a=r(e,[["__file","NoData.vue"]]);export{a as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as t,computed as e,openBlock as a,createElementBlock as o,unref as s,createCommentVNode as n,createElementVNode as r,toDisplayString as i}from"vue";import p from"../../assets/img/nodata.png.js";import m from"../../assets/img/no-permission.png.js";import l from"../../assets/img/failure.png.js";import g from"../../assets/img/notfound.png.js";const f=["src"];var c=t({__name:"NoData",props:{noDataTip:{type:String,default:"暂无数据"},noDataImg:{type:String,default:"nodata"},showImg:{type:Boolean,default:!0}},setup(t){const c=t,u={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",fontSize:"22px",color:"#333"},d={width:"260px",maxWidth:"70%"},y={marginTop:"12px",marginBottom:"0",fontSize:"16px",color:"rgb(0 0 0 / 80%)"},x={marginTop:"6px",fontSize:"14px",color:"rgb(0 0 0 / 40%)"},h=e((()=>{let t=null;switch(c.noDataImg){case"no-permission":t=m;break;case"failure":t=l;break;case"nodata":t=p;break;default:t=g}return t})),D=e((()=>{let t="";switch(c.noDataImg){case"no-permission":t="请联系管理员";break;case"failure":t="请稍后再试"}return t}));return(e,p)=>(a(),o("div",{style:u},[t.showImg?(a(),o("img",{key:0,style:d,src:s(h),alt:""},null,8,f)):n("v-if",!0),r("p",{style:y},i(t.noDataTip),1),s(D)?(a(),o("span",{key:1,style:x},i(s(D)),1)):n("v-if",!0)]))}});export{c as default};
@@ -1 +1 @@
1
- var e="@cnhis-design-vue/shared",s="3.1.44-release.4",i="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.44-release.4",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,i as main,e as name,n as peerDependencies,s as version};
1
+ var e="@cnhis-design-vue/shared",s="3.1.44-release.5",i="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.44-release.5",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,i as main,e as name,n as peerDependencies,s as version};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.44-release.4",
3
+ "version": "3.1.44-release.5",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
File without changes
@@ -1 +0,0 @@
1
- declare module 'bpmn-js/lib/Viewer';
@@ -1 +0,0 @@
1
- declare module 'bpmn-js/lib/features/modeling';
@@ -1 +0,0 @@
1
- declare module 'diagram-js/lib/navigation/movecanvas';