@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @king-one/antdv
2
2
 
3
+ ## 1.0.47
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: 修复 pro-tag 引入错误
8
+
3
9
  ## 1.0.46
4
10
 
5
11
  ### Patch Changes
@@ -1,33 +1,33 @@
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";
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__ */ a(_, {
8
+ props: /* @__PURE__ */ r(_, {
9
9
  modelValue: { required: !0, type: Boolean },
10
10
  modelModifiers: {}
11
11
  }),
12
- emits: /* @__PURE__ */ a(["onConfirm", "onCancel"], ["update:modelValue"]),
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 d() {
15
+ function s() {
16
16
  e("onConfirm");
17
17
  }
18
- function s() {
18
+ function d() {
19
19
  e("onCancel");
20
20
  }
21
- return (n, r) => (C(), M(P(B), k({
21
+ return (n, a) => (C(), M(P(B), k({
22
22
  open: o.value,
23
- "onUpdate:open": r[0] || (r[0] = (u) => o.value = u)
23
+ "onUpdate:open": a[0] || (a[0] = (u) => o.value = u)
24
24
  }, n.modalProps, {
25
25
  "wrap-class-name": p.value,
26
- onOk: d,
27
- onCancel: s
26
+ onOk: s,
27
+ onCancel: d
28
28
  }), {
29
29
  default: v(() => [
30
- w(n.$slots, "default")
30
+ w(n.$slots, "aaaa")
31
31
  ]),
32
32
  _: 3
33
33
  /* FORWARDED */
@@ -1,26 +1,26 @@
1
- import { defineComponent as p, mergeModels as u, useModel as d, computed as g, resolveComponent as i, openBlock as m, createBlock as f, withCtx as _, createTextVNode as T, toDisplayString as v } from "vue";
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 M = /* @__PURE__ */ p({
4
+ const S = /* @__PURE__ */ c({
4
5
  name: "ProTag",
5
6
  __name: "ProTag",
6
- props: /* @__PURE__ */ u(x, {
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, c = d(e, "tag"), t = g(() => n.options.find((o) => o.value === c.value));
13
- return (l, o) => {
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
- const s = i("ATag");
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
- v(((r = t.value) == null ? void 0 : r.label) || ""),
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
- M as default
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(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;
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 u=t,l=e.useModel(t,"tag"),o=e.computed(()=>u.options.find(a=>a.value===l.value));return(s,a)=>{var r;const c=e.resolveComponent("ATag");return e.openBlock(),e.createBlock(c,{color:((r=o.value)==null?void 0:r.color)||"default"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString(((n=o.value)==null?void 0:n.label)||""),1)]}),_:1},8,["color"])}}});exports.default=d;
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=42463) format("woff2"),url(fonts/iconfont.woff?t=55895) format("woff"),url(fonts/iconfont.ttf?t=42030) 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=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=99903) format("woff2"),url(fonts/iconfont.woff?t=13260) format("woff"),url(fonts/iconfont.ttf?t=7758) 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=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"}
@@ -2,7 +2,7 @@ import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractP
2
2
  import { ModalProps } from 'ant-design-vue';
3
3
  declare function __VLS_template(): {
4
4
  slots: {
5
- default?(_: {}): any;
5
+ aaaa?(_: {}): any;
6
6
  };
7
7
  refs: {};
8
8
  attrs: Partial<{}>;
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.46",
4
+ "version": "1.0.47",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "ISC",
8
8
  "keywords": [],
9
- "main": "dist/lib/index.cjs",
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",