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.
Files changed (44) hide show
  1. package/lib/fit2cloud-ui-plus.es.js +818 -79
  2. package/lib/fit2cloud-ui-plus.umd.js +1 -1
  3. package/package.json +2 -2
  4. package/src/components/search-bar/FuComplexSearch.vue +102 -170
  5. package/src/components/search-bar/FuQuickSearch.vue +17 -10
  6. package/src/components/search-bar/FuSearchBar.vue +154 -158
  7. package/src/components/search-bar/FuSearchBarButton.vue +12 -14
  8. package/src/components/search-bar/FuSearchContions.vue +24 -16
  9. package/src/components/search-bar/complex-components/FuComplexDate.vue +5 -6
  10. package/src/components/search-bar/complex-components/FuComplexDateTime.vue +20 -17
  11. package/src/components/search-bar/complex-components/FuComplexInput.vue +7 -2
  12. package/src/components/search-bar/complex-components/FuComplexSelect.vue +14 -9
  13. package/src/components/search-bar/index.ts +20 -0
  14. package/src/components/search-bar/types.ts +1 -1
  15. package/src/styles/common/function.scss +14 -4
  16. package/src/styles/common/mixins.scss +9 -4
  17. package/src/styles/common/variables.scss +33 -11
  18. package/src/styles/components/filter-bar.scss +9 -10
  19. package/src/styles/components/search-bar.scss +27 -71
  20. package/src/styles/components/table.scss +5 -5
  21. package/src/styles/index.scss +2 -0
  22. package/src/styles/var.scss +8 -0
  23. package/types/examples/pages/search-bar/attributes.d.ts +63 -0
  24. package/types/examples/pages/search-bar/demo/BaseSearchbar.vue.d.ts +31 -0
  25. package/types/examples/pages/search-bar/demo/ComplexSearchDemo.vue.d.ts +40 -0
  26. package/types/examples/pages/search-bar/demo/EchoConditionsDemo.vue.d.ts +32 -0
  27. package/types/examples/pages/search-bar/demo/QuickSearchDemo.vue.d.ts +7 -0
  28. package/types/examples/pages/search-bar/demo/SearchBarButtonDemo.vue.d.ts +32 -0
  29. package/types/examples/pages/search-bar/index.vue.d.ts +2 -0
  30. package/types/src/components/search-bar/FuComplexSearch.vue.d.ts +21 -1
  31. package/types/src/components/search-bar/FuQuickSearch.vue.d.ts +3 -7
  32. package/types/src/components/search-bar/FuSearchBar.vue.d.ts +57 -1
  33. package/types/src/components/search-bar/FuSearchBarButton.vue.d.ts +13 -11
  34. package/types/src/components/search-bar/FuSearchContions.vue.d.ts +25 -11
  35. package/types/src/components/search-bar/index.d.ts +2 -0
  36. package/types/src/components/search-bar/types.d.ts +1 -1
  37. package/src/components/read-write-switch/index.d.ts +0 -2
  38. package/src/components/read-write-switch/types.d.ts +0 -4
  39. package/src/components/search-bar/complex-components/index.js +0 -16
  40. package/src/components/search-bar/complex-components/mixins.js +0 -26
  41. package/src/components/search-bar/index.js +0 -16
  42. package/src/components/table/index.d.ts +0 -2
  43. package/src/components/table/table-column-select/utils.d.ts +0 -8
  44. package/src/components/table/types.d.ts +0 -2
@@ -1,22 +1,20 @@
1
1
  <template>
2
2
  <el-tooltip :content="tooltip" :disabled="!tooltip">
3
- <el-button class="fu-search-bar-button" circle :size="size" v-bind="$attrs">
4
- <slot></slot>
5
- </el-button>
3
+ <el-button class="fu-search-bar-button" circle :size="size" v-bind="$attrs"/>
6
4
  </el-tooltip>
7
5
  </template>
8
6
 
9
- <script>
7
+
8
+ <script setup lang="ts">
10
9
  import {validateSize} from "@/tools/size";
11
10
 
12
- export default {
13
- name: "FuSearchBarButton",
14
- props: {
15
- size: {
16
- type: String,
17
- validator: validateSize
18
- },
19
- tooltip: String
20
- }
21
- }
11
+ defineOptions({name: "FuSearchBarButton"});
12
+
13
+ const props = defineProps({
14
+ size: {
15
+ type: String,
16
+ validator: validateSize
17
+ },
18
+ tooltip: String
19
+ })
22
20
  </script>
