@idooel/components 0.0.1-beta.39 → 0.0.1-beta.40
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/dist/@idooel/components.esm.js +4667 -4273
- package/dist/@idooel/components.umd.js +4609 -4191
- package/jsconfig.json +8 -0
- package/package.json +3 -3
- package/packages/alert/index.js +4 -4
- package/packages/alert/src/index.vue +45 -45
- package/packages/batch-export/index.js +4 -4
- package/packages/batch-export/src/index.vue +104 -108
- package/packages/business-components/modal-fsm/index.js +5 -0
- package/packages/business-components/modal-fsm/src/index.vue +164 -0
- package/packages/{composite-components → business-components}/modal-import/index.js +4 -4
- package/packages/{composite-components → business-components}/modal-import/src/index.vue +139 -145
- package/packages/{composite-components → business-components}/modal-timeline/index.js +4 -4
- package/packages/{composite-components → business-components}/modal-timeline/src/index.vue +77 -76
- package/packages/button/index.js +4 -4
- package/packages/button/src/index.vue +54 -54
- package/packages/checkbox/index.js +4 -4
- package/packages/checkbox/src/index.vue +52 -52
- package/packages/composite-components/button-group/index.js +4 -4
- package/packages/composite-components/button-group/src/index.vue +88 -53
- package/packages/composite-components/{attachment → form-attachment}/src/index.vue +14 -14
- package/packages/composite-components/modal-confirm/index.js +5 -0
- package/packages/composite-components/modal-confirm/src/index.vue +69 -0
- package/packages/composite-components/modal-form/index.js +4 -4
- package/packages/composite-components/modal-form/src/index.vue +202 -202
- package/packages/{img-crop → composite-components/modal-img-crop}/index.js +4 -4
- package/packages/{img-crop → composite-components/modal-img-crop}/src/index.vue +284 -290
- package/packages/composite-components/modal-table/index.js +0 -0
- package/packages/composite-components/modal-tree/index.js +4 -4
- package/packages/composite-components/modal-tree/src/index.vue +75 -75
- package/packages/composite-components/search-area/index.js +4 -4
- package/packages/composite-components/search-area/src/index.vue +218 -229
- package/packages/composite-components/search-area/src/label.vue +35 -35
- package/packages/composite-components/table-transfer/index.js +0 -0
- package/packages/date/index.js +4 -4
- package/packages/date/src/index.vue +95 -39
- package/packages/date-range/index.js +4 -4
- package/packages/date-range/src/index.vue +47 -47
- package/packages/form/index.js +4 -4
- package/packages/form/src/index.vue +236 -240
- package/packages/icon/index.js +4 -4
- package/packages/icon/src/index.vue +31 -31
- package/packages/index.js +132 -99
- package/packages/input/index.js +4 -4
- package/packages/input/src/index.vue +35 -35
- package/packages/input-number/index.js +4 -4
- package/packages/input-number/src/index.vue +23 -23
- package/packages/modal/index.js +4 -4
- package/packages/modal/src/index.vue +184 -162
- package/packages/{form-group-model → models/form-group-model}/index.js +4 -4
- package/packages/{form-group-model → models/form-group-model}/src/index.vue +273 -279
- package/packages/{form-model → models/form-model}/index.js +4 -4
- package/packages/{form-model → models/form-model}/src/index.vue +201 -189
- package/packages/{step-model → models/step-model}/index.js +4 -4
- package/packages/{step-model → models/step-model}/src/index.vue +215 -219
- package/packages/models/tree-table-model/README.md +0 -0
- package/packages/{tree-table-model → models/tree-table-model}/index.js +4 -4
- package/packages/{tree-table-model → models/tree-table-model}/src/index.vue +494 -493
- package/packages/radio/index.js +4 -4
- package/packages/radio/src/index.vue +56 -56
- package/packages/select/index.js +4 -4
- package/packages/select/src/index.vue +92 -92
- package/packages/select-entity/index.js +4 -4
- package/packages/select-entity/src/index.vue +113 -113
- package/packages/table/index.js +4 -4
- package/packages/table/src/action.vue +164 -134
- package/packages/table/src/index.vue +257 -257
- package/packages/tabs/index.js +4 -4
- package/packages/tabs/src/index.vue +55 -55
- package/packages/text/index.js +4 -4
- package/packages/text/src/index.vue +47 -47
- package/packages/text-editor/index.js +4 -4
- package/packages/text-editor/src/index.vue +72 -72
- package/packages/textarea/index.js +4 -4
- package/packages/textarea/src/index.vue +57 -57
- package/packages/theme/form.scss +21 -21
- package/packages/theme/index.scss +42 -42
- package/packages/theme/overrid.scss +7 -7
- package/packages/theme/styleClass.scss +2 -2
- package/packages/theme/variables.scss +55 -55
- package/packages/timeline/index.js +4 -4
- package/packages/timeline/src/index.vue +253 -234
- package/packages/tpl/index.js +4 -4
- package/packages/tpl/src/index.vue +55 -55
- package/packages/tree/index.js +4 -4
- package/packages/tree/src/TreeNode.vue +29 -29
- package/packages/tree/src/index.vue +101 -101
- package/packages/upload/index.js +4 -4
- package/packages/upload/src/index.vue +440 -442
- package/packages/utils/index.js +48 -47
- package/scripts/rollup.config.js +42 -40
- package/scripts/rollup.esm.config.js +11 -11
- package/scripts/rollup.umd.config.js +14 -14
- /package/packages/composite-components/{attachment → form-attachment}/index.js +0 -0
- /package/packages/{tree-table-model/README.md → composite-components/modal-table-transfer/index.js} +0 -0
|
@@ -1,258 +1,258 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="g-table__wrapper" :style="{ height: `${height}px` }">
|
|
3
|
-
<a-table
|
|
4
|
-
:class="[isNoData && 'g-table__no-data']"
|
|
5
|
-
:style="{ height: noDataAntTableHeight }"
|
|
6
|
-
:pagination="false"
|
|
7
|
-
:loading="loading"
|
|
8
|
-
:columns="columns"
|
|
9
|
-
:row-selection="rowSelection"
|
|
10
|
-
:row-class-name="setRowClassName"
|
|
11
|
-
:data-source="dataSource"
|
|
12
|
-
:scroll="getScroll">
|
|
13
|
-
<template slot="action" slot-scope="record">
|
|
14
|
-
<Actions v-on="$listeners" :data-source="actions" :record="record"></Actions>
|
|
15
|
-
</template>
|
|
16
|
-
</a-table>
|
|
17
|
-
<div class="g-table__pagination">
|
|
18
|
-
<a-pagination
|
|
19
|
-
:show-total="all => `共 ${all} 条数据`"
|
|
20
|
-
show-size-changer
|
|
21
|
-
show-quick-jumper
|
|
22
|
-
:pageSize="innerPageSize"
|
|
23
|
-
:current="innerCurrentPage"
|
|
24
|
-
:pageSizeOptions="pageSizeOptions"
|
|
25
|
-
@change="onChangePagination"
|
|
26
|
-
@showSizeChange="onShowSizeChange"
|
|
27
|
-
:total="total">
|
|
28
|
-
</a-pagination>
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
</template>
|
|
32
|
-
|
|
33
|
-
<script>
|
|
34
|
-
import Actions from './action.vue'
|
|
35
|
-
export default {
|
|
36
|
-
name: 'ele-table',
|
|
37
|
-
components: {
|
|
38
|
-
Actions
|
|
39
|
-
},
|
|
40
|
-
props: {
|
|
41
|
-
height: {
|
|
42
|
-
type: Number
|
|
43
|
-
},
|
|
44
|
-
x: {
|
|
45
|
-
type: Number,
|
|
46
|
-
default: 1500
|
|
47
|
-
},
|
|
48
|
-
y: {
|
|
49
|
-
type: Number,
|
|
50
|
-
default: 200
|
|
51
|
-
},
|
|
52
|
-
scroll: {
|
|
53
|
-
type: Object
|
|
54
|
-
},
|
|
55
|
-
rowSelection: {
|
|
56
|
-
type: Object
|
|
57
|
-
},
|
|
58
|
-
actions: {
|
|
59
|
-
type: Array,
|
|
60
|
-
default: () => []
|
|
61
|
-
},
|
|
62
|
-
total: {
|
|
63
|
-
type: Number,
|
|
64
|
-
default: 0
|
|
65
|
-
},
|
|
66
|
-
loading: {
|
|
67
|
-
type: Boolean,
|
|
68
|
-
default: false
|
|
69
|
-
},
|
|
70
|
-
columns: {
|
|
71
|
-
type: Array,
|
|
72
|
-
default: () => []
|
|
73
|
-
},
|
|
74
|
-
dataSource: {
|
|
75
|
-
type: Array,
|
|
76
|
-
default: () => []
|
|
77
|
-
},
|
|
78
|
-
pageSize: {
|
|
79
|
-
type: Number,
|
|
80
|
-
default: 10
|
|
81
|
-
},
|
|
82
|
-
pageSizeOptions: {
|
|
83
|
-
type: Array,
|
|
84
|
-
default: () => ['10', '20', '30', '40']
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
data() {
|
|
88
|
-
return {
|
|
89
|
-
tableHeaderHeight: 0,
|
|
90
|
-
paginationHeight: 0,
|
|
91
|
-
innerPageSize: 10,
|
|
92
|
-
innerCurrentPage: 1
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
computed: {
|
|
96
|
-
isNoData () {
|
|
97
|
-
return !this.dataSource.length
|
|
98
|
-
},
|
|
99
|
-
noDataAntTableHeight () {
|
|
100
|
-
//TODO
|
|
101
|
-
if (this.dataSource.length) {
|
|
102
|
-
// return 'auto'
|
|
103
|
-
return `${this.height - this.paginationHeight - 16}px`
|
|
104
|
-
}
|
|
105
|
-
return `${this.height - this.paginationHeight - 16}px`
|
|
106
|
-
},
|
|
107
|
-
getScrollHeightByHeight () {
|
|
108
|
-
return this.height - this.tableHeaderHeight - this.paginationHeight
|
|
109
|
-
},
|
|
110
|
-
getScroll () {
|
|
111
|
-
if (this.scroll) {
|
|
112
|
-
return this.scroll
|
|
113
|
-
} else {
|
|
114
|
-
if (this.height) {
|
|
115
|
-
return { x: this.x, y: this.getScrollHeightByHeight }
|
|
116
|
-
}
|
|
117
|
-
return { x: this.x, y: this.y }
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
watch: {
|
|
122
|
-
pageSize: {
|
|
123
|
-
handler (pageSize) {
|
|
124
|
-
this.innerPageSize = pageSize
|
|
125
|
-
},
|
|
126
|
-
immediate: true
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
methods: {
|
|
130
|
-
onShowSizeChange (current, pageSize) {
|
|
131
|
-
this.innerCurrentPage = current
|
|
132
|
-
this.innerPageSize = pageSize
|
|
133
|
-
this.$emit('change-page', current, pageSize)
|
|
134
|
-
},
|
|
135
|
-
setPaginationHeight () {
|
|
136
|
-
this.$nextTick(() => {
|
|
137
|
-
const { height } = document.querySelector('.g-table__pagination').getBoundingClientRect()
|
|
138
|
-
this.paginationHeight = height
|
|
139
|
-
})
|
|
140
|
-
},
|
|
141
|
-
setTableHeaderHeight () {
|
|
142
|
-
this.$nextTick(() => {
|
|
143
|
-
const { height } = document.querySelector('.ant-table-header').getBoundingClientRect()
|
|
144
|
-
this.tableHeaderHeight = height
|
|
145
|
-
})
|
|
146
|
-
},
|
|
147
|
-
setRowClassName (record, idx) {
|
|
148
|
-
return idx % 2 === 0 ? 'g-table__row--even' : 'g-table__row--odd'
|
|
149
|
-
},
|
|
150
|
-
onChangePagination (page, pageSize) {
|
|
151
|
-
this.innerCurrentPage = page
|
|
152
|
-
this.innerPageSize = pageSize
|
|
153
|
-
this.$emit('change-page', page, pageSize)
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
mounted() {
|
|
157
|
-
this.setTableHeaderHeight()
|
|
158
|
-
this.setPaginationHeight()
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
</script>
|
|
162
|
-
|
|
163
|
-
<style lang="scss" scoped>
|
|
164
|
-
.g-table__wrapper {
|
|
165
|
-
::v-deep .ant-spin-nested-loading {
|
|
166
|
-
height: inherit;
|
|
167
|
-
.ant-spin-container {
|
|
168
|
-
height: inherit;
|
|
169
|
-
.ant-table {
|
|
170
|
-
height: inherit;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
::v-deep .ant-table-wrapper {
|
|
175
|
-
.ant-table {
|
|
176
|
-
border-width: calc(var(--idooel-border-width) * 1px);
|
|
177
|
-
border-style: solid;
|
|
178
|
-
border-color: var(--idooel-border-color);
|
|
179
|
-
}
|
|
180
|
-
.ant-table-header {
|
|
181
|
-
.ant-table-fixed {
|
|
182
|
-
/* border-bottom: 2px solid #53a8ff !important; */
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
.ant-table-tbody {
|
|
186
|
-
tr {
|
|
187
|
-
td {
|
|
188
|
-
border-color: var(--idooel-column-border-color);
|
|
189
|
-
border-width: calc(var(--idooel-column-border-width) * 1px);;
|
|
190
|
-
border-style: solid;
|
|
191
|
-
border-top: unset;
|
|
192
|
-
border-left: unset;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
.ant-table-body {
|
|
197
|
-
border-top-width: calc(var(--idooel-border-width) * 1px);
|
|
198
|
-
border-top-style: solid;
|
|
199
|
-
border-top-color: var(--idooel-border-color);
|
|
200
|
-
}
|
|
201
|
-
.ant-table-fixed-left {
|
|
202
|
-
border-bottom-width: calc(var(--idooel-border-width) * 1px);
|
|
203
|
-
border-bottom-style: solid;
|
|
204
|
-
border-bottom-color: var(--idooel-border-color);
|
|
205
|
-
.ant-table-header {
|
|
206
|
-
border-bottom-width: calc(var(--idooel-border-width) * 1px);
|
|
207
|
-
border-bottom-style: solid;
|
|
208
|
-
border-bottom-color: var(--idooel-border-color);
|
|
209
|
-
}
|
|
210
|
-
.ant-table-body-inner {
|
|
211
|
-
border-right-width: calc(var(--idooel-border-width) * 1px);
|
|
212
|
-
border-right-style: solid;
|
|
213
|
-
border-right-color: var(--idooel-border-color);
|
|
214
|
-
}
|
|
215
|
-
.ant-table-fixed {
|
|
216
|
-
border-right-width: calc(var(--idooel-border-width) * 1px);
|
|
217
|
-
border-right-color: var(--idooel-border-color);
|
|
218
|
-
border-right-style: solid;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
.ant-table-fixed-right {
|
|
222
|
-
.ant-table-header {
|
|
223
|
-
border-bottom-width: calc(var(--idooel-border-width) * 1px);
|
|
224
|
-
border-bottom-color: var(--idooel-border-color);
|
|
225
|
-
border-bottom-style: solid;
|
|
226
|
-
}
|
|
227
|
-
border-bottom-width: calc(var(--idooel-border-width) * 1px);
|
|
228
|
-
border-bottom-style: solid;
|
|
229
|
-
border-bottom-color: var(--idooel-border-color);
|
|
230
|
-
.ant-table-fixed {
|
|
231
|
-
border-left-width: calc(var(--idooel-border-width) * 1px);
|
|
232
|
-
border-left-style: solid;
|
|
233
|
-
border-left-color: var(--idooel-border-color);
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
padding: 16px;
|
|
238
|
-
padding-top: unset;
|
|
239
|
-
::v-deep .g-table__row--even {
|
|
240
|
-
background: var(--idooel-row-even-color);
|
|
241
|
-
}
|
|
242
|
-
.g-table__row--odd {
|
|
243
|
-
background: var(--idooel-row-odd-color);
|
|
244
|
-
}
|
|
245
|
-
.g-table__pagination {
|
|
246
|
-
/* margin-top: 8px; */
|
|
247
|
-
display: flex;
|
|
248
|
-
flex-direction: row;
|
|
249
|
-
justify-content: end;
|
|
250
|
-
border-width: calc(var(--idooel-border-width) * 1px);
|
|
251
|
-
border-color: var(--idooel-border-color);
|
|
252
|
-
border-style: solid;
|
|
253
|
-
border-top: unset;
|
|
254
|
-
padding-top: 8px;
|
|
255
|
-
padding-bottom: 8px;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
1
|
+
<template>
|
|
2
|
+
<div class="g-table__wrapper" :style="{ height: `${height}px` }">
|
|
3
|
+
<a-table
|
|
4
|
+
:class="[isNoData && 'g-table__no-data']"
|
|
5
|
+
:style="{ height: noDataAntTableHeight }"
|
|
6
|
+
:pagination="false"
|
|
7
|
+
:loading="loading"
|
|
8
|
+
:columns="columns"
|
|
9
|
+
:row-selection="rowSelection"
|
|
10
|
+
:row-class-name="setRowClassName"
|
|
11
|
+
:data-source="dataSource"
|
|
12
|
+
:scroll="getScroll">
|
|
13
|
+
<template slot="action" slot-scope="record">
|
|
14
|
+
<Actions v-on="$listeners" :data-source="actions" :record="record"></Actions>
|
|
15
|
+
</template>
|
|
16
|
+
</a-table>
|
|
17
|
+
<div class="g-table__pagination">
|
|
18
|
+
<a-pagination
|
|
19
|
+
:show-total="all => `共 ${all} 条数据`"
|
|
20
|
+
show-size-changer
|
|
21
|
+
show-quick-jumper
|
|
22
|
+
:pageSize="innerPageSize"
|
|
23
|
+
:current="innerCurrentPage"
|
|
24
|
+
:pageSizeOptions="pageSizeOptions"
|
|
25
|
+
@change="onChangePagination"
|
|
26
|
+
@showSizeChange="onShowSizeChange"
|
|
27
|
+
:total="total">
|
|
28
|
+
</a-pagination>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</template>
|
|
32
|
+
|
|
33
|
+
<script>
|
|
34
|
+
import Actions from './action.vue'
|
|
35
|
+
export default {
|
|
36
|
+
name: 'ele-table',
|
|
37
|
+
components: {
|
|
38
|
+
Actions
|
|
39
|
+
},
|
|
40
|
+
props: {
|
|
41
|
+
height: {
|
|
42
|
+
type: Number
|
|
43
|
+
},
|
|
44
|
+
x: {
|
|
45
|
+
type: Number,
|
|
46
|
+
default: 1500
|
|
47
|
+
},
|
|
48
|
+
y: {
|
|
49
|
+
type: Number,
|
|
50
|
+
default: 200
|
|
51
|
+
},
|
|
52
|
+
scroll: {
|
|
53
|
+
type: Object
|
|
54
|
+
},
|
|
55
|
+
rowSelection: {
|
|
56
|
+
type: Object
|
|
57
|
+
},
|
|
58
|
+
actions: {
|
|
59
|
+
type: Array,
|
|
60
|
+
default: () => []
|
|
61
|
+
},
|
|
62
|
+
total: {
|
|
63
|
+
type: Number,
|
|
64
|
+
default: 0
|
|
65
|
+
},
|
|
66
|
+
loading: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
default: false
|
|
69
|
+
},
|
|
70
|
+
columns: {
|
|
71
|
+
type: Array,
|
|
72
|
+
default: () => []
|
|
73
|
+
},
|
|
74
|
+
dataSource: {
|
|
75
|
+
type: Array,
|
|
76
|
+
default: () => []
|
|
77
|
+
},
|
|
78
|
+
pageSize: {
|
|
79
|
+
type: Number,
|
|
80
|
+
default: 10
|
|
81
|
+
},
|
|
82
|
+
pageSizeOptions: {
|
|
83
|
+
type: Array,
|
|
84
|
+
default: () => ['10', '20', '30', '40']
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
data() {
|
|
88
|
+
return {
|
|
89
|
+
tableHeaderHeight: 0,
|
|
90
|
+
paginationHeight: 0,
|
|
91
|
+
innerPageSize: 10,
|
|
92
|
+
innerCurrentPage: 1
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
computed: {
|
|
96
|
+
isNoData () {
|
|
97
|
+
return !this.dataSource.length
|
|
98
|
+
},
|
|
99
|
+
noDataAntTableHeight () {
|
|
100
|
+
//TODO
|
|
101
|
+
if (this.dataSource.length) {
|
|
102
|
+
// return 'auto'
|
|
103
|
+
return `${this.height - this.paginationHeight - 16}px`
|
|
104
|
+
}
|
|
105
|
+
return `${this.height - this.paginationHeight - 16}px`
|
|
106
|
+
},
|
|
107
|
+
getScrollHeightByHeight () {
|
|
108
|
+
return this.height - this.tableHeaderHeight - this.paginationHeight
|
|
109
|
+
},
|
|
110
|
+
getScroll () {
|
|
111
|
+
if (this.scroll) {
|
|
112
|
+
return this.scroll
|
|
113
|
+
} else {
|
|
114
|
+
if (this.height) {
|
|
115
|
+
return { x: this.x, y: this.getScrollHeightByHeight }
|
|
116
|
+
}
|
|
117
|
+
return { x: this.x, y: this.y }
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
watch: {
|
|
122
|
+
pageSize: {
|
|
123
|
+
handler (pageSize) {
|
|
124
|
+
this.innerPageSize = pageSize
|
|
125
|
+
},
|
|
126
|
+
immediate: true
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
methods: {
|
|
130
|
+
onShowSizeChange (current, pageSize) {
|
|
131
|
+
this.innerCurrentPage = current
|
|
132
|
+
this.innerPageSize = pageSize
|
|
133
|
+
this.$emit('change-page', current, pageSize)
|
|
134
|
+
},
|
|
135
|
+
setPaginationHeight () {
|
|
136
|
+
this.$nextTick(() => {
|
|
137
|
+
const { height } = document.querySelector('.g-table__pagination').getBoundingClientRect()
|
|
138
|
+
this.paginationHeight = height
|
|
139
|
+
})
|
|
140
|
+
},
|
|
141
|
+
setTableHeaderHeight () {
|
|
142
|
+
this.$nextTick(() => {
|
|
143
|
+
const { height } = document.querySelector('.ant-table-header').getBoundingClientRect()
|
|
144
|
+
this.tableHeaderHeight = height
|
|
145
|
+
})
|
|
146
|
+
},
|
|
147
|
+
setRowClassName (record, idx) {
|
|
148
|
+
return idx % 2 === 0 ? 'g-table__row--even' : 'g-table__row--odd'
|
|
149
|
+
},
|
|
150
|
+
onChangePagination (page, pageSize) {
|
|
151
|
+
this.innerCurrentPage = page
|
|
152
|
+
this.innerPageSize = pageSize
|
|
153
|
+
this.$emit('change-page', page, pageSize)
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
mounted() {
|
|
157
|
+
this.setTableHeaderHeight()
|
|
158
|
+
this.setPaginationHeight()
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
</script>
|
|
162
|
+
|
|
163
|
+
<style lang="scss" scoped>
|
|
164
|
+
.g-table__wrapper {
|
|
165
|
+
::v-deep .ant-spin-nested-loading {
|
|
166
|
+
height: inherit;
|
|
167
|
+
.ant-spin-container {
|
|
168
|
+
height: inherit;
|
|
169
|
+
.ant-table {
|
|
170
|
+
height: inherit;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
::v-deep .ant-table-wrapper {
|
|
175
|
+
.ant-table {
|
|
176
|
+
border-width: calc(var(--idooel-border-width) * 1px);
|
|
177
|
+
border-style: solid;
|
|
178
|
+
border-color: var(--idooel-border-color);
|
|
179
|
+
}
|
|
180
|
+
.ant-table-header {
|
|
181
|
+
.ant-table-fixed {
|
|
182
|
+
/* border-bottom: 2px solid #53a8ff !important; */
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
.ant-table-tbody {
|
|
186
|
+
tr {
|
|
187
|
+
td {
|
|
188
|
+
border-color: var(--idooel-column-border-color);
|
|
189
|
+
border-width: calc(var(--idooel-column-border-width) * 1px);;
|
|
190
|
+
border-style: solid;
|
|
191
|
+
border-top: unset;
|
|
192
|
+
border-left: unset;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
.ant-table-body {
|
|
197
|
+
border-top-width: calc(var(--idooel-border-width) * 1px);
|
|
198
|
+
border-top-style: solid;
|
|
199
|
+
border-top-color: var(--idooel-border-color);
|
|
200
|
+
}
|
|
201
|
+
.ant-table-fixed-left {
|
|
202
|
+
border-bottom-width: calc(var(--idooel-border-width) * 1px);
|
|
203
|
+
border-bottom-style: solid;
|
|
204
|
+
border-bottom-color: var(--idooel-border-color);
|
|
205
|
+
.ant-table-header {
|
|
206
|
+
border-bottom-width: calc(var(--idooel-border-width) * 1px);
|
|
207
|
+
border-bottom-style: solid;
|
|
208
|
+
border-bottom-color: var(--idooel-border-color);
|
|
209
|
+
}
|
|
210
|
+
.ant-table-body-inner {
|
|
211
|
+
border-right-width: calc(var(--idooel-border-width) * 1px);
|
|
212
|
+
border-right-style: solid;
|
|
213
|
+
border-right-color: var(--idooel-border-color);
|
|
214
|
+
}
|
|
215
|
+
.ant-table-fixed {
|
|
216
|
+
border-right-width: calc(var(--idooel-border-width) * 1px);
|
|
217
|
+
border-right-color: var(--idooel-border-color);
|
|
218
|
+
border-right-style: solid;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
.ant-table-fixed-right {
|
|
222
|
+
.ant-table-header {
|
|
223
|
+
border-bottom-width: calc(var(--idooel-border-width) * 1px);
|
|
224
|
+
border-bottom-color: var(--idooel-border-color);
|
|
225
|
+
border-bottom-style: solid;
|
|
226
|
+
}
|
|
227
|
+
border-bottom-width: calc(var(--idooel-border-width) * 1px);
|
|
228
|
+
border-bottom-style: solid;
|
|
229
|
+
border-bottom-color: var(--idooel-border-color);
|
|
230
|
+
.ant-table-fixed {
|
|
231
|
+
border-left-width: calc(var(--idooel-border-width) * 1px);
|
|
232
|
+
border-left-style: solid;
|
|
233
|
+
border-left-color: var(--idooel-border-color);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
padding: 16px;
|
|
238
|
+
padding-top: unset;
|
|
239
|
+
::v-deep .g-table__row--even {
|
|
240
|
+
background: var(--idooel-row-even-color);
|
|
241
|
+
}
|
|
242
|
+
.g-table__row--odd {
|
|
243
|
+
background: var(--idooel-row-odd-color);
|
|
244
|
+
}
|
|
245
|
+
.g-table__pagination {
|
|
246
|
+
/* margin-top: 8px; */
|
|
247
|
+
display: flex;
|
|
248
|
+
flex-direction: row;
|
|
249
|
+
justify-content: end;
|
|
250
|
+
border-width: calc(var(--idooel-border-width) * 1px);
|
|
251
|
+
border-color: var(--idooel-border-color);
|
|
252
|
+
border-style: solid;
|
|
253
|
+
border-top: unset;
|
|
254
|
+
padding-top: 8px;
|
|
255
|
+
padding-bottom: 8px;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
258
|
</style>
|
package/packages/tabs/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import EleTabs from './src/index.vue'
|
|
2
|
-
|
|
3
|
-
EleTabs.install = Vue => Vue.component(EleTabs.name, EleTabs)
|
|
4
|
-
|
|
1
|
+
import EleTabs from './src/index.vue'
|
|
2
|
+
|
|
3
|
+
EleTabs.install = Vue => Vue.component(EleTabs.name, EleTabs)
|
|
4
|
+
|
|
5
5
|
export default EleTabs
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<a-tabs :default-active-key="activeKey" :tabBarGutter="tabBarGutter" :tabBarStyle="tabBarStyle" @change="changeHandle">
|
|
4
|
-
<a-tab-pane v-for="(item, index) in tabsList" :key="index" :tab="item.tabName" :disabled="item.disabled">
|
|
5
|
-
<template #tab>
|
|
6
|
-
<component v-if="item.renderHeader" :is="item.renderHeader" ></component>
|
|
7
|
-
<span v-else>{{ item.tabName }}</span>
|
|
8
|
-
</template>
|
|
9
|
-
<component :is="item.content"></component>
|
|
10
|
-
</a-tab-pane>
|
|
11
|
-
</a-tabs>
|
|
12
|
-
</div>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script>
|
|
16
|
-
export default {
|
|
17
|
-
name: 'ele-tabs',
|
|
18
|
-
components: {},
|
|
19
|
-
model: {
|
|
20
|
-
prop: 'value',
|
|
21
|
-
event: 'change'
|
|
22
|
-
},
|
|
23
|
-
props: {
|
|
24
|
-
activeKey: {
|
|
25
|
-
type: Number,
|
|
26
|
-
default: 0
|
|
27
|
-
},
|
|
28
|
-
tabsList: {
|
|
29
|
-
type: Array,
|
|
30
|
-
default () {
|
|
31
|
-
return []
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
tabBarStyle: {
|
|
35
|
-
type: Object,
|
|
36
|
-
default () {
|
|
37
|
-
return {}
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
tabBarGutter: {
|
|
41
|
-
type: Number
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
methods: {
|
|
45
|
-
changeHandle (key) {
|
|
46
|
-
this.$emit('changeActiveKey', key)
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
</script>
|
|
51
|
-
|
|
52
|
-
<style lang="scss" scoped>
|
|
53
|
-
::v-deep .ant-tabs-nav-scroll {
|
|
54
|
-
float: left !important;
|
|
55
|
-
}
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<a-tabs :default-active-key="activeKey" :tabBarGutter="tabBarGutter" :tabBarStyle="tabBarStyle" @change="changeHandle">
|
|
4
|
+
<a-tab-pane v-for="(item, index) in tabsList" :key="index" :tab="item.tabName" :disabled="item.disabled">
|
|
5
|
+
<template #tab>
|
|
6
|
+
<component v-if="item.renderHeader" :is="item.renderHeader" ></component>
|
|
7
|
+
<span v-else>{{ item.tabName }}</span>
|
|
8
|
+
</template>
|
|
9
|
+
<component :is="item.content"></component>
|
|
10
|
+
</a-tab-pane>
|
|
11
|
+
</a-tabs>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script>
|
|
16
|
+
export default {
|
|
17
|
+
name: 'ele-tabs',
|
|
18
|
+
components: {},
|
|
19
|
+
model: {
|
|
20
|
+
prop: 'value',
|
|
21
|
+
event: 'change'
|
|
22
|
+
},
|
|
23
|
+
props: {
|
|
24
|
+
activeKey: {
|
|
25
|
+
type: Number,
|
|
26
|
+
default: 0
|
|
27
|
+
},
|
|
28
|
+
tabsList: {
|
|
29
|
+
type: Array,
|
|
30
|
+
default () {
|
|
31
|
+
return []
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
tabBarStyle: {
|
|
35
|
+
type: Object,
|
|
36
|
+
default () {
|
|
37
|
+
return {}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
tabBarGutter: {
|
|
41
|
+
type: Number
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
methods: {
|
|
45
|
+
changeHandle (key) {
|
|
46
|
+
this.$emit('changeActiveKey', key)
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
</script>
|
|
51
|
+
|
|
52
|
+
<style lang="scss" scoped>
|
|
53
|
+
::v-deep .ant-tabs-nav-scroll {
|
|
54
|
+
float: left !important;
|
|
55
|
+
}
|
|
56
56
|
</style>
|
package/packages/text/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import EleText from './src/index.vue'
|
|
2
|
-
|
|
3
|
-
EleText.install = Vue => Vue.component(EleText.name, EleText)
|
|
4
|
-
|
|
1
|
+
import EleText from './src/index.vue'
|
|
2
|
+
|
|
3
|
+
EleText.install = Vue => Vue.component(EleText.name, EleText)
|
|
4
|
+
|
|
5
5
|
export default EleText
|