@king-one/antdv 1.0.46 → 1.0.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @king-one/antdv
2
2
 
3
+ ## 1.0.48
4
+
5
+ ### Patch Changes
6
+
7
+ - feat:重构 pro-modal
8
+
9
+ ## 1.0.47
10
+
11
+ ### Patch Changes
12
+
13
+ - fix: 修复 pro-tag 引入错误
14
+
3
15
  ## 1.0.46
4
16
 
5
17
  ### Patch Changes
@@ -1,14 +1,11 @@
1
1
  import { withInstall as o } from "../utils/install.mjs";
2
- import "./src/ProModal.vue.mjs";
2
+ import r from "./src/Modal.mjs";
3
3
  import "./style/index.mjs";
4
- import { useProModal as e, useProModalInit as f } from "./hooks/useProModal.mjs";
5
- import { ProModalProps as P } from "./src/types.mjs";
6
- import r from "./src/ProModal.vue2.mjs";
7
- const i = o(r);
4
+ import { useProModal as i, useProModalInit as p } from "./hooks/useProModal.mjs";
5
+ const m = o(r);
8
6
  export {
9
- i as KProModal,
10
- P as ProModalProps,
11
- i as default,
12
- e as useProModal,
13
- f as useProModalInit
7
+ m as KProModal,
8
+ m as default,
9
+ i as useProModal,
10
+ p as useProModalInit
14
11
  };
@@ -0,0 +1,18 @@
1
+ import { defineComponent as p } from "vue";
2
+ import { Modal as t } from "ant-design-vue";
3
+ import { ProModalProps as a } from "./types.mjs";
4
+ const l = p({
5
+ props: a,
6
+ setup(r, { slots: e }) {
7
+ const d = defineModel({ required: !0, type: Boolean });
8
+ return () => /* @__PURE__ */ React.createElement(t, { "v-model:open": d.value, "v-bind": r.modalProps }, {
9
+ default: () => {
10
+ var o;
11
+ return (o = e.default) == null ? void 0 : o.call(e);
12
+ }
13
+ });
14
+ }
15
+ });
16
+ export {
17
+ l as default
18
+ };
@@ -1,26 +1,26 @@
1
- import { defineComponent as p, mergeModels as u, useModel as d, computed as g, resolveComponent as i, openBlock as m, createBlock as f, withCtx as _, createTextVNode as T, toDisplayString as v } from "vue";
1
+ import { defineComponent as c, mergeModels as p, useModel as s, computed as i, openBlock as d, createBlock as m, unref as g, withCtx as f, createTextVNode as T, toDisplayString as _ } from "vue";
2
+ import { Tag as v } from "ant-design-vue";
2
3
  import { proTagProps as x } from "./types.mjs";
