@aplus-frontend/ui 0.1.25 → 0.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/es/src/ap-download/ap-download.vue.d.ts +7 -3
  2. package/es/src/ap-download/ap-download.vue.mjs +50 -35
  3. package/es/src/ap-download/interface.d.ts +3 -11
  4. package/es/src/ap-download/style/ap-download.css +3 -0
  5. package/es/src/ap-form/ap-form-item.vue.mjs +26 -26
  6. package/es/src/ap-table/ap-table.vue.mjs +231 -183
  7. package/es/src/ap-table/components/interface.d.ts +33 -1
  8. package/es/src/ap-table/components/setting/images/icon_carst_down.svg.mjs +4 -0
  9. package/es/src/ap-table/components/setting/images/icon_fill_right.svg.mjs +4 -0
  10. package/es/src/ap-table/components/setting/modal/index.vue.d.ts +28 -0
  11. package/es/src/ap-table/components/setting/modal/index.vue.mjs +4 -0
  12. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +152 -0
  13. package/es/src/ap-table/components/setting/select-group/index.vue.d.ts +13 -0
  14. package/es/src/ap-table/components/setting/select-group/index.vue.mjs +4 -0
  15. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +96 -0
  16. package/es/src/ap-table/components/setting/sortable/index.vue.d.ts +13 -0
  17. package/es/src/ap-table/components/setting/sortable/index.vue.mjs +4 -0
  18. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +51 -0
  19. package/es/src/ap-table/components/setting/sortable/item.vue.d.ts +20 -0
  20. package/es/src/ap-table/components/setting/sortable/item.vue.mjs +4 -0
  21. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +140 -0
  22. package/es/src/ap-table/components/setting/sorter/context.d.ts +11 -0
  23. package/es/src/ap-table/components/setting/sorter/context.mjs +20 -0
  24. package/es/src/ap-table/components/setting/sorter/index.vue.d.ts +18 -0
  25. package/es/src/ap-table/components/setting/sorter/index.vue.mjs +4 -0
  26. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +199 -0
  27. package/es/src/ap-table/components/setting/tree-select/index.vue.d.ts +13 -0
  28. package/es/src/ap-table/components/setting/tree-select/index.vue.mjs +4 -0
  29. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +75 -0
  30. package/es/src/ap-table/components/setting/utils.d.ts +17 -0
  31. package/es/src/ap-table/components/setting/utils.mjs +48 -0
  32. package/es/src/ap-table/components/style/setting/modal.css +39 -0
  33. package/es/src/ap-table/components/style/setting/select-group.css +7 -0
  34. package/es/src/ap-table/components/style/setting/sortable-item-meta.css +50 -0
  35. package/es/src/ap-table/components/style/setting/sortable-item.css +3 -0
  36. package/es/src/ap-table/components/style/setting/sorter.css +26 -0
  37. package/es/src/ap-table/constants.d.ts +31 -8
  38. package/es/src/ap-table/constants.mjs +41 -53
  39. package/es/src/ap-table/context.d.ts +31 -0
  40. package/es/src/ap-table/context.mjs +20 -0
  41. package/es/src/ap-table/hooks/use-table-column-state.d.ts +18 -0
  42. package/es/src/ap-table/hooks/use-table-column-state.mjs +46 -0
  43. package/es/src/ap-table/hooks/use-table-content-height.mjs +19 -19
  44. package/es/src/ap-table/hooks/use-table-paging.d.ts +1 -0
  45. package/es/src/ap-table/hooks/use-table-paging.mjs +87 -82
  46. package/es/src/ap-table/interface.d.ts +51 -1
  47. package/es/src/ap-table/style/ap-table.css +29 -1
  48. package/es/src/ap-table/utils.d.ts +1 -1
  49. package/es/src/ap-table/utils.mjs +82 -82
  50. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +91 -89
  51. package/es/src/ap-upload/components/Picture.vue2.mjs +114 -112
  52. package/es/src/ap-upload/components/SingleFile.vue2.mjs +10 -7
  53. package/es/src/business/ap-attachment/ApAttachment.d.ts +1 -1
  54. package/es/src/business/ap-attachment/ApAttachment.mjs +45 -42
  55. package/es/src/business/ap-attachment/style.css +2 -0
  56. package/es/src/business/ap-ladder/ApLadder.vue2.mjs +114 -84
  57. package/es/src/business/ap-ladder/interface.d.ts +42 -0
  58. package/es/src/business/ap-ladder/interface.mjs +10 -0
  59. package/es/src/business/hooks/usePageListApTable.d.ts +8 -3
  60. package/es/src/business/hooks/usePageListApTable.mjs +27 -17
  61. package/es/src/business/hooks/useTableRefresh.d.ts +3 -4
  62. package/es/src/business/hooks/useTableRefresh.mjs +9 -9
  63. package/es/src/business/index.d.ts +4 -4
  64. package/es/src/editable-table/interface.d.ts +1 -1
  65. package/es/src/locale/lang/en.mjs +14 -0
  66. package/es/src/locale/lang/zh-cn.mjs +14 -0
  67. package/es/src/theme/ap-attachment/ap-attachment.css +2 -0
  68. package/es/src/theme/ap-download/ap-download.css +3 -0
  69. package/es/src/theme/ap-table/ap-table.css +29 -1
  70. package/es/src/theme/ap-table/setting/modal.css +39 -0
  71. package/es/src/theme/ap-table/setting/select-group.css +7 -0
  72. package/es/src/theme/ap-table/setting/sortable-item-meta.css +50 -0
  73. package/es/src/theme/ap-table/setting/sortable-item.css +3 -0
  74. package/es/src/theme/ap-table/setting/sorter.css +26 -0
  75. package/es/src/theme/css-var/index.mjs +22 -12
  76. package/lib/src/ap-download/ap-download.vue.d.ts +7 -3
  77. package/lib/src/ap-download/ap-download.vue.js +1 -1
  78. package/lib/src/ap-download/interface.d.ts +3 -11
  79. package/lib/src/ap-download/style/ap-download.css +3 -0
  80. package/lib/src/ap-form/ap-form-item.vue.js +1 -1
  81. package/lib/src/ap-table/ap-table.vue.js +1 -1
  82. package/lib/src/ap-table/components/interface.d.ts +33 -1
  83. package/lib/src/ap-table/components/setting/images/icon_carst_down.svg.js +1 -0
  84. package/lib/src/ap-table/components/setting/images/icon_fill_right.svg.js +1 -0
  85. package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +28 -0
  86. package/lib/src/ap-table/components/setting/modal/index.vue.js +1 -0
  87. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -0
  88. package/lib/src/ap-table/components/setting/select-group/index.vue.d.ts +13 -0
  89. package/lib/src/ap-table/components/setting/select-group/index.vue.js +1 -0
  90. package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -0
  91. package/lib/src/ap-table/components/setting/sortable/index.vue.d.ts +13 -0
  92. package/lib/src/ap-table/components/setting/sortable/index.vue.js +1 -0
  93. package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -0
  94. package/lib/src/ap-table/components/setting/sortable/item.vue.d.ts +20 -0
  95. package/lib/src/ap-table/components/setting/sortable/item.vue.js +1 -0
  96. package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -0
  97. package/lib/src/ap-table/components/setting/sorter/context.d.ts +11 -0
  98. package/lib/src/ap-table/components/setting/sorter/context.js +1 -0
  99. package/lib/src/ap-table/components/setting/sorter/index.vue.d.ts +18 -0
  100. package/lib/src/ap-table/components/setting/sorter/index.vue.js +1 -0
  101. package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -0
  102. package/lib/src/ap-table/components/setting/tree-select/index.vue.d.ts +13 -0
  103. package/lib/src/ap-table/components/setting/tree-select/index.vue.js +1 -0
  104. package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -0
  105. package/lib/src/ap-table/components/setting/utils.d.ts +17 -0
  106. package/lib/src/ap-table/components/setting/utils.js +1 -0
  107. package/lib/src/ap-table/components/style/setting/modal.css +39 -0
  108. package/lib/src/ap-table/components/style/setting/select-group.css +7 -0
  109. package/lib/src/ap-table/components/style/setting/sortable-item-meta.css +50 -0
  110. package/lib/src/ap-table/components/style/setting/sortable-item.css +3 -0
  111. package/lib/src/ap-table/components/style/setting/sorter.css +26 -0
  112. package/lib/src/ap-table/constants.d.ts +31 -8
  113. package/lib/src/ap-table/constants.js +1 -1
  114. package/lib/src/ap-table/context.d.ts +31 -0
  115. package/lib/src/ap-table/context.js +1 -0
  116. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +18 -0
  117. package/lib/src/ap-table/hooks/use-table-column-state.js +1 -0
  118. package/lib/src/ap-table/hooks/use-table-content-height.js +1 -1
  119. package/lib/src/ap-table/hooks/use-table-paging.d.ts +1 -0
  120. package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
  121. package/lib/src/ap-table/interface.d.ts +51 -1
  122. package/lib/src/ap-table/style/ap-table.css +29 -1
  123. package/lib/src/ap-table/utils.d.ts +1 -1
  124. package/lib/src/ap-table/utils.js +1 -1
  125. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  126. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  127. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  128. package/lib/src/business/ap-attachment/ApAttachment.d.ts +1 -1
  129. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  130. package/lib/src/business/ap-attachment/style.css +2 -0
  131. package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
  132. package/lib/src/business/ap-ladder/interface.d.ts +42 -0
  133. package/lib/src/business/ap-ladder/interface.js +1 -0
  134. package/lib/src/business/hooks/usePageListApTable.d.ts +8 -3
  135. package/lib/src/business/hooks/usePageListApTable.js +1 -1
  136. package/lib/src/business/hooks/useTableRefresh.d.ts +3 -4
  137. package/lib/src/business/hooks/useTableRefresh.js +1 -1
  138. package/lib/src/business/index.d.ts +4 -4
  139. package/lib/src/editable-table/interface.d.ts +1 -1
  140. package/lib/src/locale/lang/en.js +1 -1
  141. package/lib/src/locale/lang/zh-cn.js +1 -1
  142. package/lib/src/theme/ap-attachment/ap-attachment.css +2 -0
  143. package/lib/src/theme/ap-download/ap-download.css +3 -0
  144. package/lib/src/theme/ap-table/ap-table.css +29 -1
  145. package/lib/src/theme/ap-table/setting/modal.css +39 -0
  146. package/lib/src/theme/ap-table/setting/select-group.css +7 -0
  147. package/lib/src/theme/ap-table/setting/sortable-item-meta.css +50 -0
  148. package/lib/src/theme/ap-table/setting/sortable-item.css +3 -0
  149. package/lib/src/theme/ap-table/setting/sorter.css +26 -0
  150. package/lib/src/theme/css-var/index.js +1 -1
  151. package/package.json +3 -2
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const w=require("../utils/returnData.js"),z=require("../hooks/useOss.js"),x=require("../utils/accept.js"),s=require("ant-design-vue"),J=require("@ant-design/icons-vue"),O=require("../assets/single-file-icon.png.js");require("../styles/single-file.css");const K=require("../../config-provider/hooks/use-locale.js"),Q=require("../../config-provider/hooks/use-namespace.js"),X=["accept"],Y={key:0,class:"state-un"},Z=["src"],ee={class:"state-un-title"},te={class:"state-un-subtitle"},ne={key:1,class:"state-ing"},ae={class:"left"},oe=["src"],le={class:"center"},re={class:"center-progress"},se=e.defineComponent({__name:"SingleFile",setup(ce){const{t:r}=K.useLocale(),{b:m}=Q.useNamespace("ap-upload-single-file"),{put:V,client:F}=z.useOss(),g=e.inject("theme"),P=e.inject("dirName"),h=e.inject("accept")||"*",_=e.inject("maxSize")??500,L=e.inject("title")||r("ap.apUpload.clickOrDragUpload"),k=e.inject("subTitle"),a=e.inject("value"),D=e.inject("needName"),u=e.inject("uploadingCount"),S=e.inject("beforeUpload"),U=e.inject("customRequest"),R=e.inject("getOssAccess"),o=e.ref(null);e.watch(()=>a==null?void 0:a.value,function(t){const n=w.getName(D,t);o.value===null&&t&&(l.value=3,o.value=new File([t],n,{}))});const l=e.ref(1),d=e.ref(0),f=e.ref(null),j=e.computed(()=>o.value&&(a==null?void 0:a.value));function T(){var t;l.value===1&&((t=f.value)==null||t.click())}function q(t){t.preventDefault(),t.stopPropagation()}function I(t){t.dataTransfer.dropEffect="copy",t.preventDefault(),t.stopPropagation()}function M(t){B(t)}function $(t){if(t.preventDefault(),t.stopPropagation(),l.value!==1)return;var n=t.dataTransfer,c=[],A=0,b=n.files.length;function i(){A===b-1&&M(c),A++}if(n.items!==void 0)for(var y=0;y<n.items.length;y++){var N=n.items[y];if(N.kind==="file"&&N.webkitGetAsEntry().isFile){var H=N.getAsFile();c.push(H),i()}}else for(let E=0;E<b;E++){var v=n.files[E];if(v.type)c.push(v),i();else try{var C=new FileReader;C.readAsDataURL(v.slice(0,3)),C.addEventListener("load",function(p){console.warn(p,"load"),c.push(v),i()},!1),C.addEventListener("error",function(p){console.warn(p,"error"),s.message.warning(r("ap.apUpload.foldersNotSupported")),i()},!1)}catch(p){console.warn(p),s.message.warning(r("ap.apUpload.foldersNotSupported")),i()}}}function G(t){const n=t.target;B(n==null?void 0:n.files),f.value&&(f.value.value="")}async function B(t){if(t!=null&&t.length){if(typeof S=="function"){if(S(t[0])===!1)return}else{if(t[0].size>_*1024*1024){s.message.warning(r("ap.apUpload.maxUploadFileSize",{maxSize:_}));return}if(!x.fileMatchesAccept(t[0],h)){s.message.warning(r("ap.apUpload.fileFormatNotSupported"));return}}if(o.value=t[0],l.value=2,d.value=0,a.value="",u.value++,typeof U=="function"){U({onProgress:n=>{d.value=n},onError:n=>{s.message.warning(n||r("ap.apUpload.networkAnomaly")),l.value=1,o.value=null,u.value--},onSuccess:n=>{a.value=w.getReturnData(D,n,o.value.name),l.value=3,u.value--},file:t[0]});return}try{await z.useOssInit(R),V({file:o.value,dirName:P,oss:F,successCallBack(n){a.value=w.getReturnData(D,n,o.value.name),l.value=3,u.value--},errorCallBack(n){s.message.warning(n||r("ap.apUpload.networkAnomaly")),l.value=1,o.value=null,u.value--},progressCallBack(n){d.value=n}})}catch(n){s.message.warning(typeof(n==null?void 0:n.message)=="string"?n.message:r("ap.apUpload.networkAnomaly")),l.value=1,o.value=null,u.value--}}}function W(){o.value&&!(a!=null&&a.value)&&F.pauseUpload(),l.value=1,o.value=null,a.value=void 0}return(t,n)=>{var c;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({[e.unref(m)()]:!0,[e.unref(m)("admin")]:e.unref(g)==="admin",[e.unref(m)("un")]:l.value===1}),onClick:T,onDragenter:q,onDragover:I,onDragleave:q,onDrop:$},[e.createElementVNode("input",{style:{display:"none"},type:"file",ref_key:"fileRef",ref:f,accept:e.unref(h),onChange:G},null,40,X),l.value===1?(e.openBlock(),e.createElementBlock("div",Y,[e.createElementVNode("img",{class:"state-un-icon",src:e.unref(O.default)},null,8,Z),e.createElementVNode("div",ee,e.toDisplayString(e.unref(L)),1),e.createElementVNode("div",te,e.toDisplayString(typeof e.unref(k)=="string"&&e.unref(k).length>0?e.unref(k):`${e.unref(r)("ap.apUpload.supportExtension")}:${e.unref(x.getAcceptText)(e.unref(h))},${e.unref(r)("ap.apUpload.maxWarnUploadFileSize",{maxSize:e.unref(_)})}`),1)])):e.createCommentVNode("",!0),[2,3].includes(l.value)?(e.openBlock(),e.createElementBlock("div",ne,[e.createElementVNode("div",ae,[e.createElementVNode("img",{src:e.unref(O.default)},null,8,oe)]),e.createElementVNode("div",le,[e.createElementVNode("div",{class:"center-title",style:e.normalizeStyle({color:j.value?"#0070FF":"#182948"})},e.toDisplayString((c=o.value)==null?void 0:c.name),5),e.createElementVNode("div",re,[j.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(s.Progress),{key:0,percent:d.value,size:4,showInfo:!1,trailColor:e.unref(g)==="admin"?"#D9D9D9":"#DEE4ED",strokeColor:e.unref(g)==="admin"?"#34B77C":"#0070FF"},null,8,["percent","trailColor","strokeColor"]))])]),e.createElementVNode("div",{class:"right",onClick:e.withModifiers(W,["stop"])},[e.createVNode(e.unref(J.DeleteOutlined))])])):e.createCommentVNode("",!0)],34)}}});exports.default=se;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const w=require("../utils/returnData.js"),z=require("../hooks/useOss.js"),x=require("../utils/accept.js"),s=require("ant-design-vue"),J=require("@ant-design/icons-vue"),O=require("../assets/single-file-icon.png.js");require("../styles/single-file.css");const K=require("../../config-provider/hooks/use-locale.js"),Q=require("../../config-provider/hooks/use-namespace.js"),X=["accept"],Y={key:0,class:"state-un"},Z=["src"],ee={class:"state-un-title"},te={class:"state-un-subtitle"},ne={key:1,class:"state-ing"},ae={class:"left"},oe=["src"],le={class:"center"},re={class:"center-progress"},se=e.defineComponent({__name:"SingleFile",setup(ce){const{t:r}=K.useLocale(),{b:m}=Q.useNamespace("ap-upload-single-file"),{put:V,client:F}=z.useOss(),g=e.inject("theme"),P=e.inject("dirName"),h=e.inject("accept")||"*",_=e.inject("maxSize")??500,L=e.inject("title")||r("ap.apUpload.clickOrDragUpload"),k=e.inject("subTitle"),a=e.inject("value"),D=e.inject("needName"),u=e.inject("uploadingCount"),S=e.inject("beforeUpload"),U=e.inject("customRequest"),R=e.inject("getOssAccess"),o=e.ref(null);e.watch(()=>a==null?void 0:a.value,function(t){if(o.value===null&&t){const n=w.getName(D,t);l.value=3,o.value=new File([t],n,{})}},{immediate:!0});const l=e.ref(1),d=e.ref(0),f=e.ref(null),j=e.computed(()=>o.value&&(a==null?void 0:a.value));function T(){var t;l.value===1&&((t=f.value)==null||t.click())}function q(t){t.preventDefault(),t.stopPropagation()}function I(t){t.dataTransfer.dropEffect="copy",t.preventDefault(),t.stopPropagation()}function M(t){B(t)}function $(t){if(t.preventDefault(),t.stopPropagation(),l.value!==1)return;var n=t.dataTransfer,c=[],A=0,b=n.files.length;function i(){A===b-1&&M(c),A++}if(n.items!==void 0)for(var y=0;y<n.items.length;y++){var N=n.items[y];if(N.kind==="file"&&N.webkitGetAsEntry().isFile){var H=N.getAsFile();c.push(H),i()}}else for(let E=0;E<b;E++){var v=n.files[E];if(v.type)c.push(v),i();else try{var C=new FileReader;C.readAsDataURL(v.slice(0,3)),C.addEventListener("load",function(p){console.warn(p,"load"),c.push(v),i()},!1),C.addEventListener("error",function(p){console.warn(p,"error"),s.message.warning(r("ap.apUpload.foldersNotSupported")),i()},!1)}catch(p){console.warn(p),s.message.warning(r("ap.apUpload.foldersNotSupported")),i()}}}function G(t){const n=t.target;B(n==null?void 0:n.files),f.value&&(f.value.value="")}async function B(t){if(t!=null&&t.length){if(typeof S=="function"){if(S(t[0])===!1)return}else{if(t[0].size>_*1024*1024){s.message.warning(r("ap.apUpload.maxUploadFileSize",{maxSize:_}));return}if(!x.fileMatchesAccept(t[0],h)){s.message.warning(r("ap.apUpload.fileFormatNotSupported"));return}}if(o.value=t[0],l.value=2,d.value=0,a.value="",u.value++,typeof U=="function"){U({onProgress:n=>{d.value=n},onError:n=>{s.message.warning(n||r("ap.apUpload.networkAnomaly")),l.value=1,o.value=null,u.value--},onSuccess:n=>{a.value=w.getReturnData(D,n,o.value.name),l.value=3,u.value--},file:t[0]});return}try{await z.useOssInit(R),V({file:o.value,dirName:P,oss:F,successCallBack(n){a.value=w.getReturnData(D,n,o.value.name),l.value=3,u.value--},errorCallBack(n){s.message.warning(n||r("ap.apUpload.networkAnomaly")),l.value=1,o.value=null,u.value--},progressCallBack(n){d.value=n}})}catch(n){s.message.warning(typeof(n==null?void 0:n.message)=="string"?n.message:r("ap.apUpload.networkAnomaly")),l.value=1,o.value=null,u.value--}}}function W(){o.value&&!(a!=null&&a.value)&&F.pauseUpload(),l.value=1,o.value=null,a.value=void 0}return(t,n)=>{var c;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({[e.unref(m)()]:!0,[e.unref(m)("admin")]:e.unref(g)==="admin",[e.unref(m)("un")]:l.value===1}),onClick:T,onDragenter:q,onDragover:I,onDragleave:q,onDrop:$},[e.createElementVNode("input",{style:{display:"none"},type:"file",ref_key:"fileRef",ref:f,accept:e.unref(h),onChange:G},null,40,X),l.value===1?(e.openBlock(),e.createElementBlock("div",Y,[e.createElementVNode("img",{class:"state-un-icon",src:e.unref(O.default)},null,8,Z),e.createElementVNode("div",ee,e.toDisplayString(e.unref(L)),1),e.createElementVNode("div",te,e.toDisplayString(typeof e.unref(k)=="string"&&e.unref(k).length>0?e.unref(k):`${e.unref(r)("ap.apUpload.supportExtension")}:${e.unref(x.getAcceptText)(e.unref(h))},${e.unref(r)("ap.apUpload.maxWarnUploadFileSize",{maxSize:e.unref(_)})}`),1)])):e.createCommentVNode("",!0),[2,3].includes(l.value)?(e.openBlock(),e.createElementBlock("div",ne,[e.createElementVNode("div",ae,[e.createElementVNode("img",{src:e.unref(O.default)},null,8,oe)]),e.createElementVNode("div",le,[e.createElementVNode("div",{class:"center-title",style:e.normalizeStyle({color:j.value?"#0070FF":"#182948"})},e.toDisplayString((c=o.value)==null?void 0:c.name),5),e.createElementVNode("div",re,[j.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(s.Progress),{key:0,percent:d.value,size:4,showInfo:!1,trailColor:e.unref(g)==="admin"?"#D9D9D9":"#DEE4ED",strokeColor:e.unref(g)==="admin"?"#34B77C":"#0070FF"},null,8,["percent","trailColor","strokeColor"]))])]),e.createElementVNode("div",{class:"right",onClick:e.withModifiers(W,["stop"])},[e.createVNode(e.unref(J.DeleteOutlined))])])):e.createCommentVNode("",!0)],34)}}});exports.default=se;
@@ -42,7 +42,7 @@ declare const _default: DefineComponent<{
42
42
  toolTipBgColor: {
43
43
  type: StringConstructor;
44
44
  };
45
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
45
+ }, () => false | import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
46
46
  attachmentList: {
47
47
  type: PropType<Array<AttachmentItemProps>>;
48
48
  default: never[];
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("ant-design-vue");require("../../config-provider/index.js");const L=require("./constans.js"),v=require("../../ap-download/utils/getFileInfo.js");require("./style.css");const x=require("../../ap-download/hooks/index.js"),O=require("lodash-unified"),T=require("../../config-provider/hooks/use-namespace.js"),h=require("../../config-provider/hooks/use-global-config.js"),b=require("../../config-provider/hooks/use-locale.js"),P=e.defineComponent({name:"ApAttachment",props:L.ApAttachmentProps(),setup(t){const{b:g,e:o}=T.useNamespace("ap-attachment"),N=h.useGlobalConfig("uiMode"),p=h.useGlobalConfig("apUpload"),{lang:A,t:c}=b.useLocale(),s=e.useSlots(),V=e.computed(()=>A.value==="zh-cn"?"zh_CN":"en_US"),l=e.computed(()=>t.attachmentList.length===1),r=e.computed(()=>t.attachmentList.length>0?t.attachmentList[0].fileName:""),w=e.computed(()=>l.value?r.value:c("ap.apAttachment.downloadall")),d=e.computed(()=>t.color?t.color:N.value==="aplus"?"#0070FF":"#1890FF"),C=e.computed(()=>({width:l.value?"auto":"266px"})),m=e.computed(()=>({"--download-main-color":d.value,"--download-main-color-opacity":v.getHexWithOpacity(d.value,.6)})),q=e.computed(()=>{var a;return t.getOssAccess||((a=p.value)==null?void 0:a.getOssAccess)}),y=e.computed(()=>{const a=s.default?s.default()[0]:null;return a?e.cloneVNode(a,{style:{"font-size":"16px"}}):null}),u=async a=>{if(!t.disabled){const n=await x.useOssInit(q.value,e.unref(V)),i=O.isArray(e.toRaw(a))?e.toRaw(a):[e.toRaw(a)];await n.downloadFile(v.getFileInfo(t.needName,i))}},F=a=>a&&a.length>0?e.createVNode("ul",{class:[o("file-list")],style:m.value},[a.map((n,i)=>e.createVNode("li",{key:i,class:[o("file-item")],onClick:()=>u(n)},[n.fileName])),e.createVNode("li",{class:[o("down-load-all")],onClick:()=>u(t.attachmentList)},[c("ap.apAttachment.downloadall")])]):null;return()=>e.createVNode("div",{class:[g()],style:[C.value,m.value]},[e.createVNode(f.Tooltip,{title:w.value,placement:t.textToolTipPlacement,color:t.toolTipBgColor},{default:()=>[e.createVNode("div",{class:[o("content")],onClick:()=>u(l.value?t.attachmentList[0]:t.attachmentList)},[s.default?e.createVNode("div",{class:[o("text-render")]},[y.value,e.createTextVNode(" ")]):null,e.createVNode("div",{class:[o("text-inner")]},[r.value])])]}),e.createVNode(f.Popover,{content:F(t.attachmentList),placement:t.fileMorePopoverPlacement,color:"#fff"},{default:()=>[!l.value&&e.createVNode("div",{class:[o("more")]},[c("ap.apAttachment.more")])]})])}});exports.default=P;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("ant-design-vue");require("../../config-provider/index.js");const F=require("./constans.js"),v=require("../../ap-download/utils/getFileInfo.js");require("./style.css");const x=require("../../ap-download/hooks/index.js"),O=require("lodash-unified"),T=require("../../config-provider/hooks/use-namespace.js"),h=require("../../config-provider/hooks/use-global-config.js"),b=require("../../config-provider/hooks/use-locale.js"),P=e.defineComponent({name:"ApAttachment",props:F.ApAttachmentProps(),setup(t){const{b:g,e:o}=T.useNamespace("ap-attachment"),N=h.useGlobalConfig("uiMode"),p=h.useGlobalConfig("apUpload"),{lang:A,t:c}=b.useLocale(),s=e.useSlots(),V=e.computed(()=>A.value==="zh-cn"?"zh_CN":"en_US"),n=e.computed(()=>t.attachmentList.length===1),r=e.computed(()=>t.attachmentList.length>0?t.attachmentList[0].fileName:""),w=e.computed(()=>n.value?r.value:c("ap.apAttachment.downloadall")),d=e.computed(()=>t.color?t.color:N.value==="aplus"?"#0070FF":"#1890FF"),C=e.computed(()=>({width:n.value?"auto":"266px"})),m=e.computed(()=>({"--download-main-color":d.value,"--download-main-color-opacity":v.getHexWithOpacity(d.value,.6)})),L=e.computed(()=>{var a;return t.getOssAccess||((a=p.value)==null?void 0:a.getOssAccess)}),q=e.computed(()=>{const a=s.default?s.default()[0]:null;return a?e.cloneVNode(a,{style:{"font-size":"16px"}}):null}),i=async a=>{if(!t.disabled){const l=await x.useOssInit(L.value,e.unref(V)),u=O.isArray(e.toRaw(a))?e.toRaw(a):[e.toRaw(a)];await l.downloadFile(v.getFileInfo(t.needName,u))}},y=a=>a&&a.length>0?e.createVNode("ul",{class:[o("file-list")],style:m.value},[a.map((l,u)=>e.createVNode("li",{key:u,class:[o("file-item")],onClick:()=>i(l)},[l.fileName])),e.createVNode("li",{class:[o("down-load-all")],onClick:()=>i(t.attachmentList)},[c("ap.apAttachment.downloadall")])]):null;return()=>{var a;return((a=t.attachmentList)==null?void 0:a.length)>0&&e.createVNode("div",{class:[g()],style:[C.value,m.value]},[e.createVNode(f.Tooltip,{title:w.value,placement:t.textToolTipPlacement,color:t.toolTipBgColor},{default:()=>[e.createVNode("div",{class:[o("content")],onClick:()=>i(n.value?t.attachmentList[0]:t.attachmentList)},[s.default?e.createVNode("div",{class:[o("text-render")]},[q.value,e.createTextVNode(" ")]):null,e.createVNode("div",{class:[o("text-inner")]},[r.value])])]}),e.createVNode(f.Popover,{content:y(t.attachmentList),placement:t.fileMorePopoverPlacement,color:"#fff"},{default:()=>[!n.value&&e.createVNode("div",{class:[o("more")]},[c("ap.apAttachment.more")])]})])}}});exports.default=P;
@@ -39,6 +39,8 @@
39
39
  max-width: 312px;
40
40
  display: flex;
41
41
  flex-direction: column;
42
+ margin: 0;
43
+ padding: 0;
42
44
  }
