vxe-table 4.18.0-beta.2 → 4.18.0-beta.20
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/README.md +10 -10
- package/es/colgroup/style.css +0 -0
- package/es/colgroup/style.min.css +0 -0
- package/es/column/style.css +0 -0
- package/es/column/style.min.css +0 -0
- package/es/grid/src/grid.js +23 -19
- package/es/grid/style.css +86 -0
- package/es/grid/style.min.css +1 -0
- package/es/iconfont.1770109263422.ttf +0 -0
- package/es/iconfont.1770109263422.woff +0 -0
- package/es/iconfont.1770109263422.woff2 +0 -0
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/locale/lang/ar-EG.d.ts +2 -0
- package/es/locale/lang/ar-EG.js +6 -0
- package/es/locale/lang/de-DE.d.ts +2 -0
- package/es/locale/lang/de-DE.js +6 -0
- package/es/locale/lang/en-US.d.ts +2 -0
- package/es/locale/lang/en-US.js +6 -0
- package/es/locale/lang/es-ES.d.ts +2 -0
- package/es/locale/lang/es-ES.js +6 -0
- package/es/locale/lang/fr-FR.d.ts +2 -0
- package/es/locale/lang/fr-FR.js +6 -0
- package/es/locale/lang/hu-HU.d.ts +2 -0
- package/es/locale/lang/hu-HU.js +6 -0
- package/es/locale/lang/hy-AM.d.ts +2 -0
- package/es/locale/lang/hy-AM.js +6 -0
- package/es/locale/lang/id-ID.d.ts +2 -0
- package/es/locale/lang/id-ID.js +6 -0
- package/es/locale/lang/it-IT.d.ts +2 -0
- package/es/locale/lang/it-IT.js +6 -0
- package/es/locale/lang/ja-JP.d.ts +2 -0
- package/es/locale/lang/ja-JP.js +6 -0
- package/es/locale/lang/ko-KR.d.ts +2 -0
- package/es/locale/lang/ko-KR.js +6 -0
- package/es/locale/lang/ms-MY.d.ts +2 -0
- package/es/locale/lang/ms-MY.js +6 -0
- package/es/locale/lang/nb-NO.d.ts +2 -0
- package/es/locale/lang/nb-NO.js +6 -0
- package/es/locale/lang/pt-BR.d.ts +2 -0
- package/es/locale/lang/pt-BR.js +6 -0
- package/es/locale/lang/ru-RU.d.ts +2 -0
- package/es/locale/lang/ru-RU.js +6 -0
- package/es/locale/lang/th-TH.d.ts +2 -0
- package/es/locale/lang/th-TH.js +6 -0
- package/es/locale/lang/ug-CN.d.ts +2 -0
- package/es/locale/lang/ug-CN.js +6 -0
- package/es/locale/lang/uk-UA.d.ts +2 -0
- package/es/locale/lang/uk-UA.js +6 -0
- package/es/locale/lang/uz-UZ.d.ts +2 -0
- package/es/locale/lang/uz-UZ.js +6 -0
- package/es/locale/lang/vi-VN.d.ts +2 -0
- package/es/locale/lang/vi-VN.js +6 -0
- package/es/locale/lang/zh-CHT.d.ts +2 -0
- package/es/locale/lang/zh-CHT.js +6 -0
- package/es/locale/lang/zh-CN.d.ts +2 -0
- package/es/locale/lang/zh-CN.js +6 -0
- package/es/locale/lang/zh-HK.d.ts +2 -0
- package/es/locale/lang/zh-MO.d.ts +2 -0
- package/es/locale/lang/zh-TW.d.ts +2 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/custom/hook.js +25 -9
- package/es/table/module/custom/panel.js +14 -13
- package/es/table/module/edit/hook.js +3 -3
- package/es/table/module/export/hook.js +15 -1
- package/es/table/module/filter/panel.js +11 -3
- package/es/table/module/validator/hook.js +7 -6
- package/es/table/render/index.js +14 -0
- package/es/table/src/body.js +12 -5
- package/es/table/src/emits.js +1 -0
- package/es/table/src/props.js +2 -0
- package/es/table/src/table.js +235 -54
- package/es/table/src/util.js +23 -9
- package/es/table/style.css +3887 -0
- package/es/table/style.min.css +1 -0
- package/es/toolbar/src/toolbar.js +11 -7
- package/es/toolbar/style.css +110 -0
- package/es/toolbar/style.min.css +1 -0
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/ui/style.css +0 -0
- package/es/ui/style.min.css +0 -0
- package/es/v-x-e-table/style.css +0 -0
- package/es/v-x-e-table/style.min.css +0 -0
- package/es/vxe-colgroup/style.css +0 -0
- package/es/vxe-colgroup/style.min.css +0 -0
- package/es/vxe-column/style.css +0 -0
- package/es/vxe-column/style.min.css +0 -0
- package/es/vxe-grid/style.css +86 -0
- package/es/vxe-grid/style.min.css +1 -0
- package/es/vxe-table/style.css +3887 -0
- package/es/vxe-table/style.min.css +1 -0
- package/es/vxe-toolbar/style.css +110 -0
- package/es/vxe-toolbar/style.min.css +1 -0
- package/es/vxe-ui/style.css +0 -0
- package/es/vxe-ui/style.min.css +0 -0
- package/es/vxe-v-x-e-table/style.css +0 -0
- package/es/vxe-v-x-e-table/style.min.css +0 -0
- package/lib/colgroup/style/index.js +1 -0
- package/lib/colgroup/style/style.css +0 -0
- package/lib/colgroup/style/style.min.css +0 -0
- package/lib/column/style/index.js +1 -0
- package/lib/column/style/style.css +0 -0
- package/lib/column/style/style.min.css +0 -0
- package/lib/grid/src/grid.js +22 -18
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/grid/style/index.js +1 -0
- package/lib/grid/style/style.css +86 -0
- package/lib/grid/style/style.min.css +1 -0
- package/lib/iconfont.1770109263422.ttf +0 -0
- package/lib/iconfont.1770109263422.woff +0 -0
- package/lib/iconfont.1770109263422.woff2 +0 -0
- package/lib/index.common.js +22 -0
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +224 -106
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.d.ts +2 -0
- package/lib/locale/lang/ar-EG.js +6 -0
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +848 -0
- package/lib/locale/lang/de-DE.d.ts +2 -0
- package/lib/locale/lang/de-DE.js +6 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +848 -0
- package/lib/locale/lang/en-US.d.ts +2 -0
- package/lib/locale/lang/en-US.js +6 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +848 -0
- package/lib/locale/lang/es-ES.d.ts +2 -0
- package/lib/locale/lang/es-ES.js +6 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +848 -0
- package/lib/locale/lang/fr-FR.d.ts +2 -0
- package/lib/locale/lang/fr-FR.js +6 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +848 -0
- package/lib/locale/lang/hu-HU.d.ts +2 -0
- package/lib/locale/lang/hu-HU.js +6 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +848 -0
- package/lib/locale/lang/hy-AM.d.ts +2 -0
- package/lib/locale/lang/hy-AM.js +6 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +848 -0
- package/lib/locale/lang/id-ID.d.ts +2 -0
- package/lib/locale/lang/id-ID.js +6 -0
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +848 -0
- package/lib/locale/lang/it-IT.d.ts +2 -0
- package/lib/locale/lang/it-IT.js +6 -0
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +848 -0
- package/lib/locale/lang/ja-JP.d.ts +2 -0
- package/lib/locale/lang/ja-JP.js +6 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +848 -0
- package/lib/locale/lang/ko-KR.d.ts +2 -0
- package/lib/locale/lang/ko-KR.js +6 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +848 -0
- package/lib/locale/lang/ms-MY.d.ts +2 -0
- package/lib/locale/lang/ms-MY.js +6 -0
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +848 -0
- package/lib/locale/lang/nb-NO.d.ts +2 -0
- package/lib/locale/lang/nb-NO.js +6 -0
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +848 -0
- package/lib/locale/lang/pt-BR.d.ts +2 -0
- package/lib/locale/lang/pt-BR.js +6 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +848 -0
- package/lib/locale/lang/ru-RU.d.ts +2 -0
- package/lib/locale/lang/ru-RU.js +6 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +848 -0
- package/lib/locale/lang/th-TH.d.ts +2 -0
- package/lib/locale/lang/th-TH.js +6 -0
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +848 -0
- package/lib/locale/lang/ug-CN.d.ts +2 -0
- package/lib/locale/lang/ug-CN.js +6 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +848 -0
- package/lib/locale/lang/uk-UA.d.ts +2 -0
- package/lib/locale/lang/uk-UA.js +6 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +848 -0
- package/lib/locale/lang/uz-UZ.d.ts +2 -0
- package/lib/locale/lang/uz-UZ.js +6 -0
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +848 -0
- package/lib/locale/lang/vi-VN.d.ts +2 -0
- package/lib/locale/lang/vi-VN.js +6 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +848 -0
- package/lib/locale/lang/zh-CHT.d.ts +2 -0
- package/lib/locale/lang/zh-CHT.js +6 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +848 -0
- package/lib/locale/lang/zh-CN.d.ts +2 -0
- package/lib/locale/lang/zh-CN.js +6 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +848 -0
- package/lib/locale/lang/zh-HK.d.ts +2 -0
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +23 -0
- package/lib/locale/lang/zh-MO.d.ts +2 -0
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +23 -0
- package/lib/locale/lang/zh-TW.d.ts +2 -0
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +23 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/custom/hook.js +29 -9
- package/lib/table/module/custom/hook.min.js +1 -1
- package/lib/table/module/custom/panel.js +12 -8
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/edit/hook.js +3 -3
- package/lib/table/module/edit/hook.min.js +1 -1
- package/lib/table/module/export/hook.js +18 -6
- package/lib/table/module/export/hook.min.js +1 -1
- package/lib/table/module/filter/panel.js +14 -3
- package/lib/table/module/filter/panel.min.js +1 -1
- package/lib/table/module/validator/hook.js +8 -6
- package/lib/table/module/validator/hook.min.js +1 -1
- package/lib/table/render/index.js +18 -0
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/body.js +13 -4
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/emits.js +1 -1
- package/lib/table/src/emits.min.js +1 -1
- package/lib/table/src/props.js +2 -0
- package/lib/table/src/props.min.js +1 -1
- package/lib/table/src/table.js +37 -32
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +31 -11
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/index.js +1 -0
- package/lib/table/style/style.css +3887 -0
- package/lib/table/style/style.min.css +1 -0
- package/lib/toolbar/src/toolbar.js +10 -6
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/toolbar/style/index.js +1 -0
- package/lib/toolbar/style/style.css +110 -0
- package/lib/toolbar/style/style.min.css +1 -0
- package/lib/ui/index.js +1 -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/ui/style/index.js +1 -0
- package/lib/ui/style/style.css +0 -0
- package/lib/ui/style/style.min.css +0 -0
- package/lib/v-x-e-table/style/index.js +1 -0
- package/lib/v-x-e-table/style/style.css +0 -0
- package/lib/v-x-e-table/style/style.min.css +0 -0
- package/lib/vxe-colgroup/style/index.js +1 -0
- package/lib/vxe-colgroup/style/style.css +0 -0
- package/lib/vxe-colgroup/style/style.min.css +0 -0
- package/lib/vxe-column/style/index.js +1 -0
- package/lib/vxe-column/style/style.css +0 -0
- package/lib/vxe-column/style/style.min.css +0 -0
- package/lib/vxe-grid/style/index.js +1 -0
- package/lib/vxe-grid/style/style.css +86 -0
- package/lib/vxe-grid/style/style.min.css +1 -0
- package/lib/vxe-table/style/index.js +1 -0
- package/lib/vxe-table/style/style.css +3887 -0
- package/lib/vxe-table/style/style.min.css +1 -0
- package/lib/vxe-toolbar/style/index.js +1 -0
- package/lib/vxe-toolbar/style/style.css +110 -0
- package/lib/vxe-toolbar/style/style.min.css +1 -0
- package/lib/vxe-ui/style/index.js +1 -0
- package/lib/vxe-ui/style/style.css +0 -0
- package/lib/vxe-ui/style/style.min.css +0 -0
- package/lib/vxe-v-x-e-table/style/index.js +1 -0
- package/lib/vxe-v-x-e-table/style/style.css +0 -0
- package/lib/vxe-v-x-e-table/style/style.min.css +0 -0
- package/package.json +2 -2
- package/packages/grid/src/grid.ts +23 -18
- package/packages/locale/lang/ar-EG.ts +6 -0
- package/packages/locale/lang/de-DE.ts +6 -0
- package/packages/locale/lang/en-US.ts +6 -0
- package/packages/locale/lang/es-ES.ts +6 -0
- package/packages/locale/lang/fr-FR.ts +6 -0
- package/packages/locale/lang/hu-HU.ts +6 -0
- package/packages/locale/lang/hy-AM.ts +6 -0
- package/packages/locale/lang/id-ID.ts +6 -0
- package/packages/locale/lang/it-IT.ts +6 -0
- package/packages/locale/lang/ja-JP.ts +6 -0
- package/packages/locale/lang/ko-KR.ts +6 -0
- package/packages/locale/lang/ms-MY.ts +6 -0
- package/packages/locale/lang/nb-NO.ts +6 -0
- package/packages/locale/lang/pt-BR.ts +6 -0
- package/packages/locale/lang/ru-RU.ts +6 -0
- package/packages/locale/lang/th-TH.ts +6 -0
- package/packages/locale/lang/ug-CN.ts +6 -0
- package/packages/locale/lang/uk-UA.ts +6 -0
- package/packages/locale/lang/uz-UZ.ts +6 -0
- package/packages/locale/lang/vi-VN.ts +6 -0
- package/packages/locale/lang/zh-CHT.ts +6 -0
- package/packages/locale/lang/zh-CN.ts +6 -0
- package/packages/table/module/custom/hook.ts +24 -9
- package/packages/table/module/custom/panel.ts +15 -14
- package/packages/table/module/edit/hook.ts +3 -3
- package/packages/table/module/export/hook.ts +13 -1
- package/packages/table/module/filter/panel.ts +10 -3
- package/packages/table/module/validator/hook.ts +7 -6
- package/packages/table/render/index.ts +16 -0
- package/packages/table/src/body.ts +12 -5
- package/packages/table/src/emits.ts +1 -0
- package/packages/table/src/props.ts +5 -3
- package/packages/table/src/table.ts +235 -53
- package/packages/table/src/util.ts +25 -9
- package/packages/toolbar/src/toolbar.ts +12 -7
- package/styles/components/table-module/custom.scss +3 -0
- package/styles/components/table-module/filter.scss +1 -1
- package/styles/components/table.scss +8 -2
- package/styles/components/toolbar.scss +5 -1
- package/styles/theme/base.scss +4 -0
|
@@ -81,6 +81,8 @@ export function createInternalData (): TableInternalData {
|
|
|
81
81
|
// 数据集(仅可视)
|
|
82
82
|
visibleDataRowIdData: {},
|
|
83
83
|
|
|
84
|
+
keepUpdateFieldMaps: {},
|
|
85
|
+
|
|
84
86
|
footerFullDataRowData: {},
|
|
85
87
|
|
|
86
88
|
// 渲染中缓存数据
|
|
@@ -144,6 +146,7 @@ export function createInternalData (): TableInternalData {
|
|
|
144
146
|
|
|
145
147
|
export function createReactData (): TableReactData {
|
|
146
148
|
return {
|
|
149
|
+
updateColFlag: 0,
|
|
147
150
|
// 低性能的静态列
|
|
148
151
|
staticColumns: [],
|
|
149
152
|
// 渲染的列分组
|
|
@@ -213,7 +216,8 @@ export function createReactData (): TableReactData {
|
|
|
213
216
|
activeBtn: false,
|
|
214
217
|
activeWrapper: false,
|
|
215
218
|
visible: false,
|
|
216
|
-
maxHeight:
|
|
219
|
+
maxHeight: null,
|
|
220
|
+
popupTop: 0,
|
|
217
221
|
oldSortMaps: {},
|
|
218
222
|
oldFixedMaps: {},
|
|
219
223
|
oldVisibleMaps: {}
|
|
@@ -543,11 +547,19 @@ export function restoreScrollLocation ($xeTable: VxeTableConstructor, scrollLeft
|
|
|
543
547
|
return $xeTable.clearScroll()
|
|
544
548
|
}
|
|
545
549
|
|
|
550
|
+
export function getRowUniqueId () {
|
|
551
|
+
return XEUtils.uniqueId('row_')
|
|
552
|
+
}
|
|
553
|
+
|
|
546
554
|
/**
|
|
547
555
|
* 生成行的唯一主键
|
|
548
556
|
*/
|
|
549
|
-
export function
|
|
550
|
-
|
|
557
|
+
export function createRowId (rowOpts: VxeTablePropTypes.RowConfig, row: any, keyField: string) {
|
|
558
|
+
const { createKeyMethod } = rowOpts
|
|
559
|
+
if (createKeyMethod) {
|
|
560
|
+
return createKeyMethod({ row, keyField })
|
|
561
|
+
}
|
|
562
|
+
return getRowUniqueId()
|
|
551
563
|
}
|
|
552
564
|
|
|
553
565
|
export function hasDeepKey (rowKey: string) {
|
|
@@ -570,11 +582,13 @@ export function getRowid ($xeTable: VxeTableConstructor, row: any) {
|
|
|
570
582
|
export function createHandleUpdateRowId ($xeTable: VxeTableConstructor) {
|
|
571
583
|
const internalData = $xeTable.internalData
|
|
572
584
|
const { isCurrDeepKey, currKeyField } = internalData
|
|
585
|
+
const { computeRowOpts } = $xeTable.getComputeMaps()
|
|
586
|
+
const rowOpts = computeRowOpts.value
|
|
573
587
|
const updateRId = isCurrDeepKey ? updateDeepRowKey : updateFastRowKey
|
|
574
588
|
return {
|
|
575
589
|
rowKey: currKeyField,
|
|
576
590
|
handleUpdateRowId (row: any) {
|
|
577
|
-
return row ? updateRId(row, currKeyField) : ''
|
|
591
|
+
return row ? updateRId(rowOpts, row, currKeyField) : ''
|
|
578
592
|
}
|
|
579
593
|
}
|
|
580
594
|
}
|
|
@@ -600,10 +614,11 @@ function getDeepRowIdByKey (row: any, rowKey: string) {
|
|
|
600
614
|
return XEUtils.get(row, rowKey)
|
|
601
615
|
}
|
|
602
616
|
|
|
603
|
-
|
|
617
|
+
function updateDeepRowKey (rowOpts: VxeTablePropTypes.RowConfig, row: any, rowKey: string) {
|
|
604
618
|
let rowid = encodeRowid(getDeepRowIdByKey(row, rowKey))
|
|
605
619
|
if (eqEmptyValue(rowid)) {
|
|
606
|
-
|
|
620
|
+
const newRowid = createRowId(rowOpts, row, rowKey)
|
|
621
|
+
rowid = '' + newRowid
|
|
607
622
|
XEUtils.set(row, rowKey, rowid)
|
|
608
623
|
}
|
|
609
624
|
return rowid
|
|
@@ -613,11 +628,12 @@ function getFastRowIdByKey (row: any, rowKey: string) {
|
|
|
613
628
|
return row[rowKey]
|
|
614
629
|
}
|
|
615
630
|
|
|
616
|
-
|
|
631
|
+
function updateFastRowKey (rowOpts: VxeTablePropTypes.RowConfig, row: any, rowKey: string) {
|
|
617
632
|
let rowid = encodeRowid(getFastRowIdByKey(row, rowKey))
|
|
618
633
|
if (eqEmptyValue(rowid)) {
|
|
619
|
-
|
|
620
|
-
|
|
634
|
+
const newRowid = createRowId(rowOpts, row, rowKey)
|
|
635
|
+
rowid = '' + newRowid
|
|
636
|
+
row[rowKey] = newRowid
|
|
621
637
|
}
|
|
622
638
|
return rowid
|
|
623
639
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, ref, computed, inject, createCommentVNode, VNode, reactive, nextTick, PropType,
|
|
1
|
+
import { h, ref, computed, inject, createCommentVNode, VNode, reactive, nextTick, PropType, onBeforeUnmount } from 'vue'
|
|
2
2
|
import { defineVxeComponent } from '../../ui/src/comp'
|
|
3
3
|
import XEUtils from 'xe-utils'
|
|
4
4
|
import { VxeUI } from '../../ui'
|
|
@@ -10,6 +10,14 @@ import type { VxeGridConstructor, GridPrivateMethods, ToolbarMethods, ToolbarInt
|
|
|
10
10
|
|
|
11
11
|
const { getConfig, getIcon, getI18n, renderer, commands, createEvent, useFns } = VxeUI
|
|
12
12
|
|
|
13
|
+
function createReactData (): ToolbarReactData {
|
|
14
|
+
return {
|
|
15
|
+
isRefresh: false,
|
|
16
|
+
connectFlag: 0,
|
|
17
|
+
columns: []
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
13
21
|
function createInternalData (): ToolbarInternalData {
|
|
14
22
|
return {
|
|
15
23
|
connectTable: null
|
|
@@ -68,11 +76,7 @@ export default defineVxeComponent({
|
|
|
68
76
|
|
|
69
77
|
const { computeSize } = useFns.useSize(props)
|
|
70
78
|
|
|
71
|
-
const reactData = reactive
|
|
72
|
-
isRefresh: false,
|
|
73
|
-
connectFlag: 0,
|
|
74
|
-
columns: []
|
|
75
|
-
})
|
|
79
|
+
const reactData = reactive(createReactData())
|
|
76
80
|
|
|
77
81
|
const internalData = createInternalData()
|
|
78
82
|
|
|
@@ -684,7 +688,8 @@ export default defineVxeComponent({
|
|
|
684
688
|
}
|
|
685
689
|
})
|
|
686
690
|
|
|
687
|
-
|
|
691
|
+
onBeforeUnmount(() => {
|
|
692
|
+
XEUtils.assign(reactData, createReactData())
|
|
688
693
|
XEUtils.assign(internalData, createInternalData())
|
|
689
694
|
})
|
|
690
695
|
|
|
@@ -239,6 +239,7 @@
|
|
|
239
239
|
word-break: break-all;
|
|
240
240
|
border-spacing: 0;
|
|
241
241
|
border-collapse: separate;
|
|
242
|
+
box-sizing: border-box;
|
|
242
243
|
th {
|
|
243
244
|
position: sticky;
|
|
244
245
|
top: 0;
|
|
@@ -254,6 +255,7 @@
|
|
|
254
255
|
border-left: 1px solid var(--vxe-ui-table-border-color);
|
|
255
256
|
}
|
|
256
257
|
tr {
|
|
258
|
+
box-sizing: border-box;
|
|
257
259
|
&:first-child {
|
|
258
260
|
td {
|
|
259
261
|
border-top: 0;
|
|
@@ -267,6 +269,7 @@
|
|
|
267
269
|
td {
|
|
268
270
|
height: 44px;
|
|
269
271
|
padding: 0 0.6em;
|
|
272
|
+
box-sizing: border-box;
|
|
270
273
|
&:last-child {
|
|
271
274
|
border-right: 1px solid var(--vxe-ui-table-border-color);
|
|
272
275
|
}
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
border: 1px solid var(--vxe-ui-base-popup-border-color);
|
|
40
40
|
color: var(--vxe-ui-font-color);
|
|
41
41
|
box-shadow: var(--vxe-ui-base-popup-box-shadow);
|
|
42
|
-
z-index:
|
|
42
|
+
z-index: 15;
|
|
43
43
|
&:not(.is--multiple) {
|
|
44
44
|
.vxe-table--filter-header,
|
|
45
45
|
.vxe-table--filter-body {
|
|
@@ -2220,12 +2220,18 @@ $btnThemeList: (
|
|
|
2220
2220
|
left: 0;
|
|
2221
2221
|
width: 100%;
|
|
2222
2222
|
overflow: auto;
|
|
2223
|
-
|
|
2223
|
+
border-top: 1px solid transparent;
|
|
2224
|
+
border-bottom: 1px solid transparent;
|
|
2224
2225
|
pointer-events: all;
|
|
2225
2226
|
&.is--padding {
|
|
2226
|
-
|
|
2227
|
+
.vxe-body--row-expanded-content {
|
|
2228
|
+
padding: var(--vxe-ui-table-expand-padding-default);
|
|
2229
|
+
}
|
|
2227
2230
|
}
|
|
2228
2231
|
}
|
|
2232
|
+
.vxe-body--row-expanded-content {
|
|
2233
|
+
background-color: var(--vxe-ui-layout-background-color);
|
|
2234
|
+
}
|
|
2229
2235
|
.vxe-body--row-expanded-place-column {
|
|
2230
2236
|
border-bottom: var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color);
|
|
2231
2237
|
border-right: var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: row;
|
|
6
6
|
align-items: center;
|
|
7
|
-
padding: 0.
|
|
7
|
+
padding: 0.5em 0;
|
|
8
8
|
color: var(--vxe-ui-font-color);
|
|
9
9
|
font-family: var(--vxe-ui-font-family);
|
|
10
10
|
background-color: var(--vxe-ui-layout-background-color);
|
|
@@ -104,13 +104,17 @@
|
|
|
104
104
|
|
|
105
105
|
.vxe-toolbar {
|
|
106
106
|
font-size: var(--vxe-ui-font-size-default);
|
|
107
|
+
min-height: var(--vxe-ui-toolbar-height-default);
|
|
107
108
|
&.size--medium {
|
|
108
109
|
font-size: var(--vxe-ui-font-size-medium);
|
|
110
|
+
min-height: var(--vxe-ui-toolbar-height-medium);
|
|
109
111
|
}
|
|
110
112
|
&.size--small {
|
|
111
113
|
font-size: var(--vxe-ui-font-size-small);
|
|
114
|
+
min-height: var(--vxe-ui-toolbar-height-small);
|
|
112
115
|
}
|
|
113
116
|
&.size--mini {
|
|
114
117
|
font-size: var(--vxe-ui-font-size-mini);
|
|
118
|
+
min-height: var(--vxe-ui-toolbar-height-mini);
|
|
115
119
|
}
|
|
116
120
|
}
|
package/styles/theme/base.scss
CHANGED