@king-one/antdv 1.0.50 → 1.0.52

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.52
4
+
5
+ ### Patch Changes
6
+
7
+ - feat:优化
8
+
9
+ ## 1.0.51
10
+
11
+ ### Patch Changes
12
+
13
+ - feat:优化
14
+
3
15
  ## 1.0.50
4
16
 
5
17
  ### Patch Changes
@@ -1,82 +1,37 @@
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({
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({
11
6
  name: "ProModal",
12
7
  __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
- }, {
8
+ props: /* @__PURE__ */ a(_, {
52
9
  modelValue: { required: !0, type: Boolean },
53
10
  modelModifiers: {}
54
11
  }),
55
12
  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() {
13
+ setup(l, { emit: t }) {
14
+ const e = t, o = i(l, "modelValue"), { b: m } = V("pro-modal"), p = f(() => m());
15
+ function d() {
59
16
  e("onConfirm");
60
17
  }
61
- function d() {
18
+ function s() {
62
19
  e("onCancel");
63
20
  }
64
- return (n, t) => (B(), k(F(g), {
21
+ return (n, r) => (C(), M(P(B), k({
65
22
  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")
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")
76
31
  ]),
77
32
  _: 3
78
33
  /* FORWARDED */
79
- }, 8, ["open", "wrap-class-name"]));
34
+ }, 16, ["open", "wrap-class-name"]));
80
35
  }
81
36
  });
82
37
  export {
@@ -0,0 +1,8 @@
1
+ const o = {
2
+ modalProps: {
3
+ type: Object
4
+ }
5
+ };
6
+ export {
7
+ o as ProModalProps
8
+ };
@@ -1 +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
+ "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;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o={modalProps:{type:Object}};exports.ProModalProps=o;
@@ -1 +1 @@
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
+ @font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=352) format("woff2"),url(fonts/iconfont.woff?t=54965) format("woff"),url(fonts/iconfont.ttf?t=31319) 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=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
+ :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=41620) format("woff2"),url(fonts/iconfont.woff?t=69657) format("woff"),url(fonts/iconfont.ttf?t=75288) 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"}
@@ -4,19 +4,9 @@ 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
- };
12
7
  }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
13
8
  readonly modalProps: {
14
9
  readonly type: PropType<Omit< ModalFuncProps, "open">>;
15
10
  };
16
- readonly mProps: {
17
- readonly type: PropType<{
18
- name: string;
19
- }>;
20
- };
21
11
  }>>, {}, {}>;
22
12
  export default _default;
@@ -1,39 +1,40 @@
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;
1
+ import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
+ import { ModalFuncProps } from 'ant-design-vue';
8
3
  declare function __VLS_template(): {
9
4
  slots: {
10
5
  default?(_: {}): any;
11
- aaaa?(_: {}): any;
12
6
  };
13
7
  refs: {};
14
8
  attrs: Partial<{}>;
15
9
  };
16
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
- declare const __VLS_component: DefineComponent<__VLS_TypePropsToOption<__VLS_PublicProps>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
11
+ declare const __VLS_component: DefineComponent<{
12
+ modalProps: {
13
+ readonly type: PropType<Omit< ModalFuncProps, "open">>;
14
+ };
15
+ modelValue: {
16
+ type: PropType<boolean>;
17
+ required: true;
18
+ };
19
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
18
20
  onCancel: (...args: any[]) => void;
19
21
  onConfirm: (...args: any[]) => void;
20
22
  "update:modelValue": (modelValue: boolean) => void;
21
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
23
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
24
+ modalProps: {
25
+ readonly type: PropType<Omit< ModalFuncProps, "open">>;
26
+ };
27
+ modelValue: {
28
+ type: PropType<boolean>;
29
+ required: true;
30
+ };
31
+ }>> & {
22
32
  onOnCancel?: ((...args: any[]) => any) | undefined;
23
33
  onOnConfirm?: ((...args: any[]) => any) | undefined;
24
34
  "onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
25
35
  }, {}, {}>;
26
36
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
37
  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
38
  type __VLS_WithTemplateSlots<T, S> = T & {
38
39
  new (): {
39
40
  $slots: S;
@@ -1,12 +1,9 @@
1
1
  import { ModalFuncProps } from 'ant-design-vue';
2
2
  import { PropType } from 'vue';
3
+ type ModalType = ModalFuncProps;
3
4
  export declare const ProModalProps: {
4
5
  readonly modalProps: {
5
- readonly type: PropType<Omit<ModalFuncProps, "open">>;
6
- };
7
- readonly mProps: {
8
- readonly type: PropType<{
9
- name: string;
10
- }>;
6
+ readonly type: PropType<Omit<ModalType, "open">>;
11
7
  };
12
8
  };
9
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@king-one/antdv",
3
3
  "type": "module",
4
- "version": "1.0.50",
4
+ "version": "1.0.52",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "ISC",