cnhis-design-vue 3.1.42-beta.34 → 3.1.42-beta.35

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 (62) hide show
  1. package/README.md +87 -87
  2. package/es/components/button-print/index.d.ts +4 -4
  3. package/es/components/button-print/src/ButtonPrint.vue.d.ts +4 -4
  4. package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
  5. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
  6. package/es/components/classification/index.d.ts +1 -1
  7. package/es/components/classification/src/index.vue.d.ts +2 -2
  8. package/es/components/fabric-chart/index.d.ts +2 -2
  9. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
  10. package/es/components/field-set/index.d.ts +26 -81
  11. package/es/components/field-set/src/FieldSet.vue.d.ts +28 -32
  12. package/es/components/field-set/src/FieldSet.vue.js +1 -1
  13. package/es/components/field-set/style/index.css +1 -1
  14. package/es/components/form-config/index.d.ts +4 -4
  15. package/es/components/form-config/src/FormConfig.vue.d.ts +4 -4
  16. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +2 -2
  17. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +2 -2
  18. package/es/components/form-render/index.d.ts +2 -2
  19. package/es/components/form-render/src/FormRender.vue.d.ts +2 -2
  20. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +2 -2
  21. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  22. package/es/components/form-render/src/components/renderer/select.d.ts +2 -2
  23. package/es/components/form-render/src/components/renderer/select.js +1 -1
  24. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
  25. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
  26. package/es/components/iho-table/src/plugins/highLightSetPlugin.js +1 -1
  27. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  28. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
  29. package/es/components/iho-table/src/types/index.d.ts +0 -1
  30. package/es/components/index.css +1 -1
  31. package/es/components/info-header/index.d.ts +4 -4
  32. package/es/components/info-header/src/InfoHeader.vue.d.ts +4 -4
  33. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +2 -2
  34. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +2 -2
  35. package/es/components/recommend-search/index.d.ts +7 -5
  36. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +7 -5
  37. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +3 -1
  38. package/es/components/recommend-search/src/components/RecommendMenu.vue.d.ts +3 -1
  39. package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -1
  40. package/es/components/scale-view/index.d.ts +28 -4
  41. package/es/components/scale-view/src/ScaleView.vue.d.ts +28 -4
  42. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  43. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +3 -3
  44. package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +1 -1
  45. package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
  46. package/es/components/scale-view/src/hooks/use-component.d.ts +0 -73
  47. package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
  48. package/es/components/shortcut-setter/index.d.ts +2 -2
  49. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +2 -2
  50. package/es/components/table-filter/src/types/index.d.ts +0 -9
  51. package/es/components/vod-chunk-upload/index.d.ts +0 -73
  52. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +0 -73
  53. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -1
  54. package/es/env.d.ts +24 -24
  55. package/package.json +2 -2
  56. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  57. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  58. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  59. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  60. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  61. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  62. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -195,79 +195,6 @@ declare const VodChunkUpload: SFCWithInstall<import("vue").DefineComponent<{
195
195
  RemoveCircleSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
196
196
  videoImg: string;
197
197
  success: string;
198
- Draggable: import("vue").DefineComponent<{
199
- list: {
200
- type: ArrayConstructor;
201
- required: boolean;
202
- default: any;
203
- };
204
- modelValue: {
205
- type: ArrayConstructor;
206
- required: boolean;
207
- default: any;
208
- };
209
- itemKey: {
210
- type: (StringConstructor | FunctionConstructor)[];
211
- required: boolean;
212
- };
213
- clone: {
214
- type: FunctionConstructor;
215
- default: (original: any) => any;
216
- };
217
- tag: {
218
- type: StringConstructor;
219
- default: string;
220
- };
221
- move: {
222
- type: FunctionConstructor;
223
- default: any;
224
- };
225
- componentData: {
226
- type: ObjectConstructor;
227
- required: boolean;
228
- default: any;
229
- };
230
- }, unknown, {
231
- error: boolean;
232
- }, {
233
- realList(): any;
234
- getKey(): any;
235
- }, {
236
- getUnderlyingVm(domElement: any): any;
237
- getUnderlyingPotencialDraggableComponent(htmElement: any): any;
238
- emitChanges(evt: any): void;
239
- alterList(onList: any): void;
240
- spliceList(): void;
241
- updatePosition(oldIndex: any, newIndex: any): void;
242
- getRelatedContextFromMoveEvent({ to, related }: {
243
- to: any;
244
- related: any;
245
- }): any;
246
- getVmIndexFromDomIndex(domIndex: any): any;
247
- onDragStart(evt: any): void;
248
- onDragAdd(evt: any): void;
249
- onDragRemove(evt: any): void;
250
- onDragUpdate(evt: any): void;
251
- computeFutureIndex(relatedContext: any, evt: any): any;
252
- onDragMove(evt: any, originalEvent: any): any;
253
- onDragEnd(): void;
254
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any[], any, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
255
- move: Function;
256
- tag: string;
257
- clone: Function;
258
- list: unknown[];
259
- modelValue: unknown[];
260
- componentData: Record<string, any>;
261
- } & {
262
- itemKey?: string | Function | undefined;
263
- }>, {
264
- move: Function;
265
- tag: string;
266
- clone: Function;
267
- list: unknown[];
268
- modelValue: unknown[];
269
- componentData: Record<string, any>;
270
- }>;
271
198
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "vodFileList"[], "vodFileList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
272
199
  formData: {
273
200
  type: ObjectConstructor;
@@ -193,79 +193,6 @@ declare const _default: import("vue").DefineComponent<{
193
193
  RemoveCircleSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
194
194
  videoImg: string;
195
195
  success: string;
196
- Draggable: import("vue").DefineComponent<{
197
- list: {
198
- type: ArrayConstructor;
199
- required: boolean;
200
- default: any;
201
- };
202
- modelValue: {
203
- type: ArrayConstructor;
204
- required: boolean;
205
- default: any;
206
- };
207
- itemKey: {
208
- type: (StringConstructor | FunctionConstructor)[];
209
- required: boolean;
210
- };
211
- clone: {
212
- type: FunctionConstructor;
213
- default: (original: any) => any;
214
- };
215
- tag: {
216
- type: StringConstructor;
217
- default: string;
218
- };
219
- move: {
220
- type: FunctionConstructor;
221
- default: any;
222
- };
223
- componentData: {
224
- type: ObjectConstructor;
225
- required: boolean;
226
- default: any;
227
- };
228
- }, unknown, {
229
- error: boolean;
230
- }, {
231
- realList(): any;
232
- getKey(): any;
233
- }, {
234
- getUnderlyingVm(domElement: any): any;
235
- getUnderlyingPotencialDraggableComponent(htmElement: any): any;
236
- emitChanges(evt: any): void;
237
- alterList(onList: any): void;
238
- spliceList(): void;
239
- updatePosition(oldIndex: any, newIndex: any): void;
240
- getRelatedContextFromMoveEvent({ to, related }: {
241
- to: any;
242
- related: any;
243
- }): any;
244
- getVmIndexFromDomIndex(domIndex: any): any;
245
- onDragStart(evt: any): void;
246
- onDragAdd(evt: any): void;
247
- onDragRemove(evt: any): void;
248
- onDragUpdate(evt: any): void;
249
- computeFutureIndex(relatedContext: any, evt: any): any;
250
- onDragMove(evt: any, originalEvent: any): any;
251
- onDragEnd(): void;
252
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any[], any, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
253
- move: Function;
254
- tag: string;
255
- clone: Function;
256
- list: unknown[];
257
- modelValue: unknown[];
258
- componentData: Record<string, any>;
259
- } & {
260
- itemKey?: string | Function | undefined;
261
- }>, {
262
- move: Function;
263
- tag: string;
264
- clone: Function;
265
- list: unknown[];
266
- modelValue: unknown[];
267
- componentData: Record<string, any>;
268
- }>;
269
196
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "vodFileList"[], "vodFileList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
270
197
  formData: {
271
198
  type: ObjectConstructor;
@@ -1 +1 @@
1
- import{defineComponent as e,reactive as o,computed as l,onMounted as i,openBlock as s,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 b from"xe-utils";import"moment";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 O,PlayCircleOutline as w,RemoveCircleSharp as S}from"@vicons/ionicons5";import x 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"],P=d("div",{class:"uploader-text"},[d("p",null,"点击上传"),d("span",{class:"guage-text"},"上传视频(不超过50M)")],-1),E=["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:ie,showPercent:se,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 i=[];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;i.push({name:e.name,size:e.size,url:e.url||o.videoUrl,vodCoverUrl:l,uid:e.id||e.uid||(-Math.random()).toString()})}})),console.log(i,"---resList---",Y.formData.title);let s=JSON.stringify(i);"guage"!==l?oe.baseForm.setFieldsValue({[o.val_key]:s}):N("vodFileList",s,Y.formData)},me=(e,o)=>{let l,i;if(e.type&&(i=e.type),e.url||e.videoUrl){if(l=e.url||e.videoUrl,!i){let e=l.split(".");i=`video/${e[e.length-1]}`}}else l=URL.createObjectURL(e.originFileObj);ee.playerOptions={sources:[{type:i,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 i((()=>{ue()})),(o,l)=>(s(),t("div",M,[e.isDetail||Y.isLock?m("v-if",!0):a((s(),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?(s(),t(u,{key:0},[d("img",{src:n(j),class:"guage-img"},null,8,B),P],64)):(s(),t(u,{key:1},[d("img",{src:n(j),class:"guage-img"},null,8,E),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?(s(),t("div",G,[m(" TODO: 封面图补充 "),d("div",{class:"uploading-mask",style:f({height:n(ie)(o)})},[d("span",null,g(n(se)(o.percent))+"%",1)],4)])):"done"===o.status?(s(),t(u,{key:1},[m(" 上传完成 "),d("div",H,[d("img",{src:(i=o,i.thumbUrl?i.thumbUrl:x),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(O),class:"icon-play theme_filled",onClick:k((e=>me(o)),["prevent","stop"])},null,8,["component","onClick"]),c(n(_),{component:n(w),class:"icon-play theme_outlined",onClick:k((e=>me(o)),["prevent","stop"])},null,8,["component","onClick"])])])],2112)):"error"===o.status?(s(),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):(s(),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(S)},null,8,["component"])],8,X))])];var i})),_:1},8,["modelValue","disabled","options"]),ee.videoVisible?(s(),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{defineComponent as e,reactive as o,computed as l,onMounted as i,resolveComponent as s,openBlock as t,createElementBlock as a,withDirectives as r,normalizeClass as n,unref as d,createElementVNode as u,Fragment as p,vShow as m,createCommentVNode as c,createVNode as v,withCtx as f,normalizeStyle as g,toDisplayString as h,createTextVNode as k,withModifiers as y,createBlock as b}from"vue";import C from"xe-utils";import"moment";import{getVodData as U}from"../hooks/vod-data.js";import{VodComputed as L}from"../hooks/vod-computed.js";import V from"../../../../shared/components/player-vod/video-modal.js";import _ from"../vod-upload-modal.js";import{NIcon as D,NButton as O}from"naive-ui";import{PlayCircleSharp as w,PlayCircleOutline as S,RemoveCircleSharp as x}from"@vicons/ionicons5";import j from"../../../../shared/assets/img/video_default_cover.png.js";import F from"../../../../shared/assets/img/video.png.js";import z from"../../../../shared/assets/img/success.png.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"],P=u("div",{class:"uploader-text"},[u("p",null,"点击上传"),u("span",{class:"guage-text"},"上传视频(不超过50M)")],-1),E=["src"],T=u("div",{class:"uploader-text"},[u("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}=U(),ee=o(Z),oe={},{isShowBtn:le,maskHeight:ie,showPercent:se,allow_format:te,defaultValue:ae,isDisabled:re,max_size:ne,maxlength:de}=L(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]),C.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 i=[];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;i.push({name:e.name,size:e.size,url:e.url||o.videoUrl,vodCoverUrl:l,uid:e.id||e.uid||(-Math.random()).toString()})}})),console.log(i,"---resList---",Y.formData.title);let s=JSON.stringify(i);"guage"!==l?oe.baseForm.setFieldsValue({[o.val_key]:s}):N("vodFileList",s,Y.formData)},me=(e,o)=>{let l,i;if(e.type&&(i=e.type),e.url||e.videoUrl){if(l=e.url||e.videoUrl,!i){let e=l.split(".");i=`video/${e[e.length-1]}`}}else l=URL.createObjectURL(e.originFileObj);ee.playerOptions={sources:[{type:i,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 i((()=>{ue()})),(o,l)=>{const i=s("draggable");return t(),a("div",M,[e.isDetail||Y.isLock?c("v-if",!0):r((t(),a("div",{key:0,class:n(["c-chunk-uploader-btn",{"disable-upload":d(re)}]),onClick:ve},[u("div",A,[u("div",J,["guage"==Y.source?(t(),a(p,{key:0},[u("img",{src:d(F),class:"guage-img"},null,8,B),P],64)):(t(),a(p,{key:1},[u("img",{src:d(F),class:"guage-img"},null,8,E),T],64))])])],2)),[[m,d(le)]]),v(i,{modelValue:ee.fileList,"onUpdate:modelValue":l[0]||(l[0]=e=>ee.fileList=e),animation:"150",itemKey:"uid",disabled:d(re).value,options:ee.draggableOptions,onUpdate:ge,class:"drag-content"},{item:f((({element:o,index:l})=>{return[u("div",R,[c(" 上传中 "),"uploading"===o.status?(t(),a("div",G,[c(" TODO: 封面图补充 "),u("div",{class:"uploading-mask",style:g({height:d(ie)(o)})},[u("span",null,h(d(se)(o.percent))+"%",1)],4)])):"done"===o.status?(t(),a(p,{key:1},[c(" 上传完成 "),u("div",H,[u("img",{src:(i=o,i.thumbUrl?i.thumbUrl:j),class:"vod-cover-img"},null,8,K),u("div",{class:n(["tooltip-wrap",{"is-new":o.isNew}])},[u("img",{src:d(z),class:"upload-img"},null,8,$),k(" 上传成功 ")],2),c(" 播放图标 "),u("div",q,[v(d(D),{component:d(w),class:"icon-play theme_filled",onClick:y((e=>me(o)),["prevent","stop"])},null,8,["component","onClick"]),v(d(D),{component:d(S),class:"icon-play theme_outlined",onClick:y((e=>me(o)),["prevent","stop"])},null,8,["component","onClick"])])])],64)):"error"===o.status?(t(),a(p,{key:2},[c(" 上传失败 "),u("div",I,[u("img",{src:o.thumbUrl,class:"vod-cover-img"},null,8,Q),u("div",W,[u("span",null,h(o.message?o.message:"上传失败,继续上传?"),1),v(d(O),{size:"small",onClick:y((e=>{}),["prevent","stop"])},{default:f((()=>[k("确定")])),_:2},1032,["onClick"])])])],64)):c("v-if",!0),!["done","error"].includes(o.status)||d(re)||e.isDetail?c("v-if",!0):(t(),a("div",{key:3,onClick:y((e=>{return o=l,ee.fileList.splice(o,1),void pe(ee.fileList);var o}),["stop"]),class:"uploader-preview-delete"},[v(d(D),{class:"pre-delete",component:d(x)},null,8,["component"])],8,X))])];var i})),_:1},8,["modelValue","disabled","options"]),ee.videoVisible?(t(),b(d(V),{key:1,visible:ee.videoVisible,formData:Y.formData,playerOptions:ee.playerOptions,onCloseVideoModal:ce},null,8,["visible","formData","playerOptions"])):c("v-if",!0),v(d(_),{modelValue:ee.chunkUploadVisible,"onUpdate:modelValue":l[1]||(l[1]=e=>ee.chunkUploadVisible=e),modalTitle:Y.formData.name,max_size:d(ne),maxLength:d(de),propsCategoryMap:d(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};
package/es/env.d.ts CHANGED
@@ -1,24 +1,24 @@
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';
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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.42-beta.34",
3
+ "version": "3.1.42-beta.35",
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": "bec17a7b25bf45f21d5503db002f1737a6bfacd1"
64
+ "gitHead": "7658909e6416055cf8cc94c2b910735e7ccbbba6"
65
65
  }
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';