fit2cloud-ui-plus 0.0.1-beta.17 → 0.0.1-beta.18
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/fit2cloud-ui-plus.es.js +818 -79
- package/lib/fit2cloud-ui-plus.umd.js +1 -1
- package/package.json +2 -2
- package/src/components/search-bar/FuComplexSearch.vue +102 -170
- package/src/components/search-bar/FuQuickSearch.vue +17 -10
- package/src/components/search-bar/FuSearchBar.vue +154 -158
- package/src/components/search-bar/FuSearchBarButton.vue +12 -14
- package/src/components/search-bar/FuSearchContions.vue +24 -16
- package/src/components/search-bar/complex-components/FuComplexDate.vue +5 -6
- package/src/components/search-bar/complex-components/FuComplexDateTime.vue +20 -17
- package/src/components/search-bar/complex-components/FuComplexInput.vue +7 -2
- package/src/components/search-bar/complex-components/FuComplexSelect.vue +14 -9
- package/src/components/search-bar/index.ts +20 -0
- package/src/components/search-bar/types.ts +1 -1
- package/src/styles/common/function.scss +14 -4
- package/src/styles/common/mixins.scss +9 -4
- package/src/styles/common/variables.scss +33 -11
- package/src/styles/components/filter-bar.scss +9 -10
- package/src/styles/components/search-bar.scss +27 -71
- package/src/styles/components/table.scss +5 -5
- package/src/styles/index.scss +2 -0
- package/src/styles/var.scss +8 -0
- package/types/examples/pages/search-bar/attributes.d.ts +63 -0
- package/types/examples/pages/search-bar/demo/BaseSearchbar.vue.d.ts +31 -0
- package/types/examples/pages/search-bar/demo/ComplexSearchDemo.vue.d.ts +40 -0
- package/types/examples/pages/search-bar/demo/EchoConditionsDemo.vue.d.ts +32 -0
- package/types/examples/pages/search-bar/demo/QuickSearchDemo.vue.d.ts +7 -0
- package/types/examples/pages/search-bar/demo/SearchBarButtonDemo.vue.d.ts +32 -0
- package/types/examples/pages/search-bar/index.vue.d.ts +2 -0
- package/types/src/components/search-bar/FuComplexSearch.vue.d.ts +21 -1
- package/types/src/components/search-bar/FuQuickSearch.vue.d.ts +3 -7
- package/types/src/components/search-bar/FuSearchBar.vue.d.ts +57 -1
- package/types/src/components/search-bar/FuSearchBarButton.vue.d.ts +13 -11
- package/types/src/components/search-bar/FuSearchContions.vue.d.ts +25 -11
- package/types/src/components/search-bar/index.d.ts +2 -0
- package/types/src/components/search-bar/types.d.ts +1 -1
- package/src/components/read-write-switch/index.d.ts +0 -2
- package/src/components/read-write-switch/types.d.ts +0 -4
- package/src/components/search-bar/complex-components/index.js +0 -16
- package/src/components/search-bar/complex-components/mixins.js +0 -26
- package/src/components/search-bar/index.js +0 -16
- package/src/components/table/index.d.ts +0 -2
- package/src/components/table/table-column-select/utils.d.ts +0 -8
- package/src/components/table/types.d.ts +0 -2
package/src/styles/index.scss
CHANGED
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
@use "element-plus/theme-chalk/src/index.scss" as *;
|
|
3
3
|
@use "./components/speed-dial";
|
|
4
4
|
@use "./components/filter-bar";
|
|
5
|
+
@use "./components/search-bar";
|
|
5
6
|
@use "./components/table";
|
|
6
7
|
@use "./components/steps";
|
|
7
8
|
@use "./components/read-write-switch";
|
|
8
9
|
@use "./components/split-pane";
|
|
9
10
|
@use "./components/tabs";
|
|
10
11
|
@use "./components/virtual-scroller";
|
|
12
|
+
@use "./var";
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 说明文档
|
|
3
|
+
* @name 表格名称
|
|
4
|
+
* @header 表格头部参数,任意定义
|
|
5
|
+
* @table table内容,字段要和header定义的属性保持一直
|
|
6
|
+
* @children 多表使用
|
|
7
|
+
*/
|
|
8
|
+
export declare const attributes: {
|
|
9
|
+
name: string;
|
|
10
|
+
children: ({
|
|
11
|
+
name: string;
|
|
12
|
+
header: {
|
|
13
|
+
prop: string;
|
|
14
|
+
desc: string;
|
|
15
|
+
type: string;
|
|
16
|
+
enum: string;
|
|
17
|
+
default: string;
|
|
18
|
+
event?: undefined;
|
|
19
|
+
value?: undefined;
|
|
20
|
+
name?: undefined;
|
|
21
|
+
};
|
|
22
|
+
table: {
|
|
23
|
+
prop: string;
|
|
24
|
+
desc: string;
|
|
25
|
+
type: string;
|
|
26
|
+
enum: string;
|
|
27
|
+
default: string;
|
|
28
|
+
}[];
|
|
29
|
+
} | {
|
|
30
|
+
name: string;
|
|
31
|
+
header: {
|
|
32
|
+
event: string;
|
|
33
|
+
desc: string;
|
|
34
|
+
value: string;
|
|
35
|
+
prop?: undefined;
|
|
36
|
+
type?: undefined;
|
|
37
|
+
enum?: undefined;
|
|
38
|
+
default?: undefined;
|
|
39
|
+
name?: undefined;
|
|
40
|
+
};
|
|
41
|
+
table: {
|
|
42
|
+
event: string;
|
|
43
|
+
desc: string;
|
|
44
|
+
value: string;
|
|
45
|
+
}[];
|
|
46
|
+
} | {
|
|
47
|
+
name: string;
|
|
48
|
+
header: {
|
|
49
|
+
name: string;
|
|
50
|
+
desc: string;
|
|
51
|
+
prop?: undefined;
|
|
52
|
+
type?: undefined;
|
|
53
|
+
enum?: undefined;
|
|
54
|
+
default?: undefined;
|
|
55
|
+
event?: undefined;
|
|
56
|
+
value?: undefined;
|
|
57
|
+
};
|
|
58
|
+
table: {
|
|
59
|
+
name: string;
|
|
60
|
+
desc: string;
|
|
61
|
+
}[];
|
|
62
|
+
})[];
|
|
63
|
+
}[];
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
components: ({
|
|
3
|
+
field: string;
|
|
4
|
+
label: string;
|
|
5
|
+
component: string;
|
|
6
|
+
options?: undefined;
|
|
7
|
+
change?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
field: string;
|
|
10
|
+
label: string;
|
|
11
|
+
component: string;
|
|
12
|
+
options: {
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
}[];
|
|
16
|
+
change: (val: any) => void;
|
|
17
|
+
} | {
|
|
18
|
+
field: string;
|
|
19
|
+
label: string;
|
|
20
|
+
component: string;
|
|
21
|
+
options: {
|
|
22
|
+
label: string;
|
|
23
|
+
value: string;
|
|
24
|
+
}[];
|
|
25
|
+
change?: undefined;
|
|
26
|
+
})[];
|
|
27
|
+
condition: import("vue").Ref<{}>;
|
|
28
|
+
close: () => void;
|
|
29
|
+
search: (obj: any) => void;
|
|
30
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
options: {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
}[];
|
|
6
|
+
components: ({
|
|
7
|
+
field: string;
|
|
8
|
+
label: string;
|
|
9
|
+
component: string;
|
|
10
|
+
clearable: boolean;
|
|
11
|
+
options?: undefined;
|
|
12
|
+
change?: undefined;
|
|
13
|
+
filterable?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
field: string;
|
|
16
|
+
label: string;
|
|
17
|
+
component: string;
|
|
18
|
+
options: {
|
|
19
|
+
label: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}[];
|
|
22
|
+
change: (val: any) => void;
|
|
23
|
+
filterable: boolean;
|
|
24
|
+
clearable?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
field: string;
|
|
27
|
+
label: string;
|
|
28
|
+
component: string;
|
|
29
|
+
clearable?: undefined;
|
|
30
|
+
options?: undefined;
|
|
31
|
+
change?: undefined;
|
|
32
|
+
filterable?: undefined;
|
|
33
|
+
})[];
|
|
34
|
+
condition: import("vue").Ref<{}>;
|
|
35
|
+
condition2: import("vue").Ref<{}>;
|
|
36
|
+
change: (value: string) => void;
|
|
37
|
+
search: (obj: any) => void;
|
|
38
|
+
search2: (obj: any) => void;
|
|
39
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
40
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
components: ({
|
|
3
|
+
field: string;
|
|
4
|
+
label: string;
|
|
5
|
+
component: string;
|
|
6
|
+
options?: undefined;
|
|
7
|
+
change?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
field: string;
|
|
10
|
+
label: string;
|
|
11
|
+
component: string;
|
|
12
|
+
options: {
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
}[];
|
|
16
|
+
change: (val: any) => void;
|
|
17
|
+
} | {
|
|
18
|
+
field: string;
|
|
19
|
+
label: string;
|
|
20
|
+
component: string;
|
|
21
|
+
options: {
|
|
22
|
+
label: string;
|
|
23
|
+
value: string;
|
|
24
|
+
}[];
|
|
25
|
+
change?: undefined;
|
|
26
|
+
})[];
|
|
27
|
+
condition: import("vue").Ref<{}>;
|
|
28
|
+
searchRef: any;
|
|
29
|
+
init: () => void;
|
|
30
|
+
search: (obj: any) => void;
|
|
31
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
condition: import("vue").Ref<{}>;
|
|
3
|
+
quick: import("vue").Ref<string>;
|
|
4
|
+
change: (value: string) => void;
|
|
5
|
+
search: (obj: any) => void;
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
components: ({
|
|
3
|
+
field: string;
|
|
4
|
+
label: string;
|
|
5
|
+
component: string;
|
|
6
|
+
options?: undefined;
|
|
7
|
+
change?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
field: string;
|
|
10
|
+
label: string;
|
|
11
|
+
component: string;
|
|
12
|
+
options: {
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
}[];
|
|
16
|
+
change: (val: any) => void;
|
|
17
|
+
} | {
|
|
18
|
+
field: string;
|
|
19
|
+
label: string;
|
|
20
|
+
component: string;
|
|
21
|
+
options: {
|
|
22
|
+
label: string;
|
|
23
|
+
value: string;
|
|
24
|
+
}[];
|
|
25
|
+
change?: undefined;
|
|
26
|
+
})[];
|
|
27
|
+
condition: import("vue").Ref<{}>;
|
|
28
|
+
download: (e: Event) => void;
|
|
29
|
+
upload: (e: Event) => void;
|
|
30
|
+
search: (obj: any) => void;
|
|
31
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -1,2 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
import { PropType } from "vue";
|
|
2
|
+
import { ComplexCondition } from "./types";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
size: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
validator: (val: string) => val is string;
|
|
7
|
+
};
|
|
8
|
+
components: PropType<any[]>;
|
|
9
|
+
}, {
|
|
10
|
+
setConditions: (conditionObj: any) => ComplexCondition[];
|
|
11
|
+
close: () => void;
|
|
12
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close")[], "change" | "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
size: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
validator: (val: string) => val is string;
|
|
16
|
+
};
|
|
17
|
+
components: PropType<any[]>;
|
|
18
|
+
}>> & {
|
|
19
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
}, {}>;
|
|
2
22
|
export default _default;
|
|
@@ -9,11 +9,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
type: BooleanConstructor;
|
|
10
10
|
default: boolean;
|
|
11
11
|
};
|
|
12
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
-
"update:modelValue": (value: string) => void;
|
|
14
|
-
} & {
|
|
15
|
-
change: (value: string, event: Event) => void;
|
|
16
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
13
|
size: {
|
|
18
14
|
type: StringConstructor;
|
|
19
15
|
validator: (val: string) => val is string;
|
|
@@ -25,8 +21,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
21
|
default: boolean;
|
|
26
22
|
};
|
|
27
23
|
}>> & {
|
|
28
|
-
onChange?: ((
|
|
29
|
-
"onUpdate:modelValue"?: ((
|
|
24
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
30
26
|
}, {
|
|
31
27
|
useIcon: boolean;
|
|
32
28
|
}>;
|
|
@@ -1,2 +1,58 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
size: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
validator: (val: string) => val is string;
|
|
5
|
+
};
|
|
6
|
+
quickKey: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
quickPlaceholder: StringConstructor;
|
|
11
|
+
useCleanButton: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
useRefreshButton: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
useQuickSearch: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
components: ArrayConstructor;
|
|
24
|
+
}, {
|
|
25
|
+
setConditions: (conditionObj: any) => void;
|
|
26
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "exec")[], "close" | "exec", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
+
size: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
validator: (val: string) => val is string;
|
|
30
|
+
};
|
|
31
|
+
quickKey: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
quickPlaceholder: StringConstructor;
|
|
36
|
+
useCleanButton: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
useRefreshButton: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
useQuickSearch: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
components: ArrayConstructor;
|
|
49
|
+
}>> & {
|
|
50
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
onExec?: ((...args: any[]) => any) | undefined;
|
|
52
|
+
}, {
|
|
53
|
+
useQuickSearch: boolean;
|
|
54
|
+
quickKey: string;
|
|
55
|
+
useCleanButton: boolean;
|
|
56
|
+
useRefreshButton: boolean;
|
|
57
|
+
}>;
|
|
2
58
|
export default _default;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
size: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
validator: (val: string) => val is string;
|
|
5
|
+
};
|
|
6
|
+
tooltip: StringConstructor;
|
|
7
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
+
size: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
validator: (val: string) => val is string;
|
|
11
|
+
};
|
|
12
|
+
tooltip: StringConstructor;
|
|
13
|
+
}>>, {}>;
|
|
11
14
|
export default _default;
|
|
12
|
-
import { validateSize } from "@/tools/size";
|
|
@@ -1,12 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
1
|
+
import { PropType } from "vue";
|
|
2
|
+
import { ComplexCondition } from "./types";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
size: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
validator: (val: string) => val is string;
|
|
7
|
+
};
|
|
8
|
+
conditions: {
|
|
9
|
+
type: PropType<ComplexCondition[]>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
change: (conditions: ComplexCondition[]) => void;
|
|
14
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
size: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
validator: (val: string) => val is string;
|
|
18
|
+
};
|
|
19
|
+
conditions: {
|
|
20
|
+
type: PropType<ComplexCondition[]>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
}>> & {
|
|
24
|
+
onChange?: ((conditions: ComplexCondition[]) => any) | undefined;
|
|
25
|
+
}, {}>;
|
|
12
26
|
export default _default;
|
|
@@ -2,7 +2,7 @@ import { InjectionKey, Ref } from "vue";
|
|
|
2
2
|
export declare const referenceKey: InjectionKey<Ref<ReferenceContext[]>>;
|
|
3
3
|
export interface ReferenceContext {
|
|
4
4
|
field: string;
|
|
5
|
-
init(v
|
|
5
|
+
init(v?: any): void;
|
|
6
6
|
getCondition(): ComplexCondition | undefined;
|
|
7
7
|
}
|
|
8
8
|
export interface OptionProps {
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// import locale from "@/locale";
|
|
2
|
-
//
|
|
3
|
-
// const components = require.context('./', true, /\.vue$/)
|
|
4
|
-
//
|
|
5
|
-
// const FuComplexComponents = {
|
|
6
|
-
// install: function (Vue, opts = {}) {
|
|
7
|
-
// locale.use(opts.locale);
|
|
8
|
-
// locale.i18n(opts.i18n);
|
|
9
|
-
// components.keys().map(key => {
|
|
10
|
-
// const component = components(key).default
|
|
11
|
-
// Vue.component(component.name, component);
|
|
12
|
-
// })
|
|
13
|
-
// }
|
|
14
|
-
// }
|
|
15
|
-
//
|
|
16
|
-
// export default FuComplexComponents;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import Locale from "@/mixins/locale";
|
|
2
|
-
import ConfigSize from "@/mixins/config-size";
|
|
3
|
-
import {ComplexCondition} from "@/components/search-bar/model";
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
props: ConfigSize.props,
|
|
7
|
-
methods: {
|
|
8
|
-
...Locale.methods,
|
|
9
|
-
createCondition(value, operator) {
|
|
10
|
-
this.value = value
|
|
11
|
-
this.operator = operator
|
|
12
|
-
return this.getCondition()
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
computed: {
|
|
16
|
-
...ConfigSize.computed,
|
|
17
|
-
operatorLabel() {
|
|
18
|
-
for (let operator of this.operators) {
|
|
19
|
-
if (operator.value === this.operator) {
|
|
20
|
-
return this.t(operator.label)
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
return this.operator
|
|
24
|
-
},
|
|
25
|
-
}
|
|
26
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// import FuSearchBar from "./FuSearchBar"
|
|
2
|
-
// import FuQuickSearch from "./FuQuickSearch"
|
|
3
|
-
// import FuSearchBarButton from "./FuSearchBarButton"
|
|
4
|
-
// import FuComplexComponents from "./complex-components"
|
|
5
|
-
// import locale from "@/locale"
|
|
6
|
-
//
|
|
7
|
-
// FuSearchBar.install = function (Vue, opts = {}) {
|
|
8
|
-
// locale.use(opts.locale)
|
|
9
|
-
// locale.i18n(opts.i18n)
|
|
10
|
-
// Vue.component(FuSearchBar.name, FuSearchBar)
|
|
11
|
-
// Vue.component(FuSearchBarButton.name, FuSearchBarButton)
|
|
12
|
-
// Vue.component(FuQuickSearch.name, FuQuickSearch)
|
|
13
|
-
// Vue.use(FuComplexComponents)
|
|
14
|
-
// }
|
|
15
|
-
//
|
|
16
|
-
// export default FuSearchBar
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const tableColumnSelect: (localKey: any) => {
|
|
2
|
-
columnsKey: import("vue").ComputedRef<string>;
|
|
3
|
-
dragstart: (event: DragEvent, index: any) => void;
|
|
4
|
-
dragenter: (event: DragEvent) => void;
|
|
5
|
-
dragleave: (event: DragEvent) => void;
|
|
6
|
-
dragend: (event: DragEvent) => void;
|
|
7
|
-
drop: (event: DragEvent, list: any, index: number) => void;
|
|
8
|
-
};
|