@king-one/antdv 1.0.95 → 1.0.97

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 (60) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/es/components/cover-scroll-bar/hooks/use-has-scroll.mjs +17 -0
  3. package/dist/es/components/cover-scroll-bar/index.mjs +10 -0
  4. package/dist/es/components/cover-scroll-bar/src/cover-scroll-bar.mjs +146 -0
  5. package/dist/es/components/cover-scroll-bar/src/types.mjs +17 -0
  6. package/dist/es/components/cover-scroll-bar/style/index.mjs +2 -0
  7. package/dist/es/components/index.mjs +30 -25
  8. package/dist/es/components/pro-contract-view/hooks/use-contract-view.mjs +24 -0
  9. package/dist/es/components/pro-contract-view/index.mjs +11 -0
  10. package/dist/es/components/pro-contract-view/src/pro-contract-view.vue.mjs +4 -0
  11. package/dist/es/components/pro-contract-view/src/pro-contract-view.vue2.mjs +41 -0
  12. package/dist/es/components/pro-contract-view/src/types.mjs +13 -0
  13. package/dist/es/components/pro-contract-view/style/index.mjs +2 -0
  14. package/dist/es/components/pro-loading/index.mjs +5 -0
  15. package/dist/es/components/pro-loading/src/pro-loading.mjs +59 -0
  16. package/dist/es/components/pro-loading/src/types.mjs +1 -0
  17. package/dist/es/components/pro-upload/src/file-list.mjs +5 -5
  18. package/dist/es/components/pro-upload/src/gd-upload.mjs +62 -57
  19. package/dist/es/components/pro-upload/src/hooks/useUpload.mjs +24 -21
  20. package/dist/es/index.mjs +54 -44
  21. package/dist/lib/components/cover-scroll-bar/hooks/use-has-scroll.js +1 -0
  22. package/dist/lib/components/cover-scroll-bar/index.js +1 -0
  23. package/dist/lib/components/cover-scroll-bar/src/cover-scroll-bar.js +1 -0
  24. package/dist/lib/components/cover-scroll-bar/src/types.js +1 -0
  25. package/dist/lib/components/cover-scroll-bar/style/index.js +1 -0
  26. package/dist/lib/components/index.js +1 -1
  27. package/dist/lib/components/pro-contract-view/hooks/use-contract-view.js +1 -0
  28. package/dist/lib/components/pro-contract-view/index.js +1 -0
  29. package/dist/lib/components/pro-contract-view/src/pro-contract-view.vue.js +1 -0
  30. package/dist/lib/components/pro-contract-view/src/pro-contract-view.vue2.js +1 -0
  31. package/dist/lib/components/pro-contract-view/src/types.js +1 -0
  32. package/dist/lib/components/pro-contract-view/style/index.js +1 -0
  33. package/dist/lib/components/pro-loading/index.js +1 -0
  34. package/dist/lib/components/pro-loading/src/pro-loading.js +1 -0
  35. package/dist/lib/components/pro-loading/src/types.js +1 -0
  36. package/dist/lib/components/pro-upload/src/file-list.js +1 -1
  37. package/dist/lib/components/pro-upload/src/gd-upload.js +1 -1
  38. package/dist/lib/components/pro-upload/src/hooks/useUpload.js +1 -1
  39. package/dist/lib/index.js +1 -1
  40. package/dist/theme-chalk/cover-scroll-bar.css +1 -0
  41. package/dist/theme-chalk/icon.css +1 -1
  42. package/dist/theme-chalk/index.css +1 -1
  43. package/dist/theme-chalk/pro-contract-view.css +1 -0
  44. package/dist/types/components/cover-scroll-bar/hooks/use-has-scroll.d.ts +5 -0
  45. package/dist/types/components/cover-scroll-bar/index.d.ts +47 -0
  46. package/dist/types/components/cover-scroll-bar/src/cover-scroll-bar.d.ts +45 -0
  47. package/dist/types/components/cover-scroll-bar/src/types.d.ts +15 -0
  48. package/dist/types/components/index.d.ts +3 -0
  49. package/dist/types/components/pro-contract-view/apis/pro-contract-view.api.d.ts +3 -0
  50. package/dist/types/components/pro-contract-view/hooks/use-contract-view.d.ts +28 -0
  51. package/dist/types/components/pro-contract-view/index.d.ts +25 -0
  52. package/dist/types/components/pro-contract-view/src/pro-contract-view.vue.d.ts +22 -0
  53. package/dist/types/components/pro-contract-view/src/types.d.ts +24 -0
  54. package/dist/types/components/pro-loading/index.d.ts +2 -0
  55. package/dist/types/components/pro-loading/src/pro-loading.d.ts +12 -0
  56. package/dist/types/components/pro-loading/src/types.d.ts +7 -0
  57. package/dist/types/components/pro-upload/index.d.ts +2 -0
  58. package/dist/types/components/pro-upload/src/gd-upload.d.ts +2 -0
  59. package/global.d.ts +3 -0
  60. package/package.json +1 -1
@@ -1,47 +1,50 @@
1
- import { message as l } from "ant-design-vue";
1
+ import { message as o } from "ant-design-vue";
2
2
  import { useHttp as d } from "./useHttp.mjs";
