@king-one/antdv 1.0.39 → 1.0.41

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,17 @@
1
1
  # @king-one/antdv
2
2
 
3
+ ## 1.0.41
4
+
5
+ ### Patch Changes
6
+
7
+ - perf:优化部分功能
8
+
9
+ ## 1.0.40
10
+
11
+ ### Patch Changes
12
+
13
+ - fix:修复 por-area 组件。选择省市区时清空下一级的数据
14
+
3
15
  ## 1.0.39
4
16
 
5
17
  ### Patch Changes
@@ -1,80 +1,88 @@
1
- import { defineComponent as b, mergeModels as B, useModel as F, computed as u, openBlock as c, createBlock as p, unref as i, withCtx as m, createElementBlock as P, Fragment as w, renderList as y, createVNode as A, normalizeClass as I } from "vue";
1
+ import { defineComponent as B, mergeModels as F, useModel as P, computed as u, openBlock as i, createBlock as m, unref as d, withCtx as f, createElementBlock as w, Fragment as y, renderList as A, createVNode as E, normalizeClass as I } from "vue";
2
2
  import { Form as M, Row as N, Col as k, Select as U } from "ant-design-vue";
3
3
  import { useNamespace as j } from "../../../hooks/use-namespace/index.mjs";
4
4
  import { ProAreaProps as q } from "./types.mjs";
