vxe-table 3.15.43 → 3.15.45
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.1750301122777.ttf → iconfont.1750641764687.ttf} +0 -0
- package/es/iconfont.1750641764687.woff +0 -0
- package/es/iconfont.1750641764687.woff2 +0 -0
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/custom/mixin.js +9 -0
- package/es/table/module/custom/panel.js +395 -300
- package/es/table/module/edit/mixin.js +27 -10
- package/es/table/module/export/mixin.js +19 -6
- package/es/table/src/cell.js +4 -4
- package/es/table/src/methods.js +23 -7
- package/es/table/style.css +37 -9
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +7 -3
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +37 -9
- package/es/vxe-table/style.min.css +1 -1
- package/lib/{iconfont.1750301122777.ttf → iconfont.1750641764687.ttf} +0 -0
- package/lib/iconfont.1750641764687.woff +0 -0
- package/lib/iconfont.1750641764687.woff2 +0 -0
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +355 -151
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/custom/mixin.js +11 -0
- package/lib/table/module/custom/mixin.min.js +1 -1
- package/lib/table/module/custom/panel.js +234 -122
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/edit/mixin.js +49 -10
- package/lib/table/module/edit/mixin.min.js +1 -1
- package/lib/table/module/export/mixin.js +19 -4
- package/lib/table/module/export/mixin.min.js +1 -1
- package/lib/table/src/cell.js +4 -4
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/methods.js +30 -7
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/style/style.css +37 -9
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +7 -3
- 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 +37 -9
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/table/module/custom/mixin.ts +10 -0
- package/packages/table/module/custom/panel.ts +413 -313
- package/packages/table/module/edit/mixin.ts +28 -10
- package/packages/table/module/export/mixin.ts +18 -6
- package/packages/table/src/cell.ts +4 -4
- package/packages/table/src/methods.ts +26 -7
- package/packages/ui/index.ts +6 -2
- package/styles/components/icon.scss +9 -1
- package/styles/components/table-module/custom.scss +26 -3
- package/styles/helpers/baseMixin.scss +16 -2
- package/styles/icon/iconfont.ttf +0 -0
- package/styles/icon/iconfont.woff +0 -0
- package/styles/icon/iconfont.woff2 +0 -0
- package/es/iconfont.1750301122777.woff +0 -0
- package/es/iconfont.1750301122777.woff2 +0 -0
- package/lib/iconfont.1750301122777.woff +0 -0
- package/lib/iconfont.1750301122777.woff2 +0 -0
|
@@ -761,22 +761,40 @@ export default {
|
|
|
761
761
|
},
|
|
762
762
|
_getActiveRecord () {
|
|
763
763
|
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
764
|
+
const reactData = $xeTable as unknown as TableReactData
|
|
765
|
+
const internalData = $xeTable as unknown as TableInternalData
|
|
764
766
|
|
|
765
|
-
warnLog('vxe.error.delFunc', ['getActiveRecord', '
|
|
766
|
-
|
|
767
|
-
|
|
767
|
+
warnLog('vxe.error.delFunc', ['getActiveRecord', 'getEditCell'])
|
|
768
|
+
const { editStore } = reactData
|
|
769
|
+
const { fullAllDataRowIdData } = internalData
|
|
770
|
+
const { args, row } = editStore.actived
|
|
771
|
+
if (args && row && fullAllDataRowIdData[getRowid($xeTable, row)]) {
|
|
772
|
+
return Object.assign({}, args, { row })
|
|
773
|
+
}
|
|
774
|
+
return null
|
|
768
775
|
},
|
|
769
776
|
_getEditRecord () {
|
|
770
777
|
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
771
778
|
const reactData = $xeTable as unknown as TableReactData
|
|
772
779
|
const internalData = $xeTable as unknown as TableInternalData
|
|
773
780
|
|
|
781
|
+
warnLog('vxe.error.delFunc', ['getEditRecord', 'getEditCell'])
|
|
774
782
|
const { editStore } = reactData
|
|
775
|
-
const {
|
|
776
|
-
const el = $xeTable.$refs.refElem as HTMLDivElement
|
|
783
|
+
const { fullAllDataRowIdData } = internalData
|
|
777
784
|
const { args, row } = editStore.actived
|
|
778
|
-
if (args && $xeTable
|
|
779
|
-
return Object.assign({}, args)
|
|
785
|
+
if (args && row && fullAllDataRowIdData[getRowid($xeTable, row)]) {
|
|
786
|
+
return Object.assign({}, args, { row })
|
|
787
|
+
}
|
|
788
|
+
return null
|
|
789
|
+
},
|
|
790
|
+
_getEditCell () {
|
|
791
|
+
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
792
|
+
const reactData = $xeTable as unknown as TableReactData
|
|
793
|
+
|
|
794
|
+
const { editStore } = reactData
|
|
795
|
+
const { row, column } = editStore.actived
|
|
796
|
+
if (column && row) {
|
|
797
|
+
return { row, column }
|
|
780
798
|
}
|
|
781
799
|
return null
|
|
782
800
|
},
|
|
@@ -967,9 +985,9 @@ export default {
|
|
|
967
985
|
const reactData = $xeTable as unknown as TableReactData
|
|
968
986
|
|
|
969
987
|
const { editStore } = reactData
|
|
970
|
-
const {
|
|
971
|
-
if (
|
|
972
|
-
return
|
|
988
|
+
const { row, column } = editStore.selected
|
|
989
|
+
if (row && column) {
|
|
990
|
+
return { row, column }
|
|
973
991
|
}
|
|
974
992
|
return null
|
|
975
993
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import XEUtils from 'xe-utils'
|
|
2
2
|
import { VxeUI } from '../../../ui'
|
|
3
|
-
import { isColumnInfo, getCellValue } from '../../src/util'
|
|
3
|
+
import { isColumnInfo, getCellValue, createHandleGetRowId } from '../../src/util'
|
|
4
4
|
import { parseFile, formatText, eqEmptyValue } from '../../../ui/src/utils'
|
|
5
5
|
import { hasClass } from '../../../ui/src/dom'
|
|
6
6
|
import { createHtmlPage, getExportBlobByContent } from './util'
|
|
@@ -76,11 +76,18 @@ function getBodyLabelData ($xeTable: VxeTableConstructor, opts: VxeTablePropType
|
|
|
76
76
|
const childrenField = treeOpts.children || treeOpts.childrenField
|
|
77
77
|
// 如果是树表格只允许导出数据源
|
|
78
78
|
const rest: any[] = []
|
|
79
|
-
const expandMaps:
|
|
79
|
+
const expandMaps: Record<string, boolean> = {}
|
|
80
|
+
const useMaps: Record<string, boolean> = {}
|
|
81
|
+
const { handleGetRowId } = createHandleGetRowId($xeTable)
|
|
80
82
|
XEUtils.eachTree(datas, (item, $rowIndex, items, path, parent, nodes) => {
|
|
81
83
|
const row = item._row || item
|
|
84
|
+
const rowid = handleGetRowId(row)
|
|
85
|
+
if (useMaps[rowid]) {
|
|
86
|
+
return
|
|
87
|
+
}
|
|
82
88
|
const parentRow = parent && parent._row ? parent._row : parent
|
|
83
|
-
|
|
89
|
+
const pRowid = parentRow ? handleGetRowId(parentRow) : ''
|
|
90
|
+
if ((isAllExpand || !parentRow || (expandMaps[pRowid] && $xeTable.isTreeExpandByRow(parentRow)))) {
|
|
84
91
|
const hasRowChild = hasTreeChildren($xeTable, row)
|
|
85
92
|
const item: any = {
|
|
86
93
|
_row: row,
|
|
@@ -139,7 +146,10 @@ function getBodyLabelData ($xeTable: VxeTableConstructor, opts: VxeTablePropType
|
|
|
139
146
|
}
|
|
140
147
|
item[column.id] = toStringValue(cellValue)
|
|
141
148
|
})
|
|
142
|
-
|
|
149
|
+
useMaps[rowid] = true
|
|
150
|
+
if (pRowid) {
|
|
151
|
+
expandMaps[pRowid] = true
|
|
152
|
+
}
|
|
143
153
|
rest.push(Object.assign(item, row))
|
|
144
154
|
}
|
|
145
155
|
}, { children: childrenField })
|
|
@@ -1170,7 +1180,7 @@ export default {
|
|
|
1170
1180
|
|
|
1171
1181
|
const { treeConfig, showHeader, showFooter } = props
|
|
1172
1182
|
const { isGroup } = reactData
|
|
1173
|
-
const { tableFullColumn, afterFullData, collectColumn, mergeBodyList, mergeFooterList } = internalData
|
|
1183
|
+
const { tableFullColumn, afterFullData, afterTreeFullData, collectColumn, mergeBodyList, mergeFooterList } = internalData
|
|
1174
1184
|
const exportOpts = $xeTable.computeExportOpts
|
|
1175
1185
|
const treeOpts = $xeTable.computeTreeOpts
|
|
1176
1186
|
const proxyOpts = $xeGrid ? $xeGrid.computeProxyOpts : {}
|
|
@@ -1398,8 +1408,10 @@ export default {
|
|
|
1398
1408
|
}
|
|
1399
1409
|
}
|
|
1400
1410
|
} else if (mode === 'current') {
|
|
1401
|
-
handleOptions.data = afterFullData
|
|
1411
|
+
handleOptions.data = treeConfig ? afterTreeFullData : afterFullData
|
|
1402
1412
|
}
|
|
1413
|
+
} else {
|
|
1414
|
+
handleOptions._isCustomData = true
|
|
1403
1415
|
}
|
|
1404
1416
|
return handleExport($xeTable, handleOptions)
|
|
1405
1417
|
},
|
|
@@ -668,7 +668,7 @@ export const Cell = {
|
|
|
668
668
|
if (isVisible) {
|
|
669
669
|
radioVNs.push(
|
|
670
670
|
h('span', {
|
|
671
|
-
class: ['vxe-radio--icon', isChecked ? getIcon().TABLE_RADIO_CHECKED : getIcon().TABLE_RADIO_UNCHECKED]
|
|
671
|
+
class: ['vxe-radio--icon', isChecked ? getIcon().TABLE_RADIO_CHECKED : (isDisabled ? getIcon().TABLE_RADIO_DISABLED_UNCHECKED : getIcon().TABLE_RADIO_UNCHECKED)]
|
|
672
672
|
})
|
|
673
673
|
)
|
|
674
674
|
}
|
|
@@ -740,7 +740,7 @@ export const Cell = {
|
|
|
740
740
|
on: ons
|
|
741
741
|
}, [
|
|
742
742
|
h('span', {
|
|
743
|
-
class: ['vxe-checkbox--icon', isAllCheckboxIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isAllCheckboxSelected ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED)]
|
|
743
|
+
class: ['vxe-checkbox--icon', isAllCheckboxIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isAllCheckboxSelected ? getIcon().TABLE_CHECKBOX_CHECKED : (isAllCheckboxDisabled ? getIcon().TABLE_CHECKBOX_DISABLED_UNCHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED))]
|
|
744
744
|
})
|
|
745
745
|
].concat(titleSlot || colTitle
|
|
746
746
|
? [
|
|
@@ -793,7 +793,7 @@ export const Cell = {
|
|
|
793
793
|
if (isVisible) {
|
|
794
794
|
checkVNs.push(
|
|
795
795
|
h('span', {
|
|
796
|
-
class: ['vxe-checkbox--icon', indeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED)]
|
|
796
|
+
class: ['vxe-checkbox--icon', indeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : (isDisabled ? getIcon().TABLE_CHECKBOX_DISABLED_UNCHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED))]
|
|
797
797
|
})
|
|
798
798
|
)
|
|
799
799
|
}
|
|
@@ -861,7 +861,7 @@ export const Cell = {
|
|
|
861
861
|
if (isVisible) {
|
|
862
862
|
checkVNs.push(
|
|
863
863
|
h('span', {
|
|
864
|
-
class: ['vxe-checkbox--icon', isIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED)]
|
|
864
|
+
class: ['vxe-checkbox--icon', isIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : (isDisabled ? getIcon().TABLE_CHECKBOX_DISABLED_UNCHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED))]
|
|
865
865
|
})
|
|
866
866
|
)
|
|
867
867
|
}
|
|
@@ -185,7 +185,7 @@ function restoreCustomStorage ($xeTable: VxeTableConstructor & VxeTablePrivateMe
|
|
|
185
185
|
const isCustomVisible = hangleStorageDefaultValue(storageOpts.visible, isAllCustom)
|
|
186
186
|
const isCustomFixed = hangleStorageDefaultValue(storageOpts.fixed, isAllCustom)
|
|
187
187
|
const isCustomSort = hangleStorageDefaultValue(storageOpts.sort, isAllCustom)
|
|
188
|
-
if ((customConfig ? isEnableConf(customOpts) : customOpts.enabled) && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort)) {
|
|
188
|
+
if (storage && (customConfig ? isEnableConf(customOpts) : customOpts.enabled) && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort)) {
|
|
189
189
|
if (!tableId) {
|
|
190
190
|
errLog('vxe.error.reqProp', ['id'])
|
|
191
191
|
return
|
|
@@ -5128,7 +5128,7 @@ const Methods = {
|
|
|
5128
5128
|
const isCustomVisible = hangleStorageDefaultValue(storageOpts.visible, isAllCustom)
|
|
5129
5129
|
const isCustomFixed = hangleStorageDefaultValue(storageOpts.fixed, isAllCustom)
|
|
5130
5130
|
const isCustomSort = hangleStorageDefaultValue(storageOpts.sort, isAllCustom)
|
|
5131
|
-
if ((customConfig ? isEnableConf(customOpts) : customOpts.enabled) && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort)) {
|
|
5131
|
+
if (storage && (customConfig ? isEnableConf(customOpts) : customOpts.enabled) && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort)) {
|
|
5132
5132
|
if (!tableId) {
|
|
5133
5133
|
errLog('vxe.error.reqProp', ['id'])
|
|
5134
5134
|
return
|
|
@@ -5174,7 +5174,9 @@ const Methods = {
|
|
|
5174
5174
|
fixedData: undefined
|
|
5175
5175
|
}
|
|
5176
5176
|
if (!id) {
|
|
5177
|
-
|
|
5177
|
+
if (storage) {
|
|
5178
|
+
errLog('vxe.error.reqProp', ['id'])
|
|
5179
|
+
}
|
|
5178
5180
|
return storeData
|
|
5179
5181
|
}
|
|
5180
5182
|
let hasResizable = 0
|
|
@@ -5244,7 +5246,7 @@ const Methods = {
|
|
|
5244
5246
|
if (type !== 'reset') {
|
|
5245
5247
|
reactData.isCustomStatus = true
|
|
5246
5248
|
}
|
|
5247
|
-
if ((customConfig ? isEnableConf(customOpts) : customOpts.enabled) && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort)) {
|
|
5249
|
+
if (storage && (customConfig ? isEnableConf(customOpts) : customOpts.enabled) && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort)) {
|
|
5248
5250
|
if (!tableId) {
|
|
5249
5251
|
errLog('vxe.error.reqProp', ['id'])
|
|
5250
5252
|
return this.$nextTick()
|
|
@@ -7063,7 +7065,7 @@ const Methods = {
|
|
|
7063
7065
|
vLen++
|
|
7064
7066
|
}
|
|
7065
7067
|
)
|
|
7066
|
-
const isSelected = sLen >= vLen
|
|
7068
|
+
const isSelected = selectCheckboxMaps[rowid] || (sLen >= vLen && (vLen >= 1 || hLen >= 1))
|
|
7067
7069
|
const halfSelect = !isSelected && (sLen >= 1 || hLen >= 1)
|
|
7068
7070
|
if (checkField) {
|
|
7069
7071
|
XEUtils.set(row, checkField, isSelected)
|
|
@@ -9167,6 +9169,23 @@ const Methods = {
|
|
|
9167
9169
|
const { isRowGroupStatus } = reactData
|
|
9168
9170
|
return isRowGroupStatus && row.isAggregate
|
|
9169
9171
|
},
|
|
9172
|
+
getAggregateContentByRow (row: any) {
|
|
9173
|
+
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
9174
|
+
const reactData = $xeTable as unknown as TableReactData
|
|
9175
|
+
|
|
9176
|
+
const { isRowGroupStatus } = reactData
|
|
9177
|
+
return isRowGroupStatus && row && row.isAggregate ? row.groupContent : ''
|
|
9178
|
+
},
|
|
9179
|
+
getAggregateRowChildren (row: any) {
|
|
9180
|
+
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
9181
|
+
const reactData = $xeTable as unknown as TableReactData
|
|
9182
|
+
|
|
9183
|
+
const aggregateOpts = $xeTable.computeAggregateOpts
|
|
9184
|
+
const { childrenField, mapChildrenField } = aggregateOpts
|
|
9185
|
+
|
|
9186
|
+
const { isRowGroupStatus } = reactData
|
|
9187
|
+
return isRowGroupStatus && row && row.isAggregate && childrenField && mapChildrenField ? (row[mapChildrenField] || []) : []
|
|
9188
|
+
},
|
|
9170
9189
|
isAggregateExpandByRow (row: any) {
|
|
9171
9190
|
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
9172
9191
|
const reactData = $xeTable as unknown as TableReactData
|
|
@@ -10637,7 +10656,7 @@ const Methods = {
|
|
|
10637
10656
|
} as any
|
|
10638
10657
|
|
|
10639
10658
|
// Module methods
|
|
10640
|
-
const funcs = 'setFilter,openFilter,clearFilter,saveFilterPanel,saveFilterPanelByEvent,resetFilterPanel,resetFilterPanelByEvent,getCheckedFilters,updateFilterOptionStatus,closeMenu,setActiveCellArea,getActiveCellArea,getCellAreas,clearCellAreas,copyCellArea,cutCellArea,pasteCellArea,getCopyCellArea,getCopyCellAreas,clearCopyCellArea,setCellAreas,openFNR,openFind,openReplace,closeFNR,getSelectedCell,clearSelected,insert,insertAt,insertNextAt,insertChild,insertChildAt,insertChildNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,clearEdit,clearActived,getEditRecord,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell,setSelectCell,clearValidate,fullValidate,validate,fullValidateField,validateField,openExport,closeExport,openPrint,closePrint,getPrintHtml,exportData,openImport,closeImport,importData,saveFile,readFile,importByFile,print,openCustom,closeCustom,saveCustom,cancelCustom,resetCustom,toggleCustomAllCheckbox,setCustomAllCheckbox'.split(',')
|
|
10659
|
+
const funcs = 'setFilter,openFilter,clearFilter,saveFilterPanel,saveFilterPanelByEvent,resetFilterPanel,resetFilterPanelByEvent,getCheckedFilters,updateFilterOptionStatus,closeMenu,setActiveCellArea,getActiveCellArea,getCellAreas,clearCellAreas,copyCellArea,cutCellArea,pasteCellArea,getCopyCellArea,getCopyCellAreas,clearCopyCellArea,setCellAreas,openFNR,openFind,openReplace,closeFNR,getSelectedCell,clearSelected,insert,insertAt,insertNextAt,insertChild,insertChildAt,insertChildNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,clearEdit,clearActived,getEditRecord,getEditCell,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell,setSelectCell,clearValidate,fullValidate,validate,fullValidateField,validateField,openExport,closeExport,openPrint,closePrint,getPrintHtml,exportData,openImport,closeImport,importData,saveFile,readFile,importByFile,print,openCustom,closeCustom,toggleCustom,saveCustom,cancelCustom,resetCustom,toggleCustomAllCheckbox,setCustomAllCheckbox'.split(',')
|
|
10641
10660
|
|
|
10642
10661
|
funcs.forEach(name => {
|
|
10643
10662
|
Methods[name] = function (...args: any[]) {
|
|
@@ -10648,7 +10667,7 @@ funcs.forEach(name => {
|
|
|
10648
10667
|
errLog('vxe.error.reqModule', ['Validator'])
|
|
10649
10668
|
} else if ('setFilter,openFilter,clearFilter,getCheckedFilters'.split(',').includes(name)) {
|
|
10650
10669
|
errLog('vxe.error.reqModule', ['Filter'])
|
|
10651
|
-
} else if ('insert,insertAt,insertNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,getEditRecord,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell'.split(',').includes(name)) {
|
|
10670
|
+
} else if ('insert,insertAt,insertNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,getEditRecord,getEditCell,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell'.split(',').includes(name)) {
|
|
10652
10671
|
errLog('vxe.error.reqModule', ['Edit'])
|
|
10653
10672
|
} else if ('openCustom'.split(',').includes(name)) {
|
|
10654
10673
|
errLog('vxe.error.reqModule', ['Custom'])
|
package/packages/ui/index.ts
CHANGED
|
@@ -217,13 +217,13 @@ VxeUI.setConfig({
|
|
|
217
217
|
isReplace: true
|
|
218
218
|
},
|
|
219
219
|
virtualXConfig: {
|
|
220
|
-
enabled:
|
|
220
|
+
// enabled: false,
|
|
221
221
|
gt: 24,
|
|
222
222
|
preSize: 0,
|
|
223
223
|
oSize: 0
|
|
224
224
|
},
|
|
225
225
|
virtualYConfig: {
|
|
226
|
-
enabled:
|
|
226
|
+
// enabled: false,
|
|
227
227
|
gt: 100,
|
|
228
228
|
preSize: 1,
|
|
229
229
|
oSize: 0
|
|
@@ -305,14 +305,18 @@ VxeUI.setIcon({
|
|
|
305
305
|
TABLE_CHECKBOX_CHECKED: iconPrefix + 'checkbox-checked-fill',
|
|
306
306
|
TABLE_CHECKBOX_UNCHECKED: iconPrefix + 'checkbox-unchecked',
|
|
307
307
|
TABLE_CHECKBOX_INDETERMINATE: iconPrefix + 'checkbox-indeterminate-fill',
|
|
308
|
+
TABLE_CHECKBOX_DISABLED_UNCHECKED: iconPrefix + 'checkbox-unchecked-fill',
|
|
308
309
|
TABLE_RADIO_CHECKED: iconPrefix + 'radio-checked-fill',
|
|
309
310
|
TABLE_RADIO_UNCHECKED: iconPrefix + 'radio-unchecked',
|
|
311
|
+
TABLE_RADIO_DISABLED_UNCHECKED: iconPrefix + 'radio-unchecked-fill',
|
|
310
312
|
TABLE_CUSTOM_SORT: iconPrefix + 'drag-handle',
|
|
311
313
|
TABLE_MENU_OPTIONS: iconPrefix + 'arrow-right',
|
|
312
314
|
TABLE_DRAG_ROW: iconPrefix + 'drag-handle',
|
|
313
315
|
TABLE_DRAG_COLUMN: iconPrefix + 'drag-handle',
|
|
314
316
|
TABLE_DRAG_STATUS_ROW: iconPrefix + 'sort',
|
|
315
317
|
TABLE_DRAG_STATUS_SUB_ROW: iconPrefix + 'add-sub',
|
|
318
|
+
TABLE_DRAG_STATUS_AGG_GROUP: iconPrefix + 'grouping',
|
|
319
|
+
TABLE_DRAG_STATUS_AGG_VALUES: iconPrefix + 'values',
|
|
316
320
|
TABLE_DRAG_STATUS_COLUMN: iconPrefix + 'swap',
|
|
317
321
|
TABLE_DRAG_DISABLED: iconPrefix + 'no-drop',
|
|
318
322
|
TABLE_ROW_GROUP_OPEN: iconPrefix + 'arrow-right rotate90',
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
@font-face {
|
|
6
6
|
font-family: "vxetableiconfont";
|
|
7
7
|
src:
|
|
8
|
-
url('data:application/x-font-woff2;charset=utf-8;base64,
|
|
8
|
+
url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAABAIAAsAAAAAIbgAAA+5AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFQGYACIOgqrQKNCATYCJAOBFAtMAAQgBYVHB4QlG6kcRQaGjQMBoG9hsv/rA13AEP3R2iPU2QJGwHFWIOKNtTIrVuzFJ8JEBv0CV71CpLWJr5Ftoeg/7wnGERxN07wfQxNbKv5aM9bI06GUPED74d7dv/+nImmoZteEVxJbbEjINKJYglA2RZu25CC+d0D8EIs5xO6IYRFvCyFVKESqQmqkeSGpKTX/S0WZLzUhFTMqIgzqVLllqWU77oD52jkWtDwwDNmP9EqvLQdGEBgBBFDGllrbQRsE5mT9C6UsWQtoz2EcQqFq54BjEWgfA37v8n+F0lo052R/kc/SfPXZ5GY3n9mZMJm8JhwO4XEKYzCW/1szbfYAwHXfvS3esVAofIWvMDOzyTWT+Qc/h3tEbY43xdyVgJ4HlJsSZsvsWmFJVcga2QpTrSuUreocxXh4mKxlK0D8NBib5MGqMYoJRsR/P4uAcrO2xZ2Dx8+rvnf52QPtktfOAWfmcO/2zctKj5VSQGxQWlZEvWESduXEd/EH3hvfP/w1H3yJ8szrvk7fOHDNBzft9hC+byX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Tarq+PjLDM9RFkO3lEQGEic0U7LW0SCZb1Z24LhCkZkLTKIfz5ok37Yu0AjLhXl32mvagp/6pxTg5ME0ifBiRbZEN7usZMzl8kc40r7F85HogG9e4VT5ec7B5EZzAlc1coxWVWOKobiS5cZKozrxb7ufihE4aa7Gx4OqZzmP4Ou+lKnXoNGTZq1+Nn59rXr0KlLtx69+vQbMGjIcHv4JKQivnOcEX8g+VyInrh2NcpW9iouRZKGq5NKr4Wny+tAHe1KSMm3Pl5sm1DThKhdYfFJpV5EKvbwZ/D5rAj7WDQSMoFbedoOK9/nrPnMUrWwPSrFQoefdSv2ZrL4KNQXvlP5C16PQWE+yYav2o293jD7tUyzBflEyHY9d6IWFeCrS+EydrPH/WYPu5w7M+hqejqSkK60+5wMvRFUZfN8qMuKimA3kobJz4ET4UUm+sIJBk2/KljT6y/3Stru5LKtEauGKlrhOg93bTVlVb7ijS/nwQEA') format('woff2');
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
@keyframes rollCircle {
|
|
@@ -79,6 +79,14 @@ $btnThemeList: (
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
.vxe-table-icon-radio-unchecked-fill:before {
|
|
83
|
+
content: "\e699";
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.vxe-table-icon-checkbox-unchecked-fill:before {
|
|
87
|
+
content: "\e660";
|
|
88
|
+
}
|
|
89
|
+
|
|
82
90
|
.vxe-table-icon-close:before {
|
|
83
91
|
content: "\e6e9";
|
|
84
92
|
}
|
|
@@ -99,6 +99,14 @@
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
|
|
103
|
+
.vxe-table-custom-simple--body-wrapper {
|
|
104
|
+
position: relative;
|
|
105
|
+
flex-grow: 1;
|
|
106
|
+
display: flex;
|
|
107
|
+
flex-direction: row;
|
|
108
|
+
}
|
|
109
|
+
|
|
102
110
|
.vxe-table-custom--body {
|
|
103
111
|
position: relative;
|
|
104
112
|
display: block;
|
|
@@ -208,12 +216,15 @@
|
|
|
208
216
|
user-select: none;
|
|
209
217
|
}
|
|
210
218
|
|
|
211
|
-
.vxe-table-custom-popup--body {
|
|
219
|
+
.vxe-table-custom-popup--body-wrapper {
|
|
212
220
|
position: relative;
|
|
213
221
|
overflow: auto;
|
|
214
222
|
height: 100%;
|
|
215
223
|
outline: 0;
|
|
216
224
|
}
|
|
225
|
+
.vxe-table-custom-popup--handle-wrapper {
|
|
226
|
+
outline: 0;
|
|
227
|
+
}
|
|
217
228
|
|
|
218
229
|
.vxe-table-custom-popup--table-wrapper {
|
|
219
230
|
border-bottom: 1px solid var(--vxe-ui-table-border-color);
|
|
@@ -294,7 +305,7 @@
|
|
|
294
305
|
top: 0;
|
|
295
306
|
left: 0;
|
|
296
307
|
padding: 0.6em 1.4em;
|
|
297
|
-
max-width:
|
|
308
|
+
max-width: 60%;
|
|
298
309
|
min-width: 100px;
|
|
299
310
|
border-radius: var(--vxe-ui-border-radius);
|
|
300
311
|
overflow: hidden;
|
|
@@ -315,6 +326,16 @@
|
|
|
315
326
|
display: block;
|
|
316
327
|
}
|
|
317
328
|
}
|
|
329
|
+
&[drag-status="group"] {
|
|
330
|
+
.vxe-table-custom-popup--drag-tip-group-status {
|
|
331
|
+
display: block;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
&[drag-status="values"] {
|
|
335
|
+
.vxe-table-custom-popup--drag-tip-values-status {
|
|
336
|
+
display: block;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
318
339
|
&[drag-status="disabled"] {
|
|
319
340
|
.vxe-table-custom-popup--drag-tip-disabled-status {
|
|
320
341
|
display: block;
|
|
@@ -335,7 +356,9 @@
|
|
|
335
356
|
color: var(--vxe-ui-status-error-color)
|
|
336
357
|
}
|
|
337
358
|
.vxe-table-custom-popup--drag-tip-normal-status,
|
|
338
|
-
.vxe-table-custom-popup--drag-tip-sub-status
|
|
359
|
+
.vxe-table-custom-popup--drag-tip-sub-status,
|
|
360
|
+
.vxe-table-custom-popup--drag-tip-group-status,
|
|
361
|
+
.vxe-table-custom-popup--drag-tip-values-status {
|
|
339
362
|
display: none;
|
|
340
363
|
}
|
|
341
364
|
.vxe-table-custom-popup--drag-tip-content {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
@mixin createCheckboxIcon {
|
|
6
6
|
.vxe-checkbox--icon {
|
|
7
|
-
font-size: 1.
|
|
7
|
+
font-size: 1.22em;
|
|
8
8
|
}
|
|
9
9
|
.vxe-checkbox--icon {
|
|
10
10
|
color: var(--vxe-ui-input-border-color);
|
|
@@ -46,10 +46,11 @@
|
|
|
46
46
|
@mixin createRadioIcon {
|
|
47
47
|
cursor: pointer;
|
|
48
48
|
.vxe-radio--icon {
|
|
49
|
-
font-size: 1.
|
|
49
|
+
font-size: 1.26em;
|
|
50
50
|
}
|
|
51
51
|
.vxe-radio--icon {
|
|
52
52
|
color: var(--vxe-ui-input-border-color);
|
|
53
|
+
border-radius: 50%;
|
|
53
54
|
vertical-align: middle;
|
|
54
55
|
font-weight: 700;
|
|
55
56
|
user-select: none;
|
|
@@ -80,3 +81,16 @@
|
|
|
80
81
|
vertical-align: middle;
|
|
81
82
|
}
|
|
82
83
|
}
|
|
84
|
+
|
|
85
|
+
@mixin createEmptyMask {
|
|
86
|
+
&::after {
|
|
87
|
+
content: "";
|
|
88
|
+
position: absolute;
|
|
89
|
+
top: 0;
|
|
90
|
+
left: 0;
|
|
91
|
+
width: 100%;
|
|
92
|
+
height: 100%;
|
|
93
|
+
z-index: 1;
|
|
94
|
+
user-select: none;
|
|
95
|
+
}
|
|
96
|
+
}
|
package/styles/icon/iconfont.ttf
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|