@king-one/antdv 1.0.63 → 1.0.65

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.65
4
+
5
+ ### Patch Changes
6
+
7
+ - fix:修复 ProPicker
8
+
9
+ ## 1.0.64
10
+
11
+ ### Patch Changes
12
+
13
+ - feat:ProPicker 组件增加 flowApplication 类型
14
+
3
15
  ## 1.0.63
4
16
 
5
17
  ### Patch Changes
@@ -1,6 +1,8 @@
1
1
  const o = {
2
2
  company: (t) => globalThis.$http.get("/security/company/options", t),
3
- user: (t) => globalThis.$http.get("/security/user/options", t)
3
+ flowApplication: (t) => globalThis.$http.get("/flow/application/options", t),
4
+ user: (t) => globalThis.$http.get("/security/user/options", t),
5
+ getOps: (t) => globalThis.$http.get(t.url, t)
4
6
  };
5
7
  export {
6
8
  o as proPickerApi
@@ -1,10 +1,11 @@
1
1
  import { withInstall as r } from "../utils/install.mjs";
2
2
  import "./src/ProPicker.vue.mjs";
3
- import { ProPickerProps as s } from "./src/types.mjs";
3
+ import { PickerApiEnum as c, ProPickerProps as f } from "./src/types.mjs";
4
4
  import o from "./src/ProPicker.vue2.mjs";
5
5
  const p = r(o);
6
6
  export {
7
7
  p as KProPicker,
8
- s as ProPickerProps,
8
+ c as PickerApiEnum,
9
+ f as ProPickerProps,
9
10
  p as default
10
11
  };
@@ -1,60 +1,69 @@
1
- import { defineComponent as m, mergeModels as c, 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__ */ m({
1
+ import { defineComponent as u, mergeModels as f, useModel as h, reactive as v, watch as g, openBlock as b, createBlock as y, unref as i, createSlots as P, withCtx as k, createVNode as S } from "vue";
2
+ import { debounce as w } from "lodash-es";
3
+ import { Select as A, Spin as O } from "ant-design-vue";
4
+ import { proPickerApi as r } from "../apis/pro-picker.api.mjs";
5
+ import { ProPickerProps as V, PickerApiEnum as c } from "./types.mjs";
6
+ const z = /* @__PURE__ */ u({
7
7
  name: "ProPicker",
8
8
  __name: "ProPicker",
9
- props: /* @__PURE__ */ c(V, {
9
+ props: /* @__PURE__ */ f(V, {
10
10
  modelValue: {},
11
11
  modelModifiers: {}
12
12
  }),
13
13
  emits: ["update:modelValue"],
14
- setup(p) {
15
- const s = p, r = f(p, "modelValue"), a = u({
14
+ setup(d) {
15
+ const p = d, s = h(d, "modelValue"), a = v({
16
16
  data: [],
17
17
  fetching: !1
18
18
  });
19
- h(
20
- r,
19
+ g(
20
+ s,
21
21
  (e) => {
22
- !e || a.data.some((o) => o.value === e) || (typeof e == "string" || typeof e == "number" ? l.company({
22
+ if (!e || a.data.some((t) => t.value === e))
23
+ return;
24
+ const l = c[p.type];
25
+ r.getOps({ url: l, params: { value: e } }).then((t) => {
26
+ a.data = t.data.options.map((o) => ({
27
+ label: o.label,
28
+ value: o.value
29
+ }));
30
+ }), typeof e == "string" || typeof e == "number" ? r.getOps({
31
+ url: l,
23
32
  params: { value: e }
24
- }).then((o) => {
25
- a.data = o.data.options.map((n) => ({
26
- label: n.label,
27
- value: n.value
33
+ }).then((t) => {
34
+ a.data = t.data.options.map((o) => ({
35
+ label: o.label,
36
+ value: o.value
28
37
  }));
29
- }) : Array.isArray(e) && l.company({
38
+ }) : Array.isArray(e) && r.getOps({
39
+ url: l,
30
40
  params: { value: e.join(",") }
31
- }).then((o) => {
32
- a.data = o.data.options.map((n) => ({
33
- label: n.label,
34
- value: n.value
41
+ }).then((t) => {
42
+ a.data = t.data.options.map((o) => ({
43
+ label: o.label,
44
+ value: o.value
35
45
  })), a.fetching = !1;
36
- }));
46
+ });
37
47
  },
38
48
  {
39
49
  immediate: !0
40
50
  }
41
51
  );
42
- const d = k((e) => {
43
- e && (a.fetching = !0, s.type === "company" ? l.company({
44
- params: { label: e }
45
- }).then((t) => {
46
- a.data = t.data.options.map((o) => ({
47
- label: o.label,
48
- value: o.value
49
- })), a.fetching = !1;
50
- }) : l.user({
51
- params: { label: e }
52
- }).then(() => {
53
- }));
54
- }, s.delay);
55
- return (e, t) => (y(), b(i(S), {
56
- value: r.value,
57
- "onUpdate:value": t[0] || (t[0] = (o) => r.value = o),
52
+ const m = w((e) => {
53
+ if (e) {
54
+ a.fetching = !0;
55
+ const n = c[p.type];
56
+ r.getOps({ url: n, params: { label: e } }).then((l) => {
57
+ a.data = l.data.options.map((t) => ({
58
+ label: t.label,
59
+ value: t.value
60
+ })), a.fetching = !1;
61
+ });
62
+ }
63
+ }, p.delay);
64
+ return (e, n) => (b(), y(i(A), {
65
+ value: s.value,
66
+ "onUpdate:value": n[0] || (n[0] = (l) => s.value = l),
58
67
  mode: e.mode,
59
68
  "show-search": "",
60
69
  placeholder: e.placeholder,
@@ -62,15 +71,15 @@ const x = /* @__PURE__ */ m({
62
71
  "filter-option": !1,
63
72
  "not-found-content": a.fetching ? void 0 : null,
64
73
  options: a.data,
65
- onSearch: i(d)
66
- }, v({
74
+ onSearch: i(m)
75
+ }, P({
67
76
  _: 2
68
77
  /* DYNAMIC */
69
78
  }, [
70
79
  a.fetching ? {
71
80
  name: "notFoundContent",
72
- fn: g(() => [
73
- P(i(w), { size: "small" })
81
+ fn: k(() => [
82
+ S(i(O), { size: "small" })
74
83
  ]),
75
84
  key: "0"
76
85
  } : void 0
@@ -78,5 +87,5 @@ const x = /* @__PURE__ */ m({
78
87
  }
79
88
  });
80
89
  export {
81
- x as default
90
+ z as default
82
91
  };
@@ -1,4 +1,5 @@
1
- const e = {
1
+ var e = /* @__PURE__ */ ((t) => (t.company = "/security/company/options", t.user = "/security/user/options", t.department = "/security/department/options", t.flowApplication = "/dev-api/flow/application/options", t))(e || {});
2
+ const o = {
2
3
  type: {
3
4
  type: String,
4
5
  default: "company"
@@ -16,5 +17,6 @@ const e = {
16
17
  }
17
18
  };
18
19
  export {
19
- e as ProPickerProps
20
+ e as PickerApiEnum,
21
+ o as ProPickerProps
20
22
  };
package/dist/es/index.mjs CHANGED
@@ -3,52 +3,53 @@ import "./components/index.mjs";
3
3
  import "./hooks/index.mjs";
4
4
  import { definePropType as f, formItemProps as P } from "./components/form/component/form.mjs";
5
5
  import { KForm as a, KFormItem as s } from "./components/form/index.mjs";
6
- import { collapseProps as i } from "./components/collapse-transtion/src/types.mjs";
6
+ import { collapseProps as l } from "./components/collapse-transtion/src/types.mjs";
7
7
  import { KCollapseTranstion as u } from "./components/collapse-transtion/index.mjs";
8
8
  import { useProModal as c, useProModalInit as T } from "./components/pro-modal/hooks/useProModal.mjs";
9
9
  import { KProModal as g } from "./components/pro-modal/index.mjs";
10
- import { TitleProps as F } from "./components/pro-title/src/types.mjs";
11
- import { KProTitle as A } from "./components/pro-title/index.mjs";
12
- import { scrollbarProps as k } from "./components/scroll-bar/src/types.mjs";
10
+ import { TitleProps as A } from "./components/pro-title/src/types.mjs";
11
+ import { KProTitle as S } from "./components/pro-title/index.mjs";
12
+ import { scrollbarProps as M } from "./components/scroll-bar/src/types.mjs";
13
13
  import { KScrollBar as y } from "./components/scroll-bar/index.mjs";
14
14
  import { KScaleVirtualList as C } from "./components/scale-virtual-list/index.mjs";
15
- import { proTagProps as V } from "./components/pro-tag/src/types.mjs";
16
- import { KProTag as j } from "./components/pro-tag/index.mjs";
17
- import { ProPickerProps as v } from "./components/pro-picker/src/types.mjs";
15
+ import { proTagProps as L } from "./components/pro-tag/src/types.mjs";
16
+ import { KProTag as h } from "./components/pro-tag/index.mjs";
17
+ import { PickerApiEnum as q, ProPickerProps as v } from "./components/pro-picker/src/types.mjs";
18
18
  import { KProPicker as z } from "./components/pro-picker/index.mjs";
19
- import { ProAreaProps as E } from "./components/pro-area/src/types.mjs";
20
- import { useProArea as H } from "./components/pro-area/hooks/use-pro-area.mjs";
21
- import { KProArea as N } from "./components/pro-area/index.mjs";
22
- import { ProSignatureProps as Q } from "./components/pro-signature/src/types.mjs";
23
- import { KProSignature as U } from "./components/pro-signature/index.mjs";
24
- import { KIcon as X } from "./components/icon/index.mjs";
25
- import { useProForm as Z, useProFormInit as _ } from "./hooks/useProForm.mjs";
19
+ import { ProAreaProps as G } from "./components/pro-area/src/types.mjs";
20
+ import { useProArea as J } from "./components/pro-area/hooks/use-pro-area.mjs";
21
+ import { KProArea as O } from "./components/pro-area/index.mjs";
22
+ import { ProSignatureProps as R } from "./components/pro-signature/src/types.mjs";
23
+ import { KProSignature as W } from "./components/pro-signature/index.mjs";
24
+ import { KIcon as Y } from "./components/icon/index.mjs";
25
+ import { useProForm as _, useProFormInit as $ } from "./hooks/useProForm.mjs";
26
26
  export {
27
27
  u as KCollapseTranstion,
28
28
  a as KForm,
29
29
  s as KFormItem,
30
- X as KIcon,
31
- N as KProArea,
30
+ Y as KIcon,
31
+ O as KProArea,
32
32
  g as KProModal,
33
33
  z as KProPicker,
34
- U as KProSignature,
35
- j as KProTag,
36
- A as KProTitle,
34
+ W as KProSignature,
35
+ h as KProTag,
36
+ S as KProTitle,
37
37
  C as KScaleVirtualList,
38
38
  y as KScrollBar,
39
- E as ProAreaProps,
39
+ q as PickerApiEnum,
40
+ G as ProAreaProps,
40
41
  v as ProPickerProps,
41
- Q as ProSignatureProps,
42
- F as TitleProps,
43
- i as collapseProps,
42
+ R as ProSignatureProps,
43
+ A as TitleProps,
44
+ l as collapseProps,
44
45
  o as default,
45
46
  f as definePropType,
46
47
  P as formItemProps,
47
- V as proTagProps,
48
- k as scrollbarProps,
49
- H as useProArea,
50
- Z as useProForm,
51
- _ as useProFormInit,
48
+ L as proTagProps,
49
+ M as scrollbarProps,
50
+ J as useProArea,
51
+ _ as useProForm,
52
+ $ as useProFormInit,
52
53
  c as useProModal,
53
54
  T as useProModalInit
54
55
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={company:t=>globalThis.$http.get("/security/company/options",t),user:t=>globalThis.$http.get("/security/user/options",t)};exports.proPickerApi=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o={company:t=>globalThis.$http.get("/security/company/options",t),flowApplication:t=>globalThis.$http.get("/flow/application/options",t),user:t=>globalThis.$http.get("/security/user/options",t),getOps:t=>globalThis.$http.get(t.url,t)};exports.proPickerApi=o;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../utils/install.js");require("./src/ProPicker.vue.js");const t=require("./src/types.js"),i=require("./src/ProPicker.vue2.js"),e=r.withInstall(i.default);exports.ProPickerProps=t.ProPickerProps;exports.KProPicker=e;exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../utils/install.js");require("./src/ProPicker.vue.js");const e=require("./src/types.js"),i=require("./src/ProPicker.vue2.js"),r=t.withInstall(i.default);exports.PickerApiEnum=e.PickerApiEnum;exports.ProPickerProps=e.ProPickerProps;exports.KProPicker=r;exports.default=r;
@@ -1 +1 @@
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}))}):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}))},{immediate:!0});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
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),m=require("lodash-es"),d=require("ant-design-vue"),i=require("../apis/pro-picker.api.js"),u=require("./types.js"),h=t.defineComponent({name:"ProPicker",__name:"ProPicker",props:t.mergeModels(u.ProPickerProps,{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(c){const s=c,p=t.useModel(c,"modelValue"),a=t.reactive({data:[],fetching:!1});t.watch(p,e=>{if(!e||a.data.some(o=>o.value===e))return;const r=u.PickerApiEnum[s.type];i.proPickerApi.getOps({url:r,params:{value:e}}).then(o=>{a.data=o.data.options.map(n=>({label:n.label,value:n.value}))}),typeof e=="string"||typeof e=="number"?i.proPickerApi.getOps({url:r,params:{value:e}}).then(o=>{a.data=o.data.options.map(n=>({label:n.label,value:n.value}))}):Array.isArray(e)&&i.proPickerApi.getOps({url:r,params:{value:e.join(",")}}).then(o=>{a.data=o.data.options.map(n=>({label:n.label,value:n.value})),a.fetching=!1})},{immediate:!0});const f=m.debounce(e=>{if(e){a.fetching=!0;const l=u.PickerApiEnum[s.type];i.proPickerApi.getOps({url:l,params:{label:e}}).then(r=>{a.data=r.data.options.map(o=>({label:o.label,value:o.value})),a.fetching=!1})}},s.delay);return(e,l)=>(t.openBlock(),t.createBlock(t.unref(d.Select),{value:p.value,"onUpdate:value":l[0]||(l[0]=r=>p.value=r),mode:e.mode,"show-search":"",placeholder:e.placeholder,style:{width:"100%"},"filter-option":!1,"not-found-content":a.fetching?void 0:null,options:a.data,onSearch:t.unref(f)},t.createSlots({_:2},[a.fetching?{name:"notFoundContent",fn:t.withCtx(()=>[t.createVNode(t.unref(d.Spin),{size:"small"})]),key:"0"}:void 0]),1032,["value","mode","placeholder","not-found-content","options","onSearch"]))}});exports.default=h;
@@ -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},delay:{type:Number,default:200}};exports.ProPickerProps=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e=(t=>(t.company="/security/company/options",t.user="/security/user/options",t.department="/security/department/options",t.flowApplication="/dev-api/flow/application/options",t))(e||{});const o={type:{type:String,default:"company"},placeholder:{type:String,default:"请选择"},mode:{type:String},delay:{type:Number,default:200}};exports.PickerApiEnum=e;exports.ProPickerProps=o;
package/dist/lib/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./installer.js");require("./components/index.js");require("./hooks/index.js");const r=require("./components/form/component/form.js"),e=require("./components/form/index.js"),t=require("./components/collapse-transtion/src/types.js"),P=require("./components/collapse-transtion/index.js"),o=require("./components/pro-modal/hooks/useProModal.js"),n=require("./components/pro-modal/index.js"),u=require("./components/pro-title/src/types.js"),a=require("./components/pro-title/index.js"),l=require("./components/scroll-bar/src/types.js"),c=require("./components/scroll-bar/index.js"),p=require("./components/scale-virtual-list/index.js"),d=require("./components/pro-tag/src/types.js"),q=require("./components/pro-tag/index.js"),K=require("./components/pro-picker/src/types.js"),m=require("./components/pro-picker/index.js"),$=require("./components/pro-area/src/types.js"),T=require("./components/pro-area/hooks/use-pro-area.js"),x=require("./components/pro-area/index.js"),g=require("./components/pro-signature/src/types.js"),y=require("./components/pro-signature/index.js"),I=require("./components/icon/index.js"),s=require("./hooks/useProForm.js");exports.default=i.default;exports.definePropType=r.definePropType;exports.formItemProps=r.formItemProps;exports.KForm=e.KForm;exports.KFormItem=e.KFormItem;exports.collapseProps=t.collapseProps;exports.KCollapseTranstion=P.KCollapseTranstion;exports.useProModal=o.useProModal;exports.useProModalInit=o.useProModalInit;exports.KProModal=n.KProModal;exports.TitleProps=u.TitleProps;exports.KProTitle=a.KProTitle;exports.scrollbarProps=l.scrollbarProps;exports.KScrollBar=c.KScrollBar;exports.KScaleVirtualList=p.KScaleVirtualList;exports.proTagProps=d.proTagProps;exports.KProTag=q.KProTag;exports.ProPickerProps=K.ProPickerProps;exports.KProPicker=m.KProPicker;exports.ProAreaProps=$.ProAreaProps;exports.useProArea=T.useProArea;exports.KProArea=x.KProArea;exports.ProSignatureProps=g.ProSignatureProps;exports.KProSignature=y.KProSignature;exports.KIcon=I.KIcon;exports.useProForm=s.useProForm;exports.useProFormInit=s.useProFormInit;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./installer.js");require("./components/index.js");require("./hooks/index.js");const r=require("./components/form/component/form.js"),e=require("./components/form/index.js"),P=require("./components/collapse-transtion/src/types.js"),n=require("./components/collapse-transtion/index.js"),o=require("./components/pro-modal/hooks/useProModal.js"),u=require("./components/pro-modal/index.js"),a=require("./components/pro-title/src/types.js"),c=require("./components/pro-title/index.js"),l=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"),s=require("./components/pro-picker/src/types.js"),m=require("./components/pro-picker/index.js"),$=require("./components/pro-area/src/types.js"),T=require("./components/pro-area/hooks/use-pro-area.js"),x=require("./components/pro-area/index.js"),g=require("./components/pro-signature/src/types.js"),y=require("./components/pro-signature/index.js"),I=require("./components/icon/index.js"),i=require("./hooks/useProForm.js");exports.default=t.default;exports.definePropType=r.definePropType;exports.formItemProps=r.formItemProps;exports.KForm=e.KForm;exports.KFormItem=e.KFormItem;exports.collapseProps=P.collapseProps;exports.KCollapseTranstion=n.KCollapseTranstion;exports.useProModal=o.useProModal;exports.useProModalInit=o.useProModalInit;exports.KProModal=u.KProModal;exports.TitleProps=a.TitleProps;exports.KProTitle=c.KProTitle;exports.scrollbarProps=l.scrollbarProps;exports.KScrollBar=p.KScrollBar;exports.KScaleVirtualList=d.KScaleVirtualList;exports.proTagProps=q.proTagProps;exports.KProTag=K.KProTag;exports.PickerApiEnum=s.PickerApiEnum;exports.ProPickerProps=s.ProPickerProps;exports.KProPicker=m.KProPicker;exports.ProAreaProps=$.ProAreaProps;exports.useProArea=T.useProArea;exports.KProArea=x.KProArea;exports.ProSignatureProps=g.ProSignatureProps;exports.KProSignature=y.KProSignature;exports.KIcon=I.KIcon;exports.useProForm=i.useProForm;exports.useProFormInit=i.useProFormInit;
@@ -1 +1 @@
1
- @font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=56889) format("woff2"),url(fonts/iconfont.woff?t=63860) format("woff"),url(fonts/iconfont.ttf?t=38137) 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=27648) format("woff2"),url(fonts/iconfont.woff?t=73353) format("woff"),url(fonts/iconfont.ttf?t=69940) 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-virtual-list-container{margin:0 auto;position:relative}.king-scale-virtual-list .king-scale-vittual-wrapper{width:-moz-fit-content;width:fit-content;margin:0 auto;position:absolute;left:50%}.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-modal .ant-modal-title{flex:1}.king-pro-modal .pro-modal-title{cursor:move;width:100%}.king-pro-area-select{width:100%}@font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=95418) format("woff2"),url(fonts/iconfont.woff?t=24592) format("woff"),url(fonts/iconfont.ttf?t=71403) 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-virtual-list-container{margin:0 auto;position:relative}.king-scale-virtual-list .king-scale-vittual-wrapper{width:-moz-fit-content;width:fit-content;margin:0 auto;position:absolute;left:50%}.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-modal .ant-modal-title{flex:1}.king-pro-modal .pro-modal-title{cursor:move;width:100%}.king-pro-area-select{width:100%}@font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=11857) format("woff2"),url(fonts/iconfont.woff?t=89436) format("woff"),url(fonts/iconfont.ttf?t=61903) 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,5 +1,7 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
2
  export declare const proPickerApi: {
3
3
  company: (config: AxiosRequestConfig) => Promise<any>;
4
+ flowApplication: (config: AxiosRequestConfig) => Promise<any>;
4
5
  user: (config: AxiosRequestConfig) => Promise<any>;
6
+ getOps: (config: AxiosRequestConfig) => Promise<any>;
5
7
  };
@@ -45,7 +45,7 @@ export declare const KProPicker: SFCWithInstall<DefineComponent<{
45
45
  }>> & {
46
46
  "onUpdate:modelValue"?: ((modelValue: string | number | string[] | number[]) => any) | undefined;
47
47
  }, {
48
- type: "company" | "user";
48
+ type: "company" | "user" | "department" | "flowApplication";
49
49
  placeholder: string;
50
50
  delay: number;
51
51
  }, {}>>;
@@ -43,7 +43,7 @@ declare const _default: DefineComponent<{
43
43
  }>> & {
44
44
  "onUpdate:modelValue"?: ((modelValue: string | number | string[] | number[]) => any) | undefined;
45
45
  }, {
46
- type: "company" | "user";
46
+ type: "company" | "user" | "department" | "flowApplication";
47
47
  placeholder: string;
48
48
  delay: number;
49
49
  }, {}>;
@@ -1,6 +1,11 @@
1
1
  import { PropType } from 'vue';
2
- declare const ProPickers: readonly ["company", "user"];
3
- export type ProPickerType = (typeof ProPickers)[number];
2
+ export declare enum PickerApiEnum {
3
+ company = "/security/company/options",
4
+ user = "/security/user/options",
5
+ department = "/security/department/options",
6
+ flowApplication = "/dev-api/flow/application/options"
7
+ }
8
+ export type ProPickerType = keyof typeof PickerApiEnum;
4
9
  export declare const ProPickerProps: {
5
10
  readonly type: {
6
11
  readonly type: PropType<ProPickerType>;
@@ -18,4 +23,3 @@ export declare const ProPickerProps: {
18
23
  readonly default: 200;
19
24
  };
20
25
  };
21
- export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@king-one/antdv",
3
3
  "type": "module",
4
- "version": "1.0.63",
4
+ "version": "1.0.65",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "ISC",