fit2cloud-ui-plus 0.0.1-beta.6 → 0.0.1-beta.9

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 (65) hide show
  1. package/lib/favicon.bmp +0 -0
  2. package/lib/fit2cloud-ui-plus.es.js +2892 -0
  3. package/lib/fit2cloud-ui-plus.umd.js +1 -0
  4. package/package.json +4 -2
  5. package/src/.DS_Store +0 -0
  6. package/src/components/.DS_Store +0 -0
  7. package/src/components/filter-bar/FuFilter.vue +18 -13
  8. package/src/components/filter-bar/FuFilterBar.vue +14 -11
  9. package/src/components/filter-bar/FuSearchInput.vue +8 -2
  10. package/src/components/filter-bar/filter-components/FuFilterDate.vue +17 -13
  11. package/src/components/filter-bar/filter-components/FuFilterDateTime.vue +16 -13
  12. package/src/components/filter-bar/filter-components/FuFilterSelect.vue +17 -12
  13. package/src/components/filter-bar/index.ts +11 -12
  14. package/src/components/split-pane/FuSplitPane.vue +2 -2
  15. package/src/components/table/FuTable.vue +16 -25
  16. package/src/components/table/FuTableBody.ts +17 -19
  17. package/src/components/table/{table-column-dropdown/FuTableColumnDropdown.vue → FuTableColumnDropdown.vue} +0 -0
  18. package/src/components/table/index.ts +11 -7
  19. package/src/components/table/table-column-select/FuTableColumnSelectDialog.vue +3 -9
  20. package/src/components/table/table-column-select/FuTableColumnSelectPopover.vue +27 -24
  21. package/src/components/table/table-operations/FuTableButton.vue +1 -4
  22. package/src/components/table/table-operations/FuTableMoreButton.vue +1 -1
  23. package/src/components/table/table-operations/FuTableOperations.vue +1 -2
  24. package/src/components/table/types.ts +3 -0
  25. package/src/hooks/index.ts +2 -0
  26. package/src/hooks/use-global-config/index.ts +0 -15
  27. package/src/hooks/use-size/index.ts +29 -0
  28. package/src/styles/common/variables.scss +3 -1
  29. package/src/styles/components/filter-bar.scss +3 -3
  30. package/src/styles/components/split-pane.scss +1 -1
  31. package/src/styles/components/steps.scss +2 -2
  32. package/src/styles/components/table.scss +3 -5
  33. package/src/styles/index.scss +0 -1
  34. package/src/tools/size.ts +6 -0
  35. package/src/tools/theme.ts +0 -12
  36. package/src/tools/vnode.ts +47 -0
  37. package/src/components/search-bar/FuComplexSearch.vue +0 -108
  38. package/src/components/search-bar/FuQuickSearch.vue +0 -43
  39. package/src/components/search-bar/FuSearchBar.vue +0 -165
  40. package/src/components/search-bar/FuSearchBarButton.vue +0 -14
  41. package/src/components/search-bar/FuSearchContions.vue +0 -24
  42. package/src/components/search-bar/index.ts +0 -13
  43. package/src/components/search-bar/store.ts +0 -25
  44. package/src/components/speed-dial/FuSpeedDial.vue +0 -280
  45. package/src/components/speed-dial/FuSpeedDialActionButton.vue +0 -88
  46. package/src/components/speed-dial/FuSpeedDialButton.vue +0 -42
  47. package/src/components/speed-dial/FuSpeedDialItem.vue +0 -88
  48. package/src/components/speed-dial/index.ts +0 -11
  49. package/src/components/steps/FuHorizontalNavigation.vue +0 -18
  50. package/src/components/steps/FuHorizontalSteps.vue +0 -94
  51. package/src/components/steps/FuStep.vue +0 -13
  52. package/src/components/steps/FuSteps.vue +0 -22
  53. package/src/components/steps/FuStepsFooter.ts +0 -79
  54. package/src/components/steps/FuVerticalNavigation.vue +0 -35
  55. package/src/components/steps/FuVerticalSteps.vue +0 -79
  56. package/src/components/steps/Stepper.ts +0 -188
  57. package/src/components/steps/index.ts +0 -11
  58. package/src/components/table/table-column-dropdown/index.ts +0 -7
  59. package/src/components/table/table-column-select/index.ts +0 -8
  60. package/src/components/table/table-operations/index.ts +0 -12
  61. package/src/components/virtual-scroller/FuVirtualHorizontalScroll.js +0 -96
  62. package/src/components/virtual-scroller/FuVirtualScroll.js +0 -15
  63. package/src/components/virtual-scroller/FuVirtualVerticalScroll.js +0 -95
  64. package/src/components/virtual-scroller/index.js +0 -10
  65. package/src/styles/components/search-bar.scss +0 -285
