@bscjc/webui 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/components/JcCascader/index.d.ts +25 -187
  2. package/dist/components/JcCascader/index.vue.d.ts +37 -100
  3. package/dist/components/JcColumnConfig/index.d.ts +7 -106
  4. package/dist/components/JcColumnConfig/index.vue.d.ts +23 -71
  5. package/dist/components/JcDatePicker/index.d.ts +24 -105
  6. package/dist/components/JcDatePicker/index.vue.d.ts +26 -58
  7. package/dist/components/JcImportButton/index.d.ts +14 -41
  8. package/dist/components/JcImportButton/index.vue.d.ts +19 -26
  9. package/dist/components/JcImportDialog/index.d.ts +14 -74
  10. package/dist/components/JcImportDialog/index.vue.d.ts +25 -48
  11. package/dist/components/JcInputComplex/index.d.ts +48 -90
  12. package/dist/components/JcInputComplex/index.vue.d.ts +32 -48
  13. package/dist/components/JcInputSwitch/index.d.ts +42 -90
  14. package/dist/components/JcInputSwitch/index.vue.d.ts +30 -48
  15. package/dist/components/JcMoreQueryContain/index.d.ts +14 -197
  16. package/dist/components/JcMoreQueryContain/index.vue.d.ts +23 -88
  17. package/dist/components/JcSelectQuery/index.d.ts +19 -178
  18. package/dist/components/JcSelectQuery/index.vue.d.ts +37 -106
  19. package/dist/components/JcTagQuery/index.d.ts +4 -19
  20. package/dist/components/JcTagQuery/index.vue.d.ts +7 -12
  21. package/dist/es/index.mjs +2098 -2167
  22. package/dist/index.css +2 -2
  23. package/dist/index.d.ts +3 -1
  24. package/dist/lib/index.cjs +8 -8
  25. package/dist/types/components/JcCascader/index.d.ts +25 -187
  26. package/dist/types/components/JcCascader/index.vue.d.ts +37 -100
  27. package/dist/types/components/JcColumnConfig/index.d.ts +7 -106
  28. package/dist/types/components/JcColumnConfig/index.vue.d.ts +23 -71
  29. package/dist/types/components/JcDatePicker/index.d.ts +24 -105
  30. package/dist/types/components/JcDatePicker/index.vue.d.ts +26 -58
  31. package/dist/types/components/JcImportButton/index.d.ts +14 -41
  32. package/dist/types/components/JcImportButton/index.vue.d.ts +19 -26
  33. package/dist/types/components/JcImportDialog/index.d.ts +14 -74
  34. package/dist/types/components/JcImportDialog/index.vue.d.ts +25 -48
  35. package/dist/types/components/JcInputComplex/index.d.ts +51 -93
  36. package/dist/types/components/JcInputComplex/index.vue.d.ts +126 -141
  37. package/dist/types/components/JcInputSwitch/index.d.ts +45 -93
  38. package/dist/types/components/JcInputSwitch/index.vue.d.ts +74 -91
  39. package/dist/types/components/JcMoreQueryContain/index.d.ts +14 -197
  40. package/dist/types/components/JcMoreQueryContain/index.vue.d.ts +108 -172
  41. package/dist/types/components/JcSelectQuery/index.d.ts +19 -178
  42. package/dist/types/components/JcSelectQuery/index.vue.d.ts +137 -206
  43. package/dist/types/components/JcTagQuery/index.d.ts +4 -19
  44. package/dist/types/components/JcTagQuery/index.vue.d.ts +7 -12
  45. package/dist/types/index.d.ts +3 -1
  46. package/package.json +2 -2
@@ -1,126 +1,57 @@
1
- import type { PropType } from "vue";
2
1
  import "vue-virtual-scroller/dist/vue-virtual-scroller.css";
3
- type Item = {
2
+ /** 选项项类型 */
3
+ export interface SelectQueryItem {
4
4
  label: string;
5
5
  value: string;
6
- };
6
+ disabled?: boolean;
7
+ }
8
+ /** 组件 Props 类型 */
9
+ export interface Props {
10
+ /** 绑定的字段名 */
11
+ field: string;
12
+ /** 选项数据 */
13
+ options: SelectQueryItem[];
14
+ /** 是否允许创建新选项 */
15
+ allowCreate?: boolean;
16
+ /** 选项的键名配置 */
17
+ keyField?: string[];
18
+ /** 组件宽度 */
19
+ width?: string;
20
+ /** 组件尺寸 */
21
+ size?: "small" | "default" | "large";
22
+ /** 底部按钮文本 */
23
+ footerBtnName?: string;
24
+ /** 下拉框最大高度 */
25
+ maxScrollHeight?: string;
26
+ /** 是否显示底部按钮区域 */
27
+ isNeedFooter?: boolean;
28
+ /** 是否显示仅筛选 */
29
+ isNeedOnlySelect?: boolean;
30
+ /** 自定义注入键值 */
31
+ injectionKey?: string;
32
+ }
7
33
  declare var __VLS_57: {
8
34
  scope: any;
9
35
  };
