@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 +12 -0
- package/dist/es/components/pro-picker/apis/pro-picker.api.mjs +3 -1
- package/dist/es/components/pro-picker/index.mjs +3 -2
- package/dist/es/components/pro-picker/src/ProPicker.vue2.mjs +52 -43
- package/dist/es/components/pro-picker/src/types.mjs +4 -2
- package/dist/es/index.mjs +29 -28
- package/dist/lib/components/pro-picker/apis/pro-picker.api.js +1 -1
- package/dist/lib/components/pro-picker/index.js +1 -1
- package/dist/lib/components/pro-picker/src/ProPicker.vue2.js +1 -1
- package/dist/lib/components/pro-picker/src/types.js +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/theme-chalk/icon.css +1 -1
- package/dist/theme-chalk/index.css +1 -1
- package/dist/types/components/pro-picker/apis/pro-picker.api.d.ts +2 -0
- package/dist/types/components/pro-picker/index.d.ts +1 -1
- package/dist/types/components/pro-picker/src/ProPicker.vue.d.ts +1 -1
- package/dist/types/components/pro-picker/src/types.d.ts +7 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
const o = {
|
|
2
2
|
company: (t) => globalThis.$http.get("/security/company/options", t),
|
|
3
|
-
|
|
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
|
|
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
|
-
|
|
8
|
+
c as PickerApiEnum,
|
|
9
|
+
f as ProPickerProps,
|
|
9
10
|
p as default
|
|
10
11
|
};
|
|
@@ -1,60 +1,69 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { debounce as
|
|
3
|
-
import { Select as
|
|
4
|
-
import { proPickerApi as
|
|
5
|
-
import { ProPickerProps as V } from "./types.mjs";
|
|
6
|
-
const
|
|
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__ */
|
|
9
|
+
props: /* @__PURE__ */ f(V, {
|
|
10
10
|
modelValue: {},
|
|
11
11
|
modelModifiers: {}
|
|
12
12
|
}),
|
|
13
13
|
emits: ["update:modelValue"],
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
14
|
+
setup(d) {
|
|
15
|
+
const p = d, s = h(d, "modelValue"), a = v({
|
|
16
16
|
data: [],
|
|
17
17
|
fetching: !1
|
|
18
18
|
});
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
g(
|
|
20
|
+
s,
|
|
21
21
|
(e) => {
|
|
22
|
-
!e || a.data.some((
|
|
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((
|
|
25
|
-
a.data =
|
|
26
|
-
label:
|
|
27
|
-
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) &&
|
|
38
|
+
}) : Array.isArray(e) && r.getOps({
|
|
39
|
+
url: l,
|
|
30
40
|
params: { value: e.join(",") }
|
|
31
|
-
}).then((
|
|
32
|
-
a.data =
|
|
33
|
-
label:
|
|
34
|
-
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
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
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(
|
|
66
|
-
},
|
|
74
|
+
onSearch: i(m)
|
|
75
|
+
}, P({
|
|
67
76
|
_: 2
|
|
68
77
|
/* DYNAMIC */
|
|
69
78
|
}, [
|
|
70
79
|
a.fetching ? {
|
|
71
80
|
name: "notFoundContent",
|
|
72
|
-
fn:
|
|
73
|
-
|
|
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
|
-
|
|
90
|
+
z as default
|
|
82
91
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
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
|
|
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
|
|
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
|
|
11
|
-
import { KProTitle as
|
|
12
|
-
import { scrollbarProps as
|
|
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
|
|
16
|
-
import { KProTag as
|
|
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
|
|
20
|
-
import { useProArea as
|
|
21
|
-
import { KProArea as
|
|
22
|
-
import { ProSignatureProps as
|
|
23
|
-
import { KProSignature as
|
|
24
|
-
import { KIcon as
|
|
25
|
-
import { useProForm as
|
|
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
|
-
|
|
31
|
-
|
|
30
|
+
Y as KIcon,
|
|
31
|
+
O as KProArea,
|
|
32
32
|
g as KProModal,
|
|
33
33
|
z as KProPicker,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
W as KProSignature,
|
|
35
|
+
h as KProTag,
|
|
36
|
+
S as KProTitle,
|
|
37
37
|
C as KScaleVirtualList,
|
|
38
38
|
y as KScrollBar,
|
|
39
|
-
|
|
39
|
+
q as PickerApiEnum,
|
|
40
|
+
G as ProAreaProps,
|
|
40
41
|
v as ProPickerProps,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
|
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
|
|
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
|
|
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"});
|
|
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
|
|
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=
|
|
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=
|
|
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
|
|
3
|
-
|
|
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 {};
|