vxe-table 3.7.0-beta.19 → 3.7.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/lib/export/src/mixin.js +5 -5
- package/lib/export/src/mixin.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.css +1 -1
- package/lib/index.umd.js +45 -18
- 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/cell.js +3 -1
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/table.js +6 -6
- 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 -12
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/src/commands.js +3 -3
- package/lib/v-x-e-table/src/commands.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/v-x-e-table/src/formats.js +3 -3
- package/lib/v-x-e-table/src/formats.min.js +1 -1
- package/lib/v-x-e-table/src/menus.js +3 -3
- package/lib/v-x-e-table/src/menus.min.js +1 -1
- package/package.json +1 -1
- package/packages/export/src/mixin.js +5 -5
- package/packages/form/src/form-config-item.js +4 -2
- package/packages/form/src/form-item.js +8 -2
- package/packages/form/src/form.js +4 -0
- package/packages/table/src/cell.js +3 -1
- package/packages/table/src/table.js +4 -4
- package/packages/v-x-e-table/index.js +7 -4
- package/packages/v-x-e-table/src/commands.js +3 -3
- package/packages/v-x-e-table/src/{setup.js → config.js} +2 -2
- package/packages/v-x-e-table/src/formats.js +3 -3
- package/packages/v-x-e-table/src/menus.js +3 -3
- package/styles/form.scss +14 -0
- package/types/v-x-e-table/index.d.ts +21 -9
- package/lib/v-x-e-table/src/setup.min.js +0 -1
- /package/lib/icon/style/{iconfont.1693905133438.ttf → iconfont.1694565617502.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1693905133438.woff → iconfont.1694565617502.woff} +0 -0
- /package/lib/icon/style/{iconfont.1693905133438.woff2 → iconfont.1694565617502.woff2} +0 -0
- /package/lib/{iconfont.1693905133438.ttf → iconfont.1694565617502.ttf} +0 -0
- /package/lib/{iconfont.1693905133438.woff → iconfont.1694565617502.woff} +0 -0
- /package/lib/{iconfont.1693905133438.woff2 → iconfont.1694565617502.woff2} +0 -0
- /package/types/v-x-e-table/{setup.d.ts → config.d.ts} +0 -0
|
@@ -803,11 +803,11 @@ export default {
|
|
|
803
803
|
// }
|
|
804
804
|
// 检查导入导出类型,如果自定义导入导出方法,则不校验类型
|
|
805
805
|
const { exportConfig, exportOpts, importConfig, importOpts } = this
|
|
806
|
-
if (importConfig && importOpts.types && !importOpts.importMethod && !XEUtils.includeArrays(VXETable.
|
|
807
|
-
warnLog('vxe.error.errProp', [`export-config.types=${importOpts.types.join(',')}`, importOpts.types.filter(type => XEUtils.includes(VXETable.
|
|
806
|
+
if (importConfig && importOpts.types && !importOpts.importMethod && !XEUtils.includeArrays(VXETable.globalConfs.importTypes, importOpts.types)) {
|
|
807
|
+
warnLog('vxe.error.errProp', [`export-config.types=${importOpts.types.join(',')}`, importOpts.types.filter(type => XEUtils.includes(VXETable.globalConfs.importTypes, type)).join(',') || VXETable.globalConfs.importTypes.join(',')])
|
|
808
808
|
}
|
|
809
|
-
if (exportConfig && exportOpts.types && !exportOpts.exportMethod && !XEUtils.includeArrays(VXETable.
|
|
810
|
-
warnLog('vxe.error.errProp', [`export-config.types=${exportOpts.types.join(',')}`, exportOpts.types.filter(type => XEUtils.includes(VXETable.
|
|
809
|
+
if (exportConfig && exportOpts.types && !exportOpts.exportMethod && !XEUtils.includeArrays(VXETable.globalConfs.exportTypes, exportOpts.types)) {
|
|
810
|
+
warnLog('vxe.error.errProp', [`export-config.types=${exportOpts.types.join(',')}`, exportOpts.types.filter(type => XEUtils.includes(VXETable.globalConfs.exportTypes, type)).join(',') || VXETable.globalConfs.exportTypes.join(',')])
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
813
|
|
|
@@ -6,7 +6,7 @@ import { commands } from './src/commands'
|
|
|
6
6
|
import { menus } from './src/menus'
|
|
7
7
|
import { formats } from './src/formats'
|
|
8
8
|
import { validators } from './src/validators'
|
|
9
|
-
import {
|
|
9
|
+
import { config } from './src/config'
|
|
10
10
|
import { UtilTools } from '../tools/utils'
|
|
11
11
|
import { errLog } from '../tools/log'
|
|
12
12
|
|
|
@@ -76,7 +76,9 @@ class VXETableConfig {
|
|
|
76
76
|
return getExportOrImpotType(GlobalConfig.export.types, 2)
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
|
|
79
|
+
|
|
80
|
+
// 已废弃
|
|
81
|
+
export const globalConfs = new VXETableConfig()
|
|
80
82
|
|
|
81
83
|
export function t (key, args) {
|
|
82
84
|
return GlobalConfig.i18n(key, args)
|
|
@@ -87,6 +89,7 @@ export function _t (key, args) {
|
|
|
87
89
|
}
|
|
88
90
|
|
|
89
91
|
export const v = 'v3'
|
|
92
|
+
export const setup = config
|
|
90
93
|
|
|
91
94
|
export const VXETable = {
|
|
92
95
|
v,
|
|
@@ -94,13 +97,13 @@ export const VXETable = {
|
|
|
94
97
|
reg,
|
|
95
98
|
use,
|
|
96
99
|
setup,
|
|
100
|
+
config,
|
|
97
101
|
interceptor,
|
|
98
102
|
renderer,
|
|
99
103
|
commands,
|
|
100
104
|
formats,
|
|
101
105
|
menus,
|
|
102
106
|
validators,
|
|
103
|
-
config,
|
|
104
107
|
t,
|
|
105
108
|
_t
|
|
106
109
|
}
|
|
@@ -110,6 +113,6 @@ export * from './src/renderer'
|
|
|
110
113
|
export * from './src/commands'
|
|
111
114
|
export * from './src/menus'
|
|
112
115
|
export * from './src/formats'
|
|
113
|
-
export * from './src/
|
|
116
|
+
export * from './src/config'
|
|
114
117
|
|
|
115
118
|
export default VXETable
|
|
@@ -21,9 +21,9 @@ class VXECommandsStore {
|
|
|
21
21
|
const conf = this.store[name]
|
|
22
22
|
// 兼容
|
|
23
23
|
if (XEUtils.isFunction(render)) {
|
|
24
|
-
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
25
|
-
|
|
26
|
-
}
|
|
24
|
+
// if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
25
|
+
// warnLog('vxe.error.delProp', ['commands -> callback', 'commandMethod'])
|
|
26
|
+
// }
|
|
27
27
|
render = {
|
|
28
28
|
commandMethod: render
|
|
29
29
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import GlobalConfig from '
|
|
1
|
+
import GlobalConfig from './conf'
|
|
2
2
|
import XEUtils from 'xe-utils'
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* 全局参数设置
|
|
6
6
|
*/
|
|
7
|
-
export function
|
|
7
|
+
export function config (options) {
|
|
8
8
|
return XEUtils.merge(GlobalConfig, options)
|
|
9
9
|
}
|
|
@@ -21,9 +21,9 @@ class VXEFormatsStore {
|
|
|
21
21
|
const conf = this.store[name]
|
|
22
22
|
// 兼容
|
|
23
23
|
if (XEUtils.isFunction(render)) {
|
|
24
|
-
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
25
|
-
|
|
26
|
-
}
|
|
24
|
+
// if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
25
|
+
// warnLog('vxe.error.delProp', ['formats -> callback', 'cellFormatMethod'])
|
|
26
|
+
// }
|
|
27
27
|
render = {
|
|
28
28
|
cellFormatMethod: render
|
|
29
29
|
}
|
|
@@ -21,9 +21,9 @@ class VXEMenusStore {
|
|
|
21
21
|
const conf = this.store[name]
|
|
22
22
|
// 兼容
|
|
23
23
|
if (XEUtils.isFunction(render)) {
|
|
24
|
-
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
25
|
-
|
|
26
|
-
}
|
|
24
|
+
// if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
25
|
+
// warnLog('vxe.error.delProp', ['menus -> callback', 'menuMethod'])
|
|
26
|
+
// }
|
|
27
27
|
render = {
|
|
28
28
|
menuMethod: render
|
|
29
29
|
}
|
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,
|
|
@@ -9,7 +9,7 @@ import { VxeGlobalCommands } from './commands'
|
|
|
9
9
|
import { VxeGlobalFormats } from './formats'
|
|
10
10
|
import { VxeGlobalMenus } from './menus'
|
|
11
11
|
import { VxeGlobalValidators } from './validators'
|
|
12
|
-
import { VxeGlobalConfigMethod } from './
|
|
12
|
+
import { VxeGlobalConfigMethod } from './config'
|
|
13
13
|
|
|
14
14
|
/* eslint-disable no-use-before-define */
|
|
15
15
|
|
|
@@ -17,7 +17,7 @@ export type VxeGlobalI18n = (key: string, args?: any) => number | string;
|
|
|
17
17
|
export type VxeGlobalTranslate = (key: string, args?: any) => string;
|
|
18
18
|
export type VxeGlobalUse = (plugin: VXETablePluginObject, ...options: any[]) => VXETableCore;
|
|
19
19
|
|
|
20
|
-
export const
|
|
20
|
+
export const config: VxeGlobalConfigMethod
|
|
21
21
|
export const interceptor: VxeGlobalInterceptor
|
|
22
22
|
export const renderer: VxeGlobalRenderer
|
|
23
23
|
export const commands: VxeGlobalCommands
|
|
@@ -31,6 +31,12 @@ export const t: VxeGlobalI18n
|
|
|
31
31
|
export const _t: VxeGlobalTranslate
|
|
32
32
|
export const use: VxeGlobalUse
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* 请使用 config
|
|
36
|
+
* @deprecated
|
|
37
|
+
*/
|
|
38
|
+
export const setup: VxeGlobalConfigMethod
|
|
39
|
+
|
|
34
40
|
export interface VXETablePluginObject {
|
|
35
41
|
install(vxetable: VXETableCore, ...options: any[]): void;
|
|
36
42
|
[key: string]: any;
|
|
@@ -41,11 +47,6 @@ export type VXETableVersion = 'v1' | 'v2' | 'v3' | 'v4'
|
|
|
41
47
|
export const v: VXETableVersion
|
|
42
48
|
|
|
43
49
|
export interface VXETableCore {
|
|
44
|
-
/**
|
|
45
|
-
* 已被 version 替换
|
|
46
|
-
* @deprecated
|
|
47
|
-
*/
|
|
48
|
-
v: VXETableVersion;
|
|
49
50
|
/**
|
|
50
51
|
* 版本号
|
|
51
52
|
*/
|
|
@@ -53,7 +54,7 @@ export interface VXETableCore {
|
|
|
53
54
|
/**
|
|
54
55
|
* 设置全局参数/获取所有参数
|
|
55
56
|
*/
|
|
56
|
-
|
|
57
|
+
config: VxeGlobalConfigMethod;
|
|
57
58
|
/**
|
|
58
59
|
* Table interceptor
|
|
59
60
|
*/
|
|
@@ -105,6 +106,17 @@ export interface VXETableCore {
|
|
|
105
106
|
*/
|
|
106
107
|
t: VxeGlobalI18n;
|
|
107
108
|
_t: VxeGlobalTranslate;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* 已被 version 替换
|
|
112
|
+
* @deprecated
|
|
113
|
+
*/
|
|
114
|
+
v: VXETableVersion;
|
|
115
|
+
/**
|
|
116
|
+
* 请使用 config
|
|
117
|
+
* @deprecated
|
|
118
|
+
*/
|
|
119
|
+
setup: VxeGlobalConfigMethod;
|
|
108
120
|
}
|
|
109
121
|
|
|
110
122
|
/**
|
|
@@ -118,6 +130,6 @@ export * from './commands'
|
|
|
118
130
|
export * from './formats'
|
|
119
131
|
export * from './menus'
|
|
120
132
|
export * from './validators'
|
|
121
|
-
export * from './
|
|
133
|
+
export * from './config'
|
|
122
134
|
|
|
123
135
|
export default VXETable
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.setup=setup;var _conf=_interopRequireDefault(require("../../v-x-e-table/src/conf")),_xeUtils=_interopRequireDefault(require("xe-utils"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function setup(e){return _xeUtils.default.merge(_conf.default,e)}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|