vxe-table 3.7.0-beta.6 → 3.7.0-beta.8
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/README.md +6 -9
- package/lib/filter/src/mixin.js +13 -7
- package/lib/filter/src/mixin.min.js +1 -1
- package/lib/form/src/form.js +24 -4
- package/lib/form/src/form.min.js +1 -1
- package/lib/grid/src/grid.js +7 -3
- package/lib/grid/src/grid.min.js +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 +352 -89
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +6 -1
- package/lib/input/src/input.min.js +1 -1
- package/lib/locale/lang/en-US.js +8 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +8 -0
- package/lib/locale/lang/es-ES.js +8 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +8 -0
- package/lib/locale/lang/ja-JP.d.ts +1 -1
- package/lib/locale/lang/ja-JP.js +8 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +8 -0
- package/lib/locale/lang/pt-BR.d.ts +8 -0
- package/lib/locale/lang/pt-BR.js +330 -0
- package/lib/locale/lang/pt-BR.min.js +1 -0
- package/lib/locale/lang/pt-BR.umd.js +344 -0
- package/lib/locale/lang/zh-CN.d.ts +1 -1
- package/lib/locale/lang/zh-CN.js +8 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +8 -0
- package/lib/locale/lang/zh-HK.d.ts +1 -1
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +8 -0
- package/lib/locale/lang/zh-MO.d.ts +1 -1
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +8 -0
- package/lib/locale/lang/zh-TC.d.ts +1 -1
- package/lib/locale/lang/zh-TC.js +8 -0
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +8 -0
- package/lib/locale/lang/zh-TW.d.ts +1 -1
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +8 -0
- package/lib/menu/src/mixin.js +3 -3
- package/lib/menu/src/mixin.min.js +1 -1
- package/lib/select/src/select.js +6 -1
- package/lib/select/src/select.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/cell.js +2 -0
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/columnInfo.js +6 -6
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/methods.js +43 -16
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +11 -24
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +2 -2
- package/lib/table/style/style.min.css +1 -1
- package/lib/textarea/src/textarea.js +6 -1
- package/lib/textarea/src/textarea.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +18 -6
- package/lib/toolbar/src/toolbar.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 +3 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/src/commands.js +58 -2
- package/lib/v-x-e-table/src/commands.min.js +1 -1
- package/lib/v-x-e-table/src/conf.js +4 -1
- package/lib/v-x-e-table/src/conf.min.js +1 -1
- package/lib/v-x-e-table/src/formats.js +58 -2
- package/lib/v-x-e-table/src/formats.min.js +1 -1
- package/lib/v-x-e-table/src/menus.js +58 -2
- package/lib/v-x-e-table/src/menus.min.js +1 -1
- package/lib/v-x-e-table/src/renderer.js +10 -0
- package/lib/v-x-e-table/src/renderer.min.js +1 -1
- package/lib/v-x-e-table/src/store.js +5 -2
- package/lib/v-x-e-table/src/store.min.js +1 -1
- package/lib/v-x-e-table/src/validators.js +15 -0
- package/lib/v-x-e-table/src/validators.min.js +1 -0
- package/lib/validator/src/mixin.js +26 -4
- package/lib/validator/src/mixin.min.js +1 -1
- package/package.json +2 -2
- package/packages/filter/src/mixin.js +5 -1
- package/packages/form/src/form.js +24 -5
- package/packages/grid/src/grid.js +7 -3
- package/packages/input/src/input.js +4 -1
- package/packages/locale/lang/en-US.js +8 -0
- package/packages/locale/lang/es-ES.js +8 -0
- package/packages/locale/lang/ja-JP.d.ts +1 -1
- package/packages/locale/lang/ja-JP.js +8 -0
- package/packages/locale/lang/pt-BR.d.ts +8 -0
- package/packages/locale/lang/pt-BR.js +323 -0
- package/packages/locale/lang/zh-CN.d.ts +1 -1
- package/packages/locale/lang/zh-CN.js +8 -0
- package/packages/locale/lang/zh-HK.d.ts +1 -1
- package/packages/locale/lang/zh-MO.d.ts +1 -1
- package/packages/locale/lang/zh-TC.d.ts +1 -1
- package/packages/locale/lang/zh-TC.js +8 -0
- package/packages/locale/lang/zh-TW.d.ts +1 -1
- package/packages/menu/src/mixin.js +3 -3
- package/packages/select/src/select.js +4 -1
- package/packages/table/src/cell.js +2 -0
- package/packages/table/src/columnInfo.js +6 -6
- package/packages/table/src/methods.js +36 -15
- package/packages/table/src/table.js +5 -1
- package/packages/textarea/src/textarea.js +4 -1
- package/packages/toolbar/src/toolbar.js +18 -6
- package/packages/v-x-e-table/index.js +2 -0
- package/packages/v-x-e-table/src/commands.js +48 -2
- package/packages/v-x-e-table/src/conf.js +4 -1
- package/packages/v-x-e-table/src/formats.js +48 -2
- package/packages/v-x-e-table/src/menus.js +48 -2
- package/packages/v-x-e-table/src/renderer.js +11 -1
- package/packages/v-x-e-table/src/store.js +4 -2
- package/packages/v-x-e-table/src/validators.js +7 -0
- package/packages/validator/src/mixin.js +25 -4
- package/styles/all.scss +30 -0
- package/styles/css-variable.scss +272 -0
- package/styles/cssvar.scss +2 -275
- package/styles/index.scss +2 -0
- package/styles/modules.scss +4 -1
- package/styles/table.scss +4 -4
- package/styles/tooltip.scss +2 -2
- package/styles/variable.scss +1 -4
- package/types/form.d.ts +14 -12
- package/types/table.d.ts +4 -0
- package/types/v-x-e-table/commands.d.ts +21 -13
- package/types/v-x-e-table/formats.d.ts +19 -12
- package/types/v-x-e-table/index.d.ts +7 -1
- package/types/v-x-e-table/menus.d.ts +17 -6
- package/types/v-x-e-table/validators.d.ts +30 -0
- package/types/validator.d.ts +15 -4
- /package/lib/icon/style/{iconfont.1689639571797.ttf → iconfont.1690504677290.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1689639571797.woff → iconfont.1690504677290.woff} +0 -0
- /package/lib/icon/style/{iconfont.1689639571797.woff2 → iconfont.1690504677290.woff2} +0 -0
- /package/lib/{iconfont.1689639571797.ttf → iconfont.1690504677290.ttf} +0 -0
- /package/lib/{iconfont.1689639571797.woff → iconfont.1690504677290.woff} +0 -0
- /package/lib/{iconfont.1689639571797.woff2 → iconfont.1690504677290.woff2} +0 -0
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
vxe: {
|
|
3
|
+
base: {
|
|
4
|
+
pleaseInput: 'Please input',
|
|
5
|
+
pleaseSelect: 'Select'
|
|
6
|
+
},
|
|
3
7
|
loading: {
|
|
4
8
|
text: 'Loading...'
|
|
5
9
|
},
|
|
@@ -19,6 +23,10 @@ export default {
|
|
|
19
23
|
errProp: 'Unsupported parameter "{0}", possibly "{1}".',
|
|
20
24
|
colRepet: 'column.{0}="{0}" is duplicated, which may make some features unusable',
|
|
21
25
|
notFunc: 'method "{0}" not exist.',
|
|
26
|
+
errFunc: 'The argument "{0}" is not a method',
|
|
27
|
+
notValidators: 'Global validators "{0}" no existe.',
|
|
28
|
+
notFormats: 'Global formats "{0}" no existe.',
|
|
29
|
+
notCommands: 'Global commands "{0}" no existe.',
|
|
22
30
|
notSlot: 'slot "{0}" does not exist',
|
|
23
31
|
noTree: 'The tree structure does not support "{0}".',
|
|
24
32
|
notProp: 'Unsupported parameters "{0}"',
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
vxe: {
|
|
3
|
+
base: {
|
|
4
|
+
pleaseInput: 'Please input',
|
|
5
|
+
pleaseSelect: 'Select'
|
|
6
|
+
},
|
|
3
7
|
loading: {
|
|
4
8
|
text: 'Cargando...'
|
|
5
9
|
},
|
|
@@ -19,6 +23,10 @@ export default {
|
|
|
19
23
|
errProp: 'Parámetro no compatible "{0}", posiblemente "{1}".',
|
|
20
24
|
colRepet: 'columna.{0}="{0}" está duplicado, lo que puede hacer que algunas funciones sean inutilizables',
|
|
21
25
|
notFunc: 'El método "{0}" no existe.',
|
|
26
|
+
errFunc: 'The argument "{0}" is not a method',
|
|
27
|
+
notValidators: 'Global validators "{0}" no existe.',
|
|
28
|
+
notFormats: 'Global formats "{0}" no existe.',
|
|
29
|
+
notCommands: 'Global commands "{0}" no existe.',
|
|
22
30
|
notSlot: 'La ranura "{0}" no existe.',
|
|
23
31
|
noTree: 'La estructura de árbol no soporta "{0}".',
|
|
24
32
|
notProp: 'Parámetros no compatibles "{0}"',
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
vxe: {
|
|
3
|
+
base: {
|
|
4
|
+
pleaseInput: 'Please input',
|
|
5
|
+
pleaseSelect: 'Select'
|
|
6
|
+
},
|
|
3
7
|
loading: {
|
|
4
8
|
text: 'Loading...'
|
|
5
9
|
},
|
|
@@ -19,6 +23,10 @@ export default {
|
|
|
19
23
|
errProp: 'サポートされていないパラメーター "{0}","{1}" の可能性があります',
|
|
20
24
|
colRepet: 'column.{0}="{0}" が重複しているため、機能が使えなくなることがあります。',
|
|
21
25
|
notFunc: 'method "{0}" はありません',
|
|
26
|
+
errFunc: 'The argument "{0}" is not a method',
|
|
27
|
+
notValidators: 'Global validators "{0}" no existe.',
|
|
28
|
+
notFormats: 'Global formats "{0}" no existe.',
|
|
29
|
+
notCommands: 'Global commands "{0}" no existe.',
|
|
22
30
|
notSlot: 'slot "{0}" はありません',
|
|
23
31
|
noTree: 'Tree structureは "{0}" をサポートしていません',
|
|
24
32
|
notProp: 'サポートされていないパラメータ "{0}"',
|
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
vxe: {
|
|
3
|
+
base: {
|
|
4
|
+
pleaseInput: 'Por favor, insira',
|
|
5
|
+
pleaseSelect: 'Selecione'
|
|
6
|
+
},
|
|
7
|
+
loading: {
|
|
8
|
+
text: 'Carregando...'
|
|
9
|
+
},
|
|
10
|
+
error: {
|
|
11
|
+
groupFixed: 'Se você estiver usando cabeçalhos de grupo, as colunas fixas devem ser definidas por grupo.',
|
|
12
|
+
groupMouseRange: 'Agrupar cabeçalhos e "{0}" não podem ser usados ao mesmo tempo, o que pode causar erros.',
|
|
13
|
+
groupTag: 'O cabeçalho da coluna de agrupamento deve usar "{0}" em vez de "{1}", o que pode causar erros.',
|
|
14
|
+
scrollErrProp: 'O parâmetro "{0}" não é suportado quando a rolagem virtual está habilitada.',
|
|
15
|
+
errConflicts: 'O argumento "{0}" entra em conflito com "{1}"',
|
|
16
|
+
unableInsert: 'Não é possível inserir na localização especificada.',
|
|
17
|
+
useErr: 'Erro ao instalar o módulo "{0}", possivelmente na ordem errada, os módulos dependentes precisam ser instalados antes da Tabela.',
|
|
18
|
+
barUnableLink: 'A barra de ferramentas não pode ser associada à tabela.',
|
|
19
|
+
expandContent: 'O slot de linha expandida deve ser "content", verifique se está correto.',
|
|
20
|
+
reqModule: 'requerir o módulo "{0}".',
|
|
21
|
+
reqProp: 'Faltando o parâmetro necessário "{0}", o que pode causar um erro.',
|
|
22
|
+
emptyProp: 'A propriedade "{0}" não pode estar vazia.',
|
|
23
|
+
errProp: 'Parâmetro não suportado "{0}", possivelmente "{1}".',
|
|
24
|
+
colRepet: 'column.{0}="{0}" está duplicado, o que pode tornar algumas funcionalidades inutilizáveis.',
|
|
25
|
+
notFunc: 'método "{0}" não existe.',
|
|
26
|
+
errFunc: 'The argument "{0}" is not a method',
|
|
27
|
+
notValidators: 'Validadores globais "{0}" não existem.',
|
|
28
|
+
notFormats: 'Formatos globais "{0}" não existem.',
|
|
29
|
+
notCommands: 'Comandos globais "{0}" não existem.',
|
|
30
|
+
notSlot: 'slot "{0}" não existe',
|
|
31
|
+
noTree: 'A estrutura de árvore não suporta "{0}".',
|
|
32
|
+
notProp: 'Parâmetros não suportados "{0}"',
|
|
33
|
+
checkProp: 'A caixa de seleção pode travar quando a quantidade de dados é muito grande, é recomendado definir o parâmetro "{0}" para aumentar a velocidade de renderização ',
|
|
34
|
+
coverProp: 'O parâmetro "{1}" para "{0}" está sendo substituído. Isso pode causar um erro',
|
|
35
|
+
delFunc: 'A função "{0}" está obsoleta, por favor, use "{1}".',
|
|
36
|
+
delProp: 'A propriedade "{0}" está obsoleta, por favor, use "{1}".',
|
|
37
|
+
delEvent: 'O evento "{0}" está obsoleto, por favor, use "{1}".',
|
|
38
|
+
removeProp: 'A propriedade "{0}" está obsoleta e não é recomendada, o que pode causar um erro.',
|
|
39
|
+
errFormat: 'O conteúdo formatado global deve ser definido com "VXETable.formats". Montar "formatter={0}" não é recomendado.',
|
|
40
|
+
notType: 'Tipos de arquivo não suportados "{0}"',
|
|
41
|
+
notExp: 'O navegador não suporta importação/exportação.',
|
|
42
|
+
impFields: 'Falha na importação, verifique se o nome do campo e o formato dos dados estão corretos.',
|
|
43
|
+
treeNotImp: 'A tabela de árvore não suporta importação.'
|
|
44
|
+
},
|
|
45
|
+
renderer: {
|
|
46
|
+
search: 'Buscar',
|
|
47
|
+
cases: {
|
|
48
|
+
equal: 'Igual',
|
|
49
|
+
unequal: 'Não igual',
|
|
50
|
+
gt: 'Maior que',
|
|
51
|
+
ge: 'Maior ou igual a',
|
|
52
|
+
lt: 'Menor que',
|
|
53
|
+
le: 'Menor ou igual a',
|
|
54
|
+
begin: 'Começa com',
|
|
55
|
+
notbegin: 'Não começa com',
|
|
56
|
+
endin: 'Termina com',
|
|
57
|
+
notendin: 'Não termina com',
|
|
58
|
+
include: 'Inclui',
|
|
59
|
+
exclude: 'Exclusivo',
|
|
60
|
+
between: 'Entre',
|
|
61
|
+
custom: 'Filtro personalizado',
|
|
62
|
+
insensitive: 'Sem diferenciação de maiúsculas e minúsculas',
|
|
63
|
+
isSensitive: 'Diferenciação de maiúsculas e minúsculas'
|
|
64
|
+
},
|
|
65
|
+
combination: {
|
|
66
|
+
menus: {
|
|
67
|
+
clearSort: 'Limpar ordenação',
|
|
68
|
+
sortAsc: 'Ordem ascendente',
|
|
69
|
+
sortDesc: 'Ordem descendente',
|
|
70
|
+
fixedColumn: 'Coluna fixa',
|
|
71
|
+
fixedGroup: 'Grupo fixo',
|
|
72
|
+
cancelFixed: 'Limpar fixação',
|
|
73
|
+
fixedLeft: 'Fixar à esquerda',
|
|
74
|
+
fixedRight: 'Fixar à direita',
|
|
75
|
+
clearFilter: 'Limpar filtro',
|
|
76
|
+
textOption: 'Filtro de texto',
|
|
77
|
+
numberOption: 'Filtro numérico'
|
|
78
|
+
},
|
|
79
|
+
popup: {
|
|
80
|
+
title: 'Filtragem personalizada',
|
|
81
|
+
currColumnTitle: 'Coluna atual:',
|
|
82
|
+
and: 'E',
|
|
83
|
+
or: 'Ou',
|
|
84
|
+
describeHtml: 'Use ? para representar um único caractere <br/> use * para representar qualquer número de caracteres'
|
|
85
|
+
},
|
|
86
|
+
empty: '(Vazio)',
|
|
87
|
+
notData: 'Sem dados'
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
pro: {
|
|
91
|
+
area: {
|
|
92
|
+
mergeErr: 'A operação não pode ser realizada em células mescladas',
|
|
93
|
+
multiErr: 'A operação não pode ser realizada em áreas de seleção múltipla',
|
|
94
|
+
extendErr: 'Se a área estendida contiver células mescladas, todas as células mescladas devem ter o mesmo tamanho',
|
|
95
|
+
pasteMultiErr: 'Não é possível colar, é necessário que a área copiada e a área colada tenham o mesmo tamanho para realizar esta operação'
|
|
96
|
+
},
|
|
97
|
+
fnr: {
|
|
98
|
+
title: 'Localizar e substituir',
|
|
99
|
+
findLabel: 'Localizar',
|
|
100
|
+
replaceLabel: 'Substituir',
|
|
101
|
+
findTitle: 'O que localizar:',
|
|
102
|
+
replaceTitle: 'Substituir por:',
|
|
103
|
+
tabs: {
|
|
104
|
+
find: 'Localizar',
|
|
105
|
+
replace: 'Substituir'
|
|
106
|
+
},
|
|
107
|
+
filter: {
|
|
108
|
+
re: 'Expressão Regular',
|
|
109
|
+
whole: 'Palavra inteira',
|
|
110
|
+
sensitive: 'Diferenciar maiúsculas e minúsculas'
|
|
111
|
+
},
|
|
112
|
+
btns: {
|
|
113
|
+
findNext: 'Localizar próximo',
|
|
114
|
+
findAll: 'Localizar todos',
|
|
115
|
+
replace: 'Substituir',
|
|
116
|
+
replaceAll: 'Substituir tudo',
|
|
117
|
+
cancel: 'Cancelar'
|
|
118
|
+
},
|
|
119
|
+
header: {
|
|
120
|
+
seq: '#',
|
|
121
|
+
cell: 'Célula',
|
|
122
|
+
value: 'Valor'
|
|
123
|
+
},
|
|
124
|
+
empty: '(Vazio)',
|
|
125
|
+
reError: 'Expressão regular inválida',
|
|
126
|
+
recordCount: 'Encontradas {0} células',
|
|
127
|
+
notCell: 'Não foram encontradas células correspondentes',
|
|
128
|
+
replaceSuccess: 'Substituído com sucesso {0} células'
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
table: {
|
|
132
|
+
emptyText: 'Sem dados',
|
|
133
|
+
allTitle: 'Selecionar todos / cancelar',
|
|
134
|
+
seqTitle: '#',
|
|
135
|
+
confirmFilter: 'Confirmar',
|
|
136
|
+
resetFilter: 'Redefinir',
|
|
137
|
+
allFilter: 'Todos',
|
|
138
|
+
sortAsc: 'Ordenação ascendente: do menor para o maior',
|
|
139
|
+
sortDesc: 'Ordenação descendente: do maior para o menor',
|
|
140
|
+
filter: 'Habilitar filtro em colunas selecionadas',
|
|
141
|
+
impSuccess: 'Importado com sucesso {0} registros',
|
|
142
|
+
expLoading: 'Exportando',
|
|
143
|
+
expSuccess: 'Exportado com sucesso',
|
|
144
|
+
expFilename: 'Exportar_{0}',
|
|
145
|
+
expOriginFilename: 'Exportar_original_{0}',
|
|
146
|
+
customTitle: 'Configurações de coluna',
|
|
147
|
+
customAll: 'Todos',
|
|
148
|
+
customConfirm: 'Confirmar',
|
|
149
|
+
customRestore: 'Redefinir',
|
|
150
|
+
maxFixedCol: 'O número máximo de colunas fixas não pode exceder {0}'
|
|
151
|
+
},
|
|
152
|
+
grid: {
|
|
153
|
+
selectOneRecord: 'Por favor, selecione pelo menos um registro!',
|
|
154
|
+
deleteSelectRecord: 'Tem certeza de que deseja excluir o registro selecionado?',
|
|
155
|
+
removeSelectRecord: 'Tem certeza de que deseja remover o registro selecionado?',
|
|
156
|
+
dataUnchanged: 'Dados inalterados!',
|
|
157
|
+
delSuccess: 'Registro selecionado excluído com sucesso!',
|
|
158
|
+
saveSuccess: 'Salvo com sucesso!',
|
|
159
|
+
operError: 'Ocorreu um erro, a operação falhou!'
|
|
160
|
+
},
|
|
161
|
+
select: {
|
|
162
|
+
search: 'Buscar',
|
|
163
|
+
loadingText: 'Carregando',
|
|
164
|
+
emptyText: 'Sem dados'
|
|
165
|
+
},
|
|
166
|
+
pager: {
|
|
167
|
+
goto: 'Ir para',
|
|
168
|
+
pagesize: '{0}/página',
|
|
169
|
+
total: 'Total de {0} registros',
|
|
170
|
+
pageClassifier: '',
|
|
171
|
+
prevPage: 'Página anterior',
|
|
172
|
+
nextPage: 'Próxima página',
|
|
173
|
+
prevJump: 'Saltar para página anterior',
|
|
174
|
+
nextJump: 'Saltar para próxima página'
|
|
175
|
+
},
|
|
176
|
+
alert: {
|
|
177
|
+
title: 'Notificação de Mensagem'
|
|
178
|
+
},
|
|
179
|
+
button: {
|
|
180
|
+
confirm: 'Confirmar',
|
|
181
|
+
cancel: 'Cancelar'
|
|
182
|
+
},
|
|
183
|
+
import: {
|
|
184
|
+
modes: {
|
|
185
|
+
covering: 'Sobrescrever',
|
|
186
|
+
insert: 'Inserir'
|
|
187
|
+
},
|
|
188
|
+
impTitle: 'Importar dados',
|
|
189
|
+
impFile: 'Nome do arquivo',
|
|
190
|
+
impSelect: 'Selecionar arquivo',
|
|
191
|
+
impType: 'Tipo de arquivo',
|
|
192
|
+
impOpts: 'Configurações',
|
|
193
|
+
impConfirm: 'Importar',
|
|
194
|
+
impCancel: 'Cancelar'
|
|
195
|
+
},
|
|
196
|
+
export: {
|
|
197
|
+
types: {
|
|
198
|
+
csv: 'CSV (Separado por vírgulas) (*.csv)',
|
|
199
|
+
html: 'Página da Web (*.html)',
|
|
200
|
+
xml: 'Dados XML (*.xml)',
|
|
201
|
+
txt: 'Texto (Separado por tabulação) (*.txt)',
|
|
202
|
+
xls: 'Pasta de trabalho do Excel 97-2003 (*.xls)',
|
|
203
|
+
xlsx: 'Pasta de trabalho do Excel (*.xlsx)',
|
|
204
|
+
pdf: 'PDF (*.pdf)'
|
|
205
|
+
},
|
|
206
|
+
modes: {
|
|
207
|
+
current: 'Dados atuais (dados da página atual)',
|
|
208
|
+
selected: 'Dados selecionados (dados selecionados na página atual)',
|
|
209
|
+
all: 'Todos os dados (incluindo todos os dados de paginação)'
|
|
210
|
+
},
|
|
211
|
+
printTitle: 'Imprimir dados',
|
|
212
|
+
expTitle: 'Exportar dados',
|
|
213
|
+
expName: 'Nome do arquivo',
|
|
214
|
+
expNamePlaceholder: 'Por favor, insira o nome do arquivo',
|
|
215
|
+
expSheetName: 'Título',
|
|
216
|
+
expSheetNamePlaceholder: 'Por favor, insira um título',
|
|
217
|
+
expType: 'Salvar o tipo',
|
|
218
|
+
expMode: 'Selecionar dados',
|
|
219
|
+
expCurrentColumn: 'Todos os campos',
|
|
220
|
+
expColumn: 'Selecionar campo',
|
|
221
|
+
expOpts: 'Configurações',
|
|
222
|
+
expOptHeader: 'Cabeçalho',
|
|
223
|
+
expHeaderTitle: 'Necessita de cabeçalho',
|
|
224
|
+
expOptFooter: 'Rodapé',
|
|
225
|
+
expFooterTitle: 'Necessita de tabela de rodapé',
|
|
226
|
+
expOptColgroup: 'Cabeçalho de grupo',
|
|
227
|
+
expColgroupTitle: 'Se existir, suporta cabeçalhos com estrutura de agrupamento',
|
|
228
|
+
expOptMerge: 'Mesclar',
|
|
229
|
+
expMergeTitle: 'Se existir, suporta células com estruturas mescladas',
|
|
230
|
+
expOptAllExpand: 'Expandir nós',
|
|
231
|
+
expAllExpandTitle: 'Se existir, todos os dados com estrutura de árvore podem ser expandidos',
|
|
232
|
+
expOptUseStyle: 'Estilos',
|
|
233
|
+
expUseStyleTitle: 'Se existir, suporta células com estilos',
|
|
234
|
+
expOptOriginal: 'Dados originais',
|
|
235
|
+
expOriginalTitle: 'Se for dados originais, é possível importá-los de volta para a tabela',
|
|
236
|
+
expPrint: 'Imprimir',
|
|
237
|
+
expConfirm: 'Exportar',
|
|
238
|
+
expCancel: 'Cancelar'
|
|
239
|
+
},
|
|
240
|
+
modal: {
|
|
241
|
+
zoomIn: 'Maximizar',
|
|
242
|
+
zoomOut: 'Restaurar',
|
|
243
|
+
close: 'Fechar'
|
|
244
|
+
},
|
|
245
|
+
form: {
|
|
246
|
+
folding: 'Ocultar',
|
|
247
|
+
unfolding: 'Mostrar'
|
|
248
|
+
},
|
|
249
|
+
toolbar: {
|
|
250
|
+
import: 'Importar',
|
|
251
|
+
export: 'Exportar',
|
|
252
|
+
print: 'Imprimir',
|
|
253
|
+
refresh: 'Atualizar',
|
|
254
|
+
zoomIn: 'Tela cheia',
|
|
255
|
+
zoomOut: 'Restaurar',
|
|
256
|
+
custom: 'Configurações de coluna',
|
|
257
|
+
customAll: 'Todos',
|
|
258
|
+
customConfirm: 'Confirmar',
|
|
259
|
+
customRestore: 'Redefinir',
|
|
260
|
+
fixedLeft: 'Fixar à esquerda',
|
|
261
|
+
fixedRight: 'Fixar à direita',
|
|
262
|
+
cancelfixed: 'Não fixar'
|
|
263
|
+
},
|
|
264
|
+
input: {
|
|
265
|
+
date: {
|
|
266
|
+
m1: 'Janeiro',
|
|
267
|
+
m2: 'Fevereiro',
|
|
268
|
+
m3: 'Março',
|
|
269
|
+
m4: 'Abril',
|
|
270
|
+
m5: 'Maio',
|
|
271
|
+
m6: 'Junho',
|
|
272
|
+
m7: 'Julho',
|
|
273
|
+
m8: 'Agosto',
|
|
274
|
+
m9: 'Setembro',
|
|
275
|
+
m10: 'Outubro',
|
|
276
|
+
m11: 'Novembro',
|
|
277
|
+
m12: 'Dezembro',
|
|
278
|
+
quarterLabel: '{0} trimestre',
|
|
279
|
+
monthLabel: '{0}',
|
|
280
|
+
dayLabel: '{1} {0}',
|
|
281
|
+
labelFormat: {
|
|
282
|
+
date: 'dd/MM/yyyy',
|
|
283
|
+
time: 'HH:mm:ss',
|
|
284
|
+
datetime: 'dd/MM/yyyy HH:mm:ss',
|
|
285
|
+
week: '[Semana] WW, yyyy',
|
|
286
|
+
month: 'MM/yyyy',
|
|
287
|
+
quarter: '[Trimestre] q, yyyy',
|
|
288
|
+
year: 'yyyy'
|
|
289
|
+
},
|
|
290
|
+
weeks: {
|
|
291
|
+
w: 'Semana',
|
|
292
|
+
w0: 'Dom',
|
|
293
|
+
w1: 'Seg',
|
|
294
|
+
w2: 'Ter',
|
|
295
|
+
w3: 'Qua',
|
|
296
|
+
w4: 'Qui',
|
|
297
|
+
w5: 'Sex',
|
|
298
|
+
w6: 'Sáb'
|
|
299
|
+
},
|
|
300
|
+
months: {
|
|
301
|
+
m0: 'Jan',
|
|
302
|
+
m1: 'Fev',
|
|
303
|
+
m2: 'Mar',
|
|
304
|
+
m3: 'Abr',
|
|
305
|
+
m4: 'Mai',
|
|
306
|
+
m5: 'Jun',
|
|
307
|
+
m6: 'Jul',
|
|
308
|
+
m7: 'Ago',
|
|
309
|
+
m8: 'Set',
|
|
310
|
+
m9: 'Out',
|
|
311
|
+
m10: 'Nov',
|
|
312
|
+
m11: 'Dez'
|
|
313
|
+
},
|
|
314
|
+
quarters: {
|
|
315
|
+
q1: '1º trimestre',
|
|
316
|
+
q2: '2º trimestre',
|
|
317
|
+
q3: '3º trimestre',
|
|
318
|
+
q4: '4º trimestre'
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
vxe: {
|
|
3
|
+
base: {
|
|
4
|
+
pleaseInput: '请输入',
|
|
5
|
+
pleaseSelect: '请选择'
|
|
6
|
+
},
|
|
3
7
|
loading: {
|
|
4
8
|
text: '加载中...'
|
|
5
9
|
},
|
|
@@ -19,6 +23,10 @@ export default {
|
|
|
19
23
|
errProp: '不支持的参数 "{0}",可能为 "{1}"',
|
|
20
24
|
colRepet: 'column.{0}="{1}" 重复了,这可能会导致某些功能无法使用',
|
|
21
25
|
notFunc: '方法 "{0}" 不存在',
|
|
26
|
+
errFunc: '参数 "{0}" 不是一个方法',
|
|
27
|
+
notValidators: '全局校验 "{0}" 不存在',
|
|
28
|
+
notFormats: '全局格式化 "{0}" 不存在',
|
|
29
|
+
notCommands: '全局指令 "{0}" 不存在',
|
|
22
30
|
notSlot: '插槽 "{0}" 不存在',
|
|
23
31
|
noTree: '树结构不支持 "{0}"',
|
|
24
32
|
notProp: '不支持的参数 "{0}"',
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
vxe: {
|
|
3
|
+
base: {
|
|
4
|
+
pleaseInput: '请输入',
|
|
5
|
+
pleaseSelect: '请选择'
|
|
6
|
+
},
|
|
3
7
|
loading: {
|
|
4
8
|
text: '加載中...'
|
|
5
9
|
},
|
|
@@ -19,6 +23,10 @@ export default {
|
|
|
19
23
|
errProp: '不支持的參數 "{0}",可能為 "{1}"',
|
|
20
24
|
colRepet: 'column.{0}="{1}" 重複了,這可能會導致某些功能無法使用',
|
|
21
25
|
notFunc: '方法 "{0}" 不存在',
|
|
26
|
+
errFunc: '參數 "{0}" 不是一個方法',
|
|
27
|
+
notValidators: '全局校验 "{0}" 不存在',
|
|
28
|
+
notFormats: '全局格式化 "{0}" 不存在',
|
|
29
|
+
notCommands: '全局指令 "{0}" 不存在',
|
|
22
30
|
notSlot: '插槽 "{0}" 不存在',
|
|
23
31
|
noTree: '樹狀結構不支援 {0}',
|
|
24
32
|
notProp: '不支持的參數 "{0}"',
|
|
@@ -249,10 +249,10 @@ export default {
|
|
|
249
249
|
ctxMenuLinkEvent (evnt, menu) {
|
|
250
250
|
// 如果一级菜单有配置 code 则允许点击,否则不能点击
|
|
251
251
|
if (!menu.disabled && (menu.code || !menu.children || !menu.children.length)) {
|
|
252
|
-
const
|
|
252
|
+
const gMenuOpts = VXETable.menus.get(menu.code)
|
|
253
253
|
const params = Object.assign({ menu, $grid: this.$xegrid, $table: this, $event: evnt }, this.ctxMenuStore.args)
|
|
254
|
-
if (
|
|
255
|
-
|
|
254
|
+
if (gMenuOpts && gMenuOpts.menuMethod) {
|
|
255
|
+
gMenuOpts.menuMethod(params, evnt)
|
|
256
256
|
}
|
|
257
257
|
// 在 v4 中废弃事件 context-menu-click
|
|
258
258
|
if (this.$listeners['context-menu-click']) {
|
|
@@ -241,7 +241,10 @@ export default {
|
|
|
241
241
|
props: {
|
|
242
242
|
value: null,
|
|
243
243
|
clearable: Boolean,
|
|
244
|
-
placeholder:
|
|
244
|
+
placeholder: {
|
|
245
|
+
type: String,
|
|
246
|
+
default: () => XEUtils.eqNull(GlobalConfig.select.placeholder) ? GlobalConfig.i18n('vxe.base.pleaseSelect') : GlobalConfig.select.placeholder
|
|
247
|
+
},
|
|
245
248
|
loading: Boolean,
|
|
246
249
|
disabled: Boolean,
|
|
247
250
|
multiple: Boolean,
|
|
@@ -639,6 +639,7 @@ export const Cell = {
|
|
|
639
639
|
},
|
|
640
640
|
on: {
|
|
641
641
|
click (evnt) {
|
|
642
|
+
evnt.stopPropagation()
|
|
642
643
|
$table.triggerSortEvent(evnt, column, 'asc')
|
|
643
644
|
}
|
|
644
645
|
}
|
|
@@ -652,6 +653,7 @@ export const Cell = {
|
|
|
652
653
|
},
|
|
653
654
|
on: {
|
|
654
655
|
click (evnt) {
|
|
656
|
+
evnt.stopPropagation()
|
|
655
657
|
$table.triggerSortEvent(evnt, column, 'desc')
|
|
656
658
|
}
|
|
657
659
|
}
|
|
@@ -40,14 +40,14 @@ export class ColumnInfo {
|
|
|
40
40
|
}
|
|
41
41
|
if (formatter) {
|
|
42
42
|
if (XEUtils.isString(formatter)) {
|
|
43
|
-
const
|
|
44
|
-
if (!XEUtils.isFunction(
|
|
45
|
-
errLog('vxe.error.
|
|
43
|
+
const gFormatOpts = formats.get(formatter) || XEUtils[formatter]
|
|
44
|
+
if (!gFormatOpts || !XEUtils.isFunction(gFormatOpts.formatMethod)) {
|
|
45
|
+
errLog('vxe.error.notFormats', [formatter])
|
|
46
46
|
}
|
|
47
47
|
} else if (XEUtils.isArray(formatter)) {
|
|
48
|
-
const
|
|
49
|
-
if (!XEUtils.isFunction(
|
|
50
|
-
errLog('vxe.error.
|
|
48
|
+
const gFormatOpts = formats.get(formatter[0]) || XEUtils[formatter[0]]
|
|
49
|
+
if (!gFormatOpts || !XEUtils.isFunction(gFormatOpts.formatMethod)) {
|
|
50
|
+
errLog('vxe.error.notFormats', [formatter[0]])
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -2049,6 +2049,7 @@ const Methods = {
|
|
|
2049
2049
|
},
|
|
2050
2050
|
updateHeight () {
|
|
2051
2051
|
this.customHeight = calcHeight(this, 'height')
|
|
2052
|
+
this.customMinHeight = calcHeight(this, 'minHeight')
|
|
2052
2053
|
this.customMaxHeight = calcHeight(this, 'maxHeight')
|
|
2053
2054
|
},
|
|
2054
2055
|
updateStyle () {
|
|
@@ -2058,6 +2059,7 @@ const Methods = {
|
|
|
2058
2059
|
fullColumnIdData,
|
|
2059
2060
|
tableColumn,
|
|
2060
2061
|
customHeight,
|
|
2062
|
+
customMinHeight,
|
|
2061
2063
|
customMaxHeight,
|
|
2062
2064
|
border,
|
|
2063
2065
|
headerHeight,
|
|
@@ -2170,15 +2172,22 @@ const Methods = {
|
|
|
2170
2172
|
} else if (layout === 'body') {
|
|
2171
2173
|
const emptyBlockElem = elemStore[`${name}-${layout}-emptyBlock`]
|
|
2172
2174
|
if (isNodeElement(wrapperElem)) {
|
|
2175
|
+
const bodyMinHeight = fixedType ? ((customMinHeight - headerHeight - footerHeight) - (showFooter ? 0 : scrollbarHeight)) : (customMinHeight - headerHeight - footerHeight)
|
|
2176
|
+
let bodyMaxHeight = 0
|
|
2173
2177
|
if (customMaxHeight) {
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2178
|
+
bodyMaxHeight = Math.max(bodyMinHeight, fixedType ? (customMaxHeight - headerHeight - (showFooter ? 0 : scrollbarHeight)) : (customMaxHeight - headerHeight - footerHeight))
|
|
2179
|
+
wrapperElem.style.maxHeight = `${bodyMaxHeight}px`
|
|
2180
|
+
}
|
|
2181
|
+
if (customHeight > 0) {
|
|
2182
|
+
let bodyHeight = fixedType ? ((customHeight > 0 ? customHeight - headerHeight - footerHeight : tableHeight) - (showFooter ? 0 : scrollbarHeight)) : (customHeight - headerHeight - footerHeight)
|
|
2183
|
+
if (bodyMaxHeight) {
|
|
2184
|
+
bodyHeight = Math.min(bodyMaxHeight, bodyHeight)
|
|
2180
2185
|
}
|
|
2186
|
+
wrapperElem.style.height = `${Math.max(bodyMinHeight, bodyHeight)}px`
|
|
2187
|
+
} else {
|
|
2188
|
+
wrapperElem.style.height = ''
|
|
2181
2189
|
}
|
|
2190
|
+
wrapperElem.style.minHeight = `${bodyMinHeight}px`
|
|
2182
2191
|
}
|
|
2183
2192
|
|
|
2184
2193
|
// 如果是固定列
|
|
@@ -3757,7 +3766,10 @@ const Methods = {
|
|
|
3757
3766
|
} else {
|
|
3758
3767
|
this.sort({ field, order })
|
|
3759
3768
|
}
|
|
3760
|
-
const params = { column, field, property: field, order: column.order, sortList: this.getSortColumns() }
|
|
3769
|
+
const params = { $table: this, $event: evnt, column, field, property: field, order: column.order, sortList: this.getSortColumns(), sortTime: column.sortTime }
|
|
3770
|
+
if (this.mouseConfig && this.mouseOpts.area && this.handleSortEvent) {
|
|
3771
|
+
return this.handleSortEvent(evnt, params)
|
|
3772
|
+
}
|
|
3761
3773
|
this.emitEvent('sort-change', params, evnt)
|
|
3762
3774
|
}
|
|
3763
3775
|
},
|
|
@@ -3972,7 +3984,16 @@ const Methods = {
|
|
|
3972
3984
|
* @param {Boolean} expanded 是否展开
|
|
3973
3985
|
*/
|
|
3974
3986
|
setAllRowExpand (expanded) {
|
|
3975
|
-
|
|
3987
|
+
const { treeConfig, treeOpts, tableFullData, tableFullTreeData } = this
|
|
3988
|
+
let expandedRows = []
|
|
3989
|
+
if (treeConfig) {
|
|
3990
|
+
XEUtils.eachTree(tableFullTreeData, (row) => {
|
|
3991
|
+
expandedRows.push(row)
|
|
3992
|
+
}, treeOpts)
|
|
3993
|
+
} else {
|
|
3994
|
+
expandedRows = tableFullData
|
|
3995
|
+
}
|
|
3996
|
+
return this.setRowExpand(expandedRows, expanded)
|
|
3976
3997
|
},
|
|
3977
3998
|
handleAsyncRowExpand (row) {
|
|
3978
3999
|
const rest = this.fullAllDataRowMap.get(row)
|
|
@@ -4671,12 +4692,12 @@ const Methods = {
|
|
|
4671
4692
|
* 如果组件值 v-model 发生 change 时,调用改函数用于更新某一列编辑状态
|
|
4672
4693
|
* 如果单元格配置了校验规则,则会进行校验
|
|
4673
4694
|
*/
|
|
4674
|
-
updateStatus (
|
|
4695
|
+
updateStatus (slotParams, cellValue) {
|
|
4675
4696
|
const customVal = !XEUtils.isUndefined(cellValue)
|
|
4676
4697
|
return this.$nextTick().then(() => {
|
|
4677
4698
|
const { $refs, editRules, validStore } = this
|
|
4678
|
-
if (
|
|
4679
|
-
const { row, column } =
|
|
4699
|
+
if (slotParams && $refs.tableBody && editRules) {
|
|
4700
|
+
const { row, column } = slotParams
|
|
4680
4701
|
const type = 'change'
|
|
4681
4702
|
if (this.hasCellRules(type, row, column)) {
|
|
4682
4703
|
const cell = this.getCell(row, column)
|
|
@@ -4843,11 +4864,11 @@ const Methods = {
|
|
|
4843
4864
|
}
|
|
4844
4865
|
const formatParams = { cellValue, row, rowIndex: this.getRowIndex(row), column, columnIndex: this.getColumnIndex(column) }
|
|
4845
4866
|
if (XEUtils.isString(formatter)) {
|
|
4846
|
-
const
|
|
4847
|
-
cellLabel =
|
|
4867
|
+
const gFormatOpts = formats.get(formatter)
|
|
4868
|
+
cellLabel = gFormatOpts && gFormatOpts.formatMethod ? gFormatOpts.formatMethod(formatParams) : ''
|
|
4848
4869
|
} else if (XEUtils.isArray(formatter)) {
|
|
4849
|
-
const
|
|
4850
|
-
cellLabel =
|
|
4870
|
+
const gFormatOpts = formats.get(formatter[0])
|
|
4871
|
+
cellLabel = gFormatOpts && gFormatOpts.formatMethod ? gFormatOpts.formatMethod(formatParams, ...formatter.slice(1)) : ''
|
|
4851
4872
|
} else {
|
|
4852
4873
|
cellLabel = formatter(formatParams)
|
|
4853
4874
|
}
|