fit2cloud-ui-plus 0.0.1-beta.13 → 0.0.1-beta.16
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 +27 -28
- 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 +94 -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/FuTable.vue +3 -3
- 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/table/demo/TablePagination.vue.d.ts +1 -1
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/filter-bar/FuSearchInput.vue +0 -37
|
@@ -19,9 +19,8 @@
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
@include b(
|
|
22
|
+
@include b(filter-input) {
|
|
23
23
|
width: 240px;
|
|
24
|
-
margin-right: 10px;
|
|
25
24
|
.el-input__prefix, .el-input__suffix {
|
|
26
25
|
.el-input__icon {
|
|
27
26
|
color: $filter-color;
|
|
@@ -34,6 +33,10 @@
|
|
|
34
33
|
// }
|
|
35
34
|
}
|
|
36
35
|
|
|
36
|
+
@include b(filter-button) {
|
|
37
|
+
margin-left: 12px;
|
|
38
|
+
}
|
|
39
|
+
|
|
37
40
|
@include b(filter) {
|
|
38
41
|
display: flex;
|
|
39
42
|
align-items: center;
|
|
@@ -111,7 +114,7 @@
|
|
|
111
114
|
bottom: 0;
|
|
112
115
|
width: 100%;
|
|
113
116
|
height: 72px;
|
|
114
|
-
|
|
117
|
+
right: 20px;
|
|
115
118
|
display: flex;
|
|
116
119
|
justify-content: flex-end;
|
|
117
120
|
align-items: center;
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
@use "../common/mixins.scss" as *;
|
|
2
|
+
@use "../common/variables.scss" as *;
|
|
3
|
+
|
|
4
|
+
@include b(search-bar) {
|
|
5
|
+
@include flex-row(flex-start, center);
|
|
6
|
+
position: relative;
|
|
7
|
+
width: $fu-search-bar-width;
|
|
8
|
+
height: $fu-search-bar-height;
|
|
9
|
+
|
|
10
|
+
&:after {
|
|
11
|
+
content: "";
|
|
12
|
+
position: absolute;
|
|
13
|
+
bottom: 0;
|
|
14
|
+
left: 0;
|
|
15
|
+
height: 1px;
|
|
16
|
+
width: 100%;
|
|
17
|
+
background-color: #D5D5D5;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@include e(content) {
|
|
21
|
+
@include flex-row(flex-start, center);
|
|
22
|
+
margin-right: 10px;
|
|
23
|
+
height: 100%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@include e(buttons) {
|
|
27
|
+
@include flex-row(flex-end, center);
|
|
28
|
+
flex: auto;
|
|
29
|
+
height: 100%;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@include b(quick-search) {
|
|
33
|
+
&:after {
|
|
34
|
+
content: none;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@include b(search-bar-button) {
|
|
40
|
+
&.el-button {
|
|
41
|
+
@include active-scale(0.9);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@include b(search-conditions) {
|
|
46
|
+
@include flex-row(flex-start, center);
|
|
47
|
+
overflow-x: auto;
|
|
48
|
+
overflow-y: hidden;
|
|
49
|
+
height: calc(100% - 2px);
|
|
50
|
+
|
|
51
|
+
&::-webkit-scrollbar {
|
|
52
|
+
height: 6px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&::-webkit-scrollbar-thumb {
|
|
56
|
+
border-radius: 5px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&::-webkit-scrollbar-track {
|
|
60
|
+
border-radius: 5px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@include m(medium) {
|
|
64
|
+
font-size: 14px;
|
|
65
|
+
|
|
66
|
+
@include e(item) {
|
|
67
|
+
height: 28px;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@include m(small) {
|
|
72
|
+
font-size: 13px;
|
|
73
|
+
|
|
74
|
+
@include e(item) {
|
|
75
|
+
height: 26px;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@include m(mini) {
|
|
80
|
+
font-size: 12px;
|
|
81
|
+
|
|
82
|
+
@include e(item) {
|
|
83
|
+
height: 24px;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@include e(item) {
|
|
88
|
+
@include flex-row(flex-start, center);
|
|
89
|
+
flex-shrink: 0;
|
|
90
|
+
position: relative;
|
|
91
|
+
box-sizing: border-box;
|
|
92
|
+
padding: 0 10px;
|
|
93
|
+
border-radius: 50px;
|
|
94
|
+
color: $fu-search-bar-condition-color;
|
|
95
|
+
background-color: $fu-search-bar-condition-bgColor;
|
|
96
|
+
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .2), 0 1px 1px 0 rgba(0, 0, 0, .14), 0 2px 1px -1px rgba(0, 0, 0, .12);
|
|
97
|
+
margin-left: 10px;
|
|
98
|
+
font-size: inherit;
|
|
99
|
+
|
|
100
|
+
&:last-child {
|
|
101
|
+
margin-right: 10px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
div + div {
|
|
105
|
+
margin-left: 4px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.condition-value {
|
|
109
|
+
font-style: italic;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.condition-remove {
|
|
113
|
+
@include active-scale(0.9);
|
|
114
|
+
margin-left: 6px;
|
|
115
|
+
margin-right: -6px;
|
|
116
|
+
cursor: pointer;
|
|
117
|
+
|
|
118
|
+
&:hover {
|
|
119
|
+
color: var(--el-color-primary);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@include b(quick-search) {
|
|
126
|
+
@include flex-row(flex-start, center);
|
|
127
|
+
min-width: 200px;
|
|
128
|
+
position: relative;
|
|
129
|
+
|
|
130
|
+
@include m(medium) {
|
|
131
|
+
font-size: 14px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@include m(small) {
|
|
135
|
+
font-size: 13px;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@include m(mini) {
|
|
139
|
+
font-size: 12px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&:after {
|
|
143
|
+
content: "";
|
|
144
|
+
position: absolute;
|
|
145
|
+
bottom: 0;
|
|
146
|
+
left: 0;
|
|
147
|
+
height: 1px;
|
|
148
|
+
width: 100%;
|
|
149
|
+
background-color: #D5D5D5;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
input {
|
|
153
|
+
border: none;
|
|
154
|
+
position: relative;
|
|
155
|
+
font-size: inherit;
|
|
156
|
+
padding: 10px;
|
|
157
|
+
width: 200px;
|
|
158
|
+
box-sizing: border-box;
|
|
159
|
+
color: var(--el-input-text-color);
|
|
160
|
+
background-color: var(--el-input-bg-color);
|
|
161
|
+
|
|
162
|
+
&:focus {
|
|
163
|
+
outline: none;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&::placeholder {
|
|
167
|
+
color: var(--el-input-placeholder-color);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.clean-button {
|
|
172
|
+
@include active-scale;
|
|
173
|
+
cursor: pointer;
|
|
174
|
+
|
|
175
|
+
&:hover {
|
|
176
|
+
color: var(--el-color-primary);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@include b(complex-search) {
|
|
182
|
+
@include e(trigger) {
|
|
183
|
+
i {
|
|
184
|
+
transition: transform 0.2s;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
@include when(active) {
|
|
188
|
+
i {
|
|
189
|
+
transform: rotate(90deg);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
@include b(complex-components) {
|
|
196
|
+
@include e(body) {
|
|
197
|
+
width: 100%;
|
|
198
|
+
margin: 5px;
|
|
199
|
+
min-width: 200px;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
@include e(footer) {
|
|
203
|
+
width: 100%;
|
|
204
|
+
text-align: center;
|
|
205
|
+
margin: 5px 0;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
@include b(operator-component) {
|
|
210
|
+
@include flex-row(flex-start, center);
|
|
211
|
+
padding: 5px;
|
|
212
|
+
|
|
213
|
+
@include e(label) {
|
|
214
|
+
text-align: left;
|
|
215
|
+
width: 120px;
|
|
216
|
+
padding: 0 5px;
|
|
217
|
+
flex-grow: 0;
|
|
218
|
+
flex-shrink: 0;
|
|
219
|
+
font-size: inherit;
|
|
220
|
+
|
|
221
|
+
@include m(small) {
|
|
222
|
+
width: 100px;
|
|
223
|
+
font-size: 13px;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
@include m(mini) {
|
|
227
|
+
width: 100px;
|
|
228
|
+
font-size: 12px;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
@include e(operator) {
|
|
233
|
+
padding: 0 5px;
|
|
234
|
+
width: 120px;
|
|
235
|
+
flex-grow: 0;
|
|
236
|
+
flex-shrink: 0;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
@include e(value) {
|
|
240
|
+
padding: 0 5px;
|
|
241
|
+
flex-grow: 1;
|
|
242
|
+
min-width: 240px;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
@include b(complex-select) {
|
|
247
|
+
&.el-select {
|
|
248
|
+
width: 100% !important;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
@include b(complex-data) {
|
|
253
|
+
&.el-date-editor {
|
|
254
|
+
width: 100% !important;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
@include b(complex-data-time) {
|
|
259
|
+
&.el-date-editor {
|
|
260
|
+
width: 100% !important;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
@include b(complex-input-number) {
|
|
265
|
+
margin-right: -10px;
|
|
266
|
+
display: flex;
|
|
267
|
+
align-items: center;
|
|
268
|
+
|
|
269
|
+
@include e(input) {
|
|
270
|
+
.is-hide {
|
|
271
|
+
.el-input-number__decrease {
|
|
272
|
+
visibility: hidden;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.el-input-number__increase {
|
|
276
|
+
visibility: hidden;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.range-separator {
|
|
283
|
+
margin: 0 8px
|
|
284
|
+
}
|
|
285
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare
|
|
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
2
|
export default _default;
|
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>
|