fit2cloud-ui-plus 0.0.1-beta.14 → 0.0.1-beta.17
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 +142 -117
- package/lib/fit2cloud-ui-plus.umd.js +1 -1
- package/package.json +2 -2
- package/src/components/filter-bar/FuFilter.vue +37 -29
- package/src/components/filter-bar/FuFilterBar.vue +25 -16
- package/src/components/filter-bar/FuFilterInput.vue +45 -0
- package/src/components/filter-bar/index.ts +4 -4
- package/src/components/read-write-switch/index.d.ts +2 -0
- package/src/components/read-write-switch/types.d.ts +4 -0
- package/src/components/search-bar/FuComplexSearch.vue +170 -0
- package/src/components/search-bar/FuQuickSearch.vue +54 -0
- package/src/components/search-bar/FuSearchBar.vue +158 -0
- package/src/components/search-bar/FuSearchBarButton.vue +22 -0
- package/src/components/search-bar/FuSearchContions.vue +29 -0
- package/src/components/search-bar/complex-components/FuComplexDate.vue +69 -0
- package/src/components/search-bar/complex-components/FuComplexDateTime.vue +68 -0
- package/src/components/search-bar/complex-components/FuComplexInput.vue +50 -0
- package/src/components/search-bar/complex-components/FuComplexSelect.vue +86 -0
- package/src/components/search-bar/complex-components/index.js +16 -0
- package/src/components/search-bar/complex-components/mixins.js +26 -0
- package/src/components/search-bar/index.js +16 -0
- package/src/components/search-bar/types.ts +23 -0
- package/src/components/table/index.d.ts +2 -0
- package/src/components/table/table-column-select/utils.d.ts +8 -0
- package/src/components/table/types.d.ts +2 -0
- package/src/components/tabs/FuTabs.vue +4 -3
- package/src/hooks/use-global-config/index.d.ts +1 -0
- package/src/hooks/use-locale/index.d.ts +14 -0
- package/src/hooks/use-size/index.d.ts +5 -0
- package/src/styles/common/variables.scss +5 -0
- package/src/styles/components/filter-bar.scss +6 -3
- package/src/styles/components/search-bar.scss +285 -0
- package/src/styles/components/table.scss +2 -1
- package/types/examples/pages/search/attributes.d.ts +57 -0
- package/types/examples/pages/search/demo/BaseSearchbar.vue.d.ts +66 -0
- package/types/examples/pages/search/demo/ComplexComponentsDemo.vue.d.ts +60 -0
- package/types/examples/pages/search/demo/ComplexSearchDemo.vue.d.ts +84 -0
- package/types/examples/pages/search/demo/CustomComponentsDemo.vue.d.ts +50 -0
- package/types/examples/pages/search/demo/EchoConditionsDemo.vue.d.ts +52 -0
- package/types/examples/pages/search/demo/QuickSearchDemo.vue.d.ts +18 -0
- package/types/examples/pages/search/demo/SearchBarButtonDemo.vue.d.ts +54 -0
- package/types/examples/pages/search/index.vue.d.ts +150 -0
- package/types/src/components/filter-bar/FuFilter.vue.d.ts +3 -0
- package/types/src/components/filter-bar/FuFilterBar.vue.d.ts +12 -1
- package/types/src/components/filter-bar/FuFilterInput.vue.d.ts +17 -0
- package/types/src/components/filter-bar/index.d.ts +2 -2
- package/types/src/components/search-bar/FuComplexSearch.vue.d.ts +2 -0
- package/types/src/components/search-bar/FuQuickSearch.vue.d.ts +33 -0
- package/types/src/components/search-bar/FuSearchBar.vue.d.ts +2 -0
- package/types/src/components/search-bar/FuSearchBarButton.vue.d.ts +12 -0
- package/types/src/components/search-bar/FuSearchContions.vue.d.ts +12 -0
- package/types/src/components/search-bar/complex-components/FuComplexDate.vue.d.ts +36 -0
- package/types/src/components/search-bar/complex-components/FuComplexDateTime.vue.d.ts +36 -0
- package/types/src/components/search-bar/complex-components/FuComplexInput.vue.d.ts +26 -0
- package/types/src/components/search-bar/complex-components/FuComplexSelect.vue.d.ts +50 -0
- package/types/src/components/search-bar/complex-components/index.d.ts +0 -0
- package/types/src/components/search-bar/complex-components/mixins.d.ts +6 -0
- package/types/src/components/search-bar/index.d.ts +0 -0
- package/types/src/components/search-bar/types.d.ts +17 -0
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/filter-bar/FuSearchInput.vue +0 -37
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ComplexCondition } from "../types";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
size: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
validator: (val: string) => val is string;
|
|
6
|
+
};
|
|
7
|
+
label: StringConstructor;
|
|
8
|
+
field: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
getCondition: () => ComplexCondition | undefined;
|
|
14
|
+
init: (v: any) => void;
|
|
15
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
size: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
validator: (val: string) => val is string;
|
|
19
|
+
};
|
|
20
|
+
label: StringConstructor;
|
|
21
|
+
field: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
}>>, {}>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { PropType } from "vue";
|
|
2
|
+
import { ComplexCondition, OptionProps } from "../types";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
size: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
validator: (val: string) => val is string;
|
|
7
|
+
};
|
|
8
|
+
multiple: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
label: StringConstructor;
|
|
13
|
+
field: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
options: {
|
|
18
|
+
type: PropType<OptionProps[]>;
|
|
19
|
+
default: never[];
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
22
|
+
getCondition: () => ComplexCondition | undefined;
|
|
23
|
+
init: (v: any) => void;
|
|
24
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
init: () => void;
|
|
26
|
+
}, string, 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
|
+
multiple: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
label: StringConstructor;
|
|
36
|
+
field: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
options: {
|
|
41
|
+
type: PropType<OptionProps[]>;
|
|
42
|
+
default: never[];
|
|
43
|
+
};
|
|
44
|
+
}>> & {
|
|
45
|
+
onInit?: (() => any) | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
multiple: boolean;
|
|
48
|
+
options: OptionProps[];
|
|
49
|
+
}>;
|
|
50
|
+
export default _default;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { InjectionKey, Ref } from "vue";
|
|
2
|
+
export declare const referenceKey: InjectionKey<Ref<ReferenceContext[]>>;
|
|
3
|
+
export interface ReferenceContext {
|
|
4
|
+
field: string;
|
|
5
|
+
init(v: any): void;
|
|
6
|
+
getCondition(): ComplexCondition | undefined;
|
|
7
|
+
}
|
|
8
|
+
export interface OptionProps {
|
|
9
|
+
label: string;
|
|
10
|
+
value: string | number;
|
|
11
|
+
}
|
|
12
|
+
export interface ComplexCondition {
|
|
13
|
+
field: string;
|
|
14
|
+
label?: string;
|
|
15
|
+
value: any;
|
|
16
|
+
valueLabel?: string;
|
|
17
|
+
}
|
package/src/.DS_Store
DELETED
|
Binary file
|
package/src/components/.DS_Store
DELETED
|
Binary file
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-input class="fu-search-input" prefix-icon="Search" v-model="quick" @input="input" @blur="blur" @keydown="keydown"
|
|
3
|
-
v-bind="$attrs" clearable :size="size"/>
|
|
4
|
-
</template>
|
|
5
|
-
|
|
6
|
-
<script setup lang="ts">
|
|
7
|
-
import { ref, watch } from "vue";
|
|
8
|
-
import { validateSize } from "@/tools/size";
|
|
9
|
-
defineOptions({ name: "FuSearchInput" });
|
|
10
|
-
|
|
11
|
-
const props = defineProps({
|
|
12
|
-
size: {
|
|
13
|
-
type: String,
|
|
14
|
-
validator: validateSize
|
|
15
|
-
},
|
|
16
|
-
value: String,
|
|
17
|
-
})
|
|
18
|
-
const emit = defineEmits(["input", "change"])
|
|
19
|
-
const quick = ref("")
|
|
20
|
-
|
|
21
|
-
watch(() => props.value, (val: any) => {
|
|
22
|
-
quick.value = val
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
function input(e: Event) {
|
|
26
|
-
emit("input", quick.value, e)
|
|
27
|
-
}
|
|
28
|
-
function blur(e: Event) {
|
|
29
|
-
emit("change", quick.value, e)
|
|
30
|
-
}
|
|
31
|
-
function keydown(e: Event) {
|
|
32
|
-
const event = e as KeyboardEvent
|
|
33
|
-
if (event.key === "Enter") {
|
|
34
|
-
emit("change", quick.value, e)
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
</script>
|