@king-one/antdv 1.0.49 → 1.0.50

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,11 @@
1
1
  # @king-one/antdv
2
2
 
3
+ ## 1.0.50
4
+
5
+ ### Patch Changes
6
+
7
+ - feat:优化
8
+
3
9
  ## 1.0.49
4
10
 
5
11
  ### Patch Changes
@@ -1,11 +1,12 @@
1
1
  import { withInstall as o } from "../utils/install.mjs";
2
- import r from "./src/Modal.mjs";
2
+ import "./src/ProModal.vue.mjs";
3
3
  import "./style/index.mjs";
4
- import { useProModal as i, useProModalInit as p } from "./hooks/useProModal.mjs";
5
- const m = o(r);
4
+ import { useProModal as e, useProModalInit as f } from "./hooks/useProModal.mjs";
5
+ import r from "./src/ProModal.vue2.mjs";
6
+ const l = o(r);
6
7
  export {
7
- m as KProModal,
8
- m as default,
9
- i as useProModal,
10
- p as useProModalInit
8
+ l as KProModal,
9
+ l as default,
10
+ e as useProModal,
11
+ f as useProModalInit
11
12
  };
@@ -0,0 +1,4 @@
1
+ import f from "./ProModal.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,84 @@
1
+ import { createElementVNode as u, defineComponent as y, mergeModels as a, useModel as f, computed as C, openBlock as B, createBlock as k, unref as F, withCtx as b, renderSlot as l } from "vue";
2
+ import { Modal as g } from "ant-design-vue";
3
+ import { useNamespace as v } from "../../../hooks/use-namespace/index.mjs";
4
+ const w = /* @__PURE__ */ u(
5
+ "div",
6
+ null,
7
+ "123",
8
+ -1
9
+ /* HOISTED */
10
+ ), x = /* @__PURE__ */ y({
11
+ name: "ProModal",
12
+ __name: "ProModal",
13
+ props: /* @__PURE__ */ a({
14
+ prefixCls: {},
15
+ visible: { type: Boolean },
16
+ confirmLoading: { type: Boolean },
17
+ title: {},
18
+ closable: { type: Boolean },
19
+ closeIcon: {},
20
+ onOk: { type: Function },
21
+ onCancel: { type: Function },
22
+ "onUpdate:visible": { type: Function },
23
+ "onUpdate:open": { type: Function },
24
+ onChange: { type: Function },
25
+ afterClose: { type: Function },
26
+ centered: { type: Boolean },
27
+ width: {},
28
+ footer: {},
29
+ okText: {},
30
+ okType: {},
31
+ cancelText: {},
32
+ icon: {},
33
+ maskClosable: { type: Boolean },
34
+ forceRender: { type: Boolean },
35
+ okButtonProps: {},
36
+ cancelButtonProps: {},
37
+ destroyOnClose: { type: Boolean },
38
+ wrapClassName: {},
39
+ maskTransitionName: {},
40
+ transitionName: {},
41
+ getContainer: { type: [String, Boolean, Function] },
42
+ zIndex: {},
43
+ bodyStyle: {},
44
+ maskStyle: {},
45
+ mask: { type: Boolean },
46
+ keyboard: { type: Boolean },
47
+ wrapProps: {},
48
+ focusTriggerAfterClose: { type: Boolean },
49
+ modalRender: { type: Function },
50
+ mousePosition: {}
51
+ }, {
52
+ modelValue: { required: !0, type: Boolean },
53
+ modelModifiers: {}
54
+ }),
55
+ emits: /* @__PURE__ */ a(["onConfirm", "onCancel"], ["update:modelValue"]),
56
+ setup(r, { emit: p }) {
57
+ const e = p, o = f(r, "modelValue"), { b: s } = v("pro-modal"), i = C(() => s());
58
+ function c() {
59
+ e("onConfirm");
60
+ }
61
+ function d() {
62
+ e("onCancel");
63
+ }
64
+ return (n, t) => (B(), k(F(g), {
65
+ open: o.value,
66
+ "onUpdate:open": t[0] || (t[0] = (m) => o.value = m),
67
+ "wrap-class-name": i.value,
68
+ onOk: c,
69
+ onCancel: d
70
+ }, {
71
+ default: b(() => [
72
+ l(n.$slots, "default", {}, () => [
73
+ w
74
+ ]),
75
+ l(n.$slots, "aaaa")
76
+ ]),
77
+ _: 3
78
+ /* FORWARDED */
79
+ }, 8, ["open", "wrap-class-name"]));
80
+ }
81
+ });
82
+ export {
83
+ x as default
84
+ };
@@ -1 +1 @@
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;
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/ProModal.vue2.js"),o=r.withInstall(t.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 e=require("./ProModal.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"),d=require("ant-design-vue"),m=require("../../../hooks/use-namespace/index.js"),y=e.createElementVNode("div",null,"123",-1),f=e.defineComponent({name:"ProModal",__name:"ProModal",props:e.mergeModels({prefixCls:{},visible:{type:Boolean},confirmLoading:{type:Boolean},title:{},closable:{type:Boolean},closeIcon:{},onOk:{type:Function},onCancel:{type:Function},"onUpdate:visible":{type:Function},"onUpdate:open":{type:Function},onChange:{type:Function},afterClose:{type:Function},centered:{type:Boolean},width:{},footer:{},okText:{},okType:{},cancelText:{},icon:{},maskClosable:{type:Boolean},forceRender:{type:Boolean},okButtonProps:{},cancelButtonProps:{},destroyOnClose:{type:Boolean},wrapClassName:{},maskTransitionName:{},transitionName:{},getContainer:{type:[String,Boolean,Function]},zIndex:{},bodyStyle:{},maskStyle:{},mask:{type:Boolean},keyboard:{type:Boolean},wrapProps:{},focusTriggerAfterClose:{type:Boolean},modalRender:{type:Function},mousePosition:{}},{modelValue:{required:!0,type:Boolean},modelModifiers:{}}),emits:e.mergeModels(["onConfirm","onCancel"],["update:modelValue"]),setup(l,{emit:r}){const o=r,n=e.useModel(l,"modelValue"),{b:s}=m.useNamespace("pro-modal"),i=e.computed(()=>s());function c(){o("onConfirm")}function p(){o("onCancel")}return(t,a)=>(e.openBlock(),e.createBlock(e.unref(d.Modal),{open:n.value,"onUpdate:open":a[0]||(a[0]=u=>n.value=u),"wrap-class-name":i.value,onOk:c,onCancel:p},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[y]),e.renderSlot(t.$slots,"aaaa")]),_:3},8,["open","wrap-class-name"]))}});exports.default=f;
@@ -1 +1 @@
1
- @font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=34189) format("woff2"),url(fonts/iconfont.woff?t=86220) format("woff"),url(fonts/iconfont.ttf?t=11592) 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=51920) format("woff2"),url(fonts/iconfont.woff?t=47629) format("woff"),url(fonts/iconfont.ttf?t=83185) 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=12674) format("woff2"),url(fonts/iconfont.woff?t=56147) format("woff"),url(fonts/iconfont.ttf?t=69539) 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=98500) format("woff2"),url(fonts/iconfont.woff?t=393) format("woff"),url(fonts/iconfont.ttf?t=52075) 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,14 +1,4 @@
1
- import { SFCWithInstall } from '../utils/install';
2
- import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
3
- import { ModalFuncProps } from 'ant-design-vue';
1
+ import { default as ProModal } from './src/ProModal.vue';
4
2
  export * from './hooks/useProModal';
