@king-one/antdv 1.0.50 → 1.0.51

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.51
4
+
5
+ ### Patch Changes
6
+
7
+ - feat:优化
8
+
3
9
  ## 1.0.50
4
10
 
5
11
  ### Patch Changes
@@ -1,78 +1,33 @@
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 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";
4
+ const x = /* @__PURE__ */ c({
11
5
  name: "ProModal",
12
6
  __name: "ProModal",
13
7
  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: {}
8
+ modalProps: {}
51
9
  }, {
52
10
  modelValue: { required: !0, type: Boolean },
53
11
  modelModifiers: {}
54
12
  }),
55
13
  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() {
14
+ setup(l, { emit: t }) {
15
+ const e = t, o = i(l, "modelValue"), { b: r } = B("pro-modal"), m = f(() => r());
16
+ function d() {
59
17
  e("onConfirm");
60
18
  }
61
- function d() {
19
+ function p() {
62
20
  e("onCancel");
63
21
  }
64
- return (n, t) => (B(), k(F(g), {
22
+ return (s, n) => (C(), M(k(w), {
65
23
  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
24
+ "onUpdate:open": n[0] || (n[0] = (u) => o.value = u),
25
+ "wrap-class-name": m.value,
26
+ onOk: d,
27
+ onCancel: p
70
28
  }, {
71
- default: b(() => [
72
- l(n.$slots, "default", {}, () => [
73
- w
74
- ]),
75
- l(n.$slots, "aaaa")
29
+ default: _(() => [
30
+ v(s.$slots, "default")
76
31
  ]),
77
32
  _: 3
78
33
  /* FORWARDED */
@@ -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=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 +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=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 +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=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,6 +1,8 @@
1
1
  import { ModalProps } from 'ant-design-vue';
2
2
  import { ModelRef, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
- declare let __VLS_typeProps: Omit<ModalProps, 'open'>;
3
+ declare let __VLS_typeProps: {
4
+ modalProps: Omit<ModalProps, 'open'>;
5
+ };
4
6
  declare const open: ModelRef<boolean, string>;
5
7
  type __VLS_PublicProps = {
6
8
  modelValue: typeof open['value'];
@@ -8,7 +10,6 @@ type __VLS_PublicProps = {
8
10
  declare function __VLS_template(): {
9
11
  slots: {
10
12
  default?(_: {}): any;
11
- aaaa?(_: {}): any;
12
13
  };
13
14
  refs: {};
14
15
  attrs: Partial<{}>;
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.51",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "ISC",