@partex/one-core 1.0.13 → 1.1.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/lib/components/local/en-US.d.ts +1 -0
- package/lib/components/local/index.d.ts +2 -0
- package/lib/components/local/zh-CN.d.ts +1 -0
- package/lib/components/searchBar/index.vue.d.ts +21 -0
- package/lib/components/searchBar/interface.d.ts +15 -3
- package/lib/components/searchBar/item.vue.d.ts +1 -22
- package/lib/one-core.cjs +1 -1
- package/lib/one-core.js +2454 -2455
- package/lib/one-core.umd.cjs +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -16,6 +16,7 @@ export declare const langCN: {
|
|
|
16
16
|
refresh: string;
|
|
17
17
|
filter: string;
|
|
18
18
|
reset: string;
|
|
19
|
+
more: string;
|
|
19
20
|
success: string;
|
|
20
21
|
failed: string;
|
|
21
22
|
processing: string;
|
|
@@ -103,6 +104,7 @@ export declare const langUS: {
|
|
|
103
104
|
refresh: string;
|
|
104
105
|
filter: string;
|
|
105
106
|
reset: string;
|
|
107
|
+
more: string;
|
|
106
108
|
success: string;
|
|
107
109
|
failed: string;
|
|
108
110
|
processing: string;
|
|
@@ -6,6 +6,11 @@ declare const _default: DefineComponent<{
|
|
|
6
6
|
type: ObjectConstructor;
|
|
7
7
|
default: () => {};
|
|
8
8
|
};
|
|
9
|
+
defaultValue: {
|
|
10
|
+
required: true;
|
|
11
|
+
type: ObjectConstructor;
|
|
12
|
+
default: () => {};
|
|
13
|
+
};
|
|
9
14
|
data: {
|
|
10
15
|
required: true;
|
|
11
16
|
type: PropType<ISearchBarType>;
|
|
@@ -23,6 +28,10 @@ declare const _default: DefineComponent<{
|
|
|
23
28
|
type: PropType<boolean>;
|
|
24
29
|
default: boolean;
|
|
25
30
|
};
|
|
31
|
+
cache: {
|
|
32
|
+
type: PropType<boolean>;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
26
35
|
resetButton: {
|
|
27
36
|
type: PropType<boolean>;
|
|
28
37
|
default: boolean;
|
|
@@ -31,6 +40,7 @@ declare const _default: DefineComponent<{
|
|
|
31
40
|
itemRef: Ref<any>;
|
|
32
41
|
isSlotHeader: Ref<boolean>;
|
|
33
42
|
availWidth: Ref<boolean>;
|
|
43
|
+
itemData: Ref<{}>;
|
|
34
44
|
doSearch: () => void;
|
|
35
45
|
clearAll: () => void;
|
|
36
46
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("on-update:value" | "update:loading")[], "on-update:value" | "update:loading", PublicProps, Readonly<ExtractPropTypes<{
|
|
@@ -39,6 +49,11 @@ declare const _default: DefineComponent<{
|
|
|
39
49
|
type: ObjectConstructor;
|
|
40
50
|
default: () => {};
|
|
41
51
|
};
|
|
52
|
+
defaultValue: {
|
|
53
|
+
required: true;
|
|
54
|
+
type: ObjectConstructor;
|
|
55
|
+
default: () => {};
|
|
56
|
+
};
|
|
42
57
|
data: {
|
|
43
58
|
required: true;
|
|
44
59
|
type: PropType<ISearchBarType>;
|
|
@@ -56,6 +71,10 @@ declare const _default: DefineComponent<{
|
|
|
56
71
|
type: PropType<boolean>;
|
|
57
72
|
default: boolean;
|
|
58
73
|
};
|
|
74
|
+
cache: {
|
|
75
|
+
type: PropType<boolean>;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
59
78
|
resetButton: {
|
|
60
79
|
type: PropType<boolean>;
|
|
61
80
|
default: boolean;
|
|
@@ -68,7 +87,9 @@ declare const _default: DefineComponent<{
|
|
|
68
87
|
small: boolean;
|
|
69
88
|
loading: boolean;
|
|
70
89
|
value: Record<string, any>;
|
|
90
|
+
defaultValue: Record<string, any>;
|
|
71
91
|
cols: number;
|
|
92
|
+
cache: boolean;
|
|
72
93
|
resetButton: boolean;
|
|
73
94
|
}, {}>;
|
|
74
95
|
export default _default;
|
|
@@ -66,15 +66,27 @@ export interface GDatePicker extends Omit<DatePicker, unUse> {
|
|
|
66
66
|
key: string;
|
|
67
67
|
options?: Array<SelectOption | SelectGroupOption>;
|
|
68
68
|
}
|
|
69
|
-
export interface GSelectPicker extends Omit<Select,
|
|
69
|
+
export interface GSelectPicker extends Omit<Select, 'title' | 'show' | 'multiple'> {
|
|
70
70
|
key: string;
|
|
71
|
+
multiple?: boolean;
|
|
72
|
+
}
|
|
73
|
+
export interface GSelect extends Omit<Select, unUse> {
|
|
74
|
+
type: 'select';
|
|
75
|
+
multiple?: boolean;
|
|
76
|
+
options: Array<SelectOption | SelectGroupOption> | any;
|
|
71
77
|
}
|
|
72
|
-
export type GroupInput = GInput | GInputNumber | GDatePicker | GSelectPicker;
|
|
78
|
+
export type GroupInput = GInput | GInputNumber | GSelect | GDatePicker | GSelectPicker;
|
|
73
79
|
export interface Group extends Omit<Base, unGroupUse> {
|
|
74
80
|
type: 'group';
|
|
75
81
|
options: Array<SelectOption | SelectGroupOption>;
|
|
76
|
-
input:
|
|
82
|
+
input: {
|
|
83
|
+
key: string;
|
|
84
|
+
options: {
|
|
85
|
+
[key: string]: GroupInput;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
77
88
|
width?: number | string;
|
|
89
|
+
inputTemp?: GroupInput;
|
|
78
90
|
}
|
|
79
91
|
export type ISearchBarType = {
|
|
80
92
|
[key in string]: Input | InputNumber | Select | Dropdown | Cascader | TreeSelect | DatePicker | TimePicker | Group;
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import type { ISearchBarType } from './interface';
|
|
3
3
|
declare const _default: DefineComponent<{
|
|
4
|
-
value: {
|
|
5
|
-
required: true;
|
|
6
|
-
type: ObjectConstructor;
|
|
7
|
-
default: () => {};
|
|
8
|
-
};
|
|
9
|
-
data: {
|
|
10
|
-
required: true;
|
|
11
|
-
type: PropType<ISearchBarType>;
|
|
12
|
-
default: () => {};
|
|
13
|
-
};
|
|
14
4
|
cols: {
|
|
15
5
|
type: PropType<number>;
|
|
16
6
|
default: number;
|
|
@@ -22,6 +12,7 @@ declare const _default: DefineComponent<{
|
|
|
22
12
|
}, {
|
|
23
13
|
more: Ref<boolean>;
|
|
24
14
|
offset: Ref<number>;
|
|
15
|
+
dataList: Ref<ISearchBarType>;
|
|
25
16
|
collapsed: Ref<boolean>;
|
|
26
17
|
searchData: Ref<{
|
|
27
18
|
[x: string]: any;
|
|
@@ -36,16 +27,6 @@ declare const _default: DefineComponent<{
|
|
|
36
27
|
dropValueChange: (key: string, value: string, item: any) => void;
|
|
37
28
|
dropDisplayToggle: (key: string) => void;
|
|
38
29
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
39
|
-
value: {
|
|
40
|
-
required: true;
|
|
41
|
-
type: ObjectConstructor;
|
|
42
|
-
default: () => {};
|
|
43
|
-
};
|
|
44
|
-
data: {
|
|
45
|
-
required: true;
|
|
46
|
-
type: PropType<ISearchBarType>;
|
|
47
|
-
default: () => {};
|
|
48
|
-
};
|
|
49
30
|
cols: {
|
|
50
31
|
type: PropType<number>;
|
|
51
32
|
default: number;
|
|
@@ -55,9 +36,7 @@ declare const _default: DefineComponent<{
|
|
|
55
36
|
default: boolean;
|
|
56
37
|
};
|
|
57
38
|
}>>, {
|
|
58
|
-
data: ISearchBarType;
|
|
59
39
|
small: boolean;
|
|
60
|
-
value: Record<string, any>;
|
|
61
40
|
cols: number;
|
|
62
41
|
}, {}>;
|
|
63
42
|
export default _default;
|