@@ -1,96 +0,0 @@
1
- import measurable from "@/mixins/measurable";
2
- import {convertToUnit} from "@/tools/utils"
3
-
4
- export default {
5
- name: 'FuVirtualHorizontalScroll',
6
- mixins: [measurable],
7
- props: {
8
- items: {
9
- type: Array,
10
- required: true
11
- },
12
- itemWidth: {
13
- type: [Number, String],
14
- required: true
15
- },
16
- buffer: {
17
- type: [Number, String],
18
- default: 1
19
- }
20
- },
21
- data() {
22
- return {
23
- scrollLeft: 0,
24
- first: 0,
25
- last: 0,
26
- }
27
- },
28
- watch: {
29
- width: 'scroll',
30
- itemWidth: 'scroll',
31
- },
32
- computed: {
33
- intItemWidth() {
34
- return parseInt(this.itemWidth, 10)
35
- },
36
- intBuffer() {
37
- return parseInt(this.buffer, 10)
38
- },
39
- firstToRender({first, intBuffer}) {
40
- return Math.max(0, first - intBuffer)
41
- },
42
- lastToRender({items, last, intBuffer}) {
43
- return Math.min(items.length, last + intBuffer)
44
- },
45
- containerWidth({items, intItemWidth}) {
46
- return items.length * intItemWidth
47
- }
48
- },
49
- methods: {
50
- createChild(item, index) {
51
- index += this.firstToRender
52
- const left = convertToUnit(index * this.intItemWidth)
53
-
54
- let data = {
55
- staticClass: 'fu-virtual-scroll__item',
56
- style: {left},
57
- key: index,
58
- }
59
- let children = this.$scopedSlots["default"]({index, item})
60
-
61
- return this.$createElement('div', data, children)
62
- },
63
- getFirst() {
64
- return Math.floor(this.scrollLeft / this.intItemWidth)
65
- },
66
- getLast() {
67
- const width = parseInt(this.width || 0, 10) || this.$el.clientWidth
68
- return this.first + Math.ceil(width / this.intItemWidth)
69
- },
70
- scroll() {
71
- this.scrollLeft = this.$el.scrollLeft
72
- this.first = this.getFirst()
73
- this.last = this.getLast()
74
- }
75
- },
76
- render(h) {
77
- const children = this.items.slice(this.firstToRender, this.lastToRender,).map(this.createChild)
78
-
79
- const content = h('div', {
80
- staticClass: 'fu-virtual-scroll__container',
81
- style: {
82
- height: this.height || "100%",
83
- width: convertToUnit(this.containerWidth),
84
- },
85
- }, children)
86
-
87
- return h('div', {
88
- staticClass: 'fu-virtual-scroll is-horizontal',
89
- style: this.styles,
90
- on: {scroll: this.scroll, ...this.$listeners},
91
- }, [content])
92
- },
93
- mounted() {
94
- this.last = this.getLast()
95
- },
96
- }
@@ -1,15 +0,0 @@
1
- import FuVirtualVerticalScroll from "./FuVirtualVerticalScroll";
2
- import FuVirtualHorizontalScroll from "./FuVirtualHorizontalScroll";
3
-
4
- export default {
5
- name: "FuVirtualScroll",
6
- functional: true,
7
- render(h, {props, data, children}) {
8
- const {horizontal} = props
9
- if (horizontal === undefined || horizontal === false) {
10
- return h(FuVirtualVerticalScroll, data, children)
11
- } else {
12
- return h(FuVirtualHorizontalScroll, data, children)
13
- }
14
- }
15
- }
@@ -1,95 +0,0 @@
1
- import measurable from "@/mixins/measurable";
2
- import {convertToUnit} from "@/tools/utils"
3
-
4
- export default {
5
- name: 'FuVirtualVerticalScroll',
6
- mixins: [measurable],
7
- props: {
8
- items: {
9
- type: Array,
10
- required: true
11
- },
12
- itemHeight: {
13
- type: [Number, String],
14
- required: true
15
- },
16
- buffer: {
17
- type: [Number, String],
18
- default: 1
19
- }
20
- },
21
- data() {
22
- return {
23
- scrollTop: 0,
24
- first: 0,
25
- last: 0,
26
- }
27
- },
28
- watch: {
29
- height: 'scroll',
30
- itemHeight: 'scroll',
31
- },
32
- computed: {
33
- intItemHeight() {
34
- return parseInt(this.itemHeight, 10)
35
- },
36
- intBuffer() {
37
- return parseInt(this.buffer, 10)
38
- },
39
- firstToRender({first, intBuffer}) {
40
- return Math.max(0, first - intBuffer)
41
- },
42
- lastToRender({items, last, intBuffer}) {
43
- return Math.min(items.length, last + intBuffer)
44
- },
45
- containerHeight({items, intItemHeight}) {
46
- return items.length * intItemHeight
47
- }
48
- },
49
- methods: {
50
- createChild(item, index) {
51
- index += this.firstToRender
52
- const top = convertToUnit(index * this.intItemHeight)
53
-
54
- let data = {
55
- staticClass: 'fu-virtual-scroll__item',
56
- style: {top},
57
- key: index,
58
- }
59
- let children = this.$scopedSlots["default"]({index, item})
60
-
61
- return this.$createElement('div', data, children)
62
- },
63
- getFirst() {
64
- return Math.floor(this.scrollTop / this.intItemHeight)
65
- },
66
- getLast() {
67
- const height = parseInt(this.height || 0, 10) || this.$el.clientHeight
68
- return this.first + Math.ceil(height / this.intItemHeight)
69
- },
70
- scroll() {
71
- this.scrollTop = this.$el.scrollTop
72
- this.first = this.getFirst()
73
- this.last = this.getLast()
74
- }
75
- },
76
- render(h) {
77
- const children = this.items.slice(this.firstToRender, this.lastToRender,).map(this.createChild)
78
-
79
- const content = h('div', {
80
- staticClass: 'fu-virtual-scroll__container',
81
- style: {
82
- height: convertToUnit(this.containerHeight),
83
- },
84
- }, children)
85
-
86
- return h('div', {
87
- staticClass: 'fu-virtual-scroll',
88
- style: this.styles,
89
- on: {scroll: this.scroll, ...this.$listeners},
90
- }, [content])
91
- },
92
- mounted() {
93
- this.last = this.getLast()
94
- },
95
- }
@@ -1,10 +0,0 @@
1
- import FuVirtualScroll from "./FuVirtualScroll";
2
- import locale from "@/locale";
3
-
4
- FuVirtualScroll.install = function (Vue, opts = {}) {
5
- locale.use(opts.locale)
6
- locale.i18n(opts.i18n)
7
- Vue.component(FuVirtualScroll.name, FuVirtualScroll)
8
- }
9
-
10
- export default FuVirtualScroll
@@ -1,285 +0,0 @@
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: getCssVar('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: $--input-font-color;
160
- // background-color: $--input-background-color;
161
-
162
- &:focus {
163
- outline: none;
164
- }
165
-
166
- &::placeholder {
167
- // color: $--input-placeholder-color;
168
- }
169
- }
170
-
171
- .clean-button {
172
- @include active-scale;
173
- cursor: pointer;
174
-
175
- &:hover {
176
- color: getCssVar('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
- }