@shaonq/vue 1.6.0 → 1.6.2
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/lib/index.js +1 -1
- package/lib/style.css +21 -0
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"vxe-table";import"vxe-table/lib/style.css";import{computed as t,ref as l,inject as o,defineComponent as a,resolveComponent as n,openBlock as i,createElementBlock as r,Fragment as s,createBlock as u,createCommentVNode as d,renderList as c,withCtx as p,renderSlot as m,mergeProps as v,unref as f,resolveDynamicComponent as h,normalizeStyle as y,toDisplayString as g,shallowRef as b,watch as w,onUnmounted as _,createElementVNode as k,createVNode as z,createTextVNode as x,normalizeProps as C,guardReactiveProps as V,toRefs as M,normalizeClass as S,onMounted as A,reactive as T,provide as E,useAttrs as O,createSlots as R,Teleport as H,isRef as $,markRaw as B,h as L,toRef as D,Transition as P,withDirectives as q,vShow as I,withModifiers as j,nextTick as F}from"vue";import N from"xe-utils";import U from"vuedraggable";import{Message as K,Modal as W,Button as G,useFormItem as J,Tag as Y}from"@arco-design/web-vue";import X from"quill";import"quill/dist/quill.core.css";import"quill/dist/quill.snow.css";import Z from"bwip-js";import Q from"jspdf";import{snapdom as ee}from"@zumer/snapdom";import{formItemInjectionKey as te}from"@arco-design/web-vue/es/form/context";import{hinnn as le,hiprint as oe}from"@shaonq/hiprint";import{hiprint as ae}from"@shaonq/hiprint";import"@shaonq/hiprint/dist/style.css";import ne from"jquery";import ie from"@scena/guides";import{defineStore as re}from"pinia";const se="";function ue(e){return"function"==typeof e}function de(e){return!(!e||"object"!=typeof e||!["setup","props"].some(t=>t in e))}const ce={tf:(e,t)=>{if("number"!=typeof e)return e;if("number"!=typeof t){const l=String(e).split(".");2===l.length&&(t=l[1].length)}return N.commafy(e,{digits:t})},t:e=>N.toDateString(e,"yyyy-MM-dd"),time:(e,t="yyyy-MM-dd HH:mm:ss")=>N.toDateString(e,t),p:(e,t,l="%")=>"number"!=typeof e?e:("number"!=typeof t&&(t=2),(100*e).toFixed(t)+l)};function pe(e,t){var l;const o=null!=(l=e[t.dataIndex])?l:"";if(t.format&&ue(t.format))return t.format(o,e);if(t.dataType)switch(t.dataType){case"number":return"number"!=typeof o?o:ce.tf(o);case"date":return ce.t(o);case"time":return ce.time(o);default:return o}return o}function me(e,t){return ue(t.style)?t.style(e):{...t.style}}function ve(e){return(null==e?void 0:e.rowKey)||"_X_ROW_KEY"}function fe(e,l){return{disabledList:t(()=>({highlight:!0,reserve:e.option.reserve,trigger:e.option.selectedTrigger,checkMethod:({row:e})=>!e.disabled})),selectChangeEvent:({$table:t,checked:o,row:a})=>{if("checkbox"!==e.option.selectedType)return;const{option:n}=e,{fullData:i}=t.getTableData();if(a&&n.checkboxKey){const e=n.checkboxKey,l=i.filter(t=>t[e]&&t[e]===a[e]);l.length&&t.setCheckboxRow(l,o)}const r=t.getCheckboxRecords().concat(t.getCheckboxReserveRecords()),s=ve(e.option);s&&l("update:selectedKeys",r.map(e=>e[s]))},radioChangeEvent:({row:t})=>{if("radio"!==e.option.selectedType)return;const o=[t],a=ve(e.option);a&&l("update:selectedKeys",o.map(e=>e[a]))}}}function he(e){const t=l(Object.create({})),o=e.ref,a={...e,ref:e=>{e&&(t.value=e),"function"==typeof o&&o(e)}},n={getRowKey:()=>ve(e),getRowIndex:e=>t.value.getRowIndex(e),getRowSeq:e=>t.value.getRowSeq(e),getTableData(){var e,l;return t.value&&null!=(l=null==(e=t.value)?void 0:e.getTableData().fullData)?l:[]},setSelectionRow(e,l=!0){t.value&&("checkbox"===a.selectedType&&t.value.setCheckboxRow(e,l),"radio"===a.selectedType&&t.value.setRadioRow(e))},getSelection(){if(t.value){if("checkbox"===a.selectedType)return t.value.getCheckboxRecords();if("radio"===a.selectedType){const e=t.value.getRadioRecord();return e?[e]:[]}return[]}return[]},getReserveSelection(){if(t.value){if("checkbox"===a.selectedType){const l=t.value.getCheckboxRecords();return e.reserve?l.concat(t.value.getCheckboxReserveRecords()):l}if("radio"===a.selectedType){let l=t.value.getRadioRecord();return e.reserve&&!l&&(l=t.value.getRadioReserveRecord()),l?[l]:[]}return[]}return[]},getCheckboxKeySelection(t){const l=e.checkboxKey;t||(t=this.getSelection().map(e=>e[l]));return this.getTableData().filter(e=>t&&t.includes(e[l]))},clearSelection(){t.value&&("checkbox"===a.selectedType&&(e.reserve&&t.value.clearCheckboxReserve(),t.value.clearCheckboxRow()),"radio"===a.selectedType&&(e.reserve&&t.value.clearRadioReserve(),t.value.clearRadioRow()))},insertRow(e,l,o=!0){var a;const n=this.getRowKey();if(l&&"object"==typeof l&&o){const e=t.value.getRowIndex(l);e>=0&&(l=null!=(a=this.getTableData()[e+1])?a:-1)}const i={...e};i[n]&&delete i[n];return t.value.insertAt(i,l)},removeRows(){t.value&&("checkbox"===a.selectedType&&t.value.removeCheckboxRow(),"radio"===a.selectedType&&t.value.removeRadioRow())},removerRowIndex(e){if(t.value){const l=this.getTableData();l.splice(e,1),t.value.reloadData(l)}},async validate(e=void 0){e=null!=e?e:this.getSelection();let l="";const o=await t.value.validate(e);return o&&Object.values(o).forEach(e=>{e.forEach(({rowIndex:e,column:t,rules:o})=>{o.forEach(o=>{l=`\u5e8f\u53f7${e+1} ${t.title} ${o.message}`})})}),[l,e]}};return{tableOption:a,$grid:t,$gridTwo:n}}const ye=Symbol("OrcConfigProvider");function ge(){return o(ye,{useErrData:void 0})}const be={"zh-CN":{stripedTable:"\u8868\u683c\u6591\u9a6c\u7eb9",refresh:"\u5237\u65b0",settings:"\u8bbe\u7f6e",reset:"\u91cd\u7f6e",cancel:"\u53d6\u6d88",confirm:"\u786e\u8ba4",selection:"\u9009 {0} ",totalItems:"\u5171 {0} \u6761",open:"\u5f00",close:"\u5173"},"en-US":{stripedTable:"Striped Table",refresh:"Refresh",settings:"Settings",reset:"Reset",cancel:"Cancel",confirm:"Confirm",selection:"Selected {0} ",totalItems:"Total {0} items",open:"On",close:"Off"},"ja-JP":{stripedTable:"\u30c6\u30fc\u30d6\u30eb\u306e\u7e1e\u6a21\u69d8",refresh:"\u66f4\u65b0",settings:"\u8a2d\u5b9a",reset:"\u30ea\u30bb\u30c3\u30c8",cancel:"\u30ad\u30e3\u30f3\u30bb\u30eb",confirm:"\u78ba\u8a8d",selection:"{0}\u3092\u9078\u629e ",totalItems:"\u5408\u8a08{0}\u4ef6",open:"\u5165",close:"\u5207"}};function we(e){let t=null;return"string"==typeof e&&(t=be[e]||be["zh-CN"]),t||e}function _e(e,t,l){const o=Array.isArray(l)?l:[l],a=String(we(e)[t]);return l?a.replace(/{(\d+)}/g,(e,t)=>o[t]||""):a}const ke={key:0,class:"not-light-text"},ze=a({__name:"columns",props:{columns:{},option:{},tableData:{}},setup(e){const t=e;function l(e,t,l,o){const{dataIndex:a}=e,n=t[a];return{record:t,dataIndex:a,rowIndex:l,columnIndex:o,value:n,updateValue:e=>{e&&"object"==typeof e&&!Array.isArray(e)?Object.assign(t,e):t[a]=e},formatValue:pe(t,e)}}function o(e,t,o,a){const n={...e.cellAttr},i=l(e,t,o,a);return Object.keys(n).forEach(e=>{const t=n[e];if("function"==typeof t)try{n[e]=t(i)}catch(e){}}),n}function a(e,l,o){var a,n;const i=null!=(a=e[l])?a:{},r=null!=(n=e[l-1])?n:{};return("string"==typeof i[o]||"number"==typeof i[o])&&(t.option.skinRow&&"string"==typeof t.option.skinRow?i[t.option.skinRow]===r[t.option.skinRow]&&i[o]===r[o]:i[o]===r[o])}function b(e,l,o){let n={};if(t.option.skinRowStyle)try{n=l>0&&!a(e,l,o)&&t.option.skinRow&&e[l][String(t.option.skinRow)]===e[l-1][String(t.option.skinRow)]?t.option.skinRowStyle:{}}catch(e){}return n}return(t,w)=>{const _=n("vxe-column");return i(),r(s,null,["checkbox"===e.option.selectedType?(i(),u(_,{key:0,type:"checkbox",width:"30",fixed:"left",align:e.option.selectedAlign},null,8,["align"])):"radio"===e.option.selectedType?(i(),u(_,{key:1,type:"radio",width:"30",fixed:"left",align:e.option.selectedAlign},null,8,["align"])):d("",!0),(i(!0),r(s,null,c(e.columns.filter(e=>e.show),(n,c)=>(i(),r(s,{key:c},["index"===n.dataIndex?(i(),u(_,{key:0,type:"seq",field:n.dataIndex,width:n.width,title:n.title,sortable:n.sort,"header-align":n.headerAlign,"footer-align":n.footerAlign,align:n.align,"show-header-overflow":n.tooltip,"show-overflow":n.tooltip,fixed:n.fixed,"tree-node":n.treeNode,"title-prefix":n.help,filters:n.filters,"filter-multiple":n.filterMultiple,"filter-method":n.filterMethod},null,8,["field","width","title","sortable","header-align","footer-align","align","show-header-overflow","show-overflow","fixed","tree-node","title-prefix","filters","filter-multiple","filter-method"])):(i(),u(_,{key:1,field:n.dataIndex,width:n.width,title:n.title,sortable:n.sort,"header-align":n.headerAlign,"footer-align":n.footerAlign,align:n.align,"show-header-overflow":n.tooltip,"show-overflow":n.tooltip,fixed:n.fixed,"tree-node":n.treeNode,"title-prefix":n.help,filters:n.filters,"filter-multiple":n.filterMultiple,"filter-method":n.filterMethod,"edit-render":{enabled:Boolean(n.cell),placeholder:n.placeholder}},{edit:p(({row:e,rowIndex:a,columnIndex:s})=>[Boolean(n.cell)?m(t.$slots,"cell",v({key:0,ref_for:!0},l(n,e,a,s)),()=>[f(de)(n.cell)?(i(),u(h(n.cell),v({key:0,ref_for:!0},o(n,e,a,s)),null,16)):(i(),r("span",{key:1,style:y(f(me)(e,n))},g(f(pe)(e,n)),5))]):d("",!0)]),default:p(({row:d,rowIndex:c,columnIndex:p})=>[n.cell&&n.div?m(t.$slots,"cell",v({key:0,ref_for:!0},l(n,d,c,p)),()=>[f(de)(n.cell)?(i(),u(h(n.cell),v({key:0,ref_for:!0},o(n,d,c,p)),null,16)):(i(),r("span",{key:1,style:y(f(me)(d,n))},g(f(pe)(d,n)),5))]):(i(),r(s,{key:1},[e.option.skinRow&&!n.cell?(i(),r(s,{key:0},[c>0&&a(e.tableData,c,n.dataIndex)&&n.width?(i(),r("span",ke,g(e.option.skinRowText),1)):(i(),r("span",{key:1,style:y(b(e.tableData,c,n.dataIndex))},g(f(pe)(d,n)),5))],64)):(i(),r("span",{key:1,style:y(f(me)(d,n))},g(f(pe)(d,n)),5))],64))]),_:2},1032,["field","width","title","sortable","header-align","footer-align","align","show-header-overflow","show-overflow","fixed","tree-node","title-prefix","filters","filter-multiple","filter-method","edit-render"]))],64))),128))],64)}}}),xe={class:"orc-table"},Ce={class:"arco-card-header-title"},Ve={class:"u-card orc-table__setting"},Me={class:"u-card__hd orc-table__setting-header"},Se={class:"u-card__floor orc-table__setting-body"},Ae={class:"orc-table__draggable"},Te={class:"orc-table__draggable-item"},Ee={key:0,class:"u-flex"},Oe=["title"],Re={key:1,class:"orc-table__draggable-moving"},He={class:"u-card__floor u-flex orc-table__setting-footer"},$e={key:1,class:"orc-table__pagination"},Be={class:"u-flex u-flex--start"},Le={class:"u-flex__item"},De={class:"orc-table__pagination-inner"},Pe=a({__name:"table",props:{title:{},height:{},locale:{default:"zh-CN"},hideToolbar:{type:Boolean},hideSetting:{type:Boolean},hidePagination:{type:Boolean},isHover:{type:Boolean,default:!0},size:{default:"mini"},selectedKeys:{default:()=>[]},data:{default:()=>[]},option:{default:()=>({columns:[]})},hook:{}},emits:["update:selectedKeys","cellClick","onReset","change","confirm","cellDblclick"],setup(e,{expose:o,emit:a}){var c;const h=ge(),y=t(()=>h.useErrData),M=e,S=a,A=(e,t)=>_e(M.locale,e,t),T=t(()=>{const e=M.size;return e?"large"===e?"medium":e:"mini"}),E=t(()=>{var e,t;return null!=(t=null==(e=M.option)?void 0:e.pageSize)?t:20}),O=t(()=>{var e,t;return null!=(t=null==(e=M.option)?void 0:e.pageSizeOptions)?t:[10,20,50,100,200]}),R=l({page:1,size:E.value}),H=l(!1),$=l(!1),B=l(0),L=b(null!=(c=M.data)?c:[]),D=l([]),P=l({}),q=l({loading:!1,columns:[],tempWidth:{}}),{disabledList:I,selectChangeEvent:j,radioChangeEvent:F}=fe(M,S),{$grid:N,$gridTwo:K,tableOption:W}=he(M.option);function G(){const e=[...M.option.columns];return[...ue(M.option.resolveColumns)?M.option.resolveColumns(e):e].filter(Boolean).map(e=>{var t;return e.show=null==(t=e.show)||t,e})}const J=t({get:()=>M.selectedKeys,set:e=>S("update:selectedKeys",e)}),Y=t(()=>Boolean(M.option.url)),X=t(()=>{var e,t,l;return null!=(l=null==(t=(e=M.option).resolvePage)?void 0:t.call(e,R.value))?l:void 0}),Z=t(()=>{const e=G(),t=[...D.value],l=new Map(e.map(e=>[e.dataIndex,e])),o=new Map(t.map(e=>[e.dataIndex,e])),a=t.map(e=>e.dataIndex).filter(e=>l.has(e)),n=e.map(e=>e.dataIndex).filter(Boolean);return[...new Set([...a,...n])].map(e=>{var t;return{...l.get(e),...null!=(t=o.get(e))?t:{}}})});function Q(e=!0){H.value=e}const ee=new AbortController;async function te(){var e,t,l,o,a,n,i,r;if(Y.value){Q(!0);try{const[s,u]=await function(){var e,t;const l=null!=(e=M.option.useErrData)?e:y.value;if("function"!=typeof l)return[!0,{rows:[]}];let o={};X.value&&(o={...X.value});const a={["GET"===String(M.option.method).toUpperCase()?"params":"data"]:{...o,...M.option.data}},n={url:M.option.url,method:null!=(t=M.option.method)?t:"GET",...a,signal:ee.signal};return M.option.timeout&&(n.timeout=M.option.timeout),l(n)}();if(s)ue(M.option.error)&&(null==(r=(i=M.option).error)||r.call(i,u));else{const i=ue(null==(e=M.option)?void 0:e.resolveData)?M.option.resolveData(u,{...R.value}):null!=(l=null!=(t=null==u?void 0:u.rows)?t:u)?l:[];if(!Array.isArray(i))return;L.value=[...i],B.value=ue(M.option.resolveTotal)?M.option.resolveTotal(u):null!=(o=null==u?void 0:u.total)?o:0,ue(M.option.success)&&(null==(n=(a=M.option).success)||n.call(a,u))}}catch(e){}finally{Q(!1)}}}async function le(){H.value||(S("onReset"),Y.value?await te():(Q(!0),await new Promise(e=>{setTimeout(e,99)}),Q(!1)))}function oe(e,t=!1){e&&(R.value.page=e),M.option.reserve&&!t||(J.value=[],K.clearSelection()),te()}async function ae(e){R.value.size=e,oe(1,!0)}function ne(e=!1){P.value&&(e?P.value.togglePanel():P.value.showPanel(),q.value.columns=[...Z.value].map(e=>{const t=q.value.tempWidth[e.dataIndex];return t&&(e.width=t),e}))}function ie(){var e;const t=null==(e=P.value)?void 0:e.hidePanel;"function"==typeof t&&t()}function re(){q.value.loading=!0,D.value=[],q.value.tempWidth={},q.value.columns=G(),ne(),setTimeout(()=>{q.value.loading=!1},500)}function se(e){let t=e.column.property;t||"seq"!==e.column.type||(t="index"),t&&e.column.resizeWidth>0&&(q.value.tempWidth[t]=e.column.resizeWidth,ie())}function de(){var e;P.value&&(D.value=q.value.columns,S("confirm",Z.value),"function"==typeof(null==(e=M.hook)?void 0:e.setColumn)&&M.hook.setColumn(Z.value),q.value.tempWidth={},ie())}return w(()=>M.data,()=>{Y.value||(L.value=[...M.data])},{deep:!0}),w(()=>M.option.firstLoad,e=>{!0===e&&te()}),!1!==M.option.firstLoad&&te(),async function(){var e;if("function"==typeof(null==(e=M.hook)?void 0:e.getColumn)){const[e,t]=await M.hook.getColumn();!e&&t&&(D.value=t)}}(),_(()=>{ee.abort()}),o({loading:H,setLoading:Q,dataInit:e=>(!1!==e&&(R.value.page=1),J.value=[],K.clearSelection(),te()),loadData(e){N.value&&(N.value.reloadData(e),L.value=e)},...K}),(e,t)=>{var l;const o=n("a-switch"),a=n("a-tooltip"),c=n("icon-refresh"),h=n("a-button"),y=n("icon-settings"),b=n("icon-drag-dot-vertical"),w=n("a-checkbox"),_=n("a-input-number"),E=n("a-divider"),D=n("vxe-button"),N=n("vxe-pulldown"),K=n("a-space"),G=n("vxe-toolbar"),X=n("a-empty"),Q=n("a-spin"),ee=n("vxe-table"),te=n("a-pagination");return i(),r("div",xe,[M.hideToolbar?d("",!0):(i(),u(G,{key:0,size:"mini","class-name":"orc-table__toolbar"},{buttons:p(()=>[m(e.$slots,"default",{},()=>[k("div",Ce,g(M.title),1)])]),tools:p(()=>[z(K,{size:"mini"},{default:p(()=>[m(e.$slots,"tools"),z(a,{content:A("stripedTable"),mini:""},{default:p(()=>[z(o,{modelValue:$.value,"onUpdate:modelValue":t[0]||(t[0]=e=>$.value=e),size:"small"},{checked:p(()=>[x(g(A("open")),1)]),unchecked:p(()=>[x(g(A("close")),1)]),_:1},8,["modelValue"])]),_:1},8,["content"]),z(a,{content:A("refresh"),mini:""},{default:p(()=>[z(h,{loading:H.value,size:"small",class:"orc-table__btn orc-table__btn--borderless",onClick:le},{icon:p(()=>[z(c,{size:16})]),_:1},8,["loading"])]),_:1},8,["content"]),M.hideSetting?d("",!0):(i(),u(N,{key:0,ref_key:"settingRef",ref:P,transfer:""},{default:p(()=>[z(a,{content:A("settings"),mini:""},{default:p(()=>[z(h,{size:"small",class:"orc-table__btn orc-table__btn--borderless"},{icon:p(()=>[z(y,{size:16,onClick:t[1]||(t[1]=e=>ne(!0))})]),_:1})]),_:1},8,["content"])]),dropdown:p(()=>[k("div",Ve,[k("div",Me,[k("span",null,g(A("settings")),1),z(a,{content:A("reset"),mini:""},{default:p(()=>[z(h,{size:"small",class:"orc-table__btn orc-table__btn--borderless",loading:q.value.loading,onClick:re},{icon:p(()=>[z(c)]),_:1},8,["loading"])]),_:1},8,["content"])]),k("div",Se,[k("div",Ae,[z(f(U),{list:q.value.columns,class:"orc-table__draggable-list",group:"toolsGroup",animation:"300","drag-class":"orc-table__draggable-drag","ghost-class":"orc-table__draggable-ghost","chosen-class":"orc-table__draggable-chosen","item-key":"id",handle:".orc-table__draggable-moving"},{item:p(({element:e})=>{var t;return[k("div",Te,[e.title?(i(),r("div",Ee,[z(b,{class:"orc-table__draggable-moving"}),z(w,{modelValue:e.show,"onUpdate:modelValue":t=>e.show=t},null,8,["modelValue","onUpdate:modelValue"]),k("label",{class:"u-flex__item u-clamp orc-table__draggable-label",title:e.title},g(e.title),9,Oe),(null==(t=M.hook)?void 0:t.setColumn)?(i(),u(_,{key:0,modelValue:e.width,"onUpdate:modelValue":t=>e.width=t,size:"mini",class:"orc-table__width-input"},null,8,["modelValue","onUpdate:modelValue"])):d("",!0)])):(i(),r("div",Re,[z(E,{margin:6,type:"dashed"})]))])]}),_:1},8,["list"])])]),k("div",He,[z(D,{size:"mini",class:"u-flex__item",type:"text",status:"info",onClick:ie},{default:p(()=>[x(g(A("cancel")),1)]),_:1}),z(D,{size:"mini",class:"u-flex__item",type:"text",status:"primary",onClick:de},{default:p(()=>[x(g(A("confirm")),1)]),_:1})])])]),_:1},512))]),_:3})]),_:3})),z(ee,v({ref:f(W).ref,data:L.value,height:M.height,stripe:$.value,"keep-source":!1,"edit-config":{trigger:"click",mode:"row",showIcon:!1,autoClear:!1,showStatus:!1},"column-config":{isCurrent:!1,resizable:!0},"row-config":{isHover:M.isHover,isCurrent:!1,keyField:M.option.rowKey},"show-overflow":M.option.tooltip||"tooltip","show-header-overflow":M.option.tooltip||"tooltip",size:T.value,loading:H.value,"radio-config":f(I),"checkbox-config":{...f(I),checkField:M.option.checkKey,checkStrictly:M.option.checkStrictly},"header-cell-style":M.option.headerStyle,border:M.option.border,"show-footer":f(ue)(M.option.footerMethod),"footer-method":M.option.footerMethod,"footer-cell-style":M.option.footerStyle,"cell-style":M.option.cellStyle,"merge-footer-items":M.option.mergeFooter,"show-footer-overflow":null==(l=M.option)?void 0:l.footerTooltip,"filter-config":M.option.filterConfig,"edit-rules":f(ue)(M.option.rules)?M.option.rules():M.option.rules,"scroll-y":M.option.scrollY,"scroll-x":M.option.scrollX,"tree-config":M.option.treeConfig},M.option.tableProps,{onCheckboxChange:f(j),onCheckboxAll:f(j),onRadioChange:f(F),onResizableChange:se,onCellClick:t[2]||(t[2]=e=>S("cellClick",e)),onCellDblclick:t[3]||(t[3]=e=>S("cellDblclick",e)),onFooterCellClick:M.option.onFooterCellClick}),{empty:p(()=>[z(X)]),loading:p(()=>[z(Q)]),default:p(()=>[m(e.$slots,"columns",{},()=>[z(ze,{columns:Z.value,option:M.option,"table-data":L.value},{cell:p(t=>[m(e.$slots,"cell",C(V(t)))]),_:3},8,["columns","option","table-data"])])]),_:3},16,["data","height","stripe","row-config","show-overflow","show-header-overflow","size","loading","radio-config","checkbox-config","header-cell-style","border","show-footer","footer-method","footer-cell-style","cell-style","merge-footer-items","show-footer-overflow","filter-config","edit-rules","scroll-y","scroll-x","tree-config","onCheckboxChange","onCheckboxAll","onRadioChange","onFooterCellClick"]),Y.value&&!M.hidePagination?(i(),r("div",$e,[k("div",Be,[k("div",Le,[m(e.$slots,"footer")]),k("div",De,[z(K,{fill:"",direction:"vertical",align:"end"},{default:p(()=>[z(te,{current:R.value.page,"default-page-size":R.value.size,total:B.value,"auto-adjust":!1,size:M.size,"show-total":"","show-page-size":"","page-size-options":O.value,"page-size-props":{triggerProps:{autoFitPopupMinWidth:!0,contentClass:"arco-trigger-content-size-small"}},onPageSizeChange:ae,onChange:oe},{total:p(()=>[J.value.length?(i(),r(s,{key:0},[x(g(A("selection",J.value.length)),1)],64)):d("",!0),B.value?(i(),r(s,{key:1},[x(g(A("totalItems",B.value)),1)],64)):d("",!0)]),_:1},8,["current","default-page-size","total","size","page-size-options"])]),_:1})])])])):d("",!0)])}}}),qe="",Ie=e=>{const t=l({}),o=l([]),{tableOption:a,$grid:n,$gridTwo:i}=he(e),r={rowKey:i.getRowKey(),addKey(t){var l;const r=i.getTableData()[t];if(!r.disabled&&n.value){const t=i.getRowKey();if("checkbox"===a.selectedType){const a=n.value,{fullData:i}=a.getTableData();if(e.checkboxKey){const t=e.checkboxKey,l=i.filter(e=>e[t]&&e[t]===r[t]);l.length&&a.setCheckboxRow(l,!0)}else n.value.setCheckboxRow(r,!0);t&&(o.value=(null!=(l=n.value.getCheckboxRecords())?l:[]).map(e=>e[t]))}"radio"===a.selectedType&&(n.value.setRadioRow(r),n.value.getRadioRecord()&&t&&(o.value=[n.value.getRadioRecord()].map(e=>e[t])))}},setTableData(e){n.value&&n.value.reloadData(e)},setTableRow(t,l,o){if(n.value){const a=i.getTableData();"string"==typeof l?a[t][l]=o:Object.keys({...l}).forEach(e=>{a[t][e]=l[e]}),r.addKey(t),"function"==typeof e.footerMethod&&n.value.updateFooter()}}};return{tableRef:t,tableOptions:a,tableUtils:{...r,...i},$grid:n,selectedKeys:o}};function je(e,t){const{total:l="\u5408\u8ba1",affixIndex:o=1,ignoreIndex:a=2}={...t};return{footerStyle:{fontWeight:"bold"},footerMethod:({columns:t,data:n})=>[t.map((t,i)=>{if(i===o)return l;if(i<a)return null;const r=n.reduce((l,o)=>(((null==e?void 0:e.length)?e.includes(t.field):"number"==typeof o[t.field])&&(l=N.add(null!=l?l:0,o[t.field])),l),null);return null!==r?ce.tf(r):null})]}}function Fe(e){return Object.assign({},e)}function Ne(e){return Object.assign([],e)}function Ue(...e){e.forEach((e,t)=>{})}function Ke(e){return Object.prototype.toString.call(e).slice(8,-1)}function We(e){return Array.isArray(e)}function Ge(e){return"Object"===Ke(e)}function Je(e){return"Number"===Ke(e)&&"NaN"!==String(e)}function Ye(e){return"Object"===Ke(e)&&0===Object.keys(e).length}function Xe(e){return"Array"===Ke(e)&&0===e.length}function Ze(e){return Array.isArray(e)?e:[e]}const Qe=e=>{try{const t=new WeakSet,l=JSON.stringify(e,(e,l)=>{if("object"==typeof l&&null!==l){if(t.has(l))return;t.add(l)}return l});return JSON.parse(l)}catch{return"Array"!==Ke(e)?{}:[]}};function et(e,t=[]){"string"==typeof t&&(t=[t]);const l=Object.create({});return Object.keys(e).forEach(o=>{t.includes(o)||(l[o]=e[o])}),l}function tt(e,t=[]){"string"==typeof t&&(t=[t]);const l=Object.create({});return Object.keys(e).forEach(o=>{t.includes(o)&&(l[o]=e[o])}),l}const lt=()=>(Number(new Date)+Number(String(Math.random()).slice(2,15))).toString(32);function ot(...e){const t=Object.create({});return Qe(e).forEach(e=>{e&&Object.keys(e).forEach(l=>{const o=e[l];"Object"===Ke(o)?t[l]?t[l]=ot(t[l],o):t[l]=ot(o):t[l]=o})}),t}function at(e){return Array.isArray(e)?e:e.replace(/\[/g,".").replace(/\]/g,"").split(".")}function nt(e,t,l){if("object"!=typeof e)return l;const o=at(t).reduce((e,t)=>null==e?void 0:e[t],e);return void 0===o?l:o}function it(e,t,l){return"object"!=typeof e||at(t).reduce((e,t,o,a)=>o===a.length-1?(e[t]=l,e):(e[t]&&"object"==typeof e[t]||(e[t]=/^[0-9]{1,}$/.test(a[o+1])?[]:{}),e[t]),e),e}const rt=(e,t="")=>{if(/(chrome|safari|firefox)/g.test(navigator.userAgent.toLowerCase())){const l=document.createElement("a");if(l.href=e,void 0!==l.download&&(t=t||e.substring(e.lastIndexOf("/")+1,e.length),l.download=t),document.createEvent){const e=document.createEvent("MouseEvents");return e.initEvent("click",!0,!0),l.dispatchEvent(e),!0}}return~e.indexOf("?")||(e+="?download"),window.open(e,"_self"),!0};function st(e){if(e.multiple){const t={...e};return t.defaultValue?"Array"!==Ke(t.defaultValue)&&(t.defaultValue=String(t.defaultValue).split(",")):t.defaultValue=[],t}return e}const ut=(e,t)=>{const l=e.__vccOpts||e;for(const[e,o]of t)l[e]=o;return l},dt={};function ct(e,t){const l=n("a-date-picker"),o=n("a-range-picker");return i(),r("div",null,[!0!==e.$attrs.multiple?(i(),u(l,C(v({key:0},e.$attrs)),null,16)):(i(),u(o,C(v({key:1},e.$attrs)),null,16))])}const pt=ut(dt,[["render",ct]]),mt=Object.freeze(Object.defineProperty({__proto__:null,default:pt},Symbol.toStringTag,{value:"Module"})),vt={};function ft(e,t){const l=n("a-input");return i(),u(l,C(V(e.$attrs)),null,16)}const ht=ut(vt,[["render",ft]]),yt=Object.freeze(Object.defineProperty({__proto__:null,default:ht},Symbol.toStringTag,{value:"Module"})),gt={key:0,class:"u-flex"},bt=a({__name:"Number",props:{modelValue:[Number,Array],multiple:Boolean},emits:["update:model-value"],setup(e,{emit:l}){const o=l,a=e,{modelValue:s}=M(a);function d(e){const t=Ze(null==s?void 0:s.value),l=Number(null==t?void 0:t[e]);return Je(l)?l:void 0}const c=t(()=>d(0)),p=t(()=>d(1));return(t,l)=>{const s=n("a-input-number");return i(),r("span",null,[!0===e.multiple?(i(),r("div",gt,[z(s,v(t.$attrs,{style:{width:"auto"},"model-value":c.value,"onUpdate:modelValue":l[0]||(l[0]=e=>o("update:model-value",[e,p.value]))}),null,16,["model-value"]),l[3]||(l[3]=k("span",{class:"arco-picker-separator",style:{"min-width":"8px"}},"-",-1)),z(s,v(t.$attrs,{style:{width:"auto"},"model-value":p.value,"onUpdate:modelValue":l[1]||(l[1]=e=>o("update:model-value",[c.value,e]))}),null,16,["model-value"])])):(i(),u(s,v({key:1},t.$attrs,{"model-value":Number(a.modelValue),"onUpdate:modelValue":l[2]||(l[2]=e=>o("update:model-value",e))}),null,16,["model-value"]))])}}}),wt=Object.freeze(Object.defineProperty({__proto__:null,default:bt},Symbol.toStringTag,{value:"Module"})),_t={};function kt(e,t){const l=n("a-select");return i(),u(l,v(e.$attrs,{"trigger-props":{autoFitPopupMinWidth:!0,contentClass:"arco-trigger-content-size-small"}}),null,16)}const zt=ut(_t,[["render",kt]]),xt=Object.freeze(Object.defineProperty({__proto__:null,default:zt},Symbol.toStringTag,{value:"Module"})),Ct=Object.assign({"./Date.vue":mt,"./Input.vue":yt,"./Number.vue":wt,"./Select.vue":xt});function Vt(e){var t;return(null!=(t=e.split("/").pop())?t:e).replace(/\.vue$/i,"").toLowerCase()}function Mt(e){if(!e)return ht;const t=String(e).toLowerCase(),l=Object.keys(Ct).find(e=>Vt(e)===t);return l&&Ct[l]?Ct[l].default:ht}const St={"zh-CN":{resetSearch:"\u91cd\u7f6e\u641c\u7d22\u6761\u4ef6",fieldName:"\u5b57\u6bb5\u540d\u79f0",add:"\u6dfb\u52a0",delete:"\u5220\u9664",search:"\u641c\u7d22"},"en-US":{resetSearch:"Reset Search Criteria",fieldName:"Field Name",add:"Add",delete:"Delete",search:"Search"},"ja-JP":{resetSearch:"\u691c\u7d22\u6761\u4ef6\u3092\u30ea\u30bb\u30c3\u30c8",fieldName:"\u30d5\u30a3\u30fc\u30eb\u30c9\u540d",add:"\u8ffd\u52a0",delete:"\u524a\u9664",search:"\u691c\u7d22"}};function At(e){let t=null;return"string"==typeof e&&(t=St[e]||St["zh-CN"]),t||e}function Tt(e,t,l){const o=Array.isArray(l)?l:[l],a=String(At(e)[t]);return l?a.replace(/{(\d+)}/g,(e,t)=>o[t]||""):a}const Et={class:"u-flex u-flex--start"},Ot={class:"u-flex__item"},Rt=a({__name:"search",props:{loading:{type:Boolean},readonly:{type:Boolean},options:{default:()=>[]},modelValue:{default:()=>({})},size:{default:"small"},labelWidth:{default:"76px"},inputWidth:{default:"163px"},locale:{default:"zh-CN"}},emits:["onSearch","update:modelValue"],setup(e,{emit:o}){const a=o,b=e,w=(e,t)=>Tt(b.locale,e,t),_=l();function C(){return Object.assign([],b.options).map(st)}function V(){return C().filter(e=>!1!==e.show)}function M(){const e={};return V().forEach(t=>{e[t.name]=st(t).defaultValue}),e}const A=t(()=>b.size),T=l({...M(),...b.modelValue});const E=l(V());function O(){return Object.assign([],E.value)}const R=l(!1);function H(){_.value&&_.value.clearValidate()}const $=t(()=>C().map(e=>({label:e.label,value:e.name,disabled:O().some(t=>t.name===e.name)})));function B(){const e=Object.keys(T.value).reduce((e,t)=>{const l=T.value[t];return We(l)?e[t]=l.some(e=>!!e)?l.join(","):"":e[t]=l,e},{});return a("update:modelValue",e),e}async function L(){if(_.value){await new Promise(e=>{var t;null==(t=_.value)||t.validate(t=>{var l,o;const a=null==(o=null==(l=Object.values({...t}))?void 0:l[0])?void 0:o.label;a&&K.warning(`\u8bf7\u8f93\u5165${a}`),e(!t)})})&&a("onSearch",B())}}return(e,t)=>{const l=n("icon-refresh"),o=n("a-button"),a=n("a-select"),D=n("a-form-item"),P=n("icon-plus-circle"),q=n("icon-delete"),I=n("a-space"),j=n("a-input-group"),F=n("icon-search"),N=n("a-form");return i(),r("div",{class:S({"shaonq--search":!0,[`shaonq--search-${A.value}`]:!0})},[m(e.$slots,"head"),k("div",Et,[k("div",Ot,[z(I,{size:1,align:"start"},{default:p(()=>[b.readonly?d("",!0):(i(),u(o,{key:0,type:"outline",class:"arco-btn-light",size:A.value,title:w("resetSearch"),loading:R.value,onClick:t[0]||(t[0]=e=>(R.value=!0,E.value=V(),T.value={...M()},void setTimeout(()=>{H(),R.value=!1},200)))},{icon:p(()=>[z(l)]),_:1},8,["size","title","loading"])),z(N,{ref_key:"formRef",ref:_,model:T.value},{default:p(()=>[z(I,{size:A.value,wrap:""},{default:p(()=>[(i(!0),r(s,null,c(E.value,(e,l)=>(i(),u(j,{key:l,size:A.value},{default:p(()=>[z(I,{size:1},{default:p(()=>[b.readonly?(i(),r("div",{key:1,style:y({width:b.labelWidth})},g(e.label),5)):(i(),u(a,{key:0,"model-value":e.name,options:$.value,style:y({width:b.labelWidth}),placeholder:w("fieldName"),"allow-search":"",size:A.value,"trigger-props":{autoFitPopupMinWidth:!0,contentClass:"arco-trigger-content-size-small"},onChange:e=>function(e,t){const l=C().find(e=>e.name===t);l&&(E.value[e]=st(l),T.value[l.name]=E.value[e].defaultValue),T.value=tt(T.value,O().map(e=>e.name)),H()}(l,e)},null,8,["model-value","options","style","placeholder","size","onChange"])),z(D,{"no-style":"",field:e.name,label:e.label,required:e.required,rules:e.rules},{default:p(()=>[(i(),u(h(f(Mt)(e.type)),v({modelValue:T.value[e.name],"onUpdate:modelValue":t=>T.value[e.name]=t,size:A.value,style:{width:b.inputWidth},autocomplete:"off",readonly:!e.name,"allow-clear":""},{ref_for:!0},f(et)(e,["label","defaultValue","type","show"]),{onChange:t[1]||(t[1]=e=>B()),onPressEnter:t[2]||(t[2]=e=>L())}),null,16,["modelValue","onUpdate:modelValue","size","style","readonly"]))]),_:2},1032,["field","label","required","rules"]),b.readonly?d("",!0):(i(),r(s,{key:2},[l?(i(),u(o,{key:1,type:"primary",class:"arco-btn-light",title:w("delete"),size:A.value,onClick:t=>function(e,t){E.value.splice(e,1),delete T.value[t]}(l,e.name)},{icon:p(()=>[z(q)]),_:1},8,["title","size","onClick"])):(i(),u(o,{key:0,type:"primary",class:"arco-btn-light",title:w("add"),size:A.value,onClick:t[3]||(t[3]=e=>{E.value.push({type:"input",name:"",label:""})})},{icon:p(()=>[z(P)]),_:1},8,["title","size"]))],64))]),_:2},1024)]),_:2},1032,["size"]))),128)),m(e.$slots,"default"),z(I,{size:A.value},{default:p(()=>[z(o,{type:"primary",loading:b.loading,title:w("search"),size:A.value,onClick:t[4]||(t[4]=e=>L())},{icon:p(()=>[z(F)]),default:p(()=>[x(" "+g(w("search")),1)]),_:1},8,["loading","title","size"])]),_:1},8,["size"])]),_:3},8,["size"])]),_:3},8,["model"])]),_:3})])])],2)}}}),Ht="";function $t(e,t){const o="function"==typeof e,a=o?e():e,n=l(a),i=l({});return n.value.forEach(e=>{!1!==e.show&&(i.value[e.name]=st(e).defaultValue)}),t&&o&&w(t,()=>{n.value=o?e():e}),[n,i]}const Bt={textarea:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],mini:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["link","video","image"],["clean"]]},Lt=a({__name:"index",props:{modelValue:{type:String,default:""},toolbar:{type:[Array,String],default:"textarea"}},emits:["update:modelValue"],setup(e,{emit:t}){const o=e,a=t,n=l();let s;return A(()=>{n.value&&!s&&(s=new X(n.value,{modules:{toolbar:{container:"string"==typeof o.toolbar?Bt[o.toolbar]||Bt.textarea:o.toolbar,handlers:{}}},theme:"snow"}),s.root.innerHTML=o.modelValue,s.on("text-change",()=>{var e,t;a("update:modelValue",String(null!=(t=null==(e=null==s?void 0:s.root)?void 0:e.innerHTML)?t:""))}))}),_(()=>{s=null}),(e,t)=>(i(),r("div",{ref_key:"divRef",ref:n},null,512))}}),Dt="",Pt=a({__name:"index",props:{useErrData:{}},setup(e){const t=e,{useErrData:l}=M(t),o=T({useErrData:l});return E(ye,o),(e,t)=>m(e.$slots,"default")}});function qt(e,t){const o=l(null!=e?e:{});return[o,l=>{var a;o.value={...e,...null!=l?l:{}},(null==(a=null==t?void 0:t.value)?void 0:a.resetFields)&&t.value.resetFields()}]}function It(e,t,l="warning"){const o=null!=t?t:{okButtonProps:{status:"danger"},okText:"\u5220\u9664"};W[l]({title:"\u5220\u9664\u63d0\u793a",simple:!1,width:360,titleAlign:"start",content:"\u786e\u5b9a\u5220\u9664\u6b64\u6570\u636e\uff1f\u6b64\u64cd\u4f5c\u4e0d\u53ef\u64a4\u9500\u3002",hideCancel:!1,...o,async onOk(t){try{"function"==typeof o.onOk&&await o.onOk(t)}finally{e&&e()}}})}function jt(e,t){const l={...e};return Object.keys(t).forEach(e=>{const o=t[e];if(null==o)return;const a=l[e];null!=a?Array.isArray(a)||Array.isArray(o)?l[e]=[...Ze(a),...Ze(o)]:Ge(a)&&Ge(o)?l[e]=jt(a,o):l[e]=o:l[e]=o}),l}function Ft(e,t){return jt(e,t)}function Nt(e){return new Promise(t=>{setTimeout(t,e)})}function Ut(e,t=5){if(!e.length)return Promise.resolve([]);const l=new Array(e.length),o=e.length;let a=0,n=0,i=0;return new Promise(r=>{function s(e,t){t().then(t=>{l[e]=t}).catch(()=>{l[e]=null}).finally(()=>{n-=1,i+=1,i===o?r(l):setTimeout(()=>u(),0)})}function u(){for(;n<t&&a<e.length;){const t=a,l=e[t];a+=1,n+=1,s(t,l)}}u()})}async function Kt(e,t,l,o){var a;if(!t)throw new Error("downLoadPdf not element");const n=`${e||"\u65b0\u5efa PDF\u6587\u6863"}.pdf`;let i=(null==l?void 0:l.className)?Array.from(t.querySelectorAll(l.className)):[t];i.length||(i=[t]);const r=new Q({unit:"mm",format:"a4",orientation:"portrait",putOnlyUsedFonts:!0,compress:!0,floatPrecision:"smart",...o}),s=i.map(e=>()=>{var t;return ee.toCanvas(e,{scale:null!=(t=null==l?void 0:l.scale)?t:1.3})}),u=await Ut(s,3);if(u.some(e=>null===e))throw new Error("\u751f\u6210\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u662f\u5426\u6709\u4e0d\u53ef\u8bbf\u95ee\u7684\u7f51\u7edc\u8d44\u6e90");const d=u.filter(e=>!!e);let c=0;const p=null!=(a=null==l?void 0:l.paddingBuffer)?a:5,m=d.map((e,t)=>async()=>{t>0&&r.addPage();const o=e.width/210,a=e.height/o;if(a<=297)r.addImage(e,"PNG",0,0,210,a);else{let t=a,l=0;for(;t>p;)r.addImage(e,"PNG",0,l,210,a),t-=297,l-=297,t>p&&r.addPage()}c+=1,"function"==typeof(null==l?void 0:l.progress)&&l.progress(c,d.length)});await Ut(m),r.save(n)}function Wt(e){var t,l,o,a,n,i;if(!e.bcid)return"";const r=document.createElement("canvas");return r.height=1,r.width=1,Z.toCanvas(r,{bcid:e.bcid,text:null!=(t=e.defaultValue)?t:"Unknown",height:e.height,scaleX:null!=(o=null!=(l=e.scaleX)?l:e.scale)?o:2,scaleY:null!=(n=null!=(a=e.scaleY)?a:e.scale)?n:2,width:e.width,padding:null!=(i=e.padding)?i:0,..."qrcode"===e.bcid?{eclevel:"H"}:{}}),r.toDataURL()}function Gt(e,t,l){const o={...e.componentAttr};return"string"==typeof e.type||"modelValue"in o||(o.modelValue=t=>{var l;return null!=(l=t.getModel(t.model))?l:e.defaultValue},o.updateModelValue=e=>t=>e.setModel(e.model,t)),Object.entries(o).forEach(([e,a])=>{if("function"==typeof a&&t)try{o[e]=a(t,l)}catch{}}),o}function Jt(e){return e?"string"==typeof e?e.split(","):[...e]:[]}function Yt(e){return Jt(e).join(",")}const Xt=a({__name:"form",props:{config:{default:()=>[]},labelWidth:{default:"110px"},labelAlign:{default:"right"},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},hideSubmit:{type:Boolean,default:!1},modelValue:{default:void 0},gutter:{default:8},span:{default:24},formAttr:{default:void 0},grid:{default:void 0}},emits:["update:modelValue","submit","error"],setup(e,{expose:t,emit:o}){const a=e;function y(e){const t={...e};return a.config.forEach(e=>{e.dotNotation&&e.model&&(t[e.model]=Jt(t[e.model]))}),t}function g(e){const t={...e};return a.config.forEach(e=>{e.dotNotation&&e.model&&(t[e.model]=Yt(t[e.model]))}),t}const b=o,_=l(),k={},C=e=>"string"==typeof e&&/^a-(input|textarea)(-.+)?$/.test(e),V=e=>"string"==typeof e&&/^a-(select|tree-select|date-picker|time-picker|cascader)(-.+)?$/.test(e),M=e=>C(e.type)?{autocomplete:"new-password"}:null;function S(e){return Object.fromEntries(Object.values(a.config).filter(e=>e.model).map(t=>{var l;return[t.model,e?e(t):null!=(l=t.defaultValue)?l:null]}))}const[T,E]=qt(S(e=>{var t,l;return null!=(l=null==(t=null==e?void 0:e.options)?void 0:t.options)?l:[]})),[O]=qt(S(e=>!1!==(null==e?void 0:e.show))),[R,H]=qt(y({...S(),...a.modelValue}),_);function $(e){return e.model?O.value[e.model]:!1!==e.show}function B(){var e,t;const l=g(R.value);b("update:modelValue",{...S(),...l}),"function"==typeof(null==(e=_.value)?void 0:e.validate)&&(null==(t=_.value)||t.validate())}function L(e){if(e.customClass)return"function"==typeof e.customClass?e.customClass(e,R.value):e.customClass}B();const D={getModelOption(e,t){const l=T.value[e];return t?null==l?void 0:l.find(e=>e.value===t):l},getModels:()=>R.value,getModel:e=>R.value[e],getShow:e=>O.value[e],setModelOption(e,t){T.value[e]=t},setModel(e,t){e&&("string"==typeof e?R.value[e]=t:R.value={...R.value,...e},B())},setShow(e,t){(Array.isArray(e)?e:[e]).forEach(e=>{O.value[e]=t})}},P=e=>({...D,model:e.model,...e.events,getFormItem:()=>e}),q=({options:e})=>a.disabled||!!(null==e?void 0:e.disabled),I=new Map,j=e=>{const{options:t,rules:l,name:o}=e;if("function"==typeof l)return l({...e},P(e));if(l)return l;if(!(null==t?void 0:t.required))return[];return(e=>{let t=I.get(e);return t||(t=[{required:!0,message:e}],I.set(e,t)),t})("string"==typeof e.type?`\u8bf7${C(e.type)?"\u8f93\u5165":"\u9009\u62e9"}${o}`:`${o}\u5fc5\u586b`)},{setModel:F,setModelOption:N}=D;async function U(){const e=await a.config.reduce(async(e,t)=>{if(await e)return e;const l=k[t.model];if(l&&"function"==typeof l.validate){const[e]=await l.validate();if(e)return b("error",`${t.name}: ${e}`),e}return""},Promise.resolve(""));return e?[!0,e]:new Promise(e=>{_.value.validate(t=>{if(t)e([!0,t]),b("error",t);else{const t=g(R.value);e([!1,t]),b("update:modelValue",t),b("submit",t)}})})}return w(()=>a.modelValue,()=>{R.value=y({...S(),...a.modelValue})},{deep:!1,immediate:!0}),w(()=>a.config,()=>{O.value=S(e=>!1!==(null==e?void 0:e.show))}),A(()=>{H(),E(),a.config.forEach(async e=>{var t;if("function"==typeof(null==(t=null==e?void 0:e.events)?void 0:t.onMounted)){const t=await e.events.onMounted(P(e));t&&e.model&&N(e.model,t)}})}),t({onSubmit:U,onReset:H,resetFields:function(){var e,t;"function"==typeof(null==(e=_.value)?void 0:e.resetFields)&&(null==(t=_.value)||t.resetFields())}}),(e,t)=>{const l=n("a-form-item"),o=n("a-col"),y=n("a-row"),g=n("icon-save"),b=n("a-button"),w=n("a-space"),S=n("a-form");return i(),u(S,v({ref_key:"formRef",ref:_,model:f(R),"label-col-props":{flex:a.labelWidth},"label-col-style":{paddingRight:"8px"},disabled:a.disabled,"label-align":a.labelAlign,class:"orc-form"},a.formAttr,{size:"small"}),{default:p(()=>[z(y,{gutter:a.gutter},{default:p(()=>[(i(!0),r(s,null,c(a.config,(t,n)=>{var c,y;return i(),r(s,{key:n},[$(t)?(i(),u(o,v({key:0,ref_for:!0},a.grid,{span:(null==(c=t.options)?void 0:c.span)||a.span,offset:null==(y=t.options)?void 0:y.offset}),{default:p(()=>{var o,n;return[z(l,v({field:t.model,"row-class":L(t),label:t.name,"validate-trigger":t.validateTrigger,rules:j(t),disabled:q(t),help:null==(o=t.options)?void 0:o.help,tooltip:null==(n=t.options)?void 0:n.tooltip,"label-col-flex":a.labelWidth,"asterisk-position":"right"===a.labelAlign?"start":"end"},{ref_for:!0},t.itemAttr),{default:p(()=>{return[m(e.$slots,t.model,v({utils:P(t),componentAttr:f(Gt)(t,P(t))},{ref_for:!0},{...t.model?{value:f(R)[t.model],setValue:(l=t.model,e=>F(l,e)),options:f(T)[t.model]}:{}},{disabled:q(t)}),()=>{var e,l;return[(i(),u(h(t.type),v({ref_for:!0,ref:e=>{e&&t.model&&(k[t.model]=e)},size:"small","input-attrs":M(t),placeholder:(null==(e=null==t?void 0:t.options)?void 0:e.placeholder)||(l=t.type,C(l)?"\u8bf7\u8f93\u5165":V(l)?"\u8bf7\u9009\u62e9":void 0),disabled:q(t),style:"string"!=typeof t.type||C(t.type)||V(t.type)?{width:"100%"}:{}},{ref_for:!0},{...t.model?{modelValue:f(R)[t.model],options:f(T)[t.model]}:{},...f(Gt)(t,P(t)),..."string"!=typeof t.type?{utils:P(t)}:{}},{onChange:e=>async function(e,t){var l;"function"==typeof(null==(l=t.events)?void 0:l.onChange)&&await t.events.onChange(e,P(t))}(e,t),"onUpdate:modelValue":e=>f(F)(`${t.model}`,e)}),null,16,["input-attrs","placeholder","disabled","style","onChange","onUpdate:modelValue"]))]})];var l}),_:2},1040,["field","row-class","label","validate-trigger","rules","disabled","help","tooltip","label-col-flex","asterisk-position"])]}),_:2},1040,["span","offset"])):d("",!0)],64)}),128)),m(e.$slots,"row",{onSubmit:U})]),_:3},8,["gutter"]),m(e.$slots,"default",{onSubmit:U},()=>[a.hideSubmit?d("",!0):(i(),u(l,{key:0},{default:p(()=>[z(w,null,{default:p(()=>[z(b,{type:"primary",loading:a.loading,onClick:t[0]||(t[0]=e=>U())},{icon:p(()=>[z(g)]),default:p(()=>[t[1]||(t[1]=x(" \u4fdd\u5b58 ",-1))]),_:1},8,["loading"])]),_:1})]),_:1}))])]),_:3},16,["model","label-col-props","disabled","label-align"])}}}),Zt=a({__name:"modal-form",props:{isView:{type:Boolean},disabled:{type:Boolean},title:{default:"\u4fe1\u606f"},span:{},gutter:{default:8},size:{default:"small"},config:{},modelValue:{default:void 0},labelWidth:{},buttonAttrs:{},modalAttrs:{}},emits:["update:modelValue","submit","error"],setup(e,{expose:o,emit:a}){const r=e,s=a,[d,c]=qt({}),y=()=>c({visible:!0,loading:!1}),b=()=>c({visible:!1}),w=O(),_=t(()=>{const e=tt(w,["class","style"]);return r.isView?e:{...e,disabled:r.disabled,type:"primary",size:r.size,...r.buttonAttrs,onClick:y}}),k=t(()=>et(r,["buttonAttrs","modalAttrs","title"])),M=l();async function S(){const[e,t]=await M.value.onSubmit();e||s("submit",{data:t,utils:{setVisible(e){d.value.visible=e},setLoading(e){d.value.loading=e},resetFields(){var e,t;null==(t=null==(e=M.value)?void 0:e.resetFields)||t.call(e)}}})}return o({openModal:y,hideModal:b,onSubmit:S}),(e,t)=>{const l=n("a-button"),o=n("a-modal");return i(),u(h(r.isView?"div":f(G)),C(V(_.value)),R({default:p(()=>[m(e.$slots,"default",{onSubmit:S,onShow:y},()=>[x(g(r.title),1)]),(i(),u(H,{to:"body"},[z(o,v({visible:f(d).visible,title:r.title,"title-align":"start","mask-closable":!1,class:"orc-form--modal","body-style":{minHeight:"280px"},"unmount-on-close":""},r.modalAttrs,{onCancel:b}),{footer:p(()=>[m(e.$slots,"footer",{onShow:y,onHide:b},()=>[z(l,{size:r.size,onClick:b},{default:p(()=>[...t[2]||(t[2]=[x("\u53d6\u6d88",-1)])]),_:1},8,["size"]),z(l,{type:"primary",size:r.size,loading:f(d).loading,onClick:S},{default:p(()=>[...t[3]||(t[3]=[x("\u786e\u8ba4",-1)])]),_:1},8,["size","loading"])])]),default:p(()=>[z(Xt,v({ref_key:"formRef",ref:M,"hide-submit":"","label-align":"left"},k.value,{onError:t[0]||(t[0]=e=>s("error",e)),"onUpdate:modelValue":t[1]||(t[1]=e=>s("update:modelValue",e))}),{row:p(()=>[m(e.$slots,"row",{onShow:y})]),_:3},16)]),_:3},16,["visible","title"])]))]),_:2},[!r.isView&&e.$slots.icon?{name:"icon",fn:p(()=>[m(e.$slots,"icon")]),key:"0"}:void 0]),1040)}}}),Qt=a({__name:"space",setup:e=>(E(te,{...o(te),error:!1}),(e,t)=>(i(),r("div",null,[m(e.$slots,"default")])))}),el="_X_ROW_KEY",tl=a({__name:"table",props:{size:{default:"mini"},modelValue:{default:void 0},updateModelValue:{},height:{default:180},options:{default:void 0},hideTools:{type:Boolean,default:!1},hideSeq:{type:Boolean},disabled:{type:Boolean},selectedKeys:{default:void 0},rowKey:{default:el},tableOptions:{default:void 0},utils:{}},emits:["reset","cellClick","update:selectedKeys"],setup(e,{expose:o,emit:a}){var y;const b=l(),w=e,_=a,k=l(null!=(y=w.selectedKeys)?y:[]),C=T({}),V=t(()=>{var e;return(null!=(e=w.options)?e:[]).map(e=>{var t,l,o,a;return{...e,dataIndex:null!=(l=null!=(t=e.dataIndex)?t:e.model)?l:"",model:null!=(a=null!=(o=e.model)?o:e.dataIndex)?a:""}})});function M(){var e;return null!=(e=w.modelValue)?e:[]}function S(e){"function"==typeof w.updateModelValue&&w.updateModelValue(e)}const E=e=>{var t;return w.disabled||!!(null==(t=null==e?void 0:e.options)?void 0:t.disabled)};async function O(e,t,l){if(t){const{rowIndex:o}=e,a=V.value.find(e=>e.model===t);a&&await async function(e,t){var l;w.utils&&"function"==typeof(null==(l=t.events)?void 0:l.onChange)&&await t.events.onChange(e,w.utils)}([l,e],a);const n=[...M()];n[o]={...n[o],[t]:l},S(n)}}return A(()=>{V.value.forEach(async e=>{var t;if("function"==typeof(null==(t=null==e?void 0:e.events)?void 0:t.onMounted)&&e.model&&w.utils){const t=await e.events.onMounted(w.utils);t&&(C[e.model]=t)}})}),o({async validate(){var e;return(null==(e=b.value)?void 0:e.validate)?b.value.validate(M()):["",[]]}}),(e,t)=>{const l=n("a-link"),o=n("a-button-group"),a=n("a-space"),y=n("vxe-column");return i(),u(f(Pe),{ref_key:"tableRef",ref:b,"selected-keys":k.value,"onUpdate:selectedKeys":t[2]||(t[2]=e=>k.value=e),class:"orc-vxe--static",data:M(),height:w.height,size:w.size,option:{rowKey:w.rowKey,selectedType:"checkbox",scrollX:{enabled:!0},scrollY:{enabled:!0},columns:[],...w.tableOptions},"hide-setting":"","hide-pagination":"",onCellClick:t[3]||(t[3]=e=>_("cellClick",e)),onOnReset:t[4]||(t[4]=e=>_("reset"))},{columns:p(()=>[!0!==w.hideTools?(i(),u(y,{key:0,type:"checkbox",width:"28"})):d("",!0),!0!==w.hideSeq?(i(),u(y,{key:1,type:"seq",title:"\u5e8f",width:"28",align:!0===w.hideTools?"center":"left","show-overflow":""},null,8,["align"])):d("",!0),(i(!0),r(s,null,c(V.value,(t,l)=>{var o;return i(),r(s,{key:l},[!1!==t.show?(i(),u(y,{key:0,field:t.model,title:t.name,width:t.width,align:t.align,"show-overflow":t.tooltip,"show-header-overflow":t.tooltip,"title-prefix":(null==(o=t.options)?void 0:o.required)?{icon:"vxe-cell--required-icon"}:void 0,sortable:t.sort,fixed:t.fixed},R({_:2},[!1!==t.div?{name:"default",fn:p(l=>[m(e.$slots,t.model,{row:l.row,model:t.model},()=>[!t.type&&t.model?(i(),r("span",v({key:0,style:f(me)(l.row,t)},{ref_for:!0},f(Gt)(t,w.utils,l)),g(f(pe)(l.row,t)),17)):(i(),u(h(t.type),v({key:1,size:"mini"},{ref_for:!0},{...t.model?{"model-value":l.row[t.model],options:C[t.model]}:{},...f(Gt)(t,w.utils,l)},{disabled:E(t),"onUpdate:modelValue":e=>O(l,t.model,e)}),null,16,["disabled","onUpdate:modelValue"]))])]),key:"0"}:void 0]),1032,["field","title","width","align","show-overflow","show-header-overflow","title-prefix","sortable","fixed"])):d("",!0)],64)}),128)),V.value.some(e=>"other"===e.model)?d("",!0):(i(),u(y,{key:2,field:"other"}))]),default:p(()=>[z(a,{size:w.size},{default:p(()=>[!0!==w.hideTools?m(e.$slots,"default",{key:0},()=>[E()?d("",!0):(i(),u(o,{key:0,size:w.size},{default:p(()=>[z(l,{type:"text",onClick:t[0]||(t[0]=e=>(()=>{const e=V.value.reduce((e,t)=>{var l;return t.model&&(e[t.model]=null!=(l=t.defaultValue)?l:null),e},{}),t=[...M()];t.push(e),S(t)})())},{default:p(()=>[...t[5]||(t[5]=[x("\u65b0\u589e",-1)])]),_:1}),z(l,{type:"text",status:"danger",disabled:!k.value.length,onClick:t[1]||(t[1]=e=>(S([...M()].filter(e=>!k.value.includes(e[w.rowKey]))),k.value=[],void _("update:selectedKeys",k.value)))},{default:p(()=>[...t[6]||(t[6]=[x("\u5220\u9664",-1)])]),_:1},8,["disabled"])]),_:1},8,["size"]))]):d("",!0),m(e.$slots,"title")]),_:3},8,["size"])]),_:3},8,["selected-keys","data","height","size","option"])}}}),ll="",ol=a({__name:"popup",props:{disabled:{type:Boolean,default:void 0},title:{default:"\u8bf7\u9009\u62e9"},size:{default:"small"},modelValue:{default:void 0},nameKey:{},options:{},pagination:{type:Boolean},keyword:{default:"keyword"},tableData:{},modalAttrs:{},tableAttrs:{},inputAttrs:{}},emits:["update:modelValue","change"],setup(e,{emit:l}){const o=e,{mergedDisabled:a,eventHandlers:r}=J(),s=t(()=>{var e;return null!=(e=o.disabled)?e:a.value}),c=l,[h,y]=qt({visible:!1,keyword:""});function g(){s.value||y({visible:!0})}const b=()=>y({visible:!1}),{tableRef:w,selectedKeys:_,tableOptions:k}=Ie(o.options);function C(e){const t={[o.keyword]:h.value.keyword,page:e};return"function"==typeof(null==k?void 0:k.resolvePage)&&k.resolvePage(t)?k.resolvePage(t):t}function V(){var e;null==(e=w.value)||e.dataInit()}function M(e){var t,l;const a=Yt(e.map(e=>{var t;return e[null!=(t=o.nameKey)?t:"name"]}));c("update:modelValue",a),c("change",{name:a,data:[...e]}),null==(l=null==(t=r.value)?void 0:t.onChange)||l.call(t),b()}function S({row:e}){"radio"===o.options.selectedType&&M([e])}return(t,l)=>{const a=n("a-input-search"),r=n("a-button");return i(),u(Qt,null,{default:p(()=>[m(t.$slots,"default",{value:o.modelValue,disabled:s.value,onShow:g},()=>[z(a,{size:o.size,"model-value":o.modelValue,readonly:"",style:{cursor:"pointer"},onClick:g},null,8,["size","model-value"])]),(i(),u(H,{to:"body"},[z(f(W),v({visible:f(h).visible,title:e.title,"title-align":"start","mask-closable":!1,size:o.size,"body-style":{padding:"0 0 12px 0"},width:750,footer:!0,"unmount-on-close":""},o.modalAttrs,{onCancel:b,onClose:b}),{footer:p(()=>[z(r,{size:o.size,onClick:l[2]||(l[2]=e=>b())},{default:p(()=>[...l[4]||(l[4]=[x("\u53d6\u6d88",-1)])]),_:1},8,["size"]),z(r,{type:"primary",size:o.size,disabled:!f(_).length,onClick:l[3]||(l[3]=e=>M(f(w).getSelection()))},{default:p(()=>[...l[5]||(l[5]=[x("\u786e\u8ba4",-1)])]),_:1},8,["size","disabled"])]),default:p(()=>{var e;return[z(f(Pe),v({ref_key:"tableRef",ref:w,"selected-keys":f(_),"onUpdate:selectedKeys":l[1]||(l[1]=e=>$(_)?_.value=e:null),data:null!=(e=o.tableData)?e:[],"hide-setting":"",option:{...f(k),resolvePage:C},height:330,size:o.size,"hide-pagination":!o.pagination},o.tableAttrs,{onCellDblclick:S}),{default:p(()=>[o.pagination?(i(),u(a,v({key:0,modelValue:f(h).keyword,"onUpdate:modelValue":l[0]||(l[0]=e=>f(h).keyword=e),style:{width:"192px"},placeholder:"\u6a21\u7cca\u641c\u7d22","allow-clear":"",size:o.size},o.inputAttrs,{onSearch:V}),null,16,["modelValue","size"])):d("",!0)]),_:1},16,["selected-keys","data","option","size","hide-pagination"])]}),_:1},16,["visible","title","size"])]))]),_:3})}}});function al(e){return B(e)}const nl=al(tl),il=al(ol),rl=a({__name:"index",props:{isShow:{type:Boolean},isDirection:{type:Boolean},formProps:{}},setup(e){const t=l();return(l,o)=>(i(),r("div",{style:y(e.isShow?{display:"block"}:{position:"absolute",clip:"rect(0px, 0px, 0px, 0px)",height:"0px",overflow:"auto"})},[k("div",v({ref_key:"print$",ref:t,style:[{position:"relative",width:"100%"},{maxWidth:e.isDirection?"297mm":"210mm"}]},e.formProps),[m(l.$slots,"default")],16)],4))}}),sl='window._iconfont_svg_string_4872361=\'<svg><symbol id="icon-scale" viewBox="0 0 1024 1024"><path d="M872.832 758.016h0.384v-2.368l-0.384 2.368z m-44.928-648.128l-245.376 0.128a27.648 27.648 0 0 0-7.808-0.128H196.096a86.4 86.4 0 0 0-86.272 86.272v631.872a86.4 86.4 0 0 0 86.272 86.272h149.12a86.4 86.4 0 0 0 86.272-86.272V416.96h421.056c1.856 0-1.92-0.128 0-0.512 31.808 1.984 61.632-26.24 61.632-56.32V196.224a86.4 86.4 0 0 0-86.272-86.272z m30.208 216.192c3.52 35.904-40.128 32.448-40.128 32.448H398.592c-1.792 0.64-3.264 1.408-4.864 2.048l-2.176 0.896c-10.048 4.864-16.128 12.096-16.128 25.28v437.12c0 18.944-15.424 34.304-34.304 34.304H200.192a34.304 34.304 0 0 1-34.24-34.304v-77.76h139.456a29.248 29.248 0 0 0 0-58.432h-139.52V592.576h95.616a29.312 29.312 0 0 0 0-58.496H165.952V438.976h139.456a29.248 29.248 0 0 0 0-58.496h-139.52V200.32c0-18.88 15.36-34.304 34.304-34.304h173.12v103.68c0 16.64 13.056 30.08 29.248 30.08 16.128 0 29.248-13.44 29.248-30.08v-103.68h117.056v81.792c0 16.512 13.12 30.016 29.184 30.016 16.128 0 29.248-13.44 29.248-30.08V166.08h95.104v103.68c0 16.64 13.184 30.08 29.248 30.08 16.128 0 29.184-13.44 29.184-30.08v-103.68h62.976c18.88 0 34.304 15.36 34.304 34.304v125.76z" fill="#525354" ></path></symbol><symbol id="icon-baocun" viewBox="0 0 1024 1024"><path d="M919.466667 264.533333V832c0 46.933333-38.4 85.333333-85.333334 85.333333h-640c-46.933333 0-85.333333-38.4-85.333333-85.333333V192c0-46.933333 38.4-85.333333 85.333333-85.333333h567.466667c6.4 0 10.666667 2.133333 14.933333 6.4l136.533334 136.533333c4.266667 4.266667 6.4 8.533333 6.4 14.933333z" fill="#1890FF" ></path><path d="M322.133333 106.666667h384v213.333333h-384zM258.133333 640h512v277.333333h-512z" fill="#FFFFFF" ></path><path d="M599.466667 149.333333h64v128h-64zM364.8 725.333333h298.666667v21.333334h-298.666667zM364.8 810.666667h298.666667v21.333333h-298.666667z" fill="#69C0FF" ></path></symbol><symbol id="icon-zidingyi" viewBox="0 0 1024 1024"><path d="M727.008 487.232l194.016-184.32a99.2 99.2 0 0 0 0-140.288l-48.416-48.416a99.2 99.2 0 0 0-138.464-1.76L544.64 292.384l-184.064-196.64-1.504-1.568a64.832 64.832 0 0 0-91.712-0.384L129.184 231.968a64.8 64.8 0 0 0-1.12 90.144l181.344 193.728-171.456 162.88a99.264 99.264 0 0 0-28.256 49.28l-28.992 123.744a65.632 65.632 0 0 0 82.4 77.92l119.296-35.136a99.744 99.744 0 0 0 40.32-23.232l169.056-160.608 203.616 217.536 1.504 1.568a64.832 64.832 0 0 0 91.712 0.384l138.176-138.176a64.8 64.8 0 0 0 1.12-90.144l-200.896-214.624zM319.424 786.176l-90.112-90.112a31.488 31.488 0 0 0-9.792-6.496L667.104 264.352l94.272 94.272c1.408 1.408 3.168 2.08 4.768 3.168L319.424 786.176zM778.208 158.784a35.2 35.2 0 0 1 49.12 0.64l48.416 48.416c13.76 13.76 13.76 36.032-0.64 50.4l-64.448 61.216c-1.28-2.08-2.24-4.288-4.064-6.112l-93.12-93.12 64.736-61.44zM288.512 399.904c8-0.128 16-3.168 22.112-9.28l48-48a31.968 31.968 0 1 0-45.248-45.248l-48 48a31.68 31.68 0 0 0-8.928 20.256L174.816 278.4c-0.512-0.512-0.512-1.024-0.352-1.152L312.64 139.04c0.128-0.128 0.672-0.128 1.248 0.416l184.384 196.992-142.432 135.328-67.328-71.872zM145.024 868.288a1.6 1.6 0 0 1-2.016-1.92l28.992-123.744c0.992-4.16 2.944-7.968 5.312-11.488a31.808 31.808 0 0 0 6.752 10.144l88.288 88.288a35.072 35.072 0 0 1-8 3.552l-119.328 35.168z m598.336 16.672c-0.128 0.128-0.672 0.128-1.248-0.416l-125.6-134.176a31.232 31.232 0 0 0 14.08-7.712l48-48a31.968 31.968 0 1 0-45.248-45.248l-48 48a31.68 31.68 0 0 0-7.296 11.904l-39.904-42.656 142.432-135.328 200.576 214.304c0.48 0.512 0.48 1.024 0.352 1.152l-138.144 138.176z" ></path></symbol><symbol id="icon-24gl-formatClear" viewBox="0 0 1024 1024"><path d="M960 938.666667a21.266667 21.266667 0 0 1-15.086667-6.246667L853.333333 840.833333l-91.58 91.586667a21.333333 21.333333 0 0 1-30.173333-30.173333L823.166667 810.666667l-91.586667-91.58a21.333333 21.333333 0 0 1 30.173333-30.173334L853.333333 780.5l91.58-91.586667a21.333333 21.333333 0 0 1 30.173334 30.173334L883.5 810.666667l91.586667 91.58A21.333333 21.333333 0 0 1 960 938.666667z m-384-128H64a21.333333 21.333333 0 0 1 0-42.666667h512a21.333333 21.333333 0 0 1 0 42.666667z m-256-128a21.893333 21.893333 0 0 1-3.4-0.266667 21.333333 21.333333 0 0 1-17.693333-24.44L383.726667 128H149.333333a21.333333 21.333333 0 0 1 0-42.666667h512a21.333333 21.333333 0 0 1 0 42.666667H426.666667a21.493333 21.493333 0 0 1-0.266667 3.373333l-85.333333 533.333334A21.333333 21.333333 0 0 1 320 682.666667z" ></path></symbol><symbol id="icon-qrcode" viewBox="0 0 1025 1024"><path d="M391.64878063 106.92682906v269.73658594c0 8.24195156-6.743415 14.98536563-14.98536563 14.98536562H106.92682906c-8.24195156 0-14.98536563-6.743415-14.98536562-14.98536562V106.92682906c0-8.24195156 6.743415-14.98536563 14.98536562-14.98536562h269.73658594c8.24195156 0 14.98536563 6.743415 14.98536562 14.98536562zM91.94146344 32C58.88 32 32 58.88 32 91.94146344v299.70731719c0 33.06146344 26.88 59.94146344 59.94146344 59.94146343h299.70731719c33.06146344 0 59.94146344-26.88 59.94146343-59.94146343V91.94146344c0-33.06146344-26.88-59.94146344-59.94146343-59.94146344H91.94146344z" ></path><path d="M271.76585375 215.57073125v52.44878062c0 2.06048813-1.68585375 3.74634187-3.74634187 3.74634188h-52.44878063c-2.06048813 0-3.74634187-1.68585375-3.74634094-3.74634188v-52.44878062c0-2.06048813 1.68585375-3.74634187 3.74634094-3.74634094h52.44878063c2.06048813 0 3.74634187 1.68585375 3.74634187 3.74634094z m-89.91219562-63.68780437c-16.57756125 0-29.97073125 13.39317094-29.97073125 29.97073125v119.88292687c0 16.57756125 13.39317094 29.97073125 29.97073125 29.97073219h119.88292687c16.57756125 0 29.97073125-13.39317094 29.97073219-29.97073219V181.85365813c0-16.57756125-13.39317094-29.97073125-29.97073219-29.97073125H181.85365813zM391.64878063 646.4v269.736585c0 8.24195156-6.743415 14.98536563-14.98536563 14.98536656H106.92682906c-8.24195156 0-14.98536563-6.743415-14.98536562-14.98536656V646.4c0-8.24195156 6.743415-14.98536563 14.98536562-14.98536563h269.73658594c8.24195156 0 14.98536563 6.743415 14.98536562 14.98536563zM91.94146344 571.47317094c-33.06146344 0-59.94146344 26.88-59.94146344 59.94146344v299.70731718c0 33.06146344 26.88 59.94146344 59.94146344 59.94146344h299.70731719c33.06146344 0 59.94146344-26.88 59.94146343-59.94146344V631.41463437c0-33.06146344-26.88-59.94146344-59.94146343-59.94146343H91.94146344z" ></path><path d="M271.76585375 755.04390219v52.44878062c0 2.06048813-1.68585375 3.74634187-3.74634187 3.74634188h-52.44878063c-2.06048813 0-3.74634187-1.68585375-3.74634094-3.74634188v-52.44878062c0-2.06048813 1.68585375-3.74634187 3.74634094-3.74634094h52.44878063c2.06048813 0 3.74634187 1.68585375 3.74634187 3.74634094z m-89.91219562-63.68780438c-16.57756125 0-29.97073125 13.39317094-29.97073125 29.97073125v119.88292688c0 16.57756125 13.39317094 29.97073125 29.97073125 29.97073218h119.88292687c16.57756125 0 29.97073125-13.39317094 29.97073219-29.97073218V721.32682906c0-16.57756125-13.39317094-29.97073125-29.97073219-29.97073125H181.85365813zM931.12195156 106.92682906v269.73658594c0 8.24195156-6.743415 14.98536563-14.98536656 14.98536562H646.4c-8.24195156 0-14.98536563-6.743415-14.98536563-14.98536562V106.92682906c0-8.24195156 6.743415-14.98536563 14.98536563-14.98536562h269.736585c8.24195156 0 14.98536563 6.743415 14.98536656 14.98536562zM631.41463437 32c-33.06146344 0-59.94146344 26.88-59.94146343 59.94146344v299.70731719c0 33.06146344 26.88 59.94146344 59.94146343 59.94146343h299.70731719c33.06146344 0 59.94146344-26.88 59.94146344-59.94146343V91.94146344c0-33.06146344-26.88-59.94146344-59.94146344-59.94146344H631.41463437z" ></path><path d="M811.23902469 215.57073125v52.44878062c0 2.06048813-1.68585375 3.74634187-3.74634188 3.74634188h-52.44878062c-2.06048813 0-3.74634187-1.68585375-3.74634094-3.74634188v-52.44878062c0-2.06048813 1.68585375-3.74634187 3.74634094-3.74634094h52.44878062c2.06048813 0 3.74634187 1.68585375 3.74634188 3.74634094z m-89.91219563-63.68780437c-16.57756125 0-29.97073125 13.39317094-29.97073125 29.97073125v119.88292687c0 16.57756125 13.39317094 29.97073125 29.97073125 29.97073219h119.88292688c16.57756125 0 29.97073125-13.39317094 29.97073218-29.97073219V181.85365813c0-16.57756125-13.39317094-29.97073125-29.97073218-29.97073125H721.32682906zM578.96585375 991.063415h44.95609781c4.12097531 0 7.49268281-3.3717075 7.49268282-7.49268375V817.79512156c0-4.12097531-3.3717075-7.49268281-7.49268282-7.49268281h-44.95609781c-4.12097531 0-7.49268281 3.3717075-7.49268281 7.49268281v165.77560969c0 4.12097531 3.3717075 7.49268281 7.49268281 7.49268375zM698.84878062 991.063415h44.95609782c4.12097531 0 7.49268281-3.3717075 7.49268281-7.49268375V878.67317094c0-4.12097531-3.3717075-7.49268281-7.49268281-7.49268281h-44.95609782c-4.12097531 0-7.49268281 3.3717075-7.49268281 7.49268281v104.89756031c0 4.12097531 3.3717075 7.49268281 7.49268281 7.49268375zM992 931.12195156v53.38536563c0 4.12097531-3.3717075 7.49268281-7.49268281 7.49268281H818.7317075c-4.12097531 0-7.49268281-3.3717075-7.49268281-7.49268281v-45.89268281c0-4.12097531 3.3717075-7.49268281 7.49268281-7.49268282h104.89756125c4.12097531 0 7.49268281-3.3717075 7.49268281-7.49268281v-44.95609781c0-4.12097531 3.3717075-7.49268281 7.49268282-7.49268281h44.95609687c4.12097531 0 7.49268281 3.3717075 7.49268375 7.49268281v52.44878062h0.936585zM938.61463437 781.2682925h44.95609688c4.12097531 0 7.49268281-3.3717075 7.49268375-7.49268281V578.96585375c0-4.12097531-3.3717075-7.49268281-7.49268375-7.49268281h-44.95609687c-4.12097531 0-7.49268281 3.3717075-7.49268282 7.49268281v194.80975594c0 4.12097531 3.3717075 7.49268281 7.49268282 7.49268281zM571.47317094 578.96585375v44.95609781c0 4.12097531 3.3717075 7.49268281 7.49268281 7.49268282h165.77560969c4.12097531 0 7.49268281-3.3717075 7.49268281-7.49268282v-44.95609781c0-4.12097531-3.3717075-7.49268281-7.49268281-7.49268281H578.96585375c-4.12097531 0-7.49268281 3.3717075-7.49268281 7.49268281zM571.47317094 698.84878062v44.95609782c0 4.12097531 3.3717075 7.49268281 7.49268281 7.49268281h44.95609781c4.12097531 0 7.49268281-3.3717075 7.49268281-7.49268281v-44.95609782c0-4.12097531-3.3717075-7.49268281-7.49268281-7.49268281h-44.95609781c-4.12097531 0-7.49268281 3.3717075-7.49268281 7.49268281zM871.18048813 758.79024406v104.89756125c0 4.12097531-3.3717075 7.49268281-7.49268282 7.49268282h-44.95609781c-4.12097531 0-7.49268281-3.3717075-7.49268281-7.49268282v-44.95609781c0-4.12097531-3.3717075-7.49268281-7.49268282-7.49268281H698.84878062c-4.12097531 0-7.49268281-3.3717075-7.49268281-7.49268281v-44.95609782c0-4.12097531 3.3717075-7.49268281 7.49268281-7.49268281h164.83902469c4.12097531 0 7.49268281 3.3717075 7.49268281 7.49268281zM811.23902469 578.96585375v134.8682925c0 4.12097531 3.3717075 7.49268281 7.49268281 7.49268281h44.95609781c4.12097531 0 7.49268281-3.3717075 7.49268281-7.49268281V578.96585375c0-4.12097531-3.3717075-7.49268281-7.49268281-7.49268281h-44.95609781c-4.12097531 0-7.49268281 3.3717075-7.49268281 7.49268281z" ></path></symbol><symbol id="icon-bar-code" viewBox="0 0 1024 1024"><path d="M0 256h64v512H0zM128 256h64v512h-64zM224 256h32v512h-32zM448 256h32v512h-32zM592 256h32v512h-32zM720 256h32v512h-32zM912 256h32v512h-32zM336 256h64v512h-64zM784 256h64v512h-64zM640 256h64v512h-64zM960 256h64v512h-64z" ></path></symbol><symbol id="icon-duohangshuru" viewBox="0 0 1024 1024"><path d="M843.40179753 70.13093706H180.59820247c-60.75699579 0-110.46726541 49.71026963-110.46726541 110.46726541v662.80359506c0 60.75699579 49.71026963 110.46726541 110.46726541 110.46726541h662.80359506c60.75699579 0 110.46726541-49.71026963 110.46726541-110.46726541V180.59820247c0-60.75699579-49.71026963-110.46726541-110.46726541-110.46726541z m44.1869059 773.27086047a44.73924267 44.73924267 0 0 1-44.1869059 44.1869059H180.59820247a44.73924267 44.73924267 0 0 1-44.1869059-44.1869059V180.59820247c0-23.97139626 20.27074371-44.18690591 44.1869059-44.1869059h662.80359506c23.97139626 0 44.18690591 20.27074371 44.1869059 44.1869059v662.80359506z" ></path><path d="M759.39144187 518.84897091h-179.50930745a33.14017975 33.14017975 0 1 0 0 66.28035951h179.50930745a33.14017975 33.14017975 0 1 0 0-66.28035951z m0 166.58463603h-179.50930745a33.14017975 33.14017975 0 0 0 0 66.28035951h179.50930745a33.14017975 33.14017975 0 1 0 0-66.28035951z m-179.50930745-346.86721388a33.14017975 33.14017975 0 0 0 0-66.28035951H241.57613322a33.14017975 33.14017975 0 1 0 0 66.28035951h136.04043788v380.00739363a33.14017975 33.14017975 0 1 0 66.28035951 0V338.56639306h135.98520381z" ></path></symbol><symbol id="icon-danhangshuru" viewBox="0 0 1024 1024"><path d="M880.24263113 70.13093706C920.72888319 70.13093706 953.86906294 103.27111681 953.86906294 143.75736887v736.48526226C953.86906294 920.72888319 920.72888319 953.86906294 880.24263113 953.86906294H143.75736887C103.27111681 953.86906294 70.13093706 920.72888319 70.13093706 880.24263113V143.75736887C70.13093706 103.27111681 103.27111681 70.13093706 143.75736887 70.13093706h736.48526226z m4.91579289 68.71063892H138.84157598v746.31684804h746.31684804V138.84157598z m-189.06472549 225.90555907h-147.25286494V732.93453212a36.84083359 36.84083359 0 0 1-73.68166718 0V364.69190099H327.90630147a36.84083359 36.84083359 0 1 1 0-73.62643311h368.18739706a36.84083359 36.84083359 0 1 1 0 73.62643311z" ></path></symbol><symbol id="icon-shuzishuru" viewBox="0 0 1024 1024"><path d="M163.5310099 71.12514245h693.1820936c50.98064276 0 92.35063468 41.42522469 92.35063337 92.40586745v693.1820936c0 50.98064276-41.36999063 92.35063468-92.40586744 92.35063337H163.5310099c-51.03587682 0-92.40586745-41.36999063-92.40586745-92.40586744V163.5310099c0-51.03587682 41.42522469-92.40586745 92.40586745-92.40586745z m0 64.6785833a27.72728416 27.72728416 0 0 0-27.72728415 27.72728415v693.1820936c0 15.24448269 12.42756741 27.6720501 27.72728415 27.67205009h693.1820936a27.72728416 27.72728416 0 0 0 27.67205009-27.72728416V163.5310099a27.72728416 27.72728416 0 0 0-27.72728416-27.72728415H163.5310099z" ></path><path d="M200.48231031 279.0797704v508.25988928h64.73381736V279.0797704H200.48231031z m300.36049541 55.45456702v166.3084683H339.11872852v295.7761043h226.45789584v-101.62988372h-64.73381864v36.89606636h-96.99025854V565.57662436h161.72407718V269.80052006h-226.45789584v101.62988373h64.73381866v-36.89606637h96.99025854z m253.41190827 397.35075524h-128.63913149v64.73381736h193.31771607V269.80052006h-193.31771607v64.73381736h128.69436556v397.35075524z" ></path><path d="M625.6155825 542.43373131h161.00604082v-64.62335052h-161.00604082z" ></path></symbol><symbol id="icon-verticalLine" viewBox="0 0 1024 1024"><path d="M469.333333 917.333333L469.333333 106.666667a21.333333 21.333333 0 0 1 42.666667-1e-8l0 810.66666602a21.333333 21.333333 0 0 1-42.666667-1e-8z" ></path></symbol><symbol id="icon-horizontalLine" viewBox="0 0 1024 1024"><path d="M917.333333 554.666667H106.666667a21.333333 21.333333 0 0 1 0-42.666667h810.666666a21.333333 21.333333 0 0 1 0 42.666667z" ></path></symbol><symbol id="icon-24gl-circle" viewBox="0 0 1024 1024"><path d="M512 42.666667C252.793333 42.666667 42.666667 252.793333 42.666667 512s210.126667 469.333333 469.333333 469.333333 469.333333-210.126667 469.333333-469.333333S771.206667 42.666667 512 42.666667z m0 896c-235.64 0-426.666667-191.026667-426.666667-426.666667s191.026667-426.666667 426.666667-426.666667 426.666667 191.026667 426.666667 426.666667-191.026667 426.666667-426.666667 426.666667z" ></path></symbol><symbol id="icon-24gl-eye" viewBox="0 0 1024 1024"><path d="M512 725.333333a213.473333 213.473333 0 0 1-201.92-282.34 21.333333 21.333333 0 0 1 40.373333 13.8A170.333333 170.333333 0 0 0 341.333333 512c0 94.106667 76.56 170.666667 170.666667 170.666667s170.666667-76.56 170.666667-170.666667-76.56-170.666667-170.666667-170.666667a169.96 169.96 0 0 0-92.813333 27.42 21.333333 21.333333 0 0 1-23.24-35.786666A212.56 212.56 0 0 1 512 298.666667a213.333333 213.333333 0 0 1 0 426.666666z m169.013333 143.12a535.22 535.22 0 0 0 342.046667-350.193333 21.333333 21.333333 0 0 0 0-12.52 534.826667 534.826667 0 0 0-946.2-153.493333A531.333333 531.333333 0 0 0 0.94 505.74a21.333333 21.333333 0 0 0 0 12.52 534.166667 534.166667 0 0 0 680.073333 350.193333zM512 170.666667c211.886667 0 403.5 140.033333 468.306667 341.333333-64.806667 201.333333-256.42 341.333333-468.306667 341.333333S108.5 713.333333 43.693333 512C108.5 310.7 300.113333 170.666667 512 170.666667z" ></path></symbol><symbol id="icon-24gl-rectangle" viewBox="0 0 1024 1024"><path d="M928 896H96a53.393333 53.393333 0 0 1-53.333333-53.333333V181.333333a53.393333 53.393333 0 0 1 53.333333-53.333333h832a53.393333 53.393333 0 0 1 53.333333 53.333333v661.333334a53.393333 53.393333 0 0 1-53.333333 53.333333zM96 170.666667a10.666667 10.666667 0 0 0-10.666667 10.666666v661.333334a10.666667 10.666667 0 0 0 10.666667 10.666666h832a10.666667 10.666667 0 0 0 10.666667-10.666666V181.333333a10.666667 10.666667 0 0 0-10.666667-10.666666z" ></path></symbol><symbol id="icon-24gl-strikethrough2" viewBox="0 0 1024 1024"><path d="M512 981.333333c-94.9 0-185.886667-23.02-256.193333-64.806666-72.333333-43-117.12-102.28-126.126667-166.92a21.333333 21.333333 0 0 1 42.26-5.88c7.18 51.54 44.706667 99.88 105.673333 136.12C341.413333 917.78 424.666667 938.666667 512 938.666667c92.806667 0 179.766667-23.193333 244.853333-65.333334 62.22-40.26 96.48-92.826667 96.48-148 0-32.666667-11.76-64.086667-34.953333-93.44a21.333333 21.333333 0 0 1 33.48-26.453333C880.74 642 896 683.446667 896 725.333333c0 35.893333-10.76 70.553333-32 103.013334-19.913333 30.453333-48.166667 57.653333-84 80.833333C708.126667 955.706667 612.933333 981.333333 512 981.333333z m405.333333-469.333333H106.666667a21.333333 21.333333 0 0 1 0-42.666667h165.606666a346.853333 346.853333 0 0 1-41.046666-23.4C199.333333 424.666667 174.193333 399.733333 156.466667 371.8 137.58 342 128 310.246667 128 277.333333s9.58-64.666667 28.466667-94.466666c17.726667-27.933333 42.866667-52.866667 74.76-74.133334C295.133333 66.126667 379.693333 42.666667 469.333333 42.666667a485.793333 485.793333 0 0 1 115.206667 13.586666c35.86 8.76 69.113333 21.506667 98.826667 37.88 29.9 16.48 55.333333 36.14 75.613333 58.433334 21.206667 23.333333 36.133333 48.86 44.36 75.886666a21.333333 21.333333 0 1 1-40.813333 12.426667c-12.84-42.16-48.266667-81.006667-99.753334-109.38C608.74 101.726667 540.046667 85.333333 469.333333 85.333333c-81.333333 0-157.466667 20.92-214.44 58.9C200.58 180.446667 170.666667 227.713333 170.666667 277.333333s29.913333 96.886667 84.226666 133.1C311.866667 448.413333 388 469.333333 469.333333 469.333333h448a21.333333 21.333333 0 0 1 0 42.666667z" ></path></symbol><symbol id="icon-24gl-table" viewBox="0 0 1024 1024"><path d="M928 938.666667H96a53.393333 53.393333 0 0 1-53.333333-53.333334V181.333333a53.393333 53.393333 0 0 1 53.333333-53.333333h832a53.393333 53.393333 0 0 1 53.333333 53.333333v704a53.393333 53.393333 0 0 1-53.333333 53.333334z m-245.333333-42.666667h245.333333a10.666667 10.666667 0 0 0 10.666667-10.666667v-202.666666h-256z m-298.666667 0h256v-213.333333H384z m-298.666667-213.333333v202.666666a10.666667 10.666667 0 0 0 10.666667 10.666667h245.333333v-213.333333z m597.333334-42.666667h256V426.666667h-256z m-298.666667 0h256V426.666667H384z m-298.666667 0h256V426.666667H85.333333z m853.333334-256V181.333333a10.666667 10.666667 0 0 0-10.666667-10.666666H96a10.666667 10.666667 0 0 0-10.666667 10.666666v202.666667z" ></path></symbol><symbol id="icon-24gl-title" viewBox="0 0 1024 1024"><path d="M874.666667 981.333333a21.333333 21.333333 0 0 1-21.333334-21.333333V512H170.666667v448a21.333333 21.333333 0 0 1-42.666667 0V64a21.333333 21.333333 0 0 1 42.666667 0v405.333333h682.666666V64a21.333333 21.333333 0 0 1 42.666667 0v896a21.333333 21.333333 0 0 1-21.333333 21.333333z" ></path></symbol><symbol id="icon-24gl-underline" viewBox="0 0 1024 1024"><path d="M917.333333 981.333333H106.666667a21.333333 21.333333 0 0 1 0-42.666666h810.666666a21.333333 21.333333 0 0 1 0 42.666666z m-405.333333-128a383.7 383.7 0 0 1-384-384V64a21.333333 21.333333 0 0 1 42.666667 0v405.333333c0 188.213333 153.12 341.333333 341.333333 341.333334s341.333333-153.12 341.333333-341.333334V64a21.333333 21.333333 0 0 1 42.666667 0v405.333333a383.7 383.7 0 0 1-384 384z" ></path></symbol><symbol id="icon-24gl-lineSpacing" viewBox="0 0 1024 1024"><path d="M192 981.333333a21.266667 21.266667 0 0 1-15.086667-6.246666l-85.333333-85.333334a21.333333 21.333333 0 0 1 30.173333-30.173333l48.913334 48.92V158.166667l-48.913334 48.92a21.333333 21.333333 0 0 1-30.173333-30.173334l85.333333-85.333333a21.333333 21.333333 0 0 1 30.173334 0l85.333333 85.333333a21.333333 21.333333 0 0 1-30.173333 30.173334L213.333333 158.166667v750.333333l48.913334-48.92a21.333333 21.333333 0 0 1 30.173333 30.173333l-85.333333 85.333334A21.266667 21.266667 0 0 1 192 981.333333z m768 0H448a21.333333 21.333333 0 0 1 0-42.666666h512a21.333333 21.333333 0 0 1 0 42.666666z m0-213.333333H448a21.333333 21.333333 0 0 1 0-42.666667h512a21.333333 21.333333 0 0 1 0 42.666667z m0-213.333333H448a21.333333 21.333333 0 0 1 0-42.666667h512a21.333333 21.333333 0 0 1 0 42.666667z m0-213.333334H448a21.333333 21.333333 0 0 1 0-42.666666h512a21.333333 21.333333 0 0 1 0 42.666666z m0-213.333333H448a21.333333 21.333333 0 0 1 0-42.666667h512a21.333333 21.333333 0 0 1 0 42.666667z" ></path></symbol><symbol id="icon-v-lineSpacing" viewBox="0 0 1024 1024"><path d="M42.666667 192a21.266667 21.266667 0 0 1 6.246666-15.086667l85.333334-85.33333301a21.333333 21.333333 0 0 1 30.173333 30.173333l-48.92 48.91333401L865.83333299 170.666667l-48.91999999-48.913334a21.333333 21.333333 0 0 1 30.173334-30.17333301l85.33333301 85.33333301a21.333333 21.333333 0 0 1-1e-8 30.173334l-85.333333 85.333333a21.333333 21.333333 0 0 1-30.173334-30.173333L865.83333299 213.333333l-750.33333299 0 48.92 48.913334a21.333333 21.333333 0 0 1-30.173333 30.173333l-85.333334-85.333333A21.266667 21.266667 0 0 1 42.666667 192z m0 768L42.66666699 448a21.333333 21.333333 0 0 1 42.66666601 0l0 512a21.333333 21.333333 0 0 1-42.666666 0z m213.333333 0L256 448a21.333333 21.333333 0 0 1 42.666667 0l0 512a21.333333 21.333333 0 0 1-42.666667 0z m213.333333 0L469.333333 448a21.333333 21.333333 0 0 1 42.666667-1e-8l0 512.00000001a21.333333 21.333333 0 0 1-42.666667 0z m213.333334 0L682.666667 448a21.333333 21.333333 0 0 1 42.666666 0l0 512a21.333333 21.333333 0 0 1-42.666666 0z m213.333333 0L896 448a21.333333 21.333333 0 0 1 42.666667 0l0 512a21.333333 21.333333 0 0 1-42.666667 0z" ></path></symbol><symbol id="icon-v-textAlignBottom" viewBox="0 0 1024 1024"><path d="M42.66666699 106.666667l1e-8 853.333333a21.333333 21.333333 0 0 0 42.666666 0L85.333333 106.666667a21.333333 21.333333 0 0 0-42.66666601 0z m213.33333301 341.333333l0 512a21.333333 21.333333 0 0 0 42.666667 0L298.666667 448a21.333333 21.333333 0 0 0-42.666667 0zM469.333333 106.666667l0 853.333333a21.333333 21.333333 0 0 0 42.666667 0L512 106.66666699a21.333333 21.333333 0 0 0-42.666667 1e-8z m213.333334 341.333333l0 512a21.333333 21.333333 0 0 0 42.666666 0L725.333333 448a21.333333 21.333333 0 0 0-42.666666 0zM896 106.666667l0 853.333333a21.333333 21.333333 0 0 0 42.666667 0L938.666667 106.666667a21.333333 21.333333 0 0 0-42.666667 0z" ></path></symbol><symbol id="icon-24gl-picture" viewBox="0 0 1024 1024"><path d="M885.333333 938.666667H138.666667a53.393333 53.393333 0 0 1-53.333334-53.333334V138.666667a53.393333 53.393333 0 0 1 53.333334-53.333334h746.666666a53.393333 53.393333 0 0 1 53.333334 53.333334v746.666666a53.393333 53.393333 0 0 1-53.333334 53.333334z m-600.5-42.666667H885.333333a10.666667 10.666667 0 0 0 10.666667-10.666667v-215.166666l-185.126667-185.12a10.666667 10.666667 0 0 0-15.08 0zM128 798.166667V885.333333a10.666667 10.666667 0 0 0 10.666667 10.666667h85.833333l192.666667-192.666667-89.626667-89.62a10.666667 10.666667 0 0 0-15.08 0zM138.666667 128a10.666667 10.666667 0 0 0-10.666667 10.666667v599.166666l154.286667-154.293333a53.4 53.4 0 0 1 75.426666 0L447.333333 673.166667l218.286667-218.293334a53.4 53.4 0 0 1 75.426667 0L896 609.833333V138.666667a10.666667 10.666667 0 0 0-10.666667-10.666667z m181.333333 298.666667c-58.813333 0-106.666667-47.853333-106.666667-106.666667s47.853333-106.666667 106.666667-106.666667 106.666667 47.853333 106.666667 106.666667-47.853333 106.666667-106.666667 106.666667z m0-170.666667a64 64 0 1 0 64 64 64.073333 64.073333 0 0 0-64-64z" ></path></symbol><symbol id="icon-24gl-bold" viewBox="0 0 1024 1024"><path d="M875.786667 625.873333a257.08 257.08 0 0 0-175.92-149.44 236.926667 236.926667 0 0 0 92.266666-107.926666 233.526667 233.526667 0 0 0 0-182.346667A236.666667 236.666667 0 0 0 667.173333 61.2 231.853333 231.853333 0 0 0 576 42.666667H149.333333a21.333333 21.333333 0 0 0-21.333333 21.333333v896a21.333333 21.333333 0 0 0 21.333333 21.333333h490.666667a252.986667 252.986667 0 0 0 99.46-20.213333 258.286667 258.286667 0 0 0 136.326667-136.326667 254.806667 254.806667 0 0 0 0-198.92zM170.666667 85.333333h405.333333c105.866667 0 192 86.133333 192 192s-86.133333 192-192 192H170.666667z m469.333333 853.333334H170.666667V512h469.333333c117.633333 0 213.333333 95.7 213.333333 213.333333s-95.7 213.333333-213.333333 213.333334z" ></path></symbol><symbol id="icon-v-textAlignCenter" viewBox="0 0 1024 1024"><path d="M42.666667 960L42.66666699 106.666667a21.333333 21.333333 0 0 1 42.66666601 0l0 853.333333a21.333333 21.333333 0 0 1-42.666666 0z m213.333333-170.666667L256 277.333333a21.333333 21.333333 0 0 1 42.666667 0l0 512a21.333333 21.333333 0 0 1-42.666667 0z m213.333333 170.666667L469.333333 106.666667a21.333333 21.333333 0 0 1 42.666667-1e-8l0 853.33333301a21.333333 21.333333 0 0 1-42.666667 0z m213.333334-170.666667L682.666667 277.333333a21.333333 21.333333 0 0 1 42.666666 0l0 512a21.333333 21.333333 0 0 1-42.666666 0z m213.333333 170.666667L896 106.666667a21.333333 21.333333 0 0 1 42.666667 0l0 853.333333a21.333333 21.333333 0 0 1-42.666667 0z" ></path></symbol><symbol id="icon-24gl-fontSize" viewBox="0 0 1024 1024"><path d="M405.33996 938.666667a21.333333 21.333333 0 0 1-20.16-14.36L331.073293 768H95.606627l-54.106667 156.313333a21.333333 21.333333 0 0 1-40.32-13.96l192-554.666666a21.333333 21.333333 0 0 1 40.32 0l192 554.666666A21.333333 21.333333 0 0 1 405.33996 938.666667z m-294.96-213.333334h205.92L213.33996 427.886667zM1002.673293 938.666667a21.333333 21.333333 0 0 1-20.333333-14.913334L906.193293 682.666667H587.153293l-76.14 241.093333a21.333333 21.333333 0 1 1-40.666666-12.853333l256-810.666667a21.333333 21.333333 0 0 1 40.666666 0l256 810.666667A21.333333 21.333333 0 0 1 1002.673293 938.666667zM600.626627 640h292.093333L746.673293 177.513333z" ></path></symbol><symbol id="icon-24gl-textAlignCenter" viewBox="0 0 1024 1024"><path d="M960 981.333333H106.666667a21.333333 21.333333 0 0 1 0-42.666666h853.333333a21.333333 21.333333 0 0 1 0 42.666666z m-170.666667-213.333333H277.333333a21.333333 21.333333 0 0 1 0-42.666667h512a21.333333 21.333333 0 0 1 0 42.666667z m170.666667-213.333333H106.666667a21.333333 21.333333 0 0 1 0-42.666667h853.333333a21.333333 21.333333 0 0 1 0 42.666667z m-170.666667-213.333334H277.333333a21.333333 21.333333 0 0 1 0-42.666666h512a21.333333 21.333333 0 0 1 0 42.666666z m170.666667-213.333333H106.666667a21.333333 21.333333 0 0 1 0-42.666667h853.333333a21.333333 21.333333 0 0 1 0 42.666667z" ></path></symbol><symbol id="icon-24gl-textAlignLeft" viewBox="0 0 1024 1024"><path d="M960 981.333333H106.666667a21.333333 21.333333 0 0 1 0-42.666666h853.333333a21.333333 21.333333 0 0 1 0 42.666666z m-341.333333-213.333333H106.666667a21.333333 21.333333 0 0 1 0-42.666667h512a21.333333 21.333333 0 0 1 0 42.666667z m341.333333-213.333333H106.666667a21.333333 21.333333 0 0 1 0-42.666667h853.333333a21.333333 21.333333 0 0 1 0 42.666667zM618.666667 341.333333H106.666667a21.333333 21.333333 0 0 1 0-42.666666h512a21.333333 21.333333 0 0 1 0 42.666666z m341.333333-213.333333H106.666667a21.333333 21.333333 0 0 1 0-42.666667h853.333333a21.333333 21.333333 0 0 1 0 42.666667z" ></path></symbol><symbol id="icon-24gl-textAlignRight" viewBox="0 0 1024 1024"><path d="M106.666667 981.333333h853.333333a21.333333 21.333333 0 0 0 0-42.666666H106.666667a21.333333 21.333333 0 0 0 0 42.666666z m341.333333-213.333333h512a21.333333 21.333333 0 0 0 0-42.666667H448a21.333333 21.333333 0 0 0 0 42.666667zM106.666667 554.666667h853.333333a21.333333 21.333333 0 0 0 0-42.666667H106.666667a21.333333 21.333333 0 0 0 0 42.666667z m341.333333-213.333334h512a21.333333 21.333333 0 0 0 0-42.666666H448a21.333333 21.333333 0 0 0 0 42.666666zM106.666667 128h853.333333a21.333333 21.333333 0 0 0 0-42.666667H106.666667a21.333333 21.333333 0 0 0 0 42.666667z" ></path></symbol><symbol id="icon-v-textAlignTop" viewBox="0 0 1024 1024"><path d="M42.666667 960L42.66666699 106.666667a21.333333 21.333333 0 0 1 42.66666601 0l0 853.333333a21.333333 21.333333 0 0 1-42.666666 0z m213.333333-341.333333L256 106.666667a21.333333 21.333333 0 0 1 42.666667 0l0 512a21.333333 21.333333 0 0 1-42.666667 0z m213.333333 341.333333L469.333333 106.666667a21.333333 21.333333 0 0 1 42.666667-1e-8l0 853.33333301a21.333333 21.333333 0 0 1-42.666667 0zM682.666667 618.666667L682.666667 106.666667a21.333333 21.333333 0 0 1 42.666666 0l0 512a21.333333 21.333333 0 0 1-42.666666 0z m213.333333 341.333333L896 106.666667a21.333333 21.333333 0 0 1 42.666667 0l0 853.333333a21.333333 21.333333 0 0 1-42.666667 0z" ></path></symbol></svg>\',(m=>{var a=(z=(z=document.getElementsByTagName("script"))[z.length-1]).getAttribute("data-injectcss"),z=z.getAttribute("data-disable-injectsvg");if(!z){var h,l,o,c,t,i=function(a,z){z.parentNode.insertBefore(a,z)};if(a&&!m.__iconfont__svg__cssinject__){m.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(a){console&&console.log(a)}}h=function(){var a,z=document.createElement("div");z.innerHTML=m._iconfont_svg_string_4872361,(z=z.getElementsByTagName("svg")[0])&&(z.setAttribute("aria-hidden","true"),z.style.position="absolute",z.style.width=0,z.style.height=0,z.style.overflow="hidden",z=z,(a=document.body).firstChild?i(z,a.firstChild):a.appendChild(z))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(h,0):(l=function(){document.removeEventListener("DOMContentLoaded",l,!1),h()},document.addEventListener("DOMContentLoaded",l,!1)):document.attachEvent&&(o=h,c=m.document,t=!1,e(),c.onreadystatechange=function(){"complete"==c.readyState&&(c.onreadystatechange=null,v())})}function v(){t||(t=!0,o())}function e(){try{c.documentElement.doScroll("left")}catch(a){return void setTimeout(e,50)}v()}})(window);';let ul=!1;function dl(){ul||"undefined"==typeof document||(ul=!0,new Function(sl).call(window))}function cl(e){var t;const l="icon-danhangshuru";return(null==(t=[{tid:"text",type:l},{tid:"number",type:"icon-shuzishuru"},{tid:"table",type:"icon-24gl-table"},{tid:"image",type:"icon-24gl-picture"},{tid:"longText",type:"icon-duohangshuru"},{tid:"hline",type:"icon-horizontalLine"},{tid:"vline",type:"icon-verticalLine"},{tid:"rect",type:"icon-24gl-rectangle"},{tid:"oval",type:"icon-24gl-circle"},{tid:"barcode",type:"icon-bar-code"},{tid:"qrcode",type:"icon-qrcode"},{tid:"object",type:"icon-qrcode"}].find(t=>t.tid===e))?void 0:t.type)||l}const pl=a({name:"IconFont",props:{type:{type:String,required:!0},size:{type:[Number,String],default:void 0},color:{type:String,default:void 0},spin:{type:Boolean,default:!1}},setup:(e,{attrs:t})=>(dl(),()=>{var l,o;const a={};return e.size&&(a.fontSize="number"==typeof e.size?`${e.size}px`:e.size),e.color&&(a.color=e.color),e.spin&&(a.animation="iconfont-spin 1s linear infinite"),L("svg",{...t,class:["iconfont-svg",t.class],style:[a,t.style],"aria-hidden":"true",width:null!=(l=e.size)?l:"1em",height:null!=(o=e.size)?o:"1em",fill:"currentColor"},[L("use",{"xlink:href":`#${e.type}`})])})}),ml={class:"u-nos"},vl={class:"u-card__bd u-aside__bd u-cl",style:{"padding-top":"0","border-bottom":"1px solid var(--color-neutral-2)"}},fl=a({__name:"card",props:{title:String,isFirst:Boolean,show:{type:Boolean,default:!0}},setup(e){const t=e,l=D(t.show);return(e,o)=>{const a=n("icon-down"),s=n("icon-right");return i(),r("div",ml,[k("div",{class:"u-card__hd u-aside__hd",style:y([{borderBottomWidth:l.value?"0px":"1px"},{height:"36px","line-height":"36px","border-bottom-color":"var(--color-neutral-2)"}])},[k("div",null,[m(e.$slots,"title",{},()=>[k("strong",null,g(t.title),1)])]),k("span",{style:{cursor:"pointer"},onClick:o[0]||(o[0]=e=>{l.value=!l.value})},[l.value?(i(),u(a,{key:0})):(i(),u(s,{key:1}))])],4),z(P,null,{default:p(()=>[q(k("div",vl,[m(e.$slots,"default")],512),[[I,l.value]])]),_:3})])}}}),hl=a({__name:"guides",props:{show:{type:Boolean,default:!0},zoom:{default:1},mainContainer:{},warpContainer:{},leftOffset:{default:0},topOffset:{default:-24}},setup(e,{expose:t}){const l=e,o=l.mainContainer;let a=null,n=null;const s=N.debounce(function(){var e,t;if(!l.warpContainer)return;if(!a||!n)return;const i=document.querySelector(l.warpContainer);if(!i)return;const r=le.mm.toPx(1),s=Math.min(5,Math.max(.5,1*l.zoom))*r;a.zoom=s,n.zoom=s;let u=10;s>7&&(u=5);a.unit=u,n.unit=u,a.resize(),n.resize();const d=l.leftOffset+i.offsetLeft-i.scrollLeft,c=l.topOffset+i.offsetTop-i.scrollTop;a.scroll(-d/s),a.scrollGuides(-c/s),n.scroll(-c/s);const p=null!=(t=null==(e=document.querySelector(`${o} .${n.className}`))?void 0:e.clientWidth)?t:30;n.scrollGuides(-(d-p)/s)},1e3/30);function u(){if(!l.show)return null==a||a.destroy(),null==n||n.destroy(),a=null,void(n=null);const e={backgroundColor:"#f9f9fa",lineColor:"#bec2c7",textColor:"#999999",displayDragPos:!0,dragPosFormat:e=>`${e}mm`},t=document.querySelector(o);t&&(a=new ie(t,{...e,type:"horizontal",className:"comp-horizontal"}).on("changeGuides",()=>{}),n=new ie(t,{...e,type:"vertical",className:"comp-vertical"}).on("changeGuides",()=>{}),s())}return w(()=>l.show,u),w(()=>l.zoom,s),A(()=>{u(),window.addEventListener("resize",s,!1),ne(l.warpContainer).on("scroll",s)}),_(()=>{window.removeEventListener("resize",s,!1),ne(l.warpContainer).off("scroll",s)}),t({onResize:s}),(e,t)=>(i(),r("div"))}}),yl="",gl={class:"u-flex",style:{width:"calc(100% - 60px)"}},bl=a({__name:"preview",setup(e,{expose:t}){const o=l(!1),a=l(!0),r=l(!1),s=l(0),d=l({}),c=l({}),m=()=>{o.value=!1},v=()=>{var e;r.value=!0,null==(e=d.value)||e.print(c.value,{},{callback:()=>{r.value=!1}})},f=()=>{const e=document.getElementById("preview_content_design");e&&Kt("\u6253\u5370\u9884\u89c8",e,{className:".hiprint-printPaper",scale:2})};return t({show:(e,t,l="210")=>{o.value=!0,a.value=!0,s.value=e.editingPanel?e.editingPanel.width:Number(l),d.value=e,c.value=t,setTimeout(()=>{ne("#preview_content_design").html(e.getHtml(t)),a.value=!1},500)},hideModal:m}),(e,t)=>{const l=n("a-spin"),d=n("icon-printer"),c=n("a-button"),h=n("icon-download"),g=n("ASpace"),b=n("AModal");return i(),u(b,{title:"\u6253\u5370\u9884\u89c8",visible:o.value,"body-style":{padding:0,height:"100%"},"mask-closable":!1,width:Math.max(s.value,210)+"mm",footer:!1,fullscreen:"",onCancel:m},{title:p(()=>[k("div",gl,[t[3]||(t[3]=k("div",{class:"u-flex__item"},[k("strong",null,"\u6253\u5370\u9884\u89c8")],-1)),k("div",null,[z(g,null,{default:p(()=>[z(c,{loading:r.value,type:"primary",icon:"printer",onClick:j(v,["stop"])},{icon:p(()=>[z(d)]),default:p(()=>[t[1]||(t[1]=x(" \u6253\u5370 ",-1))]),_:1},8,["loading"]),z(c,{type:"primary",icon:"printer",onClick:j(f,["stop"])},{icon:p(()=>[z(h)]),default:p(()=>[t[2]||(t[2]=x(" \u4e0b\u8f7dPDF ",-1))]),_:1})]),_:1})])])]),footer:p(()=>[z(c,{key:"close",type:"primary",onClick:m},{default:p(()=>[...t[4]||(t[4]=[x("\u5173\u95ed",-1)])]),_:1})]),default:p(()=>[z(l,{class:"u-main",loading:a.value,style:{width:"100%","min-height":"100%",display:"grid","place-items":"center",overflow:"auto","background-color":"#f5f5f5",padding:"20px","box-sizing":"border-box"}},{default:p(()=>[k("div",{style:y([{width:s.value+"mm",overflow:"hidden"},{margin:"0 auto",background:"#fff","box-shadow":"0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 0px 1px rgba(0, 0, 0, 0.06)"}])},[...t[0]||(t[0]=[k("div",{id:"preview_content_design"},null,-1)])],4)]),_:1},8,["loading"])]),_:1},8,["visible","width"])}}}),wl={class:"kbd-nav","aria-label":"\u5e38\u89c1\u95ee\u9898\u5bfc\u822a"},_l={class:"u-flex",style:{width:"calc(100% - 60px)"}},kl={class:"u-flex__item"},zl={style:{color:"var(--color-border-4)"}},xl=a({__name:"kbd",setup(e,{expose:t}){const o=l(!1),a=l(210),r=l({}),s=l({}),d=l(),{version:c}=oe,m=()=>{o.value=!1},v=e=>{var t,l;null==(l=null==(t=d.value)?void 0:t.querySelector(`[data-faq="${e}"]`))||l.scrollIntoView({behavior:"smooth",block:"start"})};return t({show:(e,t)=>{o.value=!0,r.value=e,s.value=t},hideModal:m}),(e,t)=>{const l=n("ACard"),r=n("a-spin"),s=n("a-button"),h=n("AModal");return i(),u(h,{title:"\u5e2e\u52a9\u6587\u6863",visible:o.value,"body-style":{padding:0,height:"100%"},"mask-closable":!1,width:Math.max(a.value,210)+"mm",footer:!1,fullscreen:"",onCancel:m},{title:p(()=>[k("div",_l,[k("div",kl,[t[47]||(t[47]=k("strong",null,"\u5e2e\u52a9\u6587\u6863",-1)),k("small",zl,"v "+g(f(c)),1)]),t[48]||(t[48]=k("div",null,null,-1))])]),footer:p(()=>[z(s,{key:"close",type:"primary",onClick:m},{default:p(()=>[...t[49]||(t[49]=[x("\u5173\u95ed",-1)])]),_:1})]),default:p(()=>[z(r,{class:"u-main comp-kbd",style:{display:"block",width:"100%",minHeight:"100%"}},{default:p(()=>[k("div",{style:y([{width:a.value+"mm",overflow:"hidden"},{margin:"0 auto"}])},[z(l,null,{default:p(()=>[k("div",{ref_key:"faqRef",ref:d,class:"u-quill-body"},[t[14]||(t[14]=k("h1",null,"\u6253\u5370\u8bbe\u8ba1\u5668\u64cd\u4f5c\u5e2e\u52a9",-1)),t[15]||(t[15]=k("p",null,"\u672c\u6587\u6863\u4ee5\u95ee\u7b54\u5f62\u5f0f\u6574\u7406\u4e86\u6253\u5370\u8bbe\u8ba1\u5668\u7684\u5e38\u7528\u64cd\u4f5c\uff0c\u65b9\u4fbf\u60a8\u5feb\u901f\u627e\u5230\u9700\u8981\u7684\u64cd\u4f5c\u65b9\u6cd5\u3002",-1)),k("nav",wl,[t[13]||(t[13]=k("strong",null,"\u95ee\u9898\u5bfc\u822a",-1)),k("ol",null,[k("li",null,[k("button",{type:"button",onClick:t[0]||(t[0]=e=>v("copy"))},"\u5982\u4f55\u590d\u5236\u7ec4\u4ef6\uff1f")]),k("li",null,[k("button",{type:"button",onClick:t[1]||(t[1]=e=>v("paste"))},"\u5982\u4f55\u7c98\u8d34\u7ec4\u4ef6\uff1f")]),k("li",null,[k("button",{type:"button",onClick:t[2]||(t[2]=e=>v("undo"))},"\u5982\u4f55\u64a4\u9500\u64cd\u4f5c\uff1f")]),k("li",null,[k("button",{type:"button",onClick:t[3]||(t[3]=e=>v("redo"))},"\u5982\u4f55\u91cd\u505a\u64cd\u4f5c\uff1f")]),k("li",null,[k("button",{type:"button",onClick:t[4]||(t[4]=e=>v("delete"))},"\u5982\u4f55\u5220\u9664\u7ec4\u4ef6\uff1f")]),k("li",null,[k("button",{type:"button",onClick:t[5]||(t[5]=e=>v("select"))},"\u5982\u4f55\u540c\u65f6\u9009\u4e2d\u591a\u4e2a\u7ec4\u4ef6\uff1f")]),k("li",null,[k("button",{type:"button",onClick:t[6]||(t[6]=e=>v("align"))},"\u5982\u4f55\u5bf9\u9f50\u591a\u4e2a\u7ec4\u4ef6\uff1f")]),k("li",null,[k("button",{type:"button",onClick:t[7]||(t[7]=e=>v("layer"))},"\u5982\u4f55\u8c03\u6574\u7ec4\u4ef6\u5c42\u7ea7\uff1f")]),k("li",null,[k("button",{type:"button",onClick:t[8]||(t[8]=e=>v("lock"))},"\u9501\u5b9a\u6309\u94ae\u6709\u4ec0\u4e48\u7528\uff1f")]),k("li",null,[k("button",{type:"button",onClick:t[9]||(t[9]=e=>v("move"))},"\u5982\u4f55\u5fae\u8c03\u7ec4\u4ef6\u4f4d\u7f6e\uff1f")]),k("li",null,[k("button",{type:"button",onClick:t[10]||(t[10]=e=>v("batch-delete"))},"\u5982\u4f55\u6279\u91cf\u5220\u9664\u591a\u4e2a\u7ec4\u4ef6\uff1f")]),k("li",null,[k("button",{type:"button",onClick:t[11]||(t[11]=e=>v("quick-copy"))},"\u5982\u4f55\u5feb\u901f\u590d\u5236\u7ec4\u4ef6\uff1f")]),k("li",null,[k("button",{type:"button",onClick:t[12]||(t[12]=e=>v("platform"))},"\u4e0d\u540c\u5e73\u53f0\u7684\u5feb\u6377\u952e\u6709\u4ec0\u4e48\u533a\u522b\uff1f")])])]),t[16]||(t[16]=k("h2",null,"\u4e00\u3001\u7f16\u8f91\u64cd\u4f5c",-1)),t[17]||(t[17]=k("h3",{"data-faq":"copy"},"\u5982\u4f55\u590d\u5236\u7ec4\u4ef6\uff1f",-1)),t[18]||(t[18]=k("p",null,[x(" \u9009\u4e2d\u540e\u6309 "),k("kbd",null,"Ctrl"),x(" + "),k("kbd",null,"C"),x(" \uff08Mac\uff1a "),k("kbd",null,"Command"),x(" + "),k("kbd",null,"C"),x(" \uff09\u3002 ")],-1)),t[19]||(t[19]=k("h3",{"data-faq":"paste"},"\u5982\u4f55\u7c98\u8d34\u7ec4\u4ef6\uff1f",-1)),t[20]||(t[20]=k("p",null,[x(" \u6309 "),k("kbd",null,"Ctrl"),x(" + "),k("kbd",null,"V"),x(" \uff08Mac\uff1a "),k("kbd",null,"Command"),x(" + "),k("kbd",null,"V"),x(" \uff09\u7c98\u8d34\u5230\u753b\u5e03\u4e0a\u3002 ")],-1)),t[21]||(t[21]=k("h3",{"data-faq":"undo"},"\u5982\u4f55\u64a4\u9500\u64cd\u4f5c\uff1f",-1)),t[22]||(t[22]=k("p",null,[x(" \u6309 "),k("kbd",null,"Ctrl"),x(" + "),k("kbd",null,"Z"),x(" \u64a4\u9500\u4e0a\u4e00\u6b65\uff0c\u652f\u6301\u591a\u6b21\u64a4\u9500\u3002 ")],-1)),t[23]||(t[23]=k("h3",{"data-faq":"redo"},"\u5982\u4f55\u91cd\u505a\u64cd\u4f5c\uff1f",-1)),t[24]||(t[24]=k("p",null,[x(" \u6309 "),k("kbd",null,"Ctrl"),x(" + "),k("kbd",null,"Shift"),x(" + "),k("kbd",null,"Z"),x(" \u91cd\u505a\u88ab\u64a4\u9500\u7684\u64cd\u4f5c\u3002 ")],-1)),t[25]||(t[25]=k("h3",{"data-faq":"delete"},"\u5982\u4f55\u5220\u9664\u7ec4\u4ef6\uff1f",-1)),t[26]||(t[26]=k("p",null,[x(" \u9009\u4e2d\u540e\u6309 "),k("kbd",null,"Del"),x(" \u952e\u5220\u9664\u3002 ")],-1)),t[27]||(t[27]=k("h2",null,"\u4e8c\u3001\u591a\u9009\u4e0e\u6392\u5217",-1)),t[28]||(t[28]=k("h3",{"data-faq":"select"},"\u5982\u4f55\u540c\u65f6\u9009\u4e2d\u591a\u4e2a\u7ec4\u4ef6\uff1f",-1)),t[29]||(t[29]=k("p",null,[x(" \u6309\u4f4f "),k("kbd",null,"Ctrl"),x(" \u952e\u9010\u4e2a\u70b9\u51fb\u7ec4\u4ef6\u5373\u53ef\u591a\u9009\uff0c\u9002\u5408\u6279\u91cf\u79fb\u52a8\u3001\u5220\u9664\u6216\u5bf9\u9f50\u3002 ")],-1)),t[30]||(t[30]=k("h3",{"data-faq":"align"},"\u5982\u4f55\u5bf9\u9f50\u591a\u4e2a\u7ec4\u4ef6\uff1f",-1)),t[31]||(t[31]=k("p",null,"\u591a\u9009\u540e\u4f7f\u7528\u5de5\u5177\u680f\u7684\u5bf9\u9f50\u6309\u94ae\uff1a\u5de6\u5bf9\u9f50\u3001\u5c45\u4e2d\u5bf9\u9f50\u3001\u53f3\u5bf9\u9f50\u3001\u9876\u7aef\u5bf9\u9f50\u3001\u5782\u76f4\u5c45\u4e2d\u3001\u5e95\u90e8\u5bf9\u9f50\u3002\u5355\u9009\u65f6\u8fd9\u4e9b\u6309\u94ae\u6539\u53d8\u6587\u5b57\u5bf9\u9f50\u65b9\u5f0f\u3002",-1)),t[32]||(t[32]=k("h3",{"data-faq":"layer"},"\u5982\u4f55\u8c03\u6574\u7ec4\u4ef6\u5c42\u7ea7\uff08\u7f6e\u9876/\u7f6e\u5e95\uff09\uff1f",-1)),t[33]||(t[33]=k("p",null,"\u4f7f\u7528\u5de5\u5177\u680f\u7684\u7f6e\u9876\u6309\u94ae\uff08\u7b49\u6548\u5c42\u7ea7 9\uff09\u6216\u7f6e\u5e95\u6309\u94ae\uff08\u7b49\u6548\u5c42\u7ea7 1\uff09\uff0c\u6216\u5728\u53f3\u4fa7\u5c5e\u6027\u9762\u677f\u8bbe\u7f6e\u300c\u6837\u5f0f \u2192 \u5143\u7d20\u5c42\u7ea7\u300d\u3002",-1)),t[34]||(t[34]=k("h3",{"data-faq":"lock"},"\u9501\u5b9a\u6309\u94ae\u6709\u4ec0\u4e48\u7528\uff1f",-1)),t[35]||(t[35]=k("p",null,"\u9501\u5b9a\u540e\u7ec4\u4ef6\u4e0d\u53ef\u7528\u9f20\u6807\u62d6\u52a8\uff0c\u4f46\u4ecd\u53ef\u7528\u952e\u76d8\u65b9\u5411\u952e\u5fae\u8c03\u4f4d\u7f6e\u3002",-1)),t[36]||(t[36]=k("h2",null,"\u4e09\u3001\u5b9a\u4f4d\u8c03\u6574",-1)),t[37]||(t[37]=k("h3",{"data-faq":"move"},"\u5982\u4f55\u5fae\u8c03\u7ec4\u4ef6\u4f4d\u7f6e\uff1f",-1)),t[38]||(t[38]=k("p",null,[x(" \u9009\u4e2d\u540e\u6309\u65b9\u5411\u952e "),k("kbd",null,"\u2191"),k("kbd",null,"\u2193"),k("kbd",null,"\u2190"),k("kbd",null,"\u2192"),x(" \u6bcf\u6b21\u79fb\u52a8\u4e00\u4e2a\u5355\u4f4d\uff0c\u9002\u5408\u7cbe\u786e\u5e03\u5c40\u3002 ")],-1)),t[39]||(t[39]=k("h2",null,"\u56db\u3001\u5e38\u89c1\u64cd\u4f5c\u7ec4\u5408",-1)),t[40]||(t[40]=k("h3",{"data-faq":"batch-delete"},"\u5982\u4f55\u6279\u91cf\u5220\u9664\u591a\u4e2a\u7ec4\u4ef6\uff1f",-1)),t[41]||(t[41]=k("p",null,[x(" \u6309\u4f4f "),k("kbd",null,"Ctrl"),x(" \u591a\u9009\u4e0d\u9700\u8981\u7684\u7ec4\u4ef6\uff0c\u518d\u6309 "),k("kbd",null,"Del"),x(" \u4e00\u6b21\u6027\u5220\u9664\u3002 ")],-1)),t[42]||(t[42]=k("h3",{"data-faq":"quick-copy"},"\u5982\u4f55\u5feb\u901f\u590d\u5236\u4e00\u4e2a\u7ec4\u4ef6\u5230\u5176\u4ed6\u4f4d\u7f6e\uff1f",-1)),t[43]||(t[43]=k("p",null,[k("kbd",null,"Ctrl"),x(" + "),k("kbd",null,"C"),x(" \u590d\u5236\uff0c "),k("kbd",null,"Ctrl"),x(" + "),k("kbd",null,"V"),x(" \u7c98\u8d34\u5230\u76ee\u6807\u4f4d\u7f6e\u3002 ")],-1)),t[44]||(t[44]=k("h2",null,"\u4e94\u3001\u5e73\u53f0\u5dee\u5f02",-1)),t[45]||(t[45]=k("h3",{"data-faq":"platform"},"Mac \u548c Windows \u5feb\u6377\u952e\u6709\u4ec0\u4e48\u4e0d\u540c\uff1f",-1)),t[46]||(t[46]=k("p",null,[x(" macOS \u4e2d "),k("kbd",null,"Ctrl"),x(" \u66ff\u6362\u4e3a "),k("kbd",null,"Command"),x(" \uff0c\u4f8b\u5982\u590d\u5236 "),k("kbd",null,"Command"),x(" + "),k("kbd",null,"C"),x(" \u3001\u7c98\u8d34 "),k("kbd",null,"Command"),x(" + "),k("kbd",null,"V"),x(" \u3001\u64a4\u9500 "),k("kbd",null,"Command"),x(" + "),k("kbd",null,"Z"),x(" \u3002 ")],-1))],512)]),_:1})],4)]),_:1})]),_:1},8,["visible","width"])}}}),Cl="";function Vl(e){return{clearPaper(){try{null==e||e.clear()}catch(e){}},toPdf(t,l="\u5bfc\u51faPDF"){null==e||e.toPdf(t,l)},toPrint(t){null==e||e.print(t)},updateJson(t){if(e)try{e.update(JSON.parse(t))}catch(e){}},exportJson:()=>e?JSON.stringify(e.getJson()||{}):"",setElsAlign(t){t&&(null==e||e.setElsAlign(t))},setElsSpace(t=!0,l=10){null==e||e.setElsSpace(l,t)},setEleSelectByField(){null==e||e.selectElementsByField(["name"])},getSelectEls(){var t;return null!=(t=null==e?void 0:e.getSelectEls())?t:[]},updateOption(t,l){null==e||e.updateOption(t,l)}}}function Ml(e,t){var l;const o=null==(l=le)?void 0:l.event;if(!e||!o||!t)return;const a={onData:`hiprintTemplateDataChanged_${e.id}`,onSetting:`BuildCustomOptionSettingEventKey_${e.id}`,onSelect:`PrintElementSelectEventKey_${e.id}`};Object.keys(t).forEach(e=>o.on(a[e],t[e]))}const Sl={class:"comp-hiprint-toolbar u-flex u-w"},Al={class:"u-flex"},Tl={class:"u-flex__item"},El={class:"u-flex"},Ol={class:"u-flex"},Rl={class:"u-flex__item"},Hl={key:0,class:"u-flex__item u-flex"},$l={class:"u-flex__item u-flex"},Bl={class:"u-flex",style:{width:"8em"}},Ll={class:"u-flex u-flex__item"},Dl={class:"u-flex__item"},Pl={class:"u-flex__item"},ql={class:"u-flex",style:{width:"10em"}},Il={class:"u-flex__item"},jl={class:"u-flex",style:{width:"10em"}},Fl={class:"u-flex__item"},Nl={key:1,class:"u-flex__item u-flex"},Ul={class:"u-flex__item"},Kl={style:{"padding-left":"0.5em"}},Wl={style:{"padding-left":"0.5em"}},Gl={class:"comp-hiprint-toolbar-answer",title:"\u7ed3\u679c\u793a\u4f8b"},Jl={class:"u-flex u-center",style:{padding:"12px","justify-content":"space-between"}},Yl={class:"comp-hiprint-toolbar-answer",style:{border:"0"}},Xl={class:"comp-hiprint-toolbar-answer",style:{border:"0"}},Zl={class:"comp-hiprint-toolbar-answer",style:{border:"0"}},Ql=a({__name:"toolbar",props:{tpl:{default:void 0},selectedId:{default:null},updateTime:{default:0},zoom:{},setZoom:{}},setup(e){const o=e,a=l(null),d=t(()=>Vl(o.tpl));function h(){return o.tpl?o.tpl.getSelectEls():[]}const y=le.configs.DATE_TYPES.map(e=>"object"==typeof e?{label:`${e.value}${e.label?`(${e.label})`:""}`,value:e.value}:e),b={titleAlign:"start",modalClass:"comp-hiprint-toolbar",bodyStyle:{padding:"12px 24px"},unmountOnClose:!0,mask:!1},_=()=>h().length;function x(){var e,t;return!!Boolean(_()&&a.value)&&"text"===String(null==(t=null==(e=a.value)?void 0:e.printElementType)?void 0:t.type)}function C(e=!1){var t,l,o,a,n,i,r,s,u;const d=h();if(d.length>1){const c=e?"top":"left",p=e?"height":"width",m=d.reduce((e,t)=>{var l,o;return e+=null!=(o=null==(l=null==t?void 0:t.options)?void 0:l[p])?o:0},0),v=d.length-1,f=(null!=(o=null==(l=null==(t=d[v])?void 0:t.options)?void 0:l[c])?o:0)+(null!=(i=null==(n=null==(a=d[v])?void 0:a.options)?void 0:n[p])?i:0)-(null!=(u=null==(s=null==(r=d[0])?void 0:r.options)?void 0:s[c])?u:0);return Math.max(0,+((f-m)/v).toFixed(2))}}const V=()=>{const e=h();e.length?a.value=e.find(e=>e.id===o.selectedId)||e[e.length-1]||null:a.value=null};function M(e,t,l=!0){d.value.updateOption(e,t),l&&V()}function S(e,t){var l;const o={shape:"square",size:"small"},n=null==(l=a.value)?void 0:l.options;if(e&&n){if(n[e]===t)return{...o,style:{color:"rgb(var(--primary-6))"}}}return o}function A(e){if(1===h().length){let t=e;"vertical"===e&&(t="center"),["left","vertical","right"].includes(e)?M("textAlign",t,!1):M("textContentVerticalAlign",t,!1)}else o.tpl&&o.tpl.setElsAlign(e);V()}w(()=>o.updateTime,V);const[T]=qt({visible:!1,fields:[],list:[],types:[{value:"field",label:"\u5b57\u6bb5\u540d"},{value:"string",label:"\u56fa\u5b9a\u503c "}]}),[E]=qt({visible:!1,px:void 0,mm:void 0,pt:void 0}),O=(e,t)=>{const l=Number(e);switch(t){case"pt":E.value.mm=+le.pt.toMm(l).toFixed(3),E.value.px=+le.pt.toPx(l).toFixed(3);break;case"mm":E.value.pt=+le.mm.toPt(l).toFixed(3),E.value.px=+le.mm.toPx(l).toFixed(3);break;default:E.value.pt=+le.px.toPt(l).toFixed(3),E.value.mm=+le.px.toMm(l).toFixed(3)}},R=t(()=>{const e=T.value.list;return{key:"test",source:Object.fromEntries([...e].filter(e=>e.field).map(e=>{let t="";switch(e.dataType){case"datetime":t=(new Date).toLocaleString();break;case"boolean":t=Math.random()>=.5?1:0}return[e.field,t]})),format:e}}),H=(e=0)=>{T.value.list.splice(e+1,0,{type:"string",field:"",value:"",start:void 0,length:void 0,dataType:void 0,format:void 0})};return(e,t)=>{const l=n("AButton"),h=n("AButtonGroup"),w=n("ADivider"),V=n("icon-lock"),$=n("icon-to-top"),B=n("icon-to-bottom"),L=n("icon-zoom-in"),D=n("icon-original-size"),P=n("ASpace"),q=n("a-select"),I=n("a-cascader"),j=n("a-input"),F=n("a-input-number"),N=n("icon-plus"),U=n("a-button"),K=n("icon-minus"),W=n("AForm"),G=n("AModal"),J=n("AInputNumber");return i(),r("div",Sl,[k("div",Al,[m(e.$slots,"left",{tools:d.value,options:a.value})]),k("div",Tl,[z(P,{size:"mini"},{default:p(()=>[z(h,{size:"mini"},{default:p(()=>[z(l,v({title:"\u9760\u5de6\u5bf9\u9f50"},S(),{onClick:t[0]||(t[0]=e=>A("left"))}),{icon:p(()=>[z(f(pl),{type:"icon-24gl-textAlignLeft"})]),_:1},16),z(l,v({title:"\u5c45\u4e2d\u5bf9\u9f50"},S(),{onClick:t[1]||(t[1]=e=>A("vertical"))}),{icon:p(()=>[z(f(pl),{type:"icon-24gl-textAlignCenter"})]),_:1},16),z(l,v({title:"\u9760\u5de6\u5bf9\u9f50"},S(),{onClick:t[2]||(t[2]=e=>A("right"))}),{icon:p(()=>[z(f(pl),{type:"icon-24gl-textAlignRight"})]),_:1},16),z(l,v({title:"\u9876\u7aef\u5bf9\u9f50"},S(),{onClick:t[3]||(t[3]=e=>A("top"))}),{icon:p(()=>[z(f(pl),{type:"icon-v-textAlignTop"})]),_:1},16),z(l,v({title:"\u5c45\u4e2d\u5bf9\u9f50"},S(),{onClick:t[4]||(t[4]=e=>A("horizontal"))}),{icon:p(()=>[z(f(pl),{type:"icon-v-textAlignCenter"})]),_:1},16),z(l,v({title:"\u5e95\u90e8\u5bf9\u9f50"},S(),{onClick:t[5]||(t[5]=e=>A("bottom"))}),{icon:p(()=>[z(f(pl),{type:"icon-v-textAlignBottom"})]),_:1},16),z(l,v({title:"\u6c34\u5e73\u7b49\u5206"},S(),{onClick:t[6]||(t[6]=e=>d.value.setElsSpace(!0,C()))}),{icon:p(()=>[z(f(pl),{type:"icon-v-lineSpacing"})]),_:1},16),z(l,v({title:"\u5782\u76f4\u7b49\u5206"},S(),{onClick:t[7]||(t[7]=e=>d.value.setElsSpace(!1,C(!0)))}),{icon:p(()=>[z(f(pl),{type:"icon-24gl-lineSpacing"})]),_:1},16)]),_:1}),z(w,{direction:"vertical",margin:2}),z(h,{size:"mini"},{default:p(()=>[z(l,v({title:"\u6807\u9898"},S("fontSize","19"),{onClick:t[8]||(t[8]=e=>M("fontSize","19"))}),{icon:p(()=>[z(f(pl),{type:"icon-24gl-title"})]),_:1},16),z(l,v({title:"\u6b63\u6587"},S("fontSize","9"),{onClick:t[9]||(t[9]=e=>M("fontSize","9"))}),{icon:p(()=>[z(f(pl),{type:"icon-24gl-fontSize"})]),_:1},16),z(l,v({title:"\u52a0\u7c97"},S("fontWeight","bold"),{onClick:t[10]||(t[10]=e=>M("fontWeight","bold"))}),{icon:p(()=>[z(f(pl),{type:"icon-24gl-bold"})]),_:1},16),z(l,v({title:"\u4e0b\u5212\u7ebf"},S("textDecoration","underline"),{onClick:t[11]||(t[11]=e=>M("textDecoration","underline"))}),{icon:p(()=>[z(f(pl),{type:"icon-24gl-underline"})]),_:1},16),z(l,v({title:"\u5220\u9664\u7ebf"},S("textDecoration","line-through"),{onClick:t[12]||(t[12]=e=>M("textDecoration","line-through"))}),{icon:p(()=>[z(f(pl),{type:"icon-24gl-strikethrough2"})]),_:1},16),z(l,v({title:"\u6e05\u9664\u683c\u5f0f"},S(),{onClick:t[13]||(t[13]=e=>(M("textDecoration","none",!1),M("fontSize","",!1),void M("fontWeight","400")))}),{icon:p(()=>[z(f(pl),{type:"icon-24gl-formatClear"})]),_:1},16)]),_:1}),z(w,{direction:"vertical",margin:2}),z(h,{disabled:1>_()},{default:p(()=>[z(l,v(S("draggable",!1),{title:"\u9501\u5b9a/\u53d6\u6d88",onClick:t[14]||(t[14]=e=>{var t,l;M("draggable",!1===(null==(l=null==(t=a.value)?void 0:t.options)?void 0:l.draggable))})}),{icon:p(()=>[z(V)]),_:1},16),z(l,v(S("zIndex","9"),{title:"\u7f6e\u4e8e\u9876\u5c42",onClick:t[15]||(t[15]=e=>M("zIndex","9"))}),{icon:p(()=>[z($)]),_:1},16),z(l,v(S("zIndex","1"),{title:"\u7f6e\u4e8e\u5e95\u5c42",onClick:t[16]||(t[16]=e=>M("zIndex","1"))}),{icon:p(()=>[z(B)]),_:1},16)]),_:1},8,["disabled"]),z(w,{direction:"vertical",margin:2}),z(l,v(S(),{title:"\u667a\u80fd\u7f29\u653e",onClick:t[17]||(t[17]=e=>function(){var e,t;const l=null==(t=null==(e=document.querySelector(".hiprint-printPanel.panel-index-0 > .design"))?void 0:e.style)?void 0:t.width,a=l?Number.parseInt(l,10):0;let n=2;n=a<=0?2:a<=15?5:a<=20?4:a<=40?3:2,o.setZoom(1===o.zoom?n:1)}())}),{icon:p(()=>[1===o.zoom?(i(),u(L,{key:0})):(i(),u(D,{key:1}))]),_:1},16),z(l,v(S(),{title:"\u5355\u4f4d\u8f6c\u6362",onClick:t[18]||(t[18]=e=>f(E).visible=!0)}),{icon:p(()=>[z(f(pl),{type:"icon-scale"})]),_:1},16),z(l,v(S(),{title:"\u81ea\u5b9a\u4e49\u683c\u5f0f",disabled:!x(),onClick:t[19]||(t[19]=e=>function(){var e,t,l,n;if(!x())return;const i=null!=(l=null==(t=null==(e=a.value)?void 0:e.options)?void 0:t.format)?l:"[]";T.value.visible=!0,T.value.fields=function e(t=[]){return t.filter(e=>e.field&&"table"!==e.type).map(t=>{var l,o;const a=t.field,n={label:null!=(l=t.text)?l:a,value:a};return"object"===t.type&&(null==(o=t.fields)?void 0:o.length)&&(n.children=e(t.fields)),n})}(null==(n=o.tpl)?void 0:n.fields),T.value.list=[];try{if(T.value.list=JSON.parse(i),!Array.isArray(T.value.list))throw new Error("not array")}catch(e){T.value.list=[]}T.value.list.length||H()}())}),{icon:p(()=>[z(f(pl),{type:"icon-zidingyi"})]),_:1},16,["disabled"])]),_:1})]),k("div",El,[m(e.$slots,"right",{tools:d.value,options:a.value})]),z(G,v({visible:f(T).visible,"onUpdate:visible":t[20]||(t[20]=e=>f(T).visible=e)},b,{width:960,title:"\u81ea\u5b9a\u4e49\u683c\u5f0f",onOk:t[21]||(t[21]=e=>(()=>{const e=JSON.stringify(T.value.list);M("dataType","format",!1),M("format",e),ne(".hiprint-option-item-datatype-input-format").addClass("hiprint-option-item-datatype-format").val(e).trigger("change").show().siblings().hide().removeClass("hiprint-option-item-datatype-format")})())}),{default:p(()=>{var e;return[z(W,{model:{},size:"small",class:"comp-hiprint-toolbar-form"},{default:p(()=>[(i(!0),r(s,null,c(f(T).list,(e,l)=>(i(),r("div",{key:l,class:"u-flex u-mt"},[k("div",Ol,[t[29]||(t[29]=k("span",{class:"comp-hiprint-toolbar-label"},"\u7c7b\u578b",-1)),k("div",Rl,[z(q,{modelValue:e.type,"onUpdate:modelValue":t=>e.type=t,options:f(T).types},null,8,["modelValue","onUpdate:modelValue","options"])])]),"field"===e.type?(i(),r("div",Hl,[t[34]||(t[34]=k("span",{class:"comp-hiprint-toolbar-label"},"\u5b57\u6bb5",-1)),k("div",$l,[k("div",Bl,[z(I,{"model-value":Array.isArray(e.field)?e.field:String(e.field||"").split("."),options:f(T).fields,"allow-search":"","allow-create":"","path-mode":"",placeholder:"\u8bf7\u9009\u62e9","trigger-props":{autoFitPopupMinWidth:!0,contentClass:"arco-empty-body"},"onUpdate:modelValue":t=>e.field=Array.isArray(t)?t.join("."):t},null,8,["model-value","options","onUpdate:modelValue"])]),k("div",Ll,[t[30]||(t[30]=k("label",{class:"comp-hiprint-toolbar-label"},"\u683c\u5f0f\u7c7b\u578b",-1)),k("div",Dl,[z(q,{modelValue:e.dataType,"onUpdate:modelValue":t=>e.dataType=t,style:{width:"100%"},"allow-clear":"","trigger-props":{autoFitPopupMinWidth:!0,contentClass:"arco-empty-body"},options:[{label:"\u65e5\u671f\u683c\u5f0f",value:"datetime"},{label:"\u5e03\u5c14\u503c",value:"boolean"}],placeholder:"\u9ed8\u8ba4"},null,8,["modelValue","onUpdate:modelValue"])]),t[31]||(t[31]=k("span",{class:"comp-hiprint-toolbar-label"},"\u683c\u5f0f",-1)),k("div",Pl,["datetime"===e.dataType?(i(),u(q,{key:0,modelValue:e.format,"onUpdate:modelValue":t=>e.format=t,style:{width:"100%"},"allow-clear":"","trigger-props":{autoFitPopupMinWidth:!0,contentClass:"arco-empty-body"},options:f(y),placeholder:"\u9ed8\u8ba4"},null,8,["modelValue","onUpdate:modelValue","options"])):(i(),u(j,{key:1,modelValue:e.format,"onUpdate:modelValue":t=>e.format=t,"allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]))])]),k("div",ql,[t[32]||(t[32]=k("label",{class:"comp-hiprint-toolbar-label"},"\u56fa\u5b9a\u957f\u5ea6",-1)),k("div",Il,[z(F,{modelValue:e.length,"onUpdate:modelValue":t=>e.length=t,min:0,"allow-clear":"","trigger-props":{autoFitPopupMinWidth:!0,contentClass:"arco-empty-body"},placeholder:"\u9ed8\u8ba4"},null,8,["modelValue","onUpdate:modelValue"])])]),k("div",jl,[t[33]||(t[33]=k("label",{class:"comp-hiprint-toolbar-label"},"\u5f00\u59cb\u4f4d\u7f6e",-1)),k("div",Fl,[z(F,{modelValue:e.start,"onUpdate:modelValue":t=>e.start=t,"allow-clear":"",min:0,placeholder:"\u9ed8\u8ba4"},null,8,["modelValue","onUpdate:modelValue"])])])])])):(i(),r("div",Nl,[t[35]||(t[35]=k("span",{class:"comp-hiprint-toolbar-label"},"\u5185\u5bb9",-1)),k("div",Ul,[z(j,{modelValue:e.value,"onUpdate:modelValue":t=>e.value=t},null,8,["modelValue","onUpdate:modelValue"])])])),k("div",Kl,[z(U,{shape:"circle",onClick:e=>H(l)},{icon:p(()=>[z(N)]),_:1},8,["onClick"])]),k("div",Wl,[z(U,{shape:"circle",onClick:e=>(e=>{T.value.list.length>1&&T.value.list.splice(e,1)})(l)},{icon:p(()=>[z(K)]),_:1},8,["onClick"])])]))),128))]),_:1}),t[36]||(t[36]=k("div",{style:{"padding-bottom":"12px","margin-bottom":"24px","border-bottom":"1px dashed #d2d2d2"}},null,-1)),k("div",Gl,g(null==(e=f(le).utils)?void 0:e.executeCustomFormat(R.value)),1)]}),_:1},16,["visible"]),z(G,v({visible:f(E).visible,"onUpdate:visible":t[28]||(t[28]=e=>f(E).visible=e)},b,{width:640,title:"\u5355\u4f4d\u8f6c\u6362"}),{default:p(()=>[k("div",Jl,[k("div",Yl,[z(J,{modelValue:f(E).mm,"onUpdate:modelValue":[t[22]||(t[22]=e=>f(E).mm=e),t[23]||(t[23]=e=>O(e,"mm"))],min:0,size:"large",mode:"button"},null,8,["modelValue"]),t[37]||(t[37]=k("div",null,"mm",-1))]),t[40]||(t[40]=k("div",{style:{width:"2em"}},null,-1)),k("div",Xl,[z(J,{modelValue:f(E).pt,"onUpdate:modelValue":[t[24]||(t[24]=e=>f(E).pt=e),t[25]||(t[25]=e=>O(e,"pt"))],min:0,size:"large",mode:"button"},null,8,["modelValue"]),t[38]||(t[38]=k("div",null,"pt",-1))]),t[41]||(t[41]=k("div",{style:{width:"2em"}},null,-1)),k("div",Zl,[z(J,{modelValue:f(E).px,"onUpdate:modelValue":[t[26]||(t[26]=e=>f(E).px=e),t[27]||(t[27]=e=>O(e,"px"))],min:0,size:"large",mode:"button"},null,8,["modelValue"]),t[39]||(t[39]=k("div",null,"px",-1))])])]),_:1},16,["visible"])])}}}),eo="",to={class:"comp-toolbar-ext__ul"},lo=["onClick"],oo={class:"comp-toolbar-ext__ul"},ao=["onClick","onMouseover","onMouseout"],no=a({__name:"toolbar-ext",props:{tpl:{default:void 0},updateTime:{default:0}},setup(e){const l=e;function o(){var e;if("function"==typeof(null==(e=l.tpl)?void 0:e.update))return l.tpl;throw new Error("[hi-print]: mounted error")}const a=t(()=>{const e=o();return e.updateTime=l.updateTime,[...e.getPanel().printElements].map(e=>{var t,l,o,a;return{id:e.id,title:(null==(t=e.options)?void 0:t.title)||"\u672a\u547d\u540d",locked:!1===(null==(l=e.options)?void 0:l.draggable),type:null==(o=e.printElementType)?void 0:o.type,_sourceType:null==(a=e.options)?void 0:a._sourceType}})}),m=t(()=>{const e=o();return e.updateTime=l.updateTime,e.historyList});function v(e,t){const l=o(),a=[...l.getPanel().printElements].find(t=>t.id===e.id);if(!a)return;const n=null==a?void 0:a.designTarget;"click"===t&&l.selectElementsId(a.id),"mouseover"===t&&l.hoverElementsId(a.id),"mouseout"===t&&l.hoverElementsId(a.id,!0),n.focus()}return(e,t)=>{const l=n("icon-history"),h=n("AButton"),y=n("icon-drag-arrow"),b=n("icon-expand"),w=n("icon-file"),_=n("a-popover"),C=n("icon-folder"),V=n("icon-lock"),M=n("AButtonGroup");return i(),u(M,{class:"comp-toolbar-ext"},{default:p(()=>[z(_,{title:"\u5386\u53f2\u8bb0\u5f55",position:"br",trigger:"click"},{content:p(()=>[k("ul",to,[(i(!0),r(s,null,c(m.value,(e,t)=>(i(),r("li",{key:t,onClick:t=>{return l=e,void o().update(l.json);var l}},["\u521d\u59cb"===e.type?(i(),u(l,{key:0})):"\u79fb\u52a8"===e.type?(i(),u(y,{key:1})):"\u5927\u5c0f"===e.type?(i(),u(b,{key:2})):(i(),u(w,{key:3})),x(" "+g(e.type),1)],8,lo))),128))])]),default:p(()=>[z(h,{title:"\u5386\u53f2\u8bb0\u5f55",size:"small",shape:"square"},{icon:p(()=>[z(l)]),_:1})]),_:1}),z(_,{title:"\u7ec4\u4ef6\u5217\u8868",position:"br",trigger:"click"},{content:p(()=>[k("ul",oo,[(i(!0),r(s,null,c(a.value,(e,t)=>(i(),r("li",{key:t,onClick:t=>v(e,"click"),onMouseover:t=>v(e,"mouseover"),onMouseout:t=>v(e,"mouseout")},[e.locked?(i(),u(V,{key:0,style:{right:"0",left:"auto"}})):d("",!0),x(" "+g(e.title)+" ",1),"object"===e._sourceType?(i(),u(C,{key:1})):(i(),u(f(pl),{key:2,type:f(cl)(e.type)},null,8,["type"]))],40,ao))),128))])]),default:p(()=>[z(h,{title:"\u7ec4\u4ef6\u5217\u8868",size:"small",shape:"square"},{icon:p(()=>[z(C)]),_:1})]),_:1})]),_:1})}}}),io="";function ro(e){return Array.isArray(e)?[...e]:[]}function so(e){return[{tid:`${e}.text`,title:"\u6587\u672c",type:"text",options:{height:13}},{tid:`${e}.longText`,title:"\u957f\u6587\u672c",type:"text",options:{width:200,height:40}},{tid:`${e}.number`,title:"\u6570\u503c",type:"text",options:{height:13}},{tid:`${e}.table`,title:"\u8868\u683c",type:"table",columns:[[{title:"",align:"center",field:"",width:100},{title:"",align:"center",field:"",width:100},{title:"",align:"center",field:"",width:100}]],editable:!0,columnDisplayEditable:!0,columnDisplayIndexEditable:!0,columnTitleEditable:!0,columnResizable:!0,columnAlignEditable:!0,options:{width:300}},{tid:`${e}.image`,data:"data:image/gif;base64,R0lGODdhAQABAIABAAAAAOjo6CwAAAAAAQABAAACAkwBADs=",title:"\u56fe\u7247",type:"image",options:{width:60,height:60}},{tid:`${e}.barcode`,title:"\u6761\u5f62\u7801",type:"text",options:{field:"barcode",testData:"123456789",height:32,textAlign:"center",textType:"barcode"}},{tid:`${e}.qrcode`,title:"\u4e8c\u7ef4\u7801",type:"text",options:{field:"qrcode",testData:"123456789",height:60,width:60,textAlign:"center",textType:"qrcode"}},{tid:`${e}.hline`,title:"\u6c34\u5e73\u7ebf",type:"hline"},{tid:`${e}.vline`,title:"\u5782\u76f4\u7ebf",type:"vline"},{tid:`${e}.rect`,title:"\u77e9\u5f62",type:"rect"},{tid:`${e}.oval`,title:"\u692d\u5706",type:"oval"}]}const uo="\u901a\u7528\u63a7\u4ef6",co="defaultModule",po=()=>{const e=so(co);return{list:e,addElementTypes:t=>{t.removePrintElementTypes(co),t.addPrintElementTypes(co,[new oe.PrintElementTypeGroup(uo,e)])}}},mo="\u6570\u636e\u63a7\u4ef6",vo="dataModule",fo=e=>{const t=so(vo),l=ro(e).map(e=>{const{field:l}=e,o=t.find(t=>t.type===e.type)||t[0],{type:a,options:n}=o,i={...o,tid:`${co}.${l}`,title:e.text,options:{...n,field:l,_sourceType:e.type}};if("table"===a){const t=[ro(e.fields).map((e,t)=>({title:e.text,align:"center",field:e.field,width:100,checked:t<8}))];i.columns=t,i.options.width=null}return i});return{list:l,addElementTypes:e=>{e.removePrintElementTypes(vo),e.addPrintElementTypes(vo,[new oe.PrintElementTypeGroup(mo,l)])}}},ho=e=>[{name:uo,type:1,value:co,...po()},{name:mo,type:2,value:vo,...fo(e)}],yo={class:"u-aside comp-hiprint-design"},go={class:"u-page u-page--row"},bo={class:"u-card u-h"},wo={class:"u-card__bd u-aside__bd",style:{padding:"0","overflow-y":"auto"}},_o={id:"HI_sideContainer"},ko={class:"u-main",style:{padding:"0"}},zo={class:"u-card u-h"},xo={class:"u-card__hd u-aside__hd"},Co={class:"u-main u-aside__bd",style:{padding:"0"}},Vo={id:"HI_bodyContainer"},Mo={class:"u-card__bd u-aside__bd comp-hiprint-scrollbar",style:{"overflow-x":"hidden","overflow-y":"auto"}},So={id:"HI_panelContainer"},Ao=219,To="ep-draggable-item arco-btn arco-btn-secondary arco-btn-shape-square arco-btn-size-mini arco-btn-status-normal",Eo=a({__name:"index",props:{template:{default:void 0},fields:{default:void 0},printData:{default:void 0}},emits:["onSave","onChange"],setup(e,{expose:t,emit:o}){const a=l(!0),v=l(!0),h=e,b=o,_=(e,{slots:t})=>{var l;const o=null!=(l=e.tid)?l:`defaultModule.${e.type}`,a=t.default?t.default():"",n=t.icon?t.icon():L(pl,{type:cl(e.type)});return L("a",{class:To,tid:o},[n,a])},C=l(0),V=l();function M(){var e;"function"==typeof(null==(e=V.value)?void 0:e.onResize)&&V.value.onResize()}let S;const T="#HI_mainContainer",E="#HI_panelContainer";async function O(){await F(),oe.PrintElementTypeManager.buildByHtml(ne(".ep-draggable-item"))}const H=l(),$=l(),B=l(),D=l([]),P=l();function j(){C.value=Date.now()}function N(){const{hiprintTemplate:e,providers:t}=function(){const e=ho(h.fields);return oe.init({providers:e}),O(),oe.setConfig({optionItems:[]}),ne(T).empty(),S=new oe.PrintTemplate({template:h.template,fields:h.fields,fontList:[{title:"\u5fae\u8f6f\u96c5\u9ed1",value:"Microsoft YaHei"},{title:"\u9ed1\u4f53",value:"STHeitiSC-Light"},{title:"\u5b8b\u4f53",value:"SimSun"},{title:"cursive",value:"cursive"}],dataMode:1,history:!0,willOutOfBounds:!0,qtDesigner:!0,paperNumberDisabled:!0,onUpdateError:e=>{},settingContainer:E}),S.design(T,{grid:!1}),{hiprintTemplate:S,providers:e}}();D.value=t[1].list,O(),B.value=e,Ml(e,{onSelect:e=>{P.value=e.printElement.id,j()},onSetting:()=>{P.value=null,j()},onData(e){b("onChange",e),"\u8c03\u6574\u5927\u5c0f"===e&&M(),j()}}),M()}function U(){return B.value?B.value.getJson():null}w(()=>h.fields,N),A(N),w(()=>h.template,()=>{B.value&&B.value.update(h.template)});const K=l(1);function W(e=1){B.value&&(e<.5&&(e=.5),e>5&&(e=5),K.value=e,B.value.zoom(e))}function G(){B.value&&H.value.show(B.value,h.printData)}function J(){var e,t;null==(t=null==(e=$.value)?void 0:e.show)||t.call(e,B.value,h.printData)}function Y(){B.value&&b("onSave",U())}return t({getRef:()=>B.value,getJson:U,setJson(e){B.value&&B.value.update("object"==typeof e?JSON.stringify(e):e)}}),(e,t)=>{const l=n("icon-folder"),o=n("AEmpty"),h=n("icon-right"),b=n("icon-left"),w=n("a-button"),S=n("icon-question-circle"),A=n("AButton"),T=n("AButtonGroup");return i(),r("div",yo,[k("div",go,[k("div",{class:"u-page__side",style:y({width:v.value?Ao+"px":"0px"})},[q(k("div",bo,[t[14]||(t[14]=k("div",{class:"u-card__hd u-aside__hd"},[k("strong",{class:"comp-hiprint-title"},"\u7ec4\u4ef6\u5e93")],-1)),k("div",wo,[k("div",_o,[z(fl,{title:"\u57fa\u7840"},{default:p(()=>[z(_,{type:"text"},{default:p(()=>[...t[2]||(t[2]=[x("\u6587\u672c",-1)])]),_:1}),z(_,{type:"number"},{default:p(()=>[...t[3]||(t[3]=[x("\u6570\u503c",-1)])]),_:1}),z(_,{type:"image"},{default:p(()=>[...t[4]||(t[4]=[x("\u56fe\u7247",-1)])]),_:1}),z(_,{type:"longText"},{default:p(()=>[...t[5]||(t[5]=[x("\u957f\u6587\u672c",-1)])]),_:1}),z(_,{type:"table"},{default:p(()=>[...t[6]||(t[6]=[x("\u6570\u636e\u8868\u683c",-1)])]),_:1}),z(_,{type:"hline"},{default:p(()=>[...t[7]||(t[7]=[x("\u6c34\u5e73\u7ebf",-1)])]),_:1}),z(_,{type:"vline"},{default:p(()=>[...t[8]||(t[8]=[x("\u5782\u76f4\u7ebf",-1)])]),_:1}),z(_,{type:"rect"},{default:p(()=>[...t[9]||(t[9]=[x("\u77e9\u5f62",-1)])]),_:1}),z(_,{type:"oval"},{default:p(()=>[...t[10]||(t[10]=[x("\u692d\u5706",-1)])]),_:1})]),_:1}),z(fl,{title:"\u6761\u7801"},{default:p(()=>[z(_,{type:"barcode"},{default:p(()=>[...t[11]||(t[11]=[x("\u6761\u5f62\u7801",-1)])]),_:1}),z(_,{type:"qrcode"},{default:p(()=>[...t[12]||(t[12]=[x("\u4e8c\u7ef4\u7801",-1)])]),_:1})]),_:1}),z(fl,{title:"\u4e1a\u52a1\u7ec4\u4ef6"},{default:p(()=>{var e;return[(i(!0),r(s,null,c(D.value,e=>{var t,o;return i(),u(_,{key:e.tid,tid:e.tid,type:e.type,style:y("font-weight: "+("object"===(null==(t=e.options)?void 0:t._sourceType)?"bold":"normal"))},R({default:p(()=>[x(" "+g(e.title),1)]),_:2},["object"===(null==(o=e.options)?void 0:o._sourceType)?{name:"icon",fn:p(()=>[z(l)]),key:"0"}:void 0]),1032,["tid","type","style"])}),128)),(null==(e=D.value)?void 0:e.length)?d("",!0):(i(),u(o,{key:0},{default:p(()=>[...t[13]||(t[13]=[k("small",null,"\u6682\u65e0\u6570\u636e",-1)])]),_:1}))]}),_:1})])])],512),[[I,v.value]]),z(w,{type:"secondary",status:"normal",size:"mini",class:"arco-btn-light u-page__arrow",style:y({zIndex:999,borderLeftWidth:v.value?"0":"1px"}),onClick:t[0]||(t[0]=e=>(v.value=!v.value,void M()))},{icon:p(()=>[v.value?(i(),u(b,{key:1})):(i(),u(h,{key:0}))]),_:1},8,["style"])],4),k("div",ko,[k("div",zo,[k("div",xo,[z(Ql,{tpl:B.value,"selected-id":P.value,"update-time":C.value,zoom:K.value,"set-zoom":W},{left:p(({options:t})=>[m(e.$slots,"toolbar-left",{tpl:B.value,options:t,updateTime:C.value})]),right:p(({options:t})=>[m(e.$slots,"toolbar-right",{tpl:B.value,options:t,updateTime:C.value},()=>[z(no,{tpl:B.value,"update-time":C.value},null,8,["tpl","update-time"])]),z(T,{size:"small"},{default:p(()=>[z(A,{shape:"square",title:"\u5e2e\u52a9",onClick:J},{icon:p(()=>[z(S)]),_:1}),z(A,{shape:"square",title:"\u9884\u89c8",onClick:G},{icon:p(()=>[z(f(pl),{type:"icon-24gl-eye"})]),_:1}),z(A,{shape:"square",title:"\u4fdd\u5b58",onClick:Y},{icon:p(()=>[z(f(pl),{type:"icon-baocun",size:"16"})]),_:1})]),_:1})]),_:3},8,["tpl","selected-id","update-time","zoom"])]),k("div",Co,[k("div",Vo,[t[15]||(t[15]=k("div",{id:"HI_scrollContainer"},[k("div",{id:"HI_mainContainer",class:"hiprint-printTemplate"})],-1)),z(hl,{ref_key:"guidesRef",ref:V,zoom:K.value,"main-container":"#HI_bodyContainer","warp-container":"#HI_scrollContainer"},null,8,["zoom"])])])])]),k("div",{class:"u-page__panel u-card",style:y({width:a.value?Ao+"px":"0px"})},[t[17]||(t[17]=k("div",{class:"u-card__hd u-aside__hd"},[k("strong",{class:"comp-hiprint-title"},"\u5c5e\u6027\u914d\u7f6e")],-1)),k("div",Mo,[k("div",So,[z(o,{style:{"padding-top":"32px"}},{default:p(()=>[...t[16]||(t[16]=[k("small",null,"\u6682\u65e0\u6570\u636e",-1)])]),_:1})])]),z(w,{type:"secondary",status:"normal",size:"mini",class:"arco-btn-light u-page__arrow",style:y({zIndex:999,borderRightWidth:a.value?"0":"1px"}),onClick:t[1]||(t[1]=e=>(a.value=!a.value,void M()))},{icon:p(()=>[a.value?(i(),u(h,{key:0})):(i(),u(b,{key:1}))]),_:1},8,["style"])],4)]),z(bl,{ref_key:"preViewRef",ref:H},null,512),z(xl,{ref_key:"kbdRef",ref:$},null,512)])}}}),Oo="",Ro=re("orc-dict",()=>{const e=l({});let t=null;return{dicts:e,registerLoadFn:function(e){t=e},getDict:async function(l,o=!1){if(!o&&e.value[l])return e.value[l];if(!t)throw new Error("[DictStore] \u5b57\u5178\u52a0\u8f7d\u51fd\u6570\u672a\u8bbe\u7f6e\uff0c\u8bf7\u5148\u8c03\u7528 registerLoadFn");const a=await t(l);return e.value[l]=a,e.value[l]},clearCache:function(t){t?delete e.value[t]:e.value={}}}});function Ho(e=[{value:"1",label:"\u5f85\u5ba1\u6838",color:"orangered"},{value:"2",label:"\u5df2\u5ba1\u6838",color:"green"},{value:"3",label:"\u5173\u95ed",color:"gray"}],t="small"){return{cell:L(l=>{var o;const{value:a,row:n}=l,i=e.find(e=>"function"==typeof e.value?e.value(String(null!=a?a:""),n):e.value===a),r="function"==typeof(null==i?void 0:i.label)?i.label(String(null!=a?a:""),n):null!=(o=null==i?void 0:i.label)?o:a;return L(Y,{bordered:!0,size:t,color:null==i?void 0:i.color},()=>r)}),div:!0,cellAttr:{value:e=>e.value,row:e=>e.record}}}const $o={string:102,date:72,time:132,number:82,link:122,status:82},Bo=(e,t,l)=>({dataIndex:e,title:t,...void 0!==(null==l?void 0:l.dataType)&&{width:$o[l.dataType]},...l}),Lo={formItem(e,t,l){if(1===arguments.length)return{model:e};const{options:o,defaultValue:a,props:n,componentAttr:i,events:r,type:s,...u}=l||{};return{type:s,model:e,name:t,...o&&{options:o},...void 0!==a&&{defaultValue:a},...(n||i)&&{componentAttr:{...i,...n}},...r&&{events:r},...u}},tableItem:Bo,formTable(e,t,l,o={}){const{span:a,required:n,defaultValue:i,events:r,show:s,...u}=o;return{type:nl,model:e,name:t,...a||n?{options:{...a&&{span:a},...n&&{required:n}}}:{},defaultValue:null!=i?i:[],...r&&{events:r},...void 0!==s&&{show:s},componentAttr:{...u,options:l}}},formLayer(e,t,l,o={}){const{span:a,required:n,defaultValue:i,events:r,show:s,...u}=o;return{type:il,model:e,name:t,...a||n?{options:{...a&&{span:a},...n&&{required:n}}}:{},...void 0!==i&&{defaultValue:i},...r&&{events:r},...void 0!==s&&{show:s},componentAttr:{...u,options:l}}},tableItemStatus:(e,t,l,o,a)=>Bo(e,t,{width:82,dataType:"status",...Ho(l,o),...a})},Do={install(t){t.use(e),t.component("OrcTable",Pe),t.component("OrcSearch",Rt),t.component("OrcForm",Xt),t.component("OrcFormButton",Zt)}};export{Lo as ColBuilder,Xt as OrcForm,Zt as OrcFormButton,il as OrcFormLayer,Qt as OrcFormSpace,nl as OrcFormTable,Eo as OrcHiPrint,rl as OrcHiddenView,Pt as OrcProvider,Lt as OrcQuill,Rt as OrcSearch,Pe as OrcTable,Fe as asRecordAny,Ne as asRecordArray,Qe as deepClone,ot as deepMerge,Do as default,Nt as delay,Kt as downLoadPdf,rt as download,tt as findObject,ce as formatTable,Wt as generateQRcodeBase64,nt as getData,lt as getUniqueId,ae as hiprint,We as isArray,Xe as isEmptyArray,Ye as isEmptyObject,Je as isNumber,Ge as isObject,Ue as log,Ft as mergeConfig,et as omitObject,It as onConfirm,Ut as queueMap,it as setData,Ze as toArray,Ke as typeName,Ro as useDictStore,$t as useOrcSearch,Ie as useOrcTable,je as useOrcTableFooter,qt as useState};
|
|
1
|
+
import e from"vxe-table";import"vxe-table/lib/style.css";import{computed as t,ref as l,inject as o,defineComponent as a,resolveComponent as n,openBlock as i,createElementBlock as r,Fragment as s,createBlock as u,createCommentVNode as d,renderList as c,withCtx as p,renderSlot as m,mergeProps as v,unref as f,resolveDynamicComponent as h,normalizeStyle as y,toDisplayString as g,shallowRef as b,watch as w,onUnmounted as _,createElementVNode as k,createVNode as z,createTextVNode as x,normalizeProps as C,guardReactiveProps as V,toRefs as M,normalizeClass as S,onMounted as A,reactive as T,provide as E,useAttrs as O,createSlots as R,Teleport as H,isRef as $,markRaw as B,h as L,toRef as D,Transition as P,withDirectives as I,vShow as q,withModifiers as j,nextTick as F}from"vue";import N from"xe-utils";import U from"vuedraggable";import{Message as K,Modal as W,Button as G,useFormItem as J,Tag as Y}from"@arco-design/web-vue";import X from"quill";import"quill/dist/quill.core.css";import"quill/dist/quill.snow.css";import Z from"bwip-js";import Q from"jspdf";import{snapdom as ee}from"@zumer/snapdom";import{formItemInjectionKey as te}from"@arco-design/web-vue/es/form/context";import{hinnn as le,hiprint as oe}from"@shaonq/hiprint";import{hiprint as ae}from"@shaonq/hiprint";import"@shaonq/hiprint/dist/style.css";import ne from"jquery";import ie from"@scena/guides";import{defineStore as re}from"pinia";const se="";function ue(e){return"function"==typeof e}function de(e){return!(!e||"object"!=typeof e||!["setup","props"].some(t=>t in e))}const ce={tf:(e,t)=>{if("number"!=typeof e)return e;if("number"!=typeof t){const l=String(e).split(".");2===l.length&&(t=l[1].length)}return N.commafy(e,{digits:t})},t:e=>N.toDateString(e,"yyyy-MM-dd"),time:(e,t="yyyy-MM-dd HH:mm:ss")=>N.toDateString(e,t),p:(e,t,l="%")=>"number"!=typeof e?e:("number"!=typeof t&&(t=2),(100*e).toFixed(t)+l)};function pe(e,t){var l;const o=null!=(l=e[t.dataIndex])?l:"";if(t.format&&ue(t.format))return t.format(o,e);if(t.dataType)switch(t.dataType){case"number":return"number"!=typeof o?o:ce.tf(o);case"date":return ce.t(o);case"time":return ce.time(o);default:return o}return o}function me(e,t){return ue(t.style)?t.style(e):{...t.style}}function ve(e){return(null==e?void 0:e.rowKey)||"_X_ROW_KEY"}function fe(e,l){return{disabledList:t(()=>({highlight:!0,reserve:e.option.reserve,trigger:e.option.selectedTrigger,checkMethod:({row:e})=>!e.disabled})),selectChangeEvent:({$table:t,checked:o,row:a})=>{if("checkbox"!==e.option.selectedType)return;const{option:n}=e,{fullData:i}=t.getTableData();if(a&&n.checkboxKey){const e=n.checkboxKey,l=i.filter(t=>t[e]&&t[e]===a[e]);l.length&&t.setCheckboxRow(l,o)}const r=t.getCheckboxRecords().concat(t.getCheckboxReserveRecords()),s=ve(e.option);s&&l("update:selectedKeys",r.map(e=>e[s]))},radioChangeEvent:({row:t})=>{if("radio"!==e.option.selectedType)return;const o=[t],a=ve(e.option);a&&l("update:selectedKeys",o.map(e=>e[a]))}}}function he(e){const t=l(Object.create({})),o=e.ref,a={...e,ref:e=>{e&&(t.value=e),"function"==typeof o&&o(e)}},n={getRowKey:()=>ve(e),getRowIndex:e=>t.value.getRowIndex(e),getRowSeq:e=>t.value.getRowSeq(e),getTableData(){var e,l;return t.value&&null!=(l=null==(e=t.value)?void 0:e.getTableData().fullData)?l:[]},setSelectionRow(e,l=!0){t.value&&("checkbox"===a.selectedType&&t.value.setCheckboxRow(e,l),"radio"===a.selectedType&&t.value.setRadioRow(e))},getSelection(){if(t.value){if("checkbox"===a.selectedType)return t.value.getCheckboxRecords();if("radio"===a.selectedType){const e=t.value.getRadioRecord();return e?[e]:[]}return[]}return[]},getReserveSelection(){if(t.value){if("checkbox"===a.selectedType){const l=t.value.getCheckboxRecords();return e.reserve?l.concat(t.value.getCheckboxReserveRecords()):l}if("radio"===a.selectedType){let l=t.value.getRadioRecord();return e.reserve&&!l&&(l=t.value.getRadioReserveRecord()),l?[l]:[]}return[]}return[]},getCheckboxKeySelection(t){const l=e.checkboxKey;t||(t=this.getSelection().map(e=>e[l]));return this.getTableData().filter(e=>t&&t.includes(e[l]))},clearSelection(){t.value&&("checkbox"===a.selectedType&&(e.reserve&&t.value.clearCheckboxReserve(),t.value.clearCheckboxRow()),"radio"===a.selectedType&&(e.reserve&&t.value.clearRadioReserve(),t.value.clearRadioRow()))},insertRow(e,l,o=!0){var a;const n=this.getRowKey();if(l&&"object"==typeof l&&o){const e=t.value.getRowIndex(l);e>=0&&(l=null!=(a=this.getTableData()[e+1])?a:-1)}const i={...e};i[n]&&delete i[n];return t.value.insertAt(i,l)},removeRows(){t.value&&("checkbox"===a.selectedType&&t.value.removeCheckboxRow(),"radio"===a.selectedType&&t.value.removeRadioRow())},removerRowIndex(e){if(t.value){const l=this.getTableData();l.splice(e,1),t.value.reloadData(l)}},async validate(e=void 0){e=null!=e?e:this.getSelection();let l="";const o=await t.value.validate(e);return o&&Object.values(o).forEach(e=>{e.forEach(({rowIndex:e,column:t,rules:o})=>{o.forEach(o=>{l=`\u5e8f\u53f7${e+1} ${t.title} ${o.message}`})})}),[l,e]}};return{tableOption:a,$grid:t,$gridTwo:n}}const ye=Symbol("OrcConfigProvider");function ge(){return o(ye,{useErrData:void 0})}const be={"zh-CN":{stripedTable:"\u8868\u683c\u6591\u9a6c\u7eb9",refresh:"\u5237\u65b0",settings:"\u8bbe\u7f6e",reset:"\u91cd\u7f6e",cancel:"\u53d6\u6d88",confirm:"\u786e\u8ba4",selection:"\u9009 {0} ",totalItems:"\u5171 {0} \u6761",open:"\u5f00",close:"\u5173"},"en-US":{stripedTable:"Striped Table",refresh:"Refresh",settings:"Settings",reset:"Reset",cancel:"Cancel",confirm:"Confirm",selection:"Selected {0} ",totalItems:"Total {0} items",open:"On",close:"Off"},"ja-JP":{stripedTable:"\u30c6\u30fc\u30d6\u30eb\u306e\u7e1e\u6a21\u69d8",refresh:"\u66f4\u65b0",settings:"\u8a2d\u5b9a",reset:"\u30ea\u30bb\u30c3\u30c8",cancel:"\u30ad\u30e3\u30f3\u30bb\u30eb",confirm:"\u78ba\u8a8d",selection:"{0}\u3092\u9078\u629e ",totalItems:"\u5408\u8a08{0}\u4ef6",open:"\u5165",close:"\u5207"}};function we(e){let t=null;return"string"==typeof e&&(t=be[e]||be["zh-CN"]),t||e}function _e(e,t,l){const o=Array.isArray(l)?l:[l],a=String(we(e)[t]);return l?a.replace(/{(\d+)}/g,(e,t)=>o[t]||""):a}const ke={key:0,class:"not-light-text"},ze=a({__name:"columns",props:{columns:{},option:{},tableData:{}},setup(e){const t=e;function l(e,t,l,o){const{dataIndex:a}=e,n=t[a];return{record:t,dataIndex:a,rowIndex:l,columnIndex:o,value:n,updateValue:e=>{e&&"object"==typeof e&&!Array.isArray(e)?Object.assign(t,e):t[a]=e},formatValue:pe(t,e)}}function o(e,t,o,a){const n={...e.cellAttr},i=l(e,t,o,a);return Object.keys(n).forEach(e=>{const t=n[e];if("function"==typeof t)try{n[e]=t(i)}catch(e){}}),n}function a(e,l,o){var a,n;const i=null!=(a=e[l])?a:{},r=null!=(n=e[l-1])?n:{};return("string"==typeof i[o]||"number"==typeof i[o])&&(t.option.skinRow&&"string"==typeof t.option.skinRow?i[t.option.skinRow]===r[t.option.skinRow]&&i[o]===r[o]:i[o]===r[o])}function b(e,l,o){let n={};if(t.option.skinRowStyle)try{n=l>0&&!a(e,l,o)&&t.option.skinRow&&e[l][String(t.option.skinRow)]===e[l-1][String(t.option.skinRow)]?t.option.skinRowStyle:{}}catch(e){}return n}return(t,w)=>{const _=n("vxe-column");return i(),r(s,null,["checkbox"===e.option.selectedType?(i(),u(_,{key:0,type:"checkbox",width:"30",fixed:"left",align:e.option.selectedAlign},null,8,["align"])):"radio"===e.option.selectedType?(i(),u(_,{key:1,type:"radio",width:"30",fixed:"left",align:e.option.selectedAlign},null,8,["align"])):d("",!0),(i(!0),r(s,null,c(e.columns.filter(e=>e.show),n=>(i(),r(s,{key:n.dataIndex},["index"===n.dataIndex?(i(),u(_,{key:0,type:"seq",field:n.dataIndex,width:n.width,title:n.title,sortable:n.sort,"header-align":n.headerAlign,"footer-align":n.footerAlign,align:n.align,"show-header-overflow":n.tooltip,"show-overflow":n.tooltip,fixed:n.fixed,"tree-node":n.treeNode,"title-prefix":n.help,filters:n.filters,"filter-multiple":n.filterMultiple,"filter-method":n.filterMethod},null,8,["field","width","title","sortable","header-align","footer-align","align","show-header-overflow","show-overflow","fixed","tree-node","title-prefix","filters","filter-multiple","filter-method"])):(i(),u(_,{key:1,field:n.dataIndex,width:n.width,title:n.title,sortable:n.sort,"header-align":n.headerAlign,"footer-align":n.footerAlign,align:n.align,"show-header-overflow":n.tooltip,"show-overflow":n.tooltip,fixed:n.fixed,"tree-node":n.treeNode,"title-prefix":n.help,filters:n.filters,"filter-multiple":n.filterMultiple,"filter-method":n.filterMethod,"edit-render":{enabled:Boolean(n.cell),placeholder:n.placeholder}},{edit:p(({row:e,rowIndex:a,columnIndex:s})=>[Boolean(n.cell)?m(t.$slots,"cell",v({key:0,ref_for:!0},l(n,e,a,s)),()=>[f(de)(n.cell)?(i(),u(h(n.cell),v({key:0,ref_for:!0},o(n,e,a,s)),null,16)):(i(),r("span",{key:1,style:y(f(me)(e,n))},g(f(pe)(e,n)),5))]):d("",!0)]),default:p(({row:d,rowIndex:c,columnIndex:p})=>[n.cell&&n.div?m(t.$slots,"cell",v({key:0,ref_for:!0},l(n,d,c,p)),()=>[f(de)(n.cell)?(i(),u(h(n.cell),v({key:0,ref_for:!0},o(n,d,c,p)),null,16)):(i(),r("span",{key:1,style:y(f(me)(d,n))},g(f(pe)(d,n)),5))]):(i(),r(s,{key:1},[e.option.skinRow&&!n.cell?(i(),r(s,{key:0},[c>0&&a(e.tableData,c,n.dataIndex)&&n.width?(i(),r("span",ke,g(e.option.skinRowText),1)):(i(),r("span",{key:1,style:y(b(e.tableData,c,n.dataIndex))},g(f(pe)(d,n)),5))],64)):(i(),r("span",{key:1,style:y(f(me)(d,n))},g(f(pe)(d,n)),5))],64))]),_:2},1032,["field","width","title","sortable","header-align","footer-align","align","show-header-overflow","show-overflow","fixed","tree-node","title-prefix","filters","filter-multiple","filter-method","edit-render"]))],64))),128))],64)}}}),xe={class:"orc-table"},Ce={class:"arco-card-header-title"},Ve={class:"u-card orc-table__setting"},Me={class:"u-card__hd orc-table__setting-header"},Se={class:"u-card__floor orc-table__setting-body"},Ae={class:"orc-table__draggable"},Te={class:"orc-table__draggable-item"},Ee={key:0,class:"u-flex"},Oe=["title"],Re={key:1,class:"orc-table__draggable-moving"},He={class:"u-card__floor u-flex orc-table__setting-footer"},$e={key:1,class:"orc-table__pagination"},Be={class:"u-flex u-flex--start"},Le={class:"u-flex__item"},De={class:"orc-table__pagination-inner"},Pe=a({__name:"table",props:{title:{},height:{},locale:{default:"zh-CN"},hideToolbar:{type:Boolean},hideSetting:{type:Boolean},hidePagination:{type:Boolean},isHover:{type:Boolean,default:!0},size:{default:"mini"},selectedKeys:{default:()=>[]},data:{default:()=>[]},option:{default:()=>({columns:[]})},hook:{}},emits:["update:selectedKeys","cellClick","onReset","change","confirm","cellDblclick"],setup(e,{expose:o,emit:a}){var c;const h=ge(),y=t(()=>h.useErrData),M=e,S=a,A=(e,t)=>_e(M.locale,e,t),T=t(()=>{const e=M.size;return e?"large"===e?"medium":e:"mini"}),E=t(()=>{var e,t;return null!=(t=null==(e=M.option)?void 0:e.pageSize)?t:20}),O=t(()=>{var e,t;return null!=(t=null==(e=M.option)?void 0:e.pageSizeOptions)?t:[10,20,50,100,200]}),R=l({page:1,size:E.value}),H=l(!1),$=l(!1),B=l(0),L=b(null!=(c=M.data)?c:[]),D=l([]),P=l({}),I=l({loading:!1,columns:[],tempWidth:{}}),{disabledList:q,selectChangeEvent:j,radioChangeEvent:F}=fe(M,S),{$grid:N,$gridTwo:K,tableOption:W}=he(M.option);function G(){const e=[...M.option.columns];return[...ue(M.option.resolveColumns)?M.option.resolveColumns(e):e].filter(Boolean).map(e=>{var t;return e.show=null==(t=e.show)||t,e})}const J=t({get:()=>M.selectedKeys,set:e=>S("update:selectedKeys",e)}),Y=t(()=>Boolean(M.option.url)),X=t(()=>{var e,t,l;return null!=(l=null==(t=(e=M.option).resolvePage)?void 0:t.call(e,R.value))?l:void 0}),Z=t(()=>{const e=G(),t=[...D.value],l=new Map(e.map(e=>[e.dataIndex,e])),o=new Map(t.map(e=>[e.dataIndex,e])),a=t.map(e=>e.dataIndex).filter(e=>l.has(e)),n=e.map(e=>e.dataIndex).filter(Boolean);return[...new Set([...a,...n])].map(e=>{var t;return{...l.get(e),...null!=(t=o.get(e))?t:{}}})});function Q(e=!0){H.value=e}const ee=new AbortController;async function te(){var e,t,l,o,a,n,i,r;if(Y.value){Q(!0);try{const[s,u]=await function(){var e,t;const l=null!=(e=M.option.useErrData)?e:y.value;if("function"!=typeof l)return[!0,{rows:[]}];let o={};X.value&&(o={...X.value});const a={["GET"===String(M.option.method).toUpperCase()?"params":"data"]:{...o,...M.option.data}},n={url:M.option.url,method:null!=(t=M.option.method)?t:"GET",...a,signal:ee.signal};return M.option.timeout&&(n.timeout=M.option.timeout),l(n)}();if(s)ue(M.option.error)&&(null==(r=(i=M.option).error)||r.call(i,u));else{const i=ue(null==(e=M.option)?void 0:e.resolveData)?M.option.resolveData(u,{...R.value}):null!=(l=null!=(t=null==u?void 0:u.rows)?t:u)?l:[];if(!Array.isArray(i))return;L.value=[...i],B.value=ue(M.option.resolveTotal)?M.option.resolveTotal(u):null!=(o=null==u?void 0:u.total)?o:0,ue(M.option.success)&&(null==(n=(a=M.option).success)||n.call(a,u))}}catch(e){}finally{Q(!1)}}}async function le(){H.value||(S("onReset"),Y.value?await te():(Q(!0),await new Promise(e=>{setTimeout(e,99)}),Q(!1)))}function oe(e,t=!1){e&&(R.value.page=e),M.option.reserve&&!t||(J.value=[],K.clearSelection()),te()}async function ae(e){R.value.size=e,oe(1,!0)}function ne(e=!1){P.value&&(e?P.value.togglePanel():P.value.showPanel(),I.value.columns=[...Z.value].map(e=>{const t=I.value.tempWidth[e.dataIndex];return t&&(e.width=t),e}))}function ie(){var e;const t=null==(e=P.value)?void 0:e.hidePanel;"function"==typeof t&&t()}function re(){I.value.loading=!0,D.value=[],I.value.tempWidth={},I.value.columns=G(),ne(),setTimeout(()=>{I.value.loading=!1},500)}function se(e){let t=e.column.property;t||"seq"!==e.column.type||(t="index"),t&&e.column.resizeWidth>0&&(I.value.tempWidth[t]=e.column.resizeWidth,ie())}function de(){var e;P.value&&(D.value=I.value.columns,S("confirm",Z.value),"function"==typeof(null==(e=M.hook)?void 0:e.setColumn)&&M.hook.setColumn(Z.value),I.value.tempWidth={},ie())}return w(()=>M.data,()=>{Y.value||(L.value=[...M.data])},{deep:!0}),w(()=>M.option.firstLoad,e=>{!0===e&&te()}),!1!==M.option.firstLoad&&te(),async function(){var e;if("function"==typeof(null==(e=M.hook)?void 0:e.getColumn)){const[e,t]=await M.hook.getColumn();!e&&t&&(D.value=t)}}(),_(()=>{ee.abort()}),o({loading:H,setLoading:Q,dataInit:e=>(!1!==e&&(R.value.page=1),J.value=[],K.clearSelection(),te()),loadData(e){N.value&&(N.value.reloadData(e),L.value=e)},...K}),(e,t)=>{var l;const o=n("a-switch"),a=n("a-tooltip"),c=n("icon-refresh"),h=n("a-button"),y=n("icon-settings"),b=n("icon-drag-dot-vertical"),w=n("a-checkbox"),_=n("a-input-number"),E=n("a-divider"),D=n("vxe-button"),N=n("vxe-pulldown"),K=n("a-space"),G=n("vxe-toolbar"),X=n("a-empty"),Q=n("a-spin"),ee=n("vxe-table"),te=n("a-pagination");return i(),r("div",xe,[M.hideToolbar?d("",!0):(i(),u(G,{key:0,size:"mini","class-name":"orc-table__toolbar"},{buttons:p(()=>[m(e.$slots,"default",{},()=>[k("div",Ce,g(M.title),1)])]),tools:p(()=>[z(K,{size:"mini"},{default:p(()=>[m(e.$slots,"tools"),z(a,{content:A("stripedTable"),mini:""},{default:p(()=>[z(o,{modelValue:$.value,"onUpdate:modelValue":t[0]||(t[0]=e=>$.value=e),size:"small"},{checked:p(()=>[x(g(A("open")),1)]),unchecked:p(()=>[x(g(A("close")),1)]),_:1},8,["modelValue"])]),_:1},8,["content"]),z(a,{content:A("refresh"),mini:""},{default:p(()=>[z(h,{loading:H.value,size:"small",class:"orc-table__btn orc-table__btn--borderless",onClick:le},{icon:p(()=>[z(c,{size:16})]),_:1},8,["loading"])]),_:1},8,["content"]),M.hideSetting?d("",!0):(i(),u(N,{key:0,ref_key:"settingRef",ref:P,transfer:""},{default:p(()=>[z(a,{content:A("settings"),mini:""},{default:p(()=>[z(h,{size:"small",class:"orc-table__btn orc-table__btn--borderless"},{icon:p(()=>[z(y,{size:16,onClick:t[1]||(t[1]=e=>ne(!0))})]),_:1})]),_:1},8,["content"])]),dropdown:p(()=>[k("div",Ve,[k("div",Me,[k("span",null,g(A("settings")),1),z(a,{content:A("reset"),mini:""},{default:p(()=>[z(h,{size:"small",class:"orc-table__btn orc-table__btn--borderless",loading:I.value.loading,onClick:re},{icon:p(()=>[z(c)]),_:1},8,["loading"])]),_:1},8,["content"])]),k("div",Se,[k("div",Ae,[z(f(U),{list:I.value.columns,class:"orc-table__draggable-list",group:"toolsGroup",animation:"300","drag-class":"orc-table__draggable-drag","ghost-class":"orc-table__draggable-ghost","chosen-class":"orc-table__draggable-chosen","item-key":"id",handle:".orc-table__draggable-moving"},{item:p(({element:e})=>{var t;return[k("div",Te,[e.title?(i(),r("div",Ee,[z(b,{class:"orc-table__draggable-moving"}),z(w,{modelValue:e.show,"onUpdate:modelValue":t=>e.show=t},null,8,["modelValue","onUpdate:modelValue"]),k("label",{class:"u-flex__item u-clamp orc-table__draggable-label",title:e.title},g(e.title),9,Oe),(null==(t=M.hook)?void 0:t.setColumn)?(i(),u(_,{key:0,modelValue:e.width,"onUpdate:modelValue":t=>e.width=t,size:"mini",class:"orc-table__width-input"},null,8,["modelValue","onUpdate:modelValue"])):d("",!0)])):(i(),r("div",Re,[z(E,{margin:6,type:"dashed"})]))])]}),_:1},8,["list"])])]),k("div",He,[z(D,{size:"mini",class:"u-flex__item",type:"text",status:"info",onClick:ie},{default:p(()=>[x(g(A("cancel")),1)]),_:1}),z(D,{size:"mini",class:"u-flex__item",type:"text",status:"primary",onClick:de},{default:p(()=>[x(g(A("confirm")),1)]),_:1})])])]),_:1},512))]),_:3})]),_:3})),z(ee,v({ref:f(W).ref,data:L.value,height:M.height,stripe:$.value,"keep-source":!1,"edit-config":{trigger:"click",mode:"row",showIcon:!1,autoClear:!1,showStatus:!1},"column-config":{isCurrent:!1,resizable:!0},"row-config":{isHover:M.isHover,isCurrent:!1,keyField:M.option.rowKey},"show-overflow":M.option.tooltip||"tooltip","show-header-overflow":M.option.tooltip||"tooltip",size:T.value,loading:H.value,"radio-config":f(q),"checkbox-config":{...f(q),checkField:M.option.checkKey,checkStrictly:M.option.checkStrictly},"header-cell-style":M.option.headerStyle,border:M.option.border,"show-footer":f(ue)(M.option.footerMethod),"footer-method":M.option.footerMethod,"footer-cell-style":M.option.footerStyle,"cell-style":M.option.cellStyle,"merge-footer-items":M.option.mergeFooter,"show-footer-overflow":null==(l=M.option)?void 0:l.footerTooltip,"filter-config":M.option.filterConfig,"edit-rules":f(ue)(M.option.rules)?M.option.rules():M.option.rules,"scroll-y":M.option.scrollY,"scroll-x":M.option.scrollX,"tree-config":M.option.treeConfig},M.option.tableProps,{onCheckboxChange:f(j),onCheckboxAll:f(j),onRadioChange:f(F),onResizableChange:se,onCellClick:t[2]||(t[2]=e=>S("cellClick",e)),onCellDblclick:t[3]||(t[3]=e=>S("cellDblclick",e)),onFooterCellClick:M.option.onFooterCellClick}),{empty:p(()=>[z(X)]),loading:p(()=>[z(Q)]),default:p(()=>[m(e.$slots,"columns",{},()=>[z(ze,{columns:Z.value,option:M.option,"table-data":L.value},{cell:p(t=>[m(e.$slots,"cell",C(V(t)))]),_:3},8,["columns","option","table-data"])])]),_:3},16,["data","height","stripe","row-config","show-overflow","show-header-overflow","size","loading","radio-config","checkbox-config","header-cell-style","border","show-footer","footer-method","footer-cell-style","cell-style","merge-footer-items","show-footer-overflow","filter-config","edit-rules","scroll-y","scroll-x","tree-config","onCheckboxChange","onCheckboxAll","onRadioChange","onFooterCellClick"]),Y.value&&!M.hidePagination?(i(),r("div",$e,[k("div",Be,[k("div",Le,[m(e.$slots,"footer")]),k("div",De,[z(K,{fill:"",direction:"vertical",align:"end"},{default:p(()=>[z(te,{current:R.value.page,"default-page-size":R.value.size,total:B.value,"auto-adjust":!1,size:M.size,"show-total":"","show-page-size":"","page-size-options":O.value,"page-size-props":{triggerProps:{autoFitPopupMinWidth:!0,contentClass:"arco-trigger-content-size-small"}},onPageSizeChange:ae,onChange:oe},{total:p(()=>[J.value.length?(i(),r(s,{key:0},[x(g(A("selection",J.value.length)),1)],64)):d("",!0),B.value?(i(),r(s,{key:1},[x(g(A("totalItems",B.value)),1)],64)):d("",!0)]),_:1},8,["current","default-page-size","total","size","page-size-options"])]),_:1})])])])):d("",!0)])}}}),Ie="",qe=e=>{const t=l({}),o=l([]),{tableOption:a,$grid:n,$gridTwo:i}=he(e),r={rowKey:i.getRowKey(),addKey(t){var l;const r=i.getTableData()[t];if(!r.disabled&&n.value){const t=i.getRowKey();if("checkbox"===a.selectedType){const a=n.value,{fullData:i}=a.getTableData();if(e.checkboxKey){const t=e.checkboxKey,l=i.filter(e=>e[t]&&e[t]===r[t]);l.length&&a.setCheckboxRow(l,!0)}else n.value.setCheckboxRow(r,!0);t&&(o.value=(null!=(l=n.value.getCheckboxRecords())?l:[]).map(e=>e[t]))}"radio"===a.selectedType&&(n.value.setRadioRow(r),n.value.getRadioRecord()&&t&&(o.value=[n.value.getRadioRecord()].map(e=>e[t])))}},setTableData(e){n.value&&n.value.reloadData(e)},setTableRow(t,l,o){if(n.value){const a=i.getTableData();"string"==typeof l?a[t][l]=o:Object.keys({...l}).forEach(e=>{a[t][e]=l[e]}),r.addKey(t),"function"==typeof e.footerMethod&&n.value.updateFooter()}}};return{tableRef:t,tableOptions:a,tableUtils:{...r,...i},$grid:n,selectedKeys:o}};function je(e,t){const{total:l="\u5408\u8ba1",affixIndex:o=1,ignoreIndex:a=2}={...t};return{footerStyle:{fontWeight:"bold"},footerMethod:({columns:t,data:n})=>[t.map((t,i)=>{if(i===o)return l;if(i<a)return null;const r=n.reduce((l,o)=>(((null==e?void 0:e.length)?e.includes(t.field):"number"==typeof o[t.field])&&(l=N.add(null!=l?l:0,o[t.field])),l),null);return null!==r?ce.tf(r):null})]}}function Fe(e){return Object.assign({},e)}function Ne(e){return Object.assign([],e)}function Ue(...e){e.forEach((e,t)=>{})}function Ke(e){return Object.prototype.toString.call(e).slice(8,-1)}function We(e){return Array.isArray(e)}function Ge(e){return"Object"===Ke(e)}function Je(e){return"Number"===Ke(e)&&"NaN"!==String(e)}function Ye(e){return"Object"===Ke(e)&&0===Object.keys(e).length}function Xe(e){return"Array"===Ke(e)&&0===e.length}function Ze(e){return Array.isArray(e)?e:[e]}const Qe=e=>{try{const t=new WeakSet,l=JSON.stringify(e,(e,l)=>{if("object"==typeof l&&null!==l){if(t.has(l))return;t.add(l)}return l});return JSON.parse(l)}catch{return"Array"!==Ke(e)?{}:[]}};function et(e,t=[]){"string"==typeof t&&(t=[t]);const l=Object.create({});return Object.keys(e).forEach(o=>{t.includes(o)||(l[o]=e[o])}),l}function tt(e,t=[]){"string"==typeof t&&(t=[t]);const l=Object.create({});return Object.keys(e).forEach(o=>{t.includes(o)&&(l[o]=e[o])}),l}const lt=()=>(Number(new Date)+Number(String(Math.random()).slice(2,15))).toString(32);function ot(...e){const t=Object.create({});return Qe(e).forEach(e=>{e&&Object.keys(e).forEach(l=>{const o=e[l];"Object"===Ke(o)?t[l]?t[l]=ot(t[l],o):t[l]=ot(o):t[l]=o})}),t}function at(e){return Array.isArray(e)?e:e.replace(/\[/g,".").replace(/\]/g,"").split(".")}function nt(e,t,l){if("object"!=typeof e)return l;const o=at(t).reduce((e,t)=>null==e?void 0:e[t],e);return void 0===o?l:o}function it(e,t,l){return"object"!=typeof e||at(t).reduce((e,t,o,a)=>o===a.length-1?(e[t]=l,e):(e[t]&&"object"==typeof e[t]||(e[t]=/^[0-9]{1,}$/.test(a[o+1])?[]:{}),e[t]),e),e}const rt=(e,t="")=>{if(/(chrome|safari|firefox)/g.test(navigator.userAgent.toLowerCase())){const l=document.createElement("a");if(l.href=e,void 0!==l.download&&(t=t||e.substring(e.lastIndexOf("/")+1,e.length),l.download=t),document.createEvent){const e=document.createEvent("MouseEvents");return e.initEvent("click",!0,!0),l.dispatchEvent(e),!0}}return~e.indexOf("?")||(e+="?download"),window.open(e,"_self"),!0};function st(e){if(e.multiple){const t={...e};return t.defaultValue?"Array"!==Ke(t.defaultValue)&&(t.defaultValue=String(t.defaultValue).split(",")):t.defaultValue=[],t}return e}const ut=(e,t)=>{const l=e.__vccOpts||e;for(const[e,o]of t)l[e]=o;return l},dt={};function ct(e,t){const l=n("a-date-picker"),o=n("a-range-picker");return i(),r("div",null,[!0!==e.$attrs.multiple?(i(),u(l,C(v({key:0},e.$attrs)),null,16)):(i(),u(o,C(v({key:1},e.$attrs)),null,16))])}const pt=ut(dt,[["render",ct]]),mt=Object.freeze(Object.defineProperty({__proto__:null,default:pt},Symbol.toStringTag,{value:"Module"})),vt={};function ft(e,t){const l=n("a-input");return i(),u(l,C(V(e.$attrs)),null,16)}const ht=ut(vt,[["render",ft]]),yt=Object.freeze(Object.defineProperty({__proto__:null,default:ht},Symbol.toStringTag,{value:"Module"})),gt={key:0,class:"u-flex"},bt=a({__name:"Number",props:{modelValue:[Number,Array],multiple:Boolean},emits:["update:model-value"],setup(e,{emit:l}){const o=l,a=e,{modelValue:s}=M(a);function d(e){const t=Ze(null==s?void 0:s.value),l=Number(null==t?void 0:t[e]);return Je(l)?l:void 0}const c=t(()=>d(0)),p=t(()=>d(1));return(t,l)=>{const s=n("a-input-number");return i(),r("span",null,[!0===e.multiple?(i(),r("div",gt,[z(s,v(t.$attrs,{style:{width:"auto"},"model-value":c.value,"onUpdate:modelValue":l[0]||(l[0]=e=>o("update:model-value",[e,p.value]))}),null,16,["model-value"]),l[3]||(l[3]=k("span",{class:"arco-picker-separator",style:{"min-width":"8px"}},"-",-1)),z(s,v(t.$attrs,{style:{width:"auto"},"model-value":p.value,"onUpdate:modelValue":l[1]||(l[1]=e=>o("update:model-value",[c.value,e]))}),null,16,["model-value"])])):(i(),u(s,v({key:1},t.$attrs,{"model-value":Number(a.modelValue),"onUpdate:modelValue":l[2]||(l[2]=e=>o("update:model-value",e))}),null,16,["model-value"]))])}}}),wt=Object.freeze(Object.defineProperty({__proto__:null,default:bt},Symbol.toStringTag,{value:"Module"})),_t={};function kt(e,t){const l=n("a-select");return i(),u(l,v(e.$attrs,{"trigger-props":{autoFitPopupMinWidth:!0,contentClass:"arco-trigger-content-size-small"}}),null,16)}const zt=ut(_t,[["render",kt]]),xt=Object.freeze(Object.defineProperty({__proto__:null,default:zt},Symbol.toStringTag,{value:"Module"})),Ct=Object.assign({"./Date.vue":mt,"./Input.vue":yt,"./Number.vue":wt,"./Select.vue":xt});function Vt(e){var t;return(null!=(t=e.split("/").pop())?t:e).replace(/\.vue$/i,"").toLowerCase()}function Mt(e){if(!e)return ht;const t=String(e).toLowerCase(),l=Object.keys(Ct).find(e=>Vt(e)===t);return l&&Ct[l]?Ct[l].default:ht}const St={"zh-CN":{resetSearch:"\u91cd\u7f6e\u641c\u7d22\u6761\u4ef6",fieldName:"\u5b57\u6bb5\u540d\u79f0",add:"\u6dfb\u52a0",delete:"\u5220\u9664",search:"\u641c\u7d22"},"en-US":{resetSearch:"Reset Search Criteria",fieldName:"Field Name",add:"Add",delete:"Delete",search:"Search"},"ja-JP":{resetSearch:"\u691c\u7d22\u6761\u4ef6\u3092\u30ea\u30bb\u30c3\u30c8",fieldName:"\u30d5\u30a3\u30fc\u30eb\u30c9\u540d",add:"\u8ffd\u52a0",delete:"\u524a\u9664",search:"\u691c\u7d22"}};function At(e){let t=null;return"string"==typeof e&&(t=St[e]||St["zh-CN"]),t||e}function Tt(e,t,l){const o=Array.isArray(l)?l:[l],a=String(At(e)[t]);return l?a.replace(/{(\d+)}/g,(e,t)=>o[t]||""):a}const Et={class:"u-flex u-flex--start"},Ot={class:"u-flex__item"},Rt=a({__name:"search",props:{loading:{type:Boolean},readonly:{type:Boolean},options:{default:()=>[]},modelValue:{default:()=>({})},size:{default:"small"},labelWidth:{default:"76px"},inputWidth:{default:"163px"},locale:{default:"zh-CN"}},emits:["onSearch","update:modelValue"],setup(e,{emit:o}){const a=o,b=e,w=(e,t)=>Tt(b.locale,e,t),_=l();function C(){return Object.assign([],b.options).map(st)}function V(){return C().filter(e=>!1!==e.show)}function M(){const e={};return V().forEach(t=>{e[t.name]=st(t).defaultValue}),e}const A=t(()=>b.size),T=l({...M(),...b.modelValue});const E=l(V());function O(){return Object.assign([],E.value)}const R=l(!1);function H(){_.value&&_.value.clearValidate()}const $=t(()=>C().map(e=>({label:e.label,value:e.name,disabled:O().some(t=>t.name===e.name)})));function B(){const e=Object.keys(T.value).reduce((e,t)=>{const l=T.value[t];return We(l)?e[t]=l.some(e=>!!e)?l.join(","):"":e[t]=l,e},{});return a("update:modelValue",e),e}async function L(){if(_.value){await new Promise(e=>{var t;null==(t=_.value)||t.validate(t=>{var l,o;const a=null==(o=null==(l=Object.values({...t}))?void 0:l[0])?void 0:o.label;a&&K.warning(`\u8bf7\u8f93\u5165${a}`),e(!t)})})&&a("onSearch",B())}}return(e,t)=>{const l=n("icon-refresh"),o=n("a-button"),a=n("a-select"),D=n("a-form-item"),P=n("icon-plus-circle"),I=n("icon-delete"),q=n("a-space"),j=n("a-input-group"),F=n("icon-search"),N=n("a-form");return i(),r("div",{class:S({"shaonq--search":!0,[`shaonq--search-${A.value}`]:!0})},[m(e.$slots,"head"),k("div",Et,[k("div",Ot,[z(q,{size:1,align:"start"},{default:p(()=>[b.readonly?d("",!0):(i(),u(o,{key:0,type:"outline",class:"arco-btn-light",size:A.value,title:w("resetSearch"),loading:R.value,onClick:t[0]||(t[0]=e=>(R.value=!0,E.value=V(),T.value={...M()},void setTimeout(()=>{H(),R.value=!1},200)))},{icon:p(()=>[z(l)]),_:1},8,["size","title","loading"])),z(N,{ref_key:"formRef",ref:_,model:T.value},{default:p(()=>[z(q,{size:A.value,wrap:""},{default:p(()=>[(i(!0),r(s,null,c(E.value,(e,l)=>(i(),u(j,{key:l,size:A.value},{default:p(()=>[z(q,{size:1},{default:p(()=>[b.readonly?(i(),r("div",{key:1,style:y({width:b.labelWidth})},g(e.label),5)):(i(),u(a,{key:0,"model-value":e.name,options:$.value,style:y({width:b.labelWidth}),placeholder:w("fieldName"),"allow-search":"",size:A.value,"trigger-props":{autoFitPopupMinWidth:!0,contentClass:"arco-trigger-content-size-small"},onChange:e=>function(e,t){const l=C().find(e=>e.name===t);l&&(E.value[e]=st(l),T.value[l.name]=E.value[e].defaultValue),T.value=tt(T.value,O().map(e=>e.name)),H()}(l,e)},null,8,["model-value","options","style","placeholder","size","onChange"])),z(D,{"no-style":"",field:e.name,label:e.label,required:e.required,rules:e.rules},{default:p(()=>[(i(),u(h(f(Mt)(e.type)),v({modelValue:T.value[e.name],"onUpdate:modelValue":t=>T.value[e.name]=t,size:A.value,style:{width:b.inputWidth},autocomplete:"off",readonly:!e.name,"allow-clear":""},{ref_for:!0},f(et)(e,["label","defaultValue","type","show"]),{onChange:t[1]||(t[1]=e=>B()),onPressEnter:t[2]||(t[2]=e=>L())}),null,16,["modelValue","onUpdate:modelValue","size","style","readonly"]))]),_:2},1032,["field","label","required","rules"]),b.readonly?d("",!0):(i(),r(s,{key:2},[l?(i(),u(o,{key:1,type:"primary",class:"arco-btn-light",title:w("delete"),size:A.value,onClick:t=>function(e,t){E.value.splice(e,1),delete T.value[t]}(l,e.name)},{icon:p(()=>[z(I)]),_:1},8,["title","size","onClick"])):(i(),u(o,{key:0,type:"primary",class:"arco-btn-light",title:w("add"),size:A.value,onClick:t[3]||(t[3]=e=>{E.value.push({type:"input",name:"",label:""})})},{icon:p(()=>[z(P)]),_:1},8,["title","size"]))],64))]),_:2},1024)]),_:2},1032,["size"]))),128)),m(e.$slots,"default"),z(q,{size:A.value},{default:p(()=>[z(o,{type:"primary",loading:b.loading,title:w("search"),size:A.value,onClick:t[4]||(t[4]=e=>L())},{icon:p(()=>[z(F)]),default:p(()=>[x(" "+g(w("search")),1)]),_:1},8,["loading","title","size"])]),_:1},8,["size"])]),_:3},8,["size"])]),_:3},8,["model"])]),_:3})])])],2)}}}),Ht="";function $t(e,t){const o="function"==typeof e,a=o?e():e,n=l(a),i=l({});return n.value.forEach(e=>{!1!==e.show&&(i.value[e.name]=st(e).defaultValue)}),t&&o&&w(t,()=>{n.value=o?e():e}),[n,i]}const Bt={textarea:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],mini:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["link","video","image"],["clean"]]},Lt=a({__name:"index",props:{modelValue:{type:String,default:""},toolbar:{type:[Array,String],default:"textarea"}},emits:["update:modelValue"],setup(e,{emit:t}){const o=e,a=t,n=l();let s;return A(()=>{n.value&&!s&&(s=new X(n.value,{modules:{toolbar:{container:"string"==typeof o.toolbar?Bt[o.toolbar]||Bt.textarea:o.toolbar,handlers:{}}},theme:"snow"}),s.root.innerHTML=o.modelValue,s.on("text-change",()=>{var e,t;a("update:modelValue",String(null!=(t=null==(e=null==s?void 0:s.root)?void 0:e.innerHTML)?t:""))}))}),_(()=>{s=null}),(e,t)=>(i(),r("div",{ref_key:"divRef",ref:n},null,512))}}),Dt="",Pt=a({__name:"index",props:{useErrData:{}},setup(e){const t=e,{useErrData:l}=M(t),o=T({useErrData:l});return E(ye,o),(e,t)=>m(e.$slots,"default")}});function It(e,t){const o=l(null!=e?e:{});return[o,l=>{var a;o.value={...e,...null!=l?l:{}},(null==(a=null==t?void 0:t.value)?void 0:a.resetFields)&&t.value.resetFields()}]}function qt(e,t,l="warning"){const o=null!=t?t:{okButtonProps:{status:"danger"},okText:"\u5220\u9664"};W[l]({title:"\u5220\u9664\u63d0\u793a",simple:!1,width:360,titleAlign:"start",content:"\u786e\u5b9a\u5220\u9664\u6b64\u6570\u636e\uff1f\u6b64\u64cd\u4f5c\u4e0d\u53ef\u64a4\u9500\u3002",hideCancel:!1,...o,async onOk(t){try{"function"==typeof o.onOk&&await o.onOk(t)}finally{e&&e()}}})}function jt(e,t){const l={...e};return Object.keys(t).forEach(e=>{const o=t[e];if(null==o)return;const a=l[e];null!=a?Array.isArray(a)||Array.isArray(o)?l[e]=[...Ze(a),...Ze(o)]:Ge(a)&&Ge(o)?l[e]=jt(a,o):l[e]=o:l[e]=o}),l}function Ft(e,t){return jt(e,t)}function Nt(e){return new Promise(t=>{setTimeout(t,e)})}function Ut(e,t=5){if(!e.length)return Promise.resolve([]);const l=new Array(e.length),o=e.length;let a=0,n=0,i=0;return new Promise(r=>{function s(e,t){Promise.resolve().then(t).then(t=>{l[e]=t}).catch(()=>{l[e]=null}).finally(()=>{n-=1,i+=1,i===o?r(l):setTimeout(()=>u(),0)})}function u(){for(;n<t&&a<e.length;){const t=a,l=e[t];a+=1,n+=1,s(t,l)}}u()})}async function Kt(e,t,l,o){var a;if(!t)throw new Error("downLoadPdf not element");const n=`${e||"\u65b0\u5efa PDF\u6587\u6863"}.pdf`;let i=(null==l?void 0:l.className)?Array.from(t.querySelectorAll(l.className)):[t];i.length||(i=[t]);const r=new Q({unit:"mm",format:"a4",orientation:"portrait",putOnlyUsedFonts:!0,compress:!0,floatPrecision:"smart",...o}),s=i.map(e=>()=>{var t;return ee.toCanvas(e,{scale:null!=(t=null==l?void 0:l.scale)?t:1.3})}),u=await Ut(s,3);if(u.some(e=>null===e))throw new Error("\u751f\u6210\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u662f\u5426\u6709\u4e0d\u53ef\u8bbf\u95ee\u7684\u7f51\u7edc\u8d44\u6e90");const d=u.filter(e=>!!e);let c=0;const p=null!=(a=null==l?void 0:l.paddingBuffer)?a:5,m=d.map((e,t)=>async()=>{t>0&&r.addPage();const o=e.width/210,a=e.height/o;if(a<=297)r.addImage(e,"PNG",0,0,210,a);else{let t=a,l=0;for(;t>p;)r.addImage(e,"PNG",0,l,210,a),t-=297,l-=297,t>p&&r.addPage()}c+=1,"function"==typeof(null==l?void 0:l.progress)&&l.progress(c,d.length)});await Ut(m),r.save(n)}function Wt(e){var t,l,o,a,n,i;if(!e.bcid)return"";const r=document.createElement("canvas");return r.height=1,r.width=1,Z.toCanvas(r,{bcid:e.bcid,text:null!=(t=e.defaultValue)?t:"Unknown",height:e.height,scaleX:null!=(o=null!=(l=e.scaleX)?l:e.scale)?o:2,scaleY:null!=(n=null!=(a=e.scaleY)?a:e.scale)?n:2,width:e.width,padding:null!=(i=e.padding)?i:0,..."qrcode"===e.bcid?{eclevel:"H"}:{}}),r.toDataURL()}function Gt(e,t,l){const o={...e.componentAttr};return"string"==typeof e.type||"modelValue"in o||(o.modelValue=t=>{var l;return null!=(l=t.getModel(t.model))?l:e.defaultValue},o.updateModelValue=e=>t=>e.setModel(e.model,t)),Object.entries(o).forEach(([e,a])=>{if("function"==typeof a&&t)try{o[e]=a(t,l)}catch{}}),o}function Jt(e){return e?"string"==typeof e?e.split(","):[...e]:[]}function Yt(e){return Jt(e).join(",")}const Xt=a({__name:"form",props:{config:{default:()=>[]},labelWidth:{default:"110px"},labelAlign:{default:"right"},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},hideSubmit:{type:Boolean,default:!1},modelValue:{default:void 0},gutter:{default:8},span:{default:24},formAttr:{default:void 0},grid:{default:void 0}},emits:["update:modelValue","submit","error"],setup(e,{expose:t,emit:o}){const a=e;function y(e){const t={...e};return a.config.forEach(e=>{e.dotNotation&&e.model&&(t[e.model]=Jt(t[e.model]))}),t}function g(e){const t={...e};return a.config.forEach(e=>{e.dotNotation&&e.model&&(t[e.model]=Yt(t[e.model]))}),t}const b=o,_=l(),k={},C=e=>"string"==typeof e&&/^a-(input|textarea)(-.+)?$/.test(e),V=e=>"string"==typeof e&&/^a-(select|tree-select|date-picker|time-picker|cascader)(-.+)?$/.test(e),M=e=>C(e.type)?{autocomplete:"new-password"}:null;function S(e){return Object.fromEntries(Object.values(a.config).filter(e=>e.model).map(t=>{var l;return[t.model,e?e(t):null!=(l=t.defaultValue)?l:null]}))}const[T,E]=It(S(e=>{var t,l;return null!=(l=null==(t=null==e?void 0:e.options)?void 0:t.options)?l:[]})),[O]=It(S(e=>!1!==(null==e?void 0:e.show))),[R,H]=It(y({...S(),...a.modelValue}),_);function $(e){return e.model?O.value[e.model]:!1!==e.show}function B(){var e,t;const l=g(R.value);b("update:modelValue",{...S(),...l}),"function"==typeof(null==(e=_.value)?void 0:e.validate)&&(null==(t=_.value)||t.validate())}function L(e){if(e.customClass)return"function"==typeof e.customClass?e.customClass(e,R.value):e.customClass}B();const D={getModelOption(e,t){const l=T.value[e];return t?null==l?void 0:l.find(e=>e.value===t):l},getModels:()=>R.value,getModel:e=>R.value[e],getShow:e=>O.value[e],setModelOption(e,t){T.value[e]=t},setModel(e,t){e&&("string"==typeof e?R.value[e]=t:R.value={...R.value,...e},B())},setShow(e,t){(Array.isArray(e)?e:[e]).forEach(e=>{O.value[e]=t})}},P=e=>({...D,model:e.model,...e.events,getFormItem:()=>e}),I=({options:e})=>a.disabled||!!(null==e?void 0:e.disabled),q=new Map,j=e=>{const{options:t,rules:l,name:o}=e;if("function"==typeof l)return l({...e},P(e));if(l)return l;if(!(null==t?void 0:t.required))return[];return(e=>{let t=q.get(e);return t||(t=[{required:!0,message:e}],q.set(e,t)),t})("string"==typeof e.type?`\u8bf7${C(e.type)?"\u8f93\u5165":"\u9009\u62e9"}${o}`:`${o}\u5fc5\u586b`)},{setModel:F,setModelOption:N}=D;async function U(){const e=await a.config.reduce(async(e,t)=>{if(await e)return e;const l=k[t.model];if(l&&"function"==typeof l.validate){const[e]=await l.validate();if(e)return b("error",`${t.name}: ${e}`),e}return""},Promise.resolve(""));return e?[!0,e]:new Promise(e=>{_.value.validate(t=>{if(t)e([!0,t]),b("error",t);else{const t=g(R.value);e([!1,t]),b("update:modelValue",t),b("submit",t)}})})}return w(()=>a.modelValue,()=>{R.value=y({...S(),...a.modelValue})},{deep:!1,immediate:!0}),w(()=>a.config,()=>{O.value=S(e=>!1!==(null==e?void 0:e.show))}),A(()=>{H(),E(),a.config.forEach(async e=>{var t;if("function"==typeof(null==(t=null==e?void 0:e.events)?void 0:t.onMounted)){const t=await e.events.onMounted(P(e));t&&e.model&&N(e.model,t)}})}),t({onSubmit:U,onReset:H,resetFields:function(){var e,t;"function"==typeof(null==(e=_.value)?void 0:e.resetFields)&&(null==(t=_.value)||t.resetFields())}}),(e,t)=>{const l=n("a-form-item"),o=n("a-col"),y=n("a-row"),g=n("icon-save"),b=n("a-button"),w=n("a-space"),S=n("a-form");return i(),u(S,v({ref_key:"formRef",ref:_,model:f(R),"label-col-props":{flex:a.labelWidth},"label-col-style":{paddingRight:"8px"},disabled:a.disabled,"label-align":a.labelAlign,class:"orc-form"},a.formAttr,{size:"small"}),{default:p(()=>[z(y,{gutter:a.gutter},{default:p(()=>[(i(!0),r(s,null,c(a.config,(t,n)=>{var c,y;return i(),r(s,{key:n},[$(t)?(i(),u(o,v({key:0,ref_for:!0},a.grid,{span:(null==(c=t.options)?void 0:c.span)||a.span,offset:null==(y=t.options)?void 0:y.offset}),{default:p(()=>{var o,n;return[z(l,v({field:t.model,"row-class":L(t),label:t.name,"validate-trigger":t.validateTrigger,rules:j(t),disabled:I(t),help:null==(o=t.options)?void 0:o.help,tooltip:null==(n=t.options)?void 0:n.tooltip,"label-col-flex":a.labelWidth,"asterisk-position":"right"===a.labelAlign?"start":"end"},{ref_for:!0},t.itemAttr),{default:p(()=>{return[m(e.$slots,t.model,v({utils:P(t),componentAttr:f(Gt)(t,P(t))},{ref_for:!0},{...t.model?{value:f(R)[t.model],setValue:(l=t.model,e=>F(l,e)),options:f(T)[t.model]}:{}},{disabled:I(t)}),()=>{var e,l;return[(i(),u(h(t.type),v({ref_for:!0,ref:e=>{t.model&&(e?k[t.model]=e:delete k[t.model])},size:"small","input-attrs":M(t),placeholder:(null==(e=null==t?void 0:t.options)?void 0:e.placeholder)||(l=t.type,C(l)?"\u8bf7\u8f93\u5165":V(l)?"\u8bf7\u9009\u62e9":void 0),disabled:I(t),style:"string"!=typeof t.type||C(t.type)||V(t.type)?{width:"100%"}:{}},{ref_for:!0},{...t.model?{modelValue:f(R)[t.model],options:f(T)[t.model]}:{},...f(Gt)(t,P(t)),..."string"!=typeof t.type?{utils:P(t)}:{}},{onChange:e=>async function(e,t){var l;"function"==typeof(null==(l=t.events)?void 0:l.onChange)&&await t.events.onChange(e,P(t))}(e,t),"onUpdate:modelValue":e=>f(F)(`${t.model}`,e)}),null,16,["input-attrs","placeholder","disabled","style","onChange","onUpdate:modelValue"]))]})];var l}),_:2},1040,["field","row-class","label","validate-trigger","rules","disabled","help","tooltip","label-col-flex","asterisk-position"])]}),_:2},1040,["span","offset"])):d("",!0)],64)}),128)),m(e.$slots,"row",{onSubmit:U})]),_:3},8,["gutter"]),m(e.$slots,"default",{onSubmit:U},()=>[a.hideSubmit?d("",!0):(i(),u(l,{key:0},{default:p(()=>[z(w,null,{default:p(()=>[z(b,{type:"primary",loading:a.loading,onClick:t[0]||(t[0]=e=>U())},{icon:p(()=>[z(g)]),default:p(()=>[t[1]||(t[1]=x(" \u4fdd\u5b58 ",-1))]),_:1},8,["loading"])]),_:1})]),_:1}))])]),_:3},16,["model","label-col-props","disabled","label-align"])}}}),Zt=a({__name:"modal-form",props:{isView:{type:Boolean},disabled:{type:Boolean},title:{default:"\u4fe1\u606f"},span:{},gutter:{default:8},size:{default:"small"},config:{},modelValue:{default:void 0},labelWidth:{},buttonAttrs:{},modalAttrs:{}},emits:["update:modelValue","submit","error"],setup(e,{expose:o,emit:a}){const r=e,s=a,[d,c]=It({}),y=()=>c({visible:!0,loading:!1}),b=()=>c({visible:!1}),w=O(),_=t(()=>{const e=tt(w,["class","style"]);return r.isView?e:{...e,disabled:r.disabled,type:"primary",size:r.size,...r.buttonAttrs,onClick:y}}),k=t(()=>et(r,["buttonAttrs","modalAttrs","title"])),M=l();async function S(){const[e,t]=await M.value.onSubmit();e||s("submit",{data:t,utils:{setVisible(e){d.value.visible=e},setLoading(e){d.value.loading=e},resetFields(){var e,t;null==(t=null==(e=M.value)?void 0:e.resetFields)||t.call(e)}}})}return o({openModal:y,hideModal:b,onSubmit:S}),(e,t)=>{const l=n("a-button"),o=n("a-modal");return i(),u(h(r.isView?"div":f(G)),C(V(_.value)),R({default:p(()=>[m(e.$slots,"default",{onSubmit:S,onShow:y},()=>[x(g(r.title),1)]),(i(),u(H,{to:"body"},[z(o,v({visible:f(d).visible,title:r.title,"title-align":"start","mask-closable":!1,class:"orc-form--modal","body-style":{minHeight:"280px"},"unmount-on-close":""},r.modalAttrs,{onCancel:b}),{footer:p(()=>[m(e.$slots,"footer",{onShow:y,onHide:b},()=>[z(l,{size:r.size,onClick:b},{default:p(()=>[...t[2]||(t[2]=[x("\u53d6\u6d88",-1)])]),_:1},8,["size"]),z(l,{type:"primary",size:r.size,loading:f(d).loading,onClick:S},{default:p(()=>[...t[3]||(t[3]=[x("\u786e\u8ba4",-1)])]),_:1},8,["size","loading"])])]),default:p(()=>[z(Xt,v({ref_key:"formRef",ref:M,"hide-submit":"","label-align":"left"},k.value,{onError:t[0]||(t[0]=e=>s("error",e)),"onUpdate:modelValue":t[1]||(t[1]=e=>s("update:modelValue",e))}),{row:p(()=>[m(e.$slots,"row",{onShow:y})]),_:3},16)]),_:3},16,["visible","title"])]))]),_:2},[!r.isView&&e.$slots.icon?{name:"icon",fn:p(()=>[m(e.$slots,"icon")]),key:"0"}:void 0]),1040)}}}),Qt=a({__name:"space",setup:e=>(E(te,{...o(te),error:!1}),(e,t)=>(i(),r("div",null,[m(e.$slots,"default")])))}),el="_X_ROW_KEY",tl=a({__name:"table",props:{size:{default:"mini"},modelValue:{default:void 0},updateModelValue:{},height:{default:180},options:{default:void 0},hideTools:{type:Boolean,default:!1},hideSeq:{type:Boolean},disabled:{type:Boolean},selectedKeys:{default:void 0},rowKey:{default:el},tableOptions:{default:void 0},utils:{}},emits:["reset","cellClick","update:selectedKeys"],setup(e,{expose:o,emit:a}){var y;const b=l(),w=e,_=a,k=l(null!=(y=w.selectedKeys)?y:[]),C=T({}),V=t(()=>{var e;return(null!=(e=w.options)?e:[]).map(e=>{var t,l,o,a;return{...e,dataIndex:null!=(l=null!=(t=e.dataIndex)?t:e.model)?l:"",model:null!=(a=null!=(o=e.model)?o:e.dataIndex)?a:""}})});function M(){var e;return null!=(e=w.modelValue)?e:[]}function S(e){"function"==typeof w.updateModelValue&&w.updateModelValue(e)}const E=e=>{var t;return w.disabled||!!(null==(t=null==e?void 0:e.options)?void 0:t.disabled)};async function O(e,t,l){if(t){const{rowIndex:o}=e,a=V.value.find(e=>e.model===t);a&&await async function(e,t){var l;w.utils&&"function"==typeof(null==(l=t.events)?void 0:l.onChange)&&await t.events.onChange(e,w.utils)}([l,e],a);const n=[...M()];n[o]={...n[o],[t]:l},S(n)}}return A(()=>{V.value.forEach(async e=>{var t;if("function"==typeof(null==(t=null==e?void 0:e.events)?void 0:t.onMounted)&&e.model&&w.utils){const t=await e.events.onMounted(w.utils);t&&(C[e.model]=t)}})}),o({async validate(){var e;return(null==(e=b.value)?void 0:e.validate)?b.value.validate(M()):["",[]]}}),(e,t)=>{const l=n("a-link"),o=n("a-button-group"),a=n("a-space"),y=n("vxe-column");return i(),u(f(Pe),{ref_key:"tableRef",ref:b,"selected-keys":k.value,"onUpdate:selectedKeys":t[2]||(t[2]=e=>k.value=e),class:"orc-vxe--static",data:M(),height:w.height,size:w.size,option:{rowKey:w.rowKey,selectedType:"checkbox",scrollX:{enabled:!0},scrollY:{enabled:!0},columns:[],...w.tableOptions},"hide-setting":"","hide-pagination":"",onCellClick:t[3]||(t[3]=e=>_("cellClick",e)),onOnReset:t[4]||(t[4]=e=>_("reset"))},{columns:p(()=>[!0!==w.hideTools?(i(),u(y,{key:0,type:"checkbox",width:"28"})):d("",!0),!0!==w.hideSeq?(i(),u(y,{key:1,type:"seq",title:"\u5e8f",width:"28",align:!0===w.hideTools?"center":"left","show-overflow":""},null,8,["align"])):d("",!0),(i(!0),r(s,null,c(V.value,(t,l)=>{var o;return i(),r(s,{key:l},[!1!==t.show?(i(),u(y,{key:0,field:t.model,title:t.name,width:t.width,align:t.align,"show-overflow":t.tooltip,"show-header-overflow":t.tooltip,"title-prefix":(null==(o=t.options)?void 0:o.required)?{icon:"vxe-cell--required-icon"}:void 0,sortable:t.sort,fixed:t.fixed},R({_:2},[!1!==t.div?{name:"default",fn:p(l=>[m(e.$slots,t.model,{row:l.row,model:t.model},()=>[!t.type&&t.model?(i(),r("span",v({key:0,style:f(me)(l.row,t)},{ref_for:!0},f(Gt)(t,w.utils,l)),g(f(pe)(l.row,t)),17)):(i(),u(h(t.type),v({key:1,size:"mini"},{ref_for:!0},{...t.model?{"model-value":l.row[t.model],options:C[t.model]}:{},...f(Gt)(t,w.utils,l)},{disabled:E(t),"onUpdate:modelValue":e=>O(l,t.model,e)}),null,16,["disabled","onUpdate:modelValue"]))])]),key:"0"}:void 0]),1032,["field","title","width","align","show-overflow","show-header-overflow","title-prefix","sortable","fixed"])):d("",!0)],64)}),128)),V.value.some(e=>"other"===e.model)?d("",!0):(i(),u(y,{key:2,field:"other"}))]),default:p(()=>[z(a,{size:w.size},{default:p(()=>[!0!==w.hideTools?m(e.$slots,"default",{key:0},()=>[E()?d("",!0):(i(),u(o,{key:0,size:w.size},{default:p(()=>[z(l,{type:"text",onClick:t[0]||(t[0]=e=>(()=>{const e=V.value.reduce((e,t)=>{var l;return t.model&&(e[t.model]=null!=(l=t.defaultValue)?l:null),e},{}),t=[...M()];t.push(e),S(t)})())},{default:p(()=>[...t[5]||(t[5]=[x("\u65b0\u589e",-1)])]),_:1}),z(l,{type:"text",status:"danger",disabled:!k.value.length,onClick:t[1]||(t[1]=e=>(S([...M()].filter(e=>!k.value.includes(e[w.rowKey]))),k.value=[],void _("update:selectedKeys",k.value)))},{default:p(()=>[...t[6]||(t[6]=[x("\u5220\u9664",-1)])]),_:1},8,["disabled"])]),_:1},8,["size"]))]):d("",!0),m(e.$slots,"title")]),_:3},8,["size"])]),_:3},8,["selected-keys","data","height","size","option"])}}}),ll="",ol=a({__name:"popup",props:{disabled:{type:Boolean,default:void 0},title:{default:"\u8bf7\u9009\u62e9"},size:{default:"small"},modelValue:{default:void 0},nameKey:{},options:{},pagination:{type:Boolean},keyword:{default:"keyword"},tableData:{},modalAttrs:{},tableAttrs:{},inputAttrs:{}},emits:["update:modelValue","change"],setup(e,{emit:l}){const o=e,{mergedDisabled:a,eventHandlers:r}=J(),s=t(()=>{var e;return null!=(e=o.disabled)?e:a.value}),c=l,[h,y]=It({visible:!1,keyword:""});function g(){s.value||y({visible:!0})}const b=()=>y({visible:!1}),{tableRef:w,selectedKeys:_,tableOptions:k}=qe(o.options);function C(e){const t={[o.keyword]:h.value.keyword,page:e};return"function"!=typeof(null==k?void 0:k.resolvePage)?t:k.resolvePage(t)||t}function V(){var e;null==(e=w.value)||e.dataInit()}function M(e){var t,l;const a=Yt(e.map(e=>{var t;return e[null!=(t=o.nameKey)?t:"name"]}));c("update:modelValue",a),c("change",{name:a,data:[...e]}),null==(l=null==(t=r.value)?void 0:t.onChange)||l.call(t),b()}function S({row:e}){"radio"===o.options.selectedType&&M([e])}return(t,l)=>{const a=n("a-input-search"),r=n("a-button");return i(),u(Qt,null,{default:p(()=>[m(t.$slots,"default",{value:o.modelValue,disabled:s.value,onShow:g},()=>[z(a,{size:o.size,"model-value":o.modelValue,readonly:"",style:{cursor:"pointer"},onClick:g},null,8,["size","model-value"])]),(i(),u(H,{to:"body"},[z(f(W),v({visible:f(h).visible,title:e.title,"title-align":"start","mask-closable":!1,size:o.size,"body-style":{padding:"0 0 12px 0"},width:750,footer:!0,"unmount-on-close":""},o.modalAttrs,{onCancel:b,onClose:b}),{footer:p(()=>[z(r,{size:o.size,onClick:l[2]||(l[2]=e=>b())},{default:p(()=>[...l[4]||(l[4]=[x("\u53d6\u6d88",-1)])]),_:1},8,["size"]),z(r,{type:"primary",size:o.size,disabled:!f(_).length,onClick:l[3]||(l[3]=e=>M(f(w).getSelection()))},{default:p(()=>[...l[5]||(l[5]=[x("\u786e\u8ba4",-1)])]),_:1},8,["size","disabled"])]),default:p(()=>{var e;return[z(f(Pe),v({ref_key:"tableRef",ref:w,"selected-keys":f(_),"onUpdate:selectedKeys":l[1]||(l[1]=e=>$(_)?_.value=e:null),data:null!=(e=o.tableData)?e:[],"hide-setting":"",option:{...f(k),resolvePage:C},height:330,size:o.size,"hide-pagination":!o.pagination},o.tableAttrs,{onCellDblclick:S}),{default:p(()=>[o.pagination?(i(),u(a,v({key:0,modelValue:f(h).keyword,"onUpdate:modelValue":l[0]||(l[0]=e=>f(h).keyword=e),style:{width:"192px"},placeholder:"\u6a21\u7cca\u641c\u7d22","allow-clear":"",size:o.size},o.inputAttrs,{onSearch:V}),null,16,["modelValue","size"])):d("",!0)]),_:1},16,["selected-keys","data","option","size","hide-pagination"])]}),_:1},16,["visible","title","size"])]))]),_:3})}}});function al(e){return B(e)}const nl=al(tl),il=al(ol),rl=a({__name:"index",props:{isShow:{type:Boolean},isDirection:{type:Boolean},formProps:{}},setup(e){const t=l();return(l,o)=>(i(),r("div",{style:y(e.isShow?{display:"block"}:{position:"absolute",clip:"rect(0px, 0px, 0px, 0px)",height:"0px",overflow:"auto"})},[k("div",v({ref_key:"print$",ref:t,style:[{position:"relative",width:"100%"},{maxWidth:e.isDirection?"297mm":"210mm"}]},e.formProps),[m(l.$slots,"default")],16)],4))}}),sl='window._iconfont_svg_string_4872361=\'<svg><symbol id="icon-scale" viewBox="0 0 1024 1024"><path d="M872.832 758.016h0.384v-2.368l-0.384 2.368z m-44.928-648.128l-245.376 0.128a27.648 27.648 0 0 0-7.808-0.128H196.096a86.4 86.4 0 0 0-86.272 86.272v631.872a86.4 86.4 0 0 0 86.272 86.272h149.12a86.4 86.4 0 0 0 86.272-86.272V416.96h421.056c1.856 0-1.92-0.128 0-0.512 31.808 1.984 61.632-26.24 61.632-56.32V196.224a86.4 86.4 0 0 0-86.272-86.272z m30.208 216.192c3.52 35.904-40.128 32.448-40.128 32.448H398.592c-1.792 0.64-3.264 1.408-4.864 2.048l-2.176 0.896c-10.048 4.864-16.128 12.096-16.128 25.28v437.12c0 18.944-15.424 34.304-34.304 34.304H200.192a34.304 34.304 0 0 1-34.24-34.304v-77.76h139.456a29.248 29.248 0 0 0 0-58.432h-139.52V592.576h95.616a29.312 29.312 0 0 0 0-58.496H165.952V438.976h139.456a29.248 29.248 0 0 0 0-58.496h-139.52V200.32c0-18.88 15.36-34.304 34.304-34.304h173.12v103.68c0 16.64 13.056 30.08 29.248 30.08 16.128 0 29.248-13.44 29.248-30.08v-103.68h117.056v81.792c0 16.512 13.12 30.016 29.184 30.016 16.128 0 29.248-13.44 29.248-30.08V166.08h95.104v103.68c0 16.64 13.184 30.08 29.248 30.08 16.128 0 29.184-13.44 29.184-30.08v-103.68h62.976c18.88 0 34.304 15.36 34.304 34.304v125.76z" fill="#525354" ></path></symbol><symbol id="icon-baocun" viewBox="0 0 1024 1024"><path d="M919.466667 264.533333V832c0 46.933333-38.4 85.333333-85.333334 85.333333h-640c-46.933333 0-85.333333-38.4-85.333333-85.333333V192c0-46.933333 38.4-85.333333 85.333333-85.333333h567.466667c6.4 0 10.666667 2.133333 14.933333 6.4l136.533334 136.533333c4.266667 4.266667 6.4 8.533333 6.4 14.933333z" fill="#1890FF" ></path><path d="M322.133333 106.666667h384v213.333333h-384zM258.133333 640h512v277.333333h-512z" fill="#FFFFFF" ></path><path d="M599.466667 149.333333h64v128h-64zM364.8 725.333333h298.666667v21.333334h-298.666667zM364.8 810.666667h298.666667v21.333333h-298.666667z" fill="#69C0FF" ></path></symbol><symbol id="icon-zidingyi" viewBox="0 0 1024 1024"><path d="M727.008 487.232l194.016-184.32a99.2 99.2 0 0 0 0-140.288l-48.416-48.416a99.2 99.2 0 0 0-138.464-1.76L544.64 292.384l-184.064-196.64-1.504-1.568a64.832 64.832 0 0 0-91.712-0.384L129.184 231.968a64.8 64.8 0 0 0-1.12 90.144l181.344 193.728-171.456 162.88a99.264 99.264 0 0 0-28.256 49.28l-28.992 123.744a65.632 65.632 0 0 0 82.4 77.92l119.296-35.136a99.744 99.744 0 0 0 40.32-23.232l169.056-160.608 203.616 217.536 1.504 1.568a64.832 64.832 0 0 0 91.712 0.384l138.176-138.176a64.8 64.8 0 0 0 1.12-90.144l-200.896-214.624zM319.424 786.176l-90.112-90.112a31.488 31.488 0 0 0-9.792-6.496L667.104 264.352l94.272 94.272c1.408 1.408 3.168 2.08 4.768 3.168L319.424 786.176zM778.208 158.784a35.2 35.2 0 0 1 49.12 0.64l48.416 48.416c13.76 13.76 13.76 36.032-0.64 50.4l-64.448 61.216c-1.28-2.08-2.24-4.288-4.064-6.112l-93.12-93.12 64.736-61.44zM288.512 399.904c8-0.128 16-3.168 22.112-9.28l48-48a31.968 31.968 0 1 0-45.248-45.248l-48 48a31.68 31.68 0 0 0-8.928 20.256L174.816 278.4c-0.512-0.512-0.512-1.024-0.352-1.152L312.64 139.04c0.128-0.128 0.672-0.128 1.248 0.416l184.384 196.992-142.432 135.328-67.328-71.872zM145.024 868.288a1.6 1.6 0 0 1-2.016-1.92l28.992-123.744c0.992-4.16 2.944-7.968 5.312-11.488a31.808 31.808 0 0 0 6.752 10.144l88.288 88.288a35.072 35.072 0 0 1-8 3.552l-119.328 35.168z m598.336 16.672c-0.128 0.128-0.672 0.128-1.248-0.416l-125.6-134.176a31.232 31.232 0 0 0 14.08-7.712l48-48a31.968 31.968 0 1 0-45.248-45.248l-48 48a31.68 31.68 0 0 0-7.296 11.904l-39.904-42.656 142.432-135.328 200.576 214.304c0.48 0.512 0.48 1.024 0.352 1.152l-138.144 138.176z" ></path></symbol><symbol id="icon-24gl-formatClear" viewBox="0 0 1024 1024"><path d="M960 938.666667a21.266667 21.266667 0 0 1-15.086667-6.246667L853.333333 840.833333l-91.58 91.586667a21.333333 21.333333 0 0 1-30.173333-30.173333L823.166667 810.666667l-91.586667-91.58a21.333333 21.333333 0 0 1 30.173333-30.173334L853.333333 780.5l91.58-91.586667a21.333333 21.333333 0 0 1 30.173334 30.173334L883.5 810.666667l91.586667 91.58A21.333333 21.333333 0 0 1 960 938.666667z m-384-128H64a21.333333 21.333333 0 0 1 0-42.666667h512a21.333333 21.333333 0 0 1 0 42.666667z m-256-128a21.893333 21.893333 0 0 1-3.4-0.266667 21.333333 21.333333 0 0 1-17.693333-24.44L383.726667 128H149.333333a21.333333 21.333333 0 0 1 0-42.666667h512a21.333333 21.333333 0 0 1 0 42.666667H426.666667a21.493333 21.493333 0 0 1-0.266667 3.373333l-85.333333 533.333334A21.333333 21.333333 0 0 1 320 682.666667z" ></path></symbol><symbol id="icon-qrcode" viewBox="0 0 1025 1024"><path d="M391.64878063 106.92682906v269.73658594c0 8.24195156-6.743415 14.98536563-14.98536563 14.98536562H106.92682906c-8.24195156 0-14.98536563-6.743415-14.98536562-14.98536562V106.92682906c0-8.24195156 6.743415-14.98536563 14.98536562-14.98536562h269.73658594c8.24195156 0 14.98536563 6.743415 14.98536562 14.98536562zM91.94146344 32C58.88 32 32 58.88 32 91.94146344v299.70731719c0 33.06146344 26.88 59.94146344 59.94146344 59.94146343h299.70731719c33.06146344 0 59.94146344-26.88 59.94146343-59.94146343V91.94146344c0-33.06146344-26.88-59.94146344-59.94146343-59.94146344H91.94146344z" ></path><path d="M271.76585375 215.57073125v52.44878062c0 2.06048813-1.68585375 3.74634187-3.74634187 3.74634188h-52.44878063c-2.06048813 0-3.74634187-1.68585375-3.74634094-3.74634188v-52.44878062c0-2.06048813 1.68585375-3.74634187 3.74634094-3.74634094h52.44878063c2.06048813 0 3.74634187 1.68585375 3.74634187 3.74634094z m-89.91219562-63.68780437c-16.57756125 0-29.97073125 13.39317094-29.97073125 29.97073125v119.88292687c0 16.57756125 13.39317094 29.97073125 29.97073125 29.97073219h119.88292687c16.57756125 0 29.97073125-13.39317094 29.97073219-29.97073219V181.85365813c0-16.57756125-13.39317094-29.97073125-29.97073219-29.97073125H181.85365813zM391.64878063 646.4v269.736585c0 8.24195156-6.743415 14.98536563-14.98536563 14.98536656H106.92682906c-8.24195156 0-14.98536563-6.743415-14.98536562-14.98536656V646.4c0-8.24195156 6.743415-14.98536563 14.98536562-14.98536563h269.73658594c8.24195156 0 14.98536563 6.743415 14.98536562 14.98536563zM91.94146344 571.47317094c-33.06146344 0-59.94146344 26.88-59.94146344 59.94146344v299.70731718c0 33.06146344 26.88 59.94146344 59.94146344 59.94146344h299.70731719c33.06146344 0 59.94146344-26.88 59.94146343-59.94146344V631.41463437c0-33.06146344-26.88-59.94146344-59.94146343-59.94146343H91.94146344z" ></path><path d="M271.76585375 755.04390219v52.44878062c0 2.06048813-1.68585375 3.74634187-3.74634187 3.74634188h-52.44878063c-2.06048813 0-3.74634187-1.68585375-3.74634094-3.74634188v-52.44878062c0-2.06048813 1.68585375-3.74634187 3.74634094-3.74634094h52.44878063c2.06048813 0 3.74634187 1.68585375 3.74634187 3.74634094z m-89.91219562-63.68780438c-16.57756125 0-29.97073125 13.39317094-29.97073125 29.97073125v119.88292688c0 16.57756125 13.39317094 29.97073125 29.97073125 29.97073218h119.88292687c16.57756125 0 29.97073125-13.39317094 29.97073219-29.97073218V721.32682906c0-16.57756125-13.39317094-29.97073125-29.97073219-29.97073125H181.85365813zM931.12195156 106.92682906v269.73658594c0 8.24195156-6.743415 14.98536563-14.98536656 14.98536562H646.4c-8.24195156 0-14.98536563-6.743415-14.98536563-14.98536562V106.92682906c0-8.24195156 6.743415-14.98536563 14.98536563-14.98536562h269.736585c8.24195156 0 14.98536563 6.743415 14.98536656 14.98536562zM631.41463437 32c-33.06146344 0-59.94146344 26.88-59.94146343 59.94146344v299.70731719c0 33.06146344 26.88 59.94146344 59.94146343 59.94146343h299.70731719c33.06146344 0 59.94146344-26.88 59.94146344-59.94146343V91.94146344c0-33.06146344-26.88-59.94146344-59.94146344-59.94146344H631.41463437z" ></path><path d="M811.23902469 215.57073125v52.44878062c0 2.06048813-1.68585375 3.74634187-3.74634188 3.74634188h-52.44878062c-2.06048813 0-3.74634187-1.68585375-3.74634094-3.74634188v-52.44878062c0-2.06048813 1.68585375-3.74634187 3.74634094-3.74634094h52.44878062c2.06048813 0 3.74634187 1.68585375 3.74634188 3.74634094z m-89.91219563-63.68780437c-16.57756125 0-29.97073125 13.39317094-29.97073125 29.97073125v119.88292687c0 16.57756125 13.39317094 29.97073125 29.97073125 29.97073219h119.88292688c16.57756125 0 29.97073125-13.39317094 29.97073218-29.97073219V181.85365813c0-16.57756125-13.39317094-29.97073125-29.97073218-29.97073125H721.32682906zM578.96585375 991.063415h44.95609781c4.12097531 0 7.49268281-3.3717075 7.49268282-7.49268375V817.79512156c0-4.12097531-3.3717075-7.49268281-7.49268282-7.49268281h-44.95609781c-4.12097531 0-7.49268281 3.3717075-7.49268281 7.49268281v165.77560969c0 4.12097531 3.3717075 7.49268281 7.49268281 7.49268375zM698.84878062 991.063415h44.95609782c4.12097531 0 7.49268281-3.3717075 7.49268281-7.49268375V878.67317094c0-4.12097531-3.3717075-7.49268281-7.49268281-7.49268281h-44.95609782c-4.12097531 0-7.49268281 3.3717075-7.49268281 7.49268281v104.89756031c0 4.12097531 3.3717075 7.49268281 7.49268281 7.49268375zM992 931.12195156v53.38536563c0 4.12097531-3.3717075 7.49268281-7.49268281 7.49268281H818.7317075c-4.12097531 0-7.49268281-3.3717075-7.49268281-7.49268281v-45.89268281c0-4.12097531 3.3717075-7.49268281 7.49268281-7.49268282h104.89756125c4.12097531 0 7.49268281-3.3717075 7.49268281-7.49268281v-44.95609781c0-4.12097531 3.3717075-7.49268281 7.49268282-7.49268281h44.95609687c4.12097531 0 7.49268281 3.3717075 7.49268375 7.49268281v52.44878062h0.936585zM938.61463437 781.2682925h44.95609688c4.12097531 0 7.49268281-3.3717075 7.49268375-7.49268281V578.96585375c0-4.12097531-3.3717075-7.49268281-7.49268375-7.49268281h-44.95609687c-4.12097531 0-7.49268281 3.3717075-7.49268282 7.49268281v194.80975594c0 4.12097531 3.3717075 7.49268281 7.49268282 7.49268281zM571.47317094 578.96585375v44.95609781c0 4.12097531 3.3717075 7.49268281 7.49268281 7.49268282h165.77560969c4.12097531 0 7.49268281-3.3717075 7.49268281-7.49268282v-44.95609781c0-4.12097531-3.3717075-7.49268281-7.49268281-7.49268281H578.96585375c-4.12097531 0-7.49268281 3.3717075-7.49268281 7.49268281zM571.47317094 698.84878062v44.95609782c0 4.12097531 3.3717075 7.49268281 7.49268281 7.49268281h44.95609781c4.12097531 0 7.49268281-3.3717075 7.49268281-7.49268281v-44.95609782c0-4.12097531-3.3717075-7.49268281-7.49268281-7.49268281h-44.95609781c-4.12097531 0-7.49268281 3.3717075-7.49268281 7.49268281zM871.18048813 758.79024406v104.89756125c0 4.12097531-3.3717075 7.49268281-7.49268282 7.49268282h-44.95609781c-4.12097531 0-7.49268281-3.3717075-7.49268281-7.49268282v-44.95609781c0-4.12097531-3.3717075-7.49268281-7.49268282-7.49268281H698.84878062c-4.12097531 0-7.49268281-3.3717075-7.49268281-7.49268281v-44.95609782c0-4.12097531 3.3717075-7.49268281 7.49268281-7.49268281h164.83902469c4.12097531 0 7.49268281 3.3717075 7.49268281 7.49268281zM811.23902469 578.96585375v134.8682925c0 4.12097531 3.3717075 7.49268281 7.49268281 7.49268281h44.95609781c4.12097531 0 7.49268281-3.3717075 7.49268281-7.49268281V578.96585375c0-4.12097531-3.3717075-7.49268281-7.49268281-7.49268281h-44.95609781c-4.12097531 0-7.49268281 3.3717075-7.49268281 7.49268281z" ></path></symbol><symbol id="icon-bar-code" viewBox="0 0 1024 1024"><path d="M0 256h64v512H0zM128 256h64v512h-64zM224 256h32v512h-32zM448 256h32v512h-32zM592 256h32v512h-32zM720 256h32v512h-32zM912 256h32v512h-32zM336 256h64v512h-64zM784 256h64v512h-64zM640 256h64v512h-64zM960 256h64v512h-64z" ></path></symbol><symbol id="icon-duohangshuru" viewBox="0 0 1024 1024"><path d="M843.40179753 70.13093706H180.59820247c-60.75699579 0-110.46726541 49.71026963-110.46726541 110.46726541v662.80359506c0 60.75699579 49.71026963 110.46726541 110.46726541 110.46726541h662.80359506c60.75699579 0 110.46726541-49.71026963 110.46726541-110.46726541V180.59820247c0-60.75699579-49.71026963-110.46726541-110.46726541-110.46726541z m44.1869059 773.27086047a44.73924267 44.73924267 0 0 1-44.1869059 44.1869059H180.59820247a44.73924267 44.73924267 0 0 1-44.1869059-44.1869059V180.59820247c0-23.97139626 20.27074371-44.18690591 44.1869059-44.1869059h662.80359506c23.97139626 0 44.18690591 20.27074371 44.1869059 44.1869059v662.80359506z" ></path><path d="M759.39144187 518.84897091h-179.50930745a33.14017975 33.14017975 0 1 0 0 66.28035951h179.50930745a33.14017975 33.14017975 0 1 0 0-66.28035951z m0 166.58463603h-179.50930745a33.14017975 33.14017975 0 0 0 0 66.28035951h179.50930745a33.14017975 33.14017975 0 1 0 0-66.28035951z m-179.50930745-346.86721388a33.14017975 33.14017975 0 0 0 0-66.28035951H241.57613322a33.14017975 33.14017975 0 1 0 0 66.28035951h136.04043788v380.00739363a33.14017975 33.14017975 0 1 0 66.28035951 0V338.56639306h135.98520381z" ></path></symbol><symbol id="icon-danhangshuru" viewBox="0 0 1024 1024"><path d="M880.24263113 70.13093706C920.72888319 70.13093706 953.86906294 103.27111681 953.86906294 143.75736887v736.48526226C953.86906294 920.72888319 920.72888319 953.86906294 880.24263113 953.86906294H143.75736887C103.27111681 953.86906294 70.13093706 920.72888319 70.13093706 880.24263113V143.75736887C70.13093706 103.27111681 103.27111681 70.13093706 143.75736887 70.13093706h736.48526226z m4.91579289 68.71063892H138.84157598v746.31684804h746.31684804V138.84157598z m-189.06472549 225.90555907h-147.25286494V732.93453212a36.84083359 36.84083359 0 0 1-73.68166718 0V364.69190099H327.90630147a36.84083359 36.84083359 0 1 1 0-73.62643311h368.18739706a36.84083359 36.84083359 0 1 1 0 73.62643311z" ></path></symbol><symbol id="icon-shuzishuru" viewBox="0 0 1024 1024"><path d="M163.5310099 71.12514245h693.1820936c50.98064276 0 92.35063468 41.42522469 92.35063337 92.40586745v693.1820936c0 50.98064276-41.36999063 92.35063468-92.40586744 92.35063337H163.5310099c-51.03587682 0-92.40586745-41.36999063-92.40586745-92.40586744V163.5310099c0-51.03587682 41.42522469-92.40586745 92.40586745-92.40586745z m0 64.6785833a27.72728416 27.72728416 0 0 0-27.72728415 27.72728415v693.1820936c0 15.24448269 12.42756741 27.6720501 27.72728415 27.67205009h693.1820936a27.72728416 27.72728416 0 0 0 27.67205009-27.72728416V163.5310099a27.72728416 27.72728416 0 0 0-27.72728416-27.72728415H163.5310099z" ></path><path d="M200.48231031 279.0797704v508.25988928h64.73381736V279.0797704H200.48231031z m300.36049541 55.45456702v166.3084683H339.11872852v295.7761043h226.45789584v-101.62988372h-64.73381864v36.89606636h-96.99025854V565.57662436h161.72407718V269.80052006h-226.45789584v101.62988373h64.73381866v-36.89606637h96.99025854z m253.41190827 397.35075524h-128.63913149v64.73381736h193.31771607V269.80052006h-193.31771607v64.73381736h128.69436556v397.35075524z" ></path><path d="M625.6155825 542.43373131h161.00604082v-64.62335052h-161.00604082z" ></path></symbol><symbol id="icon-verticalLine" viewBox="0 0 1024 1024"><path d="M469.333333 917.333333L469.333333 106.666667a21.333333 21.333333 0 0 1 42.666667-1e-8l0 810.66666602a21.333333 21.333333 0 0 1-42.666667-1e-8z" ></path></symbol><symbol id="icon-horizontalLine" viewBox="0 0 1024 1024"><path d="M917.333333 554.666667H106.666667a21.333333 21.333333 0 0 1 0-42.666667h810.666666a21.333333 21.333333 0 0 1 0 42.666667z" ></path></symbol><symbol id="icon-24gl-circle" viewBox="0 0 1024 1024"><path d="M512 42.666667C252.793333 42.666667 42.666667 252.793333 42.666667 512s210.126667 469.333333 469.333333 469.333333 469.333333-210.126667 469.333333-469.333333S771.206667 42.666667 512 42.666667z m0 896c-235.64 0-426.666667-191.026667-426.666667-426.666667s191.026667-426.666667 426.666667-426.666667 426.666667 191.026667 426.666667 426.666667-191.026667 426.666667-426.666667 426.666667z" ></path></symbol><symbol id="icon-24gl-eye" viewBox="0 0 1024 1024"><path d="M512 725.333333a213.473333 213.473333 0 0 1-201.92-282.34 21.333333 21.333333 0 0 1 40.373333 13.8A170.333333 170.333333 0 0 0 341.333333 512c0 94.106667 76.56 170.666667 170.666667 170.666667s170.666667-76.56 170.666667-170.666667-76.56-170.666667-170.666667-170.666667a169.96 169.96 0 0 0-92.813333 27.42 21.333333 21.333333 0 0 1-23.24-35.786666A212.56 212.56 0 0 1 512 298.666667a213.333333 213.333333 0 0 1 0 426.666666z m169.013333 143.12a535.22 535.22 0 0 0 342.046667-350.193333 21.333333 21.333333 0 0 0 0-12.52 534.826667 534.826667 0 0 0-946.2-153.493333A531.333333 531.333333 0 0 0 0.94 505.74a21.333333 21.333333 0 0 0 0 12.52 534.166667 534.166667 0 0 0 680.073333 350.193333zM512 170.666667c211.886667 0 403.5 140.033333 468.306667 341.333333-64.806667 201.333333-256.42 341.333333-468.306667 341.333333S108.5 713.333333 43.693333 512C108.5 310.7 300.113333 170.666667 512 170.666667z" ></path></symbol><symbol id="icon-24gl-rectangle" viewBox="0 0 1024 1024"><path d="M928 896H96a53.393333 53.393333 0 0 1-53.333333-53.333333V181.333333a53.393333 53.393333 0 0 1 53.333333-53.333333h832a53.393333 53.393333 0 0 1 53.333333 53.333333v661.333334a53.393333 53.393333 0 0 1-53.333333 53.333333zM96 170.666667a10.666667 10.666667 0 0 0-10.666667 10.666666v661.333334a10.666667 10.666667 0 0 0 10.666667 10.666666h832a10.666667 10.666667 0 0 0 10.666667-10.666666V181.333333a10.666667 10.666667 0 0 0-10.666667-10.666666z" ></path></symbol><symbol id="icon-24gl-strikethrough2" viewBox="0 0 1024 1024"><path d="M512 981.333333c-94.9 0-185.886667-23.02-256.193333-64.806666-72.333333-43-117.12-102.28-126.126667-166.92a21.333333 21.333333 0 0 1 42.26-5.88c7.18 51.54 44.706667 99.88 105.673333 136.12C341.413333 917.78 424.666667 938.666667 512 938.666667c92.806667 0 179.766667-23.193333 244.853333-65.333334 62.22-40.26 96.48-92.826667 96.48-148 0-32.666667-11.76-64.086667-34.953333-93.44a21.333333 21.333333 0 0 1 33.48-26.453333C880.74 642 896 683.446667 896 725.333333c0 35.893333-10.76 70.553333-32 103.013334-19.913333 30.453333-48.166667 57.653333-84 80.833333C708.126667 955.706667 612.933333 981.333333 512 981.333333z m405.333333-469.333333H106.666667a21.333333 21.333333 0 0 1 0-42.666667h165.606666a346.853333 346.853333 0 0 1-41.046666-23.4C199.333333 424.666667 174.193333 399.733333 156.466667 371.8 137.58 342 128 310.246667 128 277.333333s9.58-64.666667 28.466667-94.466666c17.726667-27.933333 42.866667-52.866667 74.76-74.133334C295.133333 66.126667 379.693333 42.666667 469.333333 42.666667a485.793333 485.793333 0 0 1 115.206667 13.586666c35.86 8.76 69.113333 21.506667 98.826667 37.88 29.9 16.48 55.333333 36.14 75.613333 58.433334 21.206667 23.333333 36.133333 48.86 44.36 75.886666a21.333333 21.333333 0 1 1-40.813333 12.426667c-12.84-42.16-48.266667-81.006667-99.753334-109.38C608.74 101.726667 540.046667 85.333333 469.333333 85.333333c-81.333333 0-157.466667 20.92-214.44 58.9C200.58 180.446667 170.666667 227.713333 170.666667 277.333333s29.913333 96.886667 84.226666 133.1C311.866667 448.413333 388 469.333333 469.333333 469.333333h448a21.333333 21.333333 0 0 1 0 42.666667z" ></path></symbol><symbol id="icon-24gl-table" viewBox="0 0 1024 1024"><path d="M928 938.666667H96a53.393333 53.393333 0 0 1-53.333333-53.333334V181.333333a53.393333 53.393333 0 0 1 53.333333-53.333333h832a53.393333 53.393333 0 0 1 53.333333 53.333333v704a53.393333 53.393333 0 0 1-53.333333 53.333334z m-245.333333-42.666667h245.333333a10.666667 10.666667 0 0 0 10.666667-10.666667v-202.666666h-256z m-298.666667 0h256v-213.333333H384z m-298.666667-213.333333v202.666666a10.666667 10.666667 0 0 0 10.666667 10.666667h245.333333v-213.333333z m597.333334-42.666667h256V426.666667h-256z m-298.666667 0h256V426.666667H384z m-298.666667 0h256V426.666667H85.333333z m853.333334-256V181.333333a10.666667 10.666667 0 0 0-10.666667-10.666666H96a10.666667 10.666667 0 0 0-10.666667 10.666666v202.666667z" ></path></symbol><symbol id="icon-24gl-title" viewBox="0 0 1024 1024"><path d="M874.666667 981.333333a21.333333 21.333333 0 0 1-21.333334-21.333333V512H170.666667v448a21.333333 21.333333 0 0 1-42.666667 0V64a21.333333 21.333333 0 0 1 42.666667 0v405.333333h682.666666V64a21.333333 21.333333 0 0 1 42.666667 0v896a21.333333 21.333333 0 0 1-21.333333 21.333333z" ></path></symbol><symbol id="icon-24gl-underline" viewBox="0 0 1024 1024"><path d="M917.333333 981.333333H106.666667a21.333333 21.333333 0 0 1 0-42.666666h810.666666a21.333333 21.333333 0 0 1 0 42.666666z m-405.333333-128a383.7 383.7 0 0 1-384-384V64a21.333333 21.333333 0 0 1 42.666667 0v405.333333c0 188.213333 153.12 341.333333 341.333333 341.333334s341.333333-153.12 341.333333-341.333334V64a21.333333 21.333333 0 0 1 42.666667 0v405.333333a383.7 383.7 0 0 1-384 384z" ></path></symbol><symbol id="icon-24gl-lineSpacing" viewBox="0 0 1024 1024"><path d="M192 981.333333a21.266667 21.266667 0 0 1-15.086667-6.246666l-85.333333-85.333334a21.333333 21.333333 0 0 1 30.173333-30.173333l48.913334 48.92V158.166667l-48.913334 48.92a21.333333 21.333333 0 0 1-30.173333-30.173334l85.333333-85.333333a21.333333 21.333333 0 0 1 30.173334 0l85.333333 85.333333a21.333333 21.333333 0 0 1-30.173333 30.173334L213.333333 158.166667v750.333333l48.913334-48.92a21.333333 21.333333 0 0 1 30.173333 30.173333l-85.333333 85.333334A21.266667 21.266667 0 0 1 192 981.333333z m768 0H448a21.333333 21.333333 0 0 1 0-42.666666h512a21.333333 21.333333 0 0 1 0 42.666666z m0-213.333333H448a21.333333 21.333333 0 0 1 0-42.666667h512a21.333333 21.333333 0 0 1 0 42.666667z m0-213.333333H448a21.333333 21.333333 0 0 1 0-42.666667h512a21.333333 21.333333 0 0 1 0 42.666667z m0-213.333334H448a21.333333 21.333333 0 0 1 0-42.666666h512a21.333333 21.333333 0 0 1 0 42.666666z m0-213.333333H448a21.333333 21.333333 0 0 1 0-42.666667h512a21.333333 21.333333 0 0 1 0 42.666667z" ></path></symbol><symbol id="icon-v-lineSpacing" viewBox="0 0 1024 1024"><path d="M42.666667 192a21.266667 21.266667 0 0 1 6.246666-15.086667l85.333334-85.33333301a21.333333 21.333333 0 0 1 30.173333 30.173333l-48.92 48.91333401L865.83333299 170.666667l-48.91999999-48.913334a21.333333 21.333333 0 0 1 30.173334-30.17333301l85.33333301 85.33333301a21.333333 21.333333 0 0 1-1e-8 30.173334l-85.333333 85.333333a21.333333 21.333333 0 0 1-30.173334-30.173333L865.83333299 213.333333l-750.33333299 0 48.92 48.913334a21.333333 21.333333 0 0 1-30.173333 30.173333l-85.333334-85.333333A21.266667 21.266667 0 0 1 42.666667 192z m0 768L42.66666699 448a21.333333 21.333333 0 0 1 42.66666601 0l0 512a21.333333 21.333333 0 0 1-42.666666 0z m213.333333 0L256 448a21.333333 21.333333 0 0 1 42.666667 0l0 512a21.333333 21.333333 0 0 1-42.666667 0z m213.333333 0L469.333333 448a21.333333 21.333333 0 0 1 42.666667-1e-8l0 512.00000001a21.333333 21.333333 0 0 1-42.666667 0z m213.333334 0L682.666667 448a21.333333 21.333333 0 0 1 42.666666 0l0 512a21.333333 21.333333 0 0 1-42.666666 0z m213.333333 0L896 448a21.333333 21.333333 0 0 1 42.666667 0l0 512a21.333333 21.333333 0 0 1-42.666667 0z" ></path></symbol><symbol id="icon-v-textAlignBottom" viewBox="0 0 1024 1024"><path d="M42.66666699 106.666667l1e-8 853.333333a21.333333 21.333333 0 0 0 42.666666 0L85.333333 106.666667a21.333333 21.333333 0 0 0-42.66666601 0z m213.33333301 341.333333l0 512a21.333333 21.333333 0 0 0 42.666667 0L298.666667 448a21.333333 21.333333 0 0 0-42.666667 0zM469.333333 106.666667l0 853.333333a21.333333 21.333333 0 0 0 42.666667 0L512 106.66666699a21.333333 21.333333 0 0 0-42.666667 1e-8z m213.333334 341.333333l0 512a21.333333 21.333333 0 0 0 42.666666 0L725.333333 448a21.333333 21.333333 0 0 0-42.666666 0zM896 106.666667l0 853.333333a21.333333 21.333333 0 0 0 42.666667 0L938.666667 106.666667a21.333333 21.333333 0 0 0-42.666667 0z" ></path></symbol><symbol id="icon-24gl-picture" viewBox="0 0 1024 1024"><path d="M885.333333 938.666667H138.666667a53.393333 53.393333 0 0 1-53.333334-53.333334V138.666667a53.393333 53.393333 0 0 1 53.333334-53.333334h746.666666a53.393333 53.393333 0 0 1 53.333334 53.333334v746.666666a53.393333 53.393333 0 0 1-53.333334 53.333334z m-600.5-42.666667H885.333333a10.666667 10.666667 0 0 0 10.666667-10.666667v-215.166666l-185.126667-185.12a10.666667 10.666667 0 0 0-15.08 0zM128 798.166667V885.333333a10.666667 10.666667 0 0 0 10.666667 10.666667h85.833333l192.666667-192.666667-89.626667-89.62a10.666667 10.666667 0 0 0-15.08 0zM138.666667 128a10.666667 10.666667 0 0 0-10.666667 10.666667v599.166666l154.286667-154.293333a53.4 53.4 0 0 1 75.426666 0L447.333333 673.166667l218.286667-218.293334a53.4 53.4 0 0 1 75.426667 0L896 609.833333V138.666667a10.666667 10.666667 0 0 0-10.666667-10.666667z m181.333333 298.666667c-58.813333 0-106.666667-47.853333-106.666667-106.666667s47.853333-106.666667 106.666667-106.666667 106.666667 47.853333 106.666667 106.666667-47.853333 106.666667-106.666667 106.666667z m0-170.666667a64 64 0 1 0 64 64 64.073333 64.073333 0 0 0-64-64z" ></path></symbol><symbol id="icon-24gl-bold" viewBox="0 0 1024 1024"><path d="M875.786667 625.873333a257.08 257.08 0 0 0-175.92-149.44 236.926667 236.926667 0 0 0 92.266666-107.926666 233.526667 233.526667 0 0 0 0-182.346667A236.666667 236.666667 0 0 0 667.173333 61.2 231.853333 231.853333 0 0 0 576 42.666667H149.333333a21.333333 21.333333 0 0 0-21.333333 21.333333v896a21.333333 21.333333 0 0 0 21.333333 21.333333h490.666667a252.986667 252.986667 0 0 0 99.46-20.213333 258.286667 258.286667 0 0 0 136.326667-136.326667 254.806667 254.806667 0 0 0 0-198.92zM170.666667 85.333333h405.333333c105.866667 0 192 86.133333 192 192s-86.133333 192-192 192H170.666667z m469.333333 853.333334H170.666667V512h469.333333c117.633333 0 213.333333 95.7 213.333333 213.333333s-95.7 213.333333-213.333333 213.333334z" ></path></symbol><symbol id="icon-v-textAlignCenter" viewBox="0 0 1024 1024"><path d="M42.666667 960L42.66666699 106.666667a21.333333 21.333333 0 0 1 42.66666601 0l0 853.333333a21.333333 21.333333 0 0 1-42.666666 0z m213.333333-170.666667L256 277.333333a21.333333 21.333333 0 0 1 42.666667 0l0 512a21.333333 21.333333 0 0 1-42.666667 0z m213.333333 170.666667L469.333333 106.666667a21.333333 21.333333 0 0 1 42.666667-1e-8l0 853.33333301a21.333333 21.333333 0 0 1-42.666667 0z m213.333334-170.666667L682.666667 277.333333a21.333333 21.333333 0 0 1 42.666666 0l0 512a21.333333 21.333333 0 0 1-42.666666 0z m213.333333 170.666667L896 106.666667a21.333333 21.333333 0 0 1 42.666667 0l0 853.333333a21.333333 21.333333 0 0 1-42.666667 0z" ></path></symbol><symbol id="icon-24gl-fontSize" viewBox="0 0 1024 1024"><path d="M405.33996 938.666667a21.333333 21.333333 0 0 1-20.16-14.36L331.073293 768H95.606627l-54.106667 156.313333a21.333333 21.333333 0 0 1-40.32-13.96l192-554.666666a21.333333 21.333333 0 0 1 40.32 0l192 554.666666A21.333333 21.333333 0 0 1 405.33996 938.666667z m-294.96-213.333334h205.92L213.33996 427.886667zM1002.673293 938.666667a21.333333 21.333333 0 0 1-20.333333-14.913334L906.193293 682.666667H587.153293l-76.14 241.093333a21.333333 21.333333 0 1 1-40.666666-12.853333l256-810.666667a21.333333 21.333333 0 0 1 40.666666 0l256 810.666667A21.333333 21.333333 0 0 1 1002.673293 938.666667zM600.626627 640h292.093333L746.673293 177.513333z" ></path></symbol><symbol id="icon-24gl-textAlignCenter" viewBox="0 0 1024 1024"><path d="M960 981.333333H106.666667a21.333333 21.333333 0 0 1 0-42.666666h853.333333a21.333333 21.333333 0 0 1 0 42.666666z m-170.666667-213.333333H277.333333a21.333333 21.333333 0 0 1 0-42.666667h512a21.333333 21.333333 0 0 1 0 42.666667z m170.666667-213.333333H106.666667a21.333333 21.333333 0 0 1 0-42.666667h853.333333a21.333333 21.333333 0 0 1 0 42.666667z m-170.666667-213.333334H277.333333a21.333333 21.333333 0 0 1 0-42.666666h512a21.333333 21.333333 0 0 1 0 42.666666z m170.666667-213.333333H106.666667a21.333333 21.333333 0 0 1 0-42.666667h853.333333a21.333333 21.333333 0 0 1 0 42.666667z" ></path></symbol><symbol id="icon-24gl-textAlignLeft" viewBox="0 0 1024 1024"><path d="M960 981.333333H106.666667a21.333333 21.333333 0 0 1 0-42.666666h853.333333a21.333333 21.333333 0 0 1 0 42.666666z m-341.333333-213.333333H106.666667a21.333333 21.333333 0 0 1 0-42.666667h512a21.333333 21.333333 0 0 1 0 42.666667z m341.333333-213.333333H106.666667a21.333333 21.333333 0 0 1 0-42.666667h853.333333a21.333333 21.333333 0 0 1 0 42.666667zM618.666667 341.333333H106.666667a21.333333 21.333333 0 0 1 0-42.666666h512a21.333333 21.333333 0 0 1 0 42.666666z m341.333333-213.333333H106.666667a21.333333 21.333333 0 0 1 0-42.666667h853.333333a21.333333 21.333333 0 0 1 0 42.666667z" ></path></symbol><symbol id="icon-24gl-textAlignRight" viewBox="0 0 1024 1024"><path d="M106.666667 981.333333h853.333333a21.333333 21.333333 0 0 0 0-42.666666H106.666667a21.333333 21.333333 0 0 0 0 42.666666z m341.333333-213.333333h512a21.333333 21.333333 0 0 0 0-42.666667H448a21.333333 21.333333 0 0 0 0 42.666667zM106.666667 554.666667h853.333333a21.333333 21.333333 0 0 0 0-42.666667H106.666667a21.333333 21.333333 0 0 0 0 42.666667z m341.333333-213.333334h512a21.333333 21.333333 0 0 0 0-42.666666H448a21.333333 21.333333 0 0 0 0 42.666666zM106.666667 128h853.333333a21.333333 21.333333 0 0 0 0-42.666667H106.666667a21.333333 21.333333 0 0 0 0 42.666667z" ></path></symbol><symbol id="icon-v-textAlignTop" viewBox="0 0 1024 1024"><path d="M42.666667 960L42.66666699 106.666667a21.333333 21.333333 0 0 1 42.66666601 0l0 853.333333a21.333333 21.333333 0 0 1-42.666666 0z m213.333333-341.333333L256 106.666667a21.333333 21.333333 0 0 1 42.666667 0l0 512a21.333333 21.333333 0 0 1-42.666667 0z m213.333333 341.333333L469.333333 106.666667a21.333333 21.333333 0 0 1 42.666667-1e-8l0 853.33333301a21.333333 21.333333 0 0 1-42.666667 0zM682.666667 618.666667L682.666667 106.666667a21.333333 21.333333 0 0 1 42.666666 0l0 512a21.333333 21.333333 0 0 1-42.666666 0z m213.333333 341.333333L896 106.666667a21.333333 21.333333 0 0 1 42.666667 0l0 853.333333a21.333333 21.333333 0 0 1-42.666667 0z" ></path></symbol></svg>\',(m=>{var a=(z=(z=document.getElementsByTagName("script"))[z.length-1]).getAttribute("data-injectcss"),z=z.getAttribute("data-disable-injectsvg");if(!z){var h,l,o,c,t,i=function(a,z){z.parentNode.insertBefore(a,z)};if(a&&!m.__iconfont__svg__cssinject__){m.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(a){console&&console.log(a)}}h=function(){var a,z=document.createElement("div");z.innerHTML=m._iconfont_svg_string_4872361,(z=z.getElementsByTagName("svg")[0])&&(z.setAttribute("aria-hidden","true"),z.style.position="absolute",z.style.width=0,z.style.height=0,z.style.overflow="hidden",z=z,(a=document.body).firstChild?i(z,a.firstChild):a.appendChild(z))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(h,0):(l=function(){document.removeEventListener("DOMContentLoaded",l,!1),h()},document.addEventListener("DOMContentLoaded",l,!1)):document.attachEvent&&(o=h,c=m.document,t=!1,e(),c.onreadystatechange=function(){"complete"==c.readyState&&(c.onreadystatechange=null,v())})}function v(){t||(t=!0,o())}function e(){try{c.documentElement.doScroll("left")}catch(a){return void setTimeout(e,50)}v()}})(window);';let ul=!1;function dl(){ul||"undefined"==typeof document||(ul=!0,new Function(sl).call(window))}function cl(e){var t;const l="icon-danhangshuru";return(null==(t=[{tid:"text",type:l},{tid:"number",type:"icon-shuzishuru"},{tid:"table",type:"icon-24gl-table"},{tid:"image",type:"icon-24gl-picture"},{tid:"longText",type:"icon-duohangshuru"},{tid:"hline",type:"icon-horizontalLine"},{tid:"vline",type:"icon-verticalLine"},{tid:"rect",type:"icon-24gl-rectangle"},{tid:"oval",type:"icon-24gl-circle"},{tid:"barcode",type:"icon-bar-code"},{tid:"qrcode",type:"icon-qrcode"},{tid:"object",type:"icon-qrcode"}].find(t=>t.tid===e))?void 0:t.type)||l}const pl=a({name:"IconFont",props:{type:{type:String,required:!0},size:{type:[Number,String],default:void 0},color:{type:String,default:void 0},spin:{type:Boolean,default:!1}},setup:(e,{attrs:t})=>(dl(),()=>{var l,o;const a={};return e.size&&(a.fontSize="number"==typeof e.size?`${e.size}px`:e.size),e.color&&(a.color=e.color),e.spin&&(a.animation="iconfont-spin 1s linear infinite"),L("svg",{...t,class:["iconfont-svg",t.class],style:[a,t.style],"aria-hidden":"true",width:null!=(l=e.size)?l:"1em",height:null!=(o=e.size)?o:"1em",fill:"currentColor"},[L("use",{"xlink:href":`#${e.type}`})])})}),ml={class:"u-nos"},vl={class:"u-card__bd u-aside__bd u-cl",style:{"padding-top":"0","border-bottom":"1px solid var(--color-neutral-2)"}},fl=a({__name:"card",props:{title:String,isFirst:Boolean,show:{type:Boolean,default:!0}},setup(e){const t=e,l=D(t.show);return(e,o)=>{const a=n("icon-down"),s=n("icon-right");return i(),r("div",ml,[k("div",{class:"u-card__hd u-aside__hd",style:y([{borderBottomWidth:l.value?"0px":"1px"},{height:"36px","line-height":"36px","border-bottom-color":"var(--color-neutral-2)"}])},[k("div",null,[m(e.$slots,"title",{},()=>[k("strong",null,g(t.title),1)])]),k("span",{style:{cursor:"pointer"},onClick:o[0]||(o[0]=e=>{l.value=!l.value})},[l.value?(i(),u(a,{key:0})):(i(),u(s,{key:1}))])],4),z(P,null,{default:p(()=>[I(k("div",vl,[m(e.$slots,"default")],512),[[q,l.value]])]),_:3})])}}}),hl=a({__name:"guides",props:{show:{type:Boolean,default:!0},zoom:{default:1},mainContainer:{},warpContainer:{},leftOffset:{default:0},topOffset:{default:-24}},setup(e,{expose:t}){const l=e,o=l.mainContainer;let a=null,n=null;function s(){null==a||a.destroy(),null==n||n.destroy(),a=null,n=null}const u=N.debounce(function(){var e,t;if(!l.warpContainer)return;if(!a||!n)return;const i=document.querySelector(l.warpContainer);if(!i)return;const r=le.mm.toPx(1),s=Math.min(5,Math.max(.5,1*l.zoom))*r;a.zoom=s,n.zoom=s;let u=10;s>7&&(u=5);a.unit=u,n.unit=u,a.resize(),n.resize();const d=l.leftOffset+i.offsetLeft-i.scrollLeft,c=l.topOffset+i.offsetTop-i.scrollTop;a.scroll(-d/s),a.scrollGuides(-c/s),n.scroll(-c/s);const p=null!=(t=null==(e=document.querySelector(`${o} .${n.className}`))?void 0:e.clientWidth)?t:30;n.scrollGuides(-(d-p)/s)},1e3/30);function d(){if(!l.show)return void s();const e={backgroundColor:"#f9f9fa",lineColor:"#bec2c7",textColor:"#999999",displayDragPos:!0,dragPosFormat:e=>`${e}mm`},t=document.querySelector(o);t&&(a=new ie(t,{...e,type:"horizontal",className:"comp-horizontal"}).on("changeGuides",()=>{}),n=new ie(t,{...e,type:"vertical",className:"comp-vertical"}).on("changeGuides",()=>{}),u())}return w(()=>l.show,d),w(()=>l.zoom,u),A(()=>{d(),window.addEventListener("resize",u,!1),ne(l.warpContainer).on("scroll",u)}),_(()=>{window.removeEventListener("resize",u,!1),ne(l.warpContainer).off("scroll",u),s()}),t({onResize:u}),(e,t)=>(i(),r("div"))}}),yl="",gl={class:"u-flex",style:{width:"calc(100% - 60px)"}},bl=a({__name:"preview",setup(e,{expose:t}){const o=l(!1),a=l(!0),r=l(!1),s=l(0),d=l({}),c=l({}),m=()=>{o.value=!1},v=()=>{var e;r.value=!0,null==(e=d.value)||e.print(c.value,{},{callback:()=>{r.value=!1}})},f=()=>{const e=document.getElementById("preview_content_design");e&&Kt("\u6253\u5370\u9884\u89c8",e,{className:".hiprint-printPaper",scale:2})};return t({show:(e,t,l="210")=>{o.value=!0,a.value=!0,s.value=e.editingPanel?e.editingPanel.width:Number(l),d.value=e,c.value=t,setTimeout(()=>{ne("#preview_content_design").html(e.getHtml(t)),a.value=!1},500)},hideModal:m}),(e,t)=>{const l=n("a-spin"),d=n("icon-printer"),c=n("a-button"),h=n("icon-download"),g=n("ASpace"),b=n("AModal");return i(),u(b,{title:"\u6253\u5370\u9884\u89c8",visible:o.value,"body-style":{padding:0,height:"100%"},"mask-closable":!1,width:Math.max(s.value,210)+"mm",footer:!1,fullscreen:"",onCancel:m},{title:p(()=>[k("div",gl,[t[3]||(t[3]=k("div",{class:"u-flex__item"},[k("strong",null,"\u6253\u5370\u9884\u89c8")],-1)),k("div",null,[z(g,null,{default:p(()=>[z(c,{loading:r.value,type:"primary",icon:"printer",onClick:j(v,["stop"])},{icon:p(()=>[z(d)]),default:p(()=>[t[1]||(t[1]=x(" \u6253\u5370 ",-1))]),_:1},8,["loading"]),z(c,{type:"primary",icon:"printer",onClick:j(f,["stop"])},{icon:p(()=>[z(h)]),default:p(()=>[t[2]||(t[2]=x(" \u4e0b\u8f7dPDF ",-1))]),_:1})]),_:1})])])]),footer:p(()=>[z(c,{key:"close",type:"primary",onClick:m},{default:p(()=>[...t[4]||(t[4]=[x("\u5173\u95ed",-1)])]),_:1})]),default:p(()=>[z(l,{class:"u-main",loading:a.value,style:{width:"100%","min-height":"100%",display:"grid","place-items":"center",overflow:"auto","background-color":"#f5f5f5",padding:"20px","box-sizing":"border-box"}},{default:p(()=>[k("div",{style:y([{width:s.value+"mm",overflow:"hidden"},{margin:"0 auto",background:"#fff","box-shadow":"0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 0px 1px rgba(0, 0, 0, 0.06)"}])},[...t[0]||(t[0]=[k("div",{id:"preview_content_design"},null,-1)])],4)]),_:1},8,["loading"])]),_:1},8,["visible","width"])}}}),wl={class:"kbd-nav","aria-label":"\u5e38\u89c1\u95ee\u9898\u5bfc\u822a"},_l={class:"u-flex",style:{width:"calc(100% - 60px)"}},kl={class:"u-flex__item"},zl={style:{color:"var(--color-border-4)"}},xl=a({__name:"kbd",setup(e,{expose:t}){const o=l(!1),a=l(210),r=l({}),s=l({}),d=l(),{version:c}=oe,m=()=>{o.value=!1},v=e=>{var t,l;null==(l=null==(t=d.value)?void 0:t.querySelector(`[data-faq="${e}"]`))||l.scrollIntoView({behavior:"smooth",block:"start"})};return t({show:(e,t)=>{o.value=!0,r.value=e,s.value=t},hideModal:m}),(e,t)=>{const l=n("ACard"),r=n("a-spin"),s=n("a-button"),h=n("AModal");return i(),u(h,{title:"\u5e2e\u52a9\u6587\u6863",visible:o.value,"body-style":{padding:0,height:"100%"},"mask-closable":!1,width:Math.max(a.value,210)+"mm",footer:!1,fullscreen:"",onCancel:m},{title:p(()=>[k("div",_l,[k("div",kl,[t[47]||(t[47]=k("strong",null,"\u5e2e\u52a9\u6587\u6863",-1)),k("small",zl,"v "+g(f(c)),1)]),t[48]||(t[48]=k("div",null,null,-1))])]),footer:p(()=>[z(s,{key:"close",type:"primary",onClick:m},{default:p(()=>[...t[49]||(t[49]=[x("\u5173\u95ed",-1)])]),_:1})]),default:p(()=>[z(r,{class:"u-main comp-kbd",style:{display:"block",width:"100%",minHeight:"100%"}},{default:p(()=>[k("div",{style:y([{width:a.value+"mm",overflow:"hidden"},{margin:"0 auto"}])},[z(l,null,{default:p(()=>[k("div",{ref_key:"faqRef",ref:d,class:"u-quill-body"},[t[14]||(t[14]=k("h1",null,"\u6253\u5370\u8bbe\u8ba1\u5668\u64cd\u4f5c\u5e2e\u52a9",-1)),t[15]||(t[15]=k("p",null,"\u672c\u6587\u6863\u4ee5\u95ee\u7b54\u5f62\u5f0f\u6574\u7406\u4e86\u6253\u5370\u8bbe\u8ba1\u5668\u7684\u5e38\u7528\u64cd\u4f5c\uff0c\u65b9\u4fbf\u60a8\u5feb\u901f\u627e\u5230\u9700\u8981\u7684\u64cd\u4f5c\u65b9\u6cd5\u3002",-1)),k("nav",wl,[t[13]||(t[13]=k("strong",null,"\u95ee\u9898\u5bfc\u822a",-1)),k("ol",null,[k("li",null,[k("button",{type:"button",onClick:t[0]||(t[0]=e=>v("copy"))},"\u5982\u4f55\u590d\u5236\u7ec4\u4ef6\uff1f")]),k("li",null,[k("button",{type:"button",onClick:t[1]||(t[1]=e=>v("paste"))},"\u5982\u4f55\u7c98\u8d34\u7ec4\u4ef6\uff1f")]),k("li",null,[k("button",{type:"button",onClick:t[2]||(t[2]=e=>v("undo"))},"\u5982\u4f55\u64a4\u9500\u64cd\u4f5c\uff1f")]),k("li",null,[k("button",{type:"button",onClick:t[3]||(t[3]=e=>v("redo"))},"\u5982\u4f55\u91cd\u505a\u64cd\u4f5c\uff1f")]),k("li",null,[k("button",{type:"button",onClick:t[4]||(t[4]=e=>v("delete"))},"\u5982\u4f55\u5220\u9664\u7ec4\u4ef6\uff1f")]),k("li",null,[k("button",{type:"button",onClick:t[5]||(t[5]=e=>v("select"))},"\u5982\u4f55\u540c\u65f6\u9009\u4e2d\u591a\u4e2a\u7ec4\u4ef6\uff1f")]),k("li",null,[k("button",{type:"button",onClick:t[6]||(t[6]=e=>v("align"))},"\u5982\u4f55\u5bf9\u9f50\u591a\u4e2a\u7ec4\u4ef6\uff1f")]),k("li",null,[k("button",{type:"button",onClick:t[7]||(t[7]=e=>v("layer"))},"\u5982\u4f55\u8c03\u6574\u7ec4\u4ef6\u5c42\u7ea7\uff1f")]),k("li",null,[k("button",{type:"button",onClick:t[8]||(t[8]=e=>v("lock"))},"\u9501\u5b9a\u6309\u94ae\u6709\u4ec0\u4e48\u7528\uff1f")]),k("li",null,[k("button",{type:"button",onClick:t[9]||(t[9]=e=>v("move"))},"\u5982\u4f55\u5fae\u8c03\u7ec4\u4ef6\u4f4d\u7f6e\uff1f")]),k("li",null,[k("button",{type:"button",onClick:t[10]||(t[10]=e=>v("batch-delete"))},"\u5982\u4f55\u6279\u91cf\u5220\u9664\u591a\u4e2a\u7ec4\u4ef6\uff1f")]),k("li",null,[k("button",{type:"button",onClick:t[11]||(t[11]=e=>v("quick-copy"))},"\u5982\u4f55\u5feb\u901f\u590d\u5236\u7ec4\u4ef6\uff1f")]),k("li",null,[k("button",{type:"button",onClick:t[12]||(t[12]=e=>v("platform"))},"\u4e0d\u540c\u5e73\u53f0\u7684\u5feb\u6377\u952e\u6709\u4ec0\u4e48\u533a\u522b\uff1f")])])]),t[16]||(t[16]=k("h2",null,"\u4e00\u3001\u7f16\u8f91\u64cd\u4f5c",-1)),t[17]||(t[17]=k("h3",{"data-faq":"copy"},"\u5982\u4f55\u590d\u5236\u7ec4\u4ef6\uff1f",-1)),t[18]||(t[18]=k("p",null,[x(" \u9009\u4e2d\u540e\u6309 "),k("kbd",null,"Ctrl"),x(" + "),k("kbd",null,"C"),x(" \uff08Mac\uff1a "),k("kbd",null,"Command"),x(" + "),k("kbd",null,"C"),x(" \uff09\u3002 ")],-1)),t[19]||(t[19]=k("h3",{"data-faq":"paste"},"\u5982\u4f55\u7c98\u8d34\u7ec4\u4ef6\uff1f",-1)),t[20]||(t[20]=k("p",null,[x(" \u6309 "),k("kbd",null,"Ctrl"),x(" + "),k("kbd",null,"V"),x(" \uff08Mac\uff1a "),k("kbd",null,"Command"),x(" + "),k("kbd",null,"V"),x(" \uff09\u7c98\u8d34\u5230\u753b\u5e03\u4e0a\u3002 ")],-1)),t[21]||(t[21]=k("h3",{"data-faq":"undo"},"\u5982\u4f55\u64a4\u9500\u64cd\u4f5c\uff1f",-1)),t[22]||(t[22]=k("p",null,[x(" \u6309 "),k("kbd",null,"Ctrl"),x(" + "),k("kbd",null,"Z"),x(" \u64a4\u9500\u4e0a\u4e00\u6b65\uff0c\u652f\u6301\u591a\u6b21\u64a4\u9500\u3002 ")],-1)),t[23]||(t[23]=k("h3",{"data-faq":"redo"},"\u5982\u4f55\u91cd\u505a\u64cd\u4f5c\uff1f",-1)),t[24]||(t[24]=k("p",null,[x(" \u6309 "),k("kbd",null,"Ctrl"),x(" + "),k("kbd",null,"Shift"),x(" + "),k("kbd",null,"Z"),x(" \u91cd\u505a\u88ab\u64a4\u9500\u7684\u64cd\u4f5c\u3002 ")],-1)),t[25]||(t[25]=k("h3",{"data-faq":"delete"},"\u5982\u4f55\u5220\u9664\u7ec4\u4ef6\uff1f",-1)),t[26]||(t[26]=k("p",null,[x(" \u9009\u4e2d\u540e\u6309 "),k("kbd",null,"Del"),x(" \u952e\u5220\u9664\u3002 ")],-1)),t[27]||(t[27]=k("h2",null,"\u4e8c\u3001\u591a\u9009\u4e0e\u6392\u5217",-1)),t[28]||(t[28]=k("h3",{"data-faq":"select"},"\u5982\u4f55\u540c\u65f6\u9009\u4e2d\u591a\u4e2a\u7ec4\u4ef6\uff1f",-1)),t[29]||(t[29]=k("p",null,[x(" \u6309\u4f4f "),k("kbd",null,"Ctrl"),x(" \u952e\u9010\u4e2a\u70b9\u51fb\u7ec4\u4ef6\u5373\u53ef\u591a\u9009\uff0c\u9002\u5408\u6279\u91cf\u79fb\u52a8\u3001\u5220\u9664\u6216\u5bf9\u9f50\u3002 ")],-1)),t[30]||(t[30]=k("h3",{"data-faq":"align"},"\u5982\u4f55\u5bf9\u9f50\u591a\u4e2a\u7ec4\u4ef6\uff1f",-1)),t[31]||(t[31]=k("p",null,"\u591a\u9009\u540e\u4f7f\u7528\u5de5\u5177\u680f\u7684\u5bf9\u9f50\u6309\u94ae\uff1a\u5de6\u5bf9\u9f50\u3001\u5c45\u4e2d\u5bf9\u9f50\u3001\u53f3\u5bf9\u9f50\u3001\u9876\u7aef\u5bf9\u9f50\u3001\u5782\u76f4\u5c45\u4e2d\u3001\u5e95\u90e8\u5bf9\u9f50\u3002\u5355\u9009\u65f6\u8fd9\u4e9b\u6309\u94ae\u6539\u53d8\u6587\u5b57\u5bf9\u9f50\u65b9\u5f0f\u3002",-1)),t[32]||(t[32]=k("h3",{"data-faq":"layer"},"\u5982\u4f55\u8c03\u6574\u7ec4\u4ef6\u5c42\u7ea7\uff08\u7f6e\u9876/\u7f6e\u5e95\uff09\uff1f",-1)),t[33]||(t[33]=k("p",null,"\u4f7f\u7528\u5de5\u5177\u680f\u7684\u7f6e\u9876\u6309\u94ae\uff08\u7b49\u6548\u5c42\u7ea7 9\uff09\u6216\u7f6e\u5e95\u6309\u94ae\uff08\u7b49\u6548\u5c42\u7ea7 1\uff09\uff0c\u6216\u5728\u53f3\u4fa7\u5c5e\u6027\u9762\u677f\u8bbe\u7f6e\u300c\u6837\u5f0f \u2192 \u5143\u7d20\u5c42\u7ea7\u300d\u3002",-1)),t[34]||(t[34]=k("h3",{"data-faq":"lock"},"\u9501\u5b9a\u6309\u94ae\u6709\u4ec0\u4e48\u7528\uff1f",-1)),t[35]||(t[35]=k("p",null,"\u9501\u5b9a\u540e\u7ec4\u4ef6\u4e0d\u53ef\u7528\u9f20\u6807\u62d6\u52a8\uff0c\u4f46\u4ecd\u53ef\u7528\u952e\u76d8\u65b9\u5411\u952e\u5fae\u8c03\u4f4d\u7f6e\u3002",-1)),t[36]||(t[36]=k("h2",null,"\u4e09\u3001\u5b9a\u4f4d\u8c03\u6574",-1)),t[37]||(t[37]=k("h3",{"data-faq":"move"},"\u5982\u4f55\u5fae\u8c03\u7ec4\u4ef6\u4f4d\u7f6e\uff1f",-1)),t[38]||(t[38]=k("p",null,[x(" \u9009\u4e2d\u540e\u6309\u65b9\u5411\u952e "),k("kbd",null,"\u2191"),k("kbd",null,"\u2193"),k("kbd",null,"\u2190"),k("kbd",null,"\u2192"),x(" \u6bcf\u6b21\u79fb\u52a8\u4e00\u4e2a\u5355\u4f4d\uff0c\u9002\u5408\u7cbe\u786e\u5e03\u5c40\u3002 ")],-1)),t[39]||(t[39]=k("h2",null,"\u56db\u3001\u5e38\u89c1\u64cd\u4f5c\u7ec4\u5408",-1)),t[40]||(t[40]=k("h3",{"data-faq":"batch-delete"},"\u5982\u4f55\u6279\u91cf\u5220\u9664\u591a\u4e2a\u7ec4\u4ef6\uff1f",-1)),t[41]||(t[41]=k("p",null,[x(" \u6309\u4f4f "),k("kbd",null,"Ctrl"),x(" \u591a\u9009\u4e0d\u9700\u8981\u7684\u7ec4\u4ef6\uff0c\u518d\u6309 "),k("kbd",null,"Del"),x(" \u4e00\u6b21\u6027\u5220\u9664\u3002 ")],-1)),t[42]||(t[42]=k("h3",{"data-faq":"quick-copy"},"\u5982\u4f55\u5feb\u901f\u590d\u5236\u4e00\u4e2a\u7ec4\u4ef6\u5230\u5176\u4ed6\u4f4d\u7f6e\uff1f",-1)),t[43]||(t[43]=k("p",null,[k("kbd",null,"Ctrl"),x(" + "),k("kbd",null,"C"),x(" \u590d\u5236\uff0c "),k("kbd",null,"Ctrl"),x(" + "),k("kbd",null,"V"),x(" \u7c98\u8d34\u5230\u76ee\u6807\u4f4d\u7f6e\u3002 ")],-1)),t[44]||(t[44]=k("h2",null,"\u4e94\u3001\u5e73\u53f0\u5dee\u5f02",-1)),t[45]||(t[45]=k("h3",{"data-faq":"platform"},"Mac \u548c Windows \u5feb\u6377\u952e\u6709\u4ec0\u4e48\u4e0d\u540c\uff1f",-1)),t[46]||(t[46]=k("p",null,[x(" macOS \u4e2d "),k("kbd",null,"Ctrl"),x(" \u66ff\u6362\u4e3a "),k("kbd",null,"Command"),x(" \uff0c\u4f8b\u5982\u590d\u5236 "),k("kbd",null,"Command"),x(" + "),k("kbd",null,"C"),x(" \u3001\u7c98\u8d34 "),k("kbd",null,"Command"),x(" + "),k("kbd",null,"V"),x(" \u3001\u64a4\u9500 "),k("kbd",null,"Command"),x(" + "),k("kbd",null,"Z"),x(" \u3002 ")],-1))],512)]),_:1})],4)]),_:1})]),_:1},8,["visible","width"])}}}),Cl="";function Vl(e){return{clearPaper(){try{null==e||e.clear()}catch(e){}},toPdf(t,l="\u5bfc\u51faPDF"){null==e||e.toPdf(t,l)},toPrint(t){null==e||e.print(t)},updateJson(t){if(e)try{e.update(JSON.parse(t))}catch(e){}},exportJson:()=>e?JSON.stringify(e.getJson()||{}):"",setElsAlign(t){t&&(null==e||e.setElsAlign(t))},setElsSpace(t=!0,l=10){null==e||e.setElsSpace(l,t)},setEleSelectByField(){null==e||e.selectElementsByField(["name"])},getSelectEls(){var t;return null!=(t=null==e?void 0:e.getSelectEls())?t:[]},updateOption(t,l){null==e||e.updateOption(t,l)}}}function Ml(e,t){var l;const o=null==(l=le)?void 0:l.event;if(!e||!o||!t)return;const a={onData:`hiprintTemplateDataChanged_${e.id}`,onSetting:`BuildCustomOptionSettingEventKey_${e.id}`,onSelect:`PrintElementSelectEventKey_${e.id}`};Object.keys(t).forEach(e=>o.on(a[e],t[e]))}const Sl={class:"comp-hiprint-toolbar u-flex u-w"},Al={class:"u-flex"},Tl={class:"u-flex__item"},El={class:"u-flex"},Ol={class:"u-flex"},Rl={class:"u-flex__item"},Hl={key:0,class:"u-flex__item u-flex"},$l={class:"u-flex__item u-flex"},Bl={class:"u-flex",style:{width:"8em"}},Ll={class:"u-flex u-flex__item"},Dl={class:"u-flex__item"},Pl={class:"u-flex__item"},Il={class:"u-flex",style:{width:"10em"}},ql={class:"u-flex__item"},jl={class:"u-flex",style:{width:"10em"}},Fl={class:"u-flex__item"},Nl={key:1,class:"u-flex__item u-flex"},Ul={class:"u-flex__item"},Kl={style:{"padding-left":"0.5em"}},Wl={style:{"padding-left":"0.5em"}},Gl={class:"comp-hiprint-toolbar-answer",title:"\u7ed3\u679c\u793a\u4f8b"},Jl={class:"u-flex u-center",style:{padding:"12px","justify-content":"space-between"}},Yl={class:"comp-hiprint-toolbar-answer",style:{border:"0"}},Xl={class:"comp-hiprint-toolbar-answer",style:{border:"0"}},Zl={class:"comp-hiprint-toolbar-answer",style:{border:"0"}},Ql=a({__name:"toolbar",props:{tpl:{default:void 0},selectedId:{default:null},updateTime:{default:0},zoom:{},setZoom:{}},setup(e){const o=e,a=l(null),d=t(()=>Vl(o.tpl));function h(){return o.tpl?o.tpl.getSelectEls():[]}const y=le.configs.DATE_TYPES.map(e=>"object"==typeof e?{label:`${e.value}${e.label?`(${e.label})`:""}`,value:e.value}:e),b={titleAlign:"start",modalClass:"comp-hiprint-toolbar",bodyStyle:{padding:"12px 24px"},unmountOnClose:!0,mask:!1},_=()=>h().length;function x(){var e,t;return!!Boolean(_()&&a.value)&&"text"===String(null==(t=null==(e=a.value)?void 0:e.printElementType)?void 0:t.type)}function C(e=!1){var t,l,o,a,n,i,r,s,u;const d=h();if(d.length>1){const c=e?"top":"left",p=e?"height":"width",m=d.reduce((e,t)=>{var l,o;return e+=null!=(o=null==(l=null==t?void 0:t.options)?void 0:l[p])?o:0},0),v=d.length-1,f=(null!=(o=null==(l=null==(t=d[v])?void 0:t.options)?void 0:l[c])?o:0)+(null!=(i=null==(n=null==(a=d[v])?void 0:a.options)?void 0:n[p])?i:0)-(null!=(u=null==(s=null==(r=d[0])?void 0:r.options)?void 0:s[c])?u:0);return Math.max(0,+((f-m)/v).toFixed(2))}}const V=()=>{const e=h();e.length?a.value=e.find(e=>e.id===o.selectedId)||e[e.length-1]||null:a.value=null};function M(e,t,l=!0){d.value.updateOption(e,t),l&&V()}function S(e,t){var l;const o={shape:"square",size:"small"},n=null==(l=a.value)?void 0:l.options;if(e&&n){const l=n[e];if(String(l)===String(t))return{...o,style:{color:"rgb(var(--primary-6))"}}}return o}function A(e){if(1===h().length){let t=e;"vertical"===e&&(t="center"),["left","vertical","right"].includes(e)?M("textAlign",t,!1):M("textContentVerticalAlign",t,!1)}else o.tpl&&o.tpl.setElsAlign(e);V()}w(()=>o.updateTime,V);const[T]=It({visible:!1,fields:[],list:[],types:[{value:"field",label:"\u5b57\u6bb5\u540d"},{value:"string",label:"\u56fa\u5b9a\u503c "}]}),[E]=It({visible:!1,px:void 0,mm:void 0,pt:void 0}),O=(e,t)=>{const l=Number(e);switch(t){case"pt":E.value.mm=+le.pt.toMm(l).toFixed(3),E.value.px=+le.pt.toPx(l).toFixed(3);break;case"mm":E.value.pt=+le.mm.toPt(l).toFixed(3),E.value.px=+le.mm.toPx(l).toFixed(3);break;default:E.value.pt=+le.px.toPt(l).toFixed(3),E.value.mm=+le.px.toMm(l).toFixed(3)}},R=t(()=>{const e=T.value.list;return{key:"test",source:Object.fromEntries([...e].filter(e=>e.field).map(e=>{let t="";switch(e.dataType){case"datetime":t=(new Date).toLocaleString();break;case"boolean":t=Math.random()>=.5?1:0}return[e.field,t]})),format:e}}),H=(e=0)=>{T.value.list.splice(e+1,0,{type:"string",field:"",value:"",start:void 0,length:void 0,dataType:void 0,format:void 0})};return(e,t)=>{const l=n("AButton"),h=n("AButtonGroup"),w=n("ADivider"),V=n("icon-lock"),$=n("icon-to-top"),B=n("icon-to-bottom"),L=n("icon-zoom-in"),D=n("icon-original-size"),P=n("ASpace"),I=n("a-select"),q=n("a-cascader"),j=n("a-input"),F=n("a-input-number"),N=n("icon-plus"),U=n("a-button"),K=n("icon-minus"),W=n("AForm"),G=n("AModal"),J=n("AInputNumber");return i(),r("div",Sl,[k("div",Al,[m(e.$slots,"left",{tools:d.value,options:a.value})]),k("div",Tl,[z(P,{size:"mini"},{default:p(()=>[z(h,{size:"mini"},{default:p(()=>[z(l,v({title:"\u9760\u5de6\u5bf9\u9f50"},S(),{onClick:t[0]||(t[0]=e=>A("left"))}),{icon:p(()=>[z(f(pl),{type:"icon-24gl-textAlignLeft"})]),_:1},16),z(l,v({title:"\u5c45\u4e2d\u5bf9\u9f50"},S(),{onClick:t[1]||(t[1]=e=>A("vertical"))}),{icon:p(()=>[z(f(pl),{type:"icon-24gl-textAlignCenter"})]),_:1},16),z(l,v({title:"\u9760\u5de6\u5bf9\u9f50"},S(),{onClick:t[2]||(t[2]=e=>A("right"))}),{icon:p(()=>[z(f(pl),{type:"icon-24gl-textAlignRight"})]),_:1},16),z(l,v({title:"\u9876\u7aef\u5bf9\u9f50"},S(),{onClick:t[3]||(t[3]=e=>A("top"))}),{icon:p(()=>[z(f(pl),{type:"icon-v-textAlignTop"})]),_:1},16),z(l,v({title:"\u5c45\u4e2d\u5bf9\u9f50"},S(),{onClick:t[4]||(t[4]=e=>A("horizontal"))}),{icon:p(()=>[z(f(pl),{type:"icon-v-textAlignCenter"})]),_:1},16),z(l,v({title:"\u5e95\u90e8\u5bf9\u9f50"},S(),{onClick:t[5]||(t[5]=e=>A("bottom"))}),{icon:p(()=>[z(f(pl),{type:"icon-v-textAlignBottom"})]),_:1},16),z(l,v({title:"\u6c34\u5e73\u7b49\u5206"},S(),{onClick:t[6]||(t[6]=e=>d.value.setElsSpace(!0,C()))}),{icon:p(()=>[z(f(pl),{type:"icon-v-lineSpacing"})]),_:1},16),z(l,v({title:"\u5782\u76f4\u7b49\u5206"},S(),{onClick:t[7]||(t[7]=e=>d.value.setElsSpace(!1,C(!0)))}),{icon:p(()=>[z(f(pl),{type:"icon-24gl-lineSpacing"})]),_:1},16)]),_:1}),z(w,{direction:"vertical",margin:2}),z(h,{size:"mini"},{default:p(()=>[z(l,v({title:"\u6807\u9898"},S("fontSize","19"),{onClick:t[8]||(t[8]=e=>M("fontSize","19"))}),{icon:p(()=>[z(f(pl),{type:"icon-24gl-title"})]),_:1},16),z(l,v({title:"\u6b63\u6587"},S("fontSize","9"),{onClick:t[9]||(t[9]=e=>M("fontSize","9"))}),{icon:p(()=>[z(f(pl),{type:"icon-24gl-fontSize"})]),_:1},16),z(l,v({title:"\u52a0\u7c97"},S("fontWeight","bold"),{onClick:t[10]||(t[10]=e=>M("fontWeight","bold"))}),{icon:p(()=>[z(f(pl),{type:"icon-24gl-bold"})]),_:1},16),z(l,v({title:"\u4e0b\u5212\u7ebf"},S("textDecoration","underline"),{onClick:t[11]||(t[11]=e=>M("textDecoration","underline"))}),{icon:p(()=>[z(f(pl),{type:"icon-24gl-underline"})]),_:1},16),z(l,v({title:"\u5220\u9664\u7ebf"},S("textDecoration","line-through"),{onClick:t[12]||(t[12]=e=>M("textDecoration","line-through"))}),{icon:p(()=>[z(f(pl),{type:"icon-24gl-strikethrough2"})]),_:1},16),z(l,v({title:"\u6e05\u9664\u683c\u5f0f"},S(),{onClick:t[13]||(t[13]=e=>(M("textDecoration","none",!1),M("fontSize","",!1),void M("fontWeight","400")))}),{icon:p(()=>[z(f(pl),{type:"icon-24gl-formatClear"})]),_:1},16)]),_:1}),z(w,{direction:"vertical",margin:2}),z(h,{disabled:1>_()},{default:p(()=>[z(l,v(S("draggable",!1),{title:"\u9501\u5b9a/\u53d6\u6d88",onClick:t[14]||(t[14]=e=>{var t,l;M("draggable",!1===(null==(l=null==(t=a.value)?void 0:t.options)?void 0:l.draggable))})}),{icon:p(()=>[z(V)]),_:1},16),z(l,v(S("zIndex","9"),{title:"\u7f6e\u4e8e\u9876\u5c42",onClick:t[15]||(t[15]=e=>M("zIndex","9"))}),{icon:p(()=>[z($)]),_:1},16),z(l,v(S("zIndex","1"),{title:"\u7f6e\u4e8e\u5e95\u5c42",onClick:t[16]||(t[16]=e=>M("zIndex","1"))}),{icon:p(()=>[z(B)]),_:1},16)]),_:1},8,["disabled"]),z(w,{direction:"vertical",margin:2}),z(l,v(S(),{title:"\u667a\u80fd\u7f29\u653e",onClick:t[17]||(t[17]=e=>function(){var e,t;const l=null==(t=null==(e=document.querySelector(".hiprint-printPanel.panel-index-0 > .design"))?void 0:e.style)?void 0:t.width,a=l?Number.parseInt(l,10):0;let n=2;n=a<=0?2:a<=15?5:a<=20?4:a<=40?3:2,o.setZoom(1===o.zoom?n:1)}())}),{icon:p(()=>[1===o.zoom?(i(),u(L,{key:0})):(i(),u(D,{key:1}))]),_:1},16),z(l,v(S(),{title:"\u5355\u4f4d\u8f6c\u6362",onClick:t[18]||(t[18]=e=>f(E).visible=!0)}),{icon:p(()=>[z(f(pl),{type:"icon-scale"})]),_:1},16),z(l,v(S(),{title:"\u81ea\u5b9a\u4e49\u683c\u5f0f",disabled:!x(),onClick:t[19]||(t[19]=e=>function(){var e,t,l,n;if(!x())return;const i=null!=(l=null==(t=null==(e=a.value)?void 0:e.options)?void 0:t.format)?l:"[]";T.value.visible=!0,T.value.fields=function e(t=[]){return t.filter(e=>e.field&&"table"!==e.type).map(t=>{var l,o;const a=t.field,n={label:null!=(l=t.text)?l:a,value:a};return"object"===t.type&&(null==(o=t.fields)?void 0:o.length)&&(n.children=e(t.fields)),n})}(null==(n=o.tpl)?void 0:n.fields),T.value.list=[];try{if(T.value.list=JSON.parse(i),!Array.isArray(T.value.list))throw new Error("not array")}catch(e){T.value.list=[]}T.value.list.length||H()}())}),{icon:p(()=>[z(f(pl),{type:"icon-zidingyi"})]),_:1},16,["disabled"])]),_:1})]),k("div",El,[m(e.$slots,"right",{tools:d.value,options:a.value})]),z(G,v({visible:f(T).visible,"onUpdate:visible":t[20]||(t[20]=e=>f(T).visible=e)},b,{width:960,title:"\u81ea\u5b9a\u4e49\u683c\u5f0f",onOk:t[21]||(t[21]=e=>(()=>{const e=JSON.stringify(T.value.list);M("dataType","format",!1),M("format",e),ne(".hiprint-option-item-datatype-input-format").addClass("hiprint-option-item-datatype-format").val(e).trigger("change").show().siblings().hide().removeClass("hiprint-option-item-datatype-format")})())}),{default:p(()=>{var e;return[z(W,{model:{},size:"small",class:"comp-hiprint-toolbar-form"},{default:p(()=>[(i(!0),r(s,null,c(f(T).list,(e,l)=>(i(),r("div",{key:l,class:"u-flex u-mt"},[k("div",Ol,[t[29]||(t[29]=k("span",{class:"comp-hiprint-toolbar-label"},"\u7c7b\u578b",-1)),k("div",Rl,[z(I,{modelValue:e.type,"onUpdate:modelValue":t=>e.type=t,options:f(T).types},null,8,["modelValue","onUpdate:modelValue","options"])])]),"field"===e.type?(i(),r("div",Hl,[t[34]||(t[34]=k("span",{class:"comp-hiprint-toolbar-label"},"\u5b57\u6bb5",-1)),k("div",$l,[k("div",Bl,[z(q,{"model-value":Array.isArray(e.field)?e.field:String(e.field||"").split("."),options:f(T).fields,"allow-search":"","allow-create":"","path-mode":"",placeholder:"\u8bf7\u9009\u62e9","trigger-props":{autoFitPopupMinWidth:!0,contentClass:"arco-empty-body"},"onUpdate:modelValue":t=>e.field=Array.isArray(t)?t.join("."):t},null,8,["model-value","options","onUpdate:modelValue"])]),k("div",Ll,[t[30]||(t[30]=k("label",{class:"comp-hiprint-toolbar-label"},"\u683c\u5f0f\u7c7b\u578b",-1)),k("div",Dl,[z(I,{modelValue:e.dataType,"onUpdate:modelValue":t=>e.dataType=t,style:{width:"100%"},"allow-clear":"","trigger-props":{autoFitPopupMinWidth:!0,contentClass:"arco-empty-body"},options:[{label:"\u65e5\u671f\u683c\u5f0f",value:"datetime"},{label:"\u5e03\u5c14\u503c",value:"boolean"}],placeholder:"\u9ed8\u8ba4"},null,8,["modelValue","onUpdate:modelValue"])]),t[31]||(t[31]=k("span",{class:"comp-hiprint-toolbar-label"},"\u683c\u5f0f",-1)),k("div",Pl,["datetime"===e.dataType?(i(),u(I,{key:0,modelValue:e.format,"onUpdate:modelValue":t=>e.format=t,style:{width:"100%"},"allow-clear":"","trigger-props":{autoFitPopupMinWidth:!0,contentClass:"arco-empty-body"},options:f(y),placeholder:"\u9ed8\u8ba4"},null,8,["modelValue","onUpdate:modelValue","options"])):(i(),u(j,{key:1,modelValue:e.format,"onUpdate:modelValue":t=>e.format=t,"allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]))])]),k("div",Il,[t[32]||(t[32]=k("label",{class:"comp-hiprint-toolbar-label"},"\u56fa\u5b9a\u957f\u5ea6",-1)),k("div",ql,[z(F,{modelValue:e.length,"onUpdate:modelValue":t=>e.length=t,min:0,"allow-clear":"","trigger-props":{autoFitPopupMinWidth:!0,contentClass:"arco-empty-body"},placeholder:"\u9ed8\u8ba4"},null,8,["modelValue","onUpdate:modelValue"])])]),k("div",jl,[t[33]||(t[33]=k("label",{class:"comp-hiprint-toolbar-label"},"\u5f00\u59cb\u4f4d\u7f6e",-1)),k("div",Fl,[z(F,{modelValue:e.start,"onUpdate:modelValue":t=>e.start=t,"allow-clear":"",min:0,placeholder:"\u9ed8\u8ba4"},null,8,["modelValue","onUpdate:modelValue"])])])])])):(i(),r("div",Nl,[t[35]||(t[35]=k("span",{class:"comp-hiprint-toolbar-label"},"\u5185\u5bb9",-1)),k("div",Ul,[z(j,{modelValue:e.value,"onUpdate:modelValue":t=>e.value=t},null,8,["modelValue","onUpdate:modelValue"])])])),k("div",Kl,[z(U,{shape:"circle",onClick:e=>H(l)},{icon:p(()=>[z(N)]),_:1},8,["onClick"])]),k("div",Wl,[z(U,{shape:"circle",onClick:e=>(e=>{T.value.list.length>1&&T.value.list.splice(e,1)})(l)},{icon:p(()=>[z(K)]),_:1},8,["onClick"])])]))),128))]),_:1}),t[36]||(t[36]=k("div",{style:{"padding-bottom":"12px","margin-bottom":"24px","border-bottom":"1px dashed #d2d2d2"}},null,-1)),k("div",Gl,g(null==(e=f(le).utils)?void 0:e.executeCustomFormat(R.value)),1)]}),_:1},16,["visible"]),z(G,v({visible:f(E).visible,"onUpdate:visible":t[28]||(t[28]=e=>f(E).visible=e)},b,{width:640,title:"\u5355\u4f4d\u8f6c\u6362"}),{default:p(()=>[k("div",Jl,[k("div",Yl,[z(J,{modelValue:f(E).mm,"onUpdate:modelValue":[t[22]||(t[22]=e=>f(E).mm=e),t[23]||(t[23]=e=>O(e,"mm"))],min:0,size:"large",mode:"button"},null,8,["modelValue"]),t[37]||(t[37]=k("div",null,"mm",-1))]),t[40]||(t[40]=k("div",{style:{width:"2em"}},null,-1)),k("div",Xl,[z(J,{modelValue:f(E).pt,"onUpdate:modelValue":[t[24]||(t[24]=e=>f(E).pt=e),t[25]||(t[25]=e=>O(e,"pt"))],min:0,size:"large",mode:"button"},null,8,["modelValue"]),t[38]||(t[38]=k("div",null,"pt",-1))]),t[41]||(t[41]=k("div",{style:{width:"2em"}},null,-1)),k("div",Zl,[z(J,{modelValue:f(E).px,"onUpdate:modelValue":[t[26]||(t[26]=e=>f(E).px=e),t[27]||(t[27]=e=>O(e,"px"))],min:0,size:"large",mode:"button"},null,8,["modelValue"]),t[39]||(t[39]=k("div",null,"px",-1))])])]),_:1},16,["visible"])])}}}),eo="",to={class:"comp-toolbar-ext__ul"},lo=["onClick"],oo={class:"comp-toolbar-ext__ul"},ao=["onClick","onMouseover","onMouseout"],no=a({__name:"toolbar-ext",props:{tpl:{default:void 0},updateTime:{default:0}},setup(e){const l=e;function o(){var e;if("function"==typeof(null==(e=l.tpl)?void 0:e.update))return l.tpl;throw new Error("[hi-print]: mounted error")}const a=t(()=>{const e=o();return e.updateTime=l.updateTime,[...e.getPanel().printElements].map(e=>{var t,l,o,a;return{id:e.id,title:(null==(t=e.options)?void 0:t.title)||"\u672a\u547d\u540d",locked:!1===(null==(l=e.options)?void 0:l.draggable),type:null==(o=e.printElementType)?void 0:o.type,_sourceType:null==(a=e.options)?void 0:a._sourceType}})}),m=t(()=>{const e=o();return e.updateTime=l.updateTime,e.historyList});function v(e,t){const l=o(),a=[...l.getPanel().printElements].find(t=>t.id===e.id);if(!a)return;const n=null==a?void 0:a.designTarget;"click"===t&&l.selectElementsId(a.id),"mouseover"===t&&l.hoverElementsId(a.id),"mouseout"===t&&l.hoverElementsId(a.id,!0),n.focus()}return(e,t)=>{const l=n("icon-history"),h=n("AButton"),y=n("icon-drag-arrow"),b=n("icon-expand"),w=n("icon-file"),_=n("a-popover"),C=n("icon-folder"),V=n("icon-lock"),M=n("AButtonGroup");return i(),u(M,{class:"comp-toolbar-ext"},{default:p(()=>[z(_,{title:"\u5386\u53f2\u8bb0\u5f55",position:"br",trigger:"click"},{content:p(()=>[k("ul",to,[(i(!0),r(s,null,c(m.value,(e,t)=>(i(),r("li",{key:t,onClick:t=>{return l=e,void o().update(l.json);var l}},["\u521d\u59cb"===e.type?(i(),u(l,{key:0})):"\u79fb\u52a8"===e.type?(i(),u(y,{key:1})):"\u5927\u5c0f"===e.type?(i(),u(b,{key:2})):(i(),u(w,{key:3})),x(" "+g(e.type),1)],8,lo))),128))])]),default:p(()=>[z(h,{title:"\u5386\u53f2\u8bb0\u5f55",size:"small",shape:"square"},{icon:p(()=>[z(l)]),_:1})]),_:1}),z(_,{title:"\u7ec4\u4ef6\u5217\u8868",position:"br",trigger:"click"},{content:p(()=>[k("ul",oo,[(i(!0),r(s,null,c(a.value,(e,t)=>(i(),r("li",{key:t,onClick:t=>v(e,"click"),onMouseover:t=>v(e,"mouseover"),onMouseout:t=>v(e,"mouseout")},[e.locked?(i(),u(V,{key:0,style:{right:"0",left:"auto"}})):d("",!0),x(" "+g(e.title)+" ",1),"object"===e._sourceType?(i(),u(C,{key:1})):(i(),u(f(pl),{key:2,type:f(cl)(e.type)},null,8,["type"]))],40,ao))),128))])]),default:p(()=>[z(h,{title:"\u7ec4\u4ef6\u5217\u8868",size:"small",shape:"square"},{icon:p(()=>[z(C)]),_:1})]),_:1})]),_:1})}}}),io="";function ro(e){return Array.isArray(e)?[...e]:[]}function so(e){return[{tid:`${e}.text`,title:"\u6587\u672c",type:"text",options:{height:13}},{tid:`${e}.longText`,title:"\u957f\u6587\u672c",type:"text",options:{width:200,height:40}},{tid:`${e}.number`,title:"\u6570\u503c",type:"text",options:{height:13}},{tid:`${e}.table`,title:"\u8868\u683c",type:"table",columns:[[{title:"",align:"center",field:"",width:100},{title:"",align:"center",field:"",width:100},{title:"",align:"center",field:"",width:100}]],editable:!0,columnDisplayEditable:!0,columnDisplayIndexEditable:!0,columnTitleEditable:!0,columnResizable:!0,columnAlignEditable:!0,options:{width:300}},{tid:`${e}.image`,data:"data:image/gif;base64,R0lGODdhAQABAIABAAAAAOjo6CwAAAAAAQABAAACAkwBADs=",title:"\u56fe\u7247",type:"image",options:{width:60,height:60}},{tid:`${e}.barcode`,title:"\u6761\u5f62\u7801",type:"text",options:{field:"barcode",testData:"123456789",height:32,textAlign:"center",textType:"barcode"}},{tid:`${e}.qrcode`,title:"\u4e8c\u7ef4\u7801",type:"text",options:{field:"qrcode",testData:"123456789",height:60,width:60,textAlign:"center",textType:"qrcode"}},{tid:`${e}.hline`,title:"\u6c34\u5e73\u7ebf",type:"hline"},{tid:`${e}.vline`,title:"\u5782\u76f4\u7ebf",type:"vline"},{tid:`${e}.rect`,title:"\u77e9\u5f62",type:"rect"},{tid:`${e}.oval`,title:"\u692d\u5706",type:"oval"}]}const uo="\u901a\u7528\u63a7\u4ef6",co="defaultModule",po=()=>{const e=so(co);return{list:e,addElementTypes:t=>{t.removePrintElementTypes(co),t.addPrintElementTypes(co,[new oe.PrintElementTypeGroup(uo,e)])}}},mo="\u6570\u636e\u63a7\u4ef6",vo="dataModule",fo=e=>{const t=so(vo),l=ro(e).map(e=>{const{field:l}=e,o=t.find(t=>t.type===e.type)||t[0],{type:a,options:n}=o,i={...o,tid:`${co}.${l}`,title:e.text,options:{...n,field:l,_sourceType:e.type}};if("table"===a){const t=[ro(e.fields).map((e,t)=>({title:e.text,align:"center",field:e.field,width:100,checked:t<8}))];i.columns=t,i.options.width=null}return i});return{list:l,addElementTypes:e=>{e.removePrintElementTypes(vo),e.addPrintElementTypes(vo,[new oe.PrintElementTypeGroup(mo,l)])}}},ho=e=>[{name:uo,type:1,value:co,...po()},{name:mo,type:2,value:vo,...fo(e)}],yo={class:"u-aside comp-hiprint-design"},go={class:"u-page u-page--row"},bo={class:"u-card u-h"},wo={class:"u-card__bd u-aside__bd",style:{padding:"0","overflow-y":"auto"}},_o={id:"HI_sideContainer"},ko={class:"u-main",style:{padding:"0"}},zo={class:"u-card u-h"},xo={class:"u-card__hd u-aside__hd"},Co={class:"u-main u-aside__bd",style:{padding:"0"}},Vo={id:"HI_bodyContainer"},Mo={class:"u-card__bd u-aside__bd comp-hiprint-scrollbar",style:{"overflow-x":"hidden","overflow-y":"auto"}},So={id:"HI_panelContainer"},Ao=219,To="ep-draggable-item arco-btn arco-btn-secondary arco-btn-shape-square arco-btn-size-mini arco-btn-status-normal",Eo=a({__name:"index",props:{template:{default:void 0},fields:{default:void 0},printData:{default:void 0}},emits:["onSave","onChange"],setup(e,{expose:t,emit:o}){const a=l(!0),v=l(!0),h=e,b=o,_=(e,{slots:t})=>{var l;const o=null!=(l=e.tid)?l:`defaultModule.${e.type}`,a=t.default?t.default():"",n=t.icon?t.icon():L(pl,{type:cl(e.type)});return L("a",{class:To,tid:o},[n,a])},C=l(0),V=l();function M(){var e;"function"==typeof(null==(e=V.value)?void 0:e.onResize)&&V.value.onResize()}let S;const T="#HI_mainContainer",E="#HI_panelContainer";async function O(){await F(),oe.PrintElementTypeManager.buildByHtml(ne(".ep-draggable-item"))}const H=l(),$=l(),B=l(),D=l([]),P=l();function j(){C.value=Date.now()}function N(){const{hiprintTemplate:e,providers:t}=function(){const e=ho(h.fields);return oe.init({providers:e}),O(),oe.setConfig({optionItems:[]}),ne(T).empty(),S=new oe.PrintTemplate({template:h.template,fields:h.fields,fontList:[{title:"\u5fae\u8f6f\u96c5\u9ed1",value:"Microsoft YaHei"},{title:"\u9ed1\u4f53",value:"STHeitiSC-Light"},{title:"\u5b8b\u4f53",value:"SimSun"},{title:"cursive",value:"cursive"}],dataMode:1,history:!0,willOutOfBounds:!0,qtDesigner:!0,paperNumberDisabled:!0,onUpdateError:e=>{},settingContainer:E}),S.design(T,{grid:!1}),{hiprintTemplate:S,providers:e}}();D.value=t[1].list,O(),B.value=e,Ml(e,{onSelect:e=>{P.value=e.printElement.id,j()},onSetting:()=>{P.value=null,j()},onData(e){b("onChange",e),"\u8c03\u6574\u5927\u5c0f"===e&&M(),j()}}),M()}function U(){return B.value?B.value.getJson():null}w(()=>h.fields,N),A(N),w(()=>h.template,()=>{B.value&&B.value.update(h.template)});const K=l(1);function W(e=1){B.value&&(e<.5&&(e=.5),e>5&&(e=5),K.value=e,B.value.zoom(e))}function G(){B.value&&H.value.show(B.value,h.printData)}function J(){var e,t;null==(t=null==(e=$.value)?void 0:e.show)||t.call(e,B.value,h.printData)}function Y(){B.value&&b("onSave",U())}return t({getRef:()=>B.value,getJson:U,setJson(e){B.value&&B.value.update("object"==typeof e?JSON.stringify(e):e)}}),(e,t)=>{const l=n("icon-folder"),o=n("AEmpty"),h=n("icon-right"),b=n("icon-left"),w=n("a-button"),S=n("icon-question-circle"),A=n("AButton"),T=n("AButtonGroup");return i(),r("div",yo,[k("div",go,[k("div",{class:"u-page__side",style:y({width:v.value?Ao+"px":"0px"})},[I(k("div",bo,[t[14]||(t[14]=k("div",{class:"u-card__hd u-aside__hd"},[k("strong",{class:"comp-hiprint-title"},"\u7ec4\u4ef6\u5e93")],-1)),k("div",wo,[k("div",_o,[z(fl,{title:"\u57fa\u7840"},{default:p(()=>[z(_,{type:"text"},{default:p(()=>[...t[2]||(t[2]=[x("\u6587\u672c",-1)])]),_:1}),z(_,{type:"number"},{default:p(()=>[...t[3]||(t[3]=[x("\u6570\u503c",-1)])]),_:1}),z(_,{type:"image"},{default:p(()=>[...t[4]||(t[4]=[x("\u56fe\u7247",-1)])]),_:1}),z(_,{type:"longText"},{default:p(()=>[...t[5]||(t[5]=[x("\u957f\u6587\u672c",-1)])]),_:1}),z(_,{type:"table"},{default:p(()=>[...t[6]||(t[6]=[x("\u6570\u636e\u8868\u683c",-1)])]),_:1}),z(_,{type:"hline"},{default:p(()=>[...t[7]||(t[7]=[x("\u6c34\u5e73\u7ebf",-1)])]),_:1}),z(_,{type:"vline"},{default:p(()=>[...t[8]||(t[8]=[x("\u5782\u76f4\u7ebf",-1)])]),_:1}),z(_,{type:"rect"},{default:p(()=>[...t[9]||(t[9]=[x("\u77e9\u5f62",-1)])]),_:1}),z(_,{type:"oval"},{default:p(()=>[...t[10]||(t[10]=[x("\u692d\u5706",-1)])]),_:1})]),_:1}),z(fl,{title:"\u6761\u7801"},{default:p(()=>[z(_,{type:"barcode"},{default:p(()=>[...t[11]||(t[11]=[x("\u6761\u5f62\u7801",-1)])]),_:1}),z(_,{type:"qrcode"},{default:p(()=>[...t[12]||(t[12]=[x("\u4e8c\u7ef4\u7801",-1)])]),_:1})]),_:1}),z(fl,{title:"\u4e1a\u52a1\u7ec4\u4ef6"},{default:p(()=>{var e;return[(i(!0),r(s,null,c(D.value,e=>{var t,o;return i(),u(_,{key:e.tid,tid:e.tid,type:e.type,style:y("font-weight: "+("object"===(null==(t=e.options)?void 0:t._sourceType)?"bold":"normal"))},R({default:p(()=>[x(" "+g(e.title),1)]),_:2},["object"===(null==(o=e.options)?void 0:o._sourceType)?{name:"icon",fn:p(()=>[z(l)]),key:"0"}:void 0]),1032,["tid","type","style"])}),128)),(null==(e=D.value)?void 0:e.length)?d("",!0):(i(),u(o,{key:0},{default:p(()=>[...t[13]||(t[13]=[k("small",null,"\u6682\u65e0\u6570\u636e",-1)])]),_:1}))]}),_:1})])])],512),[[q,v.value]]),z(w,{type:"secondary",status:"normal",size:"mini",class:"arco-btn-light u-page__arrow",style:y({zIndex:999,borderLeftWidth:v.value?"0":"1px"}),onClick:t[0]||(t[0]=e=>(v.value=!v.value,void M()))},{icon:p(()=>[v.value?(i(),u(b,{key:1})):(i(),u(h,{key:0}))]),_:1},8,["style"])],4),k("div",ko,[k("div",zo,[k("div",xo,[z(Ql,{tpl:B.value,"selected-id":P.value,"update-time":C.value,zoom:K.value,"set-zoom":W},{left:p(({options:t})=>[m(e.$slots,"toolbar-left",{tpl:B.value,options:t,updateTime:C.value})]),right:p(({options:t})=>[m(e.$slots,"toolbar-right",{tpl:B.value,options:t,updateTime:C.value},()=>[z(no,{tpl:B.value,"update-time":C.value},null,8,["tpl","update-time"])]),z(T,{size:"small"},{default:p(()=>[z(A,{shape:"square",title:"\u5e2e\u52a9",onClick:J},{icon:p(()=>[z(S)]),_:1}),z(A,{shape:"square",title:"\u9884\u89c8",onClick:G},{icon:p(()=>[z(f(pl),{type:"icon-24gl-eye"})]),_:1}),z(A,{shape:"square",title:"\u4fdd\u5b58",onClick:Y},{icon:p(()=>[z(f(pl),{type:"icon-baocun",size:"16"})]),_:1})]),_:1})]),_:3},8,["tpl","selected-id","update-time","zoom"])]),k("div",Co,[k("div",Vo,[t[15]||(t[15]=k("div",{id:"HI_scrollContainer"},[k("div",{id:"HI_mainContainer",class:"hiprint-printTemplate"})],-1)),z(hl,{ref_key:"guidesRef",ref:V,zoom:K.value,"main-container":"#HI_bodyContainer","warp-container":"#HI_scrollContainer"},null,8,["zoom"])])])])]),k("div",{class:"u-page__panel u-card",style:y({width:a.value?Ao+"px":"0px"})},[t[17]||(t[17]=k("div",{class:"u-card__hd u-aside__hd"},[k("strong",{class:"comp-hiprint-title"},"\u5c5e\u6027\u914d\u7f6e")],-1)),k("div",Mo,[k("div",So,[z(o,{style:{"padding-top":"32px"}},{default:p(()=>[...t[16]||(t[16]=[k("small",null,"\u6682\u65e0\u6570\u636e",-1)])]),_:1})])]),z(w,{type:"secondary",status:"normal",size:"mini",class:"arco-btn-light u-page__arrow",style:y({zIndex:999,borderRightWidth:a.value?"0":"1px"}),onClick:t[1]||(t[1]=e=>(a.value=!a.value,void M()))},{icon:p(()=>[a.value?(i(),u(h,{key:0})):(i(),u(b,{key:1}))]),_:1},8,["style"])],4)]),z(bl,{ref_key:"preViewRef",ref:H},null,512),z(xl,{ref_key:"kbdRef",ref:$},null,512)])}}}),Oo="",Ro=re("orc-dict",()=>{const e=l({});let t=null;return{dicts:e,registerLoadFn:function(e){t=e},getDict:async function(l,o=!1){if(!o&&e.value[l])return e.value[l];if(!t)throw new Error("[DictStore] \u5b57\u5178\u52a0\u8f7d\u51fd\u6570\u672a\u8bbe\u7f6e\uff0c\u8bf7\u5148\u8c03\u7528 registerLoadFn");const a=await t(l);return e.value[l]=a,e.value[l]},clearCache:function(t){t?delete e.value[t]:e.value={}}}});function Ho(e=[{value:"1",label:"\u5f85\u5ba1\u6838",color:"orangered"},{value:"2",label:"\u5df2\u5ba1\u6838",color:"green"},{value:"3",label:"\u5173\u95ed",color:"gray"}],t="small"){return{cell:L(l=>{var o;const{value:a,row:n}=l,i=e.find(e=>"function"==typeof e.value?e.value(String(null!=a?a:""),n):e.value===a),r="function"==typeof(null==i?void 0:i.label)?i.label(String(null!=a?a:""),n):null!=(o=null==i?void 0:i.label)?o:a;return L(Y,{bordered:!0,size:t,color:null==i?void 0:i.color},()=>r)}),div:!0,cellAttr:{value:e=>e.value,row:e=>e.record}}}const $o={string:102,date:72,time:132,number:82,link:122,status:82},Bo=(e,t,l)=>({dataIndex:e,title:t,...void 0!==(null==l?void 0:l.dataType)&&{width:$o[l.dataType]},...l}),Lo={formItem(e,t,l){if(1===arguments.length)return{model:e};const{options:o,defaultValue:a,props:n,componentAttr:i,events:r,type:s,...u}=l||{};return{type:s,model:e,name:t,...o&&{options:o},...void 0!==a&&{defaultValue:a},...(n||i)&&{componentAttr:{...i,...n}},...r&&{events:r},...u}},tableItem:Bo,formTable(e,t,l,o={}){const{span:a,required:n,defaultValue:i,events:r,show:s,...u}=o;return{type:nl,model:e,name:t,...a||n?{options:{...a&&{span:a},...n&&{required:n}}}:{},defaultValue:null!=i?i:[],...r&&{events:r},...void 0!==s&&{show:s},componentAttr:{...u,options:l}}},formLayer(e,t,l,o={}){const{span:a,required:n,defaultValue:i,events:r,show:s,...u}=o;return{type:il,model:e,name:t,...a||n?{options:{...a&&{span:a},...n&&{required:n}}}:{},...void 0!==i&&{defaultValue:i},...r&&{events:r},...void 0!==s&&{show:s},componentAttr:{...u,options:l}}},tableItemStatus:(e,t,l,o,a)=>Bo(e,t,{width:82,dataType:"status",...Ho(l,o),...a})},Do={install(t){t.use(e),t.component("OrcTable",Pe),t.component("OrcSearch",Rt),t.component("OrcForm",Xt),t.component("OrcFormButton",Zt)}};export{Lo as ColBuilder,Xt as OrcForm,Zt as OrcFormButton,il as OrcFormLayer,Qt as OrcFormSpace,nl as OrcFormTable,Eo as OrcHiPrint,rl as OrcHiddenView,Pt as OrcProvider,Lt as OrcQuill,Rt as OrcSearch,Pe as OrcTable,Fe as asRecordAny,Ne as asRecordArray,Qe as deepClone,ot as deepMerge,Do as default,Nt as delay,Kt as downLoadPdf,rt as download,tt as findObject,ce as formatTable,Wt as generateQRcodeBase64,nt as getData,lt as getUniqueId,ae as hiprint,We as isArray,Xe as isEmptyArray,Ye as isEmptyObject,Je as isNumber,Ge as isObject,Ue as log,Ft as mergeConfig,et as omitObject,qt as onConfirm,Ut as queueMap,it as setData,Ze as toArray,Ke as typeName,Ro as useDictStore,$t as useOrcSearch,qe as useOrcTable,je as useOrcTableFooter,It as useState};
|
package/lib/style.css
CHANGED
|
@@ -501,6 +501,9 @@
|
|
|
501
501
|
color: rgb(var(--primary-6));
|
|
502
502
|
background-color: var(--color-secondary-hover);
|
|
503
503
|
}
|
|
504
|
+
.comp-hiprint-toolbar .arco-btn.arco-btn-secondary.arco-btn-disabled {
|
|
505
|
+
border-color: var(--color-fill-3);
|
|
506
|
+
}
|
|
504
507
|
.comp-hiprint-toolbar-label {
|
|
505
508
|
width: 3em;
|
|
506
509
|
padding: 0 0.5em;
|
|
@@ -590,6 +593,24 @@ label.comp-hiprint-toolbar-label {
|
|
|
590
593
|
box-sizing: border-box;
|
|
591
594
|
overflow: hidden;
|
|
592
595
|
}
|
|
596
|
+
#HI_bodyContainer .hiprint-printPaper.hidroppable.design::after {
|
|
597
|
+
content: '';
|
|
598
|
+
position: absolute;
|
|
599
|
+
left: 50%;
|
|
600
|
+
bottom: -1.2em;
|
|
601
|
+
width: 6em;
|
|
602
|
+
max-width: 100%;
|
|
603
|
+
height: 4px;
|
|
604
|
+
transform: translateX(-50%);
|
|
605
|
+
border-radius: 999px;
|
|
606
|
+
background: #d1d5db;
|
|
607
|
+
opacity: 0.5;
|
|
608
|
+
transition: 0.5s linear;
|
|
609
|
+
cursor: pointer;
|
|
610
|
+
}
|
|
611
|
+
#HI_bodyContainer .hiprint-printPaper.hidroppable.design:hover::after {
|
|
612
|
+
opacity: 1;
|
|
613
|
+
}
|
|
593
614
|
#HI_mainContainer,
|
|
594
615
|
#HI_scrollContainer,
|
|
595
616
|
#HI_bodyContainer {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shaonq/vue",
|
|
3
3
|
"description": "shaonq Vue Library",
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.2",
|
|
5
5
|
"author": "shaonq@qq.com",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "./lib/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@arco-design/web-vue": "^2.58.0",
|
|
31
31
|
"@scena/guides": "^0.29.2",
|
|
32
|
-
"@shaonq/hiprint": "^1.1.
|
|
32
|
+
"@shaonq/hiprint": "^1.1.1",
|
|
33
33
|
"@zumer/snapdom": "^1.9.14",
|
|
34
34
|
"bwip-js": "^4.10.1",
|
|
35
35
|
"dayjs": "^1.11.21",
|