vxe-table 4.5.8 → 4.5.10
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/button/style.css +2 -3
- package/es/edit/src/hook.js +3 -3
- package/es/export/src/hook.js +5 -5
- package/es/form/src/form-config-item.js +4 -2
- package/es/form/src/form-item.js +8 -2
- package/es/form/src/form.js +4 -0
- package/es/form/style.css +12 -0
- package/es/icon/style.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/src/body.js +2 -5
- package/es/table/src/cell.js +6 -3
- package/es/table/src/table.js +58 -47
- package/es/tools/log.js +1 -1
- package/es/v-x-e-table/index.js +7 -5
- package/es/v-x-e-table/src/{setup.js → config.js} +1 -1
- package/es/vxe-button/style.css +2 -3
- package/es/vxe-form/style.css +12 -0
- package/helper/vetur/attributes.json +18 -2
- package/helper/vetur/tags.json +4 -0
- package/lib/button/style/style.css +2 -3
- package/lib/button/style/style.min.css +1 -1
- package/lib/edit/src/hook.js +2 -2
- package/lib/edit/src/hook.min.js +1 -1
- package/lib/export/src/hook.js +5 -5
- package/lib/export/src/hook.min.js +1 -1
- package/lib/form/src/form-config-item.js +5 -1
- package/lib/form/src/form-config-item.min.js +1 -1
- package/lib/form/src/form-item.js +9 -1
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/form.js +4 -0
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/style/style.css +12 -0
- package/lib/form/style/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +101 -59
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/body.js +2 -5
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +6 -3
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/table.js +61 -51
- package/lib/table/src/table.min.js +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/v-x-e-table/index.js +15 -11
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/src/{setup.js → config.js} +3 -3
- package/lib/v-x-e-table/src/config.min.js +1 -0
- package/lib/vxe-button/style/style.css +2 -3
- package/lib/vxe-button/style/style.min.css +1 -1
- package/lib/vxe-form/style/style.css +12 -0
- package/lib/vxe-form/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/edit/src/hook.ts +2 -2
- package/packages/export/src/hook.ts +5 -5
- package/packages/form/src/form-config-item.ts +4 -2
- package/packages/form/src/form-item.ts +8 -2
- package/packages/form/src/form.ts +4 -0
- package/packages/table/src/body.ts +2 -5
- package/packages/table/src/cell.ts +6 -3
- package/packages/table/src/table.ts +36 -25
- package/packages/v-x-e-table/index.ts +8 -4
- package/packages/v-x-e-table/src/{setup.ts → config.ts} +1 -1
- package/styles/button.scss +5 -3
- package/styles/form.scss +14 -0
- package/types/form-item.d.ts +5 -0
- package/types/form.d.ts +3 -0
- package/types/table.d.ts +5 -5
- package/types/v-x-e-table/index.d.ts +31 -14
- package/lib/v-x-e-table/src/setup.min.js +0 -1
- /package/es/icon/style/{iconfont.1693370199154.ttf → iconfont.1694565686263.ttf} +0 -0
- /package/es/icon/style/{iconfont.1693370199154.woff → iconfont.1694565686263.woff} +0 -0
- /package/es/icon/style/{iconfont.1693370199154.woff2 → iconfont.1694565686263.woff2} +0 -0
- /package/es/{iconfont.1693370199154.ttf → iconfont.1694565686263.ttf} +0 -0
- /package/es/{iconfont.1693370199154.woff → iconfont.1694565686263.woff} +0 -0
- /package/es/{iconfont.1693370199154.woff2 → iconfont.1694565686263.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1693370199154.ttf → iconfont.1694565686263.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1693370199154.woff → iconfont.1694565686263.woff} +0 -0
- /package/lib/icon/style/{iconfont.1693370199154.woff2 → iconfont.1694565686263.woff2} +0 -0
- /package/lib/{iconfont.1693370199154.ttf → iconfont.1694565686263.ttf} +0 -0
- /package/lib/{iconfont.1693370199154.woff → iconfont.1694565686263.woff} +0 -0
- /package/lib/{iconfont.1693370199154.woff2 → iconfont.1694565686263.woff2} +0 -0
- /package/types/v-x-e-table/{setup.d.ts → config.d.ts} +0 -0
|
@@ -2048,16 +2048,16 @@ export default defineComponent({
|
|
|
2048
2048
|
}
|
|
2049
2049
|
|
|
2050
2050
|
const handleAsyncTreeExpandChilds = (row: any): Promise<void> => {
|
|
2051
|
-
const { treeExpandedMaps, treeExpandLazyLoadedMaps } = reactData
|
|
2052
|
-
const { fullAllDataRowIdData } = internalData
|
|
2053
2051
|
const treeOpts = computeTreeOpts.value
|
|
2054
2052
|
const checkboxOpts = computeCheckboxOpts.value
|
|
2055
2053
|
const { transform, loadMethod } = treeOpts
|
|
2056
2054
|
const { checkStrictly } = checkboxOpts
|
|
2057
|
-
const rowid = getRowid($xetable, row)
|
|
2058
|
-
const rest = fullAllDataRowIdData[rowid]
|
|
2059
2055
|
return new Promise(resolve => {
|
|
2060
2056
|
if (loadMethod) {
|
|
2057
|
+
const { treeExpandLazyLoadedMaps } = reactData
|
|
2058
|
+
const { fullAllDataRowIdData } = internalData
|
|
2059
|
+
const rowid = getRowid($xetable, row)
|
|
2060
|
+
const rest = fullAllDataRowIdData[rowid]
|
|
2061
2061
|
treeExpandLazyLoadedMaps[rowid] = row
|
|
2062
2062
|
loadMethod({ $table: $xetable, row }).then((childRecords: any) => {
|
|
2063
2063
|
rest.treeLoaded = true
|
|
@@ -2069,6 +2069,7 @@ export default defineComponent({
|
|
|
2069
2069
|
}
|
|
2070
2070
|
if (childRecords) {
|
|
2071
2071
|
return tableMethods.loadTreeChildren(row, childRecords).then(childRows => {
|
|
2072
|
+
const { treeExpandedMaps } = reactData
|
|
2072
2073
|
if (childRows.length && !treeExpandedMaps[rowid]) {
|
|
2073
2074
|
treeExpandedMaps[rowid] = row
|
|
2074
2075
|
}
|
|
@@ -2084,6 +2085,7 @@ export default defineComponent({
|
|
|
2084
2085
|
})
|
|
2085
2086
|
}
|
|
2086
2087
|
}).catch(() => {
|
|
2088
|
+
const { treeExpandLazyLoadedMaps } = reactData
|
|
2087
2089
|
rest.treeLoaded = false
|
|
2088
2090
|
if (treeExpandLazyLoadedMaps[rowid]) {
|
|
2089
2091
|
delete treeExpandLazyLoadedMaps[rowid]
|
|
@@ -2111,21 +2113,23 @@ export default defineComponent({
|
|
|
2111
2113
|
}
|
|
2112
2114
|
|
|
2113
2115
|
const handleAsyncRowExpand = (row: any): Promise<void> => {
|
|
2114
|
-
const { fullAllDataRowIdData } = internalData
|
|
2115
|
-
const { rowExpandLazyLoadedMaps, rowExpandedMaps } = reactData
|
|
2116
2116
|
return new Promise(resolve => {
|
|
2117
2117
|
const expandOpts = computeExpandOpts.value
|
|
2118
2118
|
const { loadMethod } = expandOpts
|
|
2119
2119
|
if (loadMethod) {
|
|
2120
|
+
const { fullAllDataRowIdData } = internalData
|
|
2121
|
+
const { rowExpandLazyLoadedMaps } = reactData
|
|
2120
2122
|
const rowid = getRowid($xetable, row)
|
|
2121
2123
|
const rest = fullAllDataRowIdData[rowid]
|
|
2122
2124
|
rowExpandLazyLoadedMaps[rowid] = row
|
|
2123
2125
|
loadMethod({ $table: $xetable, row, rowIndex: tableMethods.getRowIndex(row), $rowIndex: tableMethods.getVMRowIndex(row) }).then(() => {
|
|
2126
|
+
const { rowExpandedMaps } = reactData
|
|
2124
2127
|
rest.expandLoaded = true
|
|
2125
2128
|
rowExpandedMaps[rowid] = row
|
|
2126
2129
|
}).catch(() => {
|
|
2127
2130
|
rest.expandLoaded = false
|
|
2128
2131
|
}).finally(() => {
|
|
2132
|
+
const { rowExpandLazyLoadedMaps } = reactData
|
|
2129
2133
|
if (rowExpandLazyLoadedMaps[rowid]) {
|
|
2130
2134
|
delete rowExpandLazyLoadedMaps[rowid]
|
|
2131
2135
|
}
|
|
@@ -2547,6 +2551,7 @@ export default defineComponent({
|
|
|
2547
2551
|
*/
|
|
2548
2552
|
const handleBaseTreeExpand = (rows: any[], expanded: boolean) => {
|
|
2549
2553
|
const { treeExpandedMaps, treeExpandLazyLoadedMaps, treeNodeColumn } = reactData
|
|
2554
|
+
const treeTempExpandedMaps = { ...treeExpandedMaps }
|
|
2550
2555
|
const { fullAllDataRowIdData, tableFullData } = internalData
|
|
2551
2556
|
const treeOpts = computeTreeOpts.value
|
|
2552
2557
|
const { reserve, lazy, accordion, toggleMethod } = treeOpts
|
|
@@ -2563,8 +2568,8 @@ export default defineComponent({
|
|
|
2563
2568
|
if (matchObj) {
|
|
2564
2569
|
matchObj.items.forEach(item => {
|
|
2565
2570
|
const rowid = getRowid($xetable, item)
|
|
2566
|
-
if (
|
|
2567
|
-
delete
|
|
2571
|
+
if (treeTempExpandedMaps[rowid]) {
|
|
2572
|
+
delete treeTempExpandedMaps[rowid]
|
|
2568
2573
|
}
|
|
2569
2574
|
})
|
|
2570
2575
|
}
|
|
@@ -2572,7 +2577,7 @@ export default defineComponent({
|
|
|
2572
2577
|
if (expanded) {
|
|
2573
2578
|
validRows.forEach((row: any) => {
|
|
2574
2579
|
const rowid = getRowid($xetable, row)
|
|
2575
|
-
if (!
|
|
2580
|
+
if (!treeTempExpandedMaps[rowid]) {
|
|
2576
2581
|
const rest = fullAllDataRowIdData[rowid]
|
|
2577
2582
|
const isLoad = lazy && row[hasChildField] && !rest.treeLoaded && !treeExpandLazyLoadedMaps[rowid]
|
|
2578
2583
|
// 是否使用懒加载
|
|
@@ -2580,7 +2585,7 @@ export default defineComponent({
|
|
|
2580
2585
|
result.push(handleAsyncTreeExpandChilds(row))
|
|
2581
2586
|
} else {
|
|
2582
2587
|
if (row[childrenField] && row[childrenField].length) {
|
|
2583
|
-
|
|
2588
|
+
treeTempExpandedMaps[rowid] = row
|
|
2584
2589
|
}
|
|
2585
2590
|
}
|
|
2586
2591
|
}
|
|
@@ -2588,14 +2593,15 @@ export default defineComponent({
|
|
|
2588
2593
|
} else {
|
|
2589
2594
|
validRows.forEach(item => {
|
|
2590
2595
|
const rowid = getRowid($xetable, item)
|
|
2591
|
-
if (
|
|
2592
|
-
delete
|
|
2596
|
+
if (treeTempExpandedMaps[rowid]) {
|
|
2597
|
+
delete treeTempExpandedMaps[rowid]
|
|
2593
2598
|
}
|
|
2594
2599
|
})
|
|
2595
2600
|
}
|
|
2596
2601
|
if (reserve) {
|
|
2597
2602
|
validRows.forEach((row: any) => handleTreeExpandReserve(row, expanded))
|
|
2598
2603
|
}
|
|
2604
|
+
reactData.treeExpandedMaps = treeTempExpandedMaps
|
|
2599
2605
|
return Promise.all(result).then(() => {
|
|
2600
2606
|
return tableMethods.recalculate()
|
|
2601
2607
|
})
|
|
@@ -2796,7 +2802,7 @@ export default defineComponent({
|
|
|
2796
2802
|
*/
|
|
2797
2803
|
loadTreeChildren (row, childRecords) {
|
|
2798
2804
|
const { keepSource } = props
|
|
2799
|
-
const { tableSourceData, fullDataRowIdData, fullAllDataRowIdData } = internalData
|
|
2805
|
+
const { tableSourceData, fullDataRowIdData, fullAllDataRowIdData, sourceDataRowIdData } = internalData
|
|
2800
2806
|
const treeOpts = computeTreeOpts.value
|
|
2801
2807
|
const { transform, mapChildrenField } = treeOpts
|
|
2802
2808
|
const childrenField = treeOpts.children || treeOpts.childrenField
|
|
@@ -2809,6 +2815,10 @@ export default defineComponent({
|
|
|
2809
2815
|
if (matchObj) {
|
|
2810
2816
|
matchObj.item[childrenField] = XEUtils.clone(rows, true)
|
|
2811
2817
|
}
|
|
2818
|
+
rows.forEach(childRow => {
|
|
2819
|
+
const rowid = getRowid($xetable, childRow)
|
|
2820
|
+
sourceDataRowIdData[rowid] = XEUtils.clone(childRow, true)
|
|
2821
|
+
})
|
|
2812
2822
|
}
|
|
2813
2823
|
XEUtils.eachTree(rows, (childRow, index, items, path, parent, nodes) => {
|
|
2814
2824
|
const rowid = getRowid($xetable, childRow)
|
|
@@ -3436,7 +3446,7 @@ export default defineComponent({
|
|
|
3436
3446
|
},
|
|
3437
3447
|
isIndeterminateByCheckboxRow (row) {
|
|
3438
3448
|
const { treeIndeterminateMaps } = reactData
|
|
3439
|
-
return treeIndeterminateMaps[getRowid($xetable, row)] && !tableMethods.isCheckedByCheckboxRow(row)
|
|
3449
|
+
return !!treeIndeterminateMaps[getRowid($xetable, row)] && !tableMethods.isCheckedByCheckboxRow(row)
|
|
3440
3450
|
},
|
|
3441
3451
|
/**
|
|
3442
3452
|
* 多选,切换某一行的选中状态
|
|
@@ -3864,8 +3874,9 @@ export default defineComponent({
|
|
|
3864
3874
|
* @param {Boolean} expanded 是否展开
|
|
3865
3875
|
*/
|
|
3866
3876
|
setRowExpand (rows, expanded) {
|
|
3867
|
-
|
|
3877
|
+
const { rowExpandedMaps, rowExpandLazyLoadedMaps, expandColumn: column } = reactData
|
|
3868
3878
|
const { fullAllDataRowIdData } = internalData
|
|
3879
|
+
let rExpandedMaps = { ...rowExpandedMaps }
|
|
3869
3880
|
const expandOpts = computeExpandOpts.value
|
|
3870
3881
|
const { reserve, lazy, accordion, toggleMethod } = expandOpts
|
|
3871
3882
|
const lazyRests: any[] = []
|
|
@@ -3877,28 +3888,28 @@ export default defineComponent({
|
|
|
3877
3888
|
}
|
|
3878
3889
|
if (accordion) {
|
|
3879
3890
|
// 只能同时展开一个
|
|
3880
|
-
|
|
3891
|
+
rExpandedMaps = {}
|
|
3881
3892
|
rows = rows.slice(rows.length - 1, rows.length)
|
|
3882
3893
|
}
|
|
3883
3894
|
const validRows: any[] = toggleMethod ? rows.filter((row: any) => toggleMethod({ $table: $xetable, expanded, column, columnIndex, $columnIndex, row, rowIndex: tableMethods.getRowIndex(row), $rowIndex: tableMethods.getVMRowIndex(row) })) : rows
|
|
3884
3895
|
if (expanded) {
|
|
3885
3896
|
validRows.forEach((row: any) => {
|
|
3886
3897
|
const rowid = getRowid($xetable, row)
|
|
3887
|
-
if (!
|
|
3898
|
+
if (!rExpandedMaps[rowid]) {
|
|
3888
3899
|
const rest = fullAllDataRowIdData[rowid]
|
|
3889
3900
|
const isLoad = lazy && !rest.expandLoaded && !rowExpandLazyLoadedMaps[rowid]
|
|
3890
3901
|
if (isLoad) {
|
|
3891
3902
|
lazyRests.push(handleAsyncRowExpand(row))
|
|
3892
3903
|
} else {
|
|
3893
|
-
|
|
3904
|
+
rExpandedMaps[rowid] = row
|
|
3894
3905
|
}
|
|
3895
3906
|
}
|
|
3896
3907
|
})
|
|
3897
3908
|
} else {
|
|
3898
3909
|
validRows.forEach(item => {
|
|
3899
3910
|
const rowid = getRowid($xetable, item)
|
|
3900
|
-
if (
|
|
3901
|
-
delete
|
|
3911
|
+
if (rExpandedMaps[rowid]) {
|
|
3912
|
+
delete rExpandedMaps[rowid]
|
|
3902
3913
|
}
|
|
3903
3914
|
})
|
|
3904
3915
|
}
|
|
@@ -3906,7 +3917,7 @@ export default defineComponent({
|
|
|
3906
3917
|
validRows.forEach((row: any) => handleRowExpandReserve(row, expanded))
|
|
3907
3918
|
}
|
|
3908
3919
|
}
|
|
3909
|
-
reactData.rowExpandedMaps =
|
|
3920
|
+
reactData.rowExpandedMaps = rExpandedMaps
|
|
3910
3921
|
return Promise.all(lazyRests).then(() => tableMethods.recalculate())
|
|
3911
3922
|
},
|
|
3912
3923
|
/**
|
|
@@ -6342,11 +6353,11 @@ export default defineComponent({
|
|
|
6342
6353
|
const { exportConfig, importConfig } = props
|
|
6343
6354
|
const exportOpts = computeExportOpts.value
|
|
6344
6355
|
const importOpts = computeImportOpts.value
|
|
6345
|
-
if (importConfig && importOpts.types && !importOpts.importMethod && !XEUtils.includeArrays(VXETable.
|
|
6346
|
-
warnLog('vxe.error.errProp', [`export-config.types=${importOpts.types.join(',')}`, importOpts.types.filter((type: string) => XEUtils.includes(VXETable.
|
|
6356
|
+
if (importConfig && importOpts.types && !importOpts.importMethod && !XEUtils.includeArrays(VXETable.globalConfs.importTypes, importOpts.types)) {
|
|
6357
|
+
warnLog('vxe.error.errProp', [`export-config.types=${importOpts.types.join(',')}`, importOpts.types.filter((type: string) => XEUtils.includes(VXETable.globalConfs.importTypes, type)).join(',') || VXETable.globalConfs.importTypes.join(',')])
|
|
6347
6358
|
}
|
|
6348
|
-
if (exportConfig && exportOpts.types && !exportOpts.exportMethod && !XEUtils.includeArrays(VXETable.
|
|
6349
|
-
warnLog('vxe.error.errProp', [`export-config.types=${exportOpts.types.join(',')}`, exportOpts.types.filter((type: string) => XEUtils.includes(VXETable.
|
|
6359
|
+
if (exportConfig && exportOpts.types && !exportOpts.exportMethod && !XEUtils.includeArrays(VXETable.globalConfs.exportTypes, exportOpts.types)) {
|
|
6360
|
+
warnLog('vxe.error.errProp', [`export-config.types=${exportOpts.types.join(',')}`, exportOpts.types.filter((type: string) => XEUtils.includes(VXETable.globalConfs.exportTypes, type)).join(',') || VXETable.globalConfs.exportTypes.join(',')])
|
|
6350
6361
|
}
|
|
6351
6362
|
}
|
|
6352
6363
|
|
|
@@ -7,7 +7,7 @@ import { menus } from './src/menus'
|
|
|
7
7
|
import { formats } from './src/formats'
|
|
8
8
|
import { validators } from './src/validators'
|
|
9
9
|
import { hooks } from './src/hooks'
|
|
10
|
-
import {
|
|
10
|
+
import { config } from './src/config'
|
|
11
11
|
import { getLastZIndex, nextZIndex } from '../tools/utils'
|
|
12
12
|
|
|
13
13
|
import { VXETableCore } from '../../types/all'
|
|
@@ -72,14 +72,19 @@ class VXETableConfig {
|
|
|
72
72
|
return getExportOrImpotType(GlobalConfig.export.types, 2)
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
|
|
76
|
+
// 已废弃
|
|
77
|
+
export const globalConfs = new VXETableConfig()
|
|
76
78
|
|
|
77
79
|
export const v = 'v4'
|
|
78
80
|
|
|
81
|
+
export const setup = config
|
|
82
|
+
|
|
79
83
|
export const VXETable = {
|
|
80
84
|
v,
|
|
81
85
|
version: process.env.VUE_APP_VXE_TABLE_VERSION,
|
|
82
86
|
setup,
|
|
87
|
+
config,
|
|
83
88
|
interceptor,
|
|
84
89
|
renderer,
|
|
85
90
|
commands,
|
|
@@ -87,7 +92,6 @@ export const VXETable = {
|
|
|
87
92
|
validators,
|
|
88
93
|
menus,
|
|
89
94
|
hooks,
|
|
90
|
-
config,
|
|
91
95
|
use,
|
|
92
96
|
t,
|
|
93
97
|
_t
|
|
@@ -100,6 +104,6 @@ export * from './src/menus'
|
|
|
100
104
|
export * from './src/formats'
|
|
101
105
|
export * from './src/validators'
|
|
102
106
|
export * from './src/hooks'
|
|
103
|
-
export * from './src/
|
|
107
|
+
export * from './src/config'
|
|
104
108
|
|
|
105
109
|
export default VXETable
|
package/styles/button.scss
CHANGED
|
@@ -334,12 +334,14 @@ $btnThemeList: (
|
|
|
334
334
|
border-radius: var(--vxe-border-radius);
|
|
335
335
|
border: 1px solid var(--vxe-input-border-color);
|
|
336
336
|
box-shadow: 0 1px 6px rgba(0,0,0,.2);
|
|
337
|
-
& > .vxe-button
|
|
338
|
-
|
|
339
|
-
margin-top: 0.4em;
|
|
337
|
+
& > .vxe-button.type--text,
|
|
338
|
+
& > .vxe-button.type--button {
|
|
340
339
|
display: block;
|
|
341
340
|
width: 100%;
|
|
342
341
|
border: 0;
|
|
342
|
+
margin: 0.4em 0 0 0;
|
|
343
|
+
}
|
|
344
|
+
& > .vxe-button {
|
|
343
345
|
&.type--text {
|
|
344
346
|
padding: 2px 8px;
|
|
345
347
|
}
|
package/styles/form.scss
CHANGED
|
@@ -138,6 +138,20 @@
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
+
&.is--vertical {
|
|
142
|
+
.vxe-form--item-inner {
|
|
143
|
+
flex-direction: column;
|
|
144
|
+
align-items: initial;
|
|
145
|
+
.vxe-form--item-title {
|
|
146
|
+
height: 2em;
|
|
147
|
+
line-height: 2em;
|
|
148
|
+
padding-right: 0;
|
|
149
|
+
}
|
|
150
|
+
.vxe-form--item-title-content {
|
|
151
|
+
flex-grow: initial;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
141
155
|
&.is--span {
|
|
142
156
|
.vxe-default-input:not([type="submit"]):not([type="reset"]),
|
|
143
157
|
.vxe-default-textarea,
|
package/types/form-item.d.ts
CHANGED
|
@@ -54,6 +54,10 @@ export interface VxeFormItemProps {
|
|
|
54
54
|
* 是否显示标题
|
|
55
55
|
*/
|
|
56
56
|
showTitle?: VxeFormItemPropTypes.ShowTitle
|
|
57
|
+
/**
|
|
58
|
+
* 使用垂直布局
|
|
59
|
+
*/
|
|
60
|
+
vertical?: VxeFormItemPropTypes.Vertical
|
|
57
61
|
/**
|
|
58
62
|
* 给表单项附加 className
|
|
59
63
|
*/
|
|
@@ -121,6 +125,7 @@ export namespace VxeFormItemPropTypes {
|
|
|
121
125
|
export type TitleColon = VxeFormPropTypes.TitleColon
|
|
122
126
|
export type TitleAsterisk = VxeFormPropTypes.TitleAsterisk
|
|
123
127
|
export type ShowTitle = boolean
|
|
128
|
+
export type Vertical = boolean
|
|
124
129
|
|
|
125
130
|
interface ClassNameParams {
|
|
126
131
|
$form: VxeFormConstructor
|
package/types/form.d.ts
CHANGED
|
@@ -76,6 +76,7 @@ export namespace VxeFormPropTypes {
|
|
|
76
76
|
export type TitleColon = boolean
|
|
77
77
|
export type TitleAsterisk = boolean
|
|
78
78
|
export type TitleOverflow = boolean | 'ellipsis' | 'title' | 'tooltip' | '' | null
|
|
79
|
+
export type Vertical = boolean
|
|
79
80
|
|
|
80
81
|
interface ClassNameParams {
|
|
81
82
|
$form: VxeFormConstructor
|
|
@@ -128,6 +129,7 @@ export type VxeFormProps<D = any> = {
|
|
|
128
129
|
titleColon?: VxeFormPropTypes.TitleColon
|
|
129
130
|
titleAsterisk?: VxeFormPropTypes.TitleAsterisk
|
|
130
131
|
titleOverflow?: VxeFormPropTypes.TitleOverflow
|
|
132
|
+
vertical?: VxeFormPropTypes.Vertical
|
|
131
133
|
className?: VxeFormPropTypes.ClassName
|
|
132
134
|
readonly?: VxeFormPropTypes.Readonly
|
|
133
135
|
items?: VxeFormPropTypes.Items
|
|
@@ -218,6 +220,7 @@ export namespace VxeFormDefines {
|
|
|
218
220
|
titleSuffix: VxeFormItemPropTypes.TitleSuffix
|
|
219
221
|
titleOverflow: VxeFormItemPropTypes.TitleOverflow
|
|
220
222
|
showTitle: VxeFormItemPropTypes.ShowTitle
|
|
223
|
+
vertical: VxeFormItemPropTypes.Vertical
|
|
221
224
|
resetValue: VxeFormItemPropTypes.ResetValue
|
|
222
225
|
visibleMethod: VxeFormItemPropTypes.VisibleMethod
|
|
223
226
|
visible: VxeFormItemPropTypes.Visible
|
package/types/table.d.ts
CHANGED
|
@@ -833,17 +833,17 @@ export interface TableReactData<D = VxeTableDataRow> {
|
|
|
833
833
|
expandColumn: any
|
|
834
834
|
hasFixedColumn: boolean
|
|
835
835
|
// 已展开的行
|
|
836
|
-
rowExpandedMaps: Record<string, D>
|
|
836
|
+
rowExpandedMaps: Record<string, D | null>
|
|
837
837
|
// 懒加载中的展开行
|
|
838
|
-
rowExpandLazyLoadedMaps: Record<string, D>
|
|
838
|
+
rowExpandLazyLoadedMaps: Record<string, D | null>
|
|
839
839
|
// 树节点列信息
|
|
840
840
|
treeNodeColumn: any
|
|
841
841
|
// 已展开树节点
|
|
842
|
-
treeExpandedMaps: Record<string, D>
|
|
842
|
+
treeExpandedMaps: Record<string, D | null>
|
|
843
843
|
// 懒加载中的树节点的集合
|
|
844
|
-
treeExpandLazyLoadedMaps: Record<string, D>
|
|
844
|
+
treeExpandLazyLoadedMaps: Record<string, D | null>
|
|
845
845
|
// 树节点不确定状态的集合
|
|
846
|
-
treeIndeterminateMaps: Record<string, D>
|
|
846
|
+
treeIndeterminateMaps: Record<string, D | null>
|
|
847
847
|
// 合并单元格的对象集
|
|
848
848
|
mergeList: VxeTableDefines.MergeItem<D>[]
|
|
849
849
|
// 合并表尾数据的对象集
|
|
@@ -8,7 +8,7 @@ import { VxeGlobalFormats } from './formats'
|
|
|
8
8
|
import { VxeGlobalMenus } from './menus'
|
|
9
9
|
import { VxeGlobalValidators } from './validators'
|
|
10
10
|
import { VxeGlobalHooks } from './hooks'
|
|
11
|
-
import { VxeGlobalConfigMethod } from './
|
|
11
|
+
import { VxeGlobalConfigMethod } from './config'
|
|
12
12
|
|
|
13
13
|
/* eslint-disable no-use-before-define */
|
|
14
14
|
|
|
@@ -34,7 +34,7 @@ export type VxeGlobalI18n = (key: string, args?: any) => string
|
|
|
34
34
|
export type VxeGlobalTranslate = (key: string, args?: any) => string
|
|
35
35
|
export type VxeGlobalUse = (plugin: VXETablePluginObject, ...options: any[]) => VXETableCore
|
|
36
36
|
|
|
37
|
-
export const
|
|
37
|
+
export const config: VxeGlobalConfigMethod
|
|
38
38
|
export const interceptor: VxeGlobalInterceptor
|
|
39
39
|
export const renderer: VxeGlobalRenderer
|
|
40
40
|
export const commands: VxeGlobalCommands
|
|
@@ -46,11 +46,21 @@ export const modal: ModalController
|
|
|
46
46
|
export const saveFile: SaveFileFunction
|
|
47
47
|
export const readFile: ReadFileFunction
|
|
48
48
|
export const print: PrintFunction
|
|
49
|
-
export const config: VXETableConfig
|
|
50
49
|
export const t: VxeGlobalI18n
|
|
51
50
|
export const _t: VxeGlobalTranslate
|
|
52
51
|
export const use: VxeGlobalUse
|
|
53
52
|
|
|
53
|
+
/**
|
|
54
|
+
* 请使用 config
|
|
55
|
+
* @deprecated
|
|
56
|
+
*/
|
|
57
|
+
export const setup: VxeGlobalConfigMethod
|
|
58
|
+
/**
|
|
59
|
+
* 已废弃
|
|
60
|
+
* @deprecated
|
|
61
|
+
*/
|
|
62
|
+
export const globalConfs: VXETableConfig
|
|
63
|
+
|
|
54
64
|
export interface VXETablePluginObject {
|
|
55
65
|
install(vxetable: VXETableCore, ...options: any[]): void
|
|
56
66
|
[key: string]: any
|
|
@@ -62,11 +72,6 @@ export const v: VXETableVersion
|
|
|
62
72
|
|
|
63
73
|
export interface VXETableCore {
|
|
64
74
|
tooltip?: boolean
|
|
65
|
-
/**
|
|
66
|
-
* 已被 version 替换
|
|
67
|
-
* @deprecated
|
|
68
|
-
*/
|
|
69
|
-
v: VXETableVersion
|
|
70
75
|
/**
|
|
71
76
|
* 版本号
|
|
72
77
|
*/
|
|
@@ -74,7 +79,7 @@ export interface VXETableCore {
|
|
|
74
79
|
/**
|
|
75
80
|
* 设置全局参数/获取所有参数
|
|
76
81
|
*/
|
|
77
|
-
|
|
82
|
+
config: VxeGlobalConfigMethod
|
|
78
83
|
/**
|
|
79
84
|
* Table interceptor
|
|
80
85
|
*/
|
|
@@ -119,10 +124,6 @@ export interface VXETableCore {
|
|
|
119
124
|
* 打印
|
|
120
125
|
*/
|
|
121
126
|
print: PrintFunction
|
|
122
|
-
/**
|
|
123
|
-
* 读取内置配置
|
|
124
|
-
*/
|
|
125
|
-
config: VXETableConfig
|
|
126
127
|
/**
|
|
127
128
|
* 安装插件
|
|
128
129
|
* @param plugin
|
|
@@ -134,6 +135,22 @@ export interface VXETableCore {
|
|
|
134
135
|
*/
|
|
135
136
|
t: VxeGlobalI18n
|
|
136
137
|
_t: VxeGlobalTranslate
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* 读取内置配置
|
|
141
|
+
* @deprecated 已废弃
|
|
142
|
+
*/
|
|
143
|
+
globalConfs: VXETableConfig
|
|
144
|
+
/**
|
|
145
|
+
* 已被 version 替换
|
|
146
|
+
* @deprecated
|
|
147
|
+
*/
|
|
148
|
+
v: VXETableVersion
|
|
149
|
+
/**
|
|
150
|
+
* 请使用 config
|
|
151
|
+
* @deprecated
|
|
152
|
+
*/
|
|
153
|
+
setup: VxeGlobalConfigMethod
|
|
137
154
|
}
|
|
138
155
|
|
|
139
156
|
/**
|
|
@@ -148,6 +165,6 @@ export * from './formats'
|
|
|
148
165
|
export * from './menus'
|
|
149
166
|
export * from './validators'
|
|
150
167
|
export * from './hooks'
|
|
151
|
-
export * from './
|
|
168
|
+
export * from './config'
|
|
152
169
|
|
|
153
170
|
export default VXETable
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.setup=void 0;var _conf=_interopRequireDefault(require("./conf")),_xeUtils=_interopRequireDefault(require("xe-utils"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var setup=function(e){return _xeUtils.default.merge(_conf.default,e)};exports.setup=setup;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|