@king-one/antdv 1.0.45 → 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.
Files changed (39) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/es/components/icon/index.mjs +9 -0
  3. package/dist/es/components/icon/src/icon.vue.mjs +4 -0
  4. package/dist/es/components/icon/src/icon.vue2.mjs +26 -0
  5. package/dist/es/components/icon/src/types.mjs +17 -0
  6. package/dist/es/components/icon/style/index.mjs +2 -0
  7. package/dist/es/components/index.mjs +6 -4
  8. package/dist/es/components/pro-modal/src/ProModal.vue2.mjs +10 -10
  9. package/dist/es/components/pro-tag/src/ProTag.vue2.mjs +10 -10
  10. package/dist/es/components/pro-title/src/ProTitle.vue2.mjs +21 -14
  11. package/dist/es/components/pro-title/src/types.mjs +5 -1
  12. package/dist/es/index.mjs +11 -9
  13. package/dist/lib/components/icon/index.js +1 -0
  14. package/dist/lib/components/icon/src/icon.vue.js +1 -0
  15. package/dist/lib/components/icon/src/icon.vue2.js +1 -0
  16. package/dist/lib/components/icon/src/types.js +1 -0
  17. package/dist/lib/components/icon/style/index.js +1 -0
  18. package/dist/lib/components/index.js +1 -1
  19. package/dist/lib/components/pro-modal/src/ProModal.vue2.js +1 -1
  20. package/dist/lib/components/pro-tag/src/ProTag.vue2.js +1 -1
  21. package/dist/lib/components/pro-title/src/ProTitle.vue2.js +1 -1
  22. package/dist/lib/components/pro-title/src/types.js +1 -1
  23. package/dist/lib/index.js +1 -1
  24. package/dist/theme-chalk/fonts/iconfont.ttf +0 -0
  25. package/dist/theme-chalk/fonts/iconfont.woff +0 -0
  26. package/dist/theme-chalk/fonts/iconfont.woff2 +0 -0
  27. package/dist/theme-chalk/icon.css +1 -0
  28. package/dist/theme-chalk/index.css +1 -1
  29. package/dist/theme-chalk/pro-title.css +1 -1
  30. package/dist/types/components/icon/index.d.ts +33 -0
  31. package/dist/types/components/icon/src/icon.vue.d.ts +32 -0
  32. package/dist/types/components/icon/src/types.d.ts +14 -0
  33. package/dist/types/components/index.d.ts +1 -0
  34. package/dist/types/components/pro-modal/src/ProModal.vue.d.ts +1 -1
  35. package/dist/types/components/pro-title/index.d.ts +23 -4
  36. package/dist/types/components/pro-title/src/ProTitle.vue.d.ts +11 -2
  37. package/dist/types/components/pro-title/src/types.d.ts +5 -1
  38. package/global.d.ts +19 -0
  39. package/package.json +4 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @king-one/antdv
2
2
 
3
+ ## 1.0.47
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: 修复 pro-tag 引入错误
8
+
9
+ ## 1.0.46
10
+
11
+ ### Patch Changes
12
+
13
+ - feat:增加 icon 组件及修改对应的字体文件构建
14
+
3
15
  ## 1.0.45
4
16
 
5
17
  ### Patch Changes