@@ -1,29 +1,37 @@
1
1
  <template>
2
- <div :class="['fu-search-conditions', 'fu-search-conditions--' + configSize]">
3
- <div class="fu-search-conditions__item" v-for="(condition, index) in conditions" :key="index">
2
+ <div :class="['fu-search-conditions', 'fu-search-conditions--' + size]">
3
+ <div class="fu-search-conditions__item" v-for="(condition, index) in conditions">
4
4
  <div v-if="condition.label">{{ condition.label }}</div>
5
- <div v-if="condition.operatorLabel">{{ condition.operatorLabel }}</div>
6
5
  <div class="condition-value">{{ condition.valueLabel }}</div>
7
- <i class="el-icon-close condition-remove" @click="remove(index)"/>
6
+ <el-icon class="condition-remove" @click="remove(index)">
7
+ <Close/>
8
+ </el-icon>
8
9
  </div>
9
10
  </div>
10
11
  </template>
11
12
 
12
- <script>
13
+ <script setup lang="ts">
14
+ import {PropType} from "vue";
15
+ import {ComplexCondition} from "./types";
16
+ import {validateSize} from "@/tools/size";
13
17
 
14
- import ConfigSize from "@/mixins/config-size";
18
+ defineOptions({name: "FuSearchConditions"});
15
19
 
