fit2cloud-ui-plus 0.0.1-beta.16 → 0.0.1-beta.19
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 +1057 -242
- package/lib/fit2cloud-ui-plus.umd.js +1 -1
- package/package.json +2 -2
- package/src/components/filter-bar/FuFilter.vue +3 -2
- package/src/components/filter-bar/FuFilterBar.vue +5 -5
- package/src/components/filter-bar/FuFilterInput.vue +4 -1
- package/src/components/filter-bar/filter-components/FuFilterDate.vue +17 -13
- package/src/components/filter-bar/filter-components/FuFilterDateTime.vue +4 -4
- package/src/components/filter-bar/filter-components/FuFilterSelect.vue +5 -4
- package/src/components/read-write-switch/FuSelectRwSwitch.vue +23 -10
- package/src/components/search-bar/FuComplexSearch.vue +66 -132
- package/src/components/search-bar/FuQuickSearch.vue +21 -51
- package/src/components/search-bar/FuSearchBar.vue +120 -125
- package/src/components/search-bar/FuSearchBarButton.vue +15 -14
- package/src/components/search-bar/FuSearchContions.vue +26 -15
- package/src/components/search-bar/complex-components/FuComplexDate.vue +8 -7
- package/src/components/search-bar/complex-components/FuComplexDateTime.vue +23 -17
- package/src/components/search-bar/complex-components/FuComplexInput.vue +10 -3
- package/src/components/search-bar/complex-components/FuComplexSelect.vue +17 -10
- package/src/components/search-bar/index.ts +20 -0
- package/src/components/search-bar/types.ts +1 -1
- package/src/hooks/index.ts +0 -1
- package/src/hooks/use-global-config/index.ts +26 -8
- package/src/hooks/use-locale/index.ts +1 -1
- package/src/hooks/use-size/index.ts +11 -5
- package/src/index.ts +5 -2
- 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/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/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/examples/pages/table/demo/TablePagination.vue.d.ts +1 -1
- 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/read-write-switch/FuSelectRwSwitch.vue.d.ts +11 -1
- package/types/src/components/search-bar/FuComplexSearch.vue.d.ts +22 -0
- package/types/src/components/search-bar/FuQuickSearch.vue.d.ts +29 -0
- package/types/src/components/search-bar/FuSearchBar.vue.d.ts +58 -0
- package/types/src/components/search-bar/FuSearchBarButton.vue.d.ts +14 -0
- package/types/src/components/search-bar/FuSearchContions.vue.d.ts +26 -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 +2 -0
- package/types/src/components/search-bar/types.d.ts +17 -0
- package/types/src/hooks/use-global-config/index.d.ts +9 -1
- package/types/src/hooks/use-size/index.d.ts +5 -1
- package/types/src/index.d.ts +2 -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/hooks/use-global-config/index.d.ts +0 -1
- package/src/hooks/use-locale/index.d.ts +0 -14
- package/src/hooks/use-size/index.d.ts +0 -5
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import
|
|
1
|
+
import {computed, getCurrentInstance, ref, unref} from 'vue'
|
|
2
|
+
import {useGlobalConfig} from '@/hooks'
|
|
3
|
+
import type {ComputedRef} from 'vue'
|
|
4
|
+
import type {ComponentSize} from '@/tools/size'
|
|
5
|
+
import {validateSize} from "@/tools/size";
|
|
6
|
+
import {MaybeRef} from "@vueuse/core";
|
|
6
7
|
|
|
7
8
|
export const useProp = <T>(name: string): ComputedRef<T | undefined> => {
|
|
8
9
|
const vm = getCurrentInstance()!
|
|
@@ -27,3 +28,8 @@ export const useSize = (
|
|
|
27
28
|
)
|
|
28
29
|
}
|
|
29
30
|
|
|
31
|
+
export const useSizeProp = {
|
|
32
|
+
type: String,
|
|
33
|
+
validator: validateSize,
|
|
34
|
+
}
|
|
35
|
+
|
package/src/index.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import PackageJSON from "../package.json"
|
|
2
2
|
|
|
3
|
-
import type {
|
|
3
|
+
import type {App} from 'vue'
|
|
4
|
+
import {GlobalConfig, provideGlobalConfig} from "@/hooks";
|
|
5
|
+
|
|
4
6
|
const components = import.meta.globEager('@/components/*/index.ts');
|
|
5
7
|
|
|
6
|
-
const install = (app: App): void => {
|
|
8
|
+
const install = (app: App, config: GlobalConfig): void => {
|
|
7
9
|
Object.keys(components).forEach(key => {
|
|
8
10
|
let component = components[key].default;
|
|
9
11
|
app.use(component)
|
|
10
12
|
})
|
|
13
|
+
provideGlobalConfig(config)
|
|
11
14
|
}
|
|
12
15
|
|
|
13
16
|
const plugin = {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
// join var name
|
|
46
|
-
// joinVarName(('button', 'text-color')) => '--
|
|
46
|
+
// joinVarName(('button', 'text-color')) => '--fu-button-text-color'
|
|
47
47
|
@function joinVarName($list) {
|
|
48
48
|
$name: '--' + config.$namespace;
|
|
49
49
|
@each $item in $list {
|
|
@@ -54,17 +54,17 @@
|
|
|
54
54
|
@return $name;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
// getCssVarName('button', 'text-color') => '--
|
|
57
|
+
// getCssVarName('button', 'text-color') => '--fu-button-text-color'
|
|
58
58
|
@function getCssVarName($args...) {
|
|
59
59
|
@return joinVarName($args);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
// getCssVar('button', 'text-color') => var(--
|
|
62
|
+
// getCssVar('button', 'text-color') => var(--fu-button-text-color)
|
|
63
63
|
@function getCssVar($args...) {
|
|
64
64
|
@return var(#{joinVarName($args)});
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
// bem('block', 'element', 'modifier') => '
|
|
67
|
+
// bem('block', 'element', 'modifier') => 'fu-block__element--modifier'
|
|
68
68
|
@function bem($block, $element: '', $modifier: '') {
|
|
69
69
|
$name: config.$namespace + config.$common-separator + $block;
|
|
70
70
|
|
|
@@ -79,3 +79,13 @@
|
|
|
79
79
|
// @debug $name;
|
|
80
80
|
@return $name;
|
|
81
81
|
}
|
|
82
|
+
|
|
83
|
+
@function str-replace($string, $search, $replace: '') {
|
|
84
|
+
$index: str-index($string, $search);
|
|
85
|
+
|
|
86
|
+
@if $index {
|
|
87
|
+
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@return $string;
|
|
91
|
+
}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
@use 'function' as *;
|
|
2
|
-
@use 'variables' as *;
|
|
3
|
-
// forward mixins
|
|
4
|
-
@forward 'config';
|
|
5
|
-
@forward 'function';
|
|
6
2
|
@use 'config' as *;
|
|
7
3
|
|
|
8
4
|
// BEM
|
|
@@ -83,3 +79,12 @@
|
|
|
83
79
|
}
|
|
84
80
|
}
|
|
85
81
|
|
|
82
|
+
@mixin set-css-var($name, $value) {
|
|
83
|
+
#{joinVarName($name)}: #{$value};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@mixin set-component-css-var($name, $variables) {
|
|
87
|
+
@each $attribute, $value in $variables {
|
|
88
|
+
#{getCssVarName($name, $attribute)}: #{$value};
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
1
2
|
|
|
2
3
|
@forward 'element-plus/theme-chalk/src/common/var.scss' with (
|
|
3
4
|
$colors: (
|
|
@@ -14,16 +15,37 @@
|
|
|
14
15
|
);
|
|
15
16
|
|
|
16
17
|
// fit2cloud ui variables
|
|
17
|
-
$
|
|
18
|
+
$fu-search-bar: () !default;
|
|
19
|
+
$fu-search-bar: map.deep-merge(
|
|
20
|
+
(
|
|
21
|
+
'width': 100%,
|
|
22
|
+
'height': 48px,
|
|
23
|
+
'condition-color': #424242,
|
|
24
|
+
'condition-bgColor': #E6E6E6,
|
|
25
|
+
),
|
|
26
|
+
$fu-search-bar
|
|
27
|
+
);
|
|
28
|
+
$fu-search-bar-width: map.get($fu-search-bar, 'width') !default;
|
|
29
|
+
$fu-search-bar-height: map.get($fu-search-bar, 'height') !default;
|
|
30
|
+
$fu-search-bar-condition-color: map.get($fu-search-bar, 'condition-color') !default;
|
|
31
|
+
$fu-search-bar-condition-bgColor: map.get($fu-search-bar, 'condition-bgColor') !default;
|
|
18
32
|
|
|
19
|
-
$fu-
|
|
20
|
-
$fu-
|
|
21
|
-
|
|
22
|
-
|
|
33
|
+
$fu-filter-bar: () !default;
|
|
34
|
+
$fu-filter-bar: map.deep-merge(
|
|
35
|
+
(
|
|
36
|
+
'color': #646A73,
|
|
37
|
+
'drawer-color': #646A73,
|
|
38
|
+
'condition-color': #0C296E,
|
|
39
|
+
'condition-bgColor': #3370FF19,
|
|
40
|
+
'option-bgColor': #F5F6F7,
|
|
41
|
+
'scroll-bgColor': #1F232919
|
|
42
|
+
),
|
|
43
|
+
$fu-filter-bar
|
|
44
|
+
);
|
|
23
45
|
|
|
24
|
-
$filter-color:
|
|
25
|
-
$filter-drawer-color:
|
|
26
|
-
$filter-condition-color:
|
|
27
|
-
$filter-condition-bgColor:
|
|
28
|
-
$filter-option-bgColor:
|
|
29
|
-
$filter-scroll-bgColor:
|
|
46
|
+
$fu-filter-bar-color: map.get($fu-filter-bar, 'color') !default;
|
|
47
|
+
$fu-filter-bar-drawer-color: map.get($fu-filter-bar, 'drawer-color') !default;
|
|
48
|
+
$fu-filter-bar-condition-color: map.get($fu-filter-bar, 'condition-color') !default;
|
|
49
|
+
$fu-filter-bar-condition-bgColor: map.get($fu-filter-bar, 'condition-bgColor') !default;
|
|
50
|
+
$fu-filter-bar-option-bgColor: map.get($fu-filter-bar, 'option-bgColor') !default;
|
|
51
|
+
$fu-filter-bar-scroll-bgColor: map.get($fu-filter-bar, 'scroll-bgColor') !default;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@use "../common/mixins.scss" as *;
|
|
2
|
-
@use "../common/variables.scss" as *;
|
|
3
2
|
|
|
4
3
|
@include b(filter-bar) {
|
|
5
4
|
border-radius: 4px;
|
|
@@ -23,7 +22,7 @@
|
|
|
23
22
|
width: 240px;
|
|
24
23
|
.el-input__prefix, .el-input__suffix {
|
|
25
24
|
.el-input__icon {
|
|
26
|
-
color:
|
|
25
|
+
color: var(--fu-filter-bar-color);
|
|
27
26
|
font-size: 14px
|
|
28
27
|
}
|
|
29
28
|
}
|
|
@@ -51,7 +50,7 @@
|
|
|
51
50
|
}
|
|
52
51
|
|
|
53
52
|
@include e(split) {
|
|
54
|
-
background-color:
|
|
53
|
+
background-color: var(--fu-filter-bar-color);
|
|
55
54
|
height: 16px;
|
|
56
55
|
width: 1px;
|
|
57
56
|
margin: 2px 8px;
|
|
@@ -66,7 +65,7 @@
|
|
|
66
65
|
margin: 0 2px;
|
|
67
66
|
|
|
68
67
|
&:hover {
|
|
69
|
-
background:
|
|
68
|
+
background: var(--fu-filter-bar-scroll-bgColor);
|
|
70
69
|
border-radius: 4px;
|
|
71
70
|
}
|
|
72
71
|
|
|
@@ -83,7 +82,7 @@
|
|
|
83
82
|
height: 22px;
|
|
84
83
|
min-width: 76px;
|
|
85
84
|
max-width: 76px;
|
|
86
|
-
color:
|
|
85
|
+
color: var(--fu-filter-bar-color);
|
|
87
86
|
cursor: pointer;
|
|
88
87
|
margin-left: 6px;
|
|
89
88
|
}
|
|
@@ -139,9 +138,9 @@
|
|
|
139
138
|
padding: 1px 6px;
|
|
140
139
|
box-sizing: border-box;
|
|
141
140
|
height: 24px;
|
|
142
|
-
background-color:
|
|
141
|
+
background-color: var(--fu-filter-bar-condition-bgColor);
|
|
143
142
|
border-radius: 2px;
|
|
144
|
-
color:
|
|
143
|
+
color: var(--fu-filter-bar-condition-color);
|
|
145
144
|
|
|
146
145
|
& + & {
|
|
147
146
|
margin-left: 8px;
|
|
@@ -200,14 +199,14 @@
|
|
|
200
199
|
padding: 1px 6px;
|
|
201
200
|
font-size: 14px;
|
|
202
201
|
line-height: 22px;
|
|
203
|
-
background-color:
|
|
202
|
+
background-color: var(--fu-filter-bar-option-bgColor);
|
|
204
203
|
border-radius: 2px;
|
|
205
204
|
cursor: pointer;
|
|
206
205
|
margin: 6px;
|
|
207
206
|
|
|
208
207
|
&.is-selected, &:hover {
|
|
209
|
-
background:
|
|
210
|
-
color:
|
|
208
|
+
background: var(--fu-filter-bar-condition-bgColor);
|
|
209
|
+
color: var(--fu-filter-bar-condition-color);
|
|
211
210
|
}
|
|
212
211
|
|
|
213
212
|
&:active {
|
|
@@ -60,11 +60,11 @@
|
|
|
60
60
|
border-radius: 5px;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
@include m(
|
|
64
|
-
font-size:
|
|
63
|
+
@include m(large) {
|
|
64
|
+
font-size: 16px;
|
|
65
65
|
|
|
66
66
|
@include e(item) {
|
|
67
|
-
height:
|
|
67
|
+
height: 32px;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
|
|
@@ -76,14 +76,6 @@
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
@include m(mini) {
|
|
80
|
-
font-size: 12px;
|
|
81
|
-
|
|
82
|
-
@include e(item) {
|
|
83
|
-
height: 24px;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
79
|
@include e(item) {
|
|
88
80
|
@include flex-row(flex-start, center);
|
|
89
81
|
flex-shrink: 0;
|
|
@@ -127,15 +119,11 @@
|
|
|
127
119
|
min-width: 200px;
|
|
128
120
|
position: relative;
|
|
129
121
|
|
|
130
|
-
@include m(
|
|
131
|
-
font-size:
|
|
122
|
+
@include m(large) {
|
|
123
|
+
font-size: 16px;
|
|
132
124
|
}
|
|
133
125
|
|
|
134
126
|
@include m(small) {
|
|
135
|
-
font-size: 13px;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
@include m(mini) {
|
|
139
127
|
font-size: 12px;
|
|
140
128
|
}
|
|
141
129
|
|
|
@@ -178,16 +166,14 @@
|
|
|
178
166
|
}
|
|
179
167
|
}
|
|
180
168
|
|
|
181
|
-
@include b(complex-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}
|
|
169
|
+
@include b(complex-components-trigger) {
|
|
170
|
+
i {
|
|
171
|
+
transition: transform 0.2s;
|
|
172
|
+
}
|
|
186
173
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}
|
|
174
|
+
@include when(active) {
|
|
175
|
+
i {
|
|
176
|
+
transform: rotate(90deg);
|
|
191
177
|
}
|
|
192
178
|
}
|
|
193
179
|
}
|
|
@@ -206,36 +192,27 @@
|
|
|
206
192
|
}
|
|
207
193
|
}
|
|
208
194
|
|
|
209
|
-
@include b(
|
|
210
|
-
@include flex-row(
|
|
195
|
+
@include b(complex-component) {
|
|
196
|
+
@include flex-row(space-between, center);
|
|
197
|
+
gap: 20px;
|
|
211
198
|
padding: 5px;
|
|
212
199
|
|
|
200
|
+
@include e(content) {
|
|
201
|
+
flex: 1;
|
|
202
|
+
}
|
|
203
|
+
|
|
213
204
|
@include e(label) {
|
|
214
|
-
|
|
215
|
-
width: 120px;
|
|
205
|
+
width: 80px;
|
|
216
206
|
padding: 0 5px;
|
|
217
207
|
flex-grow: 0;
|
|
218
208
|
flex-shrink: 0;
|
|
219
209
|
font-size: inherit;
|
|
220
210
|
|
|
221
|
-
@include m(
|
|
222
|
-
|
|
223
|
-
font-size: 13px;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
@include m(mini) {
|
|
227
|
-
width: 100px;
|
|
228
|
-
font-size: 12px;
|
|
211
|
+
@include m(large) {
|
|
212
|
+
font-size: 14px;
|
|
229
213
|
}
|
|
230
214
|
}
|
|
231
215
|
|
|
232
|
-
@include e(operator) {
|
|
233
|
-
padding: 0 5px;
|
|
234
|
-
width: 120px;
|
|
235
|
-
flex-grow: 0;
|
|
236
|
-
flex-shrink: 0;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
216
|
@include e(value) {
|
|
240
217
|
padding: 0 5px;
|
|
241
218
|
flex-grow: 1;
|
|
@@ -245,41 +222,20 @@
|
|
|
245
222
|
|
|
246
223
|
@include b(complex-select) {
|
|
247
224
|
&.el-select {
|
|
248
|
-
width: 100
|
|
225
|
+
width: 100%;
|
|
249
226
|
}
|
|
250
227
|
}
|
|
251
228
|
|
|
252
|
-
@include b(complex-
|
|
229
|
+
@include b(complex-date) {
|
|
253
230
|
&.el-date-editor {
|
|
254
231
|
width: 100% !important;
|
|
232
|
+
box-sizing: border-box;
|
|
255
233
|
}
|
|
256
234
|
}
|
|
257
235
|
|
|
258
|
-
@include b(complex-
|
|
236
|
+
@include b(complex-date-time) {
|
|
259
237
|
&.el-date-editor {
|
|
260
238
|
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
|
|
239
|
+
box-sizing: border-box;
|
|
284
240
|
}
|
|
285
241
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
@include b(table) {
|
|
5
5
|
&.el-table {
|
|
6
|
-
th.el-table-column--selection
|
|
6
|
+
th.el-table-column--selection > .cell {
|
|
7
7
|
padding-left: 14px;
|
|
8
8
|
padding-right: 14px;
|
|
9
9
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
@include b(table-header) {
|
|
17
17
|
th {
|
|
18
|
-
background-color:
|
|
18
|
+
background-color: var(--el-table-header-bg-color) !important;
|
|
19
19
|
border-top: 1px solid var(--el-table-border-color);
|
|
20
20
|
font-weight: 500 !important;;
|
|
21
21
|
}
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
@include e(item) {
|
|
40
|
-
|
|
40
|
+
& + & {
|
|
41
41
|
margin-top: 5px;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -60,13 +60,13 @@
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
@include b(table-operations) {
|
|
63
|
-
div[type='dialog']
|
|
63
|
+
div[type='dialog'] > .fu-search-bar-button {
|
|
64
64
|
border: none;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
@include b(table-more-button) {
|
|
69
|
-
button
|
|
69
|
+
button + & {
|
|
70
70
|
margin-left: 12px;
|
|
71
71
|
vertical-align: middle;
|
|
72
72
|
}
|
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,57 @@
|
|
|
1
|
+
declare var _default: {
|
|
2
|
+
name: string;
|
|
3
|
+
children: ({
|
|
4
|
+
name: string;
|
|
5
|
+
header: {
|
|
6
|
+
prop: string;
|
|
7
|
+
desc: string;
|
|
8
|
+
type: string;
|
|
9
|
+
enum: string;
|
|
10
|
+
default: string;
|
|
11
|
+
event?: undefined;
|
|
12
|
+
value?: undefined;
|
|
13
|
+
name?: undefined;
|
|
14
|
+
};
|
|
15
|
+
table: {
|
|
16
|
+
prop: string;
|
|
17
|
+
desc: string;
|
|
18
|
+
type: string;
|
|
19
|
+
enum: string;
|
|
20
|
+
default: string;
|
|
21
|
+
}[];
|
|
22
|
+
} | {
|
|
23
|
+
name: string;
|
|
24
|
+
header: {
|
|
25
|
+
event: string;
|
|
26
|
+
desc: string;
|
|
27
|
+
value: string;
|
|
28
|
+
prop?: undefined;
|
|
29
|
+
type?: undefined;
|
|
30
|
+
enum?: undefined;
|
|
31
|
+
default?: undefined;
|
|
32
|
+
name?: undefined;
|
|
33
|
+
};
|
|
34
|
+
table: {
|
|
35
|
+
event: string;
|
|
36
|
+
desc: string;
|
|
37
|
+
value: string;
|
|
38
|
+
}[];
|
|
39
|
+
} | {
|
|
40
|
+
name: string;
|
|
41
|
+
header: {
|
|
42
|
+
name: string;
|
|
43
|
+
desc: string;
|
|
44
|
+
prop?: undefined;
|
|
45
|
+
type?: undefined;
|
|
46
|
+
enum?: undefined;
|
|
47
|
+
default?: undefined;
|
|
48
|
+
event?: undefined;
|
|
49
|
+
value?: undefined;
|
|
50
|
+
};
|
|
51
|
+
table: {
|
|
52
|
+
name: string;
|
|
53
|
+
desc: string;
|
|
54
|
+
}[];
|
|
55
|
+
})[];
|
|
56
|
+
}[];
|
|
57
|
+
export default _default;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
const name: string;
|
|
3
|
+
function data(): {
|
|
4
|
+
components: ({
|
|
5
|
+
field: string;
|
|
6
|
+
label: string;
|
|
7
|
+
component: string;
|
|
8
|
+
options?: undefined;
|
|
9
|
+
change?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
field: string;
|
|
12
|
+
label: string;
|
|
13
|
+
component: string;
|
|
14
|
+
options: {
|
|
15
|
+
label: string;
|
|
16
|
+
value: string;
|
|
17
|
+
}[];
|
|
18
|
+
change: (val: any) => void;
|
|
19
|
+
} | {
|
|
20
|
+
field: string;
|
|
21
|
+
label: string;
|
|
22
|
+
component: string;
|
|
23
|
+
options: {
|
|
24
|
+
label: string;
|
|
25
|
+
value: string;
|
|
26
|
+
}[];
|
|
27
|
+
change?: undefined;
|
|
28
|
+
})[];
|
|
29
|
+
condition: {};
|
|
30
|
+
};
|
|
31
|
+
function data(): {
|
|
32
|
+
components: ({
|
|
33
|
+
field: string;
|
|
34
|
+
label: string;
|
|
35
|
+
component: string;
|
|
36
|
+
options?: undefined;
|
|
37
|
+
change?: undefined;
|
|
38
|
+
} | {
|
|
39
|
+
field: string;
|
|
40
|
+
label: string;
|
|
41
|
+
component: string;
|
|
42
|
+
options: {
|
|
43
|
+
label: string;
|
|
44
|
+
value: string;
|
|
45
|
+
}[];
|
|
46
|
+
change: (val: any) => void;
|
|
47
|
+
} | {
|
|
48
|
+
field: string;
|
|
49
|
+
label: string;
|
|
50
|
+
component: string;
|
|
51
|
+
options: {
|
|
52
|
+
label: string;
|
|
53
|
+
value: string;
|
|
54
|
+
}[];
|
|
55
|
+
change?: undefined;
|
|
56
|
+
})[];
|
|
57
|
+
condition: {};
|
|
58
|
+
};
|
|
59
|
+
namespace methods {
|
|
60
|
+
function close(): void;
|
|
61
|
+
function close(): void;
|
|
62
|
+
function search(condition: any): void;
|
|
63
|
+
function search(condition: any): void;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
export default _default;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
const name: string;
|
|
3
|
+
function data(): {
|
|
4
|
+
options: {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
}[];
|
|
8
|
+
components: ({
|
|
9
|
+
field: string;
|
|
10
|
+
label: string;
|
|
11
|
+
component: string;
|
|
12
|
+
options?: undefined;
|
|
13
|
+
multiple?: undefined;
|
|
14
|
+
filterable?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
field: string;
|
|
17
|
+
label: string;
|
|
18
|
+
component: string;
|
|
19
|
+
options: {
|
|
20
|
+
label: string;
|
|
21
|
+
value: string;
|
|
22
|
+
}[];
|
|
23
|
+
multiple: boolean;
|
|
24
|
+
filterable: boolean;
|
|
25
|
+
})[];
|
|
26
|
+
condition: {};
|
|
27
|
+
};
|
|
28
|
+
function data(): {
|
|
29
|
+
options: {
|
|
30
|
+
label: string;
|
|
31
|
+
value: string;
|
|
32
|
+
}[];
|
|
33
|
+
components: ({
|
|
34
|
+
field: string;
|
|
35
|
+
label: string;
|
|
36
|
+
component: string;
|
|
37
|
+
options?: undefined;
|
|
38
|
+
multiple?: undefined;
|
|
39
|
+
filterable?: undefined;
|
|
40
|
+
} | {
|
|
41
|
+
field: string;
|
|
42
|
+
label: string;
|
|
43
|
+
component: string;
|
|
44
|
+
options: {
|
|
45
|
+
label: string;
|
|
46
|
+
value: string;
|
|
47
|
+
}[];
|
|
48
|
+
multiple: boolean;
|
|
49
|
+
filterable: boolean;
|
|
50
|
+
})[];
|
|
51
|
+
condition: {};
|
|
52
|
+
};
|
|
53
|
+
namespace methods {
|
|
54
|
+
function initOptions(options: any, loading: any): void;
|
|
55
|
+
function initOptions(options: any, loading: any): void;
|
|
56
|
+
function search(condition: any): void;
|
|
57
|
+
function search(condition: any): void;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
export default _default;
|