vxe-table 3.23.0-beta.6 → 3.23.0
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 +3 -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/export/mixin.js +10 -9
- package/es/table/style.css +12 -3
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +12 -3
- package/es/vxe-table/style.min.css +1 -1
- package/lib/grid/src/grid.js +5 -0
- 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 +27 -11
- 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/export/mixin.js +19 -9
- package/lib/table/module/export/mixin.min.js +1 -1
- package/lib/table/style/style.css +12 -3
- package/lib/table/style/style.min.css +1 -1
- 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/vxe-table/style/style.css +12 -3
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/grid/src/grid.ts +2 -0
- package/packages/table/module/export/mixin.ts +10 -9
- package/styles/components/table.scss +11 -2
- /package/es/{iconfont.1787300499401.ttf → iconfont.1787473155426.ttf} +0 -0
- /package/es/{iconfont.1787300499401.woff → iconfont.1787473155426.woff} +0 -0
- /package/es/{iconfont.1787300499401.woff2 → iconfont.1787473155426.woff2} +0 -0
- /package/lib/{iconfont.1787300499401.ttf → iconfont.1787473155426.ttf} +0 -0
- /package/lib/{iconfont.1787300499401.woff → iconfont.1787473155426.woff} +0 -0
- /package/lib/{iconfont.1787300499401.woff2 → iconfont.1787473155426.woff2} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vxe-table",
|
|
3
|
-
"version": "3.23.0
|
|
3
|
+
"version": "3.23.0",
|
|
4
4
|
"description": "A PC-end table component based on Vxe UI, supporting copy-paste, data pivot table, and high-performance virtual list table solution.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"update": "npm install --legacy-peer-deps",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"vue-i18n": "^8.15.1",
|
|
66
66
|
"vue-router": "^3.5.1",
|
|
67
67
|
"vue-template-compiler": "2.6.14",
|
|
68
|
-
"vxe-pc-ui": "3.17.
|
|
68
|
+
"vxe-pc-ui": "3.17.14"
|
|
69
69
|
},
|
|
70
70
|
"vetur": {
|
|
71
71
|
"tags": "helper/vetur/tags.json",
|
|
@@ -1076,6 +1076,8 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
1076
1076
|
.then(rest => {
|
|
1077
1077
|
reactData.tableLoading = false
|
|
1078
1078
|
if (aSaveMethod) {
|
|
1079
|
+
aSaveMethod({ ...commitParams, response: rest, status: 'success' }, ...args)
|
|
1080
|
+
} else {
|
|
1079
1081
|
$xeTable.clearPendingRow()
|
|
1080
1082
|
if (isRespMsg) {
|
|
1081
1083
|
if (VxeUI.modal) {
|
|
@@ -1107,7 +1107,7 @@ function handleImport ($xeTable: VxeTableConstructor & VxeTablePrivateMethods, c
|
|
|
1107
1107
|
}
|
|
1108
1108
|
VxeUI.modal.message({ content: getI18n('vxe.error.impFields'), status: 'error' })
|
|
1109
1109
|
if (_importReject) {
|
|
1110
|
-
_importReject({ status: false })
|
|
1110
|
+
_importReject({ status: false, msg: 'field mismatching' })
|
|
1111
1111
|
}
|
|
1112
1112
|
}
|
|
1113
1113
|
}
|
|
@@ -1128,7 +1128,7 @@ function handleFileImport ($xeTable: VxeTableConstructor & VxeTablePrivateMethod
|
|
|
1128
1128
|
}
|
|
1129
1129
|
VxeUI.modal.message({ content: getI18n('vxe.error.notType', [type]), status: 'error' })
|
|
1130
1130
|
}
|
|
1131
|
-
const params = { status: false }
|
|
1131
|
+
const params = { status: false, msg: 'type error' }
|
|
1132
1132
|
return Promise.reject(params)
|
|
1133
1133
|
}
|
|
1134
1134
|
|
|
@@ -1163,7 +1163,7 @@ function handleFileImport ($xeTable: VxeTableConstructor & VxeTablePrivateMethod
|
|
|
1163
1163
|
const reader = new FileReader()
|
|
1164
1164
|
reader.onerror = () => {
|
|
1165
1165
|
errLog('vxe.error.notType', [type])
|
|
1166
|
-
_importReject({ status: false })
|
|
1166
|
+
_importReject({ status: false, msg: 'reading file error' })
|
|
1167
1167
|
}
|
|
1168
1168
|
reader.onload = (e: any) => {
|
|
1169
1169
|
handleImport($xeTable, e.target.result, options)
|
|
@@ -1174,7 +1174,7 @@ function handleFileImport ($xeTable: VxeTableConstructor & VxeTablePrivateMethod
|
|
|
1174
1174
|
} else {
|
|
1175
1175
|
// 不支持的浏览器
|
|
1176
1176
|
errLog('vxe.error.notExp')
|
|
1177
|
-
_importResolve({ status:
|
|
1177
|
+
_importResolve({ status: false, msg: 'unsupported browser' })
|
|
1178
1178
|
}
|
|
1179
1179
|
})
|
|
1180
1180
|
|
|
@@ -1653,7 +1653,7 @@ export default {
|
|
|
1653
1653
|
if (['xlsx', 'pdf'].includes(type)) {
|
|
1654
1654
|
warnLog('vxe.error.reqPlugin', [3, 'plugin-export-xlsx'])
|
|
1655
1655
|
}
|
|
1656
|
-
const params = { status: false }
|
|
1656
|
+
const params = { status: false, msg: 'type error' }
|
|
1657
1657
|
return Promise.reject(params)
|
|
1658
1658
|
}
|
|
1659
1659
|
|
|
@@ -1662,7 +1662,7 @@ export default {
|
|
|
1662
1662
|
const beRest = beforeExportMethod({ options: handleOptions, $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt })
|
|
1663
1663
|
if (XEUtils.isBoolean(beRest)) {
|
|
1664
1664
|
if (!beRest) {
|
|
1665
|
-
const params = { status: false }
|
|
1665
|
+
const params = { status: false, msg: 'before prevent' }
|
|
1666
1666
|
return Promise.reject(params)
|
|
1667
1667
|
}
|
|
1668
1668
|
} else {
|
|
@@ -1778,7 +1778,7 @@ export default {
|
|
|
1778
1778
|
const biRest = beforeImportMethod({ options: opts, $table: $xeTable })
|
|
1779
1779
|
if (XEUtils.isBoolean(biRest)) {
|
|
1780
1780
|
if (!biRest) {
|
|
1781
|
-
const params = { status: false }
|
|
1781
|
+
const params = { status: false, mas: 'before prevent' }
|
|
1782
1782
|
return Promise.reject(params)
|
|
1783
1783
|
}
|
|
1784
1784
|
} else {
|
|
@@ -1801,7 +1801,7 @@ export default {
|
|
|
1801
1801
|
const biRest = beforeImportMethod({ options: opts, $table: $xeTable })
|
|
1802
1802
|
if (XEUtils.isBoolean(biRest)) {
|
|
1803
1803
|
if (!biRest) {
|
|
1804
|
-
const params = { status: false }
|
|
1804
|
+
const params = { status: false, mas: 'before prevent' }
|
|
1805
1805
|
return Promise.reject(params)
|
|
1806
1806
|
}
|
|
1807
1807
|
} else {
|
|
@@ -1963,7 +1963,8 @@ export default {
|
|
|
1963
1963
|
)
|
|
1964
1964
|
}
|
|
1965
1965
|
} else {
|
|
1966
|
-
|
|
1966
|
+
errLog('vxe.error.reqComp', ['vxe-print'])
|
|
1967
|
+
const e = { status: false, msg: 'print not exist' }
|
|
1967
1968
|
reject(e)
|
|
1968
1969
|
}
|
|
1969
1970
|
})
|
|
@@ -2165,8 +2165,7 @@ $btnThemeList: (
|
|
|
2165
2165
|
}
|
|
2166
2166
|
&.col--cs-height,
|
|
2167
2167
|
&.col--rs-height,
|
|
2168
|
-
&.col--auto-height
|
|
2169
|
-
&.col--max-height {
|
|
2168
|
+
&.col--auto-height {
|
|
2170
2169
|
overflow: hidden;
|
|
2171
2170
|
&.col--tree-node,
|
|
2172
2171
|
&.col--valid-error {
|
|
@@ -2176,6 +2175,16 @@ $btnThemeList: (
|
|
|
2176
2175
|
overflow: hidden;
|
|
2177
2176
|
}
|
|
2178
2177
|
}
|
|
2178
|
+
&.col--max-height {
|
|
2179
|
+
overflow: hidden;
|
|
2180
|
+
&.col--tree-node,
|
|
2181
|
+
&.col--valid-error {
|
|
2182
|
+
overflow: unset;
|
|
2183
|
+
}
|
|
2184
|
+
& > .vxe-cell {
|
|
2185
|
+
overflow: auto;
|
|
2186
|
+
}
|
|
2187
|
+
}
|
|
2179
2188
|
& > .vxe-cell {
|
|
2180
2189
|
display: flex;
|
|
2181
2190
|
flex-direction: row;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|