Files
qhmes/deploy-qhmes/frontend/js/useFileCell-CSapZIYD.js

2 lines
1.6 KiB
Java
Raw Normal View History

2026-05-15 11:34:12 +08:00
var V=Object.defineProperty,J=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var f=(e,a,n)=>a in e?V(e,a,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[a]=n,r=(e,a)=>{for(var n in a||(a={}))w.call(a,n)&&f(e,n,a[n]);if(p)for(var n of p(a))E.call(a,n)&&f(e,n,a[n]);return e},i=(e,a)=>J(e,F(a));import{e as s}from"./vue-vendor-C7Zq48Yl.js";import{cE as O,cF as U,M as _,cG as b,aL as D,al as G}from"./index-BI6CMai0.js";import{_ as L}from"./index-CTZQXB0y.js";import"./index-Du0A3ksf.js";import{ai as N,D as S}from"./antd-vue-vendor-BPnV8VqP.js";function A(e,a,n){const m=b(e,r({token:!0,action:D},n)),{innerFile:o,handleChangeCommon:d,originColumn:u}=m,[v,{openModal:h}]=G(),C=s(()=>{let l=5,t=o.value;return!t||!t.name?"":t.name.length>l?t.name.substr(0,l)+"":t.name}),g=s(()=>{if(o.value){if(o.value.url)return o.value.url;if(o.value.path)return o.value.path}return""}),c=s(()=>{let l=u.value.maxCount;if(u.value&&u.value.fieldExtendJson){let t=JSON.parse(u.value.fieldExtendJson);l=t.uploadnum?t.uploadnum:0}return l!=null?l:0});function M(){var l;h(!0,i(r({removeConfirm:!0,mover:!0,download:!0},u.value.props),{maxCount:c.value,fileType:a,action:(l=u.value.action)!=null?l:void 0}))}function x(l){l?(o.value===null&&(o.value={}),o.value.path=l,d(o.value)):d(null)}return i(r({},m),{modalValue:g,maxCount:c,ellipsisFileName:C,registerModel:v,onModalChange:x,handleMoreOperation:M})}const B={Icon:_,Dropdown:S,LoadingOutlined:N,JUploadModal:L},H={switches:{visible:!0},getValue:e=>U(e),setValue:e=>O(e)};export{B as c,H as e,A as u};