@king-one/antdv 1.0.46 → 1.0.47
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 +10 -10
- package/dist/es/components/pro-tag/src/ProTag.vue2.mjs +10 -10
- package/dist/lib/components/pro-modal/src/ProModal.vue2.js +1 -1
- package/dist/lib/components/pro-tag/src/ProTag.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 +1 -1
- package/global.d.ts +19 -0
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { defineComponent as c, mergeModels as
|
|
1
|
+
import { defineComponent as c, mergeModels as r, 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
2
|
import { Modal as B } from "ant-design-vue";
|
|
3
3
|
import { useNamespace as V } from "../../../hooks/use-namespace/index.mjs";
|
|
4
4
|
import { ProModalProps as _ } from "./types.mjs";
|
|
5
5
|
const x = /* @__PURE__ */ c({
|
|
6
6
|
name: "ProModal",
|
|
7
7
|
__name: "ProModal",
|
|
8
|
-
props: /* @__PURE__ */
|
|
8
|
+
props: /* @__PURE__ */ r(_, {
|
|
9
9
|
modelValue: { required: !0, type: Boolean },
|
|
10
10
|
modelModifiers: {}
|
|
11
11
|
}),
|
|
12
|
-
emits: /* @__PURE__ */
|
|
12
|
+
emits: /* @__PURE__ */ r(["onConfirm", "onCancel"], ["update:modelValue"]),
|
|
13
13
|
setup(l, { emit: t }) {
|
|
14
14
|
const e = t, o = i(l, "modelValue"), { b: m } = V("pro-modal"), p = f(() => m());
|
|
15
|
-
function
|
|
15
|
+
function s() {
|
|
16
16
|
e("onConfirm");
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function d() {
|
|
19
19
|
e("onCancel");
|
|
20
20
|
}
|
|
21
|
-
return (n,
|
|
21
|
+
return (n, a) => (C(), M(P(B), k({
|
|
22
22
|
open: o.value,
|
|
23
|
-
"onUpdate:open":
|
|
23
|
+
"onUpdate:open": a[0] || (a[0] = (u) => o.value = u)
|
|
24
24
|
}, n.modalProps, {
|
|
25
25
|
"wrap-class-name": p.value,
|
|
26
|
-
onOk:
|
|
27
|
-
onCancel:
|
|
26
|
+
onOk: s,
|
|
27
|
+
onCancel: d
|
|
28
28
|
}), {
|
|
29
29
|
default: v(() => [
|
|
30
|
-
w(n.$slots, "
|
|
30
|
+
w(n.$slots, "aaaa")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
33
|
/* FORWARDED */
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as c, mergeModels as p, useModel as s, computed as i, openBlock as d, createBlock as m, unref as g, withCtx as f, createTextVNode as T, toDisplayString as _ } from "vue";
|
|
2
|
+
import { Tag as v } from "ant-design-vue";
|
|
2
3
|
import { proTagProps as x } from "./types.mjs";
|
|
3
|
-
const
|
|
4
|
+
const S = /* @__PURE__ */ c({
|
|
4
5
|
name: "ProTag",
|
|
5
6
|
__name: "ProTag",
|
|
6
|
-
props: /* @__PURE__ */
|
|
7
|
+
props: /* @__PURE__ */ p(x, {
|
|
7
8
|
tag: { type: [String, Number, Boolean], required: !0 },
|
|
8
9
|
tagModifiers: {}
|
|
9
10
|
}),
|
|
10
11
|
emits: ["update:tag"],
|
|
11
12
|
setup(e) {
|
|
12
|
-
const n = e,
|
|
13
|
-
return (
|
|
13
|
+
const n = e, l = s(e, "tag"), t = i(() => n.options.find((o) => o.value === l.value));
|
|
14
|
+
return (u, o) => {
|
|
14
15
|
var a;
|
|
15
|
-
|
|
16
|
-
return m(), f(s, {
|
|
16
|
+
return d(), m(g(v), {
|
|
17
17
|
color: ((a = t.value) == null ? void 0 : a.color) || "default"
|
|
18
18
|
}, {
|
|
19
|
-
default:
|
|
19
|
+
default: f(() => {
|
|
20
20
|
var r;
|
|
21
21
|
return [
|
|
22
22
|
T(
|
|
23
|
-
|
|
23
|
+
_(((r = t.value) == null ? void 0 : r.label) || ""),
|
|
24
24
|
1
|
|
25
25
|
/* TEXT */
|
|
26
26
|
)
|
|
@@ -33,5 +33,5 @@ const M = /* @__PURE__ */ p({
|
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
export {
|
|
36
|
-
|
|
36
|
+
S as default
|
|
37
37
|
};
|
|
@@ -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=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(
|
|
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(l,{emit:t}){const o=t,n=e.useModel(l,"modelValue"),{b:s}=p.useNamespace("pro-modal"),u=e.computed(()=>s());function d(){o("onConfirm")}function c(){o("onCancel")}return(a,r)=>(e.openBlock(),e.createBlock(e.unref(m.Modal),e.mergeProps({open:n.value,"onUpdate:open":r[0]||(r[0]=i=>n.value=i)},a.modalProps,{"wrap-class-name":u.value,onOk:d,onCancel:c}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"aaaa")]),_:3},16,["open","wrap-class-name"]))}});exports.default=M;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("./types.js"),d=e.defineComponent({name:"ProTag",__name:"ProTag",props:e.mergeModels(i.proTagProps,{tag:{type:[String,Number,Boolean],required:!0},tagModifiers:{}}),emits:["update:tag"],setup(t){const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("ant-design-vue"),i=require("./types.js"),d=e.defineComponent({name:"ProTag",__name:"ProTag",props:e.mergeModels(i.proTagProps,{tag:{type:[String,Number,Boolean],required:!0},tagModifiers:{}}),emits:["update:tag"],setup(t){const n=t,s=e.useModel(t,"tag"),o=e.computed(()=>n.options.find(a=>a.value===s.value));return(l,a)=>{var r;return e.openBlock(),e.createBlock(e.unref(c.Tag),{color:((r=o.value)==null?void 0:r.color)||"default"},{default:e.withCtx(()=>{var u;return[e.createTextVNode(e.toDisplayString(((u=o.value)==null?void 0:u.label)||""),1)]}),_:1},8,["color"])}}});exports.default=d;
|
|
@@ -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=38544) format("woff2"),url(fonts/iconfont.woff?t=50562) format("woff"),url(fonts/iconfont.ttf?t=85935) 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=95094) format("woff2"),url(fonts/iconfont.woff?t=61646) format("woff"),url(fonts/iconfont.ttf?t=95687) 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"}
|
package/global.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
// GlobalComponents for Volar
|
|
3
|
+
declare module 'vue' {
|
|
4
|
+
export interface GlobalComponents {
|
|
5
|
+
KCollapseTranstion: typeof import('@king-one/antdv')['KCollapseTranstion'];
|
|
6
|
+
KForm: typeof import('@king-one/antdv')['KForm'];
|
|
7
|
+
KIcon: typeof import('@king-one/antdv')['KIcon'];
|
|
8
|
+
KProArea: typeof import('@king-one/antdv')['KProArea'];
|
|
9
|
+
KProModal: typeof import('@king-one/antdv')['KProModal'];
|
|
10
|
+
KProPicker: typeof import('@king-one/antdv')['KProPicker'];
|
|
11
|
+
KProTag: typeof import('@king-one/antdv')['KProTag'];
|
|
12
|
+
KProTitle: typeof import('@king-one/antdv')['KProTitle'];
|
|
13
|
+
KScaleVirtualList: typeof import('@king-one/antdv')['KScaleVirtualList'];
|
|
14
|
+
KScrollBar: typeof import('@king-one/antdv')['KScrollBar'];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export {};
|
|
19
|
+
|
package/package.json
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@king-one/antdv",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.47",
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "ISC",
|
|
8
8
|
"keywords": [],
|
|
9
|
-
"main": "dist/lib/index.
|
|
9
|
+
"main": "dist/lib/index.js",
|
|
10
10
|
"module": "dist/es/index.mjs",
|
|
11
11
|
"types": "dist/types/index.d.ts",
|
|
12
12
|
"files": [
|
|
13
13
|
"CHANGELOG.md",
|
|
14
14
|
"README.md",
|
|
15
|
-
"dist"
|
|
15
|
+
"dist",
|
|
16
|
+
"global.d.ts"
|
|
16
17
|
],
|
|
17
18
|
"peerDependencies": {
|
|
18
19
|
"ant-design-vue": "^4.2.4",
|