@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 +6 -0
- package/dist/es/components/pro-modal/src/ProModal.vue2.mjs +16 -61
- package/dist/lib/components/pro-modal/src/ProModal.vue2.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/src/ProModal.vue.d.ts +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,78 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Modal as
|
|
3
|
-
import { useNamespace as
|
|
4
|
-
const
|
|
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
|
-
|
|
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(
|
|
57
|
-
const e =
|
|
58
|
-
function
|
|
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
|
|
19
|
+
function p() {
|
|
62
20
|
e("onCancel");
|
|
63
21
|
}
|
|
64
|
-
return (
|
|
22
|
+
return (s, n) => (C(), M(k(w), {
|
|
65
23
|
open: o.value,
|
|
66
|
-
"onUpdate:open":
|
|
67
|
-
"wrap-class-name":
|
|
68
|
-
onOk:
|
|
69
|
-
onCancel:
|
|
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:
|
|
72
|
-
|
|
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"),
|
|
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=
|
|
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=
|
|
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:
|
|
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<{}>;
|