@bscjc/webui 1.1.3 → 1.2.1
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/dist/components/JcCascader/index.d.ts +9 -0
- package/dist/components/JcCascader/index.vue.d.ts +9 -0
- package/dist/components/JcDatePicker/index.d.ts +9 -0
- package/dist/components/JcDatePicker/index.vue.d.ts +9 -0
- package/dist/components/JcInputComplex/index.d.ts +9 -0
- package/dist/components/JcInputComplex/index.vue.d.ts +9 -0
- package/dist/components/JcInputSwitch/index.d.ts +9 -0
- package/dist/components/JcInputSwitch/index.vue.d.ts +9 -0
- package/dist/components/JcMoreQueryContain/index.d.ts +15 -0
- package/dist/components/JcMoreQueryContain/index.vue.d.ts +9 -0
- package/dist/components/JcSelectQuery/index.d.ts +15 -0
- package/dist/components/JcSelectQuery/index.vue.d.ts +9 -0
- package/dist/components/JcTagQuery/index.d.ts +13 -1
- package/dist/components/JcTagQuery/index.vue.d.ts +13 -1
- package/dist/es/index.mjs +1543 -1509
- package/dist/hooks/useQuery.d.ts +1 -1
- package/dist/hooks/useQueryStore.d.ts +34 -31
- package/dist/index.css +2 -2
- package/dist/lib/index.cjs +8 -8
- package/dist/types/components/JcCascader/index.d.ts +9 -0
- package/dist/types/components/JcCascader/index.vue.d.ts +9 -0
- package/dist/types/components/JcDatePicker/index.d.ts +9 -0
- package/dist/types/components/JcDatePicker/index.vue.d.ts +9 -0
- package/dist/types/components/JcInputComplex/index.d.ts +9 -0
- package/dist/types/components/JcInputComplex/index.vue.d.ts +9 -0
- package/dist/types/components/JcInputSwitch/index.d.ts +9 -0
- package/dist/types/components/JcInputSwitch/index.vue.d.ts +9 -0
- package/dist/types/components/JcMoreQueryContain/index.d.ts +15 -0
- package/dist/types/components/JcMoreQueryContain/index.vue.d.ts +9 -0
- package/dist/types/components/JcSelectQuery/index.d.ts +15 -0
- package/dist/types/components/JcSelectQuery/index.vue.d.ts +9 -0
- package/dist/types/components/JcTagQuery/index.d.ts +13 -1
- package/dist/types/components/JcTagQuery/index.vue.d.ts +13 -1
- package/dist/types/hooks/useQuery.d.ts +1 -1
- package/dist/types/hooks/useQueryStore.d.ts +34 -31
- package/package.json +2 -2
|
@@ -18,6 +18,10 @@ export declare const JcInputComplex: SFCWithInstall<import('vue').DefineComponen
|
|
|
18
18
|
type: StringConstructor;
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
21
|
+
injectionKey: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
21
25
|
}>, {
|
|
22
26
|
[x: string]: any;
|
|
23
27
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -40,10 +44,15 @@ export declare const JcInputComplex: SFCWithInstall<import('vue').DefineComponen
|
|
|
40
44
|
type: StringConstructor;
|
|
41
45
|
default: string;
|
|
42
46
|
};
|
|
47
|
+
injectionKey: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
43
51
|
}>> & Readonly<{
|
|
44
52
|
onFieldChange?: ((...args: any[]) => any) | undefined;
|
|
45
53
|
}>, {
|
|
46
54
|
size: "small" | "default" | "large";
|
|
55
|
+
injectionKey: string;
|
|
47
56
|
width: string;
|
|
48
57
|
fieldList: {
|
|
49
58
|
label: string;
|
|
@@ -18,6 +18,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
18
18
|
type: StringConstructor;
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
21
|
+
injectionKey: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
21
25
|
}>, {
|
|
22
26
|
[x: string]: any;
|
|
23
27
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -37,10 +41,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
37
41
|
type: StringConstructor;
|
|
38
42
|
default: string;
|
|
39
43
|
};
|
|
44
|
+
injectionKey: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
40
48
|
}>> & Readonly<{
|
|
41
49
|
onFieldChange?: ((...args: any[]) => any) | undefined;
|
|
42
50
|
}>, {
|
|
43
51
|
size: "small" | "default" | "large";
|
|
52
|
+
injectionKey: string;
|
|
44
53
|
width: string;
|
|
45
54
|
fieldList: fieldType[];
|
|
46
55
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
@@ -18,6 +18,10 @@ export declare const JcInputSwitch: SFCWithInstall<import('vue').DefineComponent
|
|
|
18
18
|
type: StringConstructor;
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
21
|
+
injectionKey: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
21
25
|
}>, {
|
|
22
26
|
[x: string]: any;
|
|
23
27
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -40,10 +44,15 @@ export declare const JcInputSwitch: SFCWithInstall<import('vue').DefineComponent
|
|
|
40
44
|
type: StringConstructor;
|
|
41
45
|
default: string;
|
|
42
46
|
};
|
|
47
|
+
injectionKey: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
43
51
|
}>> & Readonly<{
|
|
44
52
|
onFieldChange?: ((...args: any[]) => any) | undefined;
|
|
45
53
|
}>, {
|
|
46
54
|
size: "small" | "default" | "large";
|
|
55
|
+
injectionKey: string;
|
|
47
56
|
width: string;
|
|
48
57
|
fieldList: {
|
|
49
58
|
label: string;
|
|
@@ -18,6 +18,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
18
18
|
type: StringConstructor;
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
21
|
+
injectionKey: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
21
25
|
}>, {
|
|
22
26
|
[x: string]: any;
|
|
23
27
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -37,10 +41,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
37
41
|
type: StringConstructor;
|
|
38
42
|
default: string;
|
|
39
43
|
};
|
|
44
|
+
injectionKey: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
40
48
|
}>> & Readonly<{
|
|
41
49
|
onFieldChange?: ((...args: any[]) => any) | undefined;
|
|
42
50
|
}>, {
|
|
43
51
|
size: "small" | "default" | "large";
|
|
52
|
+
injectionKey: string;
|
|
44
53
|
width: string;
|
|
45
54
|
fieldList: fieldType[];
|
|
46
55
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
@@ -53,10 +53,15 @@ export declare const JcMoreQueryContain: SFCWithInstall<{
|
|
|
53
53
|
default: string;
|
|
54
54
|
validator: (value: string) => boolean;
|
|
55
55
|
};
|
|
56
|
+
injectionKey: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
56
60
|
}>> & Readonly<{}>, {
|
|
57
61
|
[x: string]: any;
|
|
58
62
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
59
63
|
size: "small" | "default" | "large";
|
|
64
|
+
injectionKey: string;
|
|
60
65
|
width: number;
|
|
61
66
|
fieldList: {
|
|
62
67
|
label: string;
|
|
@@ -669,10 +674,15 @@ export declare const JcMoreQueryContain: SFCWithInstall<{
|
|
|
669
674
|
default: string;
|
|
670
675
|
validator: (value: string) => boolean;
|
|
671
676
|
};
|
|
677
|
+
injectionKey: {
|
|
678
|
+
type: StringConstructor;
|
|
679
|
+
default: string;
|
|
680
|
+
};
|
|
672
681
|
}>> & Readonly<{}>, {
|
|
673
682
|
[x: string]: any;
|
|
674
683
|
}, {}, {}, {}, {
|
|
675
684
|
size: "small" | "default" | "large";
|
|
685
|
+
injectionKey: string;
|
|
676
686
|
width: number;
|
|
677
687
|
fieldList: {
|
|
678
688
|
label: string;
|
|
@@ -737,10 +747,15 @@ export declare const JcMoreQueryContain: SFCWithInstall<{
|
|
|
737
747
|
default: string;
|
|
738
748
|
validator: (value: string) => boolean;
|
|
739
749
|
};
|
|
750
|
+
injectionKey: {
|
|
751
|
+
type: StringConstructor;
|
|
752
|
+
default: string;
|
|
753
|
+
};
|
|
740
754
|
}>> & Readonly<{}>, {
|
|
741
755
|
[x: string]: any;
|
|
742
756
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
743
757
|
size: "small" | "default" | "large";
|
|
758
|
+
injectionKey: string;
|
|
744
759
|
width: number;
|
|
745
760
|
fieldList: {
|
|
746
761
|
label: string;
|
|
@@ -593,6 +593,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
593
593
|
default: string;
|
|
594
594
|
validator: (value: string) => boolean;
|
|
595
595
|
};
|
|
596
|
+
injectionKey: {
|
|
597
|
+
type: StringConstructor;
|
|
598
|
+
default: string;
|
|
599
|
+
};
|
|
596
600
|
}>, {
|
|
597
601
|
[x: string]: any;
|
|
598
602
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -629,8 +633,13 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
629
633
|
default: string;
|
|
630
634
|
validator: (value: string) => boolean;
|
|
631
635
|
};
|
|
636
|
+
injectionKey: {
|
|
637
|
+
type: StringConstructor;
|
|
638
|
+
default: string;
|
|
639
|
+
};
|
|
632
640
|
}>> & Readonly<{}>, {
|
|
633
641
|
size: "small" | "default" | "large";
|
|
642
|
+
injectionKey: string;
|
|
634
643
|
width: number;
|
|
635
644
|
fieldList: fieldType[];
|
|
636
645
|
customTagObj: {
|
|
@@ -48,10 +48,15 @@ export declare const JcSelectQuery: SFCWithInstall<{
|
|
|
48
48
|
type: BooleanConstructor;
|
|
49
49
|
default: boolean;
|
|
50
50
|
};
|
|
51
|
+
injectionKey: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
51
55
|
}>> & Readonly<{}>, {
|
|
52
56
|
[x: string]: string | Function | string[];
|
|
53
57
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
54
58
|
size: "small" | "default" | "large";
|
|
59
|
+
injectionKey: string;
|
|
55
60
|
field: string;
|
|
56
61
|
options: {
|
|
57
62
|
label: string;
|
|
@@ -924,10 +929,15 @@ export declare const JcSelectQuery: SFCWithInstall<{
|
|
|
924
929
|
type: BooleanConstructor;
|
|
925
930
|
default: boolean;
|
|
926
931
|
};
|
|
932
|
+
injectionKey: {
|
|
933
|
+
type: StringConstructor;
|
|
934
|
+
default: string;
|
|
935
|
+
};
|
|
927
936
|
}>> & Readonly<{}>, {
|
|
928
937
|
[x: string]: string | Function | string[];
|
|
929
938
|
}, {}, {}, {}, {
|
|
930
939
|
size: "small" | "default" | "large";
|
|
940
|
+
injectionKey: string;
|
|
931
941
|
field: string;
|
|
932
942
|
options: {
|
|
933
943
|
label: string;
|
|
@@ -991,10 +1001,15 @@ export declare const JcSelectQuery: SFCWithInstall<{
|
|
|
991
1001
|
type: BooleanConstructor;
|
|
992
1002
|
default: boolean;
|
|
993
1003
|
};
|
|
1004
|
+
injectionKey: {
|
|
1005
|
+
type: StringConstructor;
|
|
1006
|
+
default: string;
|
|
1007
|
+
};
|
|
994
1008
|
}>> & Readonly<{}>, {
|
|
995
1009
|
[x: string]: string | Function | string[];
|
|
996
1010
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
997
1011
|
size: "small" | "default" | "large";
|
|
1012
|
+
injectionKey: string;
|
|
998
1013
|
field: string;
|
|
999
1014
|
options: {
|
|
1000
1015
|
label: string;
|
|
@@ -864,6 +864,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
864
864
|
type: BooleanConstructor;
|
|
865
865
|
default: boolean;
|
|
866
866
|
};
|
|
867
|
+
injectionKey: {
|
|
868
|
+
type: StringConstructor;
|
|
869
|
+
default: string;
|
|
870
|
+
};
|
|
867
871
|
}>, {
|
|
868
872
|
[x: string]: string | Function | string[];
|
|
869
873
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -910,8 +914,13 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
910
914
|
type: BooleanConstructor;
|
|
911
915
|
default: boolean;
|
|
912
916
|
};
|
|
917
|
+
injectionKey: {
|
|
918
|
+
type: StringConstructor;
|
|
919
|
+
default: string;
|
|
920
|
+
};
|
|
913
921
|
}>> & Readonly<{}>, {
|
|
914
922
|
size: "small" | "default" | "large";
|
|
923
|
+
injectionKey: string;
|
|
915
924
|
field: string;
|
|
916
925
|
options: Item[];
|
|
917
926
|
allowCreate: boolean;
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import { Plugin } from 'vue';
|
|
2
2
|
type SFCWithInstall<T> = T & Plugin;
|
|
3
|
-
export declare const JcTagQuery: SFCWithInstall<import('vue').DefineComponent<
|
|
3
|
+
export declare const JcTagQuery: SFCWithInstall<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
injectionKey: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
|
+
injectionKey: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
}>> & Readonly<{}>, {
|
|
14
|
+
injectionKey: string;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>>;
|
|
4
16
|
export default JcTagQuery;
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
injectionKey: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
7
|
+
injectionKey: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
}>> & Readonly<{}>, {
|
|
12
|
+
injectionKey: string;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
14
|
export default _default;
|
|
@@ -16,35 +16,38 @@ export type QueryAndTagType = {
|
|
|
16
16
|
queryForm: Record<string, any>;
|
|
17
17
|
tags: Array<tagShowType>;
|
|
18
18
|
};
|
|
19
|
-
declare const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
declare const createInjectionStateByKey: (injectionKey: string) => {
|
|
20
|
+
useProvideQueryStore: (initObj: QueryAndTagType) => {
|
|
21
|
+
state: {
|
|
22
|
+
queryForm: Record<string, any>;
|
|
23
|
+
tags: {
|
|
24
|
+
key: string;
|
|
25
|
+
label: string;
|
|
26
|
+
value: string;
|
|
27
|
+
showStr: string;
|
|
28
|
+
}[];
|
|
29
|
+
};
|
|
30
|
+
setQuery: (key: string, value: any) => void;
|
|
31
|
+
addTag: (tag: tagAddType) => void;
|
|
32
|
+
reduceTag: (tag: tagReduceType, index?: number) => void;
|
|
33
|
+
reduceAllTag: () => void;
|
|
34
|
+
clearQuery: (initObj?: any) => void;
|
|
28
35
|
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
reduceAllTag: () => void;
|
|
48
|
-
clearQuery: (initObj?: any) => void;
|
|
49
|
-
} | undefined;
|
|
50
|
-
export { useProvideQueryStore, useQueryStore };
|
|
36
|
+
useQueryStore: () => {
|
|
37
|
+
state: {
|
|
38
|
+
queryForm: Record<string, any>;
|
|
39
|
+
tags: {
|
|
40
|
+
key: string;
|
|
41
|
+
label: string;
|
|
42
|
+
value: string;
|
|
43
|
+
showStr: string;
|
|
44
|
+
}[];
|
|
45
|
+
};
|
|
46
|
+
setQuery: (key: string, value: any) => void;
|
|
47
|
+
addTag: (tag: tagAddType) => void;
|
|
48
|
+
reduceTag: (tag: tagReduceType, index?: number) => void;
|
|
49
|
+
reduceAllTag: () => void;
|
|
50
|
+
clearQuery: (initObj?: any) => void;
|
|
51
|
+
} | undefined;
|
|
52
|
+
};
|
|
53
|
+
export { createInjectionStateByKey };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bscjc/webui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.1
|
|
4
|
+
"version": "1.2.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/lib/index.cjs",
|
|
7
7
|
"module": "./dist/es/index.mjs",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"cssnano": "^7.0.7",
|
|
53
53
|
"unplugin-element-plus": "^0.10.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "089436a0e361d9b7cd46bb401aba52841ab9a5be"
|
|
56
56
|
}
|