@king-one/antdv 1.0.51 → 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,11 @@
1
1
  # @king-one/antdv
2
2
 
3
+ ## 1.0.52
4
+
5
+ ### Patch Changes
6
+
7
+ - feat:优化
8
+
3
9
  ## 1.0.51
4
10
 
5
11
  ### Patch Changes
@@ -1,37 +1,37 @@
1
- import { defineComponent as c, mergeModels as a, useModel as i, computed as f, openBlock as C, createBlock as M, unref as k, withCtx as _, renderSlot as v } from "vue";
2
- import { Modal as w } from "ant-design-vue";
3
- import { useNamespace as B } from "../../../hooks/use-namespace/index.mjs";
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";
4
5
  const x = /* @__PURE__ */ c({
5
6
  name: "ProModal",
6
7
  __name: "ProModal",
7
- props: /* @__PURE__ */ a({
8
- modalProps: {}
9
- }, {
8
+ props: /* @__PURE__ */ a(_, {
10
9
  modelValue: { required: !0, type: Boolean },
11
10
  modelModifiers: {}
12
11
  }),
13
12
  emits: /* @__PURE__ */ a(["onConfirm", "onCancel"], ["update:modelValue"]),
14
13
  setup(l, { emit: t }) {
15
- const e = t, o = i(l, "modelValue"), { b: r } = B("pro-modal"), m = f(() => r());
14
+ const e = t, o = i(l, "modelValue"), { b: m } = V("pro-modal"), p = f(() => m());
16
15
  function d() {
17
16
  e("onConfirm");
18
17
  }
19
- function p() {
18
+ function s() {
20
19
  e("onCancel");
21
20
  }
22
- return (s, n) => (C(), M(k(w), {
21
+ return (n, r) => (C(), M(P(B), k({
23
22
  open: o.value,
24
- "onUpdate:open": n[0] || (n[0] = (u) => o.value = u),
25
- "wrap-class-name": m.value,
23
+ "onUpdate:open": r[0] || (r[0] = (u) => o.value = u)
24
+ }, n.modalProps, {
25
+ "wrap-class-name": p.value,
26
26
  onOk: d,
27
- onCancel: p
28
- }, {
29
- default: _(() => [
30
- v(s.$slots, "default")
27
+ onCancel: s
28
+ }), {
29
+ default: v(() => [
30
+ w(n.$slots, "default")
31
31
  ]),
32
32
  _: 3
33
33
  /* FORWARDED */
34
- }, 8, ["open", "wrap-class-name"]));
34
+ }, 16, ["open", "wrap-class-name"]));
35
35
  }
36
36
  });
37
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"),m=require("ant-design-vue"),p=require("../../../hooks/use-namespace/index.js"),f=e.defineComponent({name:"ProModal",__name:"ProModal",props:e.mergeModels({modalProps:{}},{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:r}=p.useNamespace("pro-modal"),u=e.computed(()=>r());function s(){o("onConfirm")}function d(){o("onCancel")}return(c,l)=>(e.openBlock(),e.createBlock(e.unref(m.Modal),{open:n.value,"onUpdate:open":l[0]||(l[0]=i=>n.value=i),"wrap-class-name":u.value,onOk:s,onCancel:d},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_: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=93484) format("woff2"),url(fonts/iconfont.woff?t=37522) format("woff"),url(fonts/iconfont.ttf?t=85409) 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=37008) format("woff2"),url(fonts/iconfont.woff?t=44781) format("woff"),url(fonts/iconfont.ttf?t=28040) 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,12 +1,5 @@
1
- import { ModalProps } from 'ant-design-vue';
2
- import { ModelRef, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
- declare let __VLS_typeProps: {
4
- modalProps: Omit<ModalProps, 'open'>;
5
- };
6
- declare const open: ModelRef<boolean, string>;
7
- type __VLS_PublicProps = {
8
- modelValue: typeof open['value'];
9
- } & typeof __VLS_typeProps;
1
+ import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
+ import { ModalFuncProps } from 'ant-design-vue';
10
3
  declare function __VLS_template(): {
11
4
  slots: {
12
5
  default?(_: {}): any;
@@ -15,26 +8,33 @@ declare function __VLS_template(): {
15
8
  attrs: Partial<{}>;
16
9
  };
17
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
- 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, {
19
20
  onCancel: (...args: any[]) => void;
20
21
  onConfirm: (...args: any[]) => void;
21
22
  "update:modelValue": (modelValue: boolean) => void;
22
- }, 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
+ }>> & {
23
32
  onOnCancel?: ((...args: any[]) => any) | undefined;
24
33
  onOnConfirm?: ((...args: any[]) => any) | undefined;
25
34
  "onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
26
35
  }, {}, {}>;
27
36
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
37
  export default _default;
29
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
30
- type __VLS_TypePropsToOption<T> = {
31
- [K in keyof T]-?: {} extends Pick<T, K> ? {
32
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
33
- } : {
34
- type: PropType<T[K]>;
35
- required: true;
36
- };
37
- };
38
38
  type __VLS_WithTemplateSlots<T, S> = T & {
39
39
  new (): {
40
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.51",
4
+ "version": "1.0.52",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "ISC",