10
36
  type __VLS_Slots = {} & {
11
37
  default?: (props: typeof __VLS_57) => any;
12
38
  };
13
- declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
14
- field: {
15
- type: StringConstructor;
16
- required: true;
17
- default: string;
18
- };
19
- options: {
20
- type: PropType<Array<Item>> | never[];
21
- default: () => never[];
22
- required: true;
23
- };
24
- allowCreate: {
25
- type: BooleanConstructor;
26
- default: boolean;
27
- };
28
- keyField: {
29
- type: any;
30
- default: () => string[];
31
- };
32
- width: {
33
- type: StringConstructor;
34
- default: string;
35
- };
36
- size: {
37
- type: PropType<"small" | "default" | "large">;
38
- default: string;
39
- validator: (value: string) => boolean;
40
- };
41
- footerBtnName: {
42
- type: StringConstructor;
43
- default: string;
44
- };
45
- maxScrollHeight: {
46
- type: StringConstructor;
47
- default: string;
48
- };
49
- isNeedFooter: {
50
- type: BooleanConstructor;
51
- default: boolean;
52
- };
53
- isNeedOnlySelect: {
54
- type: BooleanConstructor;
55
- default: boolean;
56
- };
57
- injectionKey: {
58
- type: StringConstructor;
59
- default: string;
60
- };
61
- }>, {
62
- [x: string]: string | Function | string[];
63
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
64
- field: {
65
- type: StringConstructor;
66
- required: true;
67
- default: string;
68
- };
69
- options: {
70
- type: PropType<Array<Item>> | never[];
71
- default: () => never[];
72
- required: true;
73
- };
74
- allowCreate: {
75
- type: BooleanConstructor;
76
- default: boolean;
77
- };
78
- keyField: {
79
- type: any;
80
- default: () => string[];
81
- };
82
- width: {
83
- type: StringConstructor;
84
- default: string;
85
- };
86
- size: {
87
- type: PropType<"small" | "default" | "large">;
88
- default: string;
89
- validator: (value: string) => boolean;
90
- };
91
- footerBtnName: {
92
- type: StringConstructor;
93
- default: string;
94
- };
95
- maxScrollHeight: {
96
- type: StringConstructor;
97
- default: string;
98
- };
99
- isNeedFooter: {
100
- type: BooleanConstructor;
101
- default: boolean;
102
- };
103
- isNeedOnlySelect: {
104
- type: BooleanConstructor;
105
- default: boolean;
106
- };
107
- injectionKey: {
108
- type: StringConstructor;
109
- default: string;
110
- };
111
- }>> & Readonly<{}>, {
39
+ declare const __VLS_component: import("vue").DefineComponent<Props, {
40
+ focus: () => void | undefined;
41
+ blur: () => void | undefined;
42
+ selectedLabel: string | string[] | undefined;
43
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
112
44
  size: "small" | "default" | "large";
113
45
  injectionKey: string;
114
- field: string;
115
- options: Item[];
46
+ options: SelectQueryItem[];
116
47
  allowCreate: boolean;
117
- keyField: any;
48
+ keyField: string[];
118
49
  width: string;
119
50
  footerBtnName: string;
120
51
  maxScrollHeight: string;
121
52
  isNeedFooter: boolean;
122
53
  isNeedOnlySelect: boolean;
123
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
54
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
124
55
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
125
56
  export default _default;
126
57
  type __VLS_WithSlots<T, S> = T & {
@@ -1,35 +1,20 @@
1
1
  export declare const JcTagQuery: {
2
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
3
- injectionKey: {
4
- type: StringConstructor;
5
- default: string;
6
- };
7
- }>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
2
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./index.vue").Props> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
8
3
  injectionKey: string;
9
- }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
4
+ }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
10
5
  P: {};
11
6
  B: {};
12
7
  D: {};
13
8
  C: {};
14
9
  M: {};
15
10
  Defaults: {};
16
- }, Readonly<import("vue").ExtractPropTypes<{
17
- injectionKey: {
18
- type: StringConstructor;
19
- default: string;
20
- };
21
- }>> & Readonly<{}>, {}, {}, {}, {}, {
11
+ }, Readonly<import("./index.vue").Props> & Readonly<{}>, {}, {}, {}, {}, {
22
12
  injectionKey: string;
23
13
  }>;
24
14
  __isFragment?: never;
25
15
  __isTeleport?: never;
26
16
  __isSuspense?: never;
27
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
28
- injectionKey: {
29
- type: StringConstructor;
30
- default: string;
31
- };
32
- }>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
17
+ } & import("vue").ComponentOptionsBase<Readonly<import("./index.vue").Props> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
33
18
  injectionKey: string;
34
19
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
35
20
  export default JcTagQuery;
@@ -1,14 +1,9 @@
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<{}>, {
1
+ /** 组件 Props 类型 */
2
+ export interface Props {
3
+ /** 自定义注入键值 */
4
+ injectionKey?: string;
5
+ }
6
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
12
7
  injectionKey: string;
13
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
8
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
9
  export default _default;