vxe-table 3.21.22 → 3.21.23
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/es/{iconfont.1782890276645.ttf → iconfont.1783046294821.ttf} +0 -0
- package/es/iconfont.1783046294821.woff +0 -0
- package/es/iconfont.1783046294821.woff2 +0 -0
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/locale/lang/ar-EG.js +12 -3
- package/es/locale/lang/de-DE.js +12 -3
- package/es/locale/lang/en-US.js +16 -7
- package/es/locale/lang/es-ES.js +12 -3
- package/es/locale/lang/fr-FR.js +12 -3
- package/es/locale/lang/hu-HU.js +12 -3
- package/es/locale/lang/hy-AM.js +12 -3
- package/es/locale/lang/id-ID.js +12 -3
- package/es/locale/lang/it-IT.js +11 -2
- package/es/locale/lang/ja-JP.js +12 -3
- package/es/locale/lang/ko-KR.js +12 -3
- package/es/locale/lang/ms-MY.js +12 -3
- package/es/locale/lang/nb-NO.js +12 -3
- package/es/locale/lang/pt-BR.js +12 -3
- package/es/locale/lang/ru-RU.js +12 -3
- package/es/locale/lang/th-TH.js +12 -3
- package/es/locale/lang/ug-CN.js +12 -3
- package/es/locale/lang/uk-UA.js +12 -3
- package/es/locale/lang/uz-UZ.js +12 -3
- package/es/locale/lang/vi-VN.js +11 -2
- package/es/locale/lang/zh-CHT.js +14 -5
- package/es/locale/lang/zh-CN.js +14 -5
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/custom/mixin.js +84 -13
- package/es/table/module/custom/panel.js +485 -312
- package/es/table/src/columnInfo.js +13 -7
- package/es/table/src/methods.js +100 -59
- package/es/table/src/util.js +31 -1
- package/es/table/style.css +96 -49
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +16 -4
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +96 -49
- package/es/vxe-table/style.min.css +1 -1
- package/lib/{iconfont.1782890276645.ttf → iconfont.1783046294821.ttf} +0 -0
- package/lib/iconfont.1783046294821.woff +0 -0
- package/lib/iconfont.1783046294821.woff2 +0 -0
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +557 -194
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +12 -3
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +12 -3
- package/lib/locale/lang/de-DE.js +12 -3
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +12 -3
- package/lib/locale/lang/en-US.js +16 -7
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +16 -7
- package/lib/locale/lang/es-ES.js +12 -3
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +12 -3
- package/lib/locale/lang/fr-FR.js +12 -3
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +12 -3
- package/lib/locale/lang/hu-HU.js +12 -3
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +12 -3
- package/lib/locale/lang/hy-AM.js +12 -3
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +12 -3
- package/lib/locale/lang/id-ID.js +12 -3
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +12 -3
- package/lib/locale/lang/it-IT.js +11 -2
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +11 -2
- package/lib/locale/lang/ja-JP.js +12 -3
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +12 -3
- package/lib/locale/lang/ko-KR.js +12 -3
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +12 -3
- package/lib/locale/lang/ms-MY.js +12 -3
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +12 -3
- package/lib/locale/lang/nb-NO.js +12 -3
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +12 -3
- package/lib/locale/lang/pt-BR.js +12 -3
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +12 -3
- package/lib/locale/lang/ru-RU.js +12 -3
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +12 -3
- package/lib/locale/lang/th-TH.js +12 -3
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +12 -3
- package/lib/locale/lang/ug-CN.js +12 -3
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +12 -3
- package/lib/locale/lang/uk-UA.js +12 -3
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +12 -3
- package/lib/locale/lang/uz-UZ.js +12 -3
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +12 -3
- package/lib/locale/lang/vi-VN.js +11 -2
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +11 -2
- package/lib/locale/lang/zh-CHT.js +14 -5
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +14 -5
- package/lib/locale/lang/zh-CN.js +14 -5
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +14 -5
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/custom/mixin.js +91 -11
- package/lib/table/module/custom/mixin.min.js +1 -1
- package/lib/table/module/custom/panel.js +376 -158
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/src/columnInfo.js +16 -6
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/methods.js +9 -8
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/util.js +35 -1
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +96 -49
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +16 -4
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-table/style/style.css +96 -49
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/locale/lang/ar-EG.ts +12 -3
- package/packages/locale/lang/de-DE.ts +12 -3
- package/packages/locale/lang/en-US.ts +16 -7
- package/packages/locale/lang/es-ES.ts +12 -3
- package/packages/locale/lang/fr-FR.ts +12 -3
- package/packages/locale/lang/hu-HU.ts +12 -3
- package/packages/locale/lang/hy-AM.ts +12 -3
- package/packages/locale/lang/id-ID.ts +12 -3
- package/packages/locale/lang/it-IT.ts +11 -2
- package/packages/locale/lang/ja-JP.ts +12 -3
- package/packages/locale/lang/ko-KR.ts +12 -3
- package/packages/locale/lang/ms-MY.ts +12 -3
- package/packages/locale/lang/nb-NO.ts +12 -3
- package/packages/locale/lang/pt-BR.ts +12 -3
- package/packages/locale/lang/ru-RU.ts +12 -3
- package/packages/locale/lang/th-TH.ts +12 -3
- package/packages/locale/lang/ug-CN.ts +12 -3
- package/packages/locale/lang/uk-UA.ts +12 -3
- package/packages/locale/lang/uz-UZ.ts +12 -3
- package/packages/locale/lang/vi-VN.ts +11 -2
- package/packages/locale/lang/zh-CHT.ts +14 -5
- package/packages/locale/lang/zh-CN.ts +14 -5
- package/packages/table/module/custom/mixin.ts +85 -14
- package/packages/table/module/custom/panel.ts +538 -307
- package/packages/table/src/columnInfo.ts +13 -7
- package/packages/table/src/methods.ts +116 -60
- package/packages/table/src/util.ts +34 -1
- package/packages/ui/index.ts +15 -3
- package/styles/components/icon.scss +29 -2
- package/styles/components/table-module/custom.scss +88 -67
- package/styles/icon/iconfont.ttf +0 -0
- package/styles/icon/iconfont.woff +0 -0
- package/styles/icon/iconfont.woff2 +0 -0
- package/styles/theme/base.scss +11 -0
- package/es/iconfont.1782890276645.woff +0 -0
- package/es/iconfont.1782890276645.woff2 +0 -0
- package/lib/iconfont.1782890276645.woff +0 -0
- package/lib/iconfont.1782890276645.woff2 +0 -0
|
@@ -175,10 +175,16 @@ export default {
|
|
|
175
175
|
colResizable: '列寬(像素)',
|
|
176
176
|
colVisible: '是否顯示',
|
|
177
177
|
colFixed: '凍結列',
|
|
178
|
-
colFixedMax: '
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
178
|
+
colFixedMax: '凍結列({0})',
|
|
179
|
+
colAlign: '对齐方式',
|
|
180
|
+
colHeadAlign: '表头对齐方式',
|
|
181
|
+
colFootAlign: '表尾对齐方式',
|
|
182
|
+
fixedLeft: '左',
|
|
183
|
+
fixedUnset: '无',
|
|
184
|
+
fixedRight: '右',
|
|
185
|
+
alignLeft: '左',
|
|
186
|
+
alignCenter: '中',
|
|
187
|
+
alignRight: '右',
|
|
182
188
|
moveUp: '上移',
|
|
183
189
|
moveDn: '下移',
|
|
184
190
|
putTop: '置顶',
|
|
@@ -186,7 +192,10 @@ export default {
|
|
|
186
192
|
moveUpTitle: '点击向上移动',
|
|
187
193
|
moveDnTitle: '点击向下移动',
|
|
188
194
|
putTopTitle: '点击置顶',
|
|
189
|
-
putBottomTitle: '点击置尾'
|
|
195
|
+
putBottomTitle: '点击置尾',
|
|
196
|
+
anLeftTitle: '左对齐',
|
|
197
|
+
anCenterTitle: '居中',
|
|
198
|
+
anRightTitle: '右对齐'
|
|
190
199
|
}
|
|
191
200
|
},
|
|
192
201
|
import: {
|
|
@@ -175,10 +175,16 @@ export default {
|
|
|
175
175
|
colResizable: '列宽(像素)',
|
|
176
176
|
colVisible: '是否显示',
|
|
177
177
|
colFixed: '冻结列',
|
|
178
|
-
colFixedMax: '
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
178
|
+
colFixedMax: '冻结列({0})',
|
|
179
|
+
colAlign: '对齐方式',
|
|
180
|
+
colHeadAlign: '表头对齐方式',
|
|
181
|
+
colFootAlign: '表尾对齐方式',
|
|
182
|
+
fixedLeft: '左',
|
|
183
|
+
fixedUnset: '无',
|
|
184
|
+
fixedRight: '右',
|
|
185
|
+
alignLeft: '左',
|
|
186
|
+
alignCenter: '中',
|
|
187
|
+
alignRight: '右',
|
|
182
188
|
moveUp: '上移',
|
|
183
189
|
moveDn: '下移',
|
|
184
190
|
putTop: '置顶',
|
|
@@ -186,7 +192,10 @@ export default {
|
|
|
186
192
|
moveUpTitle: '点击向上移动',
|
|
187
193
|
moveDnTitle: '点击向下移动',
|
|
188
194
|
putTopTitle: '点击置顶',
|
|
189
|
-
putBottomTitle: '点击置尾'
|
|
195
|
+
putBottomTitle: '点击置尾',
|
|
196
|
+
anLeftTitle: '左对齐',
|
|
197
|
+
anCenterTitle: '居中',
|
|
198
|
+
anRightTitle: '右对齐'
|
|
190
199
|
}
|
|
191
200
|
},
|
|
192
201
|
import: {
|
|
@@ -4,6 +4,8 @@ import { toCssUnit } from '../../../ui/src/dom'
|
|
|
4
4
|
|
|
5
5
|
import type { VxeColumnPropTypes, VxeTableConstructor, VxeTablePrivateMethods, VxeTableDefines, TableReactData, TableInternalData, VxeComponentStyleType } from '../../../../types'
|
|
6
6
|
|
|
7
|
+
const customColumnCssKeys = ['checkbox', 'sort', 'title', 'width', 'fixed', 'align', 'header-align', 'footer-align']
|
|
8
|
+
|
|
7
9
|
function updatePopupStyle ($xeTable: VxeTableConstructor & VxeTablePrivateMethods) {
|
|
8
10
|
const $xeGrid = $xeTable.$xeGrid
|
|
9
11
|
const $xeGantt = $xeTable.$xeGantt
|
|
@@ -14,14 +16,15 @@ function updatePopupStyle ($xeTable: VxeTableConstructor & VxeTablePrivateMethod
|
|
|
14
16
|
const customOpts = $xeTable.computeCustomOpts
|
|
15
17
|
const { mode, placement, popupOptions } = customOpts
|
|
16
18
|
const showSimple = !(mode === 'modal' || mode === 'drawer')
|
|
17
|
-
const { transfer, maxHeight } = popupOptions || {}
|
|
19
|
+
const { transfer, minWidth, maxWidth, maxHeight } = popupOptions || {}
|
|
18
20
|
const customSimpleMode = $xeTable.computeCustomSimpleMode
|
|
19
21
|
const showCustomSimpleOutside = customSimpleMode === 'outside'
|
|
20
22
|
const bodyEl = document.documentElement
|
|
21
23
|
let wrapperEl = $xeTable.$refs.refElem as HTMLDivElement
|
|
22
24
|
let popupTop = 0
|
|
23
25
|
let popupMaxHeight: string | number = 0
|
|
24
|
-
const
|
|
26
|
+
const defPupStys: VxeComponentStyleType = {}
|
|
27
|
+
const panePupStys: VxeComponentStyleType = {}
|
|
25
28
|
if ($xeGantt) {
|
|
26
29
|
const ganttContainerElem = $xeGantt.$refs.refGanttContainerElem as HTMLDivElement
|
|
27
30
|
if (ganttContainerElem) {
|
|
@@ -51,25 +54,42 @@ function updatePopupStyle ($xeTable: VxeTableConstructor & VxeTablePrivateMethod
|
|
|
51
54
|
}
|
|
52
55
|
if (!placement || !(['left', 'right', 'bottom-left', 'bottom-right'].includes(placement))) {
|
|
53
56
|
if (popupTop) {
|
|
54
|
-
|
|
57
|
+
defPupStys.top = toCssUnit(popupTop)
|
|
55
58
|
}
|
|
56
59
|
}
|
|
57
60
|
|
|
58
61
|
if (showSimple && transfer) {
|
|
59
62
|
if (placement === 'bottom-left' || placement === 'bottom-right') {
|
|
60
|
-
|
|
63
|
+
defPupStys.bottom = toCssUnit(bodyEl.scrollHeight - tableRect.top - tableRect.height + 1)
|
|
61
64
|
}
|
|
62
65
|
if (placement === 'top-left' || placement === 'bottom-left') {
|
|
63
|
-
|
|
66
|
+
defPupStys.left = toCssUnit(tableRect.left)
|
|
64
67
|
} else if (!placement || placement === 'top-right' || placement === 'bottom-right') {
|
|
65
|
-
|
|
68
|
+
defPupStys.right = toCssUnit(bodyEl.scrollWidth - tableRect.left - tableRect.width + 1)
|
|
66
69
|
}
|
|
67
70
|
}
|
|
68
71
|
|
|
72
|
+
// 同步表格的css变量到弹窗中
|
|
73
|
+
const bodyComputeStyle = getComputedStyle(bodyEl)
|
|
74
|
+
const tableComputeStyle = getComputedStyle(wrapperEl)
|
|
75
|
+
customColumnCssKeys.forEach(key => {
|
|
76
|
+
const currCssKey = `--vxe-ui-vxe-table-custom-column-${key}-${key === 'title' ? 'min-' : ''}width`
|
|
77
|
+
const currCssVal = tableComputeStyle.getPropertyValue(currCssKey)
|
|
78
|
+
if (currCssVal && currCssVal !== bodyComputeStyle.getPropertyValue(currCssKey)) {
|
|
79
|
+
panePupStys[currCssKey] = currCssVal
|
|
80
|
+
}
|
|
81
|
+
})
|
|
82
|
+
if (minWidth) {
|
|
83
|
+
defPupStys['--vxe-ui-vxe-table-custom-default-min-width'] = toCssUnit(minWidth)
|
|
84
|
+
}
|
|
85
|
+
if (maxWidth) {
|
|
86
|
+
defPupStys['--vxe-ui-vxe-table-custom-default-max-width'] = toCssUnit(maxWidth)
|
|
87
|
+
}
|
|
69
88
|
if (popupMxHeight) {
|
|
70
|
-
|
|
89
|
+
defPupStys.maxHeight = toCssUnit(popupMxHeight)
|
|
71
90
|
}
|
|
72
|
-
customStore.
|
|
91
|
+
customStore.defPopupStyle = defPupStys
|
|
92
|
+
customStore.panePopupStyle = panePupStys
|
|
73
93
|
customStore.maxHeight = popupMxHeight
|
|
74
94
|
return $xeTable.$nextTick()
|
|
75
95
|
}
|
|
@@ -166,8 +186,16 @@ export default {
|
|
|
166
186
|
|
|
167
187
|
const { customColumnList, aggHandleFields, rowGroupList } = reactData
|
|
168
188
|
const customOpts = $xeTable.computeCustomOpts
|
|
169
|
-
const { allowVisible, allowSort, allowFixed, allowResizable, allowGroup, allowValues } = customOpts
|
|
170
|
-
if (
|
|
189
|
+
const { allowVisible, allowSort, allowFixed, allowResizable, allowAlign, allowHeaderAlign, allowFooterAlign, allowGroup, allowValues } = customOpts
|
|
190
|
+
if (isDirectly) {
|
|
191
|
+
XEUtils.eachTree(customColumnList, (column) => {
|
|
192
|
+
if (allowResizable) {
|
|
193
|
+
if (column.renderVisible && (!column.children || !column.children.length)) {
|
|
194
|
+
column.resizeWidth = Math.max(0, XEUtils.toNumber(column.renderWidth))
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
})
|
|
198
|
+
} else {
|
|
171
199
|
XEUtils.eachTree(customColumnList, (column, index, items, path, parentColumn) => {
|
|
172
200
|
if (parentColumn) {
|
|
173
201
|
// 更新子列信息
|
|
@@ -192,13 +220,22 @@ export default {
|
|
|
192
220
|
if (allowVisible) {
|
|
193
221
|
column.visible = column.renderVisible
|
|
194
222
|
}
|
|
223
|
+
if (allowAlign) {
|
|
224
|
+
column.align = column.renderAlign
|
|
225
|
+
}
|
|
226
|
+
if (allowHeaderAlign) {
|
|
227
|
+
column.headerAlign = column.renderHeaderAlign
|
|
228
|
+
}
|
|
229
|
+
if (allowFooterAlign) {
|
|
230
|
+
column.footerAlign = column.renderFooterAlign
|
|
231
|
+
}
|
|
195
232
|
if (allowGroup && allowValues) {
|
|
196
233
|
column.aggFunc = column.renderAggFn
|
|
197
234
|
}
|
|
198
235
|
})
|
|
199
236
|
}
|
|
200
237
|
reactData.isCustomStatus = true
|
|
201
|
-
if (allowGroup &&
|
|
238
|
+
if (allowGroup && !!$xeTable.handlePivotTableAggData) {
|
|
202
239
|
if (rowGroupList.length !== aggHandleFields.length || rowGroupList.some((conf, i) => conf.field !== aggHandleFields[i])) {
|
|
203
240
|
// 更新数据分组
|
|
204
241
|
if (aggHandleFields.length) {
|
|
@@ -223,7 +260,7 @@ export default {
|
|
|
223
260
|
const { customColumnList, customStore } = reactData
|
|
224
261
|
const { oldSortMaps, oldFixedMaps, oldVisibleMaps } = customStore
|
|
225
262
|
const customOpts = $xeTable.computeCustomOpts
|
|
226
|
-
const { allowVisible, allowSort, allowFixed, allowResizable } = customOpts
|
|
263
|
+
const { allowVisible, allowSort, allowFixed, allowAlign, allowHeaderAlign, allowFooterAlign, allowResizable, allowGroup, allowValues } = customOpts
|
|
227
264
|
XEUtils.eachTree(customColumnList, column => {
|
|
228
265
|
const colid = column.getKey()
|
|
229
266
|
const visible = !!oldVisibleMaps[colid]
|
|
@@ -242,6 +279,21 @@ export default {
|
|
|
242
279
|
if (allowResizable) {
|
|
243
280
|
column.renderResizeWidth = column.renderWidth
|
|
244
281
|
}
|
|
282
|
+
if (allowAlign) {
|
|
283
|
+
column.align = column.renderAlign
|
|
284
|
+
}
|
|
285
|
+
if (allowHeaderAlign) {
|
|
286
|
+
column.headerAlign = column.renderHeaderAlign
|
|
287
|
+
}
|
|
288
|
+
if (allowFooterAlign) {
|
|
289
|
+
column.footerAlign = column.renderFooterAlign
|
|
290
|
+
}
|
|
291
|
+
if (allowGroup) {
|
|
292
|
+
// 无
|
|
293
|
+
}
|
|
294
|
+
if (allowValues) {
|
|
295
|
+
// 无
|
|
296
|
+
}
|
|
245
297
|
}, { children: 'children' })
|
|
246
298
|
return $xeTable.$nextTick()
|
|
247
299
|
},
|
|
@@ -254,12 +306,15 @@ export default {
|
|
|
254
306
|
const { collectColumn } = internalData
|
|
255
307
|
const customOpts = $xeTable.computeCustomOpts
|
|
256
308
|
const { checkMethod } = customOpts
|
|
257
|
-
const opts = Object.assign({
|
|
309
|
+
const opts: VxeTableDefines.VxeTableCustomStorageObj = Object.assign({
|
|
258
310
|
visible: true,
|
|
259
311
|
resizable: options === true,
|
|
260
312
|
fixed: options === true,
|
|
261
313
|
sort: options === true,
|
|
262
|
-
aggFunc: options === true
|
|
314
|
+
aggFunc: options === true,
|
|
315
|
+
align: options === true,
|
|
316
|
+
headerAlign: options === true,
|
|
317
|
+
footerAlign: options === true
|
|
263
318
|
}, options)
|
|
264
319
|
const allCols: VxeTableDefines.ColumnInfo[] = []
|
|
265
320
|
XEUtils.eachTree(collectColumn, (column) => {
|
|
@@ -268,6 +323,7 @@ export default {
|
|
|
268
323
|
}
|
|
269
324
|
if (opts.fixed) {
|
|
270
325
|
column.fixed = column.defaultFixed
|
|
326
|
+
column.renderFixed = column.defaultFixed
|
|
271
327
|
}
|
|
272
328
|
if (opts.sort) {
|
|
273
329
|
column.renderSortNumber = column.sortNumber
|
|
@@ -276,6 +332,18 @@ export default {
|
|
|
276
332
|
if (!checkMethod || checkMethod({ $table: $xeTable, column })) {
|
|
277
333
|
column.visible = column.defaultVisible
|
|
278
334
|
}
|
|
335
|
+
if (opts.align) {
|
|
336
|
+
column.align = column.defaultAlign
|
|
337
|
+
column.renderAlign = column.defaultAlign
|
|
338
|
+
}
|
|
339
|
+
if (opts.headerAlign) {
|
|
340
|
+
column.headerAlign = column.defaultHeaderAlign
|
|
341
|
+
column.renderHeaderAlign = column.defaultHeaderAlign
|
|
342
|
+
}
|
|
343
|
+
if (opts.footerAlign) {
|
|
344
|
+
column.footerAlign = column.defaultFooterAlign
|
|
345
|
+
column.renderFooterAlign = column.defaultFooterAlign
|
|
346
|
+
}
|
|
279
347
|
if (opts.aggFunc) {
|
|
280
348
|
column.aggFunc = column.defaultAggFunc
|
|
281
349
|
column.renderAggFn = column.defaultAggFunc
|
|
@@ -427,6 +495,9 @@ export default {
|
|
|
427
495
|
column.renderFixed = column.fixed
|
|
428
496
|
column.renderVisible = column.visible
|
|
429
497
|
column.renderResizeWidth = column.renderWidth
|
|
498
|
+
column.renderAlign = column.align
|
|
499
|
+
column.renderHeaderAlign = column.headerAlign
|
|
500
|
+
column.renderFooterAlign = column.footerAlign
|
|
430
501
|
sortMaps[colid] = column.renderSortNumber
|
|
431
502
|
fixedMaps[colid] = column.fixed
|
|
432
503
|
visibleMaps[colid] = column.visible
|