43
45
  .aplus-ap-attachment__file-item {
44
46
  flex: 1;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("ant-design-vue");require("../../config-provider/index.js");require("./style.css");const h=require("../../config-provider/hooks/use-namespace.js"),V=require("../../config-provider/hooks/use-global-config.js"),b={key:0},D={key:1},N=["onClick"],P={key:0},j={key:1},_=e.defineComponent({name:"ApLadder",__name:"ApLadder",props:{major:{default:""},minor:{default:""},majorColor:{default:""},minorColor:{default:""},layout:{default:"vertical"},tooltip:{type:Boolean,default:!0},labelValues:{default:()=>[]},tooltipProps:{default:()=>({title:void 0,align:{},arrowPointAtCenter:!1,arrow:!0,autoAdjustOverflow:!0,color:"",destroyTooltipOnHide:!1,getPopupContainer:()=>document.body,mouseEnterDelay:.1,mouseLeaveDelay:.1,overlayClassName:"",overlayStyle:{},overlayInnerStyle:{},placement:"top",trigger:"hover"})}},setup(y){const n=e.useSlots(),t=y,{b:k,e:r,m:f}=h.useNamespace("ap-ladder"),C=V.useGlobalConfig("uiMode","aplus"),s=`ap-ladder-${Math.floor(Math.random()*1e7)}`,B=r("ellipsis"),c=e.ref(!1),S=e.computed(()=>t.major||t.minor),g=e.computed(()=>t.labelValues.length>0),u=e.computed(()=>t.majorColor?{color:`${t.majorColor}`}:{}),m=e.computed(()=>t.minorColor?{color:`${t.minorColor}`}:{}),a=o=>o==null?"--":typeof o=="string"?o||"--":typeof o=="number"?o.toFixed(2):"--",E=()=>{const o=document.getElementById(s);if(!o)return;o.querySelectorAll(`.${B}`).forEach(l=>{l.clientWidth<l.scrollWidth&&(c.value=!0)})},p=e.computed(()=>n.title?!0:t.tooltip&&e.unref(c)),v=o=>{o&&window.open(o,"_blank")};return e.onMounted(()=>{E()}),(o,z)=>(e.openBlock(),e.createElementBlock("div",{id:s,class:e.normalizeClass([e.unref(k)(),`${e.unref(f)(e.unref(C))}`])},[S.value?(e.openBlock(),e.createBlock(e.unref(d.Tooltip),e.normalizeProps(e.mergeProps({key:0},{...t.tooltipProps})),e.createSlots({default:e.withCtx(()=>[t.layout==="vertical"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(r)("major"),e.unref(r)("ellipsis")]),style:e.normalizeStyle(u.value)},e.toDisplayString(o.major||"--"),7),e.createElementVNode("div",{class:e.normalizeClass([e.unref(r)("minor"),e.unref(r)("ellipsis")]),style:e.normalizeStyle(m.value)},e.toDisplayString(o.minor||"--"),7)],64)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(r)("ellipsis"))},[e.createElementVNode("span",{class:e.normalizeClass([e.unref(r)("major")]),style:e.normalizeStyle(u.value)},e.toDisplayString(o.major||"--"),7),e.createElementVNode("span",{class:e.normalizeClass([e.unref(r)("minor")]),style:e.normalizeStyle(m.value)},e.toDisplayString(o.minor||"--"),7)],2))]),_:2},[p.value?{name:"title",fn:e.withCtx(()=>[n.title?e.renderSlot(o.$slots,"title",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.tooltipProps.title?(e.openBlock(),e.createElementBlock("div",b,e.toDisplayString(t.tooltipProps.title),1)):(e.openBlock(),e.createElementBlock("div",D,[e.createElementVNode("div",null,e.toDisplayString(o.major||"--"),1),e.createElementVNode("div",null,e.toDisplayString(o.minor||"--"),1)]))],64))]),key:"0"}:void 0]),1040)):e.createCommentVNode("",!0),g.value?(e.openBlock(),e.createBlock(e.unref(d.Tooltip),e.normalizeProps(e.mergeProps({key:1},{...t.tooltipProps})),e.createSlots({default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.labelValues,(l,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:e.normalizeClass([e.unref(r)("ellipsis")])},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(r)("label")),style:e.normalizeStyle(l.labelColor?{color:l.labelColor}:void 0)},e.toDisplayString(l.label)+":",7),l.link?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(r)("link")),style:e.normalizeStyle(l.linkColor?{color:l.linkColor}:void 0),onClick:w=>v(l.link)},e.toDisplayString(a(l.value)),15,N)):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(r)("value")),style:e.normalizeStyle(l.valueColor?{color:l.valueColor}:void 0)},e.toDisplayString(a(l.value)),7)),l.unit?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(e.unref(r)("unit")),style:e.normalizeStyle(l.unitColor?{color:l.unitColor}:void 0)},e.toDisplayString(l.unit),7)):e.createCommentVNode("",!0)],2))),128))]),_:2},[p.value?{name:"title",fn:e.withCtx(()=>[n.title?e.renderSlot(o.$slots,"title",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.tooltipProps.title?(e.openBlock(),e.createElementBlock("div",P,e.toDisplayString(t.tooltipProps.title),1)):(e.openBlock(),e.createElementBlock("div",j,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.labelValues,(l,i)=>(e.openBlock(),e.createElementBlock("div",{key:i},[e.createElementVNode("span",null,e.toDisplayString(l.label),1),e.createElementVNode("span",null,e.toDisplayString(a(l.value)),1)]))),128))]))],64))]),key:"0"}:void 0]),1040)):e.createCommentVNode("",!0)],2))}});exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),B=require("ant-design-vue");require("../../config-provider/index.js");const N=require("./interface.js");require("./style.css");const _=require("../../config-provider/hooks/use-namespace.js"),D=require("../../config-provider/hooks/use-global-config.js"),P={key:1},j={key:0},w={key:1},$={key:0},F=["onClick"],M={key:0},q={key:1},O={key:0},L={key:1},A=e.defineComponent({name:"ApLadder",__name:"ApLadder",props:{major:{default:""},minor:{default:""},majorColor:{default:""},minorColor:{default:""},layout:{default:"vertical"},tooltip:{type:Boolean,default:!0},labelValues:{default:()=>[]},tooltipProps:{default:()=>({title:void 0,align:{},arrowPointAtCenter:!1,arrow:!0,autoAdjustOverflow:!0,color:"",destroyTooltipOnHide:!1,getPopupContainer:()=>document.body,mouseEnterDelay:.1,mouseLeaveDelay:.1,overlayClassName:"",overlayStyle:{},overlayInnerStyle:{},placement:"top",trigger:"hover"})}},setup(C){const u=e.useSlots(),l=C,{b:S,e:r,m:g}=_.useNamespace("ap-ladder"),E=D.useGlobalConfig("uiMode","aplus"),p=`ap-ladder-${Math.floor(Math.random()*1e7)}`,h=r("ellipsis"),s=e.ref(!1),b=e.computed(()=>l.labelValues.length===0),v=e.computed(()=>l.labelValues.length>0),m=e.computed(()=>l.majorColor?{color:`${l.majorColor}`}:{}),d=e.computed(()=>l.minorColor?{color:`${l.minorColor}`}:{}),c=t=>t==null||typeof t=="string"&&t.trim()==="",a=(t,n={})=>{const o={rawValue:n.rawValue,precision:n.precision===void 0?2:n.precision,thousand:n.thousand,thousandSeparator:n.thousandSeparator||",",currency:n.currency,percent:n.percent};return c(t)?"--":o.rawValue?t:typeof t=="number"?o.percent?`${t.toFixed(o.precision)}%`:o.currency?t.toLocaleString(N.locales[o.currency],{style:"currency",currency:o.currency}):o.thousand?t.toFixed(o.precision).replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${o.thousandSeparator}`):t.toFixed(o.precision):t},V=()=>{const t=document.getElementById(p);if(!t)return;const n=t.querySelectorAll(`.${h}`);new ResizeObserver(i=>{i.forEach(k=>{k.target===t&&(s.value=!1,n.forEach(f=>{f.clientWidth<f.scrollWidth&&(s.value=!0)}))})}).observe(t),s.value=!1,n.forEach(i=>{i.clientWidth<i.scrollWidth&&(s.value=!0)})},y=e.computed(()=>u.title?!0:l.tooltip&&e.unref(s)),z=t=>{t&&window.open(t,"_blank")};return e.onMounted(()=>{V()}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{id:p,class:e.normalizeClass([e.unref(S)(),`${e.unref(g)(e.unref(E))}`])},[b.value?(e.openBlock(),e.createBlock(e.unref(B.Tooltip),e.normalizeProps(e.mergeProps({key:0},{...l.tooltipProps})),e.createSlots({default:e.withCtx(()=>[!c(t.major)||!c(t.minor)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.layout==="vertical"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(r)("major"),e.unref(r)("ellipsis")]),style:e.normalizeStyle(m.value)},e.toDisplayString(a(t.major)),7),e.createElementVNode("div",{class:e.normalizeClass([e.unref(r)("minor"),e.unref(r)("ellipsis")]),style:e.normalizeStyle(d.value)},e.toDisplayString(a(t.minor)),7)],64)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(r)("ellipsis"))},[e.createElementVNode("span",{class:e.normalizeClass([e.unref(r)("major")]),style:e.normalizeStyle(m.value)},e.toDisplayString(a(t.major)),7),e.createElementVNode("span",{class:e.normalizeClass([e.unref(r)("minor")]),style:e.normalizeStyle(d.value)},e.toDisplayString(a(t.minor)),7)],2))],64)):(e.openBlock(),e.createElementBlock("div",P,e.toDisplayString("--")))]),_:2},[y.value?{name:"title",fn:e.withCtx(()=>[u.title?e.renderSlot(t.$slots,"title",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.tooltipProps.title?(e.openBlock(),e.createElementBlock("div",j,e.toDisplayString(l.tooltipProps.title),1)):(e.openBlock(),e.createElementBlock("div",w,[e.createElementVNode("div",null,e.toDisplayString(a(t.major)),1),e.createElementVNode("div",null,e.toDisplayString(a(t.minor)),1)]))],64))]),key:"0"}:void 0]),1040)):e.createCommentVNode("",!0),v.value?(e.openBlock(),e.createBlock(e.unref(B.Tooltip),e.normalizeProps(e.mergeProps({key:1},{...l.tooltipProps})),e.createSlots({default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.labelValues,(o,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:e.normalizeClass([e.unref(r)("ellipsis")])},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(r)("label")),style:e.normalizeStyle(o.labelColor?{color:o.labelColor}:void 0)},[e.createTextVNode(e.toDisplayString(o.label),1),o.label?(e.openBlock(),e.createElementBlock("span",$,":")):e.createCommentVNode("",!0)],6),c(o.link)?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(r)("value")),style:e.normalizeStyle(o.valueColor?{color:o.valueColor}:void 0)},e.toDisplayString(a(o.value,{...o})),7)):(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(r)("link")),style:e.normalizeStyle(o.linkColor?{color:o.linkColor}:void 0),onClick:k=>z(o.link)},e.toDisplayString(a(o.value,{...o})),15,F)),o.unit?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(e.unref(r)("unit")),style:e.normalizeStyle(o.unitColor?{color:o.unitColor}:void 0)},e.toDisplayString(o.unit),7)):e.createCommentVNode("",!0)],2))),128))]),_:2},[y.value?{name:"title",fn:e.withCtx(()=>[u.title?e.renderSlot(t.$slots,"title",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.tooltipProps.title?(e.openBlock(),e.createElementBlock("div",M,e.toDisplayString(l.tooltipProps.title),1)):(e.openBlock(),e.createElementBlock("div",q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.labelValues,(o,i)=>(e.openBlock(),e.createElementBlock("div",{key:i},[o.label?(e.openBlock(),e.createElementBlock("span",O,e.toDisplayString(o.label),1)):e.createCommentVNode("",!0),o.label?(e.openBlock(),e.createElementBlock("span",L,":")):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(a(o.value,{...o})),1)]))),128))]))],64))]),key:"0"}:void 0]),1040)):e.createCommentVNode("",!0)],2))}});exports.default=A;
@@ -16,6 +16,30 @@ export interface ApLadderLabelValue {
16
16
  * 值
17
17
  */
18
18
  value: string | number | undefined | null;
19
+ /**
20
+ * 是否采用原始值
21
+ */
22
+ rawValue?: boolean;
23
+ /**
24
+ * 精度 默认2位小数
25
+ */
26
+ precision?: number;
27
+ /**
28
+ * 千分位展示
29
+ */
30
+ thousand?: boolean;
31
+ /**
32
+ * 千分位分隔符
33
+ */
34
+ thousandSeparator?: string;
35
+ /**
36
+ * 货币单位
37
+ */
38
+ currency?: CurrencyCode;
39
+ /**
40
+ * 百分比展示
41
+ */
42
+ percent?: boolean;
19
43
  /**
20
44
  * 自定义单位
21
45
  */
@@ -90,3 +114,21 @@ export interface ApLadderProps {
90
114
  export interface ApLadderSlots {
91
115
  title?: VNode;
92
116
  }
117
+ /**
118
+ * 国际货币代码-映射-语言
119
+ */
120
+ export interface CurrencyCodeInLocale {
121
+ [string: string]: Intl.LocalesArgument;
122
+ }
123
+ /**
124
+ * 国际货币代码
125
+ * - `CNY` 人民币
126
+ * - `USD` 美元
127
+ * - `EUR` 欧元
128
+ * - `GBP` 英镑
129
+ */
130
+ export type CurrencyCode = 'CNY' | 'USD' | 'EUR' | 'GBP';
131
+ /**
132
+ * 国际货币代码-映射-语言
133
+ */
134
+ export declare const locales: CurrencyCodeInLocale;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={USD:"en-US",CNY:"zh-CN",EUR:"de-DE",GBP:"en-GB"};exports.locales=e;
@@ -1,4 +1,5 @@
1
1
  import { ApTableProps } from '../../';
2
+ import { UseTableRefreshOption } from './useTableRefresh';
2
3
  import { Recordable } from '../../type';
3
4
  export interface UsePageListApTable extends ApTableProps {
4
5
  /** 是否显示默认的行选择配置
@@ -15,6 +16,10 @@ export interface UsePageListApTable extends ApTableProps {
15
16
  clearSelectionOnRequest?: boolean;
16
17
  /** 用于覆盖默认的class */
17
18
  class?: string;
19
+ /**
20
+ * 表格刷新相关
21
+ */
22
+ tableRefresh?: boolean | Omit<UseTableRefreshOption, 'apTableRef'>;
18
23
  }
19
24
  /**
20
25
  * 集成了列表页面的ApTable的默认配置
@@ -33,14 +38,14 @@ export declare function usePageListApTable(props?: UsePageListApTable): [ApTable
33
38
  dataSource: any;
34
39
  rowSelection?: {
35
40
  select: (item: any) => void;
41
+ selectAll: () => void;
42
+ unSelectAll: () => void;
36
43
  selectedRows: any[];
37
44
  unSelect: (item: any) => void;
38
45
  isSelected: (item: any) => boolean;
39
- selectAll: () => void;
40
- unSelectAll: () => void;
41
46
  clearAll: () => void;
42
47
  toggleSelect: (item: any) => void;
43
48
  } | undefined;
44
- } | null;
49
+ } | null | undefined;
45
50
  clearSelection: () => void;
46
51
  }];
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("lodash-unified"),f=require("vue");function S(n){const r=f.ref(null),{isShowRowSelection:c=!0,clearSelectionOnRequest:u=!0,transformSearchFormValues:a,api:o,...i}=n||{},l=()=>{var e,t;(t=(e=r.value)==null?void 0:e.rowSelection)==null||t.clearAll()},d=async e=>{const t=a?a(e):e;try{if(!o)throw new Error("api is not defined");const{records:s,total:p}=await o(t);return u&&l(),{data:s,total:p}}catch(s){return console.error(s),{data:[],total:0}}};return[b.merge({scroll:{x:"100%",y:"100%"},tableLayout:"fixed",columnResizable:!0,class:"ap-table--sticky",request:o?d:void 0,rowSelection:c?{mode:"internal",fixed:"left",columnWidth:50}:void 0,ref(e){r.value=e}},i),{reload:()=>{var e;(e=r.value)==null||e.submit()},reset:()=>{var e;(e=r.value)==null||e.reset()},getSearchFormValues:()=>{var t;const e=((t=r.value)==null?void 0:t.getSearchFormValues())||{};return a?a(e):e},getApTableInstance:()=>r.value,clearSelection:l}]}exports.usePageListApTable=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("lodash-unified"),h=require("vue"),m=require("./useTableRefresh.js");function S(a){return a===!0?{}:a===!1?{refreshBefore:()=>!1}:a}function v(a){const r=h.ref(null),{isShowRowSelection:c=!0,clearSelectionOnRequest:u=!0,transformSearchFormValues:s,api:o,tableRefresh:i=!1,...f}=a||{},n=()=>{var e,t;(t=(e=r.value)==null?void 0:e.rowSelection)==null||t.clearAll()};m.useTableRefresh({...S(i),apTableRef:r});const b=async e=>{const t=s?s(e):e;try{if(!o)throw new Error("api is not defined");const{records:l,total:d}=await o(t);return u&&n(),{data:l,total:d}}catch(l){return console.error(l),{data:[],total:0}}};return[p.merge({scroll:{x:"100%",y:"100%"},tableLayout:"fixed",columnResizable:!0,class:"ap-table--sticky",request:o?b:void 0,rowSelection:c?{mode:"internal",fixed:"left",columnWidth:50}:void 0,ref(e){r.value=e}},f),{reload:()=>{var e;(e=r.value)==null||e.submit()},reset:()=>{var e;(e=r.value)==null||e.reset()},getSearchFormValues:()=>{var t;const e=((t=r.value)==null?void 0:t.getSearchFormValues())||{};return s?s(e):e},getApTableInstance:()=>r.value,clearSelection:n}]}exports.usePageListApTable=v;
@@ -1,10 +1,10 @@
1
1
  import { Ref } from 'vue';
2
- import { ApTableExpose } from '../..';
3
- interface UseTableRefreshOption {
2
+ import { ApTableExpose } from '../../';
3
+ export interface UseTableRefreshOption {
4
4
  /**
5
5
  * apTable实例
6
6
  */
7
- apTableRef?: Ref<ApTableExpose | undefined>;
7
+ apTableRef?: Ref<ApTableExpose | undefined | null>;
8
8
  /**
9
9
  * 刷新类型,reset:重置,submit:提交
10
10
  */
@@ -15,4 +15,3 @@ interface UseTableRefreshOption {
15
15
  refreshBefore?: () => boolean;
16
16
  }
17
17
  export declare function useTableRefresh(option?: UseTableRefreshOption): void;
18
- export {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue");function b(e){const l=(["reset","submit",void 0].includes(e==null?void 0:e.refreskType)?e==null?void 0:e.refreskType:"submit")??"submit",r=(e==null?void 0:e.refreshBefore)??(()=>!0);let s=!0;a.onActivated(()=>{var u,f;if(s){s=!1;return}r!=null&&r()&&((f=(u=e==null?void 0:e.apTableRef)==null?void 0:u.value)==null||f[l]())})}exports.useTableRefresh=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue");function c(e){const a=(["reset","submit",void 0].includes(e==null?void 0:e.refreskType)?e==null?void 0:e.refreskType:"submit")??"submit",r=(e==null?void 0:e.refreshBefore)??(()=>!0);let u=!0;s.onMounted(()=>{s.nextTick(()=>{u=!1})}),s.onActivated(()=>{var f,l;u||r!=null&&r()&&((l=(f=e==null?void 0:e.apTableRef)==null?void 0:f.value)==null||l[a]())})}exports.useTableRefresh=c;
@@ -3,7 +3,7 @@ import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOpt
3
3
  import { TooltipPlacement, AdjustOverflow } from 'ant-design-vue/es/tooltip';
4
4
  import { VueTypeValidableDef } from '../../node_modules/vue-types';
5
5
  import { LiteralUnion, Key } from 'ant-design-vue/es/_util/type';
6
- import { ApStatusProps, ApStatusGroupItemProps, ApSelectItem, ApLabelGroupItemProps, ApBatchActionGroupMenuProps } from '.';
6
+ import { ApStatusProps, ApStatusGroupItemProps, ApSelectItem, ApLabelGroupItemProps, ApBatchActionGroupMenuProps, ApLadderLabelValue } from '.';
7
7
  import { ValueType } from 'ant-design-vue/es/input-number/src/utils/MiniDecimal';
8
8
  import { ApInputRadioOptions } from './ap-input-radio';
9
9
  import { KeyboardEventHandler, MouseEventHandler, FocusEventHandler } from 'ant-design-vue/es/_util/EventInterface';
@@ -17,7 +17,7 @@ import { accessCreate } from '@aplus-frontend/oss';
17
17
  import { TriggerType } from 'ant-design-vue/es/tooltip/abstractTooltipProps';
18
18
  import { PresetColorType } from 'ant-design-vue/es/_util/colors';
19
19
  import { AlignType, BuildInPlacements } from 'ant-design-vue/es/vc-trigger/interface';
20
- import { ApLadderLabelValue, ApLadderSlots } from './ap-ladder/interface';
20
+ import { ApLadderSlots } from './ap-ladder/interface';
21
21
  import { AttachmentItemProps, ApAttachmentProps } from './ap-attachment';
22
22
  export * from './hooks/index';
23
23
  export type { ApTitleProps } from './title/interface';
@@ -27,7 +27,7 @@ export type { ApStatusProps, ApStatusGroupProps, ApStatusGroupItemProps } from '
27
27
  export type { ApSelectItem, ApSelectLayoutProps } from './ap-select-layout/interface';
28
28
  export type { ApInputRadioProps, ApInputValType } from './ap-input-radio/interface';
29
29
  export type { ApExportGroupProps } from './ap-export-group/interface';
30
- export type { ApLadderProps } from './ap-ladder/interface';
30
+ export type { ApLadderProps, ApLadderLabelValue, CurrencyCode, TooltipNeedProps } from './ap-ladder/interface';
31
31
  export * from './ap-batch-action-group/interface';
32
32
  export type { AttachmentItemProps, ApAttachmentProps } from './ap-attachment';
33
33
  export declare const ApTitle: {
@@ -2748,7 +2748,7 @@ export declare const ApAttachment: DefineComponent<{
2748
2748
  toolTipBgColor: {
2749
2749
  type: StringConstructor;
2750
2750
  };
2751
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
2751
+ }, () => false | import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
2752
2752
  attachmentList: {
2753
2753
  type: PropType<Array< AttachmentItemProps>>;
2754
2754
  default: never[];
@@ -12,7 +12,7 @@ export type EditableColumnType<RecordType = any, ExtraValueType = 'text', ValueT
12
12
  /**
13
13
  * 在title之后展示一个icon并触发tooltip
14
14
  */
15
- tooltip?: string;
15
+ tooltip?: any;
16
16
  /**
17
17
  * 是否可以复制(不可编辑模式下可用)
18
18
  */
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"en",ap:{button:{prefix:"Prefix"},icon:{picker:{placeholder:"Click the select icon",search:"Search icon",copy:"Copy icon successfully!"}},form:{item:{apiSelect:{loadingTip:"Wait for data loading to complete..."}},maxTip:"The number of characters should be less than {count}"},common:{okText:"OK",cancelText:"Cancel",resetText:"Reset",queryText:"Search",expandText:"Unfold",closeText:"Put away",inputText:"Please enter",chooseText:"Please choose",redo:"Refresh",back:"Back",more:"More"},cropper:{modalTitle:"Avatar upload",okText:"Confirm and upload ",selectImage:"Select Image",rotateLeft:"Counterclockwise rotation",rotateRight:"Clockwise rotation",scaleX:"Flip horizontal",scaleY:"Flip vertical",zoomIn:"Zoom in",zoomOut:"Zoom out",preview:"Preview",imageTooBig:"Image too big",uploadSuccess:"Uploaded success!"},modal:{restore:"Restore",maximize:"Maximize",close:"Close"},countdown:{normalText:"Get SMS code",sendText:"Reacquire in {sec}s"},table:{settingColumn:"Column settings",settingColumnShow:"Column display",settingIndexColumnShow:"Index Column",settingSelectColumnShow:"Selection Column",settingFixedLeft:"Fixed Left",settingFixedRight:"Fixed Right",settingFullScreen:"Full Screen",settingDens:"Density",settingDensDefault:"Default",settingDensMiddle:"Middle",settingDensSmall:"Compact",selectionBarTips:"{count} records selected.",selectionBarEmpty:"No records selected.",selectionBarClear:"Clear",total:"total of {total}",index:"Index"},apForm:{search:{search:"Search",reset:"Reset"}},apTable:{pagination:{totalLeftPrefix:"Total",totalLeftSuffix:"items",totalRightPrefix:"Page",totalRightSuffix:""}},apUpload:{update:"Upload",pictureType:"Image type",videoType:"Video type",audioType:"Audio type",documentType:"Document type",allTypes:"All types",networkAnomaly:"Network abnormality",FailedToObtainOssTemporaryPermissions:"Failed to obtain temporary OSS permissions",pleasePass:"Please pass in",supportExtension:"Support extensions",uploadFile:"Upload files",fileInitializationException:"If the initial number of initialized files exceeds {maxCount}, subsequent uploaded files will be out of sync with the data",maxUploadFiles:"Upload a maximum of {maxCount} files",maxUploadPicture:"Upload a maximum of {maxCount} images",maxUploadFileSize:"The file size does not exceed {maxSize}MB",maxWarnUploadFileSize:"The file size is smaller than {maxSize}MB",maxUploadPictureSize:"The image size is smaller than {maxSize}MB",fileFormatNotSupported:"Files in this format are not supported",pictureFormatNotSupported:"Images in this format are not supported",imageParsingFailed:"Image parsing failed",clickOrDragUpload:"Click or drag the file",foldersNotSupported:"Do not support uploading folders"},apCustomColumn:{title:"Custom table",selectDes:"Please select the fields that you want to display in the table",allSelect:"check all"},apExportGroup:{exportError:"Export error",exportSelected:"Export selected",exportAll:"Export all",export:"Export"},apBatchAction:{selected:"Selected",piecesOfData:"Pieces of data",empty:"Empty"},apApBatchActionGroup:{batchOperation:"Batch operation"},workOrderModal:{createTickets:"Create ticket",submit:"Confirm",cancel:"Cancel",ticketsTitle:"Ticket Title",noEmpty:"No empty",pleaseEntry:"please enter",ticketsType:"Ticket Type",ticketsDetail:"Ticket Detail",ticketsLevel:"Priority",operationSuccess:"operate successfully",fileSizeMax:"Single file size limit",fileCountMax:"Limit the number to {x} at a time"},apTableModal:{titleSuffixOne:"You can add up to {maxCount},",titleSuffixTwo:"Added",titleSuffixThree:"",messageMaxCount:"You can select up to {maxCount} data entries"},apAttachment:{downloadall:"Download All",more:"More"}}};exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"en",ap:{button:{prefix:"Prefix"},icon:{picker:{placeholder:"Click the select icon",search:"Search icon",copy:"Copy icon successfully!"}},form:{item:{apiSelect:{loadingTip:"Wait for data loading to complete..."}},maxTip:"The number of characters should be less than {count}"},common:{okText:"OK",cancelText:"Cancel",resetText:"Reset",queryText:"Search",expandText:"Unfold",closeText:"Put away",inputText:"Please enter",chooseText:"Please choose",redo:"Refresh",back:"Back",more:"More"},cropper:{modalTitle:"Avatar upload",okText:"Confirm and upload ",selectImage:"Select Image",rotateLeft:"Counterclockwise rotation",rotateRight:"Clockwise rotation",scaleX:"Flip horizontal",scaleY:"Flip vertical",zoomIn:"Zoom in",zoomOut:"Zoom out",preview:"Preview",imageTooBig:"Image too big",uploadSuccess:"Uploaded success!"},modal:{restore:"Restore",maximize:"Maximize",close:"Close"},countdown:{normalText:"Get SMS code",sendText:"Reacquire in {sec}s"},table:{settingColumn:"Column settings",settingColumnShow:"Column display",settingIndexColumnShow:"Index Column",settingSelectColumnShow:"Selection Column",settingFixedLeft:"Fixed Left",settingFixedRight:"Fixed Right",settingFullScreen:"Full Screen",settingDens:"Density",settingDensDefault:"Default",settingDensMiddle:"Middle",settingDensSmall:"Compact",selectionBarTips:"{count} records selected.",selectionBarEmpty:"No records selected.",selectionBarClear:"Clear",total:"total of {total}",index:"Index"},apForm:{search:{search:"Search",reset:"Reset"}},apTable:{pagination:{totalLeftPrefix:"Total",totalLeftSuffix:"items",totalRightPrefix:"Page",totalRightSuffix:""},setting:{title:"Custom Table",selectAll:"Select All",unSelectAll:"Deselect All",selectAllTip:"Please select the columns to display in the table.",sizeSmall:"Small",sizeNormal:"Normal",selectCount:"Selected fields ({count})",reset:"Reset",fixToLeft:"Fixed on the left",fixToRight:"Fixed on the right",unFixed:"Not fixed",delete:"Delete"}},apUpload:{update:"Upload",pictureType:"Image type",videoType:"Video type",audioType:"Audio type",documentType:"Document type",allTypes:"All types",networkAnomaly:"Network abnormality",FailedToObtainOssTemporaryPermissions:"Failed to obtain temporary OSS permissions",pleasePass:"Please pass in",supportExtension:"Support extensions",uploadFile:"Upload files",fileInitializationException:"If the initial number of initialized files exceeds {maxCount}, subsequent uploaded files will be out of sync with the data",maxUploadFiles:"Upload a maximum of {maxCount} files",maxUploadPicture:"Upload a maximum of {maxCount} images",maxUploadFileSize:"The file size does not exceed {maxSize}MB",maxWarnUploadFileSize:"The file size is smaller than {maxSize}MB",maxUploadPictureSize:"The image size is smaller than {maxSize}MB",fileFormatNotSupported:"Files in this format are not supported",pictureFormatNotSupported:"Images in this format are not supported",imageParsingFailed:"Image parsing failed",clickOrDragUpload:"Click or drag the file",foldersNotSupported:"Do not support uploading folders"},apCustomColumn:{title:"Custom table",selectDes:"Please select the fields that you want to display in the table",allSelect:"check all"},apExportGroup:{exportError:"Export error",exportSelected:"Export selected",exportAll:"Export all",export:"Export"},apBatchAction:{selected:"Selected",piecesOfData:"Pieces of data",empty:"Empty"},apApBatchActionGroup:{batchOperation:"Batch operation"},workOrderModal:{createTickets:"Create ticket",submit:"Confirm",cancel:"Cancel",ticketsTitle:"Ticket Title",noEmpty:"No empty",pleaseEntry:"please enter",ticketsType:"Ticket Type",ticketsDetail:"Ticket Detail",ticketsLevel:"Priority",operationSuccess:"operate successfully",fileSizeMax:"Single file size limit",fileCountMax:"Limit the number to {x} at a time"},apTableModal:{titleSuffixOne:"You can add up to {maxCount},",titleSuffixTwo:"Added",titleSuffixThree:"",messageMaxCount:"You can select up to {maxCount} data entries"},apAttachment:{downloadall:"Download All",more:"More"}}};exports.default=e;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"zh-cn",ap:{button:{prefix:"前缀"},icon:{picker:{placeholder:"点击选择图标",search:"搜索图标",copy:"复制图标成功!"}},form:{item:{apiSelect:{loadingTip:"请等待数据加载完成..."}},maxTip:"字符数应小于{count}位"},common:{okText:"确认",cancelText:"取消",resetText:"重置",queryText:"查询",expandText:"展开",closeText:"收起",inputText:"请输入",chooseText:"请选择",redo:"刷新",back:"返回",more:"更多"},cropper:{modalTitle:"头像上传",okText:"确认并上传",selectImage:"选择图片",rotateLeft:"逆时针旋转",rotateRight:"顺时针旋转",scaleX:"水平翻转",scaleY:"垂直翻转",zoomIn:"放大",zoomOut:"缩小",preview:"预览",imageTooBig:"图片超限",uploadSuccess:"上传成功"},modal:{restore:"还原",maximize:"最大化",close:"关闭"},countdown:{normalText:"获取验证码",sendText:"{sec}秒后重新获取"},table:{settingColumn:"列设置",settingColumnShow:"列展示",settingIndexColumnShow:"序号列",settingSelectColumnShow:"勾选列",settingFixedLeft:"固定到左侧",settingFixedRight:"固定到右侧",settingFullScreen:"全屏",settingDens:"密度",settingDensDefault:"默认",settingDensMiddle:"中等",settingDensSmall:"紧凑",selectionBarTips:"已选择{count}条记录",selectionBarEmpty:"未选中任何记录",selectionBarClear:"清空",total:"共 {total} 条数据",index:"索引"},apForm:{search:{search:"查询",reset:"重置"}},apTable:{pagination:{totalLeftPrefix:"共",totalLeftSuffix:"条记录",totalRightPrefix:"第",totalRightSuffix:"页"}},apUpload:{update:"上传",pictureType:"图片类型",videoType:"视频类型",audioType:"音频类型",documentType:"文档类型",allTypes:"全部类型",networkAnomaly:"网络异常",FailedToObtainOssTemporaryPermissions:"获取oss临时权限失败",pleasePass:"请传入",supportExtension:"支持扩展名",uploadFile:"上传文件",fileInitializationException:"文件初始化个数超过{maxCount}个,后续上传的文件会与数据不同步",maxUploadFiles:"最多上传{maxCount}个文件",maxUploadPicture:"最多上传{maxCount}张图片",maxUploadFileSize:"文件大小不超过{maxSize}MB",maxWarnUploadFileSize:"文件大小小于{maxSize}MB",maxUploadPictureSize:"图片大小小于{maxSize}MB",fileFormatNotSupported:"不支持该格式的文件",pictureFormatNotSupported:"不支持该格式的图片",imageParsingFailed:"图片解析失败",clickOrDragUpload:"点击或将文件拖拽到这里上传",foldersNotSupported:"不支持上传文件夹"},apCustomColumn:{title:"自定义表格",selectDes:"请选择需要展示在表格的字段",allSelect:"全选"},apExportGroup:{exportError:"导出失败",exportSelected:"导出所选",exportAll:"导出全部",export:"导出"},apBatchAction:{selected:"已选",piecesOfData:"条数据",empty:"清空"},apApBatchActionGroup:{batchOperation:"批量操作"},workOrderModal:{createTickets:"创建工单",submit:"确定",cancel:"取消",ticketsTitle:"工单标题",noEmpty:"不可为空",pleaseEntry:"请输入",ticketsType:"工单类型",ticketsDetail:"工单详情",ticketsLevel:"优先级",operationSuccess:"操作成功",fileSizeMax:"单个文件大小限制",fileCountMax:"单次数量限制 {x} 个"},apTableModal:{titleSuffixOne:"最多可添加{maxCount}个,",titleSuffixTwo:"已添加",titleSuffixThree:"个",messageMaxCount:"最多选择{maxCount}条数据"},apAttachment:{downloadall:"下载全部",more:"更多"}}};exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"zh-cn",ap:{button:{prefix:"前缀"},icon:{picker:{placeholder:"点击选择图标",search:"搜索图标",copy:"复制图标成功!"}},form:{item:{apiSelect:{loadingTip:"请等待数据加载完成..."}},maxTip:"字符数应小于{count}位"},common:{okText:"确认",cancelText:"取消",resetText:"重置",queryText:"查询",expandText:"展开",closeText:"收起",inputText:"请输入",chooseText:"请选择",redo:"刷新",back:"返回",more:"更多"},cropper:{modalTitle:"头像上传",okText:"确认并上传",selectImage:"选择图片",rotateLeft:"逆时针旋转",rotateRight:"顺时针旋转",scaleX:"水平翻转",scaleY:"垂直翻转",zoomIn:"放大",zoomOut:"缩小",preview:"预览",imageTooBig:"图片超限",uploadSuccess:"上传成功"},modal:{restore:"还原",maximize:"最大化",close:"关闭"},countdown:{normalText:"获取验证码",sendText:"{sec}秒后重新获取"},table:{settingColumn:"列设置",settingColumnShow:"列展示",settingIndexColumnShow:"序号列",settingSelectColumnShow:"勾选列",settingFixedLeft:"固定到左侧",settingFixedRight:"固定到右侧",settingFullScreen:"全屏",settingDens:"密度",settingDensDefault:"默认",settingDensMiddle:"中等",settingDensSmall:"紧凑",selectionBarTips:"已选择{count}条记录",selectionBarEmpty:"未选中任何记录",selectionBarClear:"清空",total:"共 {total} 条数据",index:"索引"},apForm:{search:{search:"查询",reset:"重置"}},apTable:{pagination:{totalLeftPrefix:"共",totalLeftSuffix:"条记录",totalRightPrefix:"第",totalRightSuffix:"页"},setting:{title:"自定义表格",selectAll:"全选",unSelectAll:"取消全选",selectAllTip:"请选择需要展示在表格的字段",sizeSmall:"紧凑",sizeNormal:"正常",selectCount:"已选字段({count})",reset:"重置",fixToLeft:"固定在左侧",fixToRight:"固定在右侧",unFixed:"不固定",delete:"删除"}},apUpload:{update:"上传",pictureType:"图片类型",videoType:"视频类型",audioType:"音频类型",documentType:"文档类型",allTypes:"全部类型",networkAnomaly:"网络异常",FailedToObtainOssTemporaryPermissions:"获取oss临时权限失败",pleasePass:"请传入",supportExtension:"支持扩展名",uploadFile:"上传文件",fileInitializationException:"文件初始化个数超过{maxCount}个,后续上传的文件会与数据不同步",maxUploadFiles:"最多上传{maxCount}个文件",maxUploadPicture:"最多上传{maxCount}张图片",maxUploadFileSize:"文件大小不超过{maxSize}MB",maxWarnUploadFileSize:"文件大小小于{maxSize}MB",maxUploadPictureSize:"图片大小小于{maxSize}MB",fileFormatNotSupported:"不支持该格式的文件",pictureFormatNotSupported:"不支持该格式的图片",imageParsingFailed:"图片解析失败",clickOrDragUpload:"点击或将文件拖拽到这里上传",foldersNotSupported:"不支持上传文件夹"},apCustomColumn:{title:"自定义表格",selectDes:"请选择需要展示在表格的字段",allSelect:"全选"},apExportGroup:{exportError:"导出失败",exportSelected:"导出所选",exportAll:"导出全部",export:"导出"},apBatchAction:{selected:"已选",piecesOfData:"条数据",empty:"清空"},apApBatchActionGroup:{batchOperation:"批量操作"},workOrderModal:{createTickets:"创建工单",submit:"确定",cancel:"取消",ticketsTitle:"工单标题",noEmpty:"不可为空",pleaseEntry:"请输入",ticketsType:"工单类型",ticketsDetail:"工单详情",ticketsLevel:"优先级",operationSuccess:"操作成功",fileSizeMax:"单个文件大小限制",fileCountMax:"单次数量限制 {x} 个"},apTableModal:{titleSuffixOne:"最多可添加{maxCount}个,",titleSuffixTwo:"已添加",titleSuffixThree:"个",messageMaxCount:"最多选择{maxCount}条数据"},apAttachment:{downloadall:"下载全部",more:"更多"}}};exports.default=e;
@@ -39,6 +39,8 @@
39
39
  max-width: 312px;
40
40
  display: flex;
41
41
  flex-direction: column;
42
+ margin: 0;
43
+ padding: 0;
42
44
  }
43
45
  .aplus-ap-attachment__file-item {
44
46
  flex: 1;
@@ -14,6 +14,9 @@
14
14
  font-size: 18px;
15
15
  margin-right: 5px;
16
16
  }
17
+ .aplus-ap-download-inner-wrapper .text {
18
+ color: var(--download-main-color);
19
+ }
17
20
  .aplus-ap-download-inner-wrapper:hover {
18
21
  color: var(--download-main-color-opacity);
19
22
  }
@@ -7,7 +7,9 @@
7
7
  display: flex;
8
8
  flex-direction: column;
9
9
  }
10
- .aplus-ap-table-adaptive .ant-table-wrapper,
10
+ .aplus-ap-table-adaptive .ant-table-wrapper {
11
+ flex: 1;
12
+ }
11
13
  .aplus-ap-table-adaptive .ant-spin-nested-loading,
12
14
  .aplus-ap-table-adaptive .ant-spin-container {
13
15
  height: 100%;
@@ -35,6 +37,8 @@
35
37
  .aplus-ap-table__table-wrapper {
36
38
  flex: 1;
37
39
  max-height: 100%;
40
+ display: flex;
41
+ flex-direction: column;
38
42
  }
39
43
  .aplus-ap-table__table-wrapper-card {
40
44
  padding: 16px;
@@ -98,3 +102,27 @@
98
102
  .aplus-ap-table-pagination-total-wrapper {
99
103
  color: var(--ap-table-pagination-total-color, #526A90);
100
104
  }
105
+ .aplus-ap-table-header {
106
+ padding-bottom: 16px;
107
+ display: flex;
108
+ justify-content: space-between;
109
+ align-items: center;
110
+ flex-wrap: nowrap;
111
+ }
112
+ .aplus-ap-table-header__title {
113
+ flex: 1;
114
+ flex-shrink: 1;
115
+ min-width: 0;
116
+ }
117
+ .aplus-ap-table-table-header__title {
118
+ display: -webkit-inline-box;
119
+ -webkit-line-clamp: 2;
120
+ -webkit-box-orient: vertical;
121
+ overflow: hidden;
122
+ text-overflow: ellipsis;
123
+ white-space: normal;
124
+ max-width: 100%;
125
+ vertical-align: middle;
126
+ word-break: break-all;
127
+ flex: 1;
128
+ }
@@ -0,0 +1,39 @@
1
+ .aplus-ap-column-setting-wrapper {
2
+ display: flex;
3
+ flex-direction: row;
4
+ flex-wrap: nowrap;
5
+ height: 100%;
6
+ }
7
+ .aplus-ap-column-setting-left {
8
+ flex: 1;
9
+ flex-shrink: 1;
10
+ min-width: 0;
11
+ padding-inline: 20px;
12
+ display: flex;
13
+ flex-direction: column;
14
+ }
15
+ .aplus-ap-column-setting-left__header {
16
+ display: flex;
17
+ flex-direction: row;
18
+ flex-wrap: nowrap;
19
+ justify-content: space-between;
20
+ align-items: center;
21
+ padding: 12px;
22
+ }
23
+ .aplus-ap-column-setting-left__content {
24
+ flex: 1;
25
+ padding-inline: 12px;
26
+ padding-block: 16px;
27
+ overflow-y: auto;
28
+ }
29
+ .aplus-ap-column-setting-left__content .ant-checkbox-wrapper {
30
+ max-width: 100%;
31
+ }
32
+ .aplus-ap-column-setting-left__content .ant-checkbox-wrapper > span:last-child {
33
+ white-space: nowrap;
34
+ overflow: hidden;
35
+ text-overflow: ellipsis;
36
+ }
37
+ .aplus-ap-column-setting-right {
38
+ width: 240px;
39
+ }
@@ -0,0 +1,7 @@
1
+ .aplus-select-group-header {
2
+ background-color: #F2F6F9;
3
+ padding: 4px 12px;
4
+ border-radius: 4px;
5
+ margin-bottom: 16px;
6
+ margin-inline: -12px;
7
+ }
@@ -0,0 +1,50 @@
1
+ .aplus-sortable-item-meta {
2
+ padding: 6px 8px;
3
+ margin-top: 4px;
4
+ display: flex;
5
+ flex-direction: row;
6
+ flex-wrap: nowrap;
7
+ justify-content: space-between;
8
+ align-items: center;
9
+ }
10
+ .aplus-sortable-item-meta:hover {
11
+ background-color: #F1F7FF;
12
+ border-radius: 2px;
13
+ cursor: pointer;
14
+ }
15
+ .aplus-sortable-item-meta:hover .aplus-sortable-item-meta-right {
16
+ display: block;
17
+ }
18
+ .aplus-sortable-item-meta:hover .aplus-sortable-item-meta-left__holder {
19
+ color: var(--basic-color-primary, #0070ff) !important;
20
+ }
21
+ .aplus-sortable-item-meta-left {
22
+ flex: 1;
23
+ display: inline-flex;
24
+ align-items: center;
25
+ min-width: 0;
26
+ }
27
+ .aplus-sortable-item-meta-left__indicator {
28
+ display: inline-flex;
29
+ justify-content: center;
30
+ align-items: center;
31
+ width: 16px;
32
+ height: 16px;
33
+ margin-right: 4px;
34
+ flex-shrink: 0;
35
+ }
36
+ .aplus-sortable-item-meta-left__label-wrapper {
37
+ white-space: nowrap;
38
+ overflow: hidden;
39
+ text-overflow: ellipsis;
40
+ }
41
+ .aplus-sortable-item-meta-right {
42
+ display: none;
43
+ padding-left: 12px;
44
+ }
45
+ .aplus-sortable-item-meta .is-level2 {
46
+ margin-left: 16px;
47
+ }
48
+ .aplus-sortable-item-meta-action-icon:hover {
49
+ color: var(--basic-color-primary, #0070ff);
50
+ }
@@ -0,0 +1,3 @@
1
+ .aplus-sortable-item .is-hidden {
2
+ display: none;
3
+ }
@@ -0,0 +1,26 @@
1
+ .aplus-column-setting-sorter {
2
+ display: flex;
3
+ flex-direction: column;
4
+ height: 100%;
5
+ }
6
+ .aplus-column-setting-sorter-section-title {
7
+ font-size: 12px;
8
+ line-height: 20px;
9
+ color: #8896b0;
10
+ padding: 2px 8px;
11
+ margin: 4px;
12
+ }
13
+ .aplus-column-setting-sorter-header {
14
+ padding: 16px 20px;
15
+ }
16
+ .aplus-column-setting-sorter-header-title {
17
+ font-size: 14px;
18
+ line-height: 22px;
19
+ font-weight: bold;
20
+ color: #182948;
21
+ }
22
+ .aplus-column-setting-sorter-content {
23
+ flex: 1;
24
+ overflow-y: auto;
25
+ padding: 8px 12px 12px 8px;
26
+ }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F={"ap-form":{bordered:{"border-color":{base:"#DEE4ED",hover:"#66A9FF",active:"#66A9FF"},"shadow-color":"rgba(5, 155, 255, 0.1)"}},"ap-action":{color:{primary:{base:"#0070FF",hover:"#66A9FF"},success:"#2ED1A3",error:"#FF4D4F",warn:"#FFA940"}},"check-card":{outline:{color:"#E9EDF3"},hover:{outline:{color:"#0070FF"}},checked:{outline:{color:"#0070FF"},bg:"#0070FF"}},"ap-table":{header:{bg:"#F2F6F9"},pagination:{total:{color:"#526A90",count:{color:"#182948"}}}},"ap-batch-action":{color:{font:"#8896B0",active:"#0070FF"}}},b={"ap-form":{bordered:{"border-color":{base:"#D9D9D9",hover:"#85D4B0",active:"#85D4B0"},"shadow-color":"rgba(11, 166, 66, 0.09)"}},"ap-action":{color:{primary:{base:"#1890FF",hover:"#5EB1FF"},success:"#52C41A",error:"#FF4D4F",warn:"#FAAD14"}},"check-card":{outline:{color:"#D9D9D9"},hover:{outline:{color:"#34B77C"}},checked:{outline:{color:"#34B77C"},bg:"#34B77C"}},"ap-table":{header:{bg:"#FAFAFA"},pagination:{total:{color:"#666666",count:{color:"#333333"}}}},"ap-batch-action":{color:{font:"#999999",active:"#34B77C"}}};function n(t){const o={};function e(a,l){const i=Object.keys(a);for(const c of i){const r=a[c],s=[...l,c];r!==null&&typeof r=="object"?e(r,s):o[`--${s.join("-")}`]=r}}return e(t,[]),o}const u=n(F),d=n(b);function p(t){Object.entries(t).forEach(([o,e])=>{document.documentElement.style.setProperty(o,e)})}exports.adminCssVar=d;exports.aplusCssVar=u;exports.setCSSVariables=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F={"ap-form":{bordered:{"border-color":{base:"#DEE4ED",hover:"#66A9FF",active:"#66A9FF"},"shadow-color":"rgba(5, 155, 255, 0.1)"}},"ap-action":{color:{primary:{base:"#0070FF",hover:"#66A9FF"},success:"#2ED1A3",error:"#FF4D4F",warn:"#FFA940"}},"check-card":{outline:{color:"#E9EDF3"},hover:{outline:{color:"#0070FF"}},checked:{outline:{color:"#0070FF"},bg:"#0070FF"}},"ap-table":{header:{bg:"#F2F6F9"},pagination:{total:{color:"#526A90",count:{color:"#182948"}}}},"ap-batch-action":{color:{font:"#8896B0",active:"#0070FF"}},basic:{color:{primary:"#0070ff"}}},b={"ap-form":{bordered:{"border-color":{base:"#D9D9D9",hover:"#85D4B0",active:"#85D4B0"},"shadow-color":"rgba(11, 166, 66, 0.09)"}},"ap-action":{color:{primary:{base:"#1890FF",hover:"#5EB1FF"},success:"#52C41A",error:"#FF4D4F",warn:"#FAAD14"}},"check-card":{outline:{color:"#D9D9D9"},hover:{outline:{color:"#34B77C"}},checked:{outline:{color:"#34B77C"},bg:"#34B77C"}},"ap-table":{header:{bg:"#FAFAFA"},pagination:{total:{color:"#666666",count:{color:"#333333"}}}},"ap-batch-action":{color:{font:"#999999",active:"#34B77C"}},basic:{color:{primary:"#34b77c"}}};function n(c){const o={};function r(a,l){const i=Object.keys(a);for(const t of i){const e=a[t],s=[...l,t];e!==null&&typeof e=="object"?r(e,s):o[`--${s.join("-")}`]=e}}return r(c,[]),o}const u=n(F),d=n(b);function p(c){Object.entries(c).forEach(([o,r])=>{document.documentElement.style.setProperty(o,r)})}exports.adminCssVar=d;exports.aplusCssVar=u;exports.setCSSVariables=p;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aplus-frontend/ui",
3
- "version": "0.1.25",
3
+ "version": "0.1.27",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.mjs",
6
6
  "files": [
@@ -60,8 +60,9 @@
60
60
  "mime": "^4.0.3",
61
61
  "scroll-into-view-if-needed": "^3.1.0",
62
62
  "sortablejs": "^1.15.2",
63
+ "vuedraggable": "^4.1.0",
63
64
  "@aplus-frontend/hooks": "1.0.7",
64
- "@aplus-frontend/utils": "1.0.34"
65
+ "@aplus-frontend/utils": "1.0.35"
65
66
  },
66
67
  "peerDependencies": {
67
68
  "@aplus-frontend/icon": "^1.0.21",