vxe-table 3.11.33 → 3.11.35
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/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/locale/lang/ar-EG.js +3 -0
- package/es/locale/lang/de-DE.js +3 -0
- package/es/locale/lang/en-US.js +3 -0
- package/es/locale/lang/es-ES.js +3 -0
- package/es/locale/lang/fr-FR.js +3 -0
- package/es/locale/lang/hu-HU.js +3 -0
- package/es/locale/lang/hy-AM.js +3 -0
- package/es/locale/lang/ja-JP.js +3 -0
- package/es/locale/lang/ko-KR.js +3 -0
- package/es/locale/lang/nb-NO.js +3 -0
- package/es/locale/lang/pt-BR.js +3 -0
- package/es/locale/lang/ru-RU.js +3 -0
- package/es/locale/lang/ug-CN.js +3 -0
- package/es/locale/lang/uk-UA.js +3 -0
- package/es/locale/lang/vi-VN.js +3 -0
- package/es/locale/lang/zh-CHT.js +3 -0
- package/es/locale/lang/zh-CN.js +3 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/export/mixin.js +23 -10
- package/es/table/module/filter/panel.js +10 -7
- package/es/table/render/index.js +18 -7
- package/es/table/src/body.js +2 -0
- package/es/table/src/footer.js +2 -0
- package/es/table/src/header.js +2 -0
- package/es/table/src/methods.js +16 -9
- package/es/table/style.css +73 -27
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +2 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +73 -27
- package/es/vxe-table/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +87 -37
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +3 -0
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/de-DE.js +3 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/en-US.js +3 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +3 -0
- package/lib/locale/lang/es-ES.js +3 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +3 -0
- package/lib/locale/lang/fr-FR.js +3 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/hu-HU.js +3 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +3 -0
- package/lib/locale/lang/hy-AM.js +3 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/ja-JP.js +3 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +3 -0
- package/lib/locale/lang/ko-KR.js +3 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +3 -0
- package/lib/locale/lang/nb-NO.js +3 -0
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/pt-BR.js +3 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +3 -0
- package/lib/locale/lang/ru-RU.js +3 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +3 -0
- package/lib/locale/lang/ug-CN.js +3 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/uk-UA.js +3 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +3 -0
- package/lib/locale/lang/vi-VN.js +3 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/zh-CHT.js +3 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +3 -0
- package/lib/locale/lang/zh-CN.js +3 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +3 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/export/mixin.js +26 -13
- package/lib/table/module/export/mixin.min.js +1 -1
- package/lib/table/module/filter/panel.js +12 -6
- package/lib/table/module/filter/panel.min.js +1 -1
- package/lib/table/render/index.js +21 -7
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/body.js +2 -0
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/footer.js +2 -0
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/header.js +2 -0
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/methods.js +16 -10
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/style/style.css +73 -27
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +2 -1
- 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 +73 -27
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/locale/lang/ar-EG.ts +3 -0
- package/packages/locale/lang/de-DE.ts +3 -0
- package/packages/locale/lang/en-US.ts +3 -0
- package/packages/locale/lang/es-ES.ts +3 -0
- package/packages/locale/lang/fr-FR.ts +3 -0
- package/packages/locale/lang/hu-HU.ts +3 -0
- package/packages/locale/lang/hy-AM.ts +3 -0
- package/packages/locale/lang/ja-JP.ts +3 -0
- package/packages/locale/lang/ko-KR.ts +3 -0
- package/packages/locale/lang/nb-NO.ts +3 -0
- package/packages/locale/lang/pt-BR.ts +3 -0
- package/packages/locale/lang/ru-RU.ts +3 -0
- package/packages/locale/lang/ug-CN.ts +3 -0
- package/packages/locale/lang/uk-UA.ts +3 -0
- package/packages/locale/lang/vi-VN.ts +3 -0
- package/packages/locale/lang/zh-CHT.ts +3 -0
- package/packages/locale/lang/zh-CN.ts +3 -0
- package/packages/table/module/export/mixin.ts +23 -10
- package/packages/table/module/filter/panel.ts +11 -7
- package/packages/table/render/index.ts +18 -6
- package/packages/table/src/body.ts +2 -0
- package/packages/table/src/footer.ts +3 -0
- package/packages/table/src/header.ts +3 -0
- package/packages/table/src/methods.ts +16 -9
- package/packages/ui/index.ts +1 -0
- package/styles/components/table.scss +90 -19
- /package/es/{iconfont.1734402738434.ttf → iconfont.1734517179309.ttf} +0 -0
- /package/es/{iconfont.1734402738434.woff → iconfont.1734517179309.woff} +0 -0
- /package/es/{iconfont.1734402738434.woff2 → iconfont.1734517179309.woff2} +0 -0
- /package/lib/{iconfont.1734402738434.ttf → iconfont.1734517179309.ttf} +0 -0
- /package/lib/{iconfont.1734402738434.woff → iconfont.1734517179309.woff} +0 -0
- /package/lib/{iconfont.1734402738434.woff2 → iconfont.1734517179309.woff2} +0 -0
|
@@ -49,7 +49,7 @@ function getSeq ($xetable: any, cellValue: any, row: any, $rowIndex: any, column
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
function defaultFilterExportColumn (column: any) {
|
|
52
|
-
return column.
|
|
52
|
+
return column.field || ['seq', 'checkbox', 'radio'].indexOf(column.type) > -1
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
function toTableBorder (border: any) {
|
|
@@ -220,7 +220,7 @@ function getBooleanValue (cellValue: any) {
|
|
|
220
220
|
function getHeaderTitle ($xetable: any, opts: any, column: any) {
|
|
221
221
|
const { columnOpts } = $xetable
|
|
222
222
|
const headExportMethod = column.headerExportMethod || columnOpts.headerExportMethod
|
|
223
|
-
return headExportMethod ? headExportMethod({ column, options: opts, $table: $xetable }) : ((opts.original ? column.
|
|
223
|
+
return headExportMethod ? headExportMethod({ column, options: opts, $table: $xetable }) : ((opts.original ? column.field : column.getTitle()) || '')
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
function getFooterCellValue ($xetable: any, opts: any, row: any, column: any) {
|
|
@@ -776,7 +776,7 @@ function parseXML (columns: any, content: any) {
|
|
|
776
776
|
function checkImportData (columns: any[], fields: any[]) {
|
|
777
777
|
const tableFields: any[] = []
|
|
778
778
|
columns.forEach((column) => {
|
|
779
|
-
const field = column.
|
|
779
|
+
const field = column.field
|
|
780
780
|
if (field) {
|
|
781
781
|
tableFields.push(field)
|
|
782
782
|
}
|
|
@@ -1083,13 +1083,13 @@ function handleExportAndPrint ($xetable: any, options: any, isPrint?: any) {
|
|
|
1083
1083
|
} else {
|
|
1084
1084
|
const colid = item.id || item.colId
|
|
1085
1085
|
const type = item.type
|
|
1086
|
-
const field = item.
|
|
1086
|
+
const field = item.field
|
|
1087
1087
|
if (colid) {
|
|
1088
1088
|
return column.id === colid
|
|
1089
1089
|
} else if (field && type) {
|
|
1090
|
-
return column.
|
|
1090
|
+
return column.field === field && column.type === type
|
|
1091
1091
|
} else if (field) {
|
|
1092
|
-
return column.
|
|
1092
|
+
return column.field === field
|
|
1093
1093
|
} else if (type) {
|
|
1094
1094
|
return column.type === type
|
|
1095
1095
|
}
|
|
@@ -1219,13 +1219,26 @@ export default {
|
|
|
1219
1219
|
}, exportOpts, {
|
|
1220
1220
|
print: false
|
|
1221
1221
|
}, options)
|
|
1222
|
-
const { type, mode, columns, original, beforeExportMethod } = opts
|
|
1222
|
+
const { type, mode, columns, original, beforeExportMethod, excludeFields, includeFields } = opts
|
|
1223
1223
|
let groups = []
|
|
1224
1224
|
const customCols = columns && columns.length ? columns : null
|
|
1225
1225
|
// 如果设置源数据,则默认导出设置了字段的列
|
|
1226
1226
|
let columnFilterMethod = opts.columnFilterMethod
|
|
1227
1227
|
if (!customCols && !columnFilterMethod) {
|
|
1228
|
-
columnFilterMethod =
|
|
1228
|
+
columnFilterMethod = ({ column }: any) => {
|
|
1229
|
+
if (excludeFields) {
|
|
1230
|
+
if (XEUtils.includes(excludeFields, column.field)) {
|
|
1231
|
+
return false
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
if (includeFields) {
|
|
1235
|
+
if (XEUtils.includes(includeFields, column.field)) {
|
|
1236
|
+
return true
|
|
1237
|
+
}
|
|
1238
|
+
return false
|
|
1239
|
+
}
|
|
1240
|
+
return original ? column.field : defaultFilterExportColumn(column)
|
|
1241
|
+
}
|
|
1229
1242
|
}
|
|
1230
1243
|
if (customCols) {
|
|
1231
1244
|
opts._isCustomColumn = true
|
|
@@ -1240,11 +1253,11 @@ export default {
|
|
|
1240
1253
|
} else {
|
|
1241
1254
|
const colid = item.id || item.colId
|
|
1242
1255
|
const type = item.type
|
|
1243
|
-
const field = item.
|
|
1256
|
+
const field = item.field
|
|
1244
1257
|
if (colid) {
|
|
1245
1258
|
targetColumn = this.getColumnById(colid)
|
|
1246
1259
|
} else if (field && type) {
|
|
1247
|
-
targetColumn = tableFullColumn.find((column: any) => column.
|
|
1260
|
+
targetColumn = tableFullColumn.find((column: any) => column.field === field && column.type === type)
|
|
1248
1261
|
} else if (field) {
|
|
1249
1262
|
targetColumn = this.getColumnByField(field)
|
|
1250
1263
|
} else if (type) {
|
|
@@ -17,25 +17,29 @@ export default {
|
|
|
17
17
|
}
|
|
18
18
|
} as any,
|
|
19
19
|
render (this: any, h: CreateElement) {
|
|
20
|
-
const
|
|
21
|
-
|
|
20
|
+
const $xeTable = this.$parent
|
|
21
|
+
|
|
22
|
+
const { filterStore } = this
|
|
23
|
+
const { args, visible, multiple, column } = filterStore
|
|
22
24
|
const filterRender = column ? column.filterRender : null
|
|
23
25
|
const compConf = isEnableConf(filterRender) ? renderer.get(filterRender.name) : null
|
|
24
26
|
const filterClassName = compConf ? (compConf.tableFilterClassName || compConf.filterClassName) : ''
|
|
27
|
+
const filterOpts = $xeTable.computeFilterOpts
|
|
28
|
+
const { destroyOnClose } = filterOpts
|
|
25
29
|
return h('div', {
|
|
26
30
|
class: [
|
|
27
31
|
'vxe-table--filter-wrapper',
|
|
28
32
|
'filter--prevent-default',
|
|
29
33
|
compConf && compConf.className ? compConf.className : '',
|
|
30
|
-
getClass(filterClassName, Object.assign({ $panel: this, $table: $
|
|
34
|
+
getClass(filterClassName, Object.assign({ $panel: this, $table: $xeTable }, args)),
|
|
31
35
|
{
|
|
32
|
-
'is--animat': $
|
|
33
|
-
'is--multiple':
|
|
34
|
-
'is--active':
|
|
36
|
+
'is--animat': $xeTable.animat,
|
|
37
|
+
'is--multiple': multiple,
|
|
38
|
+
'is--active': visible
|
|
35
39
|
}
|
|
36
40
|
],
|
|
37
41
|
style: filterStore.style
|
|
38
|
-
}, filterStore.visible && column ? this.renderOptions(h, filterRender, compConf).concat(this.renderFooter(h)) : [])
|
|
42
|
+
}, filterStore.visible && (destroyOnClose ? visible : true) && column ? this.renderOptions(h, filterRender, compConf).concat(this.renderFooter(h)) : [])
|
|
39
43
|
},
|
|
40
44
|
methods: {
|
|
41
45
|
renderOptions (h: CreateElement, filterRender: any, compConf: any) {
|
|
@@ -589,7 +589,8 @@ renderer.mixin({
|
|
|
589
589
|
renderTableCell (h, renderOpts, params) {
|
|
590
590
|
const { props = {} } = renderOpts
|
|
591
591
|
const { row, column } = params
|
|
592
|
-
const
|
|
592
|
+
const inputConfig = getConfig().input || {}
|
|
593
|
+
const digits = props.digits || inputConfig.digits || 2
|
|
593
594
|
let cellValue = XEUtils.get(row, column.field)
|
|
594
595
|
if (cellValue) {
|
|
595
596
|
switch (props.type) {
|
|
@@ -620,12 +621,17 @@ renderer.mixin({
|
|
|
620
621
|
const { type } = props
|
|
621
622
|
let cellValue = XEUtils.get(row, column.field)
|
|
622
623
|
if (cellValue) {
|
|
624
|
+
const numberInputConfig = getConfig().numberInput || {}
|
|
623
625
|
if (type === 'float') {
|
|
624
|
-
const digits = props.digits ||
|
|
626
|
+
const digits = props.digits || numberInputConfig.digits || 1
|
|
625
627
|
cellValue = XEUtils.toFixed(XEUtils.floor(cellValue, digits), digits)
|
|
626
628
|
} else if (type === 'amount') {
|
|
627
|
-
const digits = props.digits ||
|
|
629
|
+
const digits = props.digits || numberInputConfig.digits || 2
|
|
628
630
|
cellValue = XEUtils.commafy(XEUtils.toNumber(cellValue), { digits })
|
|
631
|
+
const showCurrency = props.showCurrency
|
|
632
|
+
if (XEUtils.isBoolean(showCurrency) ? showCurrency : numberInputConfig.showCurrency) {
|
|
633
|
+
cellValue = `${props.currencySymbol || numberInputConfig.currencySymbol || getI18n('vxe.numberInput.currencySymbol') || ''}${cellValue}`
|
|
634
|
+
}
|
|
629
635
|
}
|
|
630
636
|
}
|
|
631
637
|
return getCellLabelVNs(h, renderOpts, params, cellValue)
|
|
@@ -637,11 +643,12 @@ renderer.mixin({
|
|
|
637
643
|
// 兼容老模式
|
|
638
644
|
const cellValue = XEUtils.isArray(row) ? row[_columnIndex] : XEUtils.get(row, column.field)
|
|
639
645
|
if (XEUtils.isNumber(cellValue)) {
|
|
646
|
+
const numberInputConfig = getConfig().numberInput || {}
|
|
640
647
|
if (type === 'float') {
|
|
641
|
-
const digits = props.digits ||
|
|
648
|
+
const digits = props.digits || numberInputConfig.digits || 1
|
|
642
649
|
return XEUtils.toFixed(XEUtils.floor(cellValue, digits), digits)
|
|
643
650
|
} else if (type === 'amount') {
|
|
644
|
-
const digits = props.digits ||
|
|
651
|
+
const digits = props.digits || numberInputConfig.digits || 2
|
|
645
652
|
return XEUtils.commafy(XEUtils.toNumber(cellValue), { digits })
|
|
646
653
|
}
|
|
647
654
|
}
|
|
@@ -649,7 +656,12 @@ renderer.mixin({
|
|
|
649
656
|
},
|
|
650
657
|
renderTableDefault: defaultEditRender,
|
|
651
658
|
renderTableFilter: defaultFilterRender,
|
|
652
|
-
tableFilterDefaultMethod: handleInputFilterMethod
|
|
659
|
+
tableFilterDefaultMethod: handleInputFilterMethod,
|
|
660
|
+
tableExportMethod (params) {
|
|
661
|
+
const { row, column } = params
|
|
662
|
+
const cellValue = XEUtils.get(row, column.field)
|
|
663
|
+
return cellValue
|
|
664
|
+
}
|
|
653
665
|
},
|
|
654
666
|
VxeDatePicker: {
|
|
655
667
|
tableAutoFocus: 'input',
|
|
@@ -310,6 +310,7 @@ function renderColumn (h: any, _vm: any, $xetable: any, seq: any, rowid: any, fi
|
|
|
310
310
|
)
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
+
const isAutoCellWidth = !column.resizeWidth && (column.minWidth === 'auto' || column.width === 'auto')
|
|
313
314
|
|
|
314
315
|
return h('td', {
|
|
315
316
|
class: [
|
|
@@ -323,6 +324,7 @@ function renderColumn (h: any, _vm: any, $xetable: any, seq: any, rowid: any, fi
|
|
|
323
324
|
'col--tree-node': treeNode,
|
|
324
325
|
'col--edit': isEdit,
|
|
325
326
|
'col--ellipsis': hasEllipsis,
|
|
327
|
+
'fixed--width': !isAutoCellWidth,
|
|
326
328
|
'fixed--hidden': fixedHiddenColumn,
|
|
327
329
|
'is--drag-cell': isColDragCell,
|
|
328
330
|
'is--drag-disabled': isDisabledDrag,
|
|
@@ -120,11 +120,14 @@ function renderRows (h: CreateElement, _vm: any, tableColumn: VxeTableDefines.Co
|
|
|
120
120
|
attrs.colspan = colspan
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
+
const isAutoCellWidth = !column.resizeWidth && (column.minWidth === 'auto' || column.width === 'auto')
|
|
124
|
+
|
|
123
125
|
return h('td', {
|
|
124
126
|
class: ['vxe-footer--column', column.id, {
|
|
125
127
|
[`col--${footAlign}`]: footAlign,
|
|
126
128
|
[`col--${type}`]: type,
|
|
127
129
|
'col--last': $columnIndex === tableColumn.length - 1,
|
|
130
|
+
'fixed--width': !isAutoCellWidth,
|
|
128
131
|
'fixed--hidden': fixedHiddenColumn,
|
|
129
132
|
'col--ellipsis': hasEllipsis,
|
|
130
133
|
'col--current': currentColumn === column
|
|
@@ -69,6 +69,8 @@ const renderRows = (h: CreateElement, _vm: any, cols: VxeTableDefines.ColumnInfo
|
|
|
69
69
|
thOns.mouseup = $xeTable.handleHeaderCellDragMouseupEvent
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
+
const isAutoCellWidth = !column.resizeWidth && (column.minWidth === 'auto' || column.width === 'auto')
|
|
73
|
+
|
|
72
74
|
return h('th', {
|
|
73
75
|
class: ['vxe-header--column', colid, {
|
|
74
76
|
[`col--${headAlign}`]: headAlign,
|
|
@@ -77,6 +79,7 @@ const renderRows = (h: CreateElement, _vm: any, cols: VxeTableDefines.ColumnInfo
|
|
|
77
79
|
'col--fixed': column.fixed,
|
|
78
80
|
'col--group': isColGroup,
|
|
79
81
|
'col--ellipsis': hasEllipsis,
|
|
82
|
+
'fixed--width': !isAutoCellWidth,
|
|
80
83
|
'fixed--hidden': fixedHiddenColumn,
|
|
81
84
|
'is--sortable': column.sortable,
|
|
82
85
|
'col--filter': !!column.filters,
|
|
@@ -2685,7 +2685,7 @@ const Methods = {
|
|
|
2685
2685
|
|
|
2686
2686
|
const { rceTimeout } = internalData
|
|
2687
2687
|
const el = $xeTable.$refs.refElem
|
|
2688
|
-
if (
|
|
2688
|
+
if (el && el.clientWidth) {
|
|
2689
2689
|
$xeTable.autoCellWidth()
|
|
2690
2690
|
}
|
|
2691
2691
|
if (rceTimeout) {
|
|
@@ -6288,18 +6288,25 @@ const Methods = {
|
|
|
6288
6288
|
const rowRest = fullAllDataRowIdData[getRowid($xeTable, row)]
|
|
6289
6289
|
return rowRest && !!rowRest.treeLoaded
|
|
6290
6290
|
},
|
|
6291
|
-
clearTreeExpandLoaded (
|
|
6291
|
+
clearTreeExpandLoaded (rows: any) {
|
|
6292
6292
|
const $xeTable = this
|
|
6293
6293
|
|
|
6294
6294
|
const { treeOpts, treeExpandedMaps, fullAllDataRowIdData } = this
|
|
6295
|
-
const { transform
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
rowRest.treeLoaded = false
|
|
6300
|
-
if (treeExpandedMaps[rowid]) {
|
|
6301
|
-
delete treeExpandedMaps[rowid]
|
|
6295
|
+
const { transform } = treeOpts
|
|
6296
|
+
if (rows) {
|
|
6297
|
+
if (!XEUtils.isArray(rows)) {
|
|
6298
|
+
rows = [rows]
|
|
6302
6299
|
}
|
|
6300
|
+
rows.forEach((row: any) => {
|
|
6301
|
+
const rowid = getRowid($xeTable, row)
|
|
6302
|
+
const rowRest = fullAllDataRowIdData[rowid]
|
|
6303
|
+
if (rowRest) {
|
|
6304
|
+
rowRest.treeLoaded = false
|
|
6305
|
+
if (treeExpandedMaps[rowid]) {
|
|
6306
|
+
delete treeExpandedMaps[rowid]
|
|
6307
|
+
}
|
|
6308
|
+
}
|
|
6309
|
+
})
|
|
6303
6310
|
}
|
|
6304
6311
|
if (transform) {
|
|
6305
6312
|
this.handleVirtualTreeToList()
|
package/packages/ui/index.ts
CHANGED
|
@@ -60,6 +60,96 @@
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
/*默认的渲染*/
|
|
63
|
+
.vxe-header--column,
|
|
64
|
+
.vxe-footer--column {
|
|
65
|
+
&.fixed--width {
|
|
66
|
+
& > .vxe-cell {
|
|
67
|
+
.vxe-default-input,
|
|
68
|
+
.vxe-default-textarea,
|
|
69
|
+
.vxe-default-select {
|
|
70
|
+
width: 100%;
|
|
71
|
+
}
|
|
72
|
+
.vxe-input,
|
|
73
|
+
.vxe-textarea,
|
|
74
|
+
.vxe-select,
|
|
75
|
+
.vxe-tree-select,
|
|
76
|
+
.vxe-date-picker,
|
|
77
|
+
.vxe-number-input,
|
|
78
|
+
.vxe-ico-picker {
|
|
79
|
+
width: 100%;
|
|
80
|
+
}
|
|
81
|
+
.vxe-cell--tree-node {
|
|
82
|
+
.vxe-input,
|
|
83
|
+
.vxe-textarea,
|
|
84
|
+
.vxe-select,
|
|
85
|
+
.vxe-tree-select,
|
|
86
|
+
.vxe-date-picker,
|
|
87
|
+
.vxe-number-input,
|
|
88
|
+
.vxe-ico-picker {
|
|
89
|
+
width: 100%;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
.vxe-body--column {
|
|
96
|
+
&.fixed--width {
|
|
97
|
+
& > .vxe-cell {
|
|
98
|
+
& > .vxe-default-input,
|
|
99
|
+
& > .vxe-default-textarea,
|
|
100
|
+
& > .vxe-default-select {
|
|
101
|
+
width: 100%;
|
|
102
|
+
}
|
|
103
|
+
& > .vxe-input,
|
|
104
|
+
& > .vxe-textarea,
|
|
105
|
+
& > .vxe-select,
|
|
106
|
+
& > .vxe-tree-select,
|
|
107
|
+
& > .vxe-date-picker,
|
|
108
|
+
& > .vxe-number-input,
|
|
109
|
+
& > .vxe-ico-picker {
|
|
110
|
+
width: 100%;
|
|
111
|
+
}
|
|
112
|
+
& > .vxe-cell--tree-node {
|
|
113
|
+
.vxe-input,
|
|
114
|
+
.vxe-textarea,
|
|
115
|
+
.vxe-select,
|
|
116
|
+
.vxe-tree-select,
|
|
117
|
+
.vxe-date-picker,
|
|
118
|
+
.vxe-number-input,
|
|
119
|
+
.vxe-ico-picker {
|
|
120
|
+
width: 100%;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
.vxe-table--filter-template {
|
|
127
|
+
& > .vxe-default-input,
|
|
128
|
+
& > .vxe-default-textarea,
|
|
129
|
+
& > .vxe-default-select {
|
|
130
|
+
width: 100%;
|
|
131
|
+
}
|
|
132
|
+
& > .vxe-input,
|
|
133
|
+
& > .vxe-textarea,
|
|
134
|
+
& > .vxe-select,
|
|
135
|
+
& > .vxe-tree-select,
|
|
136
|
+
& > .vxe-date-picker,
|
|
137
|
+
& > .vxe-number-input,
|
|
138
|
+
& > .vxe-ico-picker {
|
|
139
|
+
width: 100%;
|
|
140
|
+
}
|
|
141
|
+
& > .vxe-cell--tree-node {
|
|
142
|
+
.vxe-input,
|
|
143
|
+
.vxe-textarea,
|
|
144
|
+
.vxe-select,
|
|
145
|
+
.vxe-tree-select,
|
|
146
|
+
.vxe-date-picker,
|
|
147
|
+
.vxe-number-input,
|
|
148
|
+
.vxe-ico-picker {
|
|
149
|
+
width: 100%;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
63
153
|
.vxe-cell,
|
|
64
154
|
.vxe-table--filter-template {
|
|
65
155
|
.vxe-default-input,
|
|
@@ -71,7 +161,6 @@
|
|
|
71
161
|
.vxe-default-select {
|
|
72
162
|
outline: 0;
|
|
73
163
|
padding: 0 2px;
|
|
74
|
-
width: 100%;
|
|
75
164
|
color: var(--vxe-ui-font-color);
|
|
76
165
|
border-radius: var(--vxe-ui-border-radius);
|
|
77
166
|
border: 1px solid var(--vxe-ui-input-border-color);
|
|
@@ -107,15 +196,6 @@
|
|
|
107
196
|
height: var(--vxe-ui-input-height-default);
|
|
108
197
|
}
|
|
109
198
|
}
|
|
110
|
-
& > .vxe-input,
|
|
111
|
-
& > .vxe-textarea,
|
|
112
|
-
& > .vxe-select,
|
|
113
|
-
& > .vxe-tree-select,
|
|
114
|
-
& > .vxe-date-picker,
|
|
115
|
-
& > .vxe-number-input,
|
|
116
|
-
& > .vxe-ico-picker {
|
|
117
|
-
width: 100%;
|
|
118
|
-
}
|
|
119
199
|
& > .vxe-input > .vxe-input--inner,
|
|
120
200
|
& > .vxe-textarea > .vxe-textarea--inner {
|
|
121
201
|
padding: 0 2px;
|
|
@@ -125,15 +205,6 @@
|
|
|
125
205
|
resize: none;
|
|
126
206
|
}
|
|
127
207
|
& > .vxe-cell--tree-node {
|
|
128
|
-
.vxe-input,
|
|
129
|
-
.vxe-textarea,
|
|
130
|
-
.vxe-select,
|
|
131
|
-
.vxe-tree-select,
|
|
132
|
-
.vxe-date-picker,
|
|
133
|
-
.vxe-number-input,
|
|
134
|
-
.vxe-ico-picker {
|
|
135
|
-
width: 100%;
|
|
136
|
-
}
|
|
137
208
|
.vxe-input > .vxe-input--inner,
|
|
138
209
|
.vxe-textarea > .vxe-textarea--inner {
|
|
139
210
|
padding: 0 2px;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|