3
- const M = /* @__PURE__ */ p({
4
+ const S = /* @__PURE__ */ c({
4
5
  name: "ProTag",
5
6
  __name: "ProTag",
6
- props: /* @__PURE__ */ u(x, {
7
+ props: /* @__PURE__ */ p(x, {
7
8
  tag: { type: [String, Number, Boolean], required: !0 },
8
9
  tagModifiers: {}
9
10
  }),
10
11
  emits: ["update:tag"],
11
12
  setup(e) {
12
- const n = e, c = d(e, "tag"), t = g(() => n.options.find((o) => o.value === c.value));
13
- return (l, o) => {
13
+ const n = e, l = s(e, "tag"), t = i(() => n.options.find((o) => o.value === l.value));
14
+ return (u, o) => {
14
15
  var a;
15
- const s = i("ATag");
16
- return m(), f(s, {
16
+ return d(), m(g(v), {
17
17
  color: ((a = t.value) == null ? void 0 : a.color) || "default"
18
18
  }, {
19
- default: _(() => {
19
+ default: f(() => {
20
20
  var r;
21
21
  return [
22
22
  T(
23
- v(((r = t.value) == null ? void 0 : r.label) || ""),
23
+ _(((r = t.value) == null ? void 0 : r.label) || ""),
24
24
  1
25
25
  /* TEXT */
26
26
  )
@@ -33,5 +33,5 @@ const M = /* @__PURE__ */ p({
33
33
  }
34
34
  });
35
35
  export {
36
- M as default
36
+ S as default
37
37
  };
package/dist/es/index.mjs CHANGED
@@ -6,45 +6,43 @@ import { KForm as P } from "./components/form/index.mjs";
6
6
  import { collapseProps as l } from "./components/collapse-transtion/src/types.mjs";
7
7
  import { KCollapseTranstion as i } from "./components/collapse-transtion/index.mjs";
8
8
  import { useProModal as u, useProModalInit as c } from "./components/pro-modal/hooks/useProModal.mjs";
9
- import { ProModalProps as T } from "./components/pro-modal/src/types.mjs";
10
- import { KProModal as M } from "./components/pro-modal/index.mjs";
11
- import { TitleProps as A } from "./components/pro-title/src/types.mjs";
12
- import { KProTitle as I } from "./components/pro-title/index.mjs";
13
- import { scrollbarProps as S } from "./components/scroll-bar/src/types.mjs";
14
- import { KScrollBar as y } from "./components/scroll-bar/index.mjs";
15
- import { KScaleVirtualList as C } from "./components/scale-virtual-list/index.mjs";
16
- import { proTagProps as V } from "./components/pro-tag/src/types.mjs";
17
- import { KProTag as j } from "./components/pro-tag/index.mjs";
18
- import { ProPickerProps as v } from "./components/pro-picker/src/types.mjs";
19
- import { KProPicker as z } from "./components/pro-picker/index.mjs";
20
- import { ProAreaProps as E } from "./components/pro-area/src/types.mjs";
21
- import { useProArea as H } from "./components/pro-area/hooks/use-pro-area.mjs";
22
- import { KProArea as N } from "./components/pro-area/index.mjs";
23
- import { KIcon as Q } from "./components/icon/index.mjs";
24
- import { useProForm as U, useProFormInit as W } from "./hooks/useProForm.mjs";
9
+ import { KProModal as T } from "./components/pro-modal/index.mjs";
10
+ import { TitleProps as g } from "./components/pro-title/src/types.mjs";
11
+ import { KProTitle as F } from "./components/pro-title/index.mjs";
12
+ import { scrollbarProps as M } from "./components/scroll-bar/src/types.mjs";
13
+ import { KScrollBar as S } from "./components/scroll-bar/index.mjs";
14
+ import { KScaleVirtualList as y } from "./components/scale-virtual-list/index.mjs";
15
+ import { proTagProps as C } from "./components/pro-tag/src/types.mjs";
16
+ import { KProTag as V } from "./components/pro-tag/index.mjs";
17
+ import { ProPickerProps as j } from "./components/pro-picker/src/types.mjs";
18
+ import { KProPicker as v } from "./components/pro-picker/index.mjs";
19
+ import { ProAreaProps as z } from "./components/pro-area/src/types.mjs";
20
+ import { useProArea as E } from "./components/pro-area/hooks/use-pro-area.mjs";
21
+ import { KProArea as H } from "./components/pro-area/index.mjs";
22
+ import { KIcon as N } from "./components/icon/index.mjs";
23
+ import { useProForm as Q, useProFormInit as R } from "./hooks/useProForm.mjs";
25
24
  export {
26
25
  i as KCollapseTranstion,
27
26
  P as KForm,
28
- Q as KIcon,
29
- N as KProArea,
30
- M as KProModal,
31
- z as KProPicker,
32
- j as KProTag,
33
- I as KProTitle,
34
- C as KScaleVirtualList,
35
- y as KScrollBar,
36
- E as ProAreaProps,
37
- T as ProModalProps,
38
- v as ProPickerProps,
39
- A as TitleProps,
27
+ N as KIcon,
28
+ H as KProArea,
29
+ T as KProModal,
30
+ v as KProPicker,
31
+ V as KProTag,
32
+ F as KProTitle,
33
+ y as KScaleVirtualList,
34
+ S as KScrollBar,
35
+ z as ProAreaProps,
36
+ j as ProPickerProps,
37
+ g as TitleProps,
40
38
  l as collapseProps,
41
39
  o as default,
42
40
  f as formType,
43
- V as proTagProps,
44
- S as scrollbarProps,
45
- H as useProArea,
46
- U as useProForm,
47
- W as useProFormInit,
41
+ C as proTagProps,
42
+ M as scrollbarProps,
43
+ E as useProArea,
44
+ Q as useProForm,
45
+ R as useProFormInit,
48
46
  u as useProModal,
49
47
  c as useProModalInit
50
48
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../utils/install.js");require("./src/ProModal.vue.js");require("./style/index.js");const e=require("./hooks/useProModal.js"),t=require("./src/types.js"),u=require("./src/ProModal.vue2.js"),o=r.withInstall(u.default);exports.useProModal=e.useProModal;exports.useProModalInit=e.useProModalInit;exports.ProModalProps=t.ProModalProps;exports.KProModal=o;exports.default=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../utils/install.js"),l=require("./src/Modal.js");require("./style/index.js");const e=require("./hooks/useProModal.js"),o=r.withInstall(l.default);exports.useProModal=e.useProModal;exports.useProModalInit=e.useProModalInit;exports.KProModal=o;exports.default=o;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),u=require("ant-design-vue"),d=require("./types.js"),a=n.defineComponent({props:d.ProModalProps,setup(r,{slots:e}){const t=defineModel({required:!0,type:Boolean});return()=>React.createElement(u.Modal,{"v-model:open":t.value,"v-bind":r.modalProps},{default:()=>{var o;return(o=e.default)==null?void 0:o.call(e)}})}});exports.default=a;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("./types.js"),d=e.defineComponent({name:"ProTag",__name:"ProTag",props:e.mergeModels(i.proTagProps,{tag:{type:[String,Number,Boolean],required:!0},tagModifiers:{}}),emits:["update:tag"],setup(t){const u=t,l=e.useModel(t,"tag"),o=e.computed(()=>u.options.find(a=>a.value===l.value));return(s,a)=>{var r;const c=e.resolveComponent("ATag");return e.openBlock(),e.createBlock(c,{color:((r=o.value)==null?void 0:r.color)||"default"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString(((n=o.value)==null?void 0:n.label)||""),1)]}),_:1},8,["color"])}}});exports.default=d;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("ant-design-vue"),i=require("./types.js"),d=e.defineComponent({name:"ProTag",__name:"ProTag",props:e.mergeModels(i.proTagProps,{tag:{type:[String,Number,Boolean],required:!0},tagModifiers:{}}),emits:["update:tag"],setup(t){const n=t,s=e.useModel(t,"tag"),o=e.computed(()=>n.options.find(a=>a.value===s.value));return(l,a)=>{var r;return e.openBlock(),e.createBlock(e.unref(c.Tag),{color:((r=o.value)==null?void 0:r.color)||"default"},{default:e.withCtx(()=>{var u;return[e.createTextVNode(e.toDisplayString(((u=o.value)==null?void 0:u.label)||""),1)]}),_:1},8,["color"])}}});exports.default=d;
package/dist/lib/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./installer.js");require("./components/index.js");require("./hooks/index.js");const s=require("./components/form/component/form.js"),i=require("./components/form/index.js"),t=require("./components/collapse-transtion/src/types.js"),P=require("./components/collapse-transtion/index.js"),r=require("./components/pro-modal/hooks/useProModal.js"),u=require("./components/pro-modal/src/types.js"),n=require("./components/pro-modal/index.js"),l=require("./components/pro-title/src/types.js"),a=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"),$=require("./components/pro-picker/src/types.js"),T=require("./components/pro-picker/index.js"),m=require("./components/pro-area/src/types.js"),M=require("./components/pro-area/hooks/use-pro-area.js"),x=require("./components/pro-area/index.js"),y=require("./components/icon/index.js"),e=require("./hooks/useProForm.js");exports.default=o.default;exports.formType=s.formType;exports.KForm=i.KForm;exports.collapseProps=t.collapseProps;exports.KCollapseTranstion=P.KCollapseTranstion;exports.useProModal=r.useProModal;exports.useProModalInit=r.useProModalInit;exports.ProModalProps=u.ProModalProps;exports.KProModal=n.KProModal;exports.TitleProps=l.TitleProps;exports.KProTitle=a.KProTitle;exports.scrollbarProps=c.scrollbarProps;exports.KScrollBar=p.KScrollBar;exports.KScaleVirtualList=d.KScaleVirtualList;exports.proTagProps=q.proTagProps;exports.KProTag=K.KProTag;exports.ProPickerProps=$.ProPickerProps;exports.KProPicker=T.KProPicker;exports.ProAreaProps=m.ProAreaProps;exports.useProArea=M.useProArea;exports.KProArea=x.KProArea;exports.KIcon=y.KIcon;exports.useProForm=e.useProForm;exports.useProFormInit=e.useProFormInit;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./installer.js");require("./components/index.js");require("./hooks/index.js");const s=require("./components/form/component/form.js"),i=require("./components/form/index.js"),t=require("./components/collapse-transtion/src/types.js"),u=require("./components/collapse-transtion/index.js"),r=require("./components/pro-modal/hooks/useProModal.js"),n=require("./components/pro-modal/index.js"),P=require("./components/pro-title/src/types.js"),l=require("./components/pro-title/index.js"),a=require("./components/scroll-bar/src/types.js"),c=require("./components/scroll-bar/index.js"),p=require("./components/scale-virtual-list/index.js"),q=require("./components/pro-tag/src/types.js"),d=require("./components/pro-tag/index.js"),K=require("./components/pro-picker/src/types.js"),$=require("./components/pro-picker/index.js"),T=require("./components/pro-area/src/types.js"),m=require("./components/pro-area/hooks/use-pro-area.js"),x=require("./components/pro-area/index.js"),y=require("./components/icon/index.js"),e=require("./hooks/useProForm.js");exports.default=o.default;exports.formType=s.formType;exports.KForm=i.KForm;exports.collapseProps=t.collapseProps;exports.KCollapseTranstion=u.KCollapseTranstion;exports.useProModal=r.useProModal;exports.useProModalInit=r.useProModalInit;exports.KProModal=n.KProModal;exports.TitleProps=P.TitleProps;exports.KProTitle=l.KProTitle;exports.scrollbarProps=a.scrollbarProps;exports.KScrollBar=c.KScrollBar;exports.KScaleVirtualList=p.KScaleVirtualList;exports.proTagProps=q.proTagProps;exports.KProTag=d.KProTag;exports.ProPickerProps=K.ProPickerProps;exports.KProPicker=$.KProPicker;exports.ProAreaProps=T.ProAreaProps;exports.useProArea=m.useProArea;exports.KProArea=x.KProArea;exports.KIcon=y.KIcon;exports.useProForm=e.useProForm;exports.useProFormInit=e.useProFormInit;
@@ -1 +1 @@
1
- @font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=42463) format("woff2"),url(fonts/iconfont.woff?t=55895) format("woff"),url(fonts/iconfont.ttf?t=42030) 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-title-icon:before{content:"\e680"}
1
+ @font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=28791) format("woff2"),url(fonts/iconfont.woff?t=20447) format("woff"),url(fonts/iconfont.ttf?t=70539) 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-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-vittual-wrapper{width:-moz-fit-content;width:fit-content;margin:0 auto}.king-pro-title{border-bottom:1px solid #ccc;font-weight:500}.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-area-select{width:100%}@font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=99903) format("woff2"),url(fonts/iconfont.woff?t=13260) format("woff"),url(fonts/iconfont.ttf?t=7758) 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-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-vittual-wrapper{width:-moz-fit-content;width:fit-content;margin:0 auto}.king-pro-title{border-bottom:1px solid #ccc;font-weight:500}.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-area-select{width:100%}@font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=22385) format("woff2"),url(fonts/iconfont.woff?t=10138) format("woff"),url(fonts/iconfont.ttf?t=59609) 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-title-icon:before{content:"\e680"}
@@ -1,5 +1,14 @@
1
- import { default as ProModal } from './src/ProModal.vue';
1
+ import { SFCWithInstall } from '../utils/install';
2
+ import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
3
+ import { ModalProps } from 'ant-design-vue';
2
4
  export * from './hooks/useProModal';
3
- export * from './src/types';
4
- export declare const KProModal: typeof ProModal;
5
+ export declare const KProModal: SFCWithInstall<DefineComponent<{
6
+ readonly modalProps: {
7
+ readonly type: PropType<Omit< ModalProps, "open">>;
8
+ };
9
+ }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
10
+ readonly modalProps: {
11
+ readonly type: PropType<Omit< ModalProps, "open">>;
12
+ };
13
+ }>>, {}, {}>>;
5
14
  export default KProModal;
@@ -0,0 +1,12 @@
1
+ import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
+ import { ModalProps } from 'ant-design-vue';
3
+ declare const _default: DefineComponent<{
4
+ readonly modalProps: {
5
+ readonly type: PropType<Omit< ModalProps, "open">>;
6
+ };
7
+ }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
8
+ readonly modalProps: {
9
+ readonly type: PropType<Omit< ModalProps, "open">>;
10
+ };
11
+ }>>, {}, {}>;
12
+ export default _default;
package/global.d.ts ADDED
@@ -0,0 +1,19 @@
1
+
2
+ // GlobalComponents for Volar
3
+ declare module 'vue' {
4
+ export interface GlobalComponents {
5
+ KCollapseTranstion: typeof import('@king-one/antdv')['KCollapseTranstion'];
6
+ KForm: typeof import('@king-one/antdv')['KForm'];
7
+ KIcon: typeof import('@king-one/antdv')['KIcon'];
8
+ KProArea: typeof import('@king-one/antdv')['KProArea'];
9
+ KProModal: typeof import('@king-one/antdv')['KProModal'];
10
+ KProPicker: typeof import('@king-one/antdv')['KProPicker'];
11
+ KProTag: typeof import('@king-one/antdv')['KProTag'];
12
+ KProTitle: typeof import('@king-one/antdv')['KProTitle'];
13
+ KScaleVirtualList: typeof import('@king-one/antdv')['KScaleVirtualList'];
14
+ KScrollBar: typeof import('@king-one/antdv')['KScrollBar'];
15
+ }
16
+ }
17
+
18
+ export {};
19
+
package/package.json CHANGED
@@ -1,18 +1,19 @@
1
1
  {
2
2
  "name": "@king-one/antdv",
3
3
  "type": "module",
4
- "version": "1.0.46",
4
+ "version": "1.0.48",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "ISC",
8
8
  "keywords": [],
9
- "main": "dist/lib/index.cjs",
9
+ "main": "dist/lib/index.js",
10
10
  "module": "dist/es/index.mjs",
11
11
  "types": "dist/types/index.d.ts",
12
12
  "files": [
13
13
  "CHANGELOG.md",
14
14
  "README.md",
15
- "dist"
15
+ "dist",
16
+ "global.d.ts"
16
17
  ],
17
18
  "peerDependencies": {
18
19
  "ant-design-vue": "^4.2.4",
@@ -1,4 +0,0 @@
1
- import f from "./ProModal.vue2.mjs";
2
- export {
3
- f as default
4
- };
@@ -1,39 +0,0 @@
1
- import { defineComponent as c, mergeModels as a, useModel as i, computed as f, openBlock as C, createBlock as M, unref as P, mergeProps as k, withCtx as v, renderSlot as w } from "vue";
2
- import { Modal as B } from "ant-design-vue";
3
- import { useNamespace as V } from "../../../hooks/use-namespace/index.mjs";
4
- import { ProModalProps as _ } from "./types.mjs";
5
- const x = /* @__PURE__ */ c({
6
- name: "ProModal",
7
- __name: "ProModal",
8
- props: /* @__PURE__ */ a(_, {
9
- modelValue: { required: !0, type: Boolean },
10
- modelModifiers: {}
11
- }),
12
- emits: /* @__PURE__ */ a(["onConfirm", "onCancel"], ["update:modelValue"]),
13
- setup(l, { emit: t }) {
14
- const e = t, o = i(l, "modelValue"), { b: m } = V("pro-modal"), p = f(() => m());
15
- function d() {
16
- e("onConfirm");
17
- }
18
- function s() {
19
- e("onCancel");
20
- }
21
- return (n, r) => (C(), M(P(B), k({
22
- open: o.value,
23
- "onUpdate:open": r[0] || (r[0] = (u) => o.value = u)
24
- }, n.modalProps, {
25
- "wrap-class-name": p.value,
26
- onOk: d,
27
- onCancel: s
28
- }), {
29
- default: v(() => [
30
- w(n.$slots, "default")
31
- ]),
32
- _: 3
33
- /* FORWARDED */
34
- }, 16, ["open", "wrap-class-name"]));
35
- }
36
- });
37
- export {
38
- x as default
39
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./ProModal.vue2.js");exports.default=e.default;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("ant-design-vue"),p=require("../../../hooks/use-namespace/index.js"),f=require("./types.js"),M=e.defineComponent({name:"ProModal",__name:"ProModal",props:e.mergeModels(f.ProModalProps,{modelValue:{required:!0,type:Boolean},modelModifiers:{}}),emits:e.mergeModels(["onConfirm","onCancel"],["update:modelValue"]),setup(t,{emit:a}){const o=a,n=e.useModel(t,"modelValue"),{b:s}=p.useNamespace("pro-modal"),u=e.computed(()=>s());function d(){o("onConfirm")}function c(){o("onCancel")}return(r,l)=>(e.openBlock(),e.createBlock(e.unref(m.Modal),e.mergeProps({open:n.value,"onUpdate:open":l[0]||(l[0]=i=>n.value=i)},r.modalProps,{"wrap-class-name":u.value,onOk:d,onCancel:c}),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16,["open","wrap-class-name"]))}});exports.default=M;
@@ -1,42 +0,0 @@
1
- import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
- import { ModalProps } from 'ant-design-vue';
3
- declare function __VLS_template(): {
4
- slots: {
5
- default?(_: {}): any;
6
- };
7
- refs: {};
8
- attrs: Partial<{}>;
9
- };
10
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: DefineComponent<{
12
- modalProps: {
13
- readonly type: PropType<Omit< ModalProps, "open">>;
14
- };
15
- modelValue: {
16
- type: PropType<boolean>;
17
- required: true;
18
- };
19
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
20
- onCancel: (...args: any[]) => void;
21
- onConfirm: (...args: any[]) => void;
22
- "update:modelValue": (modelValue: boolean) => void;
23
- }, string, PublicProps, Readonly< ExtractPropTypes<{
24
- modalProps: {
25
- readonly type: PropType<Omit< ModalProps, "open">>;
26
- };
27
- modelValue: {
28
- type: PropType<boolean>;
29
- required: true;
30
- };
31
- }>> & {
32
- onOnCancel?: ((...args: any[]) => any) | undefined;
33
- onOnConfirm?: ((...args: any[]) => any) | undefined;
34
- "onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
35
- }, {}, {}>;
36
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
37
- export default _default;
38
- type __VLS_WithTemplateSlots<T, S> = T & {
39
- new (): {
40
- $slots: S;
41
- };
42
- };