3
3
  function m(c) {
4
4
  const r = d(c);
5
5
  return {
6
6
  // 文件上传
7
- uploadFile: (e) => new Promise(async (a, t) => {
7
+ uploadFile: (a) => new Promise(async (e, t) => {
8
8
  try {
9
9
  const s = await r.getUploadUrl({
10
- params: { business: e.business }
10
+ params: { business: a.business }
11
11
  });
12
12
  if (s.status === 0) {
13
- const o = s.data, n = new FormData();
14
- n.append("file", e.file);
15
- const i = await r.uploadFileApi(o, n);
16
- i.status === 0 ? (l.success("文件上传成功~"), a(i.data)) : (l.error(i.msg), t(i.msg));
13
+ const n = s.data, i = new FormData();
14
+ i.append("file", a.file);
15
+ const l = await r.uploadFileApi(n, i);
16
+ l.status === 0 ? (o.success("文件上传成功~"), e(l.data)) : (o.error(l.msg), t(l));
17
17
  } else
18
- l.error(s.msg), t(s.msg);
18
+ o.error(s.msg), t(s);
19
19
  } catch (s) {
20
- console.log(s), l.error("文件上传失败,请联系管理员进行查看!"), t(s);
20
+ console.log(s), o.error("文件上传失败,请联系管理员进行查看!"), t(s);
21
21
  }
22
22
  }),
23
23
  // 文件下载
24
- downloadFile: (e) => new Promise(async (a, t) => {
24
+ downloadFile: (a) => new Promise(async (e, t) => {
25
25
  try {
26
- const s = e[0], o = await r.getDownloadUrlApi(e);
27
- if (o.status === 0) {
28
- const n = o.data[s];
29
- window.open(n), a(!0);
26
+ const s = a[0], n = await r.getDownloadUrlApi(a);
27
+ if (n.status === 0) {
28
+ const i = n.data[s];
29
+ window.open(i), e(!0);
30
30
  }
31
- a(!1);
31
+ e(!1);
32
32
  } catch (s) {
33
33
  t(s);
34
34
  }
35
35
  }),
36
36
  // 获取图片的url
37
- getImgUrl: (e) => new Promise(async (a, t) => {
38
- const s = await r.getDownloadUrlApi(e);
39
- s.status === 0 ? a(s.data) : t(s);
37
+ getImgUrl: (a) => new Promise(async (e, t) => {
38
+ const s = await r.getDownloadUrlApi(a);
39
+ s.status === 0 ? e(s.data) : t(s);
40
40
  }),
41
41
  // 获取文件详情
42
- getFileDetails: async (e) => new Promise(async (a) => {
43
- const t = await r.getFileDetailApi({ fileIds: e });
44
- return a(t);
42
+ getFileDetails: async (a) => new Promise(async (e, t) => {
43
+ r.getFileDetailApi({ fileIds: a }).then((s) => {
44
+ s.status === 0 ? e(s) : (o.error(s.msg), t(s));
45
+ }).catch((s) => {
46
+ o.error(s), t(s);
47
+ });
45
48
  })
46
49
  };
47
50
  }
package/dist/es/index.mjs CHANGED
@@ -5,59 +5,69 @@ import { definePropType as f, formItemProps as P } from "./components/form/compo
5
5
  import { KForm as a, KFormItem as l } from "./components/form/index.mjs";
6
6
  import { collapseProps as i } from "./components/collapse-transtion/src/types.mjs";
7
7
  import { KCollapseTranstion as u } from "./components/collapse-transtion/index.mjs";
8
- import { useProModal as c, useProModalInit as T } from "./components/pro-modal/hooks/useProModal.mjs";
8
+ import { useProModal as c, useProModalInit as d } from "./components/pro-modal/hooks/useProModal.mjs";
9
9
  import { KProModal as g } from "./components/pro-modal/index.mjs";
10
- import { TitleProps as A } from "./components/pro-title/src/types.mjs";
11
- import { KProTitle as S } from "./components/pro-title/index.mjs";
12
- import { scrollbarProps as k } from "./components/scroll-bar/src/types.mjs";
13
- import { KScrollBar as U } from "./components/scroll-bar/index.mjs";
14
- import { KScaleVirtualList as B } from "./components/scale-virtual-list/index.mjs";
15
- import { proTagProps as E } from "./components/pro-tag/src/types.mjs";
16
- import { KProTag as V } from "./components/pro-tag/index.mjs";
17
- import { PickerApiEnum as j, ProPickerProps as q } from "./components/pro-picker/src/types.mjs";
18
- import { KProPicker as w } from "./components/pro-picker/index.mjs";
19
- import { ProAreaProps as D } from "./components/pro-area/src/types.mjs";
20
- import { useProArea as H } from "./components/pro-area/hooks/use-pro-area.mjs";
21
- import { KProArea as N } from "./components/pro-area/index.mjs";
22
- import { ProSignatureProps as Q } from "./components/pro-signature/src/types.mjs";
23
- import { KProSignature as W } from "./components/pro-signature/index.mjs";
24
- import { useProTable as Y } from "./components/pro-table/hooks/use-pro-table.mjs";
25
- import { KProTable as _ } from "./components/pro-table/index.mjs";
26
- import { KIcon as rr } from "./components/icon/index.mjs";
27
- import { useUpload as er } from "./components/pro-upload/src/hooks/useUpload.mjs";
28
- import { KProUpload as tr } from "./components/pro-upload/index.mjs";
29
- import { useProForm as fr, useProFormInit as Pr } from "./hooks/useProForm.mjs";
10
+ import { TitleProps as C } from "./components/pro-title/src/types.mjs";
11
+ import { KProTitle as b } from "./components/pro-title/index.mjs";
12
+ import { scrollbarProps as F } from "./components/scroll-bar/src/types.mjs";
13
+ import { KScrollBar as M } from "./components/scroll-bar/index.mjs";
14
+ import { CoverScrollbarProps as v } from "./components/cover-scroll-bar/src/types.mjs";
15
+ import { KCoverScrollBar as B } from "./components/cover-scroll-bar/index.mjs";
16
+ import { KScaleVirtualList as y } from "./components/scale-virtual-list/index.mjs";
17
+ import { proTagProps as L } from "./components/pro-tag/src/types.mjs";
18
+ import { KProTag as j } from "./components/pro-tag/index.mjs";
19
+ import { PickerApiEnum as z, ProPickerProps as D } from "./components/pro-picker/src/types.mjs";
20
+ import { KProPicker as H } from "./components/pro-picker/index.mjs";
21
+ import { ProAreaProps as N } from "./components/pro-area/src/types.mjs";
22
+ import { useProArea as Q } from "./components/pro-area/hooks/use-pro-area.mjs";
23
+ import { KProArea as W } from "./components/pro-area/index.mjs";
24
+ import { ProSignatureProps as Y } from "./components/pro-signature/src/types.mjs";
25
+ import { KProSignature as _ } from "./components/pro-signature/index.mjs";
26
+ import { useProTable as rr } from "./components/pro-table/hooks/use-pro-table.mjs";
27
+ import { KProTable as er } from "./components/pro-table/index.mjs";
28
+ import { KIcon as tr } from "./components/icon/index.mjs";
29
+ import { useUpload as fr } from "./components/pro-upload/src/hooks/useUpload.mjs";
30
+ import { KProUpload as xr } from "./components/pro-upload/index.mjs";
31
+ import { useProContractView as lr } from "./components/pro-contract-view/hooks/use-contract-view.mjs";
32
+ import { KProContractView as ir } from "./components/pro-contract-view/index.mjs";
33
+ import { default as ur } from "./components/pro-loading/src/pro-loading.mjs";
34
+ import { useProForm as cr, useProFormInit as dr } from "./hooks/useProForm.mjs";
30
35
  export {
36
+ v as CoverScrollbarProps,
31
37
  u as KCollapseTranstion,
38
+ B as KCoverScrollBar,
32
39
  a as KForm,
33
40
  l as KFormItem,
34
- rr as KIcon,
35
- N as KProArea,
41
+ tr as KIcon,
42
+ W as KProArea,
43
+ ir as KProContractView,
36
44
  g as KProModal,
37
- w as KProPicker,
38
- W as KProSignature,
39
- _ as KProTable,
40
- V as KProTag,
41
- S as KProTitle,
42
- tr as KProUpload,
43
- B as KScaleVirtualList,
44
- U as KScrollBar,
45
- j as PickerApiEnum,
46
- D as ProAreaProps,
47
- q as ProPickerProps,
48
- Q as ProSignatureProps,
49
- A as TitleProps,
45
+ H as KProPicker,
46
+ _ as KProSignature,
47
+ er as KProTable,
48
+ j as KProTag,
49
+ b as KProTitle,
50
+ xr as KProUpload,
51
+ ur as KProloading,
52
+ y as KScaleVirtualList,
53
+ M as KScrollBar,
54
+ z as PickerApiEnum,
55
+ N as ProAreaProps,
56
+ D as ProPickerProps,
57
+ Y as ProSignatureProps,
58
+ C as TitleProps,
50
59
  i as collapseProps,
51
60
  o as default,
52
61
  f as definePropType,
53
62
  P as formItemProps,
54
- E as proTagProps,
55
- k as scrollbarProps,
56
- H as useProArea,
57
- fr as useProForm,
58
- Pr as useProFormInit,
63
+ L as proTagProps,
64
+ F as scrollbarProps,
65
+ Q as useProArea,
66
+ lr as useProContractView,
67
+ cr as useProForm,
68
+ dr as useProFormInit,
59
69
  c as useProModal,
60
- T as useProModalInit,
61
- Y as useProTable,
62
- er as useUpload
70
+ d as useProModalInit,
71
+ rr as useProTable,
72
+ fr as useUpload
63
73
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue");function u(s,i=0){const c=r.ref(!1),n=r.ref(!1),t=()=>{const e=r.unref(s);e&&(c.value=e.scrollWidth>e.clientWidth-i,n.value=e.scrollHeight>e.clientHeight)};return r.onMounted(()=>{t();const e=new MutationObserver(t),l=new ResizeObserver(t),o=r.unref(s);o&&(e.observe(o,{childList:!0,subtree:!0,characterData:!0}),l.observe(o)),r.onBeforeUnmount(()=>{e.disconnect(),l.disconnect()})}),{hasHorizontalScroll:c,hasVerticalScroll:n}}exports.useHasScroll=u;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../utils/install.js"),l=require("./src/cover-scroll-bar.js");require("./style/index.js");const o=require("./src/types.js"),r=e.withInstall(l.default);exports.CoverScrollbarProps=o.CoverScrollbarProps;exports.KCoverScrollBar=r;exports.default=r;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),h=require("evtd"),_=require("../../../hooks/use-namespace/index.js"),U=require("../hooks/use-has-scroll.js"),I=require("./types.js"),j=o.defineComponent({props:I.CoverScrollbarProps,setup(r){const t=o.ref(null),s=o.ref(null),v=o.ref(null),c=o.ref(null),u=o.ref(null),p=o.ref(0),{hasVerticalScroll:x}=U.useHasScroll(t),{b:P}=_.useNamespace("cover"),V=P("scrollbar");function y(){t.value&&(p.value=t.value.scrollTop)}const z=()=>{t.value&&(c.value=t.value.clientHeight,u.value=t.value.scrollHeight);const{value:e}=s;e&&(v.value=e.offsetHeight)};function S(){z(),y()}const i=o.ref(!1),m=o.computed(()=>{const{value:e}=c,{value:n}=u,{value:l}=v;return!e||!n||!l?0:Math.min(e,l*e/n+5*1.5)}),D=o.computed(()=>`${m.value}px`),$=o.computed(()=>{const{value:e}=c,{value:n}=p,{value:l}=u,{value:d}=v;if(e===null||l===null||d===null)return 0;{const M=l-e;return M?n/M*(d-m.value):0}}),q=o.computed(()=>`${$.value}px`),N=o.computed(()=>{const{trigger:e}=r;return e!=="none"&&(e==="always"||i.value)});let f=!1,R=0,g=0,w,b;const B=e=>{if(!f)return;b!==void 0&&window.clearTimeout(b),w!==void 0&&window.clearTimeout(w);const{value:n}=c,{value:l}=u,{value:d}=m;if(n===null||l===null)return;const L=(e.clientY-g)*(l-n)/(n-d),O=l-n;let a=R+L;a=Math.min(O,a),a=Math.max(a,0);const{value:H}=t;H&&(H.scrollTop=a)},T=e=>{e.preventDefault(),e.stopPropagation(),h.off("mousemove",window,B,!0),h.off("mouseup",window,T,!0),f=!1,S()},C=e=>{e.preventDefault(),e.stopPropagation(),h.on("mousemove",window,B,!0),h.on("mouseup",window,T,!0),R=p.value,g=e.clientY,f=!0,i.value=!0},Y=new MutationObserver(S);o.onMounted(()=>{S();const e=o.unref(t);e&&Y.observe(e,{childList:!0,subtree:!0,characterData:!0})}),o.onBeforeUnmount(()=>{Y.disconnect()});function E(e){y()}return{be:V,contentRef:t,hasVerticalScroll:x,showYBarRef:N,yRailRef:s,yBarSizePxRef:D,yBarTopPxRef:q,handleScroll:E,handleYScrollMouseDown:C,handleMouseLeave:()=>{f||(i.value=!1)},handleMouseEnter:()=>{i.value=!0}}},render(){var s;const{$slots:r}=this,t=()=>o.createVNode("div",{class:`${this.be}-rail`,ref:"yRailRef",style:{right:`${this.scrollbarOffset}px`}},[this.hasVerticalScroll&&this.showYBarRef&&o.createVNode("div",{class:`${this.be}-rail__scrollbar--vertical`,style:{height:this.yBarSizePxRef,top:this.yBarTopPxRef,background:this.scrollbarColor},onMousedown:this.handleYScrollMouseDown},null,46,["onMousedown"])],6);return o.createVNode("div",{class:`${this.be}`,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave},[o.createVNode("div",{ref:"contentRef",class:`${this.be}-container`,onScroll:this.handleScroll},[(s=r.default)==null?void 0:s.call(r)],42,["onScroll"]),t()],42,["onMouseenter","onMouseleave"])}});exports.default=j;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r={trigger:{type:String,default:"hover"},scrollbarColor:{type:String,default:"rgba(0, 0, 0, 0.1)"},scrollbarOffset:{type:[String,Number],default:2}};exports.CoverScrollbarProps=r;
@@ -0,0 +1 @@
1
+ "use strict";require("../../base/style/index.js");require("@king-one/antdv/dist/theme-chalk/cover-scroll-bar.css");
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./form/index.js"),e=require("./collapse-transtion/index.js"),o=require("./pro-modal/index.js"),i=require("./pro-title/index.js"),n=require("./scroll-bar/index.js"),t=require("./scale-virtual-list/index.js"),K=require("./pro-tag/index.js"),a=require("./pro-picker/index.js"),c=require("./pro-area/index.js"),l=require("./pro-signature/index.js"),s=require("./pro-table/index.js"),u=require("./icon/index.js"),d=require("./pro-upload/index.js");exports.KForm=r.KForm;exports.KFormItem=r.KFormItem;exports.KCollapseTranstion=e.KCollapseTranstion;exports.KProModal=o.KProModal;exports.KProTitle=i.KProTitle;exports.KScrollBar=n.KScrollBar;exports.KScaleVirtualList=t.KScaleVirtualList;exports.KProTag=K.KProTag;exports.KProPicker=a.KProPicker;exports.KProArea=c.KProArea;exports.KProSignature=l.KProSignature;exports.KProTable=s.KProTable;exports.KIcon=u.KIcon;exports.KProUpload=d.KProUpload;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./form/index.js"),e=require("./collapse-transtion/index.js"),o=require("./pro-modal/index.js"),i=require("./pro-title/index.js"),n=require("./scroll-bar/index.js"),t=require("./cover-scroll-bar/index.js"),K=require("./scale-virtual-list/index.js"),c=require("./pro-tag/index.js"),a=require("./pro-picker/index.js"),l=require("./pro-area/index.js"),s=require("./pro-signature/index.js"),u=require("./pro-table/index.js"),d=require("./icon/index.js"),P=require("./pro-upload/index.js"),q=require("./pro-contract-view/index.js");require("./pro-loading/index.js");exports.KForm=r.KForm;exports.KFormItem=r.KFormItem;exports.KCollapseTranstion=e.KCollapseTranstion;exports.KProModal=o.KProModal;exports.KProTitle=i.KProTitle;exports.KScrollBar=n.KScrollBar;exports.KCoverScrollBar=t.KCoverScrollBar;exports.KScaleVirtualList=K.KScaleVirtualList;exports.KProTag=c.KProTag;exports.KProPicker=a.KProPicker;exports.KProArea=l.KProArea;exports.KProSignature=s.KProSignature;exports.KProTable=u.KProTable;exports.KIcon=d.KIcon;exports.KProUpload=P.KProUpload;exports.KProContractView=q.KProContractView;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");function i({contractId:t,prefix:r="contract"}){const o=e.ref([]),a=e.ref([]);return e.onMounted(()=>{globalThis.$http.get(`/${r}/file/detail/list`,{Headers:{useridentity:"aaa",token:"1asd"},params:{contractId:t}})}),{pages:o,fileList:a}}exports.useProContractView=i;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../utils/install.js");require("./src/pro-contract-view.vue.js");require("./style/index.js");const r=require("./hooks/use-contract-view.js"),o=require("./src/pro-contract-view.vue2.js"),e=t.withInstall(o.default);exports.useProContractView=r.useProContractView;exports.KProContractView=e;exports.default=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./pro-contract-view.vue2.js");exports.default=e.default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("ant-design-vue"),s=require("../../../hooks/use-namespace/index.js"),u=require("./types.js"),a={key:0},l=e.defineComponent({__name:"pro-contract-view",props:u.ProContractViewProps,setup(p){const o=e.ref(!0),n=e.ref(null),{b:i}=s.useNamespace("pro-contract-view"),r=e.computed(()=>[i()]);return e.onMounted(()=>{if(n.value){const t=n.value.parentElement;!n.value.clientHeight&&(t!=null&&t.offsetHeight)&&(n.value.style.height=`${t==null?void 0:t.offsetHeight}px`)}setTimeout(()=>{o.value=!0},1e3)}),(t,f)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:n,class:e.normalizeClass(r.value)},[e.createVNode(e.unref(c.Spin),{tip:"Loading...",spinning:o.value},null,8,["spinning"]),o.value?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("div",a," 合同预览 "))],2))}});exports.default=l;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../utils/install.js"),t={fileId:{type:e.definePropType(String)},fileList:{type:e.definePropType(Array),default:()=>[]}};exports.ProContractViewProps=t;
@@ -0,0 +1 @@
1
+ "use strict";require("../../base/style/index.js");require("@king-one/antdv/dist/theme-chalk/pro-contract-view.css");
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./src/pro-loading.js");require("./src/types.js");exports.KProloading=e.default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("vue"),p=require("ant-design-vue");let c;function a(e){const{target:t,...n}=e,o=i.defineComponent({name:"Spin",setup(){return()=>i.h("div",null,i.h(p.Spin,{...n}))}}),r=i.createApp(o),s=r.mount(document.createElement("div"));function d(){var u,l;(l=(u=s.$el)==null?void 0:u.parentNode)==null||l.removeChild(s.$el),r.unmount(),c=void 0}return{close:d,get $el(){return s.$el}}}function g(e={}){if(c)return c;const t=m(e),n=a({...t});return f(n,e),t.target.appendChild(n.$el),c=n,n}function m(e){let t;return(o=>typeof o=="string")(e.target)?t=document.querySelector(e.target)??document.body:t=e.target||document.body,{...e,target:t}}function f(e,t={}){const n={position:t.target?"absolute":"fixed",zIndex:2e3,top:0,right:0,bottom:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.3)",display:"flex",justifyContent:"center",alignItems:"center"};for(const[o,r]of Object.entries(n))e.$el.style[o]=r}const v={service:g};exports.createSpinComponent=a;exports.default=v;
@@ -0,0 +1 @@
1
+ "use strict";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),n=require("ant-design-vue"),s=require("@ant-design/icons-vue");require("./hooks/index.js");const g=require("./hooks/useHttp.js"),h=require("./hooks/useUpload.js"),x=t.defineComponent({props:{http:{type:[Object,Function],default:()=>({})},itemWidth:{type:Number,default:80},itemHeight:{type:Number,default:80},list:{type:Array,default:[]}},emits:["update:list"],setup(i,{emit:d}){const{deleteFileApi:a}=g.useHttp(i.http),{downloadFile:r}=h.useUpload(i.http),o=t.ref(i.list),c=async e=>{try{const l=await a({params:{fileId:e.id}});l.status===0?(n.message.success("文件删除成功~"),o.value=o.value.filter(u=>e.id!==u.id),d("update:list",o.value)):n.message.error(l.msg)}catch(l){console.log(l)}},p=async e=>{e.spining=!0,await r([e.id])&&(e.spining=!1)};return()=>t.createVNode(t.Fragment,null,[o.value.map(e=>t.createVNode("div",{style:{marginTop:"5px"}},[t.createVNode("div",{style:{display:"flex",position:"relative",border:"1px solid #ccc",marginRight:"15px",boxSizing:"border-box",borderRadius:"4px"}},[t.createVNode("div",{style:{borderRadius:"0px 4px 0px 50px",position:"absolute",top:"0",right:"0",width:"15px",height:"15px",background:"black",zIndex:1e3,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},onClick:()=>c(e)},[t.createVNode(s.CloseOutlined,{style:{fontSize:"8px",color:"white",paddingBottom:"4px"}},null)],8,["onClick"]),e.type!=="img"?t.createVNode(s.DownloadOutlined,{style:{position:"absolute",zIndex:1e3,bottom:"6px",left:"6px",fontSize:"16px",color:"#cccccc",cursor:"pointer"},onClick:()=>p(e)},null,8,["onClick"]):"",t.createVNode("div",null,[e.type==="img"?t.createVNode(n.Image,{src:e.icon,style:{minWidth:"80px",minHeight:"80px",width:`${i.itemWidth}px`,height:`${i.itemHeight}px`,display:"block"}},null,8,["src","style"]):t.createVNode(n.Spin,{spinning:e.spining},{default:()=>[t.createVNode("div",{style:{minWidth:"80px",minHeight:"80px",width:`${i.itemWidth}px`,height:`${i.itemHeight}px`,display:"flex",alignItems:"center",justifyContent:"center"}},[t.createVNode("img",{src:e.icon,style:{width:`${i.itemWidth-40}px`,height:`${i.itemHeight-40}px`}},null,12,["src"])],4)]},8,["spinning"])])]),t.createVNode("div",{style:{width:`${i.itemWidth}px`,minWidth:"80px",fontSize:"12px",color:"#ccc",textAlign:"center",paddingTop:"4px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},[t.createVNode(n.Tooltip,{placement:"left",title:e.fileName},{default:()=>[e.fileName]},8,["title"])],4)]))])}});exports.default=x;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),n=require("ant-design-vue"),s=require("@ant-design/icons-vue");require("./hooks/index.js");const g=require("./hooks/useHttp.js"),h=require("./hooks/useUpload.js"),x=t.defineComponent({props:{http:{type:[Object,Function],default:()=>({})},itemWidth:{type:Number,default:80},itemHeight:{type:Number,default:80},list:{type:Array,default:[]}},emits:["update:list"],setup(i,{emit:d}){const{deleteFileApi:r}=g.useHttp(i.http),{downloadFile:a}=h.useUpload(i.http),o=t.ref(i.list),c=async e=>{try{const l=await r({params:{fileId:e.id}});l.status===0?(n.message.success("文件删除成功~"),o.value=o.value.filter(u=>e.id!==u.id),d("update:list",o.value)):n.message.error(l.msg)}catch(l){console.log(l),n.message.error(l)}},p=async e=>{e.spining=!0,await a([e.id])&&(e.spining=!1)};return()=>t.createVNode(t.Fragment,null,[o.value.map(e=>t.createVNode("div",{style:{marginTop:"5px"}},[t.createVNode("div",{style:{display:"flex",position:"relative",border:"1px solid #ccc",marginRight:"15px",boxSizing:"border-box",borderRadius:"4px"}},[t.createVNode("div",{style:{borderRadius:"0px 4px 0px 50px",position:"absolute",top:"0",right:"0",width:"15px",height:"15px",background:"black",zIndex:1e3,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},onClick:()=>c(e)},[t.createVNode(s.CloseOutlined,{style:{fontSize:"8px",color:"white",paddingBottom:"4px"}},null)],8,["onClick"]),e.type!=="img"?t.createVNode(s.DownloadOutlined,{style:{position:"absolute",zIndex:1e3,bottom:"6px",left:"6px",fontSize:"16px",color:"#cccccc",cursor:"pointer"},onClick:()=>p(e)},null,8,["onClick"]):"",t.createVNode("div",null,[e.type==="img"?t.createVNode(n.Image,{src:e.icon,style:{minWidth:"80px",minHeight:"80px",width:`${i.itemWidth}px`,height:`${i.itemHeight}px`,display:"block"}},null,8,["src","style"]):t.createVNode(n.Spin,{spinning:e.spining},{default:()=>[t.createVNode("div",{style:{minWidth:"80px",minHeight:"80px",width:`${i.itemWidth}px`,height:`${i.itemHeight}px`,display:"flex",alignItems:"center",justifyContent:"center"}},[t.createVNode("img",{src:e.icon,style:{width:`${i.itemWidth-40}px`,height:`${i.itemHeight-40}px`}},null,12,["src"])],4)]},8,["spinning"])])]),t.createVNode("div",{style:{width:`${i.itemWidth}px`,minWidth:"80px",fontSize:"12px",color:"#ccc",textAlign:"center",paddingTop:"4px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},[t.createVNode(n.Tooltip,{placement:"left",title:e.fileName},{default:()=>[e.fileName]},8,["title"])],4)]))])}});exports.default=x;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),f=require("ant-design-vue"),q=require("../../../hooks/use-namespace/index.js"),w=require("../../icon/index.js"),V=require("./props.js"),d=require("./utils/index.js");require("./hooks/index.js");const F=require("./file-list.js"),L=require("./hooks/useUpload.js"),$=t.defineComponent({name:"GdUpload",props:V.UploadComponentProps,emits:{"update:fileList":e=>!0,"upload-success":e=>e,change:e=>e},setup(e,{emit:r,expose:g}){const{b:h}=q.useNamespace("pro-upload"),l=t.ref([]),p=t.ref(!1),{uploadFile:x,getFileDetails:N,getImgUrl:v}=L.useUpload(e.http),y=t.computed(()=>{if(e.disabled||l.value.length===e.maxCount)return!0}),b=i=>{var o;const{name:n,size:s}=i,a=d.getFileExtension(n),u=s/1024/1024;return e.accept&&e.accept.length>0&&!e.accept.includes(a)?(f.message.warning(`只能上传${(o=e.accept)==null?void 0:o.join(".")}后缀的文件!`),!1):u>e.maxSize?(f.message.warning(`上传的文件不能大于${e.maxSize}M!`),!1):!0},U=async i=>{const{file:n}=i;p.value=!0;const s=await x({business:e.business,file:n});if(p.value=!1,!s)return;const a=d.getFileExtension(s.originName),u=d.getUploadIcon(a);if(u==="img"){const c=await d.getBase64(n);l.value.push({icon:c,id:s.id,type:u,spining:!1,fileName:i.file.name})}else l.value.push({icon:u,id:s.id,type:u,spining:!1,fileName:i.file.name});const o=l.value.map(c=>({fileName:c.fileName,type:c.type,id:c.id}));r("update:fileList",o),r("upload-success",o)},m=async i=>{const n=i==null?void 0:i.map(a=>a.id);if((n==null?void 0:n.length)===0)return;const s=await N(n);for(const a of s.data){const u=d.getFileExtension(a.originName),o=d.getUploadIcon(u);if(o==="img"){const c=await v([a.id]);l.value.push({id:a.id,icon:c[a.id],fileName:a.originName,spining:!1,type:o})}else l.value.push({id:a.id,icon:o,fileName:a.originName,spining:!1,type:o})}};return t.watch(()=>l.value,i=>{const n=i.map(s=>({fileName:s.fileName,type:s.type,id:s.id}));r("update:fileList",n),r("change",n)},{deep:!0}),t.onMounted(async()=>{m(e.fileList)}),g({updateFileList:m}),()=>{var i;return t.createVNode("div",{class:h(),style:{display:"flex",flexWrap:"wrap",alignContent:"space-between"}},[t.createVNode(F.default,{http:e.http,itemWidth:e.itemWidth,itemHeight:e.itemHeight,list:l.value,"onUpdate:list":n=>l.value=n},null,8,["http","itemWidth","itemHeight","list","onUpdate:list"]),l.value.length<(e.maxCount??20)?t.createVNode(f.Upload,{accept:(i=e.accept)==null?void 0:i.join(","),disabled:y.value,customRequest:U,beforeUpload:b,style:{marginTop:"5px"}},{default:()=>t.createVNode(f.Spin,{spinning:p.value},{default:()=>[t.createVNode("div",{style:{width:`${e.itemWidth}px`,height:`${e.itemHeight}px`,minWidth:"80px",minHeight:"80px",cursor:"pointer",border:"1px dashed #3296fa",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"5px"}},[t.createVNode(w.KIcon,{name:"upload-icon",color:"#3296fa",size:32},null)],4)]},8,["spinning"]),itemRender:()=>t.createVNode(t.Fragment,null,null),_:1},8,["accept","disabled","customRequest","beforeUpload"]):t.createVNode(t.Fragment,null,null)],2)}}});exports.default=$;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("vue"),p=require("ant-design-vue"),q=require("../../../hooks/use-namespace/index.js"),w=require("../../icon/index.js"),V=require("./props.js"),d=require("./utils/index.js");require("./hooks/index.js");const F=require("./file-list.js"),L=require("./hooks/useUpload.js"),$=i.defineComponent({name:"GdUpload",props:V.UploadComponentProps,emits:{"update:fileList":e=>!0,"upload-success":e=>e,change:e=>e,"upload-error":e=>e},setup(e,{emit:r,expose:g}){const{b:h}=q.useNamespace("pro-upload"),s=i.ref([]),f=i.ref(!1),{uploadFile:x,getFileDetails:v,getImgUrl:y}=L.useUpload(e.http),N=i.computed(()=>{if(e.disabled||s.value.length===e.maxCount)return!0}),b=a=>{var o;const{name:t,size:l}=a,n=d.getFileExtension(t),u=l/1024/1024;return e.accept&&e.accept.length>0&&!e.accept.includes(n)?(p.message.warning(`只能上传${(o=e.accept)==null?void 0:o.join(".")}后缀的文件!`),!1):u>e.maxSize?(p.message.warning(`上传的文件不能大于${e.maxSize}M!`),!1):!0},U=async a=>{try{const{file:t}=a;f.value=!0;const l=await x({business:e.business,file:t});if(f.value=!1,!l)return;const n=d.getFileExtension(l.originName),u=d.getUploadIcon(n);if(u==="img"){const c=await d.getBase64(t);s.value.push({icon:c,id:l.id,type:u,spining:!1,fileName:a.file.name})}else s.value.push({icon:u,id:l.id,type:u,spining:!1,fileName:a.file.name});const o=s.value.map(c=>({fileName:c.fileName,type:c.type,id:c.id}));r("update:fileList",o),r("upload-success",o)}catch(t){f.value=!1,r("upload-error",t)}},m=async a=>{const t=a==null?void 0:a.map(n=>n.id);if((t==null?void 0:t.length)===0)return;const l=await v(t);for(const n of l.data){const u=d.getFileExtension(n.originName),o=d.getUploadIcon(u);if(o==="img"){const c=await y([n.id]);s.value.push({id:n.id,icon:c[n.id],fileName:n.originName,spining:!1,type:o})}else s.value.push({id:n.id,icon:o,fileName:n.originName,spining:!1,type:o})}};return i.watch(()=>s.value,a=>{const t=a.map(l=>({fileName:l.fileName,type:l.type,id:l.id}));r("update:fileList",t),r("change",t)},{deep:!0}),i.onMounted(async()=>{m(e.fileList)}),g({updateFileList:m}),()=>{var a;return i.createVNode("div",{class:h(),style:{display:"flex",flexWrap:"wrap",alignContent:"space-between"}},[i.createVNode(F.default,{http:e.http,itemWidth:e.itemWidth,itemHeight:e.itemHeight,list:s.value,"onUpdate:list":t=>s.value=t},null,8,["http","itemWidth","itemHeight","list","onUpdate:list"]),s.value.length<(e.maxCount??20)?i.createVNode(p.Upload,{accept:(a=e.accept)==null?void 0:a.join(","),disabled:N.value,customRequest:U,beforeUpload:b,style:{marginTop:"5px"}},{default:()=>i.createVNode(p.Spin,{spinning:f.value},{default:()=>[i.createVNode("div",{style:{width:`${e.itemWidth}px`,height:`${e.itemHeight}px`,minWidth:"80px",minHeight:"80px",cursor:"pointer",border:"1px dashed #3296fa",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"5px"}},[i.createVNode(w.KIcon,{name:"upload-icon",color:"#3296fa",size:32},null)],4)]},8,["spinning"]),itemRender:()=>i.createVNode(i.Fragment,null,null),_:1},8,["accept","disabled","customRequest","beforeUpload"]):i.createVNode(i.Fragment,null,null)],2)}}});exports.default=$;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("ant-design-vue"),c=require("./useHttp.js");function d(u){const r=c.useHttp(u);return{uploadFile:s=>new Promise(async(a,t)=>{try{const e=await r.getUploadUrl({params:{business:s.business}});if(e.status===0){const o=e.data,n=new FormData;n.append("file",s.file);const i=await r.uploadFileApi(o,n);i.status===0?(l.message.success("文件上传成功~"),a(i.data)):(l.message.error(i.msg),t(i.msg))}else l.message.error(e.msg),t(e.msg)}catch(e){console.log(e),l.message.error("文件上传失败,请联系管理员进行查看!"),t(e)}}),downloadFile:s=>new Promise(async(a,t)=>{try{const e=s[0],o=await r.getDownloadUrlApi(s);if(o.status===0){const n=o.data[e];window.open(n),a(!0)}a(!1)}catch(e){t(e)}}),getImgUrl:s=>new Promise(async(a,t)=>{const e=await r.getDownloadUrlApi(s);e.status===0?a(e.data):t(e)}),getFileDetails:async s=>new Promise(async a=>{const t=await r.getFileDetailApi({fileIds:s});return a(t)})}}exports.useUpload=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("ant-design-vue"),c=require("./useHttp.js");function d(u){const r=c.useHttp(u);return{uploadFile:t=>new Promise(async(a,s)=>{try{const e=await r.getUploadUrl({params:{business:t.business}});if(e.status===0){const n=e.data,i=new FormData;i.append("file",t.file);const l=await r.uploadFileApi(n,i);l.status===0?(o.message.success("文件上传成功~"),a(l.data)):(o.message.error(l.msg),s(l))}else o.message.error(e.msg),s(e)}catch(e){console.log(e),o.message.error("文件上传失败,请联系管理员进行查看!"),s(e)}}),downloadFile:t=>new Promise(async(a,s)=>{try{const e=t[0],n=await r.getDownloadUrlApi(t);if(n.status===0){const i=n.data[e];window.open(i),a(!0)}a(!1)}catch(e){s(e)}}),getImgUrl:t=>new Promise(async(a,s)=>{const e=await r.getDownloadUrlApi(t);e.status===0?a(e.data):s(e)}),getFileDetails:async t=>new Promise(async(a,s)=>{r.getFileDetailApi({fileIds:t}).then(e=>{e.status===0?a(e):(o.message.error(e.msg),s(e))}).catch(e=>{o.message.error(e),s(e)})})}}exports.useUpload=d;
package/dist/lib/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./installer.js");require("./components/index.js");require("./hooks/index.js");const r=require("./components/form/component/form.js"),e=require("./components/form/index.js"),u=require("./components/collapse-transtion/src/types.js"),P=require("./components/collapse-transtion/index.js"),o=require("./components/pro-modal/hooks/useProModal.js"),n=require("./components/pro-modal/index.js"),a=require("./components/pro-title/src/types.js"),l=require("./components/pro-title/index.js"),c=require("./components/scroll-bar/src/types.js"),p=require("./components/scroll-bar/index.js"),d=require("./components/scale-virtual-list/index.js"),q=require("./components/pro-tag/src/types.js"),K=require("./components/pro-tag/index.js"),s=require("./components/pro-picker/src/types.js"),m=require("./components/pro-picker/index.js"),T=require("./components/pro-area/src/types.js"),$=require("./components/pro-area/hooks/use-pro-area.js"),x=require("./components/pro-area/index.js"),b=require("./components/pro-signature/src/types.js"),g=require("./components/pro-signature/index.js"),y=require("./components/pro-table/hooks/use-pro-table.js"),I=require("./components/pro-table/index.js"),S=require("./components/icon/index.js"),A=require("./components/pro-upload/src/hooks/useUpload.js"),F=require("./components/pro-upload/index.js"),i=require("./hooks/useProForm.js");exports.default=t.default;exports.definePropType=r.definePropType;exports.formItemProps=r.formItemProps;exports.KForm=e.KForm;exports.KFormItem=e.KFormItem;exports.collapseProps=u.collapseProps;exports.KCollapseTranstion=P.KCollapseTranstion;exports.useProModal=o.useProModal;exports.useProModalInit=o.useProModalInit;exports.KProModal=n.KProModal;exports.TitleProps=a.TitleProps;exports.KProTitle=l.KProTitle;exports.scrollbarProps=c.scrollbarProps;exports.KScrollBar=p.KScrollBar;exports.KScaleVirtualList=d.KScaleVirtualList;exports.proTagProps=q.proTagProps;exports.KProTag=K.KProTag;exports.PickerApiEnum=s.PickerApiEnum;exports.ProPickerProps=s.ProPickerProps;exports.KProPicker=m.KProPicker;exports.ProAreaProps=T.ProAreaProps;exports.useProArea=$.useProArea;exports.KProArea=x.KProArea;exports.ProSignatureProps=b.ProSignatureProps;exports.KProSignature=g.KProSignature;exports.useProTable=y.useProTable;exports.KProTable=I.KProTable;exports.KIcon=S.KIcon;exports.useUpload=A.useUpload;exports.KProUpload=F.KProUpload;exports.useProForm=i.useProForm;exports.useProFormInit=i.useProFormInit;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./installer.js");require("./components/index.js");require("./hooks/index.js");const r=require("./components/form/component/form.js"),e=require("./components/form/index.js"),n=require("./components/collapse-transtion/src/types.js"),u=require("./components/collapse-transtion/index.js"),o=require("./components/pro-modal/hooks/useProModal.js"),P=require("./components/pro-modal/index.js"),a=require("./components/pro-title/src/types.js"),c=require("./components/pro-title/index.js"),l=require("./components/scroll-bar/src/types.js"),p=require("./components/scroll-bar/index.js"),d=require("./components/cover-scroll-bar/src/types.js"),q=require("./components/cover-scroll-bar/index.js"),K=require("./components/scale-virtual-list/index.js"),$=require("./components/pro-tag/src/types.js"),m=require("./components/pro-tag/index.js"),s=require("./components/pro-picker/src/types.js"),T=require("./components/pro-picker/index.js"),x=require("./components/pro-area/src/types.js"),S=require("./components/pro-area/hooks/use-pro-area.js"),b=require("./components/pro-area/index.js"),g=require("./components/pro-signature/src/types.js"),y=require("./components/pro-signature/index.js"),C=require("./components/pro-table/hooks/use-pro-table.js"),I=require("./components/pro-table/index.js"),f=require("./components/icon/index.js"),A=require("./components/pro-upload/src/hooks/useUpload.js"),F=require("./components/pro-upload/index.js"),M=require("./components/pro-contract-view/hooks/use-contract-view.js"),V=require("./components/pro-contract-view/index.js"),k=require("./components/pro-loading/src/pro-loading.js"),i=require("./hooks/useProForm.js");exports.default=t.default;exports.definePropType=r.definePropType;exports.formItemProps=r.formItemProps;exports.KForm=e.KForm;exports.KFormItem=e.KFormItem;exports.collapseProps=n.collapseProps;exports.KCollapseTranstion=u.KCollapseTranstion;exports.useProModal=o.useProModal;exports.useProModalInit=o.useProModalInit;exports.KProModal=P.KProModal;exports.TitleProps=a.TitleProps;exports.KProTitle=c.KProTitle;exports.scrollbarProps=l.scrollbarProps;exports.KScrollBar=p.KScrollBar;exports.CoverScrollbarProps=d.CoverScrollbarProps;exports.KCoverScrollBar=q.KCoverScrollBar;exports.KScaleVirtualList=K.KScaleVirtualList;exports.proTagProps=$.proTagProps;exports.KProTag=m.KProTag;exports.PickerApiEnum=s.PickerApiEnum;exports.ProPickerProps=s.ProPickerProps;exports.KProPicker=T.KProPicker;exports.ProAreaProps=x.ProAreaProps;exports.useProArea=S.useProArea;exports.KProArea=b.KProArea;exports.ProSignatureProps=g.ProSignatureProps;exports.KProSignature=y.KProSignature;exports.useProTable=C.useProTable;exports.KProTable=I.KProTable;exports.KIcon=f.KIcon;exports.useUpload=A.useUpload;exports.KProUpload=F.KProUpload;exports.useProContractView=M.useProContractView;exports.KProContractView=V.KProContractView;exports.KProloading=k.default;exports.useProForm=i.useProForm;exports.useProFormInit=i.useProFormInit;
@@ -0,0 +1 @@
1
+ .king-cover-scrollbar{height:100%;width:100%;overflow:hidden;position:relative}.king-cover-scrollbar .king-cover-scrollbar-container{height:100%;width:100%;overflow:scroll;scrollbar-width:none}.king-cover-scrollbar .king-cover-scrollbar-rail{width:5px;top:2px;bottom:2px;position:absolute}.king-cover-scrollbar .king-cover-scrollbar-rail__scrollbar--vertical{position:absolute;border-radius:5px;width:100%;cursor:pointer}
@@ -1 +1 @@
1
- @font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=33377) format("woff2"),url(fonts/iconfont.woff?t=22202) format("woff"),url(fonts/iconfont.ttf?t=27849) format("truetype")}.king-icon{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-king-upload-icon:before{content:"\e617"}.icon-king-title-icon:before{content:"\e680"}
1
+ @font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=37456) format("woff2"),url(fonts/iconfont.woff?t=20732) format("woff"),url(fonts/iconfont.ttf?t=59900) format("truetype")}.king-icon{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-king-upload-icon:before{content:"\e617"}.icon-king-title-icon:before{content:"\e680"}
@@ -1 +1 @@
1
- :root{--king-color-white:#ffffff;--king-color-primary:#409eff;--king-color-success:#67c23a;--king-color-warning:#e6a23c;--king-color-danger:#f56c6c;--king-color-error:#f56c6c;--king-color-info:#909399;--king-transition-duration:0.3s}.king-button--primary{--king-button-text-color:var(--king-color-primary)}.king-button--success{--king-button-text-color:var(--king-color-success)}.king-button--warning{--king-button-text-color:var(--king-color-warning)}.king-button--danger{--king-button-text-color:var(--king-color-danger)}.king-button--error{--king-button-text-color:var(--king-color-error)}.king-button--info{--king-button-text-color:var(--king-color-info)}.king-button{color:var(--king-button-text-color)}.king-scrollbar{overflow:hidden;position:relative;z-index:auto;height:100%;width:100%}.king-scrollbar .king-scrollbar-container{width:100%;overflow:scroll;height:100%;min-height:inherit;max-height:inherit;scrollbar-width:none}.king-scrollbar .king-scrollbar-content{width:-moz-fit-content;width:fit-content}.king-scrollbar .king-scrollbar-rail{position:absolute}.king-scrollbar .king-scrollbar-rail--vertical{right:0;width:5px;top:2px;bottom:2px;right:4px}.king-scrollbar .king-scrollbar-rail--horizontal{bottom:2px;height:5px;left:2px;right:2px}.king-scrollbar .king-scrollbar-rail__scrollbar--vertical{background:rgba(0,0,0,.25);position:absolute;border-radius:5px;width:100%;cursor:pointer}.king-scrollbar .king-scrollbar-rail__scrollbar--horizontal{background:rgba(0,0,0,.25);position:absolute;border-radius:5px;height:100%;cursor:pointer}.v-vl-items{width:-moz-fit-content;width:fit-content}.king-scale-virtual-list{width:100%;height:100%}.king-scale-virtual-list .king-scale-virtual-list-container{margin:0 auto;position:relative}.king-scale-virtual-list .king-scale-vittual-wrapper{width:-moz-fit-content;width:fit-content;margin:0 auto;position:absolute;left:50%}.king-pro-title{border-bottom:1px solid #ccc;font-weight:500;display:flex;align-items:center}.king-pro-title .icon{margin-right:10px}.king-pro-title--unborder{border:none}.king-pro-modal .ant-modal-content{padding:0}.king-pro-modal .ant-modal-header{height:56px;padding-left:32px;padding-right:24px;display:flex;justify-content:space-between;align-items:center;background:#f1f7ff;border-bottom:1px solid #e6e8ea}.king-pro-modal .ant-modal-body{padding:10px 20px;max-height:65vh;overflow:auto}.king-pro-modal .ant-modal-footer{height:56px;display:flex;padding:0 16px;justify-content:flex-end;align-items:center;border-top:1px solid #e6e8ea}.king-pro-modal .ant-modal-title{flex:1}.king-pro-modal .pro-modal-title{cursor:move;width:100%}.king-pro-area-select{width:100%}@font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=33926) format("woff2"),url(fonts/iconfont.woff?t=71799) format("woff"),url(fonts/iconfont.ttf?t=62284) format("truetype")}.king-icon{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-king-upload-icon:before{content:"\e617"}.icon-king-title-icon:before{content:"\e680"}
1
+ :root{--king-color-white:#ffffff;--king-color-primary:#409eff;--king-color-success:#67c23a;--king-color-warning:#e6a23c;--king-color-danger:#f56c6c;--king-color-error:#f56c6c;--king-color-info:#909399;--king-transition-duration:0.3s}.king-button--primary{--king-button-text-color:var(--king-color-primary)}.king-button--success{--king-button-text-color:var(--king-color-success)}.king-button--warning{--king-button-text-color:var(--king-color-warning)}.king-button--danger{--king-button-text-color:var(--king-color-danger)}.king-button--error{--king-button-text-color:var(--king-color-error)}.king-button--info{--king-button-text-color:var(--king-color-info)}.king-button{color:var(--king-button-text-color)}.king-scrollbar{overflow:hidden;position:relative;z-index:auto;height:100%;width:100%}.king-scrollbar .king-scrollbar-container{width:100%;overflow:scroll;height:100%;min-height:inherit;max-height:inherit;scrollbar-width:none}.king-scrollbar .king-scrollbar-content{width:-moz-fit-content;width:fit-content}.king-scrollbar .king-scrollbar-rail{position:absolute}.king-scrollbar .king-scrollbar-rail--vertical{right:0;width:5px;top:2px;bottom:2px;right:4px}.king-scrollbar .king-scrollbar-rail--horizontal{bottom:2px;height:5px;left:2px;right:2px}.king-scrollbar .king-scrollbar-rail__scrollbar--vertical{background:rgba(0,0,0,.25);position:absolute;border-radius:5px;width:100%;cursor:pointer}.king-scrollbar .king-scrollbar-rail__scrollbar--horizontal{background:rgba(0,0,0,.25);position:absolute;border-radius:5px;height:100%;cursor:pointer}.v-vl-items{width:-moz-fit-content;width:fit-content}.king-scale-virtual-list{width:100%;height:100%}.king-scale-virtual-list .king-scale-virtual-list-container{margin:0 auto;position:relative}.king-scale-virtual-list .king-scale-vittual-wrapper{width:-moz-fit-content;width:fit-content;margin:0 auto;position:absolute;left:50%}.king-pro-title{border-bottom:1px solid #ccc;font-weight:500;display:flex;align-items:center}.king-pro-title .icon{margin-right:10px}.king-pro-title--unborder{border:none}.king-pro-modal .ant-modal-content{padding:0}.king-pro-modal .ant-modal-header{height:56px;padding-left:32px;padding-right:24px;display:flex;justify-content:space-between;align-items:center;background:#f1f7ff;border-bottom:1px solid #e6e8ea}.king-pro-modal .ant-modal-body{padding:10px 20px;max-height:65vh;overflow:auto}.king-pro-modal .ant-modal-footer{height:56px;display:flex;padding:0 16px;justify-content:flex-end;align-items:center;border-top:1px solid #e6e8ea}.king-pro-modal .ant-modal-title{flex:1}.king-pro-modal .pro-modal-title{cursor:move;width:100%}.king-pro-area-select{width:100%}@font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=64090) format("woff2"),url(fonts/iconfont.woff?t=57883) format("woff"),url(fonts/iconfont.ttf?t=94316) format("truetype")}.king-icon{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-king-upload-icon:before{content:"\e617"}.icon-king-title-icon:before{content:"\e680"}.king-cover-scrollbar{height:100%;width:100%;overflow:hidden;position:relative}.king-cover-scrollbar .king-cover-scrollbar-container{height:100%;width:100%;overflow:scroll;scrollbar-width:none}.king-cover-scrollbar .king-cover-scrollbar-rail{width:5px;top:2px;bottom:2px;position:absolute}.king-cover-scrollbar .king-cover-scrollbar-rail__scrollbar--vertical{position:absolute;border-radius:5px;width:100%;cursor:pointer}.king-pro-contract-view{position:relative;border:1px solid green}.king-pro-contract-view>.ant-spin{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
@@ -0,0 +1 @@
1
+ .king-pro-contract-view{position:relative;border:1px solid green}.king-pro-contract-view>.ant-spin{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
@@ -0,0 +1,5 @@
1
+ import { MaybeRef, Ref } from 'vue';
2
+ export declare function useHasScroll(refElement: MaybeRef<HTMLElement | null>, incrementwidth?: number): {
3
+ hasHorizontalScroll: Ref<boolean>;
4
+ hasVerticalScroll: Ref<boolean>;
5
+ };
@@ -0,0 +1,47 @@
1
+ import { SFCWithInstall } from '../utils/install';
2
+ import { DefineComponent, PropType, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
3
+ export * from './src/types';
4
+ export declare const KCoverScrollBar: SFCWithInstall<DefineComponent<{
5
+ trigger: {
6
+ type: PropType<"none" | "hover" | "always">;
7
+ default: string;
8
+ };
9
+ scrollbarColor: {
10
+ type: StringConstructor;
11
+ default: string;
12
+ };
13
+ scrollbarOffset: {
14
+ type: (StringConstructor | NumberConstructor)[];
15
+ default: number;
16
+ };
17
+ }, {
18
+ be: string;
19
+ contentRef: Ref<HTMLElement | null>;
20
+ hasVerticalScroll: Ref<boolean>;
21
+ showYBarRef: ComputedRef<boolean>;
22
+ yRailRef: Ref<HTMLElement | null>;
23
+ yBarSizePxRef: ComputedRef<string>;
24
+ yBarTopPxRef: ComputedRef<string>;
25
+ handleScroll: (e: Event) => void;
26
+ handleYScrollMouseDown: (e: MouseEvent) => void;
27
+ handleMouseLeave: () => void;
28
+ handleMouseEnter: () => void;
29
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
30
+ trigger: {
31
+ type: PropType<"none" | "hover" | "always">;
32
+ default: string;
33
+ };
34
+ scrollbarColor: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ };
38
+ scrollbarOffset: {
39
+ type: (StringConstructor | NumberConstructor)[];
40
+ default: number;
41
+ };
42
+ }>>, {
43
+ trigger: "none" | "hover" | "always";
44
+ scrollbarColor: string;
45
+ scrollbarOffset: string | number;
46
+ }, {}>>;
47
+ export default KCoverScrollBar;
@@ -0,0 +1,45 @@
1
+ import { DefineComponent, PropType, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
+ declare const _default: DefineComponent<{
3
+ trigger: {
4
+ type: PropType<"none" | "hover" | "always">;
5
+ default: string;
6
+ };
7
+ scrollbarColor: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ scrollbarOffset: {
12
+ type: (StringConstructor | NumberConstructor)[];
13
+ default: number;
14
+ };
15
+ }, {
16
+ be: string;
17
+ contentRef: Ref<HTMLElement | null>;
18
+ hasVerticalScroll: Ref<boolean>;
19
+ showYBarRef: ComputedRef<boolean>;
20
+ yRailRef: Ref<HTMLElement | null>;
21
+ yBarSizePxRef: ComputedRef<string>;
22
+ yBarTopPxRef: ComputedRef<string>;
23
+ handleScroll: (e: Event) => void;
24
+ handleYScrollMouseDown: (e: MouseEvent) => void;
25
+ handleMouseLeave: () => void;
26
+ handleMouseEnter: () => void;
27
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
28
+ trigger: {
29
+ type: PropType<"none" | "hover" | "always">;
30
+ default: string;
31
+ };
32
+ scrollbarColor: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ scrollbarOffset: {
37
+ type: (StringConstructor | NumberConstructor)[];
38
+ default: number;
39
+ };
40
+ }>>, {
41
+ trigger: "none" | "hover" | "always";
42
+ scrollbarColor: string;
43
+ scrollbarOffset: string | number;
44
+ }, {}>;
45
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { PropType } from 'vue';
2
+ export declare const CoverScrollbarProps: {
3
+ trigger: {
4
+ type: PropType<"none" | "hover" | "always">;
5
+ default: string;
6
+ };
7
+ scrollbarColor: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ scrollbarOffset: {
12
+ type: (StringConstructor | NumberConstructor)[];
13
+ default: number;
14
+ };
15
+ };
@@ -3,6 +3,7 @@ export * from './collapse-transtion';
3
3
  export * from './pro-modal';
4
4
  export * from './pro-title';
5
5
  export * from './scroll-bar';
6
+ export * from './cover-scroll-bar';
6
7
  export * from './scale-virtual-list';
7
8
  export * from './pro-tag';
8
9
  export * from './pro-picker';
@@ -11,3 +12,5 @@ export * from './pro-signature';
11
12
  export * from './pro-table';
12
13
  export * from './icon';
13
14
  export * from './pro-upload';
15
+ export * from './pro-contract-view';
16
+ export * from './pro-loading';
@@ -0,0 +1,3 @@
1
+ export declare const proAreaApis: {
2
+ contractFiles: string;
3
+ };
@@ -0,0 +1,28 @@
1
+ import { Ref } from 'vue';
2
+ interface paramsType {
3
+ contractId: string;
4
+ prefix?: string;
5
+ header?: Recordable<any>;
6
+ }
7
+ export declare function useProContractView({ contractId, prefix }: paramsType): {
8
+ pages: Ref<{
9
+ url: string;
10
+ loaded: boolean;
11
+ width: string;
12
+ height: string;
13
+ pageNum: number;
14
+ }[]>;
15
+ fileList: Ref<{
16
+ fieid: string;
17
+ fileName: string;
18
+ total: number;
19
+ pageInfoVolist: {
20
+ url: string;
21
+ loaded: boolean;
22
+ width: string;
23
+ height: string;
24
+ pageNum: number;
25
+ }[];
26
+ }[]>;
27
+ };
28
+ export {};
@@ -0,0 +1,25 @@
1
+ import { SFCWithInstall } from '../utils/install';
2
+ import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
3
+ import { fileType } from './src/types';
4
+ export type { ContractViewProps } from './src/types';
5
+ export * from './hooks/use-contract-view';
6
+ export declare const KProContractView: SFCWithInstall<DefineComponent<{
7
+ readonly fileId: {
8
+ readonly type: PropType<string>;
9
+ };
10
+ readonly fileList: {
11
+ readonly type: PropType< fileType[]>;
12
+ readonly default: () => never[];
13
+ };
14
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
15
+ readonly fileId: {
16
+ readonly type: PropType<string>;
17
+ };
18
+ readonly fileList: {
19
+ readonly type: PropType< fileType[]>;
20
+ readonly default: () => never[];
21
+ };
22
+ }>>, {
23
+ readonly fileList: fileType[];
24
+ }, {}>>;
25
+ export default KProContractView;
@@ -0,0 +1,22 @@
1
+ import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
+ import { fileType } from './types';
3
+ declare const _default: DefineComponent<{
4
+ readonly fileId: {
5
+ readonly type: PropType<string>;
6
+ };
7
+ readonly fileList: {
8
+ readonly type: PropType< fileType[]>;
9
+ readonly default: () => never[];
10
+ };
11
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
12
+ readonly fileId: {
13
+ readonly type: PropType<string>;
14
+ };
15
+ readonly fileList: {
16
+ readonly type: PropType< fileType[]>;
17
+ readonly default: () => never[];
18
+ };
19
+ }>>, {
20
+ readonly fileList: fileType[];
21
+ }, {}>;
22
+ export default _default;
@@ -0,0 +1,24 @@
1
+ import { ExtractPublicPropTypes, PropType } from 'vue';
2
+ export declare const ProContractViewProps: {
3
+ readonly fileId: {
4
+ readonly type: PropType<string>;
5
+ };
6
+ readonly fileList: {
7
+ readonly type: PropType<fileType[]>;
8
+ readonly default: () => never[];
9
+ };
10
+ };
11
+ export interface pageType {
12
+ url: string;
13
+ loaded: boolean;
14
+ width: string;
15
+ height: string;
16
+ pageNum: number;
17
+ }
18
+ export interface fileType {
19
+ fieid: string;
20
+ fileName: string;
21
+ total: number;
22
+ pageInfoVolist: pageType[];
23
+ }
24
+ export type ContractViewProps = ExtractPublicPropTypes<typeof ProContractViewProps>;
@@ -0,0 +1,2 @@
1
+ export { default as KProloading } from './src/pro-loading';
2
+ export * from './src/types';