@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 +12 -0
- package/dist/es/components/pro-modal/index.mjs +7 -10
- package/dist/es/components/pro-modal/src/Modal.mjs +18 -0
- package/dist/es/components/pro-tag/src/ProTag.vue2.mjs +10 -10
- package/dist/es/index.mjs +31 -33
- package/dist/lib/components/pro-modal/index.js +1 -1
- package/dist/lib/components/pro-modal/src/Modal.js +1 -0
- package/dist/lib/components/pro-tag/src/ProTag.vue2.js +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/theme-chalk/icon.css +1 -1
- package/dist/theme-chalk/index.css +1 -1
- package/dist/types/components/pro-modal/index.d.ts +12 -3
- package/dist/types/components/pro-modal/src/Modal.d.ts +12 -0
- package/global.d.ts +19 -0
- package/package.json +4 -3
- package/dist/es/components/pro-modal/src/ProModal.vue.mjs +0 -4
- package/dist/es/components/pro-modal/src/ProModal.vue2.mjs +0 -39
- package/dist/lib/components/pro-modal/src/ProModal.vue.js +0 -1
- package/dist/lib/components/pro-modal/src/ProModal.vue2.js +0 -1
- package/dist/types/components/pro-modal/src/ProModal.vue.d.ts +0 -42
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { withInstall as o } from "../utils/install.mjs";
|
|
2
|
-
import "./src/
|
|
2
|
+
import r from "./src/Modal.mjs";
|
|
3
3
|
import "./style/index.mjs";
|
|
4
|
-
import { useProModal as
|
|
5
|
-
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
i as
|
|
12
|
-
|
|
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
|
|
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
|
|
4
|
+
const S = /* @__PURE__ */ c({
|
|
4
5
|
name: "ProTag",
|
|
5
6
|
__name: "ProTag",
|
|
6
|
-
props: /* @__PURE__ */
|
|
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,
|
|
13
|
-
return (
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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")
|
|
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
|
|
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"),
|
|
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=
|
|
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=
|
|
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 {
|
|
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
|
|
4
|
-
|
|
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.
|
|
4
|
+
"version": "1.0.48",
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "ISC",
|
|
8
8
|
"keywords": [],
|
|
9
|
-
"main": "dist/lib/index.
|
|
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,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
|
-
};
|