vxe-table 3.16.2 → 3.16.4
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/grid/src/grid.js +2 -2
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/locale/lang/ar-EG.js +19 -1
- package/es/locale/lang/de-DE.js +19 -1
- package/es/locale/lang/en-US.js +20 -2
- package/es/locale/lang/es-ES.js +19 -1
- package/es/locale/lang/fr-FR.js +19 -1
- package/es/locale/lang/hu-HU.js +19 -1
- package/es/locale/lang/hy-AM.js +18 -0
- package/es/locale/lang/id-ID.js +19 -1
- package/es/locale/lang/it-IT.js +19 -1
- package/es/locale/lang/ja-JP.js +19 -1
- package/es/locale/lang/ko-KR.js +19 -1
- package/es/locale/lang/ms-MY.js +19 -1
- package/es/locale/lang/nb-NO.js +19 -1
- package/es/locale/lang/pt-BR.js +19 -1
- package/es/locale/lang/ru-RU.js +19 -1
- package/es/locale/lang/th-TH.js +19 -1
- package/es/locale/lang/ug-CN.js +19 -1
- package/es/locale/lang/uk-UA.js +19 -1
- package/es/locale/lang/uz-UZ.js +19 -1
- package/es/locale/lang/vi-VN.js +19 -1
- package/es/locale/lang/zh-CHT.js +19 -1
- package/es/locale/lang/zh-CN.js +18 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/filter/panel.js +5 -1
- package/es/table/src/methods.js +14 -4
- package/es/table/style.css +1 -0
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +2 -2
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +1 -0
- package/es/vxe-table/style.min.css +1 -1
- package/lib/grid/src/grid.js +2 -2
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +42 -9
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +19 -1
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +19 -1
- package/lib/locale/lang/de-DE.js +19 -1
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +19 -1
- package/lib/locale/lang/en-US.js +20 -2
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +20 -2
- package/lib/locale/lang/es-ES.js +19 -1
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +19 -1
- package/lib/locale/lang/fr-FR.js +19 -1
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +19 -1
- package/lib/locale/lang/hu-HU.js +19 -1
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +19 -1
- package/lib/locale/lang/hy-AM.js +18 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +18 -0
- package/lib/locale/lang/id-ID.js +19 -1
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +19 -1
- package/lib/locale/lang/it-IT.js +19 -1
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +19 -1
- package/lib/locale/lang/ja-JP.js +19 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +19 -1
- package/lib/locale/lang/ko-KR.js +19 -1
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +19 -1
- package/lib/locale/lang/ms-MY.js +19 -1
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +19 -1
- package/lib/locale/lang/nb-NO.js +19 -1
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +19 -1
- package/lib/locale/lang/pt-BR.js +19 -1
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +19 -1
- package/lib/locale/lang/ru-RU.js +19 -1
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +19 -1
- package/lib/locale/lang/th-TH.js +19 -1
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +19 -1
- package/lib/locale/lang/ug-CN.js +19 -1
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +19 -1
- package/lib/locale/lang/uk-UA.js +19 -1
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +19 -1
- package/lib/locale/lang/uz-UZ.js +19 -1
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +19 -1
- package/lib/locale/lang/vi-VN.js +19 -1
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +19 -1
- package/lib/locale/lang/zh-CHT.js +19 -1
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +19 -1
- package/lib/locale/lang/zh-CN.js +18 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +18 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/filter/panel.js +5 -1
- package/lib/table/module/filter/panel.min.js +1 -1
- package/lib/table/src/methods.js +14 -3
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/style/style.css +1 -0
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +2 -2
- 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 +1 -0
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/grid/src/grid.ts +7 -7
- package/packages/locale/lang/ar-EG.ts +19 -1
- package/packages/locale/lang/de-DE.ts +19 -1
- package/packages/locale/lang/en-US.ts +20 -2
- package/packages/locale/lang/es-ES.ts +19 -1
- package/packages/locale/lang/fr-FR.ts +19 -1
- package/packages/locale/lang/hu-HU.ts +19 -1
- package/packages/locale/lang/hy-AM.ts +18 -0
- package/packages/locale/lang/id-ID.ts +19 -1
- package/packages/locale/lang/it-IT.ts +19 -1
- package/packages/locale/lang/ja-JP.ts +19 -1
- package/packages/locale/lang/ko-KR.ts +19 -1
- package/packages/locale/lang/ms-MY.ts +19 -1
- package/packages/locale/lang/nb-NO.ts +19 -1
- package/packages/locale/lang/pt-BR.ts +19 -1
- package/packages/locale/lang/ru-RU.ts +19 -1
- package/packages/locale/lang/th-TH.ts +19 -1
- package/packages/locale/lang/ug-CN.ts +19 -1
- package/packages/locale/lang/uk-UA.ts +19 -1
- package/packages/locale/lang/uz-UZ.ts +19 -1
- package/packages/locale/lang/vi-VN.ts +19 -1
- package/packages/locale/lang/zh-CHT.ts +19 -1
- package/packages/locale/lang/zh-CN.ts +18 -0
- package/packages/table/module/custom/panel.ts +11 -11
- package/packages/table/module/export/export-panel.ts +5 -6
- package/packages/table/module/export/import-panel.ts +3 -4
- package/packages/table/module/filter/panel.ts +5 -1
- package/packages/table/src/methods.ts +14 -5
- package/packages/table/src/table.ts +5 -5
- package/packages/toolbar/src/toolbar.ts +11 -11
- package/packages/ui/index.ts +1 -1
- package/styles/components/table.scss +1 -0
- /package/es/{iconfont.1752196450144.ttf → iconfont.1752646203441.ttf} +0 -0
- /package/es/{iconfont.1752196450144.woff → iconfont.1752646203441.woff} +0 -0
- /package/es/{iconfont.1752196450144.woff2 → iconfont.1752646203441.woff2} +0 -0
- /package/lib/{iconfont.1752196450144.ttf → iconfont.1752646203441.ttf} +0 -0
- /package/lib/{iconfont.1752196450144.woff → iconfont.1752646203441.woff} +0 -0
- /package/lib/{iconfont.1752196450144.woff2 → iconfont.1752646203441.woff2} +0 -0
|
@@ -6,7 +6,7 @@ import { errLog } from '../../../ui/src/log'
|
|
|
6
6
|
import XEUtils from 'xe-utils'
|
|
7
7
|
|
|
8
8
|
import type { VxeTableDefines, VxeTableConstructor, VxeTablePrivateMethods, TableReactData, TableInternalData, VxeColumnPropTypes, VxeTableCustomPanelConstructor, TableCustomPanelReactData, TableCustomPanelInternalData } from '../../../../types'
|
|
9
|
-
import type {
|
|
9
|
+
import type { VxeButtonDefines, VxeRadioGroupDefines } from 'vxe-pc-ui'
|
|
10
10
|
|
|
11
11
|
const { getI18n, getIcon, renderEmptyElement } = VxeUI
|
|
12
12
|
|
|
@@ -113,7 +113,7 @@ const renderDragTip = (h: CreateElement, $xeTableCustomPanel: VxeTableCustomPane
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
const renderSimplePanel = (h: CreateElement, _vm: any) => {
|
|
116
|
-
const VxeUIButtonComponent = VxeUI.getComponent
|
|
116
|
+
const VxeUIButtonComponent = VxeUI.getComponent('VxeButton')
|
|
117
117
|
|
|
118
118
|
const props = _vm
|
|
119
119
|
|
|
@@ -435,10 +435,10 @@ const renderSimplePanel = (h: CreateElement, _vm: any) => {
|
|
|
435
435
|
}
|
|
436
436
|
|
|
437
437
|
const renderPopupPanel = (h: CreateElement, $xeTableCustomPanel: VxeTableCustomPanelConstructor) => {
|
|
438
|
-
const VxeUIModalComponent = VxeUI.getComponent
|
|
439
|
-
const VxeUIDrawerComponent = VxeUI.getComponent
|
|
440
|
-
const VxeUIButtonComponent = VxeUI.getComponent
|
|
441
|
-
const VxeUINumberInputComponent = VxeUI.getComponent
|
|
438
|
+
const VxeUIModalComponent = VxeUI.getComponent('VxeModal')
|
|
439
|
+
const VxeUIDrawerComponent = VxeUI.getComponent('VxeDrawer')
|
|
440
|
+
const VxeUIButtonComponent = VxeUI.getComponent('VxeButton')
|
|
441
|
+
const VxeUINumberInputComponent = VxeUI.getComponent('VxeInput')
|
|
442
442
|
|
|
443
443
|
const _vm = $xeTableCustomPanel as any
|
|
444
444
|
const props = $xeTableCustomPanel
|
|
@@ -913,11 +913,11 @@ export default {
|
|
|
913
913
|
created () {
|
|
914
914
|
const $xeTableCustomPanel = this as any
|
|
915
915
|
|
|
916
|
-
const VxeUIModalComponent = VxeUI.getComponent
|
|
917
|
-
const VxeUIDrawerComponent = VxeUI.getComponent
|
|
918
|
-
const VxeUIButtonComponent = VxeUI.getComponent
|
|
919
|
-
const VxeUINumberInputComponent = VxeUI.getComponent
|
|
920
|
-
const VxeUIRadioGroupComponent = VxeUI.getComponent
|
|
916
|
+
const VxeUIModalComponent = VxeUI.getComponent('VxeModal')
|
|
917
|
+
const VxeUIDrawerComponent = VxeUI.getComponent('VxeDrawer')
|
|
918
|
+
const VxeUIButtonComponent = VxeUI.getComponent('VxeButton')
|
|
919
|
+
const VxeUINumberInputComponent = VxeUI.getComponent('VxeNumberInput')
|
|
920
|
+
const VxeUIRadioGroupComponent = VxeUI.getComponent('VxeRadioGroup')
|
|
921
921
|
|
|
922
922
|
$xeTableCustomPanel.$nextTick(() => {
|
|
923
923
|
const $xeTable = $xeTableCustomPanel.$xeTable as VxeTableConstructor & VxeTablePrivateMethods
|
|
@@ -4,7 +4,6 @@ import XEUtils from 'xe-utils'
|
|
|
4
4
|
import { formatText } from '../../../ui/src/utils'
|
|
5
5
|
import { errLog } from '../../../ui/src/log'
|
|
6
6
|
|
|
7
|
-
import type { VxeModalComponent, VxeInputComponent, VxeCheckboxComponent, VxeSelectComponent, VxeButtonComponent } from 'vxe-pc-ui'
|
|
8
7
|
import type { VxeTableConstructor, VxeTablePrivateMethods } from '../../../../types'
|
|
9
8
|
|
|
10
9
|
const { getI18n, getIcon, globalMixins, renderEmptyElement } = VxeUI
|
|
@@ -60,11 +59,11 @@ export default {
|
|
|
60
59
|
created (this: any) {
|
|
61
60
|
const $xeTableExportPanel = this
|
|
62
61
|
|
|
63
|
-
const VxeUIModalComponent = VxeUI.getComponent
|
|
64
|
-
const VxeUIButtonComponent = VxeUI.getComponent
|
|
65
|
-
const VxeUISelectComponent = VxeUI.getComponent
|
|
66
|
-
const VxeUIInputComponent = VxeUI.getComponent
|
|
67
|
-
const VxeUICheckboxComponent = VxeUI.getComponent
|
|
62
|
+
const VxeUIModalComponent = VxeUI.getComponent('VxeModal')
|
|
63
|
+
const VxeUIButtonComponent = VxeUI.getComponent('VxeButton')
|
|
64
|
+
const VxeUISelectComponent = VxeUI.getComponent('VxeSelect')
|
|
65
|
+
const VxeUIInputComponent = VxeUI.getComponent('VxeInput')
|
|
66
|
+
const VxeUICheckboxComponent = VxeUI.getComponent('VxeCheckbox')
|
|
68
67
|
|
|
69
68
|
$xeTableExportPanel.$nextTick(() => {
|
|
70
69
|
if (!VxeUIModalComponent) {
|
|
@@ -4,7 +4,6 @@ import XEUtils from 'xe-utils'
|
|
|
4
4
|
import { parseFile } from '../../../ui/src/utils'
|
|
5
5
|
import { errLog } from '../../../ui/src/log'
|
|
6
6
|
|
|
7
|
-
import type { VxeModalComponent, VxeSelectComponent, VxeButtonComponent } from 'vxe-pc-ui'
|
|
8
7
|
import type { VxeTableConstructor, VxeTablePrivateMethods } from '../../../../types'
|
|
9
8
|
|
|
10
9
|
const { getI18n, getIcon, globalMixins, renderEmptyElement } = VxeUI
|
|
@@ -52,9 +51,9 @@ export default {
|
|
|
52
51
|
created (this: any) {
|
|
53
52
|
const $xeTableImportPanel = this
|
|
54
53
|
|
|
55
|
-
const VxeUIModalComponent = VxeUI.getComponent
|
|
56
|
-
const VxeUIButtonComponent = VxeUI.getComponent
|
|
57
|
-
const VxeUISelectComponent = VxeUI.getComponent
|
|
54
|
+
const VxeUIModalComponent = VxeUI.getComponent('VxeModal')
|
|
55
|
+
const VxeUIButtonComponent = VxeUI.getComponent('VxeButton')
|
|
56
|
+
const VxeUISelectComponent = VxeUI.getComponent('VxeSelect')
|
|
58
57
|
|
|
59
58
|
$xeTableImportPanel.$nextTick(() => {
|
|
60
59
|
if (!VxeUIModalComponent) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { VxeUI } from '../../../ui'
|
|
2
2
|
import { formatText, isEnableConf, getClass } from '../../../ui/src/utils'
|
|
3
3
|
import { getSlotVNs } from '../../../ui/src/vn'
|
|
4
|
+
import { warnLog } from '../../../ui/src/log'
|
|
4
5
|
import { CreateElement } from 'vue'
|
|
5
6
|
|
|
6
7
|
import type { VxeTableConstructor, VxeTablePrivateMethods, TableInternalData } from '../../../../types'
|
|
@@ -269,7 +270,10 @@ export default {
|
|
|
269
270
|
confirmFilter (evnt: any) {
|
|
270
271
|
const $xeTable = this.$parent as VxeTableConstructor & VxeTablePrivateMethods
|
|
271
272
|
|
|
272
|
-
|
|
273
|
+
if (!evnt) {
|
|
274
|
+
warnLog('vxe.error.delFunc', ['confirmFilter', 'saveFilterPanelByEvent'])
|
|
275
|
+
}
|
|
276
|
+
$xeTable.handleFilterConfirmFilter(evnt || new Event('click'))
|
|
273
277
|
},
|
|
274
278
|
// 重置筛选
|
|
275
279
|
resetFilter (evnt: any) {
|
|
@@ -3868,7 +3868,7 @@ const Methods = {
|
|
|
3868
3868
|
setTimeout(() => handleLazyRecalculate($xeTable, false, true, true), 50)
|
|
3869
3869
|
})
|
|
3870
3870
|
},
|
|
3871
|
-
handleTableData (force
|
|
3871
|
+
handleTableData (force?: boolean) {
|
|
3872
3872
|
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
3873
3873
|
const reactData = $xeTable as unknown as TableReactData
|
|
3874
3874
|
const internalData = $xeTable as unknown as TableInternalData
|
|
@@ -7048,7 +7048,7 @@ const Methods = {
|
|
|
7048
7048
|
const treeOpts = $xeTable.computeTreeOpts
|
|
7049
7049
|
const childrenField = treeOpts.children || treeOpts.childrenField
|
|
7050
7050
|
const checkboxOpts = $xeTable.computeCheckboxOpts
|
|
7051
|
-
const { checkField, checkStrictly, checkMethod } = checkboxOpts
|
|
7051
|
+
const { checkField, indeterminateField, checkStrictly, checkMethod } = checkboxOpts
|
|
7052
7052
|
if (checkStrictly) {
|
|
7053
7053
|
return
|
|
7054
7054
|
}
|
|
@@ -7079,6 +7079,10 @@ const Methods = {
|
|
|
7079
7079
|
if (childList && childList.length && !childRowMaps[rowid]) {
|
|
7080
7080
|
childRowMaps[rowid] = 1
|
|
7081
7081
|
childRowList.unshift([row, rowid, childList])
|
|
7082
|
+
} else {
|
|
7083
|
+
if (indeterminateField) {
|
|
7084
|
+
XEUtils.set(row, indeterminateField, false)
|
|
7085
|
+
}
|
|
7082
7086
|
}
|
|
7083
7087
|
}, { children: transform ? mapChildrenField : childrenField })
|
|
7084
7088
|
}
|
|
@@ -7090,7 +7094,7 @@ const Methods = {
|
|
|
7090
7094
|
let sLen = 0 // 已选
|
|
7091
7095
|
let hLen = 0 // 半选
|
|
7092
7096
|
let vLen = 0 // 有效子行
|
|
7093
|
-
const cLen = childList.length //
|
|
7097
|
+
const cLen = childList.length // 子行
|
|
7094
7098
|
childList.forEach(
|
|
7095
7099
|
checkMethod
|
|
7096
7100
|
? (item) => {
|
|
@@ -7146,6 +7150,9 @@ const Methods = {
|
|
|
7146
7150
|
if (checkField) {
|
|
7147
7151
|
XEUtils.set(row, checkField, isSelected)
|
|
7148
7152
|
}
|
|
7153
|
+
if (indeterminateField) {
|
|
7154
|
+
XEUtils.set(row, indeterminateField, halfSelect)
|
|
7155
|
+
}
|
|
7149
7156
|
if (isSelected) {
|
|
7150
7157
|
if (!checkField) {
|
|
7151
7158
|
selectCheckboxMaps[rowid] = row
|
|
@@ -9334,15 +9341,17 @@ const Methods = {
|
|
|
9334
9341
|
const reactData = $xeTable as unknown as TableReactData
|
|
9335
9342
|
const internalData = $xeTable as unknown as TableInternalData
|
|
9336
9343
|
|
|
9337
|
-
const { tableFullData } = internalData
|
|
9344
|
+
const { tableFullData, scrollYStore } = internalData
|
|
9338
9345
|
const expandOpts = $xeTable.computeExpandOpts
|
|
9339
9346
|
const { reserve } = expandOpts
|
|
9340
9347
|
const expList = $xeTable.getRowExpandRecords()
|
|
9341
9348
|
internalData.rowExpandedMaps = {}
|
|
9342
|
-
reactData.rowExpandedFlag++
|
|
9343
9349
|
if (reserve) {
|
|
9344
9350
|
tableFullData.forEach((row) => handleRowExpandReserve($xeTable, row, false))
|
|
9345
9351
|
}
|
|
9352
|
+
reactData.rowExpandedFlag++
|
|
9353
|
+
scrollYStore.startIndex = 0
|
|
9354
|
+
scrollYStore.endIndex = 1
|
|
9346
9355
|
return $xeTable.$nextTick().then(() => {
|
|
9347
9356
|
if (expList.length) {
|
|
9348
9357
|
return handleLazyRecalculate($xeTable, true, true, true)
|
|
@@ -25,7 +25,7 @@ import keyboardMixin from '../module/keyboard/mixin'
|
|
|
25
25
|
import validatorMixin from '../module/validator/mixin'
|
|
26
26
|
import customMixin from '../module/custom/mixin'
|
|
27
27
|
|
|
28
|
-
import type {
|
|
28
|
+
import type { VxeTabsConstructor, VxeTabsPrivateMethods } from 'vxe-pc-ui'
|
|
29
29
|
import type { VxeTableConstructor, VxeTablePrivateMethods, TableInternalData, TableReactData, VxeTableDefines } from '../../../types'
|
|
30
30
|
|
|
31
31
|
const { getConfig, getIcon, getI18n, renderer, globalResize, globalEvents, globalMixins, renderEmptyElement } = VxeUI
|
|
@@ -1878,8 +1878,8 @@ export default {
|
|
|
1878
1878
|
}
|
|
1879
1879
|
|
|
1880
1880
|
// 使用已安装的组件,如果未安装则不渲染
|
|
1881
|
-
const VxeUILoadingComponent = VxeUI.getComponent
|
|
1882
|
-
const VxeUITooltipComponent = VxeUI.getComponent
|
|
1881
|
+
const VxeUILoadingComponent = VxeUI.getComponent('VxeLoading')
|
|
1882
|
+
const VxeUITooltipComponent = VxeUI.getComponent('VxeTooltip')
|
|
1883
1883
|
|
|
1884
1884
|
$xeTable.$nextTick(() => {
|
|
1885
1885
|
if (props.loading) {
|
|
@@ -1977,8 +1977,8 @@ export default {
|
|
|
1977
1977
|
},
|
|
1978
1978
|
render (h: CreateElement) {
|
|
1979
1979
|
// 使用已安装的组件,如果未安装则不渲染
|
|
1980
|
-
const VxeUILoadingComponent = VxeUI.getComponent
|
|
1981
|
-
const VxeUITooltipComponent = VxeUI.getComponent
|
|
1980
|
+
const VxeUILoadingComponent = VxeUI.getComponent('VxeLoading')
|
|
1981
|
+
const VxeUITooltipComponent = VxeUI.getComponent('VxeTooltip')
|
|
1982
1982
|
|
|
1983
1983
|
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
1984
1984
|
const $xeGrid = $xeTable.$xeGrid
|
|
@@ -5,7 +5,7 @@ import { VxeUI } from '../../ui'
|
|
|
5
5
|
import { getSlotVNs } from '../../ui/src/vn'
|
|
6
6
|
import { warnLog, errLog } from '../../ui/src/log'
|
|
7
7
|
|
|
8
|
-
import type { ValueOf,
|
|
8
|
+
import type { ValueOf, VxeComponentSizeType, VxeComponentSlotType, VxeButtonDefines } from 'vxe-pc-ui'
|
|
9
9
|
import type { VxeGridConstructor, GridPrivateMethods, ToolbarInternalData, VxeTableDefines, VxeToolbarEmits, VxeToolbarPropTypes, VxeTablePropTypes, ToolbarReactData, VxeTableConstructor, VxeTablePrivateMethods } from '../../../types'
|
|
10
10
|
|
|
11
11
|
const { getConfig, getIcon, getI18n, renderer, commands, createEvent, globalMixins, renderEmptyElement } = VxeUI
|
|
@@ -412,7 +412,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
412
412
|
//
|
|
413
413
|
renderDropdowns (h: CreateElement, item: VxeToolbarPropTypes.ButtonConfig, isBtn: boolean) {
|
|
414
414
|
// 使用已安装的组件,如果未安装则不渲染
|
|
415
|
-
const VxeUIButtonComponent = VxeUI.getComponent
|
|
415
|
+
const VxeUIButtonComponent = VxeUI.getComponent('VxeButton')
|
|
416
416
|
|
|
417
417
|
const $xeToolbar = this
|
|
418
418
|
|
|
@@ -456,7 +456,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
456
456
|
*/
|
|
457
457
|
renderLeftBtns (h: CreateElement): VxeComponentSlotType[] {
|
|
458
458
|
// 使用已安装的组件,如果未安装则不渲染
|
|
459
|
-
const VxeUIButtonComponent = VxeUI.getComponent
|
|
459
|
+
const VxeUIButtonComponent = VxeUI.getComponent('VxeButton')
|
|
460
460
|
|
|
461
461
|
const $xeToolbar = this
|
|
462
462
|
const props = $xeToolbar
|
|
@@ -534,7 +534,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
534
534
|
*/
|
|
535
535
|
renderRightTools (h: CreateElement) {
|
|
536
536
|
// 使用已安装的组件,如果未安装则不渲染
|
|
537
|
-
const VxeUIButtonComponent = VxeUI.getComponent
|
|
537
|
+
const VxeUIButtonComponent = VxeUI.getComponent('VxeButton')
|
|
538
538
|
|
|
539
539
|
const $xeToolbar = this
|
|
540
540
|
const props = $xeToolbar
|
|
@@ -612,7 +612,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
612
612
|
},
|
|
613
613
|
renderToolImport (h: CreateElement) {
|
|
614
614
|
// 使用已安装的组件,如果未安装则不渲染
|
|
615
|
-
const VxeUIButtonComponent = VxeUI.getComponent
|
|
615
|
+
const VxeUIButtonComponent = VxeUI.getComponent('VxeButton')
|
|
616
616
|
|
|
617
617
|
const $xeToolbar = this
|
|
618
618
|
|
|
@@ -633,7 +633,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
633
633
|
},
|
|
634
634
|
renderToolExport (h: CreateElement) {
|
|
635
635
|
// 使用已安装的组件,如果未安装则不渲染
|
|
636
|
-
const VxeUIButtonComponent = VxeUI.getComponent
|
|
636
|
+
const VxeUIButtonComponent = VxeUI.getComponent('VxeButton')
|
|
637
637
|
|
|
638
638
|
const $xeToolbar = this
|
|
639
639
|
|
|
@@ -654,7 +654,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
654
654
|
},
|
|
655
655
|
renderToolPrint (h: CreateElement) {
|
|
656
656
|
// 使用已安装的组件,如果未安装则不渲染
|
|
657
|
-
const VxeUIButtonComponent = VxeUI.getComponent
|
|
657
|
+
const VxeUIButtonComponent = VxeUI.getComponent('VxeButton')
|
|
658
658
|
|
|
659
659
|
const $xeToolbar = this
|
|
660
660
|
|
|
@@ -675,7 +675,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
675
675
|
},
|
|
676
676
|
renderToolRefresh (h: CreateElement) {
|
|
677
677
|
// 使用已安装的组件,如果未安装则不渲染
|
|
678
|
-
const VxeUIButtonComponent = VxeUI.getComponent
|
|
678
|
+
const VxeUIButtonComponent = VxeUI.getComponent('VxeButton')
|
|
679
679
|
|
|
680
680
|
const $xeToolbar = this
|
|
681
681
|
const reactData = $xeToolbar.reactData
|
|
@@ -697,7 +697,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
697
697
|
},
|
|
698
698
|
renderToolZoom (h: CreateElement) {
|
|
699
699
|
// 使用已安装的组件,如果未安装则不渲染
|
|
700
|
-
const VxeUIButtonComponent = VxeUI.getComponent
|
|
700
|
+
const VxeUIButtonComponent = VxeUI.getComponent('VxeButton')
|
|
701
701
|
|
|
702
702
|
const $xeToolbar = this
|
|
703
703
|
const $xeGrid = $xeToolbar.$xeGrid
|
|
@@ -719,7 +719,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
719
719
|
},
|
|
720
720
|
renderToolCustom (h: CreateElement) {
|
|
721
721
|
// 使用已安装的组件,如果未安装则不渲染
|
|
722
|
-
const VxeUIButtonComponent = VxeUI.getComponent
|
|
722
|
+
const VxeUIButtonComponent = VxeUI.getComponent('VxeButton')
|
|
723
723
|
|
|
724
724
|
const $xeToolbar = this
|
|
725
725
|
|
|
@@ -844,7 +844,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
844
844
|
})
|
|
845
845
|
|
|
846
846
|
// 使用已安装的组件,如果未安装则不渲染
|
|
847
|
-
const VxeUIButtonComponent = VxeUI.getComponent
|
|
847
|
+
const VxeUIButtonComponent = VxeUI.getComponent('VxeButton')
|
|
848
848
|
|
|
849
849
|
if (props.refresh || props.import || props.export || props.print || props.zoom) {
|
|
850
850
|
if (!VxeUIButtonComponent) {
|
package/packages/ui/index.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|