5
- const L = /* @__PURE__ */ b({
5
+ const R = /* @__PURE__ */ B({
6
6
  name: "ProArea",
7
7
  __name: "ProArea",
8
- props: /* @__PURE__ */ B(q, {
8
+ props: /* @__PURE__ */ F(q, {
9
9
  modelValue: {
10
10
  required: !0
11
11
  },
12
12
  modelModifiers: {}
13
13
  }),
14
14
  emits: ["update:modelValue"],
15
- setup(d) {
16
- const n = d;
15
+ setup(p) {
16
+ const n = p;
17
17
  M.useInjectFormItemContext();
18
- const a = F(d, "modelValue"), { b: f } = j("pro-area-select"), v = u(() => (e) => `请选择${e === 1 ? "请选择省份" : e === 2 ? "请选择城市" : "请选择区县"}`), h = u(() => (e) => n.options.length > 0 ? g(e) : []);
19
- function g(e) {
18
+ const a = P(p, "modelValue"), { b: v } = j("pro-area-select"), h = u(() => (e) => `请选择${e === 1 ? "请选择省份" : e === 2 ? "请选择城市" : "请选择区县"}`), g = u(() => (e) => n.options.length > 0 ? C(e) : []);
19
+ function C(e) {
20
20
  var t;
21
21
  if (e === 1)
22
- return n.options.map((r) => ({
23
- value: o(r, "id"),
24
- label: o(r, "name")
22
+ return n.options.map((l) => ({
23
+ value: r(l, "id"),
24
+ label: r(l, "name")
25
25
  }));
26
26
  if (e === 2) {
27
- const r = a.value.province;
28
- return r ? s(n.options, r).map((l) => ({
29
- value: o(l, "id"),
30
- label: o(l, "name")
27
+ const l = a.value.province;
28
+ return l ? s(n.options, l).map((o) => ({
29
+ value: r(o, "id"),
30
+ label: r(o, "name")
31
31
  })) : [];
32
32
  } else {
33
- const r = (t = a.value) == null ? void 0 : t.city;
34
- return r ? s(n.options, r).map((l) => ({
35
- value: o(l, "id"),
36
- label: o(l, "name")
33
+ const l = (t = a.value) == null ? void 0 : t.city;
34
+ return l ? s(n.options, l).map((o) => ({
35
+ value: r(o, "id"),
36
+ label: r(o, "name")
37
37
  })) : [];
38
38
  }
39
39
  }
40
40
  function s(e, t) {
41
- for (const r of e) {
42
- if (o(r, "id") === t)
43
- return o(r, "children") || [];
44
- if (o(r, "children")) {
45
- const l = s(o(r, "children"), t);
46
- if (l)
47
- return l;
41
+ for (const l of e) {
42
+ if (r(l, "id") === t)
43
+ return r(l, "children") || [];
44
+ if (r(l, "children")) {
45
+ const o = s(r(l, "children"), t);
46
+ if (o)
47
+ return o;
48
48
  }
49
49
  }
50
50
  }
51
- function o(e, t) {
51
+ function r(e, t) {
52
52
  return e && t ? e[(n == null ? void 0 : n.fieldNames[t]) || t] : void 0;
53
53
  }
54
- const C = u(() => {
54
+ const c = u(() => {
55
55
  let e = n.level;
56
56
  const t = [];
57
57
  for (; e--; )
58
58
  t.push(e === 2 ? "province" : e === 1 ? "city" : "county");
59
59
  return t;
60
- }), V = u(() => [f()]);
61
- return (e, t) => (c(), p(i(N), { gutter: 10 }, {
62
- default: m(() => [
63
- (c(!0), P(
64
- w,
60
+ }), V = u(() => [v()]);
61
+ function _(e) {
62
+ e === 1 ? c.value.slice(e).forEach((l) => {
63
+ a.value[l] = void 0;
64
+ }) : e === 2 && c.value.slice(e).forEach((l) => {
65
+ a.value[l] = void 0;
66
+ });
67
+ }
68
+ return (e, t) => (i(), m(d(N), { gutter: 10 }, {
69
+ default: f(() => [
70
+ (i(!0), w(
71
+ y,
65
72
  null,
66
- y(C.value, (r, l) => (c(), p(i(k), {
67
- key: r,
73
+ A(c.value, (l, o) => (i(), m(d(k), {
74
+ key: l,
68
75
  span: 24 / e.level
69
76
  }, {
70
- default: m(() => [
71
- A(i(U), {
72
- value: a.value[r],
73
- "onUpdate:value": (_) => a.value[r] = _,
74
- placeholder: v.value(l + 1),
77
+ default: f(() => [
78
+ E(d(U), {
79
+ value: a.value[l],
80
+ "onUpdate:value": (b) => a.value[l] = b,
81
+ placeholder: h.value(o + 1),
75
82
  class: I(V.value),
76
- options: h.value(l + 1)
77
- }, null, 8, ["value", "onUpdate:value", "placeholder", "class", "options"])
83
+ options: g.value(o + 1),
84
+ onChange: () => _(o + 1)
85
+ }, null, 8, ["value", "onUpdate:value", "placeholder", "class", "options", "onChange"])
78
86
  ]),
79
87
  _: 2
80
88
  /* DYNAMIC */
@@ -89,5 +97,5 @@ const L = /* @__PURE__ */ b({
89
97
  }
90
98
  });
91
99
  export {
92
- L as default
100
+ R as default
93
101
  };
@@ -1,65 +1,70 @@
1
- import { defineComponent as s, mergeModels as d, useModel as m, reactive as f, watch as u, openBlock as h, createBlock as v, unref as l, createSlots as y, withCtx as b, createVNode as g } from "vue";
2
- import { debounce as P } from "lodash-es";
3
- import { Select as k, Spin as S } from "ant-design-vue";
4
- import { proPickerApi as r } from "../apis/pro-picker.api.mjs";
5
- import { ProPickerProps as w } from "./types.mjs";
6
- const z = /* @__PURE__ */ s({
1
+ import { defineComponent as d, mergeModels as m, useModel as f, reactive as u, watch as h, openBlock as y, createBlock as b, unref as i, createSlots as v, withCtx as g, createVNode as P } from "vue";
2
+ import { debounce as k } from "lodash-es";
3
+ import { Select as S, Spin as w } from "ant-design-vue";
4
+ import { proPickerApi as l } from "../apis/pro-picker.api.mjs";
5
+ import { ProPickerProps as V } from "./types.mjs";
6
+ const x = /* @__PURE__ */ d({
7
7
  name: "ProPicker",
8
8
  __name: "ProPicker",
9
- props: /* @__PURE__ */ d(w, {
9
+ props: /* @__PURE__ */ m(V, {
10
10
  modelValue: {},
11
11
  modelModifiers: {}
12
12
  }),
13
13
  emits: ["update:modelValue"],
14
- setup(i) {
15
- const p = i, n = m(i, "modelValue"), o = f({
14
+ setup(p) {
15
+ const s = p, r = f(p, "modelValue"), a = u({
16
16
  data: [],
17
17
  fetching: !1
18
18
  });
19
- u(n, (e) => {
20
- (typeof e == "string" || typeof e == "number") && r.company({
19
+ h(r, (e) => {
20
+ !e || a.data.some((o) => o.value === e) || (typeof e == "string" || typeof e == "number" ? l.company({
21
21
  params: { value: e }
22
- }).then((t) => {
23
- o.data = t.data.options.map((a) => ({
24
- label: a.label,
25
- value: a.value
26
- })), o.fetching = !1;
27
- });
28
- }, {
29
- once: !0
22
+ }).then((o) => {
23
+ a.data = o.data.options.map((n) => ({
24
+ label: n.label,
25
+ value: n.value
26
+ })), a.fetching = !1;
27
+ }) : Array.isArray(e) && l.company({
28
+ params: { value: e.join(",") }
29
+ }).then((o) => {
30
+ a.data = o.data.options.map((n) => ({
31
+ label: n.label,
32
+ value: n.value
33
+ })), a.fetching = !1;
34
+ }));
30
35
  });
31
- const c = P((e) => {
32
- e && (o.fetching = !0, p.type === "company" ? r.company({
36
+ const c = k((e) => {
37
+ e && (a.fetching = !0, s.type === "company" ? l.company({
33
38
  params: { label: e }
34
39
  }).then((t) => {
35
- o.data = t.data.options.map((a) => ({
36
- label: a.label,
37
- value: a.value
38
- })), o.fetching = !1;
39
- }) : r.user({
40
+ a.data = t.data.options.map((o) => ({
41
+ label: o.label,
42
+ value: o.value
43
+ })), a.fetching = !1;
44
+ }) : l.user({
40
45
  params: { label: e }
41
46
  }).then(() => {
42
47
  }));
43
- }, p.delay);
44
- return (e, t) => (h(), v(l(k), {
45
- value: n.value,
46
- "onUpdate:value": t[0] || (t[0] = (a) => n.value = a),
48
+ }, s.delay);
49
+ return (e, t) => (y(), b(i(S), {
50
+ value: r.value,
51
+ "onUpdate:value": t[0] || (t[0] = (o) => r.value = o),
47
52
  mode: e.mode,
48
53
  "show-search": "",
49
54
  placeholder: e.placeholder,
50
55
  style: { width: "100%" },
51
56
  "filter-option": !1,
52
- "not-found-content": o.fetching ? void 0 : null,
53
- options: o.data,
54
- onSearch: l(c)
55
- }, y({
57
+ "not-found-content": a.fetching ? void 0 : null,
58
+ options: a.data,
59
+ onSearch: i(c)
60
+ }, v({
56
61
  _: 2
57
62
  /* DYNAMIC */
58
63
  }, [
59
- o.fetching ? {
64
+ a.fetching ? {
60
65
  name: "notFoundContent",
61
- fn: b(() => [
62
- g(l(S), { size: "small" })
66
+ fn: g(() => [
67
+ P(i(w), { size: "small" })
63
68
  ]),
64
69
  key: "0"
65
70
  } : void 0
@@ -67,5 +72,5 @@ const z = /* @__PURE__ */ s({
67
72
  }
68
73
  });
69
74
  export {
70
- z as default
75
+ x as default
71
76
  };
@@ -10,9 +10,6 @@ const e = {
10
10
  mode: {
11
11
  type: String
12
12
  },
13
- isInit: {
14
- type: Boolean
15
- },
16
13
  delay: {
17
14
  type: Number,
18
15
  default: 200
@@ -1,26 +1,28 @@
1
- import { defineComponent as s, computed as a, openBlock as p, createElementBlock as m, normalizeClass as i, createElementVNode as c, toDisplayString as u, renderSlot as d } from "vue";
2
- import { useNamespace as f } from "../../../hooks/use-namespace/index.mjs";
3
- import { TitleProps as _ } from "./types.mjs";
4
- const k = /* @__PURE__ */ s({
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({
5
5
  name: "ProTitle",
6
6
  __name: "ProTitle",
7
- props: _,
8
- setup(t) {
9
- const o = t, { b: e, m: n } = f("pro-title"), l = a(() => o.unBorder ? [e(), n("unborder")] : [e()]);
10
- return (r, B) => (p(), m(
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(
11
11
  "div",
12
12
  {
13
- class: i(l.value)
13
+ class: m(s.value)
14
14
  },
15
15
  [
16
16
  c(
17
17
  "span",
18
- null,
19
- u(r.title),
20
- 1
21
- /* TEXT */
18
+ {
19
+ style: u({ fontSize: `${e.size}px` })
20
+ },
21
+ d(e.title),
22
+ 5
23
+ /* TEXT, STYLE */
22
24
  ),
23
- d(r.$slots, "default")
25
+ f(e.$slots, "default")
24
26
  ],
25
27
  2
26
28
  /* CLASS */
@@ -28,5 +30,5 @@ const k = /* @__PURE__ */ s({
28
30
  }
29
31
  });
30
32
  export {
31
- k as default
33
+ _ as default
32
34
  };
@@ -8,8 +8,8 @@ const e = {
8
8
  required: !0
9
9
  },
10
10
  size: {
11
- type: String,
12
- default: "14px"
11
+ type: Number,
12
+ default: 16
13
13
  }
14
14
  };
15
15
  export {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("ant-design-vue"),B=require("../../../hooks/use-namespace/index.js"),C=require("./types.js"),_=e.defineComponent({name:"ProArea",__name:"ProArea",props:e.mergeModels(C.ProAreaProps,{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(i){const u=i;c.Form.useInjectFormItemContext();const a=e.useModel(i,"modelValue"),{b:d}=B.useNamespace("pro-area-select"),p=e.computed(()=>t=>`请选择${t===1?"请选择省份":t===2?"请选择城市":"请选择区县"}`),m=e.computed(()=>t=>u.options.length>0?v(t):[]);function v(t){var n;if(t===1)return u.options.map(r=>({value:o(r,"id"),label:o(r,"name")}));if(t===2){const r=a.value.province;return r?s(u.options,r).map(l=>({value:o(l,"id"),label:o(l,"name")})):[]}else{const r=(n=a.value)==null?void 0:n.city;return r?s(u.options,r).map(l=>({value:o(l,"id"),label:o(l,"name")})):[]}}function s(t,n){for(const r of t){if(o(r,"id")===n)return o(r,"children")||[];if(o(r,"children")){const l=s(o(r,"children"),n);if(l)return l}}}function o(t,n){return t&&n?t[(u==null?void 0:u.fieldNames[n])||n]:void 0}const f=e.computed(()=>{let t=u.level;const n=[];for(;t--;)n.push(t===2?"province":t===1?"city":"county");return n}),h=e.computed(()=>[d()]);return(t,n)=>(e.openBlock(),e.createBlock(e.unref(c.Row),{gutter:10},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(r,l)=>(e.openBlock(),e.createBlock(e.unref(c.Col),{key:r,span:24/t.level},{default:e.withCtx(()=>[e.createVNode(e.unref(c.Select),{value:a.value[r],"onUpdate:value":g=>a.value[r]=g,placeholder:p.value(l+1),class:e.normalizeClass(h.value),options:m.value(l+1)},null,8,["value","onUpdate:value","placeholder","class","options"])]),_:2},1032,["span"]))),128))]),_:1}))}});exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),s=require("ant-design-vue"),B=require("../../../hooks/use-namespace/index.js"),_=require("./types.js"),b=t.defineComponent({name:"ProArea",__name:"ProArea",props:t.mergeModels(_.ProAreaProps,{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(d){const u=d;s.Form.useInjectFormItemContext();const a=t.useModel(d,"modelValue"),{b:p}=B.useNamespace("pro-area-select"),v=t.computed(()=>e=>`请选择${e===1?"请选择省份":e===2?"请选择城市":"请选择区县"}`),f=t.computed(()=>e=>u.options.length>0?m(e):[]);function m(e){var o;if(e===1)return u.options.map(l=>({value:r(l,"id"),label:r(l,"name")}));if(e===2){const l=a.value.province;return l?c(u.options,l).map(n=>({value:r(n,"id"),label:r(n,"name")})):[]}else{const l=(o=a.value)==null?void 0:o.city;return l?c(u.options,l).map(n=>({value:r(n,"id"),label:r(n,"name")})):[]}}function c(e,o){for(const l of e){if(r(l,"id")===o)return r(l,"children")||[];if(r(l,"children")){const n=c(r(l,"children"),o);if(n)return n}}}function r(e,o){return e&&o?e[(u==null?void 0:u.fieldNames[o])||o]:void 0}const i=t.computed(()=>{let e=u.level;const o=[];for(;e--;)o.push(e===2?"province":e===1?"city":"county");return o}),h=t.computed(()=>[p()]);function g(e){e===1?i.value.slice(e).forEach(l=>{a.value[l]=void 0}):e===2&&i.value.slice(e).forEach(l=>{a.value[l]=void 0})}return(e,o)=>(t.openBlock(),t.createBlock(t.unref(s.Row),{gutter:10},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(l,n)=>(t.openBlock(),t.createBlock(t.unref(s.Col),{key:l,span:24/e.level},{default:t.withCtx(()=>[t.createVNode(t.unref(s.Select),{value:a.value[l],"onUpdate:value":C=>a.value[l]=C,placeholder:v.value(n+1),class:t.normalizeClass(h.value),options:f.value(n+1),onChange:()=>g(n+1)},null,8,["value","onUpdate:value","placeholder","class","options","onChange"])]),_:2},1032,["span"]))),128))]),_:1}))}});exports.default=b;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("lodash-es"),c=require("ant-design-vue"),l=require("../apis/pro-picker.api.js"),d=require("./types.js"),f=e.defineComponent({name:"ProPicker",__name:"ProPicker",props:e.mergeModels(d.ProPickerProps,{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(i){const s=i,r=e.useModel(i,"modelValue"),t=e.reactive({data:[],fetching:!1});e.watch(r,o=>{(typeof o=="string"||typeof o=="number")&&l.proPickerApi.company({params:{value:o}}).then(n=>{t.data=n.data.options.map(a=>({label:a.label,value:a.value})),t.fetching=!1})},{once:!0});const u=p.debounce(o=>{o&&(t.fetching=!0,s.type==="company"?l.proPickerApi.company({params:{label:o}}).then(n=>{t.data=n.data.options.map(a=>({label:a.label,value:a.value})),t.fetching=!1}):l.proPickerApi.user({params:{label:o}}).then(()=>{}))},s.delay);return(o,n)=>(e.openBlock(),e.createBlock(e.unref(c.Select),{value:r.value,"onUpdate:value":n[0]||(n[0]=a=>r.value=a),mode:o.mode,"show-search":"",placeholder:o.placeholder,style:{width:"100%"},"filter-option":!1,"not-found-content":t.fetching?void 0:null,options:t.data,onSearch:e.unref(u)},e.createSlots({_:2},[t.fetching?{name:"notFoundContent",fn:e.withCtx(()=>[e.createVNode(e.unref(c.Spin),{size:"small"})]),key:"0"}:void 0]),1032,["value","mode","placeholder","not-found-content","options","onSearch"]))}});exports.default=f;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),d=require("lodash-es"),p=require("ant-design-vue"),l=require("../apis/pro-picker.api.js"),f=require("./types.js"),m=a.defineComponent({name:"ProPicker",__name:"ProPicker",props:a.mergeModels(f.ProPickerProps,{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(s){const c=s,i=a.useModel(s,"modelValue"),o=a.reactive({data:[],fetching:!1});a.watch(i,e=>{!e||o.data.some(t=>t.value===e)||(typeof e=="string"||typeof e=="number"?l.proPickerApi.company({params:{value:e}}).then(t=>{o.data=t.data.options.map(r=>({label:r.label,value:r.value})),o.fetching=!1}):Array.isArray(e)&&l.proPickerApi.company({params:{value:e.join(",")}}).then(t=>{o.data=t.data.options.map(r=>({label:r.label,value:r.value})),o.fetching=!1}))});const u=d.debounce(e=>{e&&(o.fetching=!0,c.type==="company"?l.proPickerApi.company({params:{label:e}}).then(n=>{o.data=n.data.options.map(t=>({label:t.label,value:t.value})),o.fetching=!1}):l.proPickerApi.user({params:{label:e}}).then(()=>{}))},c.delay);return(e,n)=>(a.openBlock(),a.createBlock(a.unref(p.Select),{value:i.value,"onUpdate:value":n[0]||(n[0]=t=>i.value=t),mode:e.mode,"show-search":"",placeholder:e.placeholder,style:{width:"100%"},"filter-option":!1,"not-found-content":o.fetching?void 0:null,options:o.data,onSearch:a.unref(u)},a.createSlots({_:2},[o.fetching?{name:"notFoundContent",fn:a.withCtx(()=>[a.createVNode(a.unref(p.Spin),{size:"small"})]),key:"0"}:void 0]),1032,["value","mode","placeholder","not-found-content","options","onSearch"]))}});exports.default=m;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={type:{type:String,default:"company"},placeholder:{type:String,default:"请选择"},mode:{type:String},isInit:{type:Boolean},delay:{type:Number,default:200}};exports.ProPickerProps=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={type:{type:String,default:"company"},placeholder:{type:String,default:"请选择"},mode:{type:String},delay:{type:Number,default:200}};exports.ProPickerProps=e;
@@ -1 +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"),i=require("./types.js"),a=e.defineComponent({name:"ProTitle",__name:"ProTitle",props:i.TitleProps,setup(o){const n=o,{b:t,m:s}=u.useNamespace("pro-title"),l=e.computed(()=>n.unBorder?[t(),s("unborder")]:[t()]);return(r,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l.value)},[e.createElementVNode("span",null,e.toDisplayString(r.title),1),e.renderSlot(r.$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"),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 +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:String,default:"14px"}};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},size:{type:Number,default:16}};exports.TitleProps=e;
@@ -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:16px;background:#517cfc;left:0;top:3px}.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;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 +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:16px;background:#517cfc;left:0;top:3px}.king-pro-title--unborder{border:none}
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}
@@ -14,9 +14,6 @@ export declare const KProPicker: SFCWithInstall<DefineComponent<{
14
14
  mode: {
15
15
  readonly type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
16
16
  };
17
- isInit: {
18
- readonly type: BooleanConstructor;
19
- };
20
17
  delay: {
21
18
  readonly type: NumberConstructor;
22
19
  readonly default: 200;
@@ -38,9 +35,6 @@ export declare const KProPicker: SFCWithInstall<DefineComponent<{
38
35
  mode: {
39
36
  readonly type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
40
37
  };
41
- isInit: {
42
- readonly type: BooleanConstructor;
43
- };
44
38
  delay: {
45
39
  readonly type: NumberConstructor;
46
40
  readonly default: 200;
@@ -53,7 +47,6 @@ export declare const KProPicker: SFCWithInstall<DefineComponent<{
53
47
  }, {
54
48
  type: "company" | "user";
55
49
  placeholder: string;
56
- isInit: boolean;
57
50
  delay: number;
58
51
  }, {}>>;
59
52
  export default KProPicker;
@@ -12,9 +12,6 @@ declare const _default: DefineComponent<{
12
12
  mode: {
13
13
  readonly type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
14
14
  };
15
- isInit: {
16
- readonly type: BooleanConstructor;
17
- };
18
15
  delay: {
19
16
  readonly type: NumberConstructor;
20
17
  readonly default: 200;
@@ -36,9 +33,6 @@ declare const _default: DefineComponent<{
36
33
  mode: {
37
34
  readonly type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
38
35
  };
39
- isInit: {
40
- readonly type: BooleanConstructor;
41
- };
42
36
  delay: {
43
37
  readonly type: NumberConstructor;
44
38
  readonly default: 200;
@@ -51,7 +45,6 @@ declare const _default: DefineComponent<{
51
45
  }, {
52
46
  type: "company" | "user";
53
47
  placeholder: string;
54
- isInit: boolean;
55
48
  delay: number;
56
49
  }, {}>;
57
50
  export default _default;
@@ -13,9 +13,6 @@ export declare const ProPickerProps: {
13
13
  readonly mode: {
14
14
  readonly type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
15
15
  };
16
- readonly isInit: {
17
- readonly type: BooleanConstructor;
18
- };
19
16
  readonly delay: {
20
17
  readonly type: NumberConstructor;
21
18
  readonly default: 200;
@@ -12,8 +12,8 @@ export declare const KProTitle: SFCWithInstall<{
12
12
  readonly required: true;
13
13
  };
14
14
  readonly size: {
15
- readonly type: StringConstructor;
16
- readonly default: "14px";
15
+ readonly type: NumberConstructor;
16
+ readonly default: 16;
17
17
  };
18
18
  }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
19
19
  readonly unBorder: {
@@ -25,11 +25,11 @@ export declare const KProTitle: SFCWithInstall<{
25
25
  readonly required: true;
26
26
  };
27
27
  readonly size: {
28
- readonly type: StringConstructor;
29
- readonly default: "14px";
28
+ readonly type: NumberConstructor;
29
+ readonly default: 16;
30
30
  };
31
31
  }>>, {
32
- readonly size: string;
32
+ readonly size: number;
33
33
  readonly unBorder: boolean;
34
34
  }, true, {}, {}, {
35
35
  P: {};
@@ -48,11 +48,11 @@ export declare const KProTitle: SFCWithInstall<{
48
48
  readonly required: true;
49
49
  };
50
50
  readonly size: {
51
- readonly type: StringConstructor;
52
- readonly default: "14px";
51
+ readonly type: NumberConstructor;
52
+ readonly default: 16;
53
53
  };
54
54
  }>>, {}, {}, {}, {}, {
55
- readonly size: string;
55
+ readonly size: number;
56
56
  readonly unBorder: boolean;
57
57
  }>;
58
58
  __isFragment?: never;
@@ -68,11 +68,11 @@ export declare const KProTitle: SFCWithInstall<{
68
68
  readonly required: true;
69
69
  };
70
70
  readonly size: {
71
- readonly type: StringConstructor;
72
- readonly default: "14px";
71
+ readonly type: NumberConstructor;
72
+ readonly default: 16;
73
73
  };
74
74
  }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
75
- readonly size: string;
75
+ readonly size: number;
76
76
  readonly unBorder: boolean;
77
77
  }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
78
78
  $slots: {
@@ -17,8 +17,8 @@ declare const __VLS_component: DefineComponent<{
17
17
  readonly required: true;
18
18
  };
19
19
  readonly size: {
20
- readonly type: StringConstructor;
21
- readonly default: "14px";
20
+ readonly type: NumberConstructor;
21
+ readonly default: 16;
22
22
  };
23
23
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
24
24
  readonly unBorder: {
@@ -30,11 +30,11 @@ declare const __VLS_component: DefineComponent<{
30
30
  readonly required: true;
31
31
  };
32
32
  readonly size: {
33
- readonly type: StringConstructor;
34
- readonly default: "14px";
33
+ readonly type: NumberConstructor;
34
+ readonly default: 16;
35
35
  };
36
36
  }>>, {
37
- readonly size: string;
37
+ readonly size: number;
38
38
  readonly unBorder: boolean;
39
39
  }, {}>;
40
40
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -9,8 +9,8 @@ export declare const TitleProps: {
9
9
  readonly required: true;
10
10
  };
11
11
  readonly size: {
12
- readonly type: StringConstructor;
13
- readonly default: "14px";
12
+ readonly type: NumberConstructor;
13
+ readonly default: 16;
14
14
  };
15
15
  };
16
16
  export type TitlePropsTypes = ExtractPropTypes<typeof TitleProps>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@king-one/antdv",
3
3
  "type": "module",
4
- "version": "1.0.39",
4
+ "version": "1.0.41",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "ISC",