@@ -0,0 +1,9 @@
1
+ import { withInstall as o } from "../utils/install.mjs";
2
+ import "./src/icon.vue.mjs";
3
+ import "./style/index.mjs";
4
+ import t from "./src/icon.vue2.mjs";
5
+ const a = o(t);
6
+ export {
7
+ a as KIcon,
8
+ a as default
9
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./icon.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,26 @@
1
+ import { defineComponent as l, computed as e, openBlock as a, createElementBlock as m, normalizeClass as i, normalizeStyle as p } from "vue";
2
+ import { useNamespace as u } from "../../../hooks/use-namespace/index.mjs";
3
+ import { iconProps as f } from "./types.mjs";
4
+ const x = /* @__PURE__ */ l({
5
+ __name: "icon",
6
+ props: f,
7
+ setup(n) {
8
+ const o = n, { b: c } = u("icon"), t = e(() => `icon-king-${o.name}`), r = e(() => ({
9
+ fontSize: `${o.size}px`,
10
+ color: o.color
11
+ })), s = e(() => [c(), t.value]);
12
+ return (_, z) => (a(), m(
13
+ "i",
14
+ {
15
+ class: i(s.value),
16
+ style: p(r.value)
17
+ },
18
+ null,
19
+ 6
20
+ /* CLASS, STYLE */
21
+ ));
22
+ }
23
+ });
24
+ export {
25
+ x as default
26
+ };
@@ -0,0 +1,17 @@
1
+ const e = {
2
+ name: {
3
+ type: String,
4
+ required: !0
5
+ },
6
+ size: {
7
+ type: Number,
8
+ default: 20
9
+ },
10
+ color: {
11
+ type: String,
12
+ default: "#333"
13
+ }
14
+ };
15
+ export {
16
+ e as iconProps
17
+ };
@@ -0,0 +1,2 @@
1
+ import "../../base/style/index.mjs";
2
+ import "@king-one/antdv/dist/theme-chalk/icon.css";
@@ -4,16 +4,18 @@ import { KProModal as f } from "./pro-modal/index.mjs";
4
4
  import { KProTitle as K } from "./pro-title/index.mjs";
5
5
  import { KScrollBar as l } from "./scroll-bar/index.mjs";
6
6
  import { KScaleVirtualList as i } from "./scale-virtual-list/index.mjs";
7
- import { KProTag as s } from "./pro-tag/index.mjs";
8
- import { KProPicker as n } from "./pro-picker/index.mjs";
7
+ import { KProTag as n } from "./pro-tag/index.mjs";
8
+ import { KProPicker as T } from "./pro-picker/index.mjs";
9
9
  import { KProArea as d } from "./pro-area/index.mjs";
10
+ import { KIcon as k } from "./icon/index.mjs";
10
11
  export {
11
12
  m as KCollapseTranstion,
12
13
  e as KForm,
14
+ k as KIcon,
13
15
  d as KProArea,
14
16
  f as KProModal,
15
- n as KProPicker,
16
- s as KProTag,
17
+ T as KProPicker,
18
+ n as KProTag,
17
19
  K as KProTitle,
18
20
  i as KScaleVirtualList,
19
21
  l as KScrollBar
@@ -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,28 +1,35 @@
1
- import { defineComponent as l, computed as a, openBlock as i, createElementBlock as p, normalizeClass as m, createElementVNode as c, normalizeStyle as u, toDisplayString as d, renderSlot as f } from "vue";
2
- import { useNamespace as z } from "../../../hooks/use-namespace/index.mjs";
3
- import { TitleProps as S } from "./types.mjs";
4
- const _ = /* @__PURE__ */ l({
1
+ import { defineComponent as s, computed as i, openBlock as a, createElementBlock as c, normalizeClass as m, createVNode as p, unref as u, createElementVNode as f, normalizeStyle as d, toDisplayString as z, renderSlot as S } from "vue";
2
+ import { useNamespace as y } from "../../../hooks/use-namespace/index.mjs";
3
+ import { KIcon as B } from "../../icon/index.mjs";
4
+ import { TitleProps as N } from "./types.mjs";
5
+ const C = /* @__PURE__ */ s({
5
6
  name: "ProTitle",
6
7
  __name: "ProTitle",
7
- props: S,
8
- setup(o) {
9
- const r = o, { b: t, m: n } = z("pro-title"), s = a(() => r.unBorder ? [t(), n("unborder")] : [t()]);
10
- return (e, y) => (i(), p(
8
+ props: N,
9
+ setup(r) {
10
+ const t = r, { b: o, m: n } = y("pro-title"), l = i(() => t.unBorder ? [o(), n("unborder")] : [o()]);
11
+ return (e, P) => (a(), c(
11
12
  "div",
12
13
  {
13
- class: m(s.value)
14
+ class: m(l.value)
14
15
  },
15
16
  [
16
- c(
17
+ p(u(B), {
18
+ name: "title-icon",
19
+ class: "icon",
20
+ size: e.size,
21
+ color: e.color
22
+ }, null, 8, ["size", "color"]),
23
+ f(
17
24
  "span",
18
25
  {
19
- style: u({ fontSize: `${e.size}px` })
26
+ style: d({ fontSize: `${e.size}px`, color: e.color })
20
27
  },
21
- d(e.title),
28
+ z(e.title),
22
29
  5
23
30
  /* TEXT, STYLE */
24
31
  ),
25
- f(e.$slots, "default")
32
+ S(e.$slots, "default")
26
33
  ],
27
34
  2
28
35
  /* CLASS */
@@ -30,5 +37,5 @@ const _ = /* @__PURE__ */ l({
30
37
  }
31
38
  });
32
39
  export {
33
- _ as default
40
+ C as default
34
41
  };
@@ -7,9 +7,13 @@ const e = {
7
7
  type: String,
8
8
  required: !0
9
9
  },
10
+ color: {
11
+ type: String,
12
+ default: "#0e74ff"
13
+ },
10
14
  size: {
11
15
  type: Number,
12
- default: 16
16
+ default: 20
13
17
  }
14
18
  };
15
19
  export {
package/dist/es/index.mjs CHANGED
@@ -2,14 +2,14 @@ import o from "./installer.mjs";
2
2
  import "./components/index.mjs";
3
3
  import "./hooks/index.mjs";
4
4
  import { formType as f } from "./components/form/component/form.mjs";
5
- import { KForm as x } from "./components/form/index.mjs";
5
+ import { KForm as P } from "./components/form/index.mjs";
6
6
  import { collapseProps as l } from "./components/collapse-transtion/src/types.mjs";
7
7
  import { KCollapseTranstion as i } from "./components/collapse-transtion/index.mjs";
8
8
  import { useProModal as u, useProModalInit as c } from "./components/pro-modal/hooks/useProModal.mjs";
9
- import { ProModalProps as d } from "./components/pro-modal/src/types.mjs";
9
+ import { ProModalProps as T } from "./components/pro-modal/src/types.mjs";
10
10
  import { KProModal as M } from "./components/pro-modal/index.mjs";
11
11
  import { TitleProps as A } from "./components/pro-title/src/types.mjs";
12
- import { KProTitle as k } from "./components/pro-title/index.mjs";
12
+ import { KProTitle as I } from "./components/pro-title/index.mjs";
13
13
  import { scrollbarProps as S } from "./components/scroll-bar/src/types.mjs";
14
14
  import { KScrollBar as y } from "./components/scroll-bar/index.mjs";
15
15
  import { KScaleVirtualList as C } from "./components/scale-virtual-list/index.mjs";
@@ -20,19 +20,21 @@ import { KProPicker as z } from "./components/pro-picker/index.mjs";
20
20
  import { ProAreaProps as E } from "./components/pro-area/src/types.mjs";
21
21
  import { useProArea as H } from "./components/pro-area/hooks/use-pro-area.mjs";
22
22
  import { KProArea as N } from "./components/pro-area/index.mjs";
23
- import { useProForm as Q, useProFormInit as R } from "./hooks/useProForm.mjs";
23
+ import { KIcon as Q } from "./components/icon/index.mjs";
24
+ import { useProForm as U, useProFormInit as W } from "./hooks/useProForm.mjs";
24
25
  export {
25
26
  i as KCollapseTranstion,
26
- x as KForm,
27
+ P as KForm,
28
+ Q as KIcon,
27
29
  N as KProArea,
28
30
  M as KProModal,
29
31
  z as KProPicker,
30
32
  j as KProTag,
31
- k as KProTitle,
33
+ I as KProTitle,
32
34
  C as KScaleVirtualList,
33
35
  y as KScrollBar,
34
36
  E as ProAreaProps,
35
- d as ProModalProps,
37
+ T as ProModalProps,
36
38
  v as ProPickerProps,
37
39
  A as TitleProps,
38
40
  l as collapseProps,
@@ -41,8 +43,8 @@ export {
41
43
  V as proTagProps,
42
44
  S as scrollbarProps,
43
45
  H as useProArea,
44
- Q as useProForm,
45
- R as useProFormInit,
46
+ U as useProForm,
47
+ W as useProFormInit,
46
48
  u as useProModal,
47
49
  c as useProModalInit
48
50
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../utils/install.js");require("./src/icon.vue.js");require("./style/index.js");const u=require("./src/icon.vue2.js"),e=t.withInstall(u.default);exports.KIcon=e;exports.default=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./icon.vue2.js");exports.default=e.default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../hooks/use-namespace/index.js"),l=require("./types.js"),i=e.defineComponent({__name:"icon",props:l.iconProps,setup(n){const o=n,{b:t}=u.useNamespace("icon"),c=e.computed(()=>`icon-king-${o.name}`),r=e.computed(()=>({fontSize:`${o.size}px`,color:o.color})),s=e.computed(()=>[t(),c.value]);return(a,p)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(s.value),style:e.normalizeStyle(r.value)},null,6))}});exports.default=i;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:{type:String,required:!0},size:{type:Number,default:20},color:{type:String,default:"#333"}};exports.iconProps=e;
@@ -0,0 +1 @@
1
+ "use strict";require("../../base/style/index.js");require("@king-one/antdv/dist/theme-chalk/icon.css");
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./form/index.js"),e=require("./collapse-transtion/index.js"),o=require("./pro-modal/index.js"),i=require("./pro-title/index.js"),n=require("./scroll-bar/index.js"),t=require("./scale-virtual-list/index.js"),l=require("./pro-tag/index.js"),a=require("./pro-picker/index.js"),K=require("./pro-area/index.js");exports.KForm=r.KForm;exports.KCollapseTranstion=e.KCollapseTranstion;exports.KProModal=o.KProModal;exports.KProTitle=i.KProTitle;exports.KScrollBar=n.KScrollBar;exports.KScaleVirtualList=t.KScaleVirtualList;exports.KProTag=l.KProTag;exports.KProPicker=a.KProPicker;exports.KProArea=K.KProArea;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./form/index.js"),e=require("./collapse-transtion/index.js"),o=require("./pro-modal/index.js"),i=require("./pro-title/index.js"),n=require("./scroll-bar/index.js"),t=require("./scale-virtual-list/index.js"),c=require("./pro-tag/index.js"),K=require("./pro-picker/index.js"),l=require("./pro-area/index.js"),a=require("./icon/index.js");exports.KForm=r.KForm;exports.KCollapseTranstion=e.KCollapseTranstion;exports.KProModal=o.KProModal;exports.KProTitle=i.KProTitle;exports.KScrollBar=n.KScrollBar;exports.KScaleVirtualList=t.KScaleVirtualList;exports.KProTag=c.KProTag;exports.KProPicker=K.KProPicker;exports.KProArea=l.KProArea;exports.KIcon=a.KIcon;
@@ -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
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../hooks/use-namespace/index.js"),u=require("./types.js"),a=e.defineComponent({name:"ProTitle",__name:"ProTitle",props:u.TitleProps,setup(o){const n=o,{b:r,m:s}=i.useNamespace("pro-title"),l=e.computed(()=>n.unBorder?[r(),s("unborder")]:[r()]);return(t,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l.value)},[e.createElementVNode("span",{style:e.normalizeStyle({fontSize:`${t.size}px`})},e.toDisplayString(t.title),5),e.renderSlot(t.$slots,"default")],2))}});exports.default=a;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../hooks/use-namespace/index.js"),c=require("../../icon/index.js"),u=require("./types.js"),a=e.defineComponent({name:"ProTitle",__name:"ProTitle",props:u.TitleProps,setup(t){const n=t,{b:r,m:l}=i.useNamespace("pro-title"),s=e.computed(()=>n.unBorder?[r(),l("unborder")]:[r()]);return(o,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(s.value)},[e.createVNode(e.unref(c.KIcon),{name:"title-icon",class:"icon",size:o.size,color:o.color},null,8,["size","color"]),e.createElementVNode("span",{style:e.normalizeStyle({fontSize:`${o.size}px`,color:o.color})},e.toDisplayString(o.title),5),e.renderSlot(o.$slots,"default")],2))}});exports.default=a;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={unBorder:{type:Boolean,default:!1},title:{type:String,required:!0},size:{type:Number,default:16}};exports.TitleProps=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={unBorder:{type:Boolean,default:!1},title:{type:String,required:!0},color:{type:String,default:"#0e74ff"},size:{type:Number,default:20}};exports.TitleProps=e;
package/dist/lib/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./installer.js");require("./components/index.js");require("./hooks/index.js");const s=require("./components/form/component/form.js"),i=require("./components/form/index.js"),t=require("./components/collapse-transtion/src/types.js"),P=require("./components/collapse-transtion/index.js"),r=require("./components/pro-modal/hooks/useProModal.js"),u=require("./components/pro-modal/src/types.js"),l=require("./components/pro-modal/index.js"),n=require("./components/pro-title/src/types.js"),a=require("./components/pro-title/index.js"),c=require("./components/scroll-bar/src/types.js"),p=require("./components/scroll-bar/index.js"),d=require("./components/scale-virtual-list/index.js"),q=require("./components/pro-tag/src/types.js"),K=require("./components/pro-tag/index.js"),$=require("./components/pro-picker/src/types.js"),T=require("./components/pro-picker/index.js"),m=require("./components/pro-area/src/types.js"),M=require("./components/pro-area/hooks/use-pro-area.js"),y=require("./components/pro-area/index.js"),e=require("./hooks/useProForm.js");exports.default=o.default;exports.formType=s.formType;exports.KForm=i.KForm;exports.collapseProps=t.collapseProps;exports.KCollapseTranstion=P.KCollapseTranstion;exports.useProModal=r.useProModal;exports.useProModalInit=r.useProModalInit;exports.ProModalProps=u.ProModalProps;exports.KProModal=l.KProModal;exports.TitleProps=n.TitleProps;exports.KProTitle=a.KProTitle;exports.scrollbarProps=c.scrollbarProps;exports.KScrollBar=p.KScrollBar;exports.KScaleVirtualList=d.KScaleVirtualList;exports.proTagProps=q.proTagProps;exports.KProTag=K.KProTag;exports.ProPickerProps=$.ProPickerProps;exports.KProPicker=T.KProPicker;exports.ProAreaProps=m.ProAreaProps;exports.useProArea=M.useProArea;exports.KProArea=y.KProArea;exports.useProForm=e.useProForm;exports.useProFormInit=e.useProFormInit;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./installer.js");require("./components/index.js");require("./hooks/index.js");const s=require("./components/form/component/form.js"),i=require("./components/form/index.js"),t=require("./components/collapse-transtion/src/types.js"),P=require("./components/collapse-transtion/index.js"),r=require("./components/pro-modal/hooks/useProModal.js"),u=require("./components/pro-modal/src/types.js"),n=require("./components/pro-modal/index.js"),l=require("./components/pro-title/src/types.js"),a=require("./components/pro-title/index.js"),c=require("./components/scroll-bar/src/types.js"),p=require("./components/scroll-bar/index.js"),d=require("./components/scale-virtual-list/index.js"),q=require("./components/pro-tag/src/types.js"),K=require("./components/pro-tag/index.js"),$=require("./components/pro-picker/src/types.js"),T=require("./components/pro-picker/index.js"),m=require("./components/pro-area/src/types.js"),M=require("./components/pro-area/hooks/use-pro-area.js"),x=require("./components/pro-area/index.js"),y=require("./components/icon/index.js"),e=require("./hooks/useProForm.js");exports.default=o.default;exports.formType=s.formType;exports.KForm=i.KForm;exports.collapseProps=t.collapseProps;exports.KCollapseTranstion=P.KCollapseTranstion;exports.useProModal=r.useProModal;exports.useProModalInit=r.useProModalInit;exports.ProModalProps=u.ProModalProps;exports.KProModal=n.KProModal;exports.TitleProps=l.TitleProps;exports.KProTitle=a.KProTitle;exports.scrollbarProps=c.scrollbarProps;exports.KScrollBar=p.KScrollBar;exports.KScaleVirtualList=d.KScaleVirtualList;exports.proTagProps=q.proTagProps;exports.KProTag=K.KProTag;exports.ProPickerProps=$.ProPickerProps;exports.KProPicker=T.KProPicker;exports.ProAreaProps=m.ProAreaProps;exports.useProArea=M.useProArea;exports.KProArea=x.KProArea;exports.KIcon=y.KIcon;exports.useProForm=e.useProForm;exports.useProFormInit=e.useProFormInit;
@@ -0,0 +1 @@
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;position:relative;padding-left:10px}.king-pro-title::before{content:"";position:absolute;width:3px;height:100%;background:#517cfc;left:0}.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%}
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"}
@@ -1 +1 @@
1
- .king-pro-title{border-bottom:1px solid #ccc;position:relative;padding-left:10px}.king-pro-title::before{content:"";position:absolute;width:3px;height:100%;background:#517cfc;left:0}.king-pro-title--unborder{border:none}
1
+ .king-pro-title{border-bottom:1px solid #ccc;font-weight:500}.king-pro-title .icon{margin-right:10px}.king-pro-title--unborder{border:none}
@@ -0,0 +1,33 @@
1
+ import { SFCWithInstall } from '../utils/install';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
3
+ export declare const KIcon: SFCWithInstall<DefineComponent<{
4
+ readonly name: {
5
+ readonly type: StringConstructor;
6
+ readonly required: true;
7
+ };
8
+ readonly size: {
9
+ readonly type: NumberConstructor;
10
+ readonly default: 20;
11
+ };
12
+ readonly color: {
13
+ readonly type: StringConstructor;
14
+ readonly default: "#333";
15
+ };
16
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
17
+ readonly name: {
18
+ readonly type: StringConstructor;
19
+ readonly required: true;
20
+ };
21
+ readonly size: {
22
+ readonly type: NumberConstructor;
23
+ readonly default: 20;
24
+ };
25
+ readonly color: {
26
+ readonly type: StringConstructor;
27
+ readonly default: "#333";
28
+ };
29
+ }>>, {
30
+ readonly size: number;
31
+ readonly color: string;
32
+ }, {}>>;
33
+ export default KIcon;
@@ -0,0 +1,32 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
+ declare const _default: DefineComponent<{
3
+ readonly name: {
4
+ readonly type: StringConstructor;
5
+ readonly required: true;
6
+ };
7
+ readonly size: {
8
+ readonly type: NumberConstructor;
9
+ readonly default: 20;
10
+ };
11
+ readonly color: {
12
+ readonly type: StringConstructor;
13
+ readonly default: "#333";
14
+ };
15
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
16
+ readonly name: {
17
+ readonly type: StringConstructor;
18
+ readonly required: true;
19
+ };
20
+ readonly size: {
21
+ readonly type: NumberConstructor;
22
+ readonly default: 20;
23
+ };
24
+ readonly color: {
25
+ readonly type: StringConstructor;
26
+ readonly default: "#333";
27
+ };
28
+ }>>, {
29
+ readonly size: number;
30
+ readonly color: string;
31
+ }, {}>;
32
+ export default _default;
@@ -0,0 +1,14 @@
1
+ export declare const iconProps: {
2
+ readonly name: {
3
+ readonly type: StringConstructor;
4
+ readonly required: true;
5
+ };
6
+ readonly size: {
7
+ readonly type: NumberConstructor;
8
+ readonly default: 20;
9
+ };
10
+ readonly color: {
11
+ readonly type: StringConstructor;
12
+ readonly default: "#333";
13
+ };
14
+ };
@@ -7,3 +7,4 @@ export * from './scale-virtual-list';
7
7
  export * from './pro-tag';
8
8
  export * from './pro-picker';
9
9
  export * from './pro-area';
10
+ export * from './icon';
@@ -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<{}>;
@@ -11,9 +11,13 @@ export declare const KProTitle: SFCWithInstall<{
11
11
  readonly type: StringConstructor;
12
12
  readonly required: true;
13
13
  };
14
+ readonly color: {
15
+ readonly type: StringConstructor;
16
+ readonly default: "#0e74ff";
17
+ };
14
18
  readonly size: {
15
19
  readonly type: NumberConstructor;
16
- readonly default: 16;
20
+ readonly default: 20;
17
21
  };
18
22
  }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
19
23
  readonly unBorder: {
@@ -24,12 +28,17 @@ export declare const KProTitle: SFCWithInstall<{
24
28
  readonly type: StringConstructor;
25
29
  readonly required: true;
26
30
  };
31
+ readonly color: {
32
+ readonly type: StringConstructor;
33
+ readonly default: "#0e74ff";
34
+ };
27
35
  readonly size: {
28
36
  readonly type: NumberConstructor;
29
- readonly default: 16;
37
+ readonly default: 20;
30
38
  };
31
39
  }>>, {
32
40
  readonly size: number;
41
+ readonly color: string;
33
42
  readonly unBorder: boolean;
34
43
  }, true, {}, {}, {
35
44
  P: {};
@@ -47,12 +56,17 @@ export declare const KProTitle: SFCWithInstall<{
47
56
  readonly type: StringConstructor;
48
57
  readonly required: true;
49
58
  };
59
+ readonly color: {
60
+ readonly type: StringConstructor;
61
+ readonly default: "#0e74ff";
62
+ };
50
63
  readonly size: {
51
64
  readonly type: NumberConstructor;
52
- readonly default: 16;
65
+ readonly default: 20;
53
66
  };
54
67
  }>>, {}, {}, {}, {}, {
55
68
  readonly size: number;
69
+ readonly color: string;
56
70
  readonly unBorder: boolean;
57
71
  }>;
58
72
  __isFragment?: never;
@@ -67,12 +81,17 @@ export declare const KProTitle: SFCWithInstall<{
67
81
  readonly type: StringConstructor;
68
82
  readonly required: true;
69
83
  };
84
+ readonly color: {
85
+ readonly type: StringConstructor;
86
+ readonly default: "#0e74ff";
87
+ };
70
88
  readonly size: {
71
89
  readonly type: NumberConstructor;
72
- readonly default: 16;
90
+ readonly default: 20;
73
91
  };
74
92
  }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
75
93
  readonly size: number;
94
+ readonly color: string;
76
95
  readonly unBorder: boolean;
77
96
  }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
78
97
  $slots: {
@@ -16,9 +16,13 @@ declare const __VLS_component: DefineComponent<{
16
16
  readonly type: StringConstructor;
17
17
  readonly required: true;
18
18
  };
19
+ readonly color: {
20
+ readonly type: StringConstructor;
21
+ readonly default: "#0e74ff";
22
+ };
19
23
  readonly size: {
20
24
  readonly type: NumberConstructor;
21
- readonly default: 16;
25
+ readonly default: 20;
22
26
  };
23
27
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
24
28
  readonly unBorder: {
@@ -29,12 +33,17 @@ declare const __VLS_component: DefineComponent<{
29
33
  readonly type: StringConstructor;
30
34
  readonly required: true;
31
35
  };
36
+ readonly color: {
37
+ readonly type: StringConstructor;
38
+ readonly default: "#0e74ff";
39
+ };
32
40
  readonly size: {
33
41
  readonly type: NumberConstructor;
34
- readonly default: 16;
42
+ readonly default: 20;
35
43
  };
36
44
  }>>, {
37
45
  readonly size: number;
46
+ readonly color: string;
38
47
  readonly unBorder: boolean;
39
48
  }, {}>;
40
49
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -8,9 +8,13 @@ export declare const TitleProps: {
8
8
  readonly type: StringConstructor;
9
9
  readonly required: true;
10
10
  };
11
+ readonly color: {
12
+ readonly type: StringConstructor;
13
+ readonly default: "#0e74ff";
14
+ };
11
15
  readonly size: {
12
16
  readonly type: NumberConstructor;
13
- readonly default: 16;
17
+ readonly default: 20;
14
18
  };
15
19
  };
16
20
  export type TitlePropsTypes = ExtractPropTypes<typeof TitleProps>;
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.45",
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",