@jt-home/mfe-components 1.2.0-beta.20260717064421 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/package/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
require('./style.css');
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("./locale/index.cjs"),E=require("element-plus/es"),e=require("vue"),O=require("element-plus"),S=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),oe=2,Be=3;function xe(p){return p.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function se(p){if(!p.startsWith("on")||p.length<=oe)return!1;const t=p.charCodeAt(oe);return t<97||t>122}function Le(p){if(p.startsWith("on-"))return p.slice(Be);const[t,o]=p.slice(oe).split(":"),n=xe(t);return o?`${n}:${o}`:n}function K(p,t=new Set){return Object.fromEntries(Object.entries(p).filter(([o,n])=>!t.has(o)&&se(o)&&typeof n=="function").map(([o,n])=>[Le(o),n]))}function G(p,t=new Set){return Object.fromEntries(Object.entries(p).filter(([o])=>!t.has(o)&&!se(o)))}const Se=e.defineComponent({name:"JtButton",__name:"index",props:{disabled:{type:Boolean},type:{},icon:{},nativeType:{},loading:{type:Boolean},loadingIcon:{},plain:{type:Boolean},text:{type:Boolean},link:{type:Boolean},bg:{type:Boolean},autofocus:{type:Boolean},round:{type:Boolean},circle:{type:Boolean},dashed:{type:Boolean},color:{},dark:{type:Boolean},autoInsertSpace:{type:Boolean},tag:{},size:{},gray:{type:Boolean}},setup(p){const t=p,o=e.useAttrs(),n=e.computed(()=>t.type==="primary"),i=e.computed(()=>t.plain===!0),c=e.computed(()=>t.size??"default"),l=e.computed(()=>({[`jt-button--size-${c.value}`]:!0,"jt-button--type-primary":n.value,"jt-button--plain":i.value,"jt-button--gray":t.gray,"jt-button--border":!0})),u=e.computed(()=>{const{gray:r,icon:h,size:g,...f}=t;return{...G(o),...f}}),d=e.computed(()=>K(o));return(r,h)=>{const g=E.ElIcon,f=E.ElButton;return e.openBlock(),e.createBlock(f,e.mergeProps({class:["jt-button",l.value]},u.value,e.toHandlers(d.value)),{default:e.withCtx(()=>[r.$slots.icon?(e.openBlock(),e.createBlock(g,{key:0,class:"jt-button__icon"},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"icon",{},void 0,!0)]),_:3})):t.icon?(e.openBlock(),e.createBlock(g,{key:1,class:"jt-button__icon"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon)))]),_:1})):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"default",{},void 0,!0)]),_:3},16,["class"])}}}),N=S._export_sfc(Se,[["__scopeId","data-v-c30ce771"]]),$e={options:()=>[],clearable:!0,persistent:!0};function re(p){return Object.fromEntries(Object.entries(p).filter(([,t])=>t!==void 0))}function Ve(p){const t=re(p);return t.props&&(t.props=re(t.props)),t}const ie=e.defineComponent({name:"JtCascader",__name:"index",props:e.mergeDefaults({size:{},placeholder:{},disabled:{type:Boolean},clearable:{type:Boolean},clearIcon:{},filterable:{type:Boolean},filterMethod:{type:Function},separator:{},showAllLevels:{type:Boolean},collapseTags:{type:Boolean},maxCollapseTags:{},collapseTagsTooltip:{type:Boolean},maxCollapseTagsTooltipHeight:{},debounce:{},beforeFilter:{type:Function},placement:{},fallbackPlacements:{},popperClass:{},popperStyle:{type:[Boolean,null,String,Object,Array]},teleported:{type:Boolean},effect:{},tagType:{},tagEffect:{},validateEvent:{type:Boolean},persistent:{type:Boolean},showCheckedStrategy:{},checkOnClickNode:{type:Boolean},showPrefix:{type:Boolean},fitInputWidth:{type:[Boolean,Number]},modelValue:{},props:{},virtualScroll:{type:Boolean},itemSize:{},height:{},emptyValues:{},valueOnClear:{type:[String,Number,Boolean,Function,null]},options:{}},$e),emits:O.cascaderEmits,setup(p,{emit:t}){const o=p,n=e.computed(()=>{const a=Ve(o);if(!a.disabled)return a;const{placeholder:B,...x}=a;return x}),i=e.ref(o.modelValue);e.watch(()=>o.modelValue,a=>{i.value=a},{deep:!0});const c=t;function l(a,...B){c(a,...B)}function u(a){i.value=a,l("update:modelValue",a)}function d(a){l("change",a)}function r(a){l("focus",a)}function h(a){l("blur",a)}function g(){l("clear")}function f(a){l("visibleChange",a)}function k(a){l("expandChange",a)}function w(a){l("removeTag",a)}return(a,B)=>{const x=E.ElCascader;return e.openBlock(),e.createBlock(x,e.mergeProps({class:"jt-cascader jt-form-control"},n.value,{"model-value":i.value,"onUpdate:modelValue":u,onChange:d,onFocus:r,onBlur:h,onClear:g,onVisibleChange:f,onExpandChange:k,onRemoveTag:w}),null,16,["model-value"])}}}),Ee=e.defineComponent({name:"JtDatePicker",__name:"index",props:{type:{default:"date"},showNow:{type:Boolean},showConfirm:{type:Boolean},showFooter:{type:Boolean},showWeekNumber:{type:Boolean},ariaLabel:{},emptyValues:{},valueOnClear:{},disabledDate:{},cellClassName:{},shortcuts:{},arrowControl:{type:Boolean},tabindex:{},validateEvent:{type:Boolean},unlinkPanels:{type:Boolean},singlePanel:{type:Boolean},placement:{},fallbackPlacements:{},disabledHours:{},disabledMinutes:{},disabledSeconds:{},automaticDropdown:{type:Boolean},id:{},name:{},popperClass:{},popperStyle:{},format:{},valueFormat:{default:"YYYY-MM-DD"},dateFormat:{},timeFormat:{},clearable:{type:Boolean,default:!0},clearIcon:{},editable:{type:Boolean},saveOnBlur:{type:Boolean},prefixIcon:{},size:{},readonly:{type:Boolean},disabled:{type:Boolean},placeholder:{},popperOptions:{},modelValue:{},rangeSeparator:{},startPlaceholder:{},endPlaceholder:{},defaultValue:{},defaultTime:{},isRange:{type:Boolean},preservePlaceholderWhenDisabled:{type:Boolean}},setup(p){const t=p,o=e.computed(()=>{const{preservePlaceholderWhenDisabled:i,...c}=t;if(t.disabled&&!i){const{placeholder:l,startPlaceholder:u,endPlaceholder:d,...r}=c;return r}return{...c,startPlaceholder:t.startPlaceholder??(n(t.type)?_.t("common.开始日期"):void 0),endPlaceholder:t.endPlaceholder??(n(t.type)?_.t("common.结束日期"):void 0)}});function n(i){return i?.includes("range")??!1}return(i,c)=>{const l=E.ElDatePicker;return e.openBlock(),e.createBlock(l,e.mergeProps({class:"jt-date-picker jt-form-control"},o.value,{"onUpdate:modelValue":c[0]||(c[0]=u=>i.$emit("update:modelValue",u))}),null,16)}}}),ce=S._export_sfc(Ee,[["__scopeId","data-v-783494d9"]]),je=e.defineComponent({name:"JtInput",__name:"index",props:{id:{},size:{},disabled:{type:Boolean},modelValue:{},modelModifiers:{},maxlength:{},minlength:{},type:{},resize:{},autosize:{type:[Object,Boolean]},autocomplete:{},formatter:{},parser:{},placeholder:{},form:{},readonly:{type:Boolean},clearable:{type:Boolean,default:!0},clearIcon:{},showPassword:{type:Boolean},showWordLimit:{type:Boolean},wordLimitPosition:{},suffixIcon:{},prefixIcon:{},containerRole:{},tabindex:{},validateEvent:{type:Boolean},inputStyle:{type:[Boolean,null,String,Object,Array]},autofocus:{type:Boolean},rows:{},ariaLabel:{},inputmode:{},name:{},countGraphemes:{},preservePlaceholderWhenDisabled:{type:Boolean}},emits:{...O.inputEmits,enter:()=>!0},setup(p,{emit:t}){const o=p,n=e.computed(()=>{const{preservePlaceholderWhenDisabled:l,placeholder:u,...d}=o,r={...d,placeholder:u??_.t("common.请输入")};return!o.disabled||l?r:Object.fromEntries(Object.entries(r).filter(([h])=>h!=="placeholder"))}),i=t,c=e.computed(()=>Object.fromEntries(Object.keys(O.inputEmits).map(l=>[l,(...u)=>i(l,...u)])));return(l,u)=>{const d=E.ElInput;return e.openBlock(),e.createBlock(d,e.mergeProps({class:"jt-input jt-form-control"},n.value,e.toHandlers(c.value),{onKeyup:u[0]||(u[0]=e.withKeys(r=>i("enter"),["enter"]))}),null,16)}}}),U=S._export_sfc(je,[["__scopeId","data-v-ddac16c1"]]),Te=e.defineComponent({name:"JtSelect",__name:"index",props:{options:{},preservePlaceholderWhenDisabled:{type:Boolean},ariaLabel:{},emptyValues:{},valueOnClear:{},name:{},id:{},modelValue:{},autocomplete:{},automaticDropdown:{type:Boolean},size:{},effect:{},disabled:{type:Boolean},clearable:{type:Boolean,default:!0},filterable:{type:Boolean,default:!0},allowCreate:{type:Boolean},loading:{type:Boolean},popperClass:{},popperStyle:{},popperOptions:{},remote:{type:Boolean},debounce:{},loadingText:{},noMatchText:{},noDataText:{},remoteMethod:{},filterMethod:{},multiple:{type:Boolean},multipleLimit:{},placeholder:{},defaultFirstOption:{type:Boolean},reserveKeyword:{type:Boolean},valueKey:{},collapseTags:{type:Boolean},collapseTagsTooltip:{type:Boolean},tagTooltip:{},maxCollapseTags:{},teleported:{type:Boolean},persistent:{type:Boolean},clearIcon:{},fitInputWidth:{type:Boolean},suffixIcon:{},tagType:{},tagEffect:{},validateEvent:{type:Boolean},remoteShowSuffix:{type:Boolean},showArrow:{type:Boolean},offset:{},placement:{},fallbackPlacements:{},tabindex:{},appendTo:{},props:{}},emits:O.selectEmits,setup(p,{emit:t}){const o=p,n=e.computed(()=>{const{options:l,placeholder:u,preservePlaceholderWhenDisabled:d,...r}=o;return o.disabled&&!d?r:{...r,placeholder:u??_.t("common.请选择")}}),i=t,c=e.computed(()=>Object.fromEntries(Object.keys(O.selectEmits).map(l=>[l,(...u)=>i(l,...u)])));return(l,u)=>{const d=E.ElOption,r=E.ElSelect;return e.openBlock(),e.createBlock(r,e.mergeProps({class:"jt-select jt-form-control"},n.value,e.toHandlers(c.value)),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.options??[],h=>(e.openBlock(),e.createBlock(d,e.mergeProps({key:h.value,ref_for:!0},h),null,16))),128))]),_:1},16)}}}),de=S._export_sfc(Te,[["__scopeId","data-v-48990808"]]),Me=e.defineComponent({name:"JTFormItems",__name:"JtFormItems",props:{configs:{},formData:{},gridColumns:{},span:{}},setup(p){const t=e.useSlots(),o=p,n={input:U,select:de,cascader:ie,"date-picker":ce},i={"remote-select":"select",date:"date-picker",daterange:"date-picker","date-range":"date-picker",dateRange:"date-picker"},c=new Set(["prop","label","itemType","span","options","rules","formItemProps","showSlot","show"]),l=Object.keys(n),u=new Map,d=e.computed(()=>o.configs.filter(m=>m.show!==!1)),r=m=>{const{itemType:y}=m;if(!y)return U;if(typeof y!="string")return y;const P=i[y]??y;return l.includes(P)?n[P]:(console.error(`[JtFormItems] 不支持的 itemType: "${y}",支持的类型: ${l.join(", ")}`),U)},h=m=>{const y=G(m,c);return m.itemType==="select"||m.itemType==="remote-select"||m.itemType==="cascader"?{...y,options:m.options}:D(m.itemType)?{...y,type:"daterange"}:y},g=m=>K(m,c),f=m=>({rules:m.rules,...m.formItemProps}),k=(m,y)=>{o.formData[m]=y};function w(m){return y=>{if(y){u.set(m,y);return}u.delete(m)}}function a(m,y){e.nextTick(()=>{u.get(m)?.validate(y).catch(()=>{})})}const B=m=>Math.min(Math.max(Math.trunc(m||4),1),24),x=e.computed(()=>B(o.gridColumns)),M=m=>Math.min(Math.max(Math.trunc(m||1),1),x.value),L=e.computed(()=>{const y=d.value.reduce((P,v)=>P+M(o.span||v.span),0)%x.value;return y===0?{gridColumn:`1 / span ${x.value}`}:{gridColumn:`${y+1} / span ${x.value-y}`}}),V=m=>({gridColumn:`span ${M(o.span||m.span)}`});function D(m){return m==="daterange"||m==="date-range"||m==="dateRange"}return(m,y)=>{const P=E.ElFormItem;return e.openBlock(),e.createElementBlock("div",{class:"jt-form-items",style:e.normalizeStyle({"--jt-form-columns":x.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,v=>(e.openBlock(),e.createBlock(P,e.mergeProps({key:v.prop,ref_for:!0,ref:w(v.prop),class:"jt-form-items__item",style:V(v),label:v.label,prop:v.prop},f(v)),e.createSlots({default:e.withCtx(()=>[v.showSlot?e.renderSlot(m.$slots,v.prop,{key:0},void 0,!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r(v)),e.mergeProps({key:1,"model-value":m.formData[v.prop],ref_for:!0},h(v),e.toHandlers(g(v)),{"onUpdate:modelValue":C=>k(v.prop,C),onChange:()=>a(v.prop,"change"),onBlur:()=>a(v.prop,"blur")}),null,16,["model-value","onUpdate:modelValue","onChange","onBlur"]))]),_:2},[e.unref(t)[`${v.prop}-label`]?{name:"label",fn:e.withCtx(C=>[e.renderSlot(m.$slots,`${v.prop}-label`,e.mergeProps({ref_for:!0},C),void 0,!0)]),key:"0"}:void 0]),1040,["style","label","prop"]))),128)),m.$slots.actions?(e.openBlock(),e.createBlock(P,{key:0,class:"jt-form-items__actions",style:e.normalizeStyle(L.value)},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"actions",{},void 0,!0)]),_:3},8,["style"])):e.createCommentVNode("",!0)],4)}}}),pe=S._export_sfc(Me,[["__scopeId","data-v-6eea0475"]]);function Pe(){const p=e.ref(!1);function t(){p.value=!0}function o(){p.value=!1}return{searchDisabled:p,searchLoading:t,searchDone:o}}const De="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.5'%20y='-0.5'%20width='11'%20height='11'%20rx='5.5'%20transform='matrix(1%200%200%20-1%201%2012)'%20stroke='%23999999'/%3e%3cpath%20d='M10%208.16064L7%205.16064L4%208.16064'%20stroke='%23999999'/%3e%3c/svg%3e",Fe="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.375%207.00017C2.375%207.27631%202.59886%207.50017%202.875%207.50017C3.15114%207.50017%203.375%207.27631%203.375%207.00017H2.875H2.375ZM2.875%207.00017H3.375C3.375%204.46334%205.41801%202.41406%207.93713%202.41406V1.91406V1.41406C4.86127%201.41406%202.375%203.91551%202.375%207.00017H2.875ZM7.93713%201.91406V2.41406C10.4563%202.41406%2012.4993%204.46334%2012.4993%207.00017H12.9993H13.4993C13.4993%203.91551%2011.013%201.41406%207.93713%201.41406V1.91406ZM12.9993%207.00017H12.4993C12.4993%209.537%2010.4563%2011.5863%207.93713%2011.5863V12.0863V12.5863C11.013%2012.5863%2013.4993%2010.0848%2013.4993%207.00017H12.9993ZM7.93713%2012.0863V11.5863C6.68975%2011.5863%205.55663%2011.0806%204.72892%2010.2635L4.37765%2010.6193L4.02638%2010.9752C5.0317%2011.9676%206.41366%2012.5863%207.93713%2012.5863V12.0863Z'%20fill='%23999999'/%3e%3cpath%20d='M4.75131%206.0102L2.88631%207.88403L1%205.99414'%20stroke='%23999999'%20stroke-miterlimit='10'/%3e%3c/svg%3e",ze="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.60938%2012.1099C9.64694%2012.1099%2012.1094%209.64743%2012.1094%206.60986C12.1094%203.5723%209.64694%201.10986%206.60938%201.10986C3.57181%201.10986%201.10938%203.5723%201.10938%206.60986C1.10938%209.64743%203.57181%2012.1099%206.60938%2012.1099Z'%20stroke='white'%20stroke-miterlimit='10'/%3e%3cpath%20d='M12.4993%2012.5002L10.2832%2010.3301'%20stroke='white'%20stroke-miterlimit='10'/%3e%3c/svg%3e",Ne={class:"jt-filter-bar__btns"},Ie=["src"],He=["src"],Je=["src"],Oe=e.defineComponent({name:"JtFilterBar",__name:"JtFilterBar",props:{columns:{},option:{default:()=>({})},modelValue:{}},emits:["update:modelValue","search","reset"],setup(p,{expose:t,emit:o}){const n=p,i=o,c=e.ref(),l=e.useSlots(),u=e.ref({}),{searchDisabled:d,searchLoading:r,searchDone:h}=Pe(),g=e.ref({}),f=e.ref({}),k=new Map,w=e.computed(()=>n.option),a=e.ref(w.value.searchCollapsed??!0),B=e.computed(()=>n.columns.filter(s=>s.search===!0)),x=e.computed(()=>Math.max(1,w.value.searchSpan??4)),M=e.computed(()=>Math.max(1,w.value.searchCollapsedRows??1)),L=e.computed(()=>x.value),V=e.computed(()=>Math.max(1,L.value*M.value)),D=e.computed(()=>x.value),m=e.computed(()=>F.value?"264px":"174px"),y=e.computed(()=>we(w.value.searchLabelWidth??84)),P=e.computed(()=>w.value.searchLabelPosition??"top"),v=e.computed(()=>le(w.value.searchGutter,16)),C=e.computed(()=>le(w.value.searchRowGap,10)),j=e.computed(()=>ke(w.value.searchPadding??"0 12px")),F=e.computed(()=>w.value.searchCollapse===!1?!1:te(B.value)>V.value),z=e.computed(()=>{if(!F.value||!a.value)return B.value;let s=0;return B.value.filter(b=>{const $=ee(b);return s+$>V.value?!1:(s+=$,!0)})}),H=e.computed(()=>z.value.filter(s=>!!l[`${s.prop}-search`])),R=e.computed(()=>{const s=te(z.value);return z.value.length>0&&z.value.length<=2&&s<x.value}),I=e.computed(()=>{const s=te(z.value);return`${Math.min(x.value,s+1)}`}),q=e.computed(()=>z.value.map(s=>A(s)));e.watch(()=>w.value.searchCollapsed,s=>{typeof s=="boolean"&&(a.value=s)}),e.watch(()=>n.modelValue,s=>{u.value={...s}},{deep:!0,immediate:!0});function Z(s,b){if(d.value)return;const $={...u.value,[s]:b};u.value=$,i("update:modelValue",$)}function A(s){const b=s.searchProps??{},$=s.searchType??"input",T=Y(s,b);return{...b,...T,prop:s.prop,label:s.searchLabel??s.label,span:ee(s),itemType:$,showSlot:!!l[`${s.prop}-search`],options:ve(s,b),placeholder:b.placeholder??s.searchPlaceholder,valueFormat:b.valueFormat??s.searchValueFormat,disabled:d.value||b.disabled===!0,loading:_e(s,b),preservePlaceholderWhenDisabled:d.value,formItemProps:{required:s.searchRequired,class:["jt-filter-bar__item",{"is-required":s.searchRequired}]},onEnter:(...J)=>{X(b.onEnter,...J),W()},"onUpdate:modelValue":J=>{X(b["onUpdate:modelValue"],J),Z(s.prop,J)}}}function Y(s,b){if(s.searchType!=="remote-select")return{};const $=s.searchRemoteMethod?T=>ye(s,T):b.remoteMethod;return{remote:b.remote??!!$,filterable:b.filterable??!0,remoteMethod:$}}function ve(s,b){return s.searchType==="remote-select"&&Object.prototype.hasOwnProperty.call(g.value,s.prop)?g.value[s.prop]:b.options??s.searchOptions??s.dicData}function _e(s,b){return s.searchLoading!==void 0?s.searchLoading:b.loading!==void 0?b.loading:s.searchType==="remote-select"&&s.searchRemoteMethod?f.value[s.prop]===!0:b.loading}async function ye(s,b){if(!s.searchRemoteMethod)return;const $=(k.get(s.prop)??0)+1;k.set(s.prop,$),s.searchLoading===void 0&&(f.value={...f.value,[s.prop]:!0});try{const T=await s.searchRemoteMethod(b,s);if(k.get(s.prop)!==$||T===void 0)return;if(!ne(T)){console.warn(`[JtFilterBar] ${s.prop} 的 searchRemoteMethod 应返回 JtDicItem[] 或 void,请在业务方法内把接口响应映射为 { label, value } 选项。`);return}g.value={...g.value,[s.prop]:T}}catch(T){console.error("[JtFilterBar] searchRemoteMethod 执行失败",T)}finally{k.get(s.prop)===$&&s.searchLoading===void 0&&(f.value={...f.value,[s.prop]:!1})}}function ne(s){return Array.isArray(s)&&s.every(be)}function be(s){if(!s||typeof s!="object")return!1;const b=s,$=typeof b.value,T=b.children;return typeof b.label=="string"&&($==="string"||$==="number"||$==="boolean")&&(b.disabled===void 0||typeof b.disabled=="boolean")&&(T===void 0||ne(T))}function X(s,...b){if(Array.isArray(s)){s.forEach($=>X($,...b));return}typeof s=="function"&&s(...b)}async function W(){if(!d.value){if(c.value)try{await c.value.validate()}catch{return}i("search")}}function Q(){d.value||i("reset")}function ae(){a.value=!a.value}function ee(s){return Math.min(x.value,Math.max(1,s.searchSpan??1))}function te(s){return s.reduce((b,$)=>b+ee($),0)}function we(s){return typeof s=="number"?`${s}px`:s}function le(s,b){return typeof s=="number"?s:b}function ke(s){return typeof s=="number"?`${s}px`:s}return t({formRef:c,searchDisabled:d,searchLoading:r,searchDone:h}),(s,b)=>{const $=E.ElForm;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["jt-filter-bar",[`is-label-${P.value}`,{"is-single-filter":R.value}]]),style:e.normalizeStyle({"--jt-filter-columns":x.value,"--jt-filter-field-columns":D.value,"--jt-filter-btns-width":m.value,"--jt-filter-actions-start":I.value,"--jt-filter-label-width":y.value,"--jt-filter-column-gap":`${v.value}px`,"--jt-filter-row-gap":`${C.value}px`,"--jt-filter-padding":j.value})},[e.createVNode($,{ref_key:"formRef",ref:c,class:"jt-filter-bar__form",model:u.value,"label-position":P.value,"label-width":y.value,disabled:e.unref(d),onSubmit:b[0]||(b[0]=e.withModifiers(()=>{},["prevent"]))},{default:e.withCtx(()=>[e.createVNode(e.unref(pe),{configs:q.value,"form-data":u.value,style:{"--jt-form-label-gap":"6px","--jt-form-column-gap":"16px","--jt-form-row-gap":"10px"}},e.createSlots({actions:e.withCtx(()=>[e.createElementVNode("div",Ne,[e.renderSlot(s.$slots,"search-menu",{search:W,reset:Q,disabled:e.unref(d),collapsed:a.value,toggleCollapse:ae},()=>[F.value?(e.openBlock(),e.createBlock(e.unref(N),{key:0,class:"jt-filter-bar__btn-collapse",border:"",onClick:ae},{icon:e.withCtx(()=>[e.createElementVNode("img",{class:e.normalizeClass(["jt-filter-bar__icon-arrow",{"is-collapsed":a.value}]),src:e.unref(De),alt:""},null,10,Ie)]),default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(a.value?e.unref(_.t)("common.展开"):e.unref(_.t)("common.收起")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(N),{class:"jt-filter-bar__btn-reset",disabled:e.unref(d),border:"",onClick:Q},{icon:e.withCtx(()=>[e.createElementVNode("img",{src:e.unref(Fe),alt:""},null,8,He)]),default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(w.value.resetBtnText??e.unref(_.t)("common.重置")),1)]),_:1},8,["disabled"]),e.createVNode(e.unref(N),{class:"jt-filter-bar__btn-query",type:"primary",disabled:e.unref(d),onClick:W},{icon:e.withCtx(()=>[e.createElementVNode("img",{src:e.unref(ze),alt:""},null,8,Je)]),default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(w.value.searchBtnText??e.unref(_.t)("common.查询")),1)]),_:1},8,["disabled"])],!0)])]),_:2},[e.renderList(H.value,T=>({name:T.prop,fn:e.withCtx(()=>[e.renderSlot(s.$slots,`${T.prop}-search`,{value:u.value[T.prop],column:T,setValue:J=>Z(T.prop,J),search:W,reset:Q,disabled:e.unref(d)},void 0,!0)])}))]),1032,["configs","form-data"])]),_:3},8,["model","label-position","label-width","disabled"])],6)}}}),ue=S._export_sfc(Oe,[["__scopeId","data-v-313da8c4"]]),Re={key:1},Ze={key:2},Ae={key:3},We=e.defineComponent({name:"JtTable",__name:"JtTable",props:{data:{},columns:{},option:{},tableEvents:{}},setup(p,{expose:t}){const o=p,n=e.useSlots(),i=e.ref(),c=e.computed(()=>o.option??{}),l=e.computed(()=>o.columns.filter(a=>!a.hide)),u=e.computed(()=>c.value.menuFixed??"right");function d(a){return!!n[`${a}-header`]}function r(a){return!!n[`${a}-data`]}function h(a){return{width:a.width,minWidth:a.minWidth,align:a.align||"center",fixed:a.fixed,sortable:a.sortable,showOverflowTooltip:a.showOverflowTooltip??g(a),...a.columnOptions}}function g(a){return!r(a.prop)&&!k(a.columnOptions?.type)}function f(a){return!k(a.columnOptions?.type)}function k(a){return a==="selection"||a==="index"||a==="expand"}function w(a,B){return a.find(x=>x.value===B)?.label??String(B??"")}return t({tableRef:i}),(a,B)=>{const x=E.ElTableColumn,M=E.ElTable;return e.openBlock(),e.createBlock(M,e.mergeProps({ref_key:"tableRef",ref:i,data:a.data,"row-key":c.value.rowKey??"id","empty-text":c.value.emptyText,stripe:c.value.tableProps?.stripe??!0,class:"jt-table"},c.value.tableProps,e.toHandlers(a.tableEvents)),{default:e.withCtx(()=>[c.value.selection?(e.openBlock(),e.createBlock(x,{key:0,type:"selection",width:"55",align:"center"})):e.createCommentVNode("",!0),c.value.index?(e.openBlock(),e.createBlock(x,{key:1,type:"index",label:c.value.indexLabel??e.unref(_.t)("common.序号"),width:"60",align:"center"},null,8,["label"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,L=>(e.openBlock(),e.createBlock(x,e.mergeProps({key:L.prop,prop:L.prop,label:L.label,formatter:!r(L.prop)&&!L.dicData?L.formatter:void 0,ref_for:!0},h(L)),e.createSlots({_:2},[d(L.prop)?{name:"header",fn:e.withCtx(V=>[e.renderSlot(a.$slots,`${L.prop}-header`,e.mergeProps({ref_for:!0},V),void 0,!0)]),key:"0"}:void 0,f(L)?{name:"default",fn:e.withCtx(V=>[r(L.prop)?e.renderSlot(a.$slots,`${L.prop}-data`,e.mergeProps({key:0,ref_for:!0},V),void 0,!0):L.dicData?(e.openBlock(),e.createElementBlock("span",Re,e.toDisplayString(w(L.dicData,V.row[L.prop])),1)):L.formatter?(e.openBlock(),e.createElementBlock("span",Ze,e.toDisplayString(L.formatter(V.row,V.column,V.row[L.prop],V.$index)),1)):(e.openBlock(),e.createElementBlock("span",Ae,e.toDisplayString(V.row[L.prop]),1))]),key:"1"}:void 0]),1040,["prop","label","formatter"]))),128)),c.value.menu?(e.openBlock(),e.createBlock(x,{key:2,label:c.value.menuLabel??e.unref(_.t)("common.操作"),width:c.value.menuWidth,"min-width":c.value.menuMinWidth,align:c.value.menuAlign??"center",fixed:u.value},{default:e.withCtx(L=>[e.renderSlot(a.$slots,"menu",e.normalizeProps(e.guardReactiveProps(L)),void 0,!0)]),_:3},8,["label","width","min-width","align","fixed"])):e.createCommentVNode("",!0)]),_:3},16,["data","row-key","empty-text","stripe"])}}}),me=S._export_sfc(We,[["__scopeId","data-v-9784ab78"]]),Ue={class:"jt-pagination"},Ke={class:"jt-pagination__count"},Ge=e.defineComponent({name:"JtPagination",__name:"JtPagination",props:{currentPage:{},pageSize:{},total:{},option:{}},emits:["update:currentPage","update:pageSize","current-change","page-change","size-change"],setup(p,{emit:t}){const o=p,n=e.computed(()=>o.option??{}),i=t;function c(l){i("current-change",l),i("page-change",l)}return(l,u)=>{const d=E.ElPagination;return e.openBlock(),e.createElementBlock("div",Ue,[e.createVNode(d,{"current-page":l.currentPage,"page-size":l.pageSize,"page-sizes":n.value.pageSizes??[10,20,50,100],total:l.total,layout:n.value.paginationLayout??"sizes, prev, pager, next, jumper","onUpdate:currentPage":u[0]||(u[0]=r=>l.$emit("update:currentPage",r)),"onUpdate:pageSize":u[1]||(u[1]=r=>l.$emit("update:pageSize",r)),onCurrentChange:c,onSizeChange:u[2]||(u[2]=r=>l.$emit("size-change",r))},null,8,["current-page","page-size","page-sizes","total","layout"]),e.createElementVNode("span",Ke,e.toDisplayString(e.unref(_.t)("common.共{total}条记录","共 {total} 条记录",{total:l.total})),1)])}}}),fe=S._export_sfc(Ge,[["__scopeId","data-v-03d564ec"]]),qe={class:"jt-crud-table"},Ye={class:"filter-bar-box"},Xe={class:"jt-crud-table__result"},Qe={class:"jt-crud-table__table-group"},et={key:0,class:"jt-crud-table__toolbar"},tt=e.defineComponent({name:"JtCrudTable",__name:"JtCrudTable",props:e.mergeModels({columns:{},option:{default:()=>({})},data:{},total:{default:0},tableEvents:{}},{currentPage:{default:1},currentPageModifiers:{},pageSize:{default:20},pageSizeModifiers:{},searchModel:{default:()=>({})},searchModelModifiers:{}}),emits:e.mergeModels(["search","reset","page-change","size-change"],["update:currentPage","update:pageSize","update:searchModel"]),setup(p,{expose:t,emit:o}){const n=p,i=o,c=e.useModel(p,"currentPage"),l=e.useModel(p,"pageSize"),u=e.useModel(p,"searchModel"),d=e.useSlots(),r=e.ref(),h=e.ref(),g=e.computed(()=>n.option),f=e.computed(()=>g.value.searchShow!==!1),k=e.computed(()=>g.value.paginationShow!==!1),w=e.computed(()=>n.columns.filter(m=>m.search&&!!d[`${m.prop}-search`])),a=e.computed(()=>n.columns.filter(m=>!m.hide&&!!d[`${m.prop}-header`])),B=e.computed(()=>n.columns.filter(m=>!m.hide&&!!d[`${m.prop}-data`]));function x(){const m={};return n.columns.forEach(y=>{y.search&&(m[y.prop]=void 0)}),m}function M(){i("search",{...u.value})}function L(){u.value=x(),i("reset")}function V(){h.value?.searchLoading()}function D(){h.value?.searchDone()}return t({tableRef:e.computed(()=>r.value?.tableRef),filterBarRef:h,searchLoading:V,searchDone:D}),(m,y)=>{const P=E.ElLoadingDirective;return e.openBlock(),e.createElementBlock("div",qe,[e.renderSlot(m.$slots,"header",{},void 0,!0),e.createElementVNode("div",Ye,[f.value?(e.openBlock(),e.createBlock(ue,{key:0,ref_key:"filterBarRef",ref:h,modelValue:u.value,"onUpdate:modelValue":y[0]||(y[0]=v=>u.value=v),columns:m.columns,option:g.value,onSearch:M,onReset:L},e.createSlots({_:2},[e.renderList(w.value,v=>({name:`${v.prop}-search`,fn:e.withCtx(C=>[e.renderSlot(m.$slots,`${v.prop}-search`,e.normalizeProps(e.guardReactiveProps(C)),void 0,!0)])}))]),1032,["modelValue","columns","option"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Xe,[e.createElementVNode("div",Qe,[e.unref(d).toolbar?(e.openBlock(),e.createElementBlock("div",et,[e.renderSlot(m.$slots,"toolbar",{},void 0,!0)])):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createBlock(me,{ref_key:"jtTableRef",ref:r,data:m.data,columns:m.columns,option:g.value,"table-events":m.tableEvents},e.createSlots({_:2},[e.renderList(a.value,v=>({name:`${v.prop}-header`,fn:e.withCtx(C=>[e.renderSlot(m.$slots,`${v.prop}-header`,e.normalizeProps(e.guardReactiveProps(C)),void 0,!0)])})),e.renderList(B.value,v=>({name:`${v.prop}-data`,fn:e.withCtx(C=>[e.renderSlot(m.$slots,`${v.prop}-data`,e.normalizeProps(e.guardReactiveProps(C)),void 0,!0)])})),g.value.menu?{name:"menu",fn:e.withCtx(v=>[e.renderSlot(m.$slots,"menu",e.normalizeProps(e.guardReactiveProps(v)),void 0,!0)]),key:"0"}:void 0]),1032,["data","columns","option","table-events"])),[[P,g.value.loading]])]),k.value?(e.openBlock(),e.createBlock(fe,{key:0,"current-page":c.value,"onUpdate:currentPage":y[1]||(y[1]=v=>c.value=v),"page-size":l.value,"onUpdate:pageSize":y[2]||(y[2]=v=>l.value=v),total:m.total,option:g.value,onPageChange:y[3]||(y[3]=v=>m.$emit("page-change",v)),onSizeChange:y[4]||(y[4]=v=>m.$emit("size-change",v))},null,8,["current-page","page-size","total","option"])):e.createCommentVNode("",!0)])])}}}),ot=S._export_sfc(tt,[["__scopeId","data-v-335c2682"]]),nt=e.defineComponent({name:"SvgIcon",__name:"SvgIcon",props:{src:{},size:{default:"1em"}},setup(p){const t=p,o=e.computed(()=>({"--svg-icon-source":`url("${t.src}")`,"--svg-icon-size":typeof t.size=="number"?`${t.size}px`:t.size}));return(n,i)=>(e.openBlock(),e.createElementBlock("span",{class:"svg-icon",style:e.normalizeStyle(o.value),"aria-hidden":"true"},null,4))}}),at=S._export_sfc(nt,[["__scopeId","data-v-d11c470f"]]),lt="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.75%208.75C3.0625%208.75%202.5%209.3125%202.5%2010C2.5%2010.6875%203.0625%2011.25%203.75%2011.25C4.4375%2011.25%205%2010.6875%205%2010C5%209.3125%204.4375%208.75%203.75%208.75ZM16.25%208.75C15.5625%208.75%2015%209.3125%2015%2010C15%2010.6875%2015.5625%2011.25%2016.25%2011.25C16.9375%2011.25%2017.5%2010.6875%2017.5%2010C17.5%209.3125%2016.9375%208.75%2016.25%208.75ZM10%208.75C9.3125%208.75%208.75%209.3125%208.75%2010C8.75%2010.6875%209.3125%2011.25%2010%2011.25C10.6875%2011.25%2011.25%2010.6875%2011.25%2010C11.25%209.3125%2010.6875%208.75%2010%208.75Z'%20fill='%23333333'/%3e%3c/svg%3e",rt=["aria-label","disabled"],st=e.defineComponent({name:"JtActionMenu",__name:"index",props:{items:{default:()=>[]},disabled:{type:Boolean,default:!1},ariaLabel:{default:_.t("common.更多操作","更多操作")}},emits:["select"],setup(p,{emit:t}){const o=p,n=t,i=e.computed(()=>o.items.filter(l=>l.hidden!==!0));function c(l){l.hidden||l.disabled||n("select",l.key,l)}return(l,u)=>{const d=E.ElIcon,r=E.ElDropdownItem,h=E.ElDropdownMenu,g=E.ElDropdown;return e.openBlock(),e.createBlock(g,{trigger:"click",placement:"bottom-end","popper-class":"jt-action-menu__popper",disabled:o.disabled||i.value.length===0,onCommand:c},{dropdown:e.withCtx(()=>[e.createVNode(h,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,f=>(e.openBlock(),e.createBlock(r,{key:f.key,class:e.normalizeClass(["jt-action-menu__item",{"is-danger":f.danger}]),command:f,disabled:f.disabled},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"item",{item:f},()=>[f.icon?(e.openBlock(),e.createBlock(d,{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.icon)))]),_:2},1024)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(f.label),1)],!0)]),_:2},1032,["class","command","disabled"]))),128))]),_:3})]),default:e.withCtx(()=>[e.renderSlot(l.$slots,"trigger",{items:i.value},()=>[e.createElementVNode("button",{class:"jt-action-menu__trigger",type:"button","aria-label":o.ariaLabel,disabled:o.disabled},[e.createVNode(at,{src:e.unref(lt),size:20},null,8,["src"])],8,rt)],!0)]),_:3},8,["disabled"])}}}),it=S._export_sfc(st,[["__scopeId","data-v-bede50b0"]]),ct="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_116_12984)'%3e%3cpath%20d='M9.79688%201.125L12.8213%203.75L15.7812%206.375V15.5625C15.7812%2016.2874%2015.1936%2016.875%2014.4688%2016.875H3.3125C2.58765%2016.875%202%2016.2874%202%2015.5625V2.4375C2%201.71265%202.58765%201.12503%203.3125%201.125H9.79688Z'%20fill='%23576A95'/%3e%3cpath%20d='M15.7813%206.375L11.1098%206.375C10.3849%206.375%209.7973%205.78737%209.7973%205.0625L9.7973%201.125L12.8799%203.75L15.7813%206.375Z'%20fill='white'%20fill-opacity='0.4'/%3e%3crect%20x='4.62499'%20y='1.125'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='5.60939'%20y='2.10938'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='4.62502'%20y='3.09375'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='5.60939'%20y='4.07812'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='4.62502'%20y='5.0625'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='5.60939'%20y='6.04688'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='4.62502'%20y='7.03125'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='5.60939'%20y='8.01562'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='4.62502'%20y='9'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3cpath%20d='M4.62502%209.98438H6.59377V11.2969C6.59377%2011.6593%206.29995%2011.9531%205.93752%2011.9531H5.28127C4.91883%2011.9531%204.62502%2011.6593%204.62502%2011.2969V9.98438Z'%20fill='white'/%3e%3crect%20x='4.95314'%20y='10.3125'%20width='1.3125'%20height='0.65625'%20fill='%23576A95'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_116_12984'%3e%3crect%20width='14'%20height='15.75'%20fill='white'%20transform='translate(2%201.125)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",dt="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_116_12985)'%3e%3cpath%20d='M9.79688%201.125L12.8213%203.75L15.7812%206.375V15.5625C15.7812%2016.2874%2015.1936%2016.875%2014.4688%2016.875H3.3125C2.58765%2016.875%202%2016.2874%202%2015.5625V2.4375C2%201.71265%202.58765%201.12503%203.3125%201.125H9.79688Z'%20fill='%2323B08D'/%3e%3cpath%20d='M15.7813%206.375L11.1098%206.375C10.3849%206.375%209.79729%205.78737%209.79729%205.0625L9.7973%201.125L12.8799%203.75L15.7813%206.375Z'%20fill='white'%20fill-opacity='0.4'/%3e%3cpath%20d='M8.9075%2010.7278H8.87375L7.59125%2012.6094H5.97969L8.03844%209.68156L5.9375%206.70312H7.53219L8.87375%208.63531H8.9075L10.2491%206.70312H11.8437L9.75125%209.68156L11.81%2012.6094H10.19L8.9075%2010.7278Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_116_12985'%3e%3crect%20width='14'%20height='15.75'%20fill='white'%20transform='translate(2%201.125)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",pt="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15.7454%206.375L11.1873%206.375C10.4624%206.375%209.87481%205.78737%209.87481%205.0625L9.87481%201.125L12.899%203.75L15.7454%206.375Z'%20fill='%23E78B7F'/%3e%3cpath%20d='M5.61656%208.43881H6.15403V10.6576C6.15403%2011.0343%206.07594%2011.3099%205.91975%2011.4937C5.74519%2011.6866%205.46956%2011.7831%205.08828%2011.7831C4.75753%2011.7831%204.50488%2011.6912%204.33491%2011.5074C4.16035%2011.3237%204.07306%2011.071%204.07306%2010.7495V10.6438H4.61053V10.7449C4.61053%2011.1216%204.77131%2011.3099%205.09747%2011.3099C5.27663%2011.3099%205.40985%2011.2548%205.49253%2011.1491C5.57522%2011.0435%205.61656%2010.8735%205.61656%2010.6392V8.43881ZM6.79755%208.43881H8.1573C8.94743%208.43881%209.34708%208.77416%209.34708%209.44484C9.34708%2010.1201%208.94743%2010.4601%208.14811%2010.4601H7.33502V11.7188H6.79755V8.43881ZM7.33502%208.89819V10.0007H8.11596C8.35483%2010.0007%208.5294%209.95475%208.63965%209.87206C8.7499%209.78478%208.80502%209.64238%208.80502%209.44484C8.80502%209.24731%208.7453%209.1095%208.63505%209.02681C8.5248%208.93953%208.35024%208.89819%208.11596%208.89819H7.33502ZM11.2318%208.3745C11.6544%208.3745%2011.9852%208.46638%2012.2286%208.65472C12.4629%208.83847%2012.6099%209.1095%2012.6696%209.477H12.1276C12.0816%209.26569%2011.9806%209.1095%2011.8336%209.00384C11.682%208.89819%2011.4798%208.84766%2011.2318%208.84766C10.924%208.84766%2010.6805%208.94872%2010.5014%209.16003C10.3038%209.38053%2010.2074%209.68831%2010.2074%2010.0926C10.2074%2010.4784%2010.2947%2010.777%2010.4692%2010.9838C10.6576%2011.2043%2010.9516%2011.3145%2011.3512%2011.3145C11.5074%2011.3145%2011.6544%2011.2961%2011.7922%2011.2594C11.9208%2011.2226%2012.0357%2011.1721%2012.1459%2011.1078V10.4325H11.2777V9.97313H12.6834V11.3604C12.5088%2011.4983%2012.3113%2011.5993%2012.0862%2011.6728C11.8473%2011.7463%2011.5855%2011.7831%2011.2915%2011.7831C10.7678%2011.7831%2010.3636%2011.6177%2010.0742%2011.2869C9.80312%2010.9792%209.6699%2010.5795%209.6699%2010.0926C9.6699%209.60103%209.80312%209.19678%2010.0742%208.87981C10.359%208.53988%2010.7448%208.3745%2011.2318%208.3745Z'%20fill='white'/%3e%3cpath%20d='M15.7813%206.37537V15.5621C15.7813%2016.287%2015.1933%2016.875%2014.4684%2016.875H3.31287C2.588%2016.875%202.00001%2016.287%202.00001%2015.5621V2.43787C2.00001%201.713%202.588%201.125%203.31287%201.125H9.87501L15.7813%206.37537Z'%20fill='%23E60000'/%3e%3cg%20clip-path='url(%23clip0_116_12983)'%3e%3cpath%20d='M10.854%208.25822C11.4331%208.23023%2011.8857%207.70539%2011.8524%207.09657C11.8258%206.52974%2011.3931%206.07487%2010.854%206.04688C10.275%206.07487%209.82239%206.59971%209.85567%207.20853C9.8823%207.77537%2010.3149%208.23023%2010.854%208.25822ZM10.9405%209.39889C10.9073%209.3499%2010.8673%209.30791%2010.8207%209.27292C10.5745%209.08398%2010.235%209.13996%2010.0553%209.39889L9.76249%209.82576C9.70925%209.90274%209.60941%209.91673%209.54286%209.86075C9.52954%209.85375%209.51623%209.83975%209.50958%209.82576L8.47129%208.3422C8.43801%208.29321%208.39808%208.25123%208.35149%208.21624C8.23834%208.12526%208.09192%208.09027%207.94549%208.11127C7.80572%208.13226%207.67261%208.21624%207.59274%208.3422L5.71584%2011.0294C5.53614%2011.2883%205.58938%2011.6452%205.82899%2011.8342C5.92217%2011.9041%206.03531%2011.9461%206.15512%2011.9461H11.6594C11.7659%2011.9461%2011.8657%2011.9041%2011.9522%2011.8342C12.1918%2011.6452%2012.2451%2011.2813%2012.0654%2011.0294L10.9405%209.39889Z'%20fill='white'/%3e%3c/g%3e%3cpath%20d='M15.7813%206.37501L11.2232%206.37501C10.4983%206.37501%209.9107%205.78738%209.9107%205.06251L9.9107%201.12501L12.9349%203.75001L15.7813%206.37501Z'%20fill='white'%20fill-opacity='0.4'/%3e%3cdefs%3e%3cclipPath%20id='clip0_116_12983'%3e%3crect%20width='6.5625'%20height='5.90625'%20fill='white'%20transform='translate(5.60939%206.04688)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",ut="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.797%201.125L12.8215%203.74963L15.7812%206.37537V15.5621C15.7812%2016.287%2015.1933%2016.875%2014.4684%2016.875H3.31287C2.58799%2016.875%202%2016.287%202%2015.5621V2.43787C2%201.71299%202.58799%201.125%203.31287%201.125H9.797Z'%20fill='%23FF5E00'/%3e%3cpath%20d='M15.7813%206.375L11.1098%206.375C10.3849%206.375%209.79729%205.78737%209.79729%205.0625L9.79729%201.125L12.8799%203.75L15.7813%206.375Z'%20fill='white'%20fill-opacity='0.4'/%3e%3cpath%20d='M12.1742%2011.8432C11.5493%2011.7975%2010.9476%2011.569%2010.4616%2011.1579C9.51279%2011.3635%208.61023%2011.6604%207.70767%2012.0259C6.99025%2013.2823%206.31912%2013.9219%205.74055%2013.9219C5.62484%2013.9219%205.48599%2013.899%205.39342%2013.8305C5.13885%2013.7163%204.99999%2013.465%204.99999%2013.2137C4.99999%2013.0082%205.04628%2012.4371%207.24482%2011.5005C7.75396%2010.5868%208.14738%209.65022%208.47137%208.66797C8.19366%208.11974%207.59196%206.772%208.00852%206.0867C8.14738%205.83543%208.42509%205.69837%208.72594%205.72121C8.95737%205.72121%209.18879%205.83543%209.32765%206.01817C9.6285%206.42935%209.60536%207.29739%209.21194%208.5766C9.58222%209.26189%2010.0682%209.87865%2010.6468%2010.404C11.1328%2010.3127%2011.6188%2010.2441%2012.1048%2010.2441C13.1925%2010.267%2013.3545%2010.7695%2013.3313%2011.0665C13.3313%2011.8432%2012.5676%2011.8432%2012.1742%2011.8432ZM5.69427%2013.2594L5.7637%2013.2366C6.08769%2013.1224%206.34226%2012.8939%206.5274%2012.597C6.18026%2012.734%205.90255%2012.9625%205.69427%2013.2594ZM8.77223%206.40651H8.7028C8.67966%206.40651%208.63337%206.40651%208.61023%206.42935C8.51766%206.81768%208.58709%207.22886%208.74909%207.59435C8.88794%207.20601%208.88794%206.79484%208.77223%206.40651ZM8.93423%209.71875L8.91108%209.76444L8.88794%209.74159C8.67966%2010.267%208.44823%2010.7924%208.19366%2011.2949L8.23995%2011.2721V11.3178C8.74909%2011.135%209.30451%2010.9751%209.81364%2010.8609L9.7905%2010.8381H9.85993C9.51279%2010.4954%209.18879%2010.1071%208.93423%209.71875ZM12.0816%2010.9294C11.8733%2010.9294%2011.6882%2010.9294%2011.4799%2010.9751C11.7113%2011.0893%2011.9428%2011.135%2012.1742%2011.1579C12.3362%2011.1807%2012.4982%2011.1579%2012.637%2011.1122C12.637%2011.0436%2012.5445%2010.9294%2012.0816%2010.9294Z'%20fill='white'/%3e%3c/svg%3e",mt="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_116_12982)'%3e%3cpath%20d='M9.797%201.125L12.8215%203.74964L15.7813%206.37537V15.5621C15.7813%2016.287%2015.1933%2016.875%2014.4684%2016.875H3.31287C2.588%2016.875%202.00001%2016.287%202.00001%2015.5621V2.43787C2.00001%201.713%202.588%201.125%203.31287%201.125H9.797Z'%20fill='%23165DFF'/%3e%3cg%20clip-path='url(%23clip1_116_12982)'%3e%3cpath%20d='M11.2235%206.70312L10.2584%2010.5773L9.42526%207.20938H8.35602L7.52285%2010.5773L6.55776%206.70312H5.26635L6.73828%2012.6094H7.02295H8.0297H8.08524L8.89064%209.36797L9.68909%2012.6094H9.75158H10.7583H11.0361L12.5149%206.70312H11.2235Z'%20fill='white'/%3e%3c/g%3e%3cpath%20d='M15.7813%206.375L11.1098%206.375C10.3849%206.375%209.79729%205.78737%209.79729%205.0625L9.7973%201.125L12.8799%203.75L15.7813%206.375Z'%20fill='white'%20fill-opacity='0.4'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_116_12982'%3e%3crect%20width='14'%20height='15.75'%20fill='white'%20transform='translate(2%201.125)'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_116_12982'%3e%3crect%20width='7.24858'%20height='5.90625'%20fill='white'%20transform='translate(5.26635%206.70312)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",ft={pdf:"pdf",xls:"excel",xlsx:"excel",csv:"excel",doc:"word",docx:"word",zip:"archive",rar:"archive","7z":"archive",tar:"archive",gz:"archive",png:"image",jpg:"image",jpeg:"image",gif:"image",webp:"image",bmp:"image",svg:"image"};function he(p,t){if(t)return t;if(!p)return;const o=p.split(/[?#]/,1)[0],n=o.includes(".")?o.split(".").pop()?.toLowerCase():void 0;return n?ft[n]:void 0}const ht=["aria-label"],gt=["src"],Ct=e.defineComponent({name:"JtFileIcon",__name:"index",props:{name:{},type:{},size:{default:18}},setup(p){const t=p,o={pdf:ut,excel:dt,word:mt,archive:ct,image:pt},n=e.computed(()=>he(t.name,t.type)),i=e.computed(()=>n.value?o[n.value]:void 0),c=e.computed(()=>t.name?_.t("common.{name}文件图标","{name} 文件图标",{name:t.name}):_.t("common.文件图标","文件图标")),l=e.computed(()=>({"--jt-file-icon-size":typeof t.size=="number"?`${t.size}px`:t.size}));return(u,d)=>(e.openBlock(),e.createElementBlock("span",{class:"jt-file-icon",role:"img","aria-label":c.value,style:e.normalizeStyle(l.value)},[i.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:i.value,alt:"","aria-hidden":"true"},null,8,gt)):e.renderSlot(u.$slots,t.name,{key:1,type:n.value},void 0,!0)],12,ht))}}),ge=S._export_sfc(Ct,[["__scopeId","data-v-989a66a3"]]),vt={key:0,class:"jt-attachment-list"},_t={class:"jt-attachment-list__identity"},yt=["title"],bt={key:0,class:"jt-attachment-list__description"},wt={key:0,class:"jt-attachment-list__actions"},kt={key:1,class:"jt-attachment-list__empty"},Bt=e.defineComponent({name:"JtAttachmentList",__name:"index",props:{files:{},emptyText:{default:_.t("common.暂无附件","暂无附件")}},emits:["preview","download","remove"],setup(p,{emit:t}){const o=p,n=t;function i(u){n("preview",u)}function c(u){n("download",u)}function l(u){n("remove",u)}return(u,d)=>o.files.length?(e.openBlock(),e.createElementBlock("ul",vt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.files,r=>(e.openBlock(),e.createElementBlock("li",{key:r.id,class:"jt-attachment-list__item"},[e.renderSlot(u.$slots,"item",{file:r},()=>[e.createElementVNode("span",_t,[e.createVNode(ge,{name:r.name,type:r.type},null,8,["name","type"]),e.createElementVNode("span",{class:e.normalizeClass(["jt-attachment-list__name",{"is-disabled":r.disabled}]),title:r.name},e.toDisplayString(r.name),11,yt),r.description?(e.openBlock(),e.createElementBlock("span",bt,e.toDisplayString(r.description),1)):e.createCommentVNode("",!0)])],!0),u.$slots.actions?(e.openBlock(),e.createElementBlock("span",wt,[e.renderSlot(u.$slots,"actions",{file:r,preview:()=>i(r),download:()=>c(r),remove:()=>l(r)},void 0,!0)])):e.createCommentVNode("",!0)]))),128))])):(e.openBlock(),e.createElementBlock("div",kt,[e.renderSlot(u.$slots,"empty",{},()=>[e.createTextVNode(e.toDisplayString(o.emptyText),1)],!0)]))}}),xt=S._export_sfc(Bt,[["__scopeId","data-v-9f6adbeb"]]),Lt={key:0,class:"jt-card__title"},St={key:1,class:"jt-card__content"},$t=e.defineComponent({name:"JtCard",__name:"index",props:{title:{}},setup(p){const t=p,o=e.useSlots(),n=e.computed(()=>!!(t.title||o.title)),i=e.computed(()=>!!(o.content||o.default));return(c,l)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"jt-card"},c.$attrs),[n.value?(e.openBlock(),e.createElementBlock("div",Lt,[e.renderSlot(c.$slots,"title",{},()=>[e.createElementVNode("span",null,e.toDisplayString(c.title),1)],!0)])):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("div",St,[e.renderSlot(c.$slots,"content",{},()=>[e.renderSlot(c.$slots,"default",{},void 0,!0)],!0)])):e.createCommentVNode("",!0)],16))}}),Vt=S._export_sfc($t,[["__scopeId","data-v-e4895e88"]]),Et=["aria-label"],jt=["data-jt-choice-card-index","aria-checked","aria-disabled","disabled","tabindex","onClick","onKeydown"],Tt={class:"jt-choice-card__copy"},Mt={class:"jt-choice-card__label"},Pt={key:0,class:"jt-choice-card__description"},Dt=e.defineComponent({name:"JtChoiceCardGroup",__name:"index",props:{modelValue:{},options:{default:()=>[]},ariaLabel:{default:_.t("common.卡片单选","卡片单选")}},emits:["update:modelValue","change"],setup(p,{emit:t}){const o=p,n=t,i=e.ref(),c=e.computed(()=>o.options.flatMap((r,h)=>r.disabled?[]:[h]));function l(r){r.disabled||r.value===o.modelValue||(n("update:modelValue",r.value),n("change",r.value,r))}function u(r,h){return r.disabled?-1:r.value===o.modelValue||o.modelValue===void 0&&h===c.value[0]?0:-1}function d(r,h,g){if(r.key==="Enter"||r.key===" "){r.preventDefault(),l(h);return}const k={ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1}[r.key];if(!k||c.value.length===0)return;r.preventDefault();const a=(Math.max(c.value.indexOf(g),0)+k+c.value.length)%c.value.length,B=c.value[a],x=o.options[B];i.value?.querySelector(`[data-jt-choice-card-index="${B}"]`)?.focus(),x&&l(x)}return(r,h)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"groupRef",ref:i,class:"jt-choice-card-group",role:"radiogroup","aria-label":o.ariaLabel},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.options,(g,f)=>(e.openBlock(),e.createElementBlock("button",{key:g.value,class:e.normalizeClass(["jt-choice-card",{"is-selected":g.value===o.modelValue}]),type:"button",role:"radio","data-jt-choice-card-index":f,"aria-checked":g.value===o.modelValue?"true":"false","aria-disabled":g.disabled?"true":"false",disabled:g.disabled,tabindex:u(g,f),onClick:k=>l(g),onKeydown:k=>d(k,g,f)},[e.renderSlot(r.$slots,"option",{option:g,selected:g.value===o.modelValue},()=>[e.createElementVNode("span",Tt,[e.createElementVNode("span",Mt,e.toDisplayString(g.label),1),g.description?(e.openBlock(),e.createElementBlock("span",Pt,e.toDisplayString(g.description),1)):e.createCommentVNode("",!0)])],!0)],42,jt))),128))],8,Et))}}),Ft=S._export_sfc(Dt,[["__scopeId","data-v-897eb9f2"]]),zt={class:"jt-descriptions__label"},Nt={class:"jt-descriptions__value"},It=e.defineComponent({name:"JtDescriptions",__name:"index",props:{items:{},columns:{default:4},labelWidth:{default:"auto"},emptyText:{default:"--"}},setup(p){const t=p,o=e.computed(()=>t.items.filter(l=>!l.hidden)),n=e.computed(()=>({"--jt-descriptions-columns":t.columns,"--jt-descriptions-label-width":typeof t.labelWidth=="number"?`${t.labelWidth}px`:t.labelWidth}));function i(l){const u=Math.trunc(l??1);return Math.min(Math.max(u,1),t.columns)}function c(l){return l!=null&&l!==""}return(l,u)=>(e.openBlock(),e.createElementBlock("dl",{class:"jt-descriptions",style:e.normalizeStyle(n.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,d=>(e.openBlock(),e.createElementBlock("div",{key:d.key,class:"jt-descriptions__item",style:e.normalizeStyle({gridColumn:`span ${i(d.span)}`})},[e.renderSlot(l.$slots,"item",{item:d},()=>[e.createElementVNode("dt",zt,[e.renderSlot(l.$slots,`${d.key}-label`,{item:d},()=>[e.createTextVNode(e.toDisplayString(d.label),1)],!0)]),e.createElementVNode("dd",Nt,[e.renderSlot(l.$slots,`${d.key}-value`,{item:d},()=>[e.createTextVNode(e.toDisplayString(c(d.value)?d.value:t.emptyText),1)],!0)])],!0)],4))),128))],4))}}),Ht=S._export_sfc(It,[["__scopeId","data-v-9cf04a6b"]]),Jt="data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='28'%20height='28'%20rx='14'%20fill='%23F9F9F9'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M19.7286%207.21096C20.0215%206.91825%2020.4963%206.91814%2020.7892%207.21096C21.082%207.50379%2021.0819%207.9786%2020.7892%208.2715L15.0607%2014L20.7892%2019.7285C21.082%2020.0214%2021.0819%2020.4962%2020.7892%2020.7891C20.4963%2021.082%2020.0215%2021.082%2019.7286%2020.7891L14.0001%2015.0606L8.2716%2020.7891C7.97871%2021.082%207.50394%2021.082%207.21105%2020.7891C6.91817%2020.4962%206.91816%2020.0214%207.21105%2019.7285L12.9396%2014L7.21105%208.2715C6.91816%207.97861%206.91816%207.50385%207.21105%207.21096C7.50396%206.91825%207.97876%206.91812%208.2716%207.21096L14.0001%2012.9395L19.7286%207.21096Z'%20fill='%23666666'/%3e%3c/svg%3e",Ot={class:"jt-dialog__header"},Rt={class:"jt-dialog__title"},Zt={key:0,class:"jt-dialog__icon","aria-hidden":"true"},At=["aria-label","disabled"],Wt={class:"jt-dialog__body"},Ut={class:"jt-dialog__footer"},Kt=e.defineComponent({name:"JtDialog",__name:"index",props:e.mergeModels({appendToBody:{type:Boolean},appendTo:{},beforeClose:{},destroyOnClose:{type:Boolean},closeOnClickModal:{type:Boolean},closeOnPressEscape:{type:Boolean},lockScroll:{type:Boolean},modal:{type:Boolean,default:!0},modalPenetrable:{type:Boolean},openDelay:{},closeDelay:{},top:{},modalClass:{},zIndex:{},trapFocus:{type:Boolean},headerAriaLevel:{},transition:{},center:{type:Boolean},alignCenter:{type:Boolean},closeIcon:{},draggable:{type:Boolean},overflow:{type:Boolean},fullscreen:{type:Boolean},headerClass:{},bodyClass:{},footerClass:{},showClose:{type:Boolean},ariaLevel:{},title:{default:""},width:{default:"default"},cancelText:{default:_.t("common.取消")},confirmText:{default:_.t("common.确认")},confirmLoading:{type:Boolean,default:!1},showFooter:{type:Boolean,default:!0},footerLayout:{default:"stretch"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:e.mergeModels(["cancel","confirm","close"],["update:modelValue"]),setup(p,{emit:t}){const o=p,n=e.useModel(p,"modelValue"),i=t,c={default:"517px",form:"642px"},l=new Set(["title","width","cancelText","confirmText","confirmLoading","showFooter","footerLayout"]),u=e.useAttrs();function d(a){return typeof a=="string"&&a in c?c[a]:a}const r=e.computed(()=>{const{title:a,width:B,cancelText:x,confirmText:M,confirmLoading:L,showFooter:V,footerLayout:D,...m}=o;return{...G(u,l),...m,width:d(B),showClose:!1}}),h=e.computed(()=>K(u)),g=e.computed(()=>`jt-dialog--footer-${o.footerLayout}`);function f(){n.value=!1}function k(){i("cancel"),f()}function w(){o.confirmLoading||i("confirm")}return(a,B)=>{const x=E.ElDialog;return e.openBlock(),e.createBlock(x,e.mergeProps({modelValue:n.value,"onUpdate:modelValue":B[0]||(B[0]=M=>n.value=M),class:["jt-dialog",g.value]},r.value,e.toHandlers(h.value),{onClose:B[1]||(B[1]=M=>i("close"))}),e.createSlots({header:e.withCtx(()=>[e.renderSlot(a.$slots,"header",{close:f},()=>[e.createElementVNode("header",Ot,[e.createElementVNode("div",Rt,[a.$slots.icon?(e.openBlock(),e.createElementBlock("span",Zt,[e.renderSlot(a.$slots,"icon")])):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(a.title),1)]),e.createElementVNode("button",{type:"button",class:"jt-dialog__close","aria-label":e.unref(_.t)("common.关闭","关闭"),disabled:a.confirmLoading,onClick:f},B[2]||(B[2]=[e.createElementVNode("img",{src:Jt,alt:""},null,-1)]),8,At)])])]),default:e.withCtx(()=>[e.createElementVNode("section",Wt,[e.renderSlot(a.$slots,"default")])]),_:2},[a.showFooter?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("footer",Ut,[e.renderSlot(a.$slots,"footer",{cancel:k,confirm:w},()=>[e.createVNode(N,{size:"middle",gray:"",disabled:a.confirmLoading,onClick:k},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.cancelText),1)]),_:1},8,["disabled"]),e.createVNode(N,{size:"middle",type:"primary",loading:a.confirmLoading,disabled:a.confirmLoading,onClick:w},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.confirmText),1)]),_:1},8,["loading","disabled"])])])]),key:"0"}:void 0]),1040,["modelValue","class"])}}}),Gt={class:"jt-drawer__body"},qt={class:"jt-drawer__footer"},Yt={class:"jt-drawer__footer-actions"},Xt=e.defineComponent({name:"JtDrawer",__name:"index",props:{direction:{default:"rtl"},resizable:{type:Boolean},withHeader:{type:Boolean},modalFade:{type:Boolean},headerAriaLevel:{},appendToBody:{type:Boolean},appendTo:{},beforeClose:{},destroyOnClose:{type:Boolean},closeOnClickModal:{type:Boolean},closeOnPressEscape:{type:Boolean},lockScroll:{type:Boolean},modal:{type:Boolean,default:!0},modalPenetrable:{type:Boolean},openDelay:{},closeDelay:{},top:{},modelValue:{type:Boolean},modalClass:{default:"jt-drawer-modal"},width:{},zIndex:{},trapFocus:{type:Boolean},transition:{},center:{type:Boolean},alignCenter:{type:Boolean},closeIcon:{},draggable:{type:Boolean},overflow:{type:Boolean},fullscreen:{type:Boolean},headerClass:{},bodyClass:{},footerClass:{},showClose:{type:Boolean},title:{},ariaLevel:{},size:{default:"default"},cancelText:{default:_.t("common.取消")},confirmText:{default:_.t("common.确认")},confirmLoading:{type:Boolean,default:!1},showFooter:{type:Boolean,default:!0}},emits:["cancel","confirm"],setup(p,{emit:t}){const o={default:"838px",large:"1242px"},n=new Set(["cancelText","confirmText","confirmLoading","showFooter"]),i=p,c=t,l=e.useAttrs(),u=e.computed(()=>{const{cancelText:r,confirmText:h,confirmLoading:g,showFooter:f,size:k,...w}=i;return{...G(l,n),...w,size:o[k],withHeader:!1,modalClass:["jt-drawer-modal",w.modalClass].filter(Boolean).join(" ")}}),d=e.computed(()=>K(l));return(r,h)=>{const g=E.ElDrawer;return e.openBlock(),e.createBlock(g,e.mergeProps({class:"jt-drawer","lock-model":""},u.value,e.toHandlers(d.value)),e.createSlots({default:e.withCtx(()=>[e.createElementVNode("section",Gt,[e.renderSlot(r.$slots,"body",{},()=>[e.renderSlot(r.$slots,"default")])])]),_:2},[r.showFooter?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("footer",qt,[e.renderSlot(r.$slots,"footer",{},()=>[e.createElementVNode("div",Yt,[e.createVNode(N,{class:"jt-drawer__footer-button",size:"middle",gray:"",disabled:r.confirmLoading,onClick:h[0]||(h[0]=f=>c("cancel"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.cancelText),1)]),_:1},8,["disabled"]),e.createVNode(N,{class:"jt-drawer__footer-button",size:"middle",type:"primary",loading:r.confirmLoading,disabled:r.confirmLoading,onClick:h[1]||(h[1]=f=>c("confirm"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.confirmText),1)]),_:1},8,["loading","disabled"])])])])]),key:"0"}:void 0]),1040)}}}),Qt="data:image/svg+xml,%3csvg%20width='120'%20height='120'%20viewBox='0%200%20120%20120'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M59.2179%2014.6719C69.4239%2014.6719%2078.836%2018.0239%2086.378%2023.6719H83.3439C81.9079%2023.6719%2080.7439%2024.8359%2080.7439%2026.2719V26.4719C80.7439%2027.9079%2081.9079%2029.0719%2083.3439%2029.0719H92.3799C94.0939%2030.9199%2095.6499%2032.9099%2097.0299%2035.0239H101.32C102.866%2035.0239%20104.12%2036.2779%20104.12%2037.8239V37.9799C104.12%2039.2579%20103.264%2040.3359%20102.094%2040.6719H98.1439C96.3759%2040.6719%2094.9439%2042.1039%2094.9439%2043.8719V44.8719C94.9439%2046.6399%2096.3759%2048.0719%2098.1439%2048.0719H111.724C113.114%2048.4199%20114.144%2049.6779%20114.144%2051.1759V51.3539C114.144%2053.1219%20112.712%2054.5539%20110.944%2054.5539H103.908C104.048%2055.9759%20104.12%2057.4159%20104.12%2058.8719C104.12%2083.2819%2084.0159%20103.072%2059.2179%20103.072C39.3819%20103.072%2022.5499%2090.4119%2016.6079%2072.8519H14.9219C14.2419%2072.8519%2013.6879%2072.2999%2013.6879%2071.6179C13.6879%2071.0979%2014.0099%2070.6539%2014.4659%2070.4719H16.5439C17.9799%2070.4719%2019.1439%2069.3079%2019.1439%2067.8719V67.6719C19.1439%2066.2359%2017.9799%2065.0719%2016.5439%2065.0719H14.7539C14.7519%2065.0619%2014.7499%2065.0499%2014.7499%2065.0399H10.3139C9.17994%2065.0399%208.25995%2064.1199%208.25995%2062.9839C8.25995%2061.8479%209.17994%2060.9279%2010.3139%2060.9279H14.3639C14.3319%2060.2459%2014.3159%2059.5619%2014.3159%2058.8719C14.3159%2052.3459%2015.7519%2046.1499%2018.3319%2040.5739L11.1439%2040.5759C8.05195%2040.5759%205.54395%2038.0679%205.54395%2034.9759V34.6619C5.54395%2031.6779%207.87795%2029.2379%2010.8219%2029.0719H36.1439C37.2479%2029.0719%2038.1439%2028.1759%2038.1439%2027.0719C38.1439%2025.9679%2037.2479%2025.0719%2036.1439%2025.0719H30.2819C30.3319%2025.0319%2030.3799%2024.9899%2030.4279%2024.9499L27.5139%2024.9519C25.4139%2024.9519%2023.7139%2023.2499%2023.7139%2021.1519V20.9379C23.7139%2018.8399%2025.4139%2017.1379%2027.5139%2017.1379H44.3899C49.0319%2015.5399%2054.0219%2014.6719%2059.2179%2014.6719Z'%20fill='%23E60000'%20fill-opacity='0.04'/%3e%3cpath%20d='M35.7505%2077.9514C35.7745%2078.0434%2035.8045%2078.1434%2035.8385%2078.2494L35.9085%2078.5294C35.9325%2078.6234%2035.9445%2078.6994%2035.9445%2078.7574C35.9445%2079.0834%2035.8565%2079.3734%2035.6805%2079.6254C35.5065%2079.8754%2035.2765%2080.0594%2034.9965%2080.1774C34.8905%2080.1894%2034.7805%2080.1954%2034.6625%2080.1954C34.5685%2080.2054%2034.4645%2080.2114%2034.3465%2080.2114H34.0125L31.2745%2080.2474V83.1754C31.2745%2083.6074%2031.2825%2084.0414%2031.3005%2084.4814C31.3185%2084.9194%2031.3385%2085.3134%2031.3605%2085.6634C31.3845%2086.0854%2031.4145%2086.4874%2031.4485%2086.8734H28.9205L28.9725%2086.1894C28.9845%2085.9214%2028.9965%2085.5554%2029.0085%2085.0934C29.0205%2084.6334%2029.0265%2084.0154%2029.0265%2083.2454V80.5634C28.8265%2080.7374%2028.6045%2080.8254%2028.3585%2080.8254C28.1605%2080.8254%2027.9865%2080.7794%2027.8405%2080.6854C27.6945%2080.5914%2027.5745%2080.4634%2027.4805%2080.2994L25.4965%2080.1954C25.1105%2080.1014%2024.7885%2079.9054%2024.5305%2079.6074C24.2725%2079.3094%2024.1445%2078.9554%2024.1445%2078.5474C24.1445%2078.4774%2024.1505%2078.4114%2024.1625%2078.3534C24.1745%2078.2954%2024.1905%2078.2374%2024.2145%2078.1794L24.6545%2077.1614C24.6765%2076.9054%2024.7505%2076.6654%2024.8725%2076.4434C24.9965%2076.2214%2025.1505%2076.0274%2025.3385%2075.8654L28.0945%2070.7634H28.1125C28.3345%2070.3554%2028.5985%2070.0034%2028.9025%2069.7114C29.2065%2069.4194%2029.6005%2069.2734%2030.0805%2069.2734C30.5005%2069.2734%2030.8785%2069.3854%2031.2125%2069.6074C31.5465%2069.8294%2031.7945%2070.1214%2031.9585%2070.4834L34.1705%2074.8134C34.5685%2074.9534%2034.8965%2075.1994%2035.1545%2075.5494C35.4125%2075.8994%2035.5405%2076.3034%2035.5405%2076.7594C35.5405%2076.9454%2035.5105%2077.1434%2035.4525%2077.3554L35.7505%2077.9514Z'%20fill='url(%23paint0_linear_2264_15691)'/%3e%3cpath%20d='M97.7505%2077.9514C97.7745%2078.0434%2097.8045%2078.1434%2097.8385%2078.2494L97.9085%2078.5294C97.9325%2078.6234%2097.9445%2078.6994%2097.9445%2078.7574C97.9445%2079.0834%2097.8565%2079.3734%2097.6805%2079.6254C97.5065%2079.8754%2097.2765%2080.0594%2096.9965%2080.1774C96.8905%2080.1894%2096.7805%2080.1954%2096.6625%2080.1954C96.5685%2080.2054%2096.4645%2080.2114%2096.3465%2080.2114H96.0125L93.2745%2080.2474V83.1754C93.2745%2083.6074%2093.2825%2084.0414%2093.3005%2084.4814C93.3185%2084.9194%2093.3385%2085.3134%2093.3605%2085.6634C93.3845%2086.0854%2093.4145%2086.4874%2093.4485%2086.8734H90.9205L90.9725%2086.1894C90.9845%2085.9214%2090.9965%2085.5554%2091.0085%2085.0934C91.0205%2084.6334%2091.0265%2084.0154%2091.0265%2083.2454V80.5634C90.8265%2080.7374%2090.6045%2080.8254%2090.3585%2080.8254C90.1605%2080.8254%2089.9865%2080.7794%2089.8405%2080.6854C89.6945%2080.5914%2089.5745%2080.4634%2089.4805%2080.2994L87.4965%2080.1954C87.1105%2080.1014%2086.7885%2079.9054%2086.5305%2079.6074C86.2725%2079.3094%2086.1445%2078.9554%2086.1445%2078.5474C86.1445%2078.4774%2086.1505%2078.4114%2086.1625%2078.3534C86.1745%2078.2954%2086.1905%2078.2374%2086.2145%2078.1794L86.6545%2077.1614C86.6765%2076.9054%2086.7505%2076.6654%2086.8725%2076.4434C86.9965%2076.2214%2087.1505%2076.0274%2087.3385%2075.8654L90.0945%2070.7634H90.1125C90.3345%2070.3554%2090.5985%2070.0034%2090.9025%2069.7114C91.2065%2069.4194%2091.6005%2069.2734%2092.0805%2069.2734C92.5005%2069.2734%2092.8785%2069.3854%2093.2125%2069.6074C93.5465%2069.8294%2093.7945%2070.1214%2093.9585%2070.4834L96.1705%2074.8134C96.5685%2074.9534%2096.8965%2075.1994%2097.1545%2075.5494C97.4125%2075.8994%2097.5405%2076.3034%2097.5405%2076.7594C97.5405%2076.9454%2097.5105%2077.1434%2097.4525%2077.3554L97.7505%2077.9514Z'%20fill='url(%23paint1_linear_2264_15691)'/%3e%3cpath%20d='M90.3947%2079.8743C90.4127%2079.9483%2090.4347%2080.0243%2090.4627%2080.1083L90.5167%2080.3283C90.5347%2080.4003%2090.5447%2080.4603%2090.5447%2080.5063C90.5447%2080.7623%2090.4767%2080.9903%2090.3387%2081.1863C90.2027%2081.3843%2090.0247%2081.5283%2089.8047%2081.6203C89.7227%2081.6283%2089.6367%2081.6343%2089.5447%2081.6343C89.4727%2081.6423%2089.3907%2081.6463%2089.2987%2081.6463H89.0387L86.9027%2081.6743V83.9703C86.9027%2084.3083%2086.9107%2084.6503%2086.9227%2084.9943C86.9367%2085.3383%2086.9527%2085.6463%2086.9707%2085.9223C86.9907%2086.2523%2087.0127%2086.5683%2087.0407%2086.8703H85.0687L85.1087%2086.3343C85.1187%2086.1243%2085.1287%2085.8363%2085.1367%2085.4743C85.1467%2085.1123%2085.1507%2084.6303%2085.1507%2084.0243V81.9223C84.9947%2082.0603%2084.8227%2082.1283%2084.6307%2082.1283C84.4747%2082.1283%2084.3407%2082.0923%2084.2267%2082.0183C84.1127%2081.9443%2084.0187%2081.8443%2083.9467%2081.7163L82.3987%2081.6343C82.0967%2081.5603%2081.8467%2081.4063%2081.6467%2081.1723C81.4447%2080.9403%2081.3447%2080.6623%2081.3447%2080.3423C81.3447%2080.2863%2081.3487%2080.2363%2081.3587%2080.1903C81.3667%2080.1443%2081.3807%2080.0983%2081.3987%2080.0523L81.7427%2079.2563C81.7607%2079.0543%2081.8167%2078.8663%2081.9127%2078.6923C82.0087%2078.5183%2082.1287%2078.3663%2082.2747%2078.2383L84.4247%2074.2383H84.4387C84.6127%2073.9183%2084.8167%2073.6423%2085.0547%2073.4143C85.2927%2073.1843%2085.5987%2073.0703%2085.9727%2073.0703C86.3007%2073.0703%2086.5947%2073.1583%2086.8547%2073.3323C87.1147%2073.5063%2087.3087%2073.7343%2087.4367%2074.0183L89.1627%2077.4143C89.4727%2077.5243%2089.7287%2077.7163%2089.9287%2077.9903C90.1287%2078.2663%2090.2307%2078.5823%2090.2307%2078.9403C90.2307%2079.0863%2090.2067%2079.2423%2090.1607%2079.4063L90.3947%2079.8743Z'%20fill='url(%23paint2_linear_2264_15691)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M56.6437%2082.2734C68.9198%2082.2734%2079.9738%2083.2754%2087.7018%2084.8734C95.2598%2084.9254%20101.344%2087.1874%20101.344%2089.9734C101.344%2092.1814%2097.5218%2094.0614%2092.1738%2094.7714C90.8978%2095.1474%2089.4598%2095.5034%2087.8818%2095.8354C87.9238%2096.0454%2087.9437%2096.2594%2087.9437%2096.4734C87.9437%20101.333%2077.3778%20105.273%2064.3438%20105.273C52.6178%20105.273%2042.8878%20102.083%2041.0538%2097.9054C25.4078%2096.7174%2014.3438%2093.7934%2014.3438%2090.3734C14.3438%2085.8994%2033.2818%2082.2734%2056.6437%2082.2734Z'%20fill='%23FFD4D4'/%3e%3cpath%20d='M58.0273%2082.2812C64.5826%2082.3216%2070.7608%2082.6467%2076.2344%2083.1953L97.126%2093.6328C95.7272%2094.1312%2094.044%2094.5242%2092.1738%2094.7725C90.8979%2095.1484%2089.4598%2095.504%2087.8818%2095.8359C87.9238%2096.0459%2087.9443%2096.2606%2087.9443%2096.4746C87.9439%20100.708%2079.9257%20104.242%2069.2432%20105.083L54.6758%2086.2764L58.0273%2082.2812Z'%20fill='url(%23paint3_linear_2264_15691)'%20fill-opacity='0.5'/%3e%3cpath%20d='M77.7439%2067.8154L57.5439%2065.2734V75.3514L77.4219%2077.6734L77.7439%2067.8154Z'%20fill='%23EB7171'/%3e%3cpath%20d='M41.5439%2068.5614L57.5419%2065.2734L57.5439%2076.6054L41.5439%2079.8734V68.5614Z'%20fill='%23FF9D9D'/%3e%3cpath%20d='M60.3438%2072.9106L77.5437%2068.4766V89.4426L60.3438%2093.8766V72.9106Z'%20fill='%23FFAFAF'/%3e%3cpath%20d='M41.7441%2069.0703L60.5441%2072.8203L60.4341%2093.8703L41.7441%2089.6943V69.0703Z'%20fill='%23FF9D9D'/%3e%3cpath%20d='M60.5439%2072.911L41.5779%2068.875L37.5439%2076.309L56.8319%2080.875L60.5439%2072.911Z'%20fill='%23FFAFAF'/%3e%3cpath%20d='M60.5439%2072.8143L77.7619%2068.0703L82.1439%2075.4523L65.6539%2080.8703L60.5439%2072.8143Z'%20fill='%23FF9D9D'/%3e%3cpath%20d='M42.1962%2038.2656C37.3122%2045.2576%2039.3862%2050.4756%2048.4182%2053.9216'%20stroke='%23FF9696'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M40.5166%2052.7422C42.1686%2054.7962%2043.6706%2055.8222%2045.0206%2055.8222'%20stroke='%23FF9696'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M80.3901%2029.3047C80.6101%2035.5207%2074.7721%2039.8707%2062.8701%2042.3607'%20stroke='%23FF9696'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M81.9779%2037.125C79.0579%2039.573%2076.7739%2040.797%2075.1279%2040.797'%20stroke='%23FF9696'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M77.1446%2051.3323C65.6526%2049.9443%2058.4286%2052.9043%2055.4766%2060.2123'%20stroke='%23FF9696'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M41.9277%2043.0703C48.7157%2044.1343%2051.4957%2046.0123%2050.2637%2048.7063C49.0317%2051.4003%2046.2537%2049.5203%2041.9277%2043.0703Z'%20fill='url(%23paint4_linear_2264_15691)'/%3e%3cpath%20d='M66.3105%2037.1274C67.3045%2033.6114%2069.9005%2032.4394%2074.0985%2033.6114C73.9185%2035.2254%2071.3225%2036.3974%2066.3105%2037.1274Z'%20fill='url(%23paint5_linear_2264_15691)'/%3e%3cpath%20d='M57.2061%2062.8159C60.3061%2056.7859%2064.6381%2055.0679%2070.2041%2057.6639C67.6081%2062.4659%2063.2761%2064.1839%2057.2061%2062.8159Z'%20fill='url(%23paint6_linear_2264_15691)'/%3e%3cpath%20d='M65.3438%2038.9639C66.1038%2037.3359%2067.1038%2036.2919%2068.3438%2035.8359'%20stroke='%23FFA9A9'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M48.418%2047.9062C49.838%2048.2363%2050.548%2049.6023%2050.548%2052.0043'%20stroke='%23FF9898'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M55.876%2064.7395C57.028%2062.5395%2058.63%2061.4375%2060.676%2061.4375'%20stroke='%23FF7676'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2264_15691'%20x1='35.0617'%20y1='86.6622'%20x2='28.9562'%20y2='86.7572'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFC3CE'%20stop-opacity='0'/%3e%3cstop%20offset='1'%20stop-color='%23FFC3C3'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_2264_15691'%20x1='97.0617'%20y1='86.6622'%20x2='90.9562'%20y2='86.7572'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFC3CE'%20stop-opacity='0'/%3e%3cstop%20offset='1'%20stop-color='%23FFC3C3'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_2264_15691'%20x1='89.8564'%20y1='86.7047'%20x2='85.0962'%20y2='86.7783'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFC3CE'%20stop-opacity='0'/%3e%3cstop%20offset='1'%20stop-color='%23FFC3C3'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_2264_15691'%20x1='78.1565'%20y1='97.3596'%20x2='78.1565'%20y2='76.5197'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23E60000'%20stop-opacity='0.1'/%3e%3cstop%20offset='1'%20stop-color='%23E60000'%20stop-opacity='0.2'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint4_linear_2264_15691'%20x1='41.809'%20y1='42.97'%20x2='51.3219'%20y2='46.8844'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF6666'/%3e%3cstop%20offset='1'%20stop-color='%23FFBEBE'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint5_linear_2264_15691'%20x1='66.9659'%20y1='35.6311'%20x2='72.8991'%20y2='32.1971'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFD6D6'/%3e%3cstop%20offset='1'%20stop-color='%23FF7B7B'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint6_linear_2264_15691'%20x1='58.2999'%20y1='60.7509'%20x2='68.158'%20y2='54.896'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='1.19209e-07'%20stop-color='%23FF9D9D'/%3e%3cstop%20offset='1'%20stop-color='%23EB7171'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",e2=["aria-label"],t2=["src"],o2={class:"jt-empty-state__description"},n2={key:0,class:"jt-empty-state__actions"},a2=e.defineComponent({name:"JtEmptyState",__name:"index",props:{description:{default:_.t("common.暂无数据","暂无数据")},imageSize:{default:120}},setup(p){const t=p,o=e.computed(()=>({"--jt-empty-state-image-size":typeof t.imageSize=="number"?`${t.imageSize}px`:t.imageSize}));return(n,i)=>(e.openBlock(),e.createElementBlock("section",{class:"jt-empty-state",role:"status","aria-label":n.description,style:e.normalizeStyle(o.value)},[e.createElementVNode("div",{class:e.normalizeClass(["jt-empty-state__image",{"jt-empty-state__image--default":!n.$slots.image}])},[e.renderSlot(n.$slots,"image",{},()=>[e.createElementVNode("img",{src:e.unref(Qt),alt:""},null,8,t2)],!0)],2),e.renderSlot(n.$slots,"default",{},()=>[e.createElementVNode("p",o2,e.toDisplayString(n.description),1)],!0),n.$slots.actions?(e.openBlock(),e.createElementBlock("div",n2,[e.renderSlot(n.$slots,"actions",{},void 0,!0)])):e.createCommentVNode("",!0)],12,e2))}}),l2=S._export_sfc(a2,[["__scopeId","data-v-bb00a314"]]),r2=e.defineComponent({name:"JtOverflowTooltipText",__name:"index",props:{content:{default:""},maxWidth:{default:"100%"},placement:{default:"top"},popperClass:{default:""},tag:{default:"span"},effect:{default:"dark"},textClass:{default:"jt-overflow-tooltip-text--default"},textStyle:{}},setup(p){const t=p,o=e.ref(null),n=e.ref(!1);let i=null;const c=e.computed(()=>({maxWidth:typeof t.maxWidth=="number"?`${t.maxWidth}px`:t.maxWidth,...t.textStyle}));function l(){const u=o.value;u&&(n.value=u.scrollWidth>u.clientWidth||u.scrollHeight>u.clientHeight)}return e.onMounted(async()=>{await e.nextTick(),l(),!(!window.ResizeObserver||!o.value)&&(i=new ResizeObserver(l),i.observe(o.value))}),e.onBeforeUnmount(()=>{i?.disconnect()}),e.watch(()=>[t.content,t.maxWidth,t.textStyle],async()=>{await e.nextTick(),l()},{deep:!0}),(u,d)=>{const r=E.ElTooltip;return e.openBlock(),e.createBlock(r,e.mergeProps({disabled:!n.value||!t.content,content:t.content,placement:t.placement,effect:t.effect,"popper-class":t.popperClass,"show-arrow":!1},u.$attrs),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tag),{ref_key:"textRef",ref:o,class:e.normalizeClass(["jt-overflow-tooltip-text",t.textClass]),style:e.normalizeStyle(c.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.content),1)]),_:1},8,["class","style"]))]),_:1},16,["disabled","content","placement","effect","popper-class"])}}}),s2=S._export_sfc(r2,[["__scopeId","data-v-3e8ed286"]]),i2="data:image/svg+xml,%3csvg%20width='22'%20height='22'%20viewBox='0%200%2022%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11%202C6.04082%202%202%206.04082%202%2011C2%2015.9592%206.04082%2020%2011%2020C15.9592%2020%2020%2015.9592%2020%2011C20%206.04082%2015.9592%202%2011%202ZM10.2653%207.78572C10.2653%207.41837%2010.5408%207.05102%2011%207.05102C11.4592%207.05102%2011.7347%207.32653%2011.7347%207.78572V11.4592C11.7347%2011.8265%2011.4592%2012.1939%2011%2012.1939C10.5408%2012.1939%2010.2653%2011.9184%2010.2653%2011.4592V7.78572ZM11%2015.1327C10.5408%2015.1327%2010.0816%2014.6735%2010.0816%2014.2143C10.0816%2013.7551%2010.5408%2013.2959%2011%2013.2959C11.4592%2013.2959%2011.9184%2013.7551%2011.9184%2014.2143C11.9184%2014.6735%2011.4592%2015.1327%2011%2015.1327Z'%20fill='%23E60000'/%3e%3c/svg%3e",c2="data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='28'%20height='28'%20rx='14'%20fill='%23F9F9F9'/%3e%3cpath%20d='M19.7294%207.21079C20.0223%206.91808%2020.4971%206.91797%2020.79%207.21079C21.0828%207.50362%2021.0827%207.97843%2020.79%208.27134L15.0615%2013.9999L20.79%2019.7284C21.0828%2020.0212%2021.0827%2020.496%2020.79%2020.7889C20.4971%2021.0818%2020.0223%2021.0818%2019.7294%2020.7889L14.0009%2015.0604L8.2724%2020.7889C7.97952%2021.0818%207.50475%2021.0818%207.21186%2020.7889C6.91898%2020.496%206.91897%2020.0213%207.21186%2019.7284L12.9404%2013.9999L7.21186%208.27134C6.91896%207.97844%206.91896%207.50368%207.21186%207.21079C7.50477%206.91808%207.97957%206.91796%208.2724%207.21079L14.0009%2012.9393L19.7294%207.21079Z'%20fill='%23666666'/%3e%3c/svg%3e",d2={class:"jt-confirm-dialog-panel"},p2={class:"jt-confirm-dialog-panel__header"},u2={class:"jt-confirm-dialog-panel__title"},m2={class:"jt-confirm-dialog__body"},f2={class:"jt-confirm-dialog__desc"},h2={class:"jt-confirm-dialog__footer"},g2=e.defineComponent({name:"JtConfirmDialog",__name:"index",props:{title:{default:_.t("common.数据启用提示","数据启用提示")},desc:{default:_.t("common.点击确定后,将启用该条数据","点击确定后,将启用该条数据")},confirmText:{default:_.t("common.确定","确 定")},cancelText:{default:_.t("common.取 消","取 消")},confirmLoading:{type:Boolean,default:!1}},emits:["close","confirm"],setup(p,{emit:t}){const o=t;return(n,i)=>(e.openBlock(),e.createElementBlock("section",d2,[e.createElementVNode("header",p2,[e.createElementVNode("div",u2,[i[3]||(i[3]=e.createElementVNode("img",{class:"jt-confirm-dialog-panel__icon",src:i2,alt:""},null,-1)),e.createElementVNode("span",null,e.toDisplayString(n.title),1)]),e.createElementVNode("img",{onClick:i[0]||(i[0]=c=>o("close")),class:"jt-confirm-dialog-panel__close jt-confirm-dialog-panel__close-icon",src:c2,alt:""})]),e.createElementVNode("div",m2,[e.renderSlot(n.$slots,"default",{},()=>[e.createElementVNode("p",f2,e.toDisplayString(n.desc),1)],!0)]),e.createElementVNode("footer",h2,[e.createVNode(N,{class:"jt-confirm-dialog__button jt-confirm-dialog__button--cancel",size:"middle",gray:"",disabled:n.confirmLoading,onClick:i[1]||(i[1]=c=>o("close"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.cancelText),1)]),_:1},8,["disabled"]),e.createVNode(N,{class:"jt-confirm-dialog__button jt-confirm-dialog__button--confirm",size:"middle",type:"primary",loading:n.confirmLoading,disabled:n.confirmLoading,onClick:i[2]||(i[2]=c=>o("confirm"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.confirmText),1)]),_:1},8,["loading","disabled"])])]))}}),C2=S._export_sfc(g2,[["__scopeId","data-v-e320b303"]]),v2={title:_.t("common.数据启用提示","数据启用提示"),desc:_.t("common.点击确定后,将启用该条数据","点击确定后,将启用该条数据"),confirmText:_.t("common.确认"),cancelText:_.t("common.取消")};function _2(p={}){const t={...v2,...p};return O.ElMessageBox({message:({confirm:o,cancel:n})=>{const i=e.defineComponent({name:"JtConfirmDialogMessage",setup(){const c=e.ref(!1),l=async()=>{if(!c.value){c.value=!0;try{await t.onConfirm?.(),o()}finally{c.value=!1}}};return()=>e.h(C2,{title:t.title,desc:t.desc,confirmText:t.confirmText,cancelText:t.cancelText,confirmLoading:c.value,onClose:n,onConfirm:l},t.content?{default:t.content}:void 0)}});return e.h(i)},customClass:"jt-confirm-message-box-host",customStyle:{width:"517px",maxWidth:"calc(100vw - 40px)"},showClose:!1,showConfirmButton:!1,showCancelButton:!1,distinguishCancelAndClose:!0}).then(()=>"confirm").catch(()=>{throw t.onClose?.(),Error("close 用户手动关闭")})}const y2=["aria-label"],b2={class:"jt-status-stamp__band"},w2=e.defineComponent({name:"JtStatusStamp",__name:"index",props:{status:{}},setup(p){const t=p,o=e.computed(()=>({"pending-start":_.t("common.待发起","待发起"),processing:_.t("common.审批中","审批中"),approved:_.t("common.已通过","已通过"),returned:_.t("common.已退回","已退回"),rejected:_.t("common.已拒绝","已拒绝")})[t.status]);return(n,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["jt-status-stamp",`jt-status-stamp--${n.status}`]),role:"status","aria-label":o.value},[e.createElementVNode("span",b2,[e.renderSlot(n.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.value),1)],!0)])],10,y2))}}),k2=S._export_sfc(w2,[["__scopeId","data-v-887e29c4"]]),Ce=Symbol("JtTabContext"),B2={key:0,class:"jt-tab__extra"},x2=4,L2=e.defineComponent({name:"JtTab",__name:"index",props:{modelValue:{},type:{default:"line"},size:{default:"default"},inset:{type:Boolean}},emits:["update:modelValue","change"],setup(p,{emit:t}){const o=p,n=t,i=e.useSlots(),c=e.computed(()=>o.modelValue),l=e.computed(()=>o.type),u=e.computed(()=>o.size),d=e.ref(),r=e.ref(!1),h=e.ref(!1),g=e.computed(()=>[`jt-tab--type-${o.type}`,`jt-tab--size-${o.size}`,{"jt-tab--inset":o.type==="line"&&o.inset!==!1}]);let f=0,k=0,w=!1,a=null,B;function x(C){C!==o.modelValue&&(n("update:modelValue",C),n("change",C))}e.provide(Ce,{modelValue:c,type:l,size:u,activate:x});function M(){const C=d.value,j=!!(C&&C.scrollWidth>C.clientWidth);return r.value=j,j}function L(C){const j=d.value;if(!j||!M())return!1;const F=j.querySelector('[data-jt-tab-item="true"][aria-selected="true"]');if(!F)return!1;const z=F.offsetLeft-(j.clientWidth-F.offsetWidth)/2,H=j.scrollWidth-j.clientWidth,R=Math.min(Math.max(z,0),H);return j.scrollTo({left:R,behavior:C}),!0}async function V(C){await e.nextTick(),L(C)}function D(C){C&&a!==null&&C.pointerId!==a||(window.removeEventListener("pointermove",m),window.removeEventListener("pointerup",D),window.removeEventListener("pointercancel",D),a=null,h.value=!1)}function m(C){const j=d.value;if(!j||a!==C.pointerId)return;if(C.pointerType==="mouse"&&C.buttons!==1){D(C);return}const F=C.clientX-f;!w&&Math.abs(F)<x2||(w=!0,h.value=!0,j.scrollLeft=k-F,C.preventDefault())}function y(C){const j=d.value;C.pointerType==="mouse"&&(C.button!==0||C.buttons!==1)||!j||!M()||(a=C.pointerId,f=C.clientX,k=j.scrollLeft,w=!1,h.value=!0,window.addEventListener("pointermove",m),window.addEventListener("pointerup",D),window.addEventListener("pointercancel",D))}function P(C){w&&(C.preventDefault(),C.stopPropagation(),w=!1)}function v(C){const F={ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1}[C.key],z=C.key==="Home",H=C.key==="End";if(!F&&!z&&!H)return;const R=C.currentTarget,I=Array.from(R.querySelectorAll('[data-jt-tab-item="true"]:not([aria-disabled="true"])')),q=I.findIndex(Y=>Y===document.activeElement);if(!I.length)return;C.preventDefault();const Z=z?0:H?I.length-1:(Math.max(q,0)+F+I.length)%I.length,A=I[Z];A?.focus(),A?.click()}return e.watch(()=>o.modelValue,()=>{V("smooth")}),e.onMounted(()=>{M(),V("auto"),!(typeof ResizeObserver>"u"||!d.value)&&(B=new ResizeObserver(()=>{M(),V("auto")}),B.observe(d.value))}),e.onBeforeUnmount(()=>{D(),B?.disconnect()}),(C,j)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["jt-tab",g.value],role:"tablist"},C.$attrs,{onKeydown:v}),[e.createElementVNode("div",{ref_key:"listRef",ref:d,class:e.normalizeClass(["jt-tab__list",{"is-scrollable":r.value,"is-dragging":h.value}]),onPointerdown:y,onClickCapture:P},[e.renderSlot(C.$slots,"default",{},void 0,!0)],34),e.unref(i).extra?(e.openBlock(),e.createElementBlock("div",B2,[e.renderSlot(C.$slots,"extra",{},void 0,!0)])):e.createCommentVNode("",!0)],16))}}),S2=S._export_sfc(L2,[["__scopeId","data-v-28d7f01e"]]),$2=["aria-selected","aria-disabled","tabindex","disabled","onKeydown"],V2=e.defineComponent({name:"JtTabItem",__name:"JtTabItem",props:{value:{},disabled:{type:Boolean,default:!1}},setup(p){const t=p,o=e.inject(Ce,null),n=e.computed(()=>o?.modelValue.value===t.value),i=e.computed(()=>t.disabled||!o),c=e.computed(()=>o?.type.value??"line"),l=e.computed(()=>o?.size.value??"default"),u=e.computed(()=>i.value?-1:n.value?0:-1),d=e.computed(()=>[`jt-tab__item--type-${c.value}`,`jt-tab__item--size-${l.value}`,{"is-active":n.value,"is-disabled":i.value}]);function r(){i.value||o?.activate(t.value)}return(h,g)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["jt-tab__item",d.value]),type:"button",role:"tab","data-jt-tab-item":"true","aria-selected":n.value,"aria-disabled":i.value||void 0,tabindex:u.value,disabled:i.value,onClick:r,onKeydown:[e.withKeys(e.withModifiers(r,["prevent"]),["enter"]),e.withKeys(e.withModifiers(r,["prevent"]),["space"])]},[e.renderSlot(h.$slots,"default",{},void 0,!0)],42,$2))}}),E2=S._export_sfc(V2,[["__scopeId","data-v-9da03600"]]),j2="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.41074%208.74375C5.73618%209.06919%206.26382%209.06919%206.58926%208.74375L9.57741%205.7556C10.1024%205.23063%209.73058%204.33301%208.98816%204.33301H3.01184C2.26942%204.33301%201.89762%205.23063%202.42259%205.7556L5.41074%208.74375Z'%20fill='%23E60000'/%3e%3c/svg%3e",T2="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.41074%208.74375C5.73618%209.06919%206.26382%209.06919%206.58926%208.74375L9.57741%205.7556C10.1024%205.23063%209.73058%204.33301%208.98816%204.33301H3.01184C2.26942%204.33301%201.89762%205.23063%202.42259%205.7556L5.41074%208.74375Z'%20fill='%23333333'/%3e%3c/svg%3e",M2="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.91074%206.58926C8.23618%206.26382%208.23618%205.73618%207.91074%205.41074L4.92259%202.42259C4.39762%201.89762%203.5%202.26942%203.5%203.01184L3.5%208.98816C3.5%209.73058%204.39762%2010.1024%204.92259%209.57741L7.91074%206.58926Z'%20fill='%23333333'/%3e%3c/svg%3e",P2={class:"jt-tree__node"},D2=["aria-label","onClick"],F2=["src"],z2={key:1,class:"jt-tree__toggle-placeholder","aria-hidden":"true"},N2={class:"jt-tree__content"},I2={class:"jt-tree__label"},H2=e.defineComponent({name:"JtTree",inheritAttrs:!1,__name:"index",props:{data:{default:()=>[]},currentKey:{},nodeKey:{default:"id"},props:{default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},load:{},indent:{default:20},highlightCurrent:{type:Boolean,default:!0},expandOnClickNode:{type:Boolean,default:!1},ariaLabel:{default:_.t("common.组织树","组织树")}},emits:["update:currentKey","current-change"],setup(p,{expose:t,emit:o}){const n=p,i=o,c=e.ref();function l(f){return f.expanded?f.isCurrent?j2:T2:M2}function u(f){if(f.expanded){f.collapse();return}f.expand()}function d(f,k){const w=k?.key;w!==n.currentKey&&i("update:currentKey",w),i("current-change",f,k)}e.watch(()=>n.currentKey,f=>c.value?.setCurrentKey(f??null),{flush:"post"});function r(f){return c.value?.getNode(f)}function h(){return c.value?.getCurrentNode()}function g(f){c.value?.filter(f)}return t({treeRef:c,getNode:r,getCurrentNode:h,filter:g}),(f,k)=>{const w=E.ElTree;return e.openBlock(),e.createBlock(w,e.mergeProps({ref_key:"treeRef",ref:c,class:"jt-tree"},f.$attrs,{data:n.data,"node-key":n.nodeKey,props:n.props,lazy:n.lazy,load:n.load,indent:n.indent,"current-node-key":n.currentKey,"highlight-current":n.highlightCurrent,"expand-on-click-node":n.expandOnClickNode,"aria-label":n.ariaLabel,onCurrentChange:d}),{default:e.withCtx(({node:a,data:B})=>[e.createElementVNode("div",P2,[a.isLeaf?(e.openBlock(),e.createElementBlock("span",z2)):(e.openBlock(),e.createElementBlock("button",{key:0,class:"jt-tree__toggle",type:"button","aria-label":a.expanded?e.unref(_.t)("common.收起{label}","收起{label}",{label:a.label}):e.unref(_.t)("common.展开{label}","展开{label}",{label:a.label}),onClick:e.withModifiers(x=>u(a),["stop"])},[e.createElementVNode("img",{class:"jt-tree__toggle-icon",src:l(a),alt:"","aria-hidden":"true"},null,8,F2)],8,D2)),e.createElementVNode("div",N2,[e.renderSlot(f.$slots,"default",{node:a,data:B},()=>[e.createElementVNode("span",I2,e.toDisplayString(a.label),1)],!0)]),f.$slots.actions?(e.openBlock(),e.createElementBlock("div",{key:2,class:"jt-tree__actions",onClick:k[0]||(k[0]=e.withModifiers(()=>{},["stop"])),onKeydown:k[1]||(k[1]=e.withModifiers(()=>{},["stop"]))},[e.renderSlot(f.$slots,"actions",{node:a,data:B},void 0,!0)],32)):e.createCommentVNode("",!0)])]),_:3},16,["data","node-key","props","lazy","load","indent","current-node-key","highlight-current","expand-on-click-node","aria-label"])}}}),J2=S._export_sfc(H2,[["__scopeId","data-v-4279b203"]]),O2={key:0,class:"jt-tree-table-layout__tree"},R2={class:"jt-tree-table-layout__content"},Z2=e.defineComponent({name:"JtTreeTableLayout",__name:"index",props:{treeWidth:{default:220},gap:{default:20},collapsed:{type:Boolean,default:!1}},setup(p){const t=p;function o(i){return typeof i=="number"?`${i}px`:i}const n=e.computed(()=>({"--jt-tree-table-layout-tree-width":o(t.treeWidth),"--jt-tree-table-layout-gap":o(t.gap)}));return(i,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["jt-tree-table-layout",{"is-collapsed":t.collapsed}]),style:e.normalizeStyle(n.value)},[t.collapsed?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("aside",O2,[e.renderSlot(i.$slots,"tree",{},void 0,!0)])),e.createElementVNode("div",R2,[e.renderSlot(i.$slots,"default",{},void 0,!0)])],6))}}),A2=S._export_sfc(Z2,[["__scopeId","data-v-28a5e162"]]),W2={class:"jt-page-header__title"},U2={key:0},K2={key:2},G2={key:0,class:"jt-page-header__description"},q2={key:0,class:"jt-page-header__operates"},Y2=e.defineComponent({name:"JtPageHeader",__name:"index",props:{size:{default:"large"},gray:{type:Boolean,default:!0},title:{},description:{},operates:{default:()=>[]}},emits:["operate-click"],setup(p,{emit:t}){const o=p,n=t,i=e.useSlots(),c=e.computed(()=>o.operates.length>0||!!i.operates),l=e.computed(()=>[`jt-page-header--size-${o.size}`,{"jt-page-header--gray":o.gray}]);function u(d,r){d.onClick?.(d,r),n("operate-click",d,r)}return(d,r)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["jt-page-header",l.value]},d.$attrs),[e.createElementVNode("div",W2,[e.unref(i).title?e.renderSlot(d.$slots,"title",{key:0},()=>[d.title?(e.openBlock(),e.createElementBlock("span",U2,e.toDisplayString(d.title),1)):e.createCommentVNode("",!0)],!0):e.unref(i).default?e.renderSlot(d.$slots,"default",{key:1},void 0,!0):d.title?(e.openBlock(),e.createElementBlock("span",K2,e.toDisplayString(d.title),1)):e.createCommentVNode("",!0),e.renderSlot(d.$slots,"description",{},()=>[d.description?(e.openBlock(),e.createElementBlock("span",G2,e.toDisplayString(d.description),1)):e.createCommentVNode("",!0)],!0)]),c.value?(e.openBlock(),e.createElementBlock("div",q2,[e.renderSlot(d.$slots,"operates",{operates:d.operates},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.operates,h=>(e.openBlock(),e.createBlock(e.unref(N),e.mergeProps({key:h.key??h.label,ref_for:!0},h.buttonProps,{type:h.type,disabled:h.disabled,loading:h.loading,plain:h.plain,text:h.text,link:h.link,icon:h.icon,onClick:g=>u(h,g)}),{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(h.label),1)]),_:2},1040,["type","disabled","loading","plain","text","link","icon","onClick"]))),128))],!0)])):e.createCommentVNode("",!0)],16))}}),X2=S._export_sfc(Y2,[["__scopeId","data-v-6831eb88"]]);exports.getJtLocale=_.getLocale;exports.install=_.install;exports.installLocale=_.installLocale;exports.normalizeLocale=_.normalizeLocale;exports.resetJtLocale=_.resetLocale;exports.setJtLocale=_.setLocale;exports.JtActionMenu=it;exports.JtAttachmentList=xt;exports.JtButton=N;exports.JtCard=Vt;exports.JtCascader=ie;exports.JtChoiceCardGroup=Ft;exports.JtCrudTable=ot;exports.JtDatePicker=ce;exports.JtDescriptions=Ht;exports.JtDialog=Kt;exports.JtDrawer=Xt;exports.JtEmptyState=l2;exports.JtFileIcon=ge;exports.JtFilterBar=ue;exports.JtFormItems=pe;exports.JtInput=U;exports.JtOverflowTooltipText=s2;exports.JtPageHeader=X2;exports.JtPagination=fe;exports.JtSelect=de;exports.JtStatusStamp=k2;exports.JtTab=S2;exports.JtTabItem=E2;exports.JtTable=me;exports.JtTree=J2;exports.JtTreeTableLayout=A2;exports.openJtConfirmDialog=_2;exports.resolveJtFileType=he;
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("./locale/index.cjs"),j=require("element-plus/es"),e=require("vue"),O=require("element-plus"),S=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),oe=2,xe=3;function Le(d){return d.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function se(d){if(!d.startsWith("on")||d.length<=oe)return!1;const t=d.charCodeAt(oe);return t<97||t>122}function Se(d){if(d.startsWith("on-"))return d.slice(xe);const[t,o]=d.slice(oe).split(":"),n=Le(t);return o?`${n}:${o}`:n}function K(d,t=new Set){return Object.fromEntries(Object.entries(d).filter(([o,n])=>!t.has(o)&&se(o)&&typeof n=="function").map(([o,n])=>[Se(o),n]))}function G(d,t=new Set){return Object.fromEntries(Object.entries(d).filter(([o])=>!t.has(o)&&!se(o)))}const $e=e.defineComponent({name:"JtButton",__name:"index",props:{disabled:{type:Boolean},type:{},icon:{},nativeType:{},loading:{type:Boolean},loadingIcon:{},plain:{type:Boolean},text:{type:Boolean},link:{type:Boolean},bg:{type:Boolean},autofocus:{type:Boolean},round:{type:Boolean},circle:{type:Boolean},dashed:{type:Boolean},color:{},dark:{type:Boolean},autoInsertSpace:{type:Boolean},tag:{},size:{},gray:{type:Boolean}},setup(d){const t=d,o=e.useAttrs(),n=e.computed(()=>t.type==="primary"),s=e.computed(()=>t.plain===!0),i=e.computed(()=>t.size??"default"),a=e.computed(()=>({[`jt-button--size-${i.value}`]:!0,"jt-button--type-primary":n.value,"jt-button--plain":s.value,"jt-button--gray":t.gray,"jt-button--border":!0})),p=e.computed(()=>{const{gray:l,icon:g,size:C,...h}=t;return{...G(o),...h}}),c=e.computed(()=>K(o));return(l,g)=>{const C=j.ElIcon,h=j.ElButton;return e.openBlock(),e.createBlock(h,e.mergeProps({class:["jt-button",a.value]},p.value,e.toHandlers(c.value)),{default:e.withCtx(()=>[l.$slots.icon?(e.openBlock(),e.createBlock(C,{key:0,class:"jt-button__icon"},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"icon",{},void 0,!0)]),_:3})):t.icon?(e.openBlock(),e.createBlock(C,{key:1,class:"jt-button__icon"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon)))]),_:1})):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"default",{},void 0,!0)]),_:3},16,["class"])}}}),z=S._export_sfc($e,[["__scopeId","data-v-c30ce771"]]),Ve={options:()=>[],clearable:!0,persistent:!0};function re(d){return Object.fromEntries(Object.entries(d).filter(([,t])=>t!==void 0))}function Ee(d){const t=re(d);return t.props&&(t.props=re(t.props)),t}const ie=e.defineComponent({name:"JtCascader",__name:"index",props:e.mergeDefaults({size:{},placeholder:{},disabled:{type:Boolean},clearable:{type:Boolean},clearIcon:{},filterable:{type:Boolean},filterMethod:{type:Function},separator:{},showAllLevels:{type:Boolean},collapseTags:{type:Boolean},maxCollapseTags:{},collapseTagsTooltip:{type:Boolean},maxCollapseTagsTooltipHeight:{},debounce:{},beforeFilter:{type:Function},placement:{},fallbackPlacements:{},popperClass:{},popperStyle:{type:[Boolean,null,String,Object,Array]},teleported:{type:Boolean},effect:{},tagType:{},tagEffect:{},validateEvent:{type:Boolean},persistent:{type:Boolean},showCheckedStrategy:{},checkOnClickNode:{type:Boolean},showPrefix:{type:Boolean},fitInputWidth:{type:[Boolean,Number]},modelValue:{},props:{},virtualScroll:{type:Boolean},itemSize:{},height:{},emptyValues:{},valueOnClear:{type:[String,Number,Boolean,Function,null]},options:{}},Ve),emits:O.cascaderEmits,setup(d,{emit:t}){const o=d,n=e.computed(()=>{const u=Ee(o);if(!u.disabled)return u;const{placeholder:f,...L}=u;return L}),s=e.ref(o.modelValue);e.watch(()=>o.modelValue,u=>{s.value=u},{deep:!0});const i=t;function a(u,...f){i(u,...f)}function p(u){s.value=u,a("update:modelValue",u)}function c(u){a("change",u)}function l(u){a("focus",u)}function g(u){a("blur",u)}function C(){a("clear")}function h(u){a("visibleChange",u)}function B(u){a("expandChange",u)}function k(u){a("removeTag",u)}return(u,f)=>{const L=j.ElCascader;return e.openBlock(),e.createBlock(L,e.mergeProps({class:"jt-cascader jt-form-control"},n.value,{"model-value":s.value,"onUpdate:modelValue":p,onChange:c,onFocus:l,onBlur:g,onClear:C,onVisibleChange:h,onExpandChange:B,onRemoveTag:k}),null,16,["model-value"])}}}),je=e.defineComponent({name:"JtDatePicker",__name:"index",props:{type:{default:"date"},showNow:{type:Boolean},showConfirm:{type:Boolean},showFooter:{type:Boolean},showWeekNumber:{type:Boolean},ariaLabel:{},emptyValues:{},valueOnClear:{},disabledDate:{},cellClassName:{},shortcuts:{},arrowControl:{type:Boolean},tabindex:{},validateEvent:{type:Boolean},unlinkPanels:{type:Boolean},singlePanel:{type:Boolean},placement:{},fallbackPlacements:{},disabledHours:{},disabledMinutes:{},disabledSeconds:{},automaticDropdown:{type:Boolean},id:{},name:{},popperClass:{},popperStyle:{},format:{},valueFormat:{default:"YYYY-MM-DD"},dateFormat:{},timeFormat:{},clearable:{type:Boolean,default:!0},clearIcon:{},editable:{type:Boolean},saveOnBlur:{type:Boolean},prefixIcon:{},size:{},readonly:{type:Boolean},disabled:{type:Boolean},placeholder:{},popperOptions:{},modelValue:{},rangeSeparator:{},startPlaceholder:{},endPlaceholder:{},defaultValue:{},defaultTime:{},isRange:{type:Boolean},preservePlaceholderWhenDisabled:{type:Boolean}},setup(d){const t=d,o=e.computed(()=>{const{preservePlaceholderWhenDisabled:s,...i}=t;if(t.disabled&&!s){const{placeholder:a,startPlaceholder:p,endPlaceholder:c,...l}=i;return l}return{...i,startPlaceholder:t.startPlaceholder??(n(t.type)?_.t("common.开始日期"):void 0),endPlaceholder:t.endPlaceholder??(n(t.type)?_.t("common.结束日期"):void 0)}});function n(s){return s?.includes("range")??!1}return(s,i)=>{const a=j.ElDatePicker;return e.openBlock(),e.createBlock(a,e.mergeProps({class:"jt-date-picker jt-form-control"},o.value,{"onUpdate:modelValue":i[0]||(i[0]=p=>s.$emit("update:modelValue",p))}),null,16)}}}),ce=S._export_sfc(je,[["__scopeId","data-v-783494d9"]]),Te=e.defineComponent({name:"JtInput",__name:"index",props:{id:{},size:{},disabled:{type:Boolean},modelValue:{},modelModifiers:{},maxlength:{},minlength:{},type:{},resize:{},autosize:{type:[Object,Boolean]},autocomplete:{},formatter:{},parser:{},placeholder:{},form:{},readonly:{type:Boolean},clearable:{type:Boolean,default:!0},clearIcon:{},showPassword:{type:Boolean},showWordLimit:{type:Boolean},wordLimitPosition:{},suffixIcon:{},prefixIcon:{},containerRole:{},tabindex:{},validateEvent:{type:Boolean},inputStyle:{type:[Boolean,null,String,Object,Array]},autofocus:{type:Boolean},rows:{},ariaLabel:{},inputmode:{},name:{},countGraphemes:{},preservePlaceholderWhenDisabled:{type:Boolean}},emits:{...O.inputEmits,enter:()=>!0},setup(d,{emit:t}){const o=d,n=e.computed(()=>{const{preservePlaceholderWhenDisabled:a,placeholder:p,...c}=o,l={...c,placeholder:p??_.t("common.请输入")};return!o.disabled||a?l:Object.fromEntries(Object.entries(l).filter(([g])=>g!=="placeholder"))}),s=t,i=e.computed(()=>Object.fromEntries(Object.keys(O.inputEmits).map(a=>[a,(...p)=>s(a,...p)])));return(a,p)=>{const c=j.ElInput;return e.openBlock(),e.createBlock(c,e.mergeProps({class:"jt-input jt-form-control"},n.value,e.toHandlers(i.value),{onKeyup:p[0]||(p[0]=e.withKeys(l=>s("enter"),["enter"]))}),null,16)}}}),U=S._export_sfc(Te,[["__scopeId","data-v-ddac16c1"]]),Me=e.defineComponent({name:"JtSelect",__name:"index",props:{options:{},preservePlaceholderWhenDisabled:{type:Boolean},ariaLabel:{},emptyValues:{},valueOnClear:{},name:{},id:{},modelValue:{},autocomplete:{},automaticDropdown:{type:Boolean},size:{},effect:{},disabled:{type:Boolean},clearable:{type:Boolean,default:!0},filterable:{type:Boolean,default:!0},allowCreate:{type:Boolean},loading:{type:Boolean},popperClass:{},popperStyle:{},popperOptions:{},remote:{type:Boolean},debounce:{},loadingText:{},noMatchText:{},noDataText:{},remoteMethod:{},filterMethod:{},multiple:{type:Boolean},multipleLimit:{},placeholder:{},defaultFirstOption:{type:Boolean},reserveKeyword:{type:Boolean},valueKey:{},collapseTags:{type:Boolean},collapseTagsTooltip:{type:Boolean},tagTooltip:{},maxCollapseTags:{},teleported:{type:Boolean},persistent:{type:Boolean},clearIcon:{},fitInputWidth:{type:Boolean},suffixIcon:{},tagType:{},tagEffect:{},validateEvent:{type:Boolean},remoteShowSuffix:{type:Boolean},showArrow:{type:Boolean},offset:{},placement:{},fallbackPlacements:{},tabindex:{},appendTo:{},props:{}},emits:O.selectEmits,setup(d,{emit:t}){const o=d,n=e.computed(()=>{const{options:a,placeholder:p,preservePlaceholderWhenDisabled:c,...l}=o;return o.disabled&&!c?l:{...l,placeholder:p??_.t("common.请选择")}}),s=t,i=e.computed(()=>Object.fromEntries(Object.keys(O.selectEmits).map(a=>[a,(...p)=>s(a,...p)])));return(a,p)=>{const c=j.ElOption,l=j.ElSelect;return e.openBlock(),e.createBlock(l,e.mergeProps({class:"jt-select jt-form-control"},n.value,e.toHandlers(i.value)),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.options??[],g=>(e.openBlock(),e.createBlock(c,e.mergeProps({key:g.value,ref_for:!0},g),null,16))),128))]),_:1},16)}}}),de=S._export_sfc(Me,[["__scopeId","data-v-48990808"]]),Pe=e.defineComponent({name:"JTFormItems",__name:"JtFormItems",props:{configs:{},formData:{},gridColumns:{},span:{}},setup(d){const t=e.useSlots(),o=d,n={input:U,select:de,cascader:ie,"date-picker":ce},s={"remote-select":"select",date:"date-picker",daterange:"date-picker","date-range":"date-picker",dateRange:"date-picker"},i=new Set(["prop","label","itemType","span","options","rules","formItemProps","showSlot","show"]),a=Object.keys(n),p=new Map,c=e.computed(()=>o.configs.filter(m=>m.show!==!1)),l=m=>{const{itemType:b}=m;if(!b)return U;if(typeof b!="string")return b;const P=s[b]??b;return a.includes(P)?n[P]:(console.error(`[JtFormItems] 不支持的 itemType: "${b}",支持的类型: ${a.join(", ")}`),U)},g=m=>{const b=G(m,i);return m.itemType==="select"||m.itemType==="remote-select"||m.itemType==="cascader"?{...b,options:m.options}:V(m.itemType)?{...b,type:"daterange"}:b},C=m=>K(m,i),h=m=>({rules:m.rules,...m.formItemProps}),B=(m,b)=>{o.formData[m]=b};function k(m){return b=>{if(b){p.set(m,b);return}p.delete(m)}}function u(m,b){e.nextTick(()=>{p.get(m)?.validate(b).catch(()=>{})})}const f=m=>Math.min(Math.max(Math.trunc(m||4),1),24),L=e.computed(()=>f(o.gridColumns)),E=m=>Math.min(Math.max(Math.trunc(m||1),1),L.value),N=e.computed(()=>{const b=c.value.reduce((P,y)=>P+E(o.span||y.span),0)%L.value;return b===0?{gridColumn:`1 / span ${L.value}`}:{gridColumn:`${b+1} / span ${L.value-b}`}}),x=m=>({gridColumn:`span ${E(o.span||m.span)}`});function V(m){return m==="daterange"||m==="date-range"||m==="dateRange"}return(m,b)=>{const P=j.ElFormItem;return e.openBlock(),e.createElementBlock("div",{class:"jt-form-items",style:e.normalizeStyle({"--jt-form-columns":L.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,y=>(e.openBlock(),e.createBlock(P,e.mergeProps({key:y.prop,ref_for:!0,ref:k(y.prop),class:"jt-form-items__item",style:x(y),label:y.label,prop:y.prop},h(y)),e.createSlots({default:e.withCtx(()=>[y.showSlot?e.renderSlot(m.$slots,y.prop,{key:0},void 0,!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l(y)),e.mergeProps({key:1,"model-value":m.formData[y.prop],ref_for:!0},g(y),e.toHandlers(C(y)),{"onUpdate:modelValue":v=>B(y.prop,v),onChange:()=>u(y.prop,"change"),onBlur:()=>u(y.prop,"blur")}),null,16,["model-value","onUpdate:modelValue","onChange","onBlur"]))]),_:2},[e.unref(t)[`${y.prop}-label`]?{name:"label",fn:e.withCtx(v=>[e.renderSlot(m.$slots,`${y.prop}-label`,e.mergeProps({ref_for:!0},v),void 0,!0)]),key:"0"}:void 0]),1040,["style","label","prop"]))),128)),m.$slots.actions?(e.openBlock(),e.createBlock(P,{key:0,class:"jt-form-items__actions",style:e.normalizeStyle(N.value)},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"actions",{},void 0,!0)]),_:3},8,["style"])):e.createCommentVNode("",!0)],4)}}}),pe=S._export_sfc(Pe,[["__scopeId","data-v-6eea0475"]]);function De(){const d=e.ref(!1);function t(){d.value=!0}function o(){d.value=!1}return{searchDisabled:d,searchLoading:t,searchDone:o}}const Fe="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.5'%20y='-0.5'%20width='11'%20height='11'%20rx='5.5'%20transform='matrix(1%200%200%20-1%201%2012)'%20stroke='%23999999'/%3e%3cpath%20d='M10%208.16064L7%205.16064L4%208.16064'%20stroke='%23999999'/%3e%3c/svg%3e",ze="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.375%207.00017C2.375%207.27631%202.59886%207.50017%202.875%207.50017C3.15114%207.50017%203.375%207.27631%203.375%207.00017H2.875H2.375ZM2.875%207.00017H3.375C3.375%204.46334%205.41801%202.41406%207.93713%202.41406V1.91406V1.41406C4.86127%201.41406%202.375%203.91551%202.375%207.00017H2.875ZM7.93713%201.91406V2.41406C10.4563%202.41406%2012.4993%204.46334%2012.4993%207.00017H12.9993H13.4993C13.4993%203.91551%2011.013%201.41406%207.93713%201.41406V1.91406ZM12.9993%207.00017H12.4993C12.4993%209.537%2010.4563%2011.5863%207.93713%2011.5863V12.0863V12.5863C11.013%2012.5863%2013.4993%2010.0848%2013.4993%207.00017H12.9993ZM7.93713%2012.0863V11.5863C6.68975%2011.5863%205.55663%2011.0806%204.72892%2010.2635L4.37765%2010.6193L4.02638%2010.9752C5.0317%2011.9676%206.41366%2012.5863%207.93713%2012.5863V12.0863Z'%20fill='%23999999'/%3e%3cpath%20d='M4.75131%206.0102L2.88631%207.88403L1%205.99414'%20stroke='%23999999'%20stroke-miterlimit='10'/%3e%3c/svg%3e",Ne="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.60938%2012.1099C9.64694%2012.1099%2012.1094%209.64743%2012.1094%206.60986C12.1094%203.5723%209.64694%201.10986%206.60938%201.10986C3.57181%201.10986%201.10938%203.5723%201.10938%206.60986C1.10938%209.64743%203.57181%2012.1099%206.60938%2012.1099Z'%20stroke='white'%20stroke-miterlimit='10'/%3e%3cpath%20d='M12.4993%2012.5002L10.2832%2010.3301'%20stroke='white'%20stroke-miterlimit='10'/%3e%3c/svg%3e",Ie={class:"jt-filter-bar__btns"},He=["src"],Je=["src"],Oe=["src"],Re=e.defineComponent({name:"JtFilterBar",__name:"JtFilterBar",props:{columns:{},option:{default:()=>({})},modelValue:{}},emits:["update:modelValue","search","reset"],setup(d,{expose:t,emit:o}){const n=d,s=o,i=e.ref(),a=e.useSlots(),p=e.ref({}),{searchDisabled:c,searchLoading:l,searchDone:g}=De(),C=e.ref({}),h=e.ref({}),B=new Map,k=e.computed(()=>n.option),u=e.ref(k.value.searchCollapsed??!0),f=e.computed(()=>n.columns.filter(r=>r.search===!0)),L=e.computed(()=>Math.max(1,k.value.searchSpan??4)),E=e.computed(()=>Math.max(1,k.value.searchCollapsedRows??1)),N=e.computed(()=>L.value),x=e.computed(()=>Math.max(1,N.value*E.value)),V=e.computed(()=>L.value),m=e.computed(()=>D.value?"264px":"174px"),b=e.computed(()=>ke(k.value.searchLabelWidth??84)),P=e.computed(()=>k.value.searchLabelPosition??"top"),y=e.computed(()=>le(k.value.searchGutter,16)),v=e.computed(()=>le(k.value.searchRowGap,10)),T=e.computed(()=>Be(k.value.searchPadding??"0 12px")),D=e.computed(()=>k.value.searchCollapse===!1?!1:te(f.value)>x.value),F=e.computed(()=>{if(!D.value||!u.value)return f.value;let r=0;return f.value.filter(w=>{const $=ee(w);return r+$>x.value?!1:(r+=$,!0)})}),H=e.computed(()=>F.value.filter(r=>!!a[`${r.prop}-search`])),R=e.computed(()=>{const r=te(F.value);return F.value.length>0&&F.value.length<=2&&r<L.value}),I=e.computed(()=>{const r=te(F.value);return`${Math.min(L.value,r+1)}`}),q=e.computed(()=>F.value.map(r=>A(r)));e.watch(()=>k.value.searchCollapsed,r=>{typeof r=="boolean"&&(u.value=r)}),e.watch(()=>n.modelValue,r=>{p.value={...r}},{deep:!0,immediate:!0});function Z(r,w){if(c.value)return;const $={...p.value,[r]:w};p.value=$,s("update:modelValue",$)}function A(r){const w=r.searchProps??{},$=r.searchType??"input",M=Y(r,w);return{...w,...M,prop:r.prop,label:r.searchLabel??r.label,span:ee(r),itemType:$,showSlot:!!a[`${r.prop}-search`],options:_e(r,w),placeholder:w.placeholder??r.searchPlaceholder,valueFormat:w.valueFormat??r.searchValueFormat,disabled:c.value||w.disabled===!0,loading:ye(r,w),preservePlaceholderWhenDisabled:c.value,formItemProps:{required:r.searchRequired,class:["jt-filter-bar__item",{"is-required":r.searchRequired}]},onEnter:(...J)=>{X(w.onEnter,...J),W()},"onUpdate:modelValue":J=>{X(w["onUpdate:modelValue"],J),Z(r.prop,J)}}}function Y(r,w){if(r.searchType!=="remote-select")return{};const $=r.searchRemoteMethod?M=>be(r,M):w.remoteMethod;return{remote:w.remote??!!$,filterable:w.filterable??!0,remoteMethod:$}}function _e(r,w){return r.searchType==="remote-select"&&Object.prototype.hasOwnProperty.call(C.value,r.prop)?C.value[r.prop]:w.options??r.searchOptions??r.dicData}function ye(r,w){return r.searchLoading!==void 0?r.searchLoading:w.loading!==void 0?w.loading:r.searchType==="remote-select"&&r.searchRemoteMethod?h.value[r.prop]===!0:w.loading}async function be(r,w){if(!r.searchRemoteMethod)return;const $=(B.get(r.prop)??0)+1;B.set(r.prop,$),r.searchLoading===void 0&&(h.value={...h.value,[r.prop]:!0});try{const M=await r.searchRemoteMethod(w,r);if(B.get(r.prop)!==$||M===void 0)return;if(!ne(M)){console.warn(`[JtFilterBar] ${r.prop} 的 searchRemoteMethod 应返回 JtDicItem[] 或 void,请在业务方法内把接口响应映射为 { label, value } 选项。`);return}C.value={...C.value,[r.prop]:M}}catch(M){console.error("[JtFilterBar] searchRemoteMethod 执行失败",M)}finally{B.get(r.prop)===$&&r.searchLoading===void 0&&(h.value={...h.value,[r.prop]:!1})}}function ne(r){return Array.isArray(r)&&r.every(we)}function we(r){if(!r||typeof r!="object")return!1;const w=r,$=typeof w.value,M=w.children;return typeof w.label=="string"&&($==="string"||$==="number"||$==="boolean")&&(w.disabled===void 0||typeof w.disabled=="boolean")&&(M===void 0||ne(M))}function X(r,...w){if(Array.isArray(r)){r.forEach($=>X($,...w));return}typeof r=="function"&&r(...w)}async function W(){if(!c.value){if(i.value)try{await i.value.validate()}catch{return}s("search")}}function Q(){c.value||s("reset")}function ae(){u.value=!u.value}function ee(r){return Math.min(L.value,Math.max(1,r.searchSpan??1))}function te(r){return r.reduce((w,$)=>w+ee($),0)}function ke(r){return typeof r=="number"?`${r}px`:r}function le(r,w){return typeof r=="number"?r:w}function Be(r){return typeof r=="number"?`${r}px`:r}return t({formRef:i,searchDisabled:c,searchLoading:l,searchDone:g}),(r,w)=>{const $=j.ElForm;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["jt-filter-bar",[`is-label-${P.value}`,{"is-single-filter":R.value}]]),style:e.normalizeStyle({"--jt-filter-columns":L.value,"--jt-filter-field-columns":V.value,"--jt-filter-btns-width":m.value,"--jt-filter-actions-start":I.value,"--jt-filter-label-width":b.value,"--jt-filter-column-gap":`${y.value}px`,"--jt-filter-row-gap":`${v.value}px`,"--jt-filter-padding":T.value})},[e.createVNode($,{ref_key:"formRef",ref:i,class:"jt-filter-bar__form",model:p.value,"label-position":P.value,"label-width":b.value,disabled:e.unref(c),onSubmit:w[0]||(w[0]=e.withModifiers(()=>{},["prevent"]))},{default:e.withCtx(()=>[e.createVNode(e.unref(pe),{configs:q.value,"form-data":p.value,style:{"--jt-form-label-gap":"6px","--jt-form-column-gap":"16px","--jt-form-row-gap":"10px"}},e.createSlots({actions:e.withCtx(()=>[e.createElementVNode("div",Ie,[e.renderSlot(r.$slots,"search-menu",{search:W,reset:Q,disabled:e.unref(c),collapsed:u.value,toggleCollapse:ae},()=>[D.value?(e.openBlock(),e.createBlock(e.unref(z),{key:0,class:"jt-filter-bar__btn-collapse",border:"",onClick:ae},{icon:e.withCtx(()=>[e.createElementVNode("img",{class:e.normalizeClass(["jt-filter-bar__icon-arrow",{"is-collapsed":u.value}]),src:e.unref(Fe),alt:""},null,10,He)]),default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(u.value?e.unref(_.t)("common.展开"):e.unref(_.t)("common.收起")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(z),{class:"jt-filter-bar__btn-reset",disabled:e.unref(c),border:"",onClick:Q},{icon:e.withCtx(()=>[e.createElementVNode("img",{src:e.unref(ze),alt:""},null,8,Je)]),default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(k.value.resetBtnText??e.unref(_.t)("common.重置")),1)]),_:1},8,["disabled"]),e.createVNode(e.unref(z),{class:"jt-filter-bar__btn-query",type:"primary",disabled:e.unref(c),onClick:W},{icon:e.withCtx(()=>[e.createElementVNode("img",{src:e.unref(Ne),alt:""},null,8,Oe)]),default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(k.value.searchBtnText??e.unref(_.t)("common.查询")),1)]),_:1},8,["disabled"])],!0)])]),_:2},[e.renderList(H.value,M=>({name:M.prop,fn:e.withCtx(()=>[e.renderSlot(r.$slots,`${M.prop}-search`,{value:p.value[M.prop],column:M,setValue:J=>Z(M.prop,J),search:W,reset:Q,disabled:e.unref(c)},void 0,!0)])}))]),1032,["configs","form-data"])]),_:3},8,["model","label-position","label-width","disabled"])],6)}}}),ue=S._export_sfc(Re,[["__scopeId","data-v-313da8c4"]]),Ze="data:image/svg+xml,%3csvg%20width='120'%20height='120'%20viewBox='0%200%20120%20120'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M59.2179%2014.6719C69.4239%2014.6719%2078.836%2018.0239%2086.378%2023.6719H83.3439C81.9079%2023.6719%2080.7439%2024.8359%2080.7439%2026.2719V26.4719C80.7439%2027.9079%2081.9079%2029.0719%2083.3439%2029.0719H92.3799C94.0939%2030.9199%2095.6499%2032.9099%2097.0299%2035.0239H101.32C102.866%2035.0239%20104.12%2036.2779%20104.12%2037.8239V37.9799C104.12%2039.2579%20103.264%2040.3359%20102.094%2040.6719H98.1439C96.3759%2040.6719%2094.9439%2042.1039%2094.9439%2043.8719V44.8719C94.9439%2046.6399%2096.3759%2048.0719%2098.1439%2048.0719H111.724C113.114%2048.4199%20114.144%2049.6779%20114.144%2051.1759V51.3539C114.144%2053.1219%20112.712%2054.5539%20110.944%2054.5539H103.908C104.048%2055.9759%20104.12%2057.4159%20104.12%2058.8719C104.12%2083.2819%2084.0159%20103.072%2059.2179%20103.072C39.3819%20103.072%2022.5499%2090.4119%2016.6079%2072.8519H14.9219C14.2419%2072.8519%2013.6879%2072.2999%2013.6879%2071.6179C13.6879%2071.0979%2014.0099%2070.6539%2014.4659%2070.4719H16.5439C17.9799%2070.4719%2019.1439%2069.3079%2019.1439%2067.8719V67.6719C19.1439%2066.2359%2017.9799%2065.0719%2016.5439%2065.0719H14.7539C14.7519%2065.0619%2014.7499%2065.0499%2014.7499%2065.0399H10.3139C9.17994%2065.0399%208.25995%2064.1199%208.25995%2062.9839C8.25995%2061.8479%209.17994%2060.9279%2010.3139%2060.9279H14.3639C14.3319%2060.2459%2014.3159%2059.5619%2014.3159%2058.8719C14.3159%2052.3459%2015.7519%2046.1499%2018.3319%2040.5739L11.1439%2040.5759C8.05195%2040.5759%205.54395%2038.0679%205.54395%2034.9759V34.6619C5.54395%2031.6779%207.87795%2029.2379%2010.8219%2029.0719H36.1439C37.2479%2029.0719%2038.1439%2028.1759%2038.1439%2027.0719C38.1439%2025.9679%2037.2479%2025.0719%2036.1439%2025.0719H30.2819C30.3319%2025.0319%2030.3799%2024.9899%2030.4279%2024.9499L27.5139%2024.9519C25.4139%2024.9519%2023.7139%2023.2499%2023.7139%2021.1519V20.9379C23.7139%2018.8399%2025.4139%2017.1379%2027.5139%2017.1379H44.3899C49.0319%2015.5399%2054.0219%2014.6719%2059.2179%2014.6719Z'%20fill='%23E60000'%20fill-opacity='0.04'/%3e%3cpath%20d='M35.7505%2077.9514C35.7745%2078.0434%2035.8045%2078.1434%2035.8385%2078.2494L35.9085%2078.5294C35.9325%2078.6234%2035.9445%2078.6994%2035.9445%2078.7574C35.9445%2079.0834%2035.8565%2079.3734%2035.6805%2079.6254C35.5065%2079.8754%2035.2765%2080.0594%2034.9965%2080.1774C34.8905%2080.1894%2034.7805%2080.1954%2034.6625%2080.1954C34.5685%2080.2054%2034.4645%2080.2114%2034.3465%2080.2114H34.0125L31.2745%2080.2474V83.1754C31.2745%2083.6074%2031.2825%2084.0414%2031.3005%2084.4814C31.3185%2084.9194%2031.3385%2085.3134%2031.3605%2085.6634C31.3845%2086.0854%2031.4145%2086.4874%2031.4485%2086.8734H28.9205L28.9725%2086.1894C28.9845%2085.9214%2028.9965%2085.5554%2029.0085%2085.0934C29.0205%2084.6334%2029.0265%2084.0154%2029.0265%2083.2454V80.5634C28.8265%2080.7374%2028.6045%2080.8254%2028.3585%2080.8254C28.1605%2080.8254%2027.9865%2080.7794%2027.8405%2080.6854C27.6945%2080.5914%2027.5745%2080.4634%2027.4805%2080.2994L25.4965%2080.1954C25.1105%2080.1014%2024.7885%2079.9054%2024.5305%2079.6074C24.2725%2079.3094%2024.1445%2078.9554%2024.1445%2078.5474C24.1445%2078.4774%2024.1505%2078.4114%2024.1625%2078.3534C24.1745%2078.2954%2024.1905%2078.2374%2024.2145%2078.1794L24.6545%2077.1614C24.6765%2076.9054%2024.7505%2076.6654%2024.8725%2076.4434C24.9965%2076.2214%2025.1505%2076.0274%2025.3385%2075.8654L28.0945%2070.7634H28.1125C28.3345%2070.3554%2028.5985%2070.0034%2028.9025%2069.7114C29.2065%2069.4194%2029.6005%2069.2734%2030.0805%2069.2734C30.5005%2069.2734%2030.8785%2069.3854%2031.2125%2069.6074C31.5465%2069.8294%2031.7945%2070.1214%2031.9585%2070.4834L34.1705%2074.8134C34.5685%2074.9534%2034.8965%2075.1994%2035.1545%2075.5494C35.4125%2075.8994%2035.5405%2076.3034%2035.5405%2076.7594C35.5405%2076.9454%2035.5105%2077.1434%2035.4525%2077.3554L35.7505%2077.9514Z'%20fill='url(%23paint0_linear_2264_15691)'/%3e%3cpath%20d='M97.7505%2077.9514C97.7745%2078.0434%2097.8045%2078.1434%2097.8385%2078.2494L97.9085%2078.5294C97.9325%2078.6234%2097.9445%2078.6994%2097.9445%2078.7574C97.9445%2079.0834%2097.8565%2079.3734%2097.6805%2079.6254C97.5065%2079.8754%2097.2765%2080.0594%2096.9965%2080.1774C96.8905%2080.1894%2096.7805%2080.1954%2096.6625%2080.1954C96.5685%2080.2054%2096.4645%2080.2114%2096.3465%2080.2114H96.0125L93.2745%2080.2474V83.1754C93.2745%2083.6074%2093.2825%2084.0414%2093.3005%2084.4814C93.3185%2084.9194%2093.3385%2085.3134%2093.3605%2085.6634C93.3845%2086.0854%2093.4145%2086.4874%2093.4485%2086.8734H90.9205L90.9725%2086.1894C90.9845%2085.9214%2090.9965%2085.5554%2091.0085%2085.0934C91.0205%2084.6334%2091.0265%2084.0154%2091.0265%2083.2454V80.5634C90.8265%2080.7374%2090.6045%2080.8254%2090.3585%2080.8254C90.1605%2080.8254%2089.9865%2080.7794%2089.8405%2080.6854C89.6945%2080.5914%2089.5745%2080.4634%2089.4805%2080.2994L87.4965%2080.1954C87.1105%2080.1014%2086.7885%2079.9054%2086.5305%2079.6074C86.2725%2079.3094%2086.1445%2078.9554%2086.1445%2078.5474C86.1445%2078.4774%2086.1505%2078.4114%2086.1625%2078.3534C86.1745%2078.2954%2086.1905%2078.2374%2086.2145%2078.1794L86.6545%2077.1614C86.6765%2076.9054%2086.7505%2076.6654%2086.8725%2076.4434C86.9965%2076.2214%2087.1505%2076.0274%2087.3385%2075.8654L90.0945%2070.7634H90.1125C90.3345%2070.3554%2090.5985%2070.0034%2090.9025%2069.7114C91.2065%2069.4194%2091.6005%2069.2734%2092.0805%2069.2734C92.5005%2069.2734%2092.8785%2069.3854%2093.2125%2069.6074C93.5465%2069.8294%2093.7945%2070.1214%2093.9585%2070.4834L96.1705%2074.8134C96.5685%2074.9534%2096.8965%2075.1994%2097.1545%2075.5494C97.4125%2075.8994%2097.5405%2076.3034%2097.5405%2076.7594C97.5405%2076.9454%2097.5105%2077.1434%2097.4525%2077.3554L97.7505%2077.9514Z'%20fill='url(%23paint1_linear_2264_15691)'/%3e%3cpath%20d='M90.3947%2079.8743C90.4127%2079.9483%2090.4347%2080.0243%2090.4627%2080.1083L90.5167%2080.3283C90.5347%2080.4003%2090.5447%2080.4603%2090.5447%2080.5063C90.5447%2080.7623%2090.4767%2080.9903%2090.3387%2081.1863C90.2027%2081.3843%2090.0247%2081.5283%2089.8047%2081.6203C89.7227%2081.6283%2089.6367%2081.6343%2089.5447%2081.6343C89.4727%2081.6423%2089.3907%2081.6463%2089.2987%2081.6463H89.0387L86.9027%2081.6743V83.9703C86.9027%2084.3083%2086.9107%2084.6503%2086.9227%2084.9943C86.9367%2085.3383%2086.9527%2085.6463%2086.9707%2085.9223C86.9907%2086.2523%2087.0127%2086.5683%2087.0407%2086.8703H85.0687L85.1087%2086.3343C85.1187%2086.1243%2085.1287%2085.8363%2085.1367%2085.4743C85.1467%2085.1123%2085.1507%2084.6303%2085.1507%2084.0243V81.9223C84.9947%2082.0603%2084.8227%2082.1283%2084.6307%2082.1283C84.4747%2082.1283%2084.3407%2082.0923%2084.2267%2082.0183C84.1127%2081.9443%2084.0187%2081.8443%2083.9467%2081.7163L82.3987%2081.6343C82.0967%2081.5603%2081.8467%2081.4063%2081.6467%2081.1723C81.4447%2080.9403%2081.3447%2080.6623%2081.3447%2080.3423C81.3447%2080.2863%2081.3487%2080.2363%2081.3587%2080.1903C81.3667%2080.1443%2081.3807%2080.0983%2081.3987%2080.0523L81.7427%2079.2563C81.7607%2079.0543%2081.8167%2078.8663%2081.9127%2078.6923C82.0087%2078.5183%2082.1287%2078.3663%2082.2747%2078.2383L84.4247%2074.2383H84.4387C84.6127%2073.9183%2084.8167%2073.6423%2085.0547%2073.4143C85.2927%2073.1843%2085.5987%2073.0703%2085.9727%2073.0703C86.3007%2073.0703%2086.5947%2073.1583%2086.8547%2073.3323C87.1147%2073.5063%2087.3087%2073.7343%2087.4367%2074.0183L89.1627%2077.4143C89.4727%2077.5243%2089.7287%2077.7163%2089.9287%2077.9903C90.1287%2078.2663%2090.2307%2078.5823%2090.2307%2078.9403C90.2307%2079.0863%2090.2067%2079.2423%2090.1607%2079.4063L90.3947%2079.8743Z'%20fill='url(%23paint2_linear_2264_15691)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M56.6437%2082.2734C68.9198%2082.2734%2079.9738%2083.2754%2087.7018%2084.8734C95.2598%2084.9254%20101.344%2087.1874%20101.344%2089.9734C101.344%2092.1814%2097.5218%2094.0614%2092.1738%2094.7714C90.8978%2095.1474%2089.4598%2095.5034%2087.8818%2095.8354C87.9238%2096.0454%2087.9437%2096.2594%2087.9437%2096.4734C87.9437%20101.333%2077.3778%20105.273%2064.3438%20105.273C52.6178%20105.273%2042.8878%20102.083%2041.0538%2097.9054C25.4078%2096.7174%2014.3438%2093.7934%2014.3438%2090.3734C14.3438%2085.8994%2033.2818%2082.2734%2056.6437%2082.2734Z'%20fill='%23FFD4D4'/%3e%3cpath%20d='M58.0273%2082.2812C64.5826%2082.3216%2070.7608%2082.6467%2076.2344%2083.1953L97.126%2093.6328C95.7272%2094.1312%2094.044%2094.5242%2092.1738%2094.7725C90.8979%2095.1484%2089.4598%2095.504%2087.8818%2095.8359C87.9238%2096.0459%2087.9443%2096.2606%2087.9443%2096.4746C87.9439%20100.708%2079.9257%20104.242%2069.2432%20105.083L54.6758%2086.2764L58.0273%2082.2812Z'%20fill='url(%23paint3_linear_2264_15691)'%20fill-opacity='0.5'/%3e%3cpath%20d='M77.7439%2067.8154L57.5439%2065.2734V75.3514L77.4219%2077.6734L77.7439%2067.8154Z'%20fill='%23EB7171'/%3e%3cpath%20d='M41.5439%2068.5614L57.5419%2065.2734L57.5439%2076.6054L41.5439%2079.8734V68.5614Z'%20fill='%23FF9D9D'/%3e%3cpath%20d='M60.3438%2072.9106L77.5437%2068.4766V89.4426L60.3438%2093.8766V72.9106Z'%20fill='%23FFAFAF'/%3e%3cpath%20d='M41.7441%2069.0703L60.5441%2072.8203L60.4341%2093.8703L41.7441%2089.6943V69.0703Z'%20fill='%23FF9D9D'/%3e%3cpath%20d='M60.5439%2072.911L41.5779%2068.875L37.5439%2076.309L56.8319%2080.875L60.5439%2072.911Z'%20fill='%23FFAFAF'/%3e%3cpath%20d='M60.5439%2072.8143L77.7619%2068.0703L82.1439%2075.4523L65.6539%2080.8703L60.5439%2072.8143Z'%20fill='%23FF9D9D'/%3e%3cpath%20d='M42.1962%2038.2656C37.3122%2045.2576%2039.3862%2050.4756%2048.4182%2053.9216'%20stroke='%23FF9696'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M40.5166%2052.7422C42.1686%2054.7962%2043.6706%2055.8222%2045.0206%2055.8222'%20stroke='%23FF9696'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M80.3901%2029.3047C80.6101%2035.5207%2074.7721%2039.8707%2062.8701%2042.3607'%20stroke='%23FF9696'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M81.9779%2037.125C79.0579%2039.573%2076.7739%2040.797%2075.1279%2040.797'%20stroke='%23FF9696'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M77.1446%2051.3323C65.6526%2049.9443%2058.4286%2052.9043%2055.4766%2060.2123'%20stroke='%23FF9696'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M41.9277%2043.0703C48.7157%2044.1343%2051.4957%2046.0123%2050.2637%2048.7063C49.0317%2051.4003%2046.2537%2049.5203%2041.9277%2043.0703Z'%20fill='url(%23paint4_linear_2264_15691)'/%3e%3cpath%20d='M66.3105%2037.1274C67.3045%2033.6114%2069.9005%2032.4394%2074.0985%2033.6114C73.9185%2035.2254%2071.3225%2036.3974%2066.3105%2037.1274Z'%20fill='url(%23paint5_linear_2264_15691)'/%3e%3cpath%20d='M57.2061%2062.8159C60.3061%2056.7859%2064.6381%2055.0679%2070.2041%2057.6639C67.6081%2062.4659%2063.2761%2064.1839%2057.2061%2062.8159Z'%20fill='url(%23paint6_linear_2264_15691)'/%3e%3cpath%20d='M65.3438%2038.9639C66.1038%2037.3359%2067.1038%2036.2919%2068.3438%2035.8359'%20stroke='%23FFA9A9'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M48.418%2047.9062C49.838%2048.2363%2050.548%2049.6023%2050.548%2052.0043'%20stroke='%23FF9898'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M55.876%2064.7395C57.028%2062.5395%2058.63%2061.4375%2060.676%2061.4375'%20stroke='%23FF7676'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2264_15691'%20x1='35.0617'%20y1='86.6622'%20x2='28.9562'%20y2='86.7572'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFC3CE'%20stop-opacity='0'/%3e%3cstop%20offset='1'%20stop-color='%23FFC3C3'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_2264_15691'%20x1='97.0617'%20y1='86.6622'%20x2='90.9562'%20y2='86.7572'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFC3CE'%20stop-opacity='0'/%3e%3cstop%20offset='1'%20stop-color='%23FFC3C3'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_2264_15691'%20x1='89.8564'%20y1='86.7047'%20x2='85.0962'%20y2='86.7783'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFC3CE'%20stop-opacity='0'/%3e%3cstop%20offset='1'%20stop-color='%23FFC3C3'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_2264_15691'%20x1='78.1565'%20y1='97.3596'%20x2='78.1565'%20y2='76.5197'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23E60000'%20stop-opacity='0.1'/%3e%3cstop%20offset='1'%20stop-color='%23E60000'%20stop-opacity='0.2'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint4_linear_2264_15691'%20x1='41.809'%20y1='42.97'%20x2='51.3219'%20y2='46.8844'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF6666'/%3e%3cstop%20offset='1'%20stop-color='%23FFBEBE'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint5_linear_2264_15691'%20x1='66.9659'%20y1='35.6311'%20x2='72.8991'%20y2='32.1971'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFD6D6'/%3e%3cstop%20offset='1'%20stop-color='%23FF7B7B'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint6_linear_2264_15691'%20x1='58.2999'%20y1='60.7509'%20x2='68.158'%20y2='54.896'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='1.19209e-07'%20stop-color='%23FF9D9D'/%3e%3cstop%20offset='1'%20stop-color='%23EB7171'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",Ae=["aria-label"],We=["src"],Ue={class:"jt-empty-state__description"},Ke={key:0,class:"jt-empty-state__actions"},Ge=e.defineComponent({name:"JtEmptyState",__name:"index",props:{description:{default:_.t("common.暂无数据","暂无数据")},imageSize:{default:120}},setup(d){const t=d,o=e.computed(()=>({"--jt-empty-state-image-size":typeof t.imageSize=="number"?`${t.imageSize}px`:t.imageSize}));return(n,s)=>(e.openBlock(),e.createElementBlock("section",{class:"jt-empty-state",role:"status","aria-label":n.description,style:e.normalizeStyle(o.value)},[e.createElementVNode("div",{class:e.normalizeClass(["jt-empty-state__image",{"jt-empty-state__image--default":!n.$slots.image}])},[e.renderSlot(n.$slots,"image",{},()=>[e.createElementVNode("img",{src:e.unref(Ze),alt:""},null,8,We)],!0)],2),e.renderSlot(n.$slots,"default",{},()=>[e.createElementVNode("p",Ue,e.toDisplayString(n.description),1)],!0),n.$slots.actions?(e.openBlock(),e.createElementBlock("div",Ke,[e.renderSlot(n.$slots,"actions",{},void 0,!0)])):e.createCommentVNode("",!0)],12,Ae))}}),me=S._export_sfc(Ge,[["__scopeId","data-v-bb00a314"]]),qe={key:1},Ye={key:2},Xe={key:3},Qe=e.defineComponent({name:"JtTable",__name:"JtTable",props:{data:{},columns:{},option:{},tableEvents:{}},setup(d,{expose:t}){const o=d,n=e.useSlots(),s=e.ref(),i=e.computed(()=>o.option??{}),a=e.computed(()=>i.value.emptyText??_.t("common.暂无数据")),p=e.computed(()=>o.columns.filter(f=>!f.hide)),c=e.computed(()=>i.value.menuFixed??"right");function l(f){return!!n[`${f}-header`]}function g(f){return!!n[`${f}-data`]}function C(f){return{width:f.width,minWidth:f.minWidth,align:f.align||"center",fixed:f.fixed,sortable:f.sortable,showOverflowTooltip:f.showOverflowTooltip??h(f),...f.columnOptions}}function h(f){return!g(f.prop)&&!k(f.columnOptions?.type)}function B(f){return!k(f.columnOptions?.type)}function k(f){return f==="selection"||f==="index"||f==="expand"}function u(f,L){return f.find(E=>E.value===L)?.label??String(L??"")}return t({tableRef:s}),(f,L)=>{const E=j.ElTableColumn,N=j.ElTable;return e.openBlock(),e.createBlock(N,e.mergeProps({ref_key:"tableRef",ref:s,data:f.data,"row-key":i.value.rowKey??"id","empty-text":i.value.emptyText,stripe:i.value.tableProps?.stripe??!0,class:"jt-table"},i.value.tableProps,e.toHandlers(f.tableEvents)),{empty:e.withCtx(()=>[e.renderSlot(f.$slots,"empty",{},()=>[e.createVNode(me,{description:a.value},null,8,["description"])],!0)]),default:e.withCtx(()=>[i.value.selection?(e.openBlock(),e.createBlock(E,{key:0,type:"selection",width:"55",align:"center"})):e.createCommentVNode("",!0),i.value.index?(e.openBlock(),e.createBlock(E,{key:1,type:"index",label:i.value.indexLabel??e.unref(_.t)("common.序号"),width:"60",align:"center"},null,8,["label"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,x=>(e.openBlock(),e.createBlock(E,e.mergeProps({key:x.prop,prop:x.prop,label:x.label,formatter:!g(x.prop)&&!x.dicData?x.formatter:void 0,ref_for:!0},C(x)),e.createSlots({_:2},[l(x.prop)?{name:"header",fn:e.withCtx(V=>[e.renderSlot(f.$slots,`${x.prop}-header`,e.mergeProps({ref_for:!0},V),void 0,!0)]),key:"0"}:void 0,B(x)?{name:"default",fn:e.withCtx(V=>[g(x.prop)?e.renderSlot(f.$slots,`${x.prop}-data`,e.mergeProps({key:0,ref_for:!0},V),void 0,!0):x.dicData?(e.openBlock(),e.createElementBlock("span",qe,e.toDisplayString(u(x.dicData,V.row[x.prop])),1)):x.formatter?(e.openBlock(),e.createElementBlock("span",Ye,e.toDisplayString(x.formatter(V.row,V.column,V.row[x.prop],V.$index)),1)):(e.openBlock(),e.createElementBlock("span",Xe,e.toDisplayString(V.row[x.prop]),1))]),key:"1"}:void 0]),1040,["prop","label","formatter"]))),128)),i.value.menu?(e.openBlock(),e.createBlock(E,{key:2,label:i.value.menuLabel??e.unref(_.t)("common.操作"),width:i.value.menuWidth,"min-width":i.value.menuMinWidth,align:i.value.menuAlign??"center",fixed:c.value},{default:e.withCtx(x=>[e.renderSlot(f.$slots,"menu",e.normalizeProps(e.guardReactiveProps(x)),void 0,!0)]),_:3},8,["label","width","min-width","align","fixed"])):e.createCommentVNode("",!0)]),_:3},16,["data","row-key","empty-text","stripe"])}}}),fe=S._export_sfc(Qe,[["__scopeId","data-v-f0175193"]]),et={class:"jt-pagination"},tt={class:"jt-pagination__count"},ot=e.defineComponent({name:"JtPagination",__name:"JtPagination",props:{currentPage:{},pageSize:{},total:{},option:{}},emits:["update:currentPage","update:pageSize","current-change","page-change","size-change"],setup(d,{emit:t}){const o=d,n=e.computed(()=>o.option??{}),s=t;function i(a){s("current-change",a),s("page-change",a)}return(a,p)=>{const c=j.ElPagination;return e.openBlock(),e.createElementBlock("div",et,[e.createVNode(c,{"current-page":a.currentPage,"page-size":a.pageSize,"page-sizes":n.value.pageSizes??[10,20,50,100],total:a.total,layout:n.value.paginationLayout??"sizes, prev, pager, next, jumper","onUpdate:currentPage":p[0]||(p[0]=l=>a.$emit("update:currentPage",l)),"onUpdate:pageSize":p[1]||(p[1]=l=>a.$emit("update:pageSize",l)),onCurrentChange:i,onSizeChange:p[2]||(p[2]=l=>a.$emit("size-change",l))},null,8,["current-page","page-size","page-sizes","total","layout"]),e.createElementVNode("span",tt,e.toDisplayString(e.unref(_.t)("common.共{total}条记录","共 {total} 条记录",{total:a.total})),1)])}}}),he=S._export_sfc(ot,[["__scopeId","data-v-03d564ec"]]),nt={class:"jt-crud-table"},at={class:"filter-bar-box"},lt={class:"jt-crud-table__result"},rt={class:"jt-crud-table__table-group"},st={key:0,class:"jt-crud-table__toolbar"},it=e.defineComponent({name:"JtCrudTable",__name:"JtCrudTable",props:e.mergeModels({columns:{},option:{default:()=>({})},data:{},total:{default:0},tableEvents:{}},{currentPage:{default:1},currentPageModifiers:{},pageSize:{default:20},pageSizeModifiers:{},searchModel:{default:()=>({})},searchModelModifiers:{}}),emits:e.mergeModels(["search","reset","page-change","size-change"],["update:currentPage","update:pageSize","update:searchModel"]),setup(d,{expose:t,emit:o}){const n=d,s=o,i=e.useModel(d,"currentPage"),a=e.useModel(d,"pageSize"),p=e.useModel(d,"searchModel"),c=e.useSlots(),l=e.ref(),g=e.ref(),C=e.computed(()=>n.option),h=e.computed(()=>C.value.searchShow!==!1),B=e.computed(()=>C.value.paginationShow!==!1),k=e.computed(()=>n.columns.filter(m=>m.search&&!!c[`${m.prop}-search`])),u=e.computed(()=>n.columns.filter(m=>!m.hide&&!!c[`${m.prop}-header`])),f=e.computed(()=>n.columns.filter(m=>!m.hide&&!!c[`${m.prop}-data`]));function L(){const m={};return n.columns.forEach(b=>{b.search&&(m[b.prop]=void 0)}),m}function E(){s("search",{...p.value})}function N(){p.value=L(),s("reset")}function x(){g.value?.searchLoading()}function V(){g.value?.searchDone()}return t({tableRef:e.computed(()=>l.value?.tableRef),filterBarRef:g,searchLoading:x,searchDone:V}),(m,b)=>{const P=j.ElLoadingDirective;return e.openBlock(),e.createElementBlock("div",nt,[e.renderSlot(m.$slots,"header",{},void 0,!0),e.createElementVNode("div",at,[h.value?(e.openBlock(),e.createBlock(ue,{key:0,ref_key:"filterBarRef",ref:g,modelValue:p.value,"onUpdate:modelValue":b[0]||(b[0]=y=>p.value=y),columns:m.columns,option:C.value,onSearch:E,onReset:N},e.createSlots({_:2},[e.renderList(k.value,y=>({name:`${y.prop}-search`,fn:e.withCtx(v=>[e.renderSlot(m.$slots,`${y.prop}-search`,e.normalizeProps(e.guardReactiveProps(v)),void 0,!0)])}))]),1032,["modelValue","columns","option"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",lt,[e.createElementVNode("div",rt,[e.unref(c).toolbar?(e.openBlock(),e.createElementBlock("div",st,[e.renderSlot(m.$slots,"toolbar",{},void 0,!0)])):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createBlock(fe,{ref_key:"jtTableRef",ref:l,data:m.data,columns:m.columns,option:C.value,"table-events":m.tableEvents},e.createSlots({_:2},[e.unref(c).empty?{name:"empty",fn:e.withCtx(()=>[e.renderSlot(m.$slots,"empty",{},void 0,!0)]),key:"0"}:void 0,e.renderList(u.value,y=>({name:`${y.prop}-header`,fn:e.withCtx(v=>[e.renderSlot(m.$slots,`${y.prop}-header`,e.normalizeProps(e.guardReactiveProps(v)),void 0,!0)])})),e.renderList(f.value,y=>({name:`${y.prop}-data`,fn:e.withCtx(v=>[e.renderSlot(m.$slots,`${y.prop}-data`,e.normalizeProps(e.guardReactiveProps(v)),void 0,!0)])})),C.value.menu?{name:"menu",fn:e.withCtx(y=>[e.renderSlot(m.$slots,"menu",e.normalizeProps(e.guardReactiveProps(y)),void 0,!0)]),key:"1"}:void 0]),1032,["data","columns","option","table-events"])),[[P,C.value.loading]])]),B.value?(e.openBlock(),e.createBlock(he,{key:0,"current-page":i.value,"onUpdate:currentPage":b[1]||(b[1]=y=>i.value=y),"page-size":a.value,"onUpdate:pageSize":b[2]||(b[2]=y=>a.value=y),total:m.total,option:C.value,onPageChange:b[3]||(b[3]=y=>m.$emit("page-change",y)),onSizeChange:b[4]||(b[4]=y=>m.$emit("size-change",y))},null,8,["current-page","page-size","total","option"])):e.createCommentVNode("",!0)])])}}}),ct=S._export_sfc(it,[["__scopeId","data-v-a37df21e"]]),dt=e.defineComponent({name:"SvgIcon",__name:"SvgIcon",props:{src:{},size:{default:"1em"}},setup(d){const t=d,o=e.computed(()=>({"--svg-icon-source":`url("${t.src}")`,"--svg-icon-size":typeof t.size=="number"?`${t.size}px`:t.size}));return(n,s)=>(e.openBlock(),e.createElementBlock("span",{class:"svg-icon",style:e.normalizeStyle(o.value),"aria-hidden":"true"},null,4))}}),pt=S._export_sfc(dt,[["__scopeId","data-v-d11c470f"]]),ut="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.75%208.75C3.0625%208.75%202.5%209.3125%202.5%2010C2.5%2010.6875%203.0625%2011.25%203.75%2011.25C4.4375%2011.25%205%2010.6875%205%2010C5%209.3125%204.4375%208.75%203.75%208.75ZM16.25%208.75C15.5625%208.75%2015%209.3125%2015%2010C15%2010.6875%2015.5625%2011.25%2016.25%2011.25C16.9375%2011.25%2017.5%2010.6875%2017.5%2010C17.5%209.3125%2016.9375%208.75%2016.25%208.75ZM10%208.75C9.3125%208.75%208.75%209.3125%208.75%2010C8.75%2010.6875%209.3125%2011.25%2010%2011.25C10.6875%2011.25%2011.25%2010.6875%2011.25%2010C11.25%209.3125%2010.6875%208.75%2010%208.75Z'%20fill='%23333333'/%3e%3c/svg%3e",mt=["aria-label","disabled"],ft=e.defineComponent({name:"JtActionMenu",__name:"index",props:{items:{default:()=>[]},disabled:{type:Boolean,default:!1},ariaLabel:{default:_.t("common.更多操作","更多操作")}},emits:["select"],setup(d,{emit:t}){const o=d,n=t,s=e.computed(()=>o.items.filter(a=>a.hidden!==!0));function i(a){a.hidden||a.disabled||n("select",a.key,a)}return(a,p)=>{const c=j.ElIcon,l=j.ElDropdownItem,g=j.ElDropdownMenu,C=j.ElDropdown;return e.openBlock(),e.createBlock(C,{trigger:"click",placement:"bottom-end","popper-class":"jt-action-menu__popper",disabled:o.disabled||s.value.length===0,onCommand:i},{dropdown:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,h=>(e.openBlock(),e.createBlock(l,{key:h.key,class:e.normalizeClass(["jt-action-menu__item",{"is-danger":h.danger}]),command:h,disabled:h.disabled},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"item",{item:h},()=>[h.icon?(e.openBlock(),e.createBlock(c,{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h.icon)))]),_:2},1024)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(h.label),1)],!0)]),_:2},1032,["class","command","disabled"]))),128))]),_:3})]),default:e.withCtx(()=>[e.renderSlot(a.$slots,"trigger",{items:s.value},()=>[e.createElementVNode("button",{class:"jt-action-menu__trigger",type:"button","aria-label":o.ariaLabel,disabled:o.disabled},[e.createVNode(pt,{src:e.unref(ut),size:20},null,8,["src"])],8,mt)],!0)]),_:3},8,["disabled"])}}}),ht=S._export_sfc(ft,[["__scopeId","data-v-a054596c"]]),gt="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_116_12984)'%3e%3cpath%20d='M9.79688%201.125L12.8213%203.75L15.7812%206.375V15.5625C15.7812%2016.2874%2015.1936%2016.875%2014.4688%2016.875H3.3125C2.58765%2016.875%202%2016.2874%202%2015.5625V2.4375C2%201.71265%202.58765%201.12503%203.3125%201.125H9.79688Z'%20fill='%23576A95'/%3e%3cpath%20d='M15.7813%206.375L11.1098%206.375C10.3849%206.375%209.7973%205.78737%209.7973%205.0625L9.7973%201.125L12.8799%203.75L15.7813%206.375Z'%20fill='white'%20fill-opacity='0.4'/%3e%3crect%20x='4.62499'%20y='1.125'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='5.60939'%20y='2.10938'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='4.62502'%20y='3.09375'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='5.60939'%20y='4.07812'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='4.62502'%20y='5.0625'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='5.60939'%20y='6.04688'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='4.62502'%20y='7.03125'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='5.60939'%20y='8.01562'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='4.62502'%20y='9'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3cpath%20d='M4.62502%209.98438H6.59377V11.2969C6.59377%2011.6593%206.29995%2011.9531%205.93752%2011.9531H5.28127C4.91883%2011.9531%204.62502%2011.6593%204.62502%2011.2969V9.98438Z'%20fill='white'/%3e%3crect%20x='4.95314'%20y='10.3125'%20width='1.3125'%20height='0.65625'%20fill='%23576A95'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_116_12984'%3e%3crect%20width='14'%20height='15.75'%20fill='white'%20transform='translate(2%201.125)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Ct="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_116_12985)'%3e%3cpath%20d='M9.79688%201.125L12.8213%203.75L15.7812%206.375V15.5625C15.7812%2016.2874%2015.1936%2016.875%2014.4688%2016.875H3.3125C2.58765%2016.875%202%2016.2874%202%2015.5625V2.4375C2%201.71265%202.58765%201.12503%203.3125%201.125H9.79688Z'%20fill='%2323B08D'/%3e%3cpath%20d='M15.7813%206.375L11.1098%206.375C10.3849%206.375%209.79729%205.78737%209.79729%205.0625L9.7973%201.125L12.8799%203.75L15.7813%206.375Z'%20fill='white'%20fill-opacity='0.4'/%3e%3cpath%20d='M8.9075%2010.7278H8.87375L7.59125%2012.6094H5.97969L8.03844%209.68156L5.9375%206.70312H7.53219L8.87375%208.63531H8.9075L10.2491%206.70312H11.8437L9.75125%209.68156L11.81%2012.6094H10.19L8.9075%2010.7278Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_116_12985'%3e%3crect%20width='14'%20height='15.75'%20fill='white'%20transform='translate(2%201.125)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",vt="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15.7454%206.375L11.1873%206.375C10.4624%206.375%209.87481%205.78737%209.87481%205.0625L9.87481%201.125L12.899%203.75L15.7454%206.375Z'%20fill='%23E78B7F'/%3e%3cpath%20d='M5.61656%208.43881H6.15403V10.6576C6.15403%2011.0343%206.07594%2011.3099%205.91975%2011.4937C5.74519%2011.6866%205.46956%2011.7831%205.08828%2011.7831C4.75753%2011.7831%204.50488%2011.6912%204.33491%2011.5074C4.16035%2011.3237%204.07306%2011.071%204.07306%2010.7495V10.6438H4.61053V10.7449C4.61053%2011.1216%204.77131%2011.3099%205.09747%2011.3099C5.27663%2011.3099%205.40985%2011.2548%205.49253%2011.1491C5.57522%2011.0435%205.61656%2010.8735%205.61656%2010.6392V8.43881ZM6.79755%208.43881H8.1573C8.94743%208.43881%209.34708%208.77416%209.34708%209.44484C9.34708%2010.1201%208.94743%2010.4601%208.14811%2010.4601H7.33502V11.7188H6.79755V8.43881ZM7.33502%208.89819V10.0007H8.11596C8.35483%2010.0007%208.5294%209.95475%208.63965%209.87206C8.7499%209.78478%208.80502%209.64238%208.80502%209.44484C8.80502%209.24731%208.7453%209.1095%208.63505%209.02681C8.5248%208.93953%208.35024%208.89819%208.11596%208.89819H7.33502ZM11.2318%208.3745C11.6544%208.3745%2011.9852%208.46638%2012.2286%208.65472C12.4629%208.83847%2012.6099%209.1095%2012.6696%209.477H12.1276C12.0816%209.26569%2011.9806%209.1095%2011.8336%209.00384C11.682%208.89819%2011.4798%208.84766%2011.2318%208.84766C10.924%208.84766%2010.6805%208.94872%2010.5014%209.16003C10.3038%209.38053%2010.2074%209.68831%2010.2074%2010.0926C10.2074%2010.4784%2010.2947%2010.777%2010.4692%2010.9838C10.6576%2011.2043%2010.9516%2011.3145%2011.3512%2011.3145C11.5074%2011.3145%2011.6544%2011.2961%2011.7922%2011.2594C11.9208%2011.2226%2012.0357%2011.1721%2012.1459%2011.1078V10.4325H11.2777V9.97313H12.6834V11.3604C12.5088%2011.4983%2012.3113%2011.5993%2012.0862%2011.6728C11.8473%2011.7463%2011.5855%2011.7831%2011.2915%2011.7831C10.7678%2011.7831%2010.3636%2011.6177%2010.0742%2011.2869C9.80312%2010.9792%209.6699%2010.5795%209.6699%2010.0926C9.6699%209.60103%209.80312%209.19678%2010.0742%208.87981C10.359%208.53988%2010.7448%208.3745%2011.2318%208.3745Z'%20fill='white'/%3e%3cpath%20d='M15.7813%206.37537V15.5621C15.7813%2016.287%2015.1933%2016.875%2014.4684%2016.875H3.31287C2.588%2016.875%202.00001%2016.287%202.00001%2015.5621V2.43787C2.00001%201.713%202.588%201.125%203.31287%201.125H9.87501L15.7813%206.37537Z'%20fill='%23E60000'/%3e%3cg%20clip-path='url(%23clip0_116_12983)'%3e%3cpath%20d='M10.854%208.25822C11.4331%208.23023%2011.8857%207.70539%2011.8524%207.09657C11.8258%206.52974%2011.3931%206.07487%2010.854%206.04688C10.275%206.07487%209.82239%206.59971%209.85567%207.20853C9.8823%207.77537%2010.3149%208.23023%2010.854%208.25822ZM10.9405%209.39889C10.9073%209.3499%2010.8673%209.30791%2010.8207%209.27292C10.5745%209.08398%2010.235%209.13996%2010.0553%209.39889L9.76249%209.82576C9.70925%209.90274%209.60941%209.91673%209.54286%209.86075C9.52954%209.85375%209.51623%209.83975%209.50958%209.82576L8.47129%208.3422C8.43801%208.29321%208.39808%208.25123%208.35149%208.21624C8.23834%208.12526%208.09192%208.09027%207.94549%208.11127C7.80572%208.13226%207.67261%208.21624%207.59274%208.3422L5.71584%2011.0294C5.53614%2011.2883%205.58938%2011.6452%205.82899%2011.8342C5.92217%2011.9041%206.03531%2011.9461%206.15512%2011.9461H11.6594C11.7659%2011.9461%2011.8657%2011.9041%2011.9522%2011.8342C12.1918%2011.6452%2012.2451%2011.2813%2012.0654%2011.0294L10.9405%209.39889Z'%20fill='white'/%3e%3c/g%3e%3cpath%20d='M15.7813%206.37501L11.2232%206.37501C10.4983%206.37501%209.9107%205.78738%209.9107%205.06251L9.9107%201.12501L12.9349%203.75001L15.7813%206.37501Z'%20fill='white'%20fill-opacity='0.4'/%3e%3cdefs%3e%3cclipPath%20id='clip0_116_12983'%3e%3crect%20width='6.5625'%20height='5.90625'%20fill='white'%20transform='translate(5.60939%206.04688)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",_t="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.797%201.125L12.8215%203.74963L15.7812%206.37537V15.5621C15.7812%2016.287%2015.1933%2016.875%2014.4684%2016.875H3.31287C2.58799%2016.875%202%2016.287%202%2015.5621V2.43787C2%201.71299%202.58799%201.125%203.31287%201.125H9.797Z'%20fill='%23FF5E00'/%3e%3cpath%20d='M15.7813%206.375L11.1098%206.375C10.3849%206.375%209.79729%205.78737%209.79729%205.0625L9.79729%201.125L12.8799%203.75L15.7813%206.375Z'%20fill='white'%20fill-opacity='0.4'/%3e%3cpath%20d='M12.1742%2011.8432C11.5493%2011.7975%2010.9476%2011.569%2010.4616%2011.1579C9.51279%2011.3635%208.61023%2011.6604%207.70767%2012.0259C6.99025%2013.2823%206.31912%2013.9219%205.74055%2013.9219C5.62484%2013.9219%205.48599%2013.899%205.39342%2013.8305C5.13885%2013.7163%204.99999%2013.465%204.99999%2013.2137C4.99999%2013.0082%205.04628%2012.4371%207.24482%2011.5005C7.75396%2010.5868%208.14738%209.65022%208.47137%208.66797C8.19366%208.11974%207.59196%206.772%208.00852%206.0867C8.14738%205.83543%208.42509%205.69837%208.72594%205.72121C8.95737%205.72121%209.18879%205.83543%209.32765%206.01817C9.6285%206.42935%209.60536%207.29739%209.21194%208.5766C9.58222%209.26189%2010.0682%209.87865%2010.6468%2010.404C11.1328%2010.3127%2011.6188%2010.2441%2012.1048%2010.2441C13.1925%2010.267%2013.3545%2010.7695%2013.3313%2011.0665C13.3313%2011.8432%2012.5676%2011.8432%2012.1742%2011.8432ZM5.69427%2013.2594L5.7637%2013.2366C6.08769%2013.1224%206.34226%2012.8939%206.5274%2012.597C6.18026%2012.734%205.90255%2012.9625%205.69427%2013.2594ZM8.77223%206.40651H8.7028C8.67966%206.40651%208.63337%206.40651%208.61023%206.42935C8.51766%206.81768%208.58709%207.22886%208.74909%207.59435C8.88794%207.20601%208.88794%206.79484%208.77223%206.40651ZM8.93423%209.71875L8.91108%209.76444L8.88794%209.74159C8.67966%2010.267%208.44823%2010.7924%208.19366%2011.2949L8.23995%2011.2721V11.3178C8.74909%2011.135%209.30451%2010.9751%209.81364%2010.8609L9.7905%2010.8381H9.85993C9.51279%2010.4954%209.18879%2010.1071%208.93423%209.71875ZM12.0816%2010.9294C11.8733%2010.9294%2011.6882%2010.9294%2011.4799%2010.9751C11.7113%2011.0893%2011.9428%2011.135%2012.1742%2011.1579C12.3362%2011.1807%2012.4982%2011.1579%2012.637%2011.1122C12.637%2011.0436%2012.5445%2010.9294%2012.0816%2010.9294Z'%20fill='white'/%3e%3c/svg%3e",yt="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_116_12982)'%3e%3cpath%20d='M9.797%201.125L12.8215%203.74964L15.7813%206.37537V15.5621C15.7813%2016.287%2015.1933%2016.875%2014.4684%2016.875H3.31287C2.588%2016.875%202.00001%2016.287%202.00001%2015.5621V2.43787C2.00001%201.713%202.588%201.125%203.31287%201.125H9.797Z'%20fill='%23165DFF'/%3e%3cg%20clip-path='url(%23clip1_116_12982)'%3e%3cpath%20d='M11.2235%206.70312L10.2584%2010.5773L9.42526%207.20938H8.35602L7.52285%2010.5773L6.55776%206.70312H5.26635L6.73828%2012.6094H7.02295H8.0297H8.08524L8.89064%209.36797L9.68909%2012.6094H9.75158H10.7583H11.0361L12.5149%206.70312H11.2235Z'%20fill='white'/%3e%3c/g%3e%3cpath%20d='M15.7813%206.375L11.1098%206.375C10.3849%206.375%209.79729%205.78737%209.79729%205.0625L9.7973%201.125L12.8799%203.75L15.7813%206.375Z'%20fill='white'%20fill-opacity='0.4'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_116_12982'%3e%3crect%20width='14'%20height='15.75'%20fill='white'%20transform='translate(2%201.125)'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_116_12982'%3e%3crect%20width='7.24858'%20height='5.90625'%20fill='white'%20transform='translate(5.26635%206.70312)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",bt={pdf:"pdf",xls:"excel",xlsx:"excel",csv:"excel",doc:"word",docx:"word",zip:"archive",rar:"archive","7z":"archive",tar:"archive",gz:"archive",png:"image",jpg:"image",jpeg:"image",gif:"image",webp:"image",bmp:"image",svg:"image"};function ge(d,t){if(t)return t;if(!d)return;const o=d.split(/[?#]/,1)[0],n=o.includes(".")?o.split(".").pop()?.toLowerCase():void 0;return n?bt[n]:void 0}const wt=["aria-label"],kt=["src"],Bt=e.defineComponent({name:"JtFileIcon",__name:"index",props:{name:{},type:{},size:{default:18}},setup(d){const t=d,o={pdf:_t,excel:Ct,word:yt,archive:gt,image:vt},n=e.computed(()=>ge(t.name,t.type)),s=e.computed(()=>n.value?o[n.value]:void 0),i=e.computed(()=>t.name?_.t("common.{name}文件图标","{name} 文件图标",{name:t.name}):_.t("common.文件图标","文件图标")),a=e.computed(()=>({"--jt-file-icon-size":typeof t.size=="number"?`${t.size}px`:t.size}));return(p,c)=>(e.openBlock(),e.createElementBlock("span",{class:"jt-file-icon",role:"img","aria-label":i.value,style:e.normalizeStyle(a.value)},[s.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:s.value,alt:"","aria-hidden":"true"},null,8,kt)):e.renderSlot(p.$slots,t.name,{key:1,type:n.value},void 0,!0)],12,wt))}}),Ce=S._export_sfc(Bt,[["__scopeId","data-v-989a66a3"]]),xt={key:0,class:"jt-attachment-list"},Lt={class:"jt-attachment-list__identity"},St=["title"],$t={key:0,class:"jt-attachment-list__description"},Vt={key:0,class:"jt-attachment-list__actions"},Et={key:1,class:"jt-attachment-list__empty"},jt=e.defineComponent({name:"JtAttachmentList",__name:"index",props:{files:{},emptyText:{default:_.t("common.暂无附件","暂无附件")}},emits:["preview","download","remove"],setup(d,{emit:t}){const o=d,n=t;function s(p){n("preview",p)}function i(p){n("download",p)}function a(p){n("remove",p)}return(p,c)=>o.files.length?(e.openBlock(),e.createElementBlock("ul",xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.files,l=>(e.openBlock(),e.createElementBlock("li",{key:l.id,class:"jt-attachment-list__item"},[e.renderSlot(p.$slots,"item",{file:l},()=>[e.createElementVNode("span",Lt,[e.createVNode(Ce,{name:l.name,type:l.type},null,8,["name","type"]),e.createElementVNode("span",{class:e.normalizeClass(["jt-attachment-list__name",{"is-disabled":l.disabled}]),title:l.name},e.toDisplayString(l.name),11,St),l.description?(e.openBlock(),e.createElementBlock("span",$t,e.toDisplayString(l.description),1)):e.createCommentVNode("",!0)])],!0),p.$slots.actions?(e.openBlock(),e.createElementBlock("span",Vt,[e.renderSlot(p.$slots,"actions",{file:l,preview:()=>s(l),download:()=>i(l),remove:()=>a(l)},void 0,!0)])):e.createCommentVNode("",!0)]))),128))])):(e.openBlock(),e.createElementBlock("div",Et,[e.renderSlot(p.$slots,"empty",{},()=>[e.createTextVNode(e.toDisplayString(o.emptyText),1)],!0)]))}}),Tt=S._export_sfc(jt,[["__scopeId","data-v-9f6adbeb"]]),Mt={key:0,class:"jt-card__title"},Pt={key:1,class:"jt-card__content"},Dt=e.defineComponent({name:"JtCard",__name:"index",props:{title:{}},setup(d){const t=d,o=e.useSlots(),n=e.computed(()=>!!(t.title||o.title)),s=e.computed(()=>!!(o.content||o.default));return(i,a)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"jt-card"},i.$attrs),[n.value?(e.openBlock(),e.createElementBlock("div",Mt,[e.renderSlot(i.$slots,"title",{},()=>[e.createElementVNode("span",null,e.toDisplayString(i.title),1)],!0)])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("div",Pt,[e.renderSlot(i.$slots,"content",{},()=>[e.renderSlot(i.$slots,"default",{},void 0,!0)],!0)])):e.createCommentVNode("",!0)],16))}}),Ft=S._export_sfc(Dt,[["__scopeId","data-v-e4895e88"]]),zt=["aria-label"],Nt=["data-jt-choice-card-index","aria-checked","aria-disabled","disabled","tabindex","onClick","onKeydown"],It={class:"jt-choice-card__copy"},Ht={class:"jt-choice-card__label"},Jt={key:0,class:"jt-choice-card__description"},Ot=e.defineComponent({name:"JtChoiceCardGroup",__name:"index",props:{modelValue:{},options:{default:()=>[]},ariaLabel:{default:_.t("common.卡片单选","卡片单选")}},emits:["update:modelValue","change"],setup(d,{emit:t}){const o=d,n=t,s=e.ref(),i=e.computed(()=>o.options.flatMap((l,g)=>l.disabled?[]:[g]));function a(l){l.disabled||l.value===o.modelValue||(n("update:modelValue",l.value),n("change",l.value,l))}function p(l,g){return l.disabled?-1:l.value===o.modelValue||o.modelValue===void 0&&g===i.value[0]?0:-1}function c(l,g,C){if(l.key==="Enter"||l.key===" "){l.preventDefault(),a(g);return}const B={ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1}[l.key];if(!B||i.value.length===0)return;l.preventDefault();const u=(Math.max(i.value.indexOf(C),0)+B+i.value.length)%i.value.length,f=i.value[u],L=o.options[f];s.value?.querySelector(`[data-jt-choice-card-index="${f}"]`)?.focus(),L&&a(L)}return(l,g)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"groupRef",ref:s,class:"jt-choice-card-group",role:"radiogroup","aria-label":o.ariaLabel},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.options,(C,h)=>(e.openBlock(),e.createElementBlock("button",{key:C.value,class:e.normalizeClass(["jt-choice-card",{"is-selected":C.value===o.modelValue}]),type:"button",role:"radio","data-jt-choice-card-index":h,"aria-checked":C.value===o.modelValue?"true":"false","aria-disabled":C.disabled?"true":"false",disabled:C.disabled,tabindex:p(C,h),onClick:B=>a(C),onKeydown:B=>c(B,C,h)},[e.renderSlot(l.$slots,"option",{option:C,selected:C.value===o.modelValue},()=>[e.createElementVNode("span",It,[e.createElementVNode("span",Ht,e.toDisplayString(C.label),1),C.description?(e.openBlock(),e.createElementBlock("span",Jt,e.toDisplayString(C.description),1)):e.createCommentVNode("",!0)])],!0)],42,Nt))),128))],8,zt))}}),Rt=S._export_sfc(Ot,[["__scopeId","data-v-897eb9f2"]]),Zt={class:"jt-descriptions__label"},At={class:"jt-descriptions__value"},Wt=e.defineComponent({name:"JtDescriptions",__name:"index",props:{items:{},columns:{default:4},labelWidth:{default:"auto"},emptyText:{default:"--"}},setup(d){const t=d,o=e.computed(()=>t.items.filter(a=>!a.hidden)),n=e.computed(()=>({"--jt-descriptions-columns":t.columns,"--jt-descriptions-label-width":typeof t.labelWidth=="number"?`${t.labelWidth}px`:t.labelWidth}));function s(a){const p=Math.trunc(a??1);return Math.min(Math.max(p,1),t.columns)}function i(a){return a!=null&&a!==""}return(a,p)=>(e.openBlock(),e.createElementBlock("dl",{class:"jt-descriptions",style:e.normalizeStyle(n.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,c=>(e.openBlock(),e.createElementBlock("div",{key:c.key,class:"jt-descriptions__item",style:e.normalizeStyle({gridColumn:`span ${s(c.span)}`})},[e.renderSlot(a.$slots,"item",{item:c},()=>[e.createElementVNode("dt",Zt,[e.renderSlot(a.$slots,`${c.key}-label`,{item:c},()=>[e.createTextVNode(e.toDisplayString(c.label),1)],!0)]),e.createElementVNode("dd",At,[e.renderSlot(a.$slots,`${c.key}-value`,{item:c},()=>[e.createTextVNode(e.toDisplayString(i(c.value)?c.value:t.emptyText),1)],!0)])],!0)],4))),128))],4))}}),Ut=S._export_sfc(Wt,[["__scopeId","data-v-9cf04a6b"]]),Kt="data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='28'%20height='28'%20rx='14'%20fill='%23F9F9F9'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M19.7286%207.21096C20.0215%206.91825%2020.4963%206.91814%2020.7892%207.21096C21.082%207.50379%2021.0819%207.9786%2020.7892%208.2715L15.0607%2014L20.7892%2019.7285C21.082%2020.0214%2021.0819%2020.4962%2020.7892%2020.7891C20.4963%2021.082%2020.0215%2021.082%2019.7286%2020.7891L14.0001%2015.0606L8.2716%2020.7891C7.97871%2021.082%207.50394%2021.082%207.21105%2020.7891C6.91817%2020.4962%206.91816%2020.0214%207.21105%2019.7285L12.9396%2014L7.21105%208.2715C6.91816%207.97861%206.91816%207.50385%207.21105%207.21096C7.50396%206.91825%207.97876%206.91812%208.2716%207.21096L14.0001%2012.9395L19.7286%207.21096Z'%20fill='%23666666'/%3e%3c/svg%3e",Gt={class:"jt-dialog__header"},qt={class:"jt-dialog__title"},Yt={key:0,class:"jt-dialog__icon","aria-hidden":"true"},Xt=["aria-label","disabled"],Qt={class:"jt-dialog__body"},e2={class:"jt-dialog__footer"},t2=e.defineComponent({name:"JtDialog",__name:"index",props:e.mergeModels({appendToBody:{type:Boolean},appendTo:{},beforeClose:{},destroyOnClose:{type:Boolean},closeOnClickModal:{type:Boolean},closeOnPressEscape:{type:Boolean},lockScroll:{type:Boolean},modal:{type:Boolean,default:!0},modalPenetrable:{type:Boolean},openDelay:{},closeDelay:{},top:{},modalClass:{},zIndex:{},trapFocus:{type:Boolean},headerAriaLevel:{},transition:{},center:{type:Boolean},alignCenter:{type:Boolean},closeIcon:{},draggable:{type:Boolean},overflow:{type:Boolean},fullscreen:{type:Boolean},headerClass:{},bodyClass:{},footerClass:{},showClose:{type:Boolean},ariaLevel:{},title:{default:""},width:{default:"default"},cancelText:{default:_.t("common.取消")},confirmText:{default:_.t("common.确认")},confirmLoading:{type:Boolean,default:!1},showFooter:{type:Boolean,default:!0},footerLayout:{default:"stretch"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:e.mergeModels(["cancel","confirm","close"],["update:modelValue"]),setup(d,{emit:t}){const o=d,n=e.useModel(d,"modelValue"),s=t,i={default:"517px",form:"642px"},a=new Set(["title","width","cancelText","confirmText","confirmLoading","showFooter","footerLayout"]),p=e.useAttrs();function c(u){return typeof u=="string"&&u in i?i[u]:u}const l=e.computed(()=>{const{title:u,width:f,cancelText:L,confirmText:E,confirmLoading:N,showFooter:x,footerLayout:V,...m}=o;return{...G(p,a),...m,width:c(f),showClose:!1}}),g=e.computed(()=>K(p)),C=e.computed(()=>`jt-dialog--footer-${o.footerLayout}`);function h(){n.value=!1}function B(){s("cancel"),h()}function k(){o.confirmLoading||s("confirm")}return(u,f)=>{const L=j.ElDialog;return e.openBlock(),e.createBlock(L,e.mergeProps({modelValue:n.value,"onUpdate:modelValue":f[0]||(f[0]=E=>n.value=E),class:["jt-dialog",C.value]},l.value,e.toHandlers(g.value),{onClose:f[1]||(f[1]=E=>s("close"))}),e.createSlots({header:e.withCtx(()=>[e.renderSlot(u.$slots,"header",{close:h},()=>[e.createElementVNode("header",Gt,[e.createElementVNode("div",qt,[u.$slots.icon?(e.openBlock(),e.createElementBlock("span",Yt,[e.renderSlot(u.$slots,"icon")])):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(u.title),1)]),e.createElementVNode("button",{type:"button",class:"jt-dialog__close","aria-label":e.unref(_.t)("common.关闭","关闭"),disabled:u.confirmLoading,onClick:h},f[2]||(f[2]=[e.createElementVNode("img",{src:Kt,alt:""},null,-1)]),8,Xt)])])]),default:e.withCtx(()=>[e.createElementVNode("section",Qt,[e.renderSlot(u.$slots,"default")])]),_:2},[u.showFooter?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("footer",e2,[e.renderSlot(u.$slots,"footer",{cancel:B,confirm:k},()=>[e.createVNode(z,{size:"middle",gray:"",disabled:u.confirmLoading,onClick:B},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.cancelText),1)]),_:1},8,["disabled"]),e.createVNode(z,{size:"middle",type:"primary",loading:u.confirmLoading,disabled:u.confirmLoading,onClick:k},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.confirmText),1)]),_:1},8,["loading","disabled"])])])]),key:"0"}:void 0]),1040,["modelValue","class"])}}}),o2={class:"jt-drawer__body"},n2={class:"jt-drawer__footer"},a2={class:"jt-drawer__footer-actions"},l2=e.defineComponent({name:"JtDrawer",__name:"index",props:{direction:{default:"rtl"},resizable:{type:Boolean},withHeader:{type:Boolean},modalFade:{type:Boolean},headerAriaLevel:{},appendToBody:{type:Boolean},appendTo:{},beforeClose:{},destroyOnClose:{type:Boolean},closeOnClickModal:{type:Boolean},closeOnPressEscape:{type:Boolean},lockScroll:{type:Boolean},modal:{type:Boolean,default:!0},modalPenetrable:{type:Boolean},openDelay:{},closeDelay:{},top:{},modelValue:{type:Boolean},modalClass:{default:"jt-drawer-modal"},width:{},zIndex:{},trapFocus:{type:Boolean},transition:{},center:{type:Boolean},alignCenter:{type:Boolean},closeIcon:{},draggable:{type:Boolean},overflow:{type:Boolean},fullscreen:{type:Boolean},headerClass:{},bodyClass:{},footerClass:{},showClose:{type:Boolean},title:{},ariaLevel:{},size:{default:"default"},cancelText:{default:_.t("common.取消")},confirmText:{default:_.t("common.确认")},confirmLoading:{type:Boolean,default:!1},showFooter:{type:Boolean,default:!0}},emits:["cancel","confirm"],setup(d,{emit:t}){const o={default:"838px",large:"1242px"},n=new Set(["cancelText","confirmText","confirmLoading","showFooter"]),s=d,i=t,a=e.useAttrs(),p=e.computed(()=>{const{cancelText:l,confirmText:g,confirmLoading:C,showFooter:h,size:B,...k}=s;return{...G(a,n),...k,size:o[B],withHeader:!1,modalClass:["jt-drawer-modal",k.modalClass].filter(Boolean).join(" ")}}),c=e.computed(()=>K(a));return(l,g)=>{const C=j.ElDrawer;return e.openBlock(),e.createBlock(C,e.mergeProps({class:"jt-drawer","lock-model":""},p.value,e.toHandlers(c.value)),e.createSlots({default:e.withCtx(()=>[e.createElementVNode("section",o2,[e.renderSlot(l.$slots,"body",{},()=>[e.renderSlot(l.$slots,"default")])])]),_:2},[l.showFooter?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("footer",n2,[e.renderSlot(l.$slots,"footer",{},()=>[e.createElementVNode("div",a2,[e.createVNode(z,{class:"jt-drawer__footer-button",size:"middle",gray:"",disabled:l.confirmLoading,onClick:g[0]||(g[0]=h=>i("cancel"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.cancelText),1)]),_:1},8,["disabled"]),e.createVNode(z,{class:"jt-drawer__footer-button",size:"middle",type:"primary",loading:l.confirmLoading,disabled:l.confirmLoading,onClick:g[1]||(g[1]=h=>i("confirm"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.confirmText),1)]),_:1},8,["loading","disabled"])])])])]),key:"0"}:void 0]),1040)}}}),r2=e.defineComponent({name:"JtOverflowTooltipText",__name:"index",props:{content:{default:""},maxWidth:{default:"100%"},placement:{default:"top"},popperClass:{default:""},tag:{default:"span"},effect:{default:"dark"},textClass:{default:"jt-overflow-tooltip-text--default"},textStyle:{}},setup(d){const t=d,o=e.ref(null),n=e.ref(!1);let s=null;const i=e.computed(()=>({maxWidth:typeof t.maxWidth=="number"?`${t.maxWidth}px`:t.maxWidth,...t.textStyle}));function a(){const p=o.value;p&&(n.value=p.scrollWidth>p.clientWidth||p.scrollHeight>p.clientHeight)}return e.onMounted(async()=>{await e.nextTick(),a(),!(!window.ResizeObserver||!o.value)&&(s=new ResizeObserver(a),s.observe(o.value))}),e.onBeforeUnmount(()=>{s?.disconnect()}),e.watch(()=>[t.content,t.maxWidth,t.textStyle],async()=>{await e.nextTick(),a()},{deep:!0}),(p,c)=>{const l=j.ElTooltip;return e.openBlock(),e.createBlock(l,e.mergeProps({disabled:!n.value||!t.content,content:t.content,placement:t.placement,effect:t.effect,"popper-class":t.popperClass,"show-arrow":!1},p.$attrs),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tag),{ref_key:"textRef",ref:o,class:e.normalizeClass(["jt-overflow-tooltip-text",t.textClass]),style:e.normalizeStyle(i.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.content),1)]),_:1},8,["class","style"]))]),_:1},16,["disabled","content","placement","effect","popper-class"])}}}),s2=S._export_sfc(r2,[["__scopeId","data-v-3e8ed286"]]),i2="data:image/svg+xml,%3csvg%20width='22'%20height='22'%20viewBox='0%200%2022%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11%202C6.04082%202%202%206.04082%202%2011C2%2015.9592%206.04082%2020%2011%2020C15.9592%2020%2020%2015.9592%2020%2011C20%206.04082%2015.9592%202%2011%202ZM10.2653%207.78572C10.2653%207.41837%2010.5408%207.05102%2011%207.05102C11.4592%207.05102%2011.7347%207.32653%2011.7347%207.78572V11.4592C11.7347%2011.8265%2011.4592%2012.1939%2011%2012.1939C10.5408%2012.1939%2010.2653%2011.9184%2010.2653%2011.4592V7.78572ZM11%2015.1327C10.5408%2015.1327%2010.0816%2014.6735%2010.0816%2014.2143C10.0816%2013.7551%2010.5408%2013.2959%2011%2013.2959C11.4592%2013.2959%2011.9184%2013.7551%2011.9184%2014.2143C11.9184%2014.6735%2011.4592%2015.1327%2011%2015.1327Z'%20fill='%23E60000'/%3e%3c/svg%3e",c2="data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='28'%20height='28'%20rx='14'%20fill='%23F9F9F9'/%3e%3cpath%20d='M19.7294%207.21079C20.0223%206.91808%2020.4971%206.91797%2020.79%207.21079C21.0828%207.50362%2021.0827%207.97843%2020.79%208.27134L15.0615%2013.9999L20.79%2019.7284C21.0828%2020.0212%2021.0827%2020.496%2020.79%2020.7889C20.4971%2021.0818%2020.0223%2021.0818%2019.7294%2020.7889L14.0009%2015.0604L8.2724%2020.7889C7.97952%2021.0818%207.50475%2021.0818%207.21186%2020.7889C6.91898%2020.496%206.91897%2020.0213%207.21186%2019.7284L12.9404%2013.9999L7.21186%208.27134C6.91896%207.97844%206.91896%207.50368%207.21186%207.21079C7.50477%206.91808%207.97957%206.91796%208.2724%207.21079L14.0009%2012.9393L19.7294%207.21079Z'%20fill='%23666666'/%3e%3c/svg%3e",d2={class:"jt-confirm-dialog-panel"},p2={class:"jt-confirm-dialog-panel__header"},u2={class:"jt-confirm-dialog-panel__title"},m2={class:"jt-confirm-dialog__body"},f2={class:"jt-confirm-dialog__desc"},h2={class:"jt-confirm-dialog__footer"},g2=e.defineComponent({name:"JtConfirmDialog",__name:"index",props:{title:{default:_.t("common.数据启用提示","数据启用提示")},desc:{default:_.t("common.点击确定后,将启用该条数据","点击确定后,将启用该条数据")},confirmText:{default:_.t("common.确定","确 定")},cancelText:{default:_.t("common.取 消","取 消")},confirmLoading:{type:Boolean,default:!1}},emits:["close","confirm"],setup(d,{emit:t}){const o=t;return(n,s)=>(e.openBlock(),e.createElementBlock("section",d2,[e.createElementVNode("header",p2,[e.createElementVNode("div",u2,[s[3]||(s[3]=e.createElementVNode("img",{class:"jt-confirm-dialog-panel__icon",src:i2,alt:""},null,-1)),e.createElementVNode("span",null,e.toDisplayString(n.title),1)]),e.createElementVNode("img",{onClick:s[0]||(s[0]=i=>o("close")),class:"jt-confirm-dialog-panel__close jt-confirm-dialog-panel__close-icon",src:c2,alt:""})]),e.createElementVNode("div",m2,[e.renderSlot(n.$slots,"default",{},()=>[e.createElementVNode("p",f2,e.toDisplayString(n.desc),1)],!0)]),e.createElementVNode("footer",h2,[e.createVNode(z,{class:"jt-confirm-dialog__button jt-confirm-dialog__button--cancel",size:"middle",gray:"",disabled:n.confirmLoading,onClick:s[1]||(s[1]=i=>o("close"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.cancelText),1)]),_:1},8,["disabled"]),e.createVNode(z,{class:"jt-confirm-dialog__button jt-confirm-dialog__button--confirm",size:"middle",type:"primary",loading:n.confirmLoading,disabled:n.confirmLoading,onClick:s[2]||(s[2]=i=>o("confirm"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.confirmText),1)]),_:1},8,["loading","disabled"])])]))}}),C2=S._export_sfc(g2,[["__scopeId","data-v-e320b303"]]),v2={title:_.t("common.数据启用提示","数据启用提示"),desc:_.t("common.点击确定后,将启用该条数据","点击确定后,将启用该条数据"),confirmText:_.t("common.确认"),cancelText:_.t("common.取消")};function _2(d={}){const t={...v2,...d};return O.ElMessageBox({message:({confirm:o,cancel:n})=>{const s=e.defineComponent({name:"JtConfirmDialogMessage",setup(){const i=e.ref(!1),a=async()=>{if(!i.value){i.value=!0;try{await t.onConfirm?.(),o()}finally{i.value=!1}}};return()=>e.h(C2,{title:t.title,desc:t.desc,confirmText:t.confirmText,cancelText:t.cancelText,confirmLoading:i.value,onClose:n,onConfirm:a},t.content?{default:t.content}:void 0)}});return e.h(s)},customClass:"jt-confirm-message-box-host",customStyle:{width:"517px",maxWidth:"calc(100vw - 40px)"},showClose:!1,showConfirmButton:!1,showCancelButton:!1,distinguishCancelAndClose:!0}).then(()=>"confirm").catch(()=>{throw t.onClose?.(),Error("close 用户手动关闭")})}const y2=["aria-label"],b2={class:"jt-status-stamp__band"},w2=e.defineComponent({name:"JtStatusStamp",__name:"index",props:{status:{}},setup(d){const t=d,o=e.computed(()=>({"pending-start":_.t("common.待发起","待发起"),processing:_.t("common.审批中","审批中"),approved:_.t("common.已通过","已通过"),returned:_.t("common.已退回","已退回"),rejected:_.t("common.已拒绝","已拒绝")})[t.status]);return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["jt-status-stamp",`jt-status-stamp--${n.status}`]),role:"status","aria-label":o.value},[e.createElementVNode("span",b2,[e.renderSlot(n.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.value),1)],!0)])],10,y2))}}),k2=S._export_sfc(w2,[["__scopeId","data-v-887e29c4"]]),ve=Symbol("JtTabContext"),B2={key:0,class:"jt-tab__extra"},x2=4,L2=e.defineComponent({name:"JtTab",__name:"index",props:{modelValue:{},type:{default:"line"},size:{default:"default"},inset:{type:Boolean}},emits:["update:modelValue","change"],setup(d,{emit:t}){const o=d,n=t,s=e.useSlots(),i=e.computed(()=>o.modelValue),a=e.computed(()=>o.type),p=e.computed(()=>o.size),c=e.ref(),l=e.ref(!1),g=e.ref(!1),C=e.computed(()=>[`jt-tab--type-${o.type}`,`jt-tab--size-${o.size}`,{"jt-tab--inset":o.type==="line"&&o.inset!==!1}]);let h=0,B=0,k=!1,u=null,f;function L(v){v!==o.modelValue&&(n("update:modelValue",v),n("change",v))}e.provide(ve,{modelValue:i,type:a,size:p,activate:L});function E(){const v=c.value,T=!!(v&&v.scrollWidth>v.clientWidth);return l.value=T,T}function N(v){const T=c.value;if(!T||!E())return!1;const D=T.querySelector('[data-jt-tab-item="true"][aria-selected="true"]');if(!D)return!1;const F=D.offsetLeft-(T.clientWidth-D.offsetWidth)/2,H=T.scrollWidth-T.clientWidth,R=Math.min(Math.max(F,0),H);return T.scrollTo({left:R,behavior:v}),!0}async function x(v){await e.nextTick(),N(v)}function V(v){v&&u!==null&&v.pointerId!==u||(window.removeEventListener("pointermove",m),window.removeEventListener("pointerup",V),window.removeEventListener("pointercancel",V),u=null,g.value=!1)}function m(v){const T=c.value;if(!T||u!==v.pointerId)return;if(v.pointerType==="mouse"&&v.buttons!==1){V(v);return}const D=v.clientX-h;!k&&Math.abs(D)<x2||(k=!0,g.value=!0,T.scrollLeft=B-D,v.preventDefault())}function b(v){const T=c.value;v.pointerType==="mouse"&&(v.button!==0||v.buttons!==1)||!T||!E()||(u=v.pointerId,h=v.clientX,B=T.scrollLeft,k=!1,g.value=!0,window.addEventListener("pointermove",m),window.addEventListener("pointerup",V),window.addEventListener("pointercancel",V))}function P(v){k&&(v.preventDefault(),v.stopPropagation(),k=!1)}function y(v){const D={ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1}[v.key],F=v.key==="Home",H=v.key==="End";if(!D&&!F&&!H)return;const R=v.currentTarget,I=Array.from(R.querySelectorAll('[data-jt-tab-item="true"]:not([aria-disabled="true"])')),q=I.findIndex(Y=>Y===document.activeElement);if(!I.length)return;v.preventDefault();const Z=F?0:H?I.length-1:(Math.max(q,0)+D+I.length)%I.length,A=I[Z];A?.focus(),A?.click()}return e.watch(()=>o.modelValue,()=>{x("smooth")}),e.onMounted(()=>{E(),x("auto"),!(typeof ResizeObserver>"u"||!c.value)&&(f=new ResizeObserver(()=>{E(),x("auto")}),f.observe(c.value))}),e.onBeforeUnmount(()=>{V(),f?.disconnect()}),(v,T)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["jt-tab",C.value],role:"tablist"},v.$attrs,{onKeydown:y}),[e.createElementVNode("div",{ref_key:"listRef",ref:c,class:e.normalizeClass(["jt-tab__list",{"is-scrollable":l.value,"is-dragging":g.value}]),onPointerdown:b,onClickCapture:P},[e.renderSlot(v.$slots,"default",{},void 0,!0)],34),e.unref(s).extra?(e.openBlock(),e.createElementBlock("div",B2,[e.renderSlot(v.$slots,"extra",{},void 0,!0)])):e.createCommentVNode("",!0)],16))}}),S2=S._export_sfc(L2,[["__scopeId","data-v-28d7f01e"]]),$2=["aria-selected","aria-disabled","tabindex","disabled","onKeydown"],V2=e.defineComponent({name:"JtTabItem",__name:"JtTabItem",props:{value:{},disabled:{type:Boolean,default:!1}},setup(d){const t=d,o=e.inject(ve,null),n=e.computed(()=>o?.modelValue.value===t.value),s=e.computed(()=>t.disabled||!o),i=e.computed(()=>o?.type.value??"line"),a=e.computed(()=>o?.size.value??"default"),p=e.computed(()=>s.value?-1:n.value?0:-1),c=e.computed(()=>[`jt-tab__item--type-${i.value}`,`jt-tab__item--size-${a.value}`,{"is-active":n.value,"is-disabled":s.value}]);function l(){s.value||o?.activate(t.value)}return(g,C)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["jt-tab__item",c.value]),type:"button",role:"tab","data-jt-tab-item":"true","aria-selected":n.value,"aria-disabled":s.value||void 0,tabindex:p.value,disabled:s.value,onClick:l,onKeydown:[e.withKeys(e.withModifiers(l,["prevent"]),["enter"]),e.withKeys(e.withModifiers(l,["prevent"]),["space"])]},[e.renderSlot(g.$slots,"default",{},void 0,!0)],42,$2))}}),E2=S._export_sfc(V2,[["__scopeId","data-v-9da03600"]]),j2="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.41074%208.74375C5.73618%209.06919%206.26382%209.06919%206.58926%208.74375L9.57741%205.7556C10.1024%205.23063%209.73058%204.33301%208.98816%204.33301H3.01184C2.26942%204.33301%201.89762%205.23063%202.42259%205.7556L5.41074%208.74375Z'%20fill='%23E60000'/%3e%3c/svg%3e",T2="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.41074%208.74375C5.73618%209.06919%206.26382%209.06919%206.58926%208.74375L9.57741%205.7556C10.1024%205.23063%209.73058%204.33301%208.98816%204.33301H3.01184C2.26942%204.33301%201.89762%205.23063%202.42259%205.7556L5.41074%208.74375Z'%20fill='%23333333'/%3e%3c/svg%3e",M2="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.91074%206.58926C8.23618%206.26382%208.23618%205.73618%207.91074%205.41074L4.92259%202.42259C4.39762%201.89762%203.5%202.26942%203.5%203.01184L3.5%208.98816C3.5%209.73058%204.39762%2010.1024%204.92259%209.57741L7.91074%206.58926Z'%20fill='%23333333'/%3e%3c/svg%3e",P2={class:"jt-tree__node"},D2=["aria-label","onClick"],F2=["src"],z2={key:1,class:"jt-tree__toggle-placeholder","aria-hidden":"true"},N2={class:"jt-tree__content"},I2={class:"jt-tree__label"},H2=e.defineComponent({name:"JtTree",inheritAttrs:!1,__name:"index",props:{data:{default:()=>[]},currentKey:{},nodeKey:{default:"id"},props:{default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},load:{},indent:{default:20},highlightCurrent:{type:Boolean,default:!0},expandOnClickNode:{type:Boolean,default:!1},ariaLabel:{default:_.t("common.组织树","组织树")}},emits:["update:currentKey","current-change"],setup(d,{expose:t,emit:o}){const n=d,s=o,i=e.ref();function a(h){return h.expanded?h.isCurrent?j2:T2:M2}function p(h){if(h.expanded){h.collapse();return}h.expand()}function c(h,B){const k=B?.key;k!==n.currentKey&&s("update:currentKey",k),s("current-change",h,B)}e.watch(()=>n.currentKey,h=>i.value?.setCurrentKey(h??null),{flush:"post"});function l(h){return i.value?.getNode(h)}function g(){return i.value?.getCurrentNode()}function C(h){i.value?.filter(h)}return t({treeRef:i,getNode:l,getCurrentNode:g,filter:C}),(h,B)=>{const k=j.ElTree;return e.openBlock(),e.createBlock(k,e.mergeProps({ref_key:"treeRef",ref:i,class:"jt-tree"},h.$attrs,{data:n.data,"node-key":n.nodeKey,props:n.props,lazy:n.lazy,load:n.load,indent:n.indent,"current-node-key":n.currentKey,"highlight-current":n.highlightCurrent,"expand-on-click-node":n.expandOnClickNode,"aria-label":n.ariaLabel,onCurrentChange:c}),{default:e.withCtx(({node:u,data:f})=>[e.createElementVNode("div",P2,[u.isLeaf?(e.openBlock(),e.createElementBlock("span",z2)):(e.openBlock(),e.createElementBlock("button",{key:0,class:"jt-tree__toggle",type:"button","aria-label":u.expanded?e.unref(_.t)("common.收起{label}","收起{label}",{label:u.label}):e.unref(_.t)("common.展开{label}","展开{label}",{label:u.label}),onClick:e.withModifiers(L=>p(u),["stop"])},[e.createElementVNode("img",{class:"jt-tree__toggle-icon",src:a(u),alt:"","aria-hidden":"true"},null,8,F2)],8,D2)),e.createElementVNode("div",N2,[e.renderSlot(h.$slots,"default",{node:u,data:f},()=>[e.createElementVNode("span",I2,e.toDisplayString(u.label),1)],!0)]),h.$slots.actions?(e.openBlock(),e.createElementBlock("div",{key:2,class:"jt-tree__actions",onClick:B[0]||(B[0]=e.withModifiers(()=>{},["stop"])),onKeydown:B[1]||(B[1]=e.withModifiers(()=>{},["stop"]))},[e.renderSlot(h.$slots,"actions",{node:u,data:f},void 0,!0)],32)):e.createCommentVNode("",!0)])]),_:3},16,["data","node-key","props","lazy","load","indent","current-node-key","highlight-current","expand-on-click-node","aria-label"])}}}),J2=S._export_sfc(H2,[["__scopeId","data-v-4279b203"]]),O2={key:0,class:"jt-tree-table-layout__tree"},R2={class:"jt-tree-table-layout__content"},Z2=e.defineComponent({name:"JtTreeTableLayout",__name:"index",props:{treeWidth:{default:220},gap:{default:20},collapsed:{type:Boolean,default:!1}},setup(d){const t=d;function o(s){return typeof s=="number"?`${s}px`:s}const n=e.computed(()=>({"--jt-tree-table-layout-tree-width":o(t.treeWidth),"--jt-tree-table-layout-gap":o(t.gap)}));return(s,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["jt-tree-table-layout",{"is-collapsed":t.collapsed}]),style:e.normalizeStyle(n.value)},[t.collapsed?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("aside",O2,[e.renderSlot(s.$slots,"tree",{},void 0,!0)])),e.createElementVNode("div",R2,[e.renderSlot(s.$slots,"default",{},void 0,!0)])],6))}}),A2=S._export_sfc(Z2,[["__scopeId","data-v-28a5e162"]]),W2={class:"jt-page-header__title"},U2={key:0},K2={key:2},G2={key:0,class:"jt-page-header__description"},q2={key:0,class:"jt-page-header__operates"},Y2=e.defineComponent({name:"JtPageHeader",__name:"index",props:{size:{default:"large"},gray:{type:Boolean,default:!0},title:{},description:{},operates:{default:()=>[]}},emits:["operate-click"],setup(d,{emit:t}){const o=d,n=t,s=e.useSlots(),i=e.computed(()=>o.operates.length>0||!!s.operates),a=e.computed(()=>[`jt-page-header--size-${o.size}`,{"jt-page-header--gray":o.gray}]);function p(c,l){c.onClick?.(c,l),n("operate-click",c,l)}return(c,l)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:["jt-page-header",a.value]},c.$attrs),[e.createElementVNode("div",W2,[e.unref(s).title?e.renderSlot(c.$slots,"title",{key:0},()=>[c.title?(e.openBlock(),e.createElementBlock("span",U2,e.toDisplayString(c.title),1)):e.createCommentVNode("",!0)],!0):e.unref(s).default?e.renderSlot(c.$slots,"default",{key:1},void 0,!0):c.title?(e.openBlock(),e.createElementBlock("span",K2,e.toDisplayString(c.title),1)):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"description",{},()=>[c.description?(e.openBlock(),e.createElementBlock("span",G2,e.toDisplayString(c.description),1)):e.createCommentVNode("",!0)],!0)]),i.value?(e.openBlock(),e.createElementBlock("div",q2,[e.renderSlot(c.$slots,"operates",{operates:c.operates},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.operates,g=>(e.openBlock(),e.createBlock(e.unref(z),e.mergeProps({key:g.key??g.label,ref_for:!0},g.buttonProps,{type:g.type,disabled:g.disabled,loading:g.loading,plain:g.plain,text:g.text,link:g.link,icon:g.icon,onClick:C=>p(g,C)}),{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(g.label),1)]),_:2},1040,["type","disabled","loading","plain","text","link","icon","onClick"]))),128))],!0)])):e.createCommentVNode("",!0)],16))}}),X2=S._export_sfc(Y2,[["__scopeId","data-v-6831eb88"]]);exports.getJtLocale=_.getLocale;exports.install=_.install;exports.installLocale=_.installLocale;exports.normalizeLocale=_.normalizeLocale;exports.resetJtLocale=_.resetLocale;exports.setJtLocale=_.setLocale;exports.JtActionMenu=ht;exports.JtAttachmentList=Tt;exports.JtButton=z;exports.JtCard=Ft;exports.JtCascader=ie;exports.JtChoiceCardGroup=Rt;exports.JtCrudTable=ct;exports.JtDatePicker=ce;exports.JtDescriptions=Ut;exports.JtDialog=t2;exports.JtDrawer=l2;exports.JtEmptyState=me;exports.JtFileIcon=Ce;exports.JtFilterBar=ue;exports.JtFormItems=pe;exports.JtInput=U;exports.JtOverflowTooltipText=s2;exports.JtPageHeader=X2;exports.JtPagination=he;exports.JtSelect=de;exports.JtStatusStamp=k2;exports.JtTab=S2;exports.JtTabItem=E2;exports.JtTable=fe;exports.JtTree=J2;exports.JtTreeTableLayout=A2;exports.openJtConfirmDialog=_2;exports.resolveJtFileType=ge;
|