16
- export default {
17
- name: "FuSearchConditions",
18
- mixins: [ConfigSize],
19
- props: {
20
- conditions: Array
20
+ const props = defineProps({
21
+ size: {
22
+ type: String,
23
+ validator: validateSize
21
24
  },
22
- methods: {
23
- remove(index) {
24
- this.conditions.splice(index, 1)
25
- this.$emit("change", this.conditions)
26
- }
25
+ conditions: {
26
+ type: Array as PropType<ComplexCondition[]>,
27
+ required: true
27
28
  }
29
+ })
30
+
31
+ const emit = defineEmits<{ (e: 'change', conditions: Array<ComplexCondition>): void }>()
32
+
33
+ function remove(index: number) {
34
+ props.conditions.splice(index, 1)
35
+ emit("change", props.conditions)
28
36
  }
29
37
  </script>
@@ -1,9 +1,8 @@
1
1
  <template>
2
- <div class="fu-filter-component">
3
- <div class="fu-filter-component__label">{{ label }}</div>
4
- <div class="fu-filter-component__content">
5
- <!--configSize-->
6
- <el-date-picker class="fu-filter-date" v-model="value" v-bind="$attrs" :size="size"
2
+ <div class="fu-complex-component">
3
+ <div class="fu-complex-component__label">{{ label }}</div>
4
+ <div class="fu-complex-component__content">
5
+ <el-date-picker class="fu-complex-date" v-model="value" v-bind="$attrs" :size="size"
7
6
  :placeholder="t('fu.search_bar.select_date')" type="daterange" :value-format="valueFormat"
8
7
  :start-placeholder="t('fu.search_bar.start_date')" :end-placeholder="t('fu.search_bar.end_date')">
9
8
  </el-date-picker>
@@ -40,7 +39,7 @@ const value = ref('')
40
39
  const valueLabel = computed(() => {
41
40
  return (
42
41
  dateFormat(value.value[0]) +
43
- " - " +
42
+ " ~ " +
44
43
  dateFormat(value.value[1])
45
44
  );
46
45
  })
@@ -1,24 +1,27 @@
1
1
  <template>
2
- <div class="fu-filter-component">
3
- <div class="fu-filter-component__label">{{ label }}</div>
4
- <div class="fu-filter-component__content">
2
+ <div class="fu-complex-component">
3
+ <div class="fu-complex-component__label">{{ label }}</div>
4
+ <div class="fu-complex-component__content">
5
5
  <!-- :size="configSize" -->
6
- <el-date-picker class="fu-filter-date" v-model="value" v-bind="$attrs" :size="size"
7
- :placeholder="t('fu.search_bar.select_date_time')" type="datetimerange" :value-format="valueFormat"
8
- :start-placeholder="t('fu.search_bar.start_date_time')" :end-placeholder="t('fu.search_bar.end_date_time')">
6
+ <el-date-picker class="fu-complex-date-time" v-model="value" v-bind="$attrs" :size="size"
7
+ :placeholder="t('fu.search_bar.select_date_time')" type="datetimerange"
8
+ :value-format="valueFormat"
9
+ :start-placeholder="t('fu.search_bar.start_date_time')"
10
+ :end-placeholder="t('fu.search_bar.end_date_time')">
9
11
  </el-date-picker>
10
12
  </div>
11
13
  </div>
12
14
  </template>
13
15
 
14
16
  <script setup lang="ts">
15
- import { ref, computed, inject } from "vue";
16
- import { ComplexCondition, ReferenceContext, referenceKey } from "../types";
17
- import { datetimeFormat } from "@/tools/time";
18
- import { useLocale } from "@/hooks"
19
- import { validateSize } from "@/tools/size";
20
- defineOptions({ name: "FuComplexDateTime" });
21
- const { t } = useLocale()
17
+ import {ref, computed, inject} from "vue";
18
+ import {ComplexCondition, ReferenceContext, referenceKey} from "../types";
19
+ import {datetimeFormat} from "@/tools/time";
20
+ import {useLocale} from "@/hooks"
21
+ import {validateSize} from "@/tools/size";
22
+
23
+ defineOptions({name: "FuComplexDateTime"});
24
+ const {t} = useLocale()
22
25
 
23
26
  const props = defineProps({
24
27
  size: {
@@ -41,15 +44,15 @@ const value = ref('')
41
44
  const valueLabel = computed(() => {
42
45
  return (
43
46
  datetimeFormat(value.value[0]) +
44
- " - " +
47
+ " ~ " +
45
48
  datetimeFormat(value.value[1])
46
49
  );
47
50
  })
48
51
 
49
52
  function getCondition(): ComplexCondition | undefined {
50
53
  if (!String(value.value)) return;
51
- let { field, label } = props
52
- return { field, label, value: value.value, valueLabel: valueLabel.value }
54
+ let {field, label} = props
55
+ return {field, label, value: value.value, valueLabel: valueLabel.value}
53
56
  }
54
57
 
55
58
  function init(v: any) {
@@ -58,7 +61,7 @@ function init(v: any) {
58
61
 
59
62
  const references = inject(referenceKey)
60
63
  const field = props.field
61
- const reference: ReferenceContext = { field, init, getCondition }
64
+ const reference: ReferenceContext = {field, init, getCondition}
62
65
  references?.value.push(reference)
63
66
 
64
67
  defineExpose({
@@ -1,5 +1,10 @@
1
1
  <template>
2
- <el-input v-model="inputValue" :placeholder="t('fu.search_bar.please_input')" :size="size" v-bind="$attrs"/>
2
+ <div class="fu-complex-component">
3
+ <div class="fu-complex-component__label">{{ label }}</div>
4
+ <div class="fu-complex-component__content">
5
+ <el-input v-model="inputValue" :placeholder="t('fu.search_bar.please_input')" :size="size" v-bind="$attrs"/>
6
+ </div>
7
+ </div>
3
8
  </template>
4
9
 
5
10
  <script setup lang="ts">
@@ -8,7 +13,7 @@ import {ComplexCondition, ReferenceContext, referenceKey} from "../types";
8
13
  import {validateSize} from "@/tools/size";
9
14
  import {useLocale} from "@/hooks"
10
15
 
11
- defineOptions({name: "FuFilterSelect"});
16
+ defineOptions({name: "FuComplexInput"});
12
17
 
13
18
  const props = defineProps({
14
19
  size: {
@@ -1,12 +1,17 @@
1
1
  <template>
2
- <el-select class="fu-complex-select"
3
- :placeholder="t('fu.search_bar.please_select')"
4
- v-model="selection"
5
- :size="size"
6
- v-bind="$attrs"
7
- clearable>
8
- <el-option v-for="o in options" :key="o.value" :label="o.label" :value="o.value"></el-option>
9
- </el-select>
2
+ <div class="fu-complex-component">
3
+ <div class="fu-complex-component__label">{{ label }}</div>
4
+ <div class="fu-complex-component__content">
5
+ <el-select class="fu-complex-select"
6
+ :placeholder="t('fu.search_bar.please_select')"
7
+ v-model="selection"
8
+ :size="size"
9
+ v-bind="$attrs"
10
+ clearable>
11
+ <el-option v-for="o in options" :key="o.value" :label="o.label" :value="o.value"></el-option>
12
+ </el-select>
13
+ </div>
14
+ </div>
10
15
  </template>
11
16
 
12
17
  <script setup lang="ts">
@@ -15,7 +20,7 @@ import {ComplexCondition, OptionProps, ReferenceContext, referenceKey} from "../
15
20
  import {validateSize} from "@/tools/size";
16
21
  import {useLocale} from "@/hooks"
17
22
 
18
- defineOptions({name: "FuFilterSelect"});
23
+ defineOptions({name: "FuComplexSelect"});
19
24
 
20
25
  const props = defineProps({
21
26
  size: {
@@ -0,0 +1,20 @@
1
+ import FuSearchBar from "./FuSearchBar.vue";
2
+ import FuQuickSearch from "./FuQuickSearch.vue";
3
+ import FuSearchBarButton from "./FuSearchBarButton.vue";
4
+ import FuComplexSelect from "./complex-components/FuComplexSelect.vue";
5
+ import FuComplexInput from "./complex-components/FuComplexInput.vue";
6
+ import FuComplexDate from "./complex-components/FuComplexDate.vue";
7
+ import FuComplexDateTime from "./complex-components/FuComplexDateTime.vue";
8
+ import type {App} from "vue";
9
+
10
+ FuSearchBar.install = (app: App): void => {
11
+ app.component(FuQuickSearch.name, FuQuickSearch);
12
+ app.component(FuSearchBar.name, FuSearchBar);
13
+ app.component(FuSearchBarButton.name, FuSearchBarButton);
14
+ app.component(FuComplexSelect.name, FuComplexSelect);
15
+ app.component(FuComplexInput.name, FuComplexInput);
16
+ app.component(FuComplexDate.name, FuComplexDate);
17
+ app.component(FuComplexDateTime.name, FuComplexDateTime);
18
+ };
19
+
20
+ export default FuSearchBar;
@@ -5,7 +5,7 @@ export const referenceKey = Symbol('ReferenceKey') as unknown as InjectionKey<Re
5
5
  export interface ReferenceContext {
6
6
  field: string,
7
7
 
8
- init(v: any): void
8
+ init(v?: any): void
9
9
 
10
10
  getCondition(): ComplexCondition | undefined
11
11
  }
@@ -43,7 +43,7 @@
43
43
  }
44
44
 
45
45
  // join var name
46
- // joinVarName(('button', 'text-color')) => '--el-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') => '--el-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(--el-button-text-color)
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') => 'el-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
- $table-header-bgColor: #F5F6F7 !default;
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-search-bar-width: 100% !default;
20
- $fu-search-bar-height: 48px !default;
21
- $fu-search-bar-condition-color: #424242 !default;
22
- $fu-search-bar-condition-bgColor: #E6E6E6 !default;
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: #646A73 !default;
25
- $filter-drawer-color: #646A73 !default;
26
- $filter-condition-color: #0C296E !default;
27
- $filter-condition-bgColor: rgba(51, 112, 255, 0.1) !default;
28
- $filter-option-bgColor: #F5F6F7 !default;
29
- $filter-scroll-bgColor: rgba(31, 35, 41, 0.1) !default;
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: $filter-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: $filter-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: $filter-scroll-bgColor;
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: $filter-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: $filter-condition-bgColor;
141
+ background-color: var(--fu-filter-bar-condition-bgColor);
143
142
  border-radius: 2px;
144
- color: $filter-condition-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: $filter-option-bgColor;
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: $filter-condition-bgColor;
210
- color: $filter-condition-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(medium) {
64
- font-size: 14px;
63
+ @include m(large) {
64
+ font-size: 16px;
65
65
 
66
66
  @include e(item) {
67
- height: 28px;
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(medium) {
131
- font-size: 14px;
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-search) {
182
- @include e(trigger) {
183
- i {
184
- transition: transform 0.2s;
185
- }
169
+ @include b(complex-components-trigger) {
170
+ i {
171
+ transition: transform 0.2s;
172
+ }
186
173
 
187
- @include when(active) {
188
- i {
189
- transform: rotate(90deg);
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(operator-component) {
210
- @include flex-row(flex-start, center);
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
- text-align: left;
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(small) {
222
- width: 100px;
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% !important;
225
+ width: 100%;
249
226
  }
250
227
  }
251
228
 
252
- @include b(complex-data) {
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-data-time) {
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>.cell {
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: $table-header-bgColor !important;
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']>.fu-search-bar-button {
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
  }