5
- export declare const KProModal: SFCWithInstall<DefineComponent<{
6
- readonly modalProps: {
7
- readonly type: PropType<Omit< ModalFuncProps, "open">>;
8
- };
9
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
10
- readonly modalProps: {
11
- readonly type: PropType<Omit< ModalFuncProps, "open">>;
12
- };
13
- }>>, {}, {}>>;
3
+ export declare const KProModal: typeof ProModal;
14
4
  export default KProModal;
@@ -4,9 +4,19 @@ declare const _default: DefineComponent<{
4
4
  readonly modalProps: {
5
5
  readonly type: PropType<Omit< ModalFuncProps, "open">>;
6
6
  };
7
+ readonly mProps: {
8
+ readonly type: PropType<{
9
+ name: string;
10
+ }>;
11
+ };
7
12
  }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
8
13
  readonly modalProps: {
9
14
  readonly type: PropType<Omit< ModalFuncProps, "open">>;
10
15
  };
16
+ readonly mProps: {
17
+ readonly type: PropType<{
18
+ name: string;
19
+ }>;
20
+ };
11
21
  }>>, {}, {}>;
12
22
  export default _default;
@@ -0,0 +1,41 @@
1
+ import { ModalProps } from 'ant-design-vue';
2
+ import { ModelRef, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
+ declare let __VLS_typeProps: Omit<ModalProps, 'open'>;
4
+ declare const open: ModelRef<boolean, string>;
5
+ type __VLS_PublicProps = {
6
+ modelValue: typeof open['value'];
7
+ } & typeof __VLS_typeProps;
8
+ declare function __VLS_template(): {
9
+ slots: {
10
+ default?(_: {}): any;
11
+ aaaa?(_: {}): any;
12
+ };
13
+ refs: {};
14
+ attrs: Partial<{}>;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: DefineComponent<__VLS_TypePropsToOption<__VLS_PublicProps>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
18
+ onCancel: (...args: any[]) => void;
19
+ onConfirm: (...args: any[]) => void;
20
+ "update:modelValue": (modelValue: boolean) => void;
21
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
22
+ onOnCancel?: ((...args: any[]) => any) | undefined;
23
+ onOnConfirm?: ((...args: any[]) => any) | undefined;
24
+ "onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
25
+ }, {}, {}>;
26
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
+ export default _default;
28
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
29
+ type __VLS_TypePropsToOption<T> = {
30
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
31
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
32
+ } : {
33
+ type: PropType<T[K]>;
34
+ required: true;
35
+ };
36
+ };
37
+ type __VLS_WithTemplateSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -4,4 +4,9 @@ export declare const ProModalProps: {
4
4
  readonly modalProps: {
5
5
  readonly type: PropType<Omit<ModalFuncProps, "open">>;
6
6
  };
7
+ readonly mProps: {
8
+ readonly type: PropType<{
9
+ name: string;
10
+ }>;
11
+ };
7
12
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@king-one/antdv",
3
3
  "type": "module",
4
- "version": "1.0.49",
4
+ "version": "1.0.50",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "ISC",
@@ -1,18 +0,0 @@
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,8 +0,0 @@
1
- const o = {
2
- modalProps: {
3
- type: Object
4
- }
5
- };
6
- export {
7
- o as ProModalProps
8
- };
@@ -1 +0,0 @@
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 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o={modalProps:{type:Object}};exports.ProModalProps=o;