vxe-table 3.7.0-beta.7 → 3.7.0-beta.9
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 +2 -1
- package/lib/edit/src/mixin.js +7 -6
- package/lib/edit/src/mixin.min.js +1 -1
- package/lib/export/src/mixin.js +1 -1
- package/lib/export/src/mixin.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 +59 -59
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/en-US.js +1 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +1 -0
- package/lib/locale/lang/es-ES.js +1 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +1 -0
- package/lib/locale/lang/ja-JP.d.ts +1 -1
- package/lib/locale/lang/ja-JP.js +1 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +1 -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 +1 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +1 -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 +1 -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 +1 -0
- package/lib/locale/lang/zh-TC.d.ts +1 -1
- package/lib/locale/lang/zh-TC.js +1 -0
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +1 -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 +1 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/body.js +2 -2
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +5 -3
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/columnInfo.js +3 -3
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/methods.js +35 -29
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +11 -5
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +1 -1
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +5 -0
- package/lib/table/style/style.min.css +1 -1
- package/lib/toolbar/src/toolbar.js +5 -1
- 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/tooltip/style/style.css +0 -6
- package/lib/tooltip/style/style.min.css +1 -1
- package/lib/v-x-e-table/index.js +1 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/src/commands.js +7 -5
- package/lib/v-x-e-table/src/commands.min.js +1 -1
- package/lib/v-x-e-table/src/conf.js +3 -3
- package/lib/v-x-e-table/src/conf.min.js +1 -1
- package/lib/v-x-e-table/src/formats.js +7 -5
- package/lib/v-x-e-table/src/formats.min.js +1 -1
- package/lib/v-x-e-table/src/menus.js +7 -5
- 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/validator/src/mixin.js +10 -0
- package/lib/validator/src/mixin.min.js +1 -1
- package/package.json +2 -2
- package/packages/edit/src/mixin.js +6 -6
- package/packages/export/src/mixin.js +1 -1
- package/packages/locale/lang/en-US.js +1 -0
- package/packages/locale/lang/es-ES.js +1 -0
- package/packages/locale/lang/ja-JP.d.ts +1 -1
- package/packages/locale/lang/ja-JP.js +1 -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 +1 -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 +1 -0
- package/packages/locale/lang/zh-TW.d.ts +1 -1
- package/packages/table/src/body.js +2 -2
- package/packages/table/src/cell.js +3 -3
- package/packages/table/src/columnInfo.js +3 -3
- package/packages/table/src/methods.js +32 -32
- package/packages/table/src/table.js +11 -5
- package/packages/table/src/util.js +1 -1
- package/packages/toolbar/src/toolbar.js +4 -1
- package/packages/v-x-e-table/src/commands.js +6 -4
- package/packages/v-x-e-table/src/conf.js +3 -3
- package/packages/v-x-e-table/src/formats.js +6 -4
- package/packages/v-x-e-table/src/menus.js +6 -4
- package/packages/v-x-e-table/src/renderer.js +11 -1
- package/packages/validator/src/mixin.js +10 -0
- 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 +9 -2
- package/styles/tooltip.scss +0 -8
- package/styles/variable.scss +1 -4
- package/types/all.d.ts +2 -2
- package/types/table.d.ts +20 -4
- package/types/v-x-e-table/formats.d.ts +1 -1
- package/types/v-x-e-table/index.d.ts +4 -4
- package/types/v-x-e-table/setup.d.ts +10 -33
- /package/lib/icon/style/{iconfont.1690156580206.ttf → iconfont.1690761747506.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1690156580206.woff → iconfont.1690761747506.woff} +0 -0
- /package/lib/icon/style/{iconfont.1690156580206.woff2 → iconfont.1690761747506.woff2} +0 -0
- /package/lib/{iconfont.1690156580206.ttf → iconfont.1690761747506.ttf} +0 -0
- /package/lib/{iconfont.1690156580206.woff → iconfont.1690761747506.woff} +0 -0
- /package/lib/{iconfont.1690156580206.woff2 → iconfont.1690761747506.woff2} +0 -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
|
+
}
|
|
@@ -23,6 +23,7 @@ export default {
|
|
|
23
23
|
errProp: '不支持的参数 "{0}",可能为 "{1}"',
|
|
24
24
|
colRepet: 'column.{0}="{1}" 重复了,这可能会导致某些功能无法使用',
|
|
25
25
|
notFunc: '方法 "{0}" 不存在',
|
|
26
|
+
errFunc: '参数 "{0}" 不是一个方法',
|
|
26
27
|
notValidators: '全局校验 "{0}" 不存在',
|
|
27
28
|
notFormats: '全局格式化 "{0}" 不存在',
|
|
28
29
|
notCommands: '全局指令 "{0}" 不存在',
|
|
@@ -23,6 +23,7 @@ export default {
|
|
|
23
23
|
errProp: '不支持的參數 "{0}",可能為 "{1}"',
|
|
24
24
|
colRepet: 'column.{0}="{1}" 重複了,這可能會導致某些功能無法使用',
|
|
25
25
|
notFunc: '方法 "{0}" 不存在',
|
|
26
|
+
errFunc: '參數 "{0}" 不是一個方法',
|
|
26
27
|
notValidators: '全局校验 "{0}" 不存在',
|
|
27
28
|
notFormats: '全局格式化 "{0}" 不存在',
|
|
28
29
|
notCommands: '全局指令 "{0}" 不存在',
|
|
@@ -30,7 +30,7 @@ function renderLine (h, _vm, $xetable, params) {
|
|
|
30
30
|
if (slots && slots.line) {
|
|
31
31
|
return $xetable.callSlot(slots.line, params, h)
|
|
32
32
|
}
|
|
33
|
-
if (treeConfig && treeNode && treeOpts.line) {
|
|
33
|
+
if (treeConfig && treeNode && (treeOpts.showLine || treeOpts.line)) {
|
|
34
34
|
return [
|
|
35
35
|
h('div', {
|
|
36
36
|
class: 'vxe-tree--line-wrapper'
|
|
@@ -350,7 +350,7 @@ function renderRows (h, _vm, $xetable, fixedType, tableData, tableColumn) {
|
|
|
350
350
|
isNewRow = $xetable.isInsertByRow(row)
|
|
351
351
|
}
|
|
352
352
|
if (treeConfig && !scrollYLoad && !treeOpts.transform && treeExpandeds.length) {
|
|
353
|
-
rowChildren = row[treeOpts.children]
|
|
353
|
+
rowChildren = row[treeOpts.childrenField || treeOpts.children]
|
|
354
354
|
isExpandTree = rowChildren && rowChildren.length && treeExpandeds.indexOf(row) > -1
|
|
355
355
|
}
|
|
356
356
|
rows.push(
|
|
@@ -207,8 +207,8 @@ export const Cell = {
|
|
|
207
207
|
const { treeOpts, treeExpandeds, treeLazyLoadeds } = $table
|
|
208
208
|
const { row, column, level } = params
|
|
209
209
|
const { slots } = column
|
|
210
|
-
const { children, hasChild, indent, lazy, trigger, iconLoaded, showIcon, iconOpen, iconClose } = treeOpts
|
|
211
|
-
const rowChilds = row[children]
|
|
210
|
+
const { childrenField, children, hasChildField, hasChild, indent, lazy, trigger, iconLoaded, showIcon, iconOpen, iconClose } = treeOpts
|
|
211
|
+
const rowChilds = row[childrenField || children]
|
|
212
212
|
let hasLazyChilds = false
|
|
213
213
|
let isAceived = false
|
|
214
214
|
let isLazyLoaded = false
|
|
@@ -220,7 +220,7 @@ export const Cell = {
|
|
|
220
220
|
isAceived = $table.findRowIndexOf(treeExpandeds, row) > -1
|
|
221
221
|
if (lazy) {
|
|
222
222
|
isLazyLoaded = $table.findRowIndexOf(treeLazyLoadeds, row) > -1
|
|
223
|
-
hasLazyChilds = row[hasChild]
|
|
223
|
+
hasLazyChilds = row[hasChildField || hasChild]
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
if (!trigger || trigger === 'default') {
|
|
@@ -28,7 +28,7 @@ export class ColumnInfo {
|
|
|
28
28
|
warnLog('vxe.error.errConflicts', ['column.cell-render', 'column.edit-render'])
|
|
29
29
|
}
|
|
30
30
|
if (_vm.type === 'expand') {
|
|
31
|
-
if ($xetable.treeConfig && $xetable.treeOpts.line) {
|
|
31
|
+
if ($xetable.treeConfig && ($xetable.treeOpts.showLine || $xetable.treeOpts.line)) {
|
|
32
32
|
errLog('vxe.error.errConflicts', ['tree-config.line', 'column.type=expand'])
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -41,12 +41,12 @@ export class ColumnInfo {
|
|
|
41
41
|
if (formatter) {
|
|
42
42
|
if (XEUtils.isString(formatter)) {
|
|
43
43
|
const gFormatOpts = formats.get(formatter) || XEUtils[formatter]
|
|
44
|
-
if (!gFormatOpts || !XEUtils.isFunction(gFormatOpts.
|
|
44
|
+
if (!gFormatOpts || !XEUtils.isFunction(gFormatOpts.cellFormatMethod)) {
|
|
45
45
|
errLog('vxe.error.notFormats', [formatter])
|
|
46
46
|
}
|
|
47
47
|
} else if (XEUtils.isArray(formatter)) {
|
|
48
48
|
const gFormatOpts = formats.get(formatter[0]) || XEUtils[formatter[0]]
|
|
49
|
-
if (!gFormatOpts || !XEUtils.isFunction(gFormatOpts.
|
|
49
|
+
if (!gFormatOpts || !XEUtils.isFunction(gFormatOpts.cellFormatMethod)) {
|
|
50
50
|
errLog('vxe.error.notFormats', [formatter[0]])
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -369,26 +369,26 @@ const Methods = {
|
|
|
369
369
|
if (!treeOpts.parentField) {
|
|
370
370
|
errLog('vxe.error.reqProp', ['table.tree-config.parentField'])
|
|
371
371
|
}
|
|
372
|
-
if (!treeOpts.children) {
|
|
373
|
-
errLog('vxe.error.reqProp', ['tree-config.
|
|
372
|
+
if (!(treeOpts.childrenField || treeOpts.children)) {
|
|
373
|
+
errLog('vxe.error.reqProp', ['tree-config.childrenField'])
|
|
374
374
|
}
|
|
375
|
-
if (!treeOpts.
|
|
376
|
-
errLog('vxe.error.reqProp', ['tree-config.
|
|
375
|
+
if (!treeOpts.mapChildrenField) {
|
|
376
|
+
errLog('vxe.error.reqProp', ['tree-config.mapChildrenField'])
|
|
377
377
|
}
|
|
378
|
-
if (treeOpts.children === treeOpts.
|
|
379
|
-
errLog('vxe.error.errConflicts', ['tree-config.
|
|
378
|
+
if ((treeOpts.treeOpts || treeOpts.children) === treeOpts.mapChildrenField) {
|
|
379
|
+
errLog('vxe.error.errConflicts', ['tree-config.childrenField', 'tree-config.mapChildrenField'])
|
|
380
380
|
}
|
|
381
381
|
fullData.forEach(row => {
|
|
382
|
-
if (row[treeOpts.children] && row[treeOpts.children].length) {
|
|
383
|
-
warnLog('vxe.error.errConflicts', ['tree-config.transform', `row.${treeOpts.children}`])
|
|
382
|
+
if (row[treeOpts.childrenField || treeOpts.children] && row[treeOpts.childrenField || treeOpts.children].length) {
|
|
383
|
+
warnLog('vxe.error.errConflicts', ['tree-config.transform', `row.${treeOpts.childrenField || treeOpts.children}`])
|
|
384
384
|
}
|
|
385
385
|
})
|
|
386
386
|
}
|
|
387
387
|
treeData = XEUtils.toArrayTree(fullData, {
|
|
388
388
|
key: treeOpts.rowField,
|
|
389
389
|
parentKey: treeOpts.parentField,
|
|
390
|
-
children: treeOpts.children,
|
|
391
|
-
mapChildren: treeOpts.
|
|
390
|
+
children: treeOpts.childrenField || treeOpts.children,
|
|
391
|
+
mapChildren: treeOpts.mapChildrenField
|
|
392
392
|
})
|
|
393
393
|
fullData = treeData.slice(0)
|
|
394
394
|
} else {
|
|
@@ -602,8 +602,8 @@ const Methods = {
|
|
|
602
602
|
rowid = getRowUniqueId()
|
|
603
603
|
XEUtils.set(row, rowkey, rowid)
|
|
604
604
|
}
|
|
605
|
-
if (isLazy && row[treeOpts.hasChild] && XEUtils.isUndefined(row[treeOpts.children])) {
|
|
606
|
-
row[treeOpts.children] = null
|
|
605
|
+
if (isLazy && row[treeOpts.hasChildField || treeOpts.hasChild] && XEUtils.isUndefined(row[treeOpts.childrenField || treeOpts.children])) {
|
|
606
|
+
row[treeOpts.childrenField || treeOpts.children] = null
|
|
607
607
|
}
|
|
608
608
|
const rest = { row, rowid, seq, index: treeConfig && parent ? -1 : index, _index: -1, $index: -1, items, parent, level }
|
|
609
609
|
if (source) {
|
|
@@ -651,7 +651,7 @@ const Methods = {
|
|
|
651
651
|
},
|
|
652
652
|
loadTreeChildren (row, childRecords) {
|
|
653
653
|
const { keepSource, tableSourceData, treeOpts, fullDataRowIdData, fullDataRowMap, fullAllDataRowMap, fullAllDataRowIdData } = this
|
|
654
|
-
const { transform, children,
|
|
654
|
+
const { transform, childrenField, children, mapChildrenField } = treeOpts
|
|
655
655
|
const rest = fullAllDataRowIdData[getRowid(this, row)]
|
|
656
656
|
const parentLevel = rest ? rest.level : 0
|
|
657
657
|
return this.createData(childRecords).then((rows) => {
|
|
@@ -659,7 +659,7 @@ const Methods = {
|
|
|
659
659
|
const rowid = getRowid(this, row)
|
|
660
660
|
const matchObj = XEUtils.findTree(tableSourceData, (item) => rowid === getRowid(this, item), treeOpts)
|
|
661
661
|
if (matchObj) {
|
|
662
|
-
matchObj.item[children] = XEUtils.clone(rows, true)
|
|
662
|
+
matchObj.item[childrenField || children] = XEUtils.clone(rows, true)
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
XEUtils.eachTree(rows, (childRow, index, items, path, parent, nodes) => {
|
|
@@ -670,9 +670,9 @@ const Methods = {
|
|
|
670
670
|
fullAllDataRowIdData[rowid] = rest
|
|
671
671
|
fullAllDataRowMap.set(childRow, rest)
|
|
672
672
|
}, treeOpts)
|
|
673
|
-
row[children] = rows
|
|
673
|
+
row[childrenField || children] = rows
|
|
674
674
|
if (transform) {
|
|
675
|
-
row[
|
|
675
|
+
row[mapChildrenField] = rows
|
|
676
676
|
}
|
|
677
677
|
this.updateAfterDataIndex()
|
|
678
678
|
return rows
|
|
@@ -956,8 +956,8 @@ const Methods = {
|
|
|
956
956
|
XEUtils.set(record, key, null)
|
|
957
957
|
}
|
|
958
958
|
})
|
|
959
|
-
if (treeConfig && treeOpts.lazy && XEUtils.isUndefined(record[treeOpts.children])) {
|
|
960
|
-
record[treeOpts.children] = null
|
|
959
|
+
if (treeConfig && treeOpts.lazy && XEUtils.isUndefined(record[treeOpts.childrenField || treeOpts.children])) {
|
|
960
|
+
record[treeOpts.childrenField || treeOpts.children] = null
|
|
961
961
|
}
|
|
962
962
|
// 必须有行数据的唯一主键,可以自行设置;也可以默认生成一个随机数
|
|
963
963
|
if (eqEmptyValue(XEUtils.get(record, rowkey))) {
|
|
@@ -1156,20 +1156,20 @@ const Methods = {
|
|
|
1156
1156
|
*/
|
|
1157
1157
|
getCheckboxRecords (isFull) {
|
|
1158
1158
|
const { tableFullData, afterFullData, treeConfig, treeOpts, checkboxOpts, tableFullTreeData, afterTreeFullData } = this
|
|
1159
|
-
const { transform, children,
|
|
1159
|
+
const { transform, childrenField, children, mapChildrenField } = treeOpts
|
|
1160
1160
|
const { checkField } = checkboxOpts
|
|
1161
1161
|
const currTableData = isFull ? (transform ? tableFullTreeData : tableFullData) : (transform ? afterTreeFullData : afterFullData)
|
|
1162
1162
|
let rowList = []
|
|
1163
1163
|
if (checkField) {
|
|
1164
1164
|
if (treeConfig) {
|
|
1165
|
-
rowList = XEUtils.filterTree(currTableData, row => XEUtils.get(row, checkField), { children: transform ?
|
|
1165
|
+
rowList = XEUtils.filterTree(currTableData, row => XEUtils.get(row, checkField), { children: transform ? mapChildrenField : (childrenField || children) })
|
|
1166
1166
|
} else {
|
|
1167
1167
|
rowList = currTableData.filter(row => XEUtils.get(row, checkField))
|
|
1168
1168
|
}
|
|
1169
1169
|
} else {
|
|
1170
1170
|
const { selectCheckboxRows } = this
|
|
1171
1171
|
if (treeConfig) {
|
|
1172
|
-
rowList = XEUtils.filterTree(currTableData, row => this.findRowIndexOf(selectCheckboxRows, row) > -1, { children: transform ?
|
|
1172
|
+
rowList = XEUtils.filterTree(currTableData, row => this.findRowIndexOf(selectCheckboxRows, row) > -1, { children: transform ? mapChildrenField : (childrenField || children) })
|
|
1173
1173
|
} else {
|
|
1174
1174
|
rowList = currTableData.filter(row => this.findRowIndexOf(selectCheckboxRows, row) > -1)
|
|
1175
1175
|
}
|
|
@@ -1190,7 +1190,7 @@ const Methods = {
|
|
|
1190
1190
|
expandMaps.set(row, 1)
|
|
1191
1191
|
fullData.push(row)
|
|
1192
1192
|
}
|
|
1193
|
-
}, { children: treeOpts.
|
|
1193
|
+
}, { children: treeOpts.mapChildrenField })
|
|
1194
1194
|
this.afterFullData = fullData
|
|
1195
1195
|
this.updateScrollYStatus(fullData)
|
|
1196
1196
|
return fullData
|
|
@@ -1327,7 +1327,7 @@ const Methods = {
|
|
|
1327
1327
|
fullAllDataRowIdData[rowid] = rest
|
|
1328
1328
|
fullDataRowIdData[rowid] = rest
|
|
1329
1329
|
}
|
|
1330
|
-
}, { children: treeOpts.transform ? treeOpts.
|
|
1330
|
+
}, { children: treeOpts.transform ? treeOpts.mapChildrenField : (treeOpts.childrenField || treeOpts.children) })
|
|
1331
1331
|
} else {
|
|
1332
1332
|
afterFullData.forEach((row, index) => {
|
|
1333
1333
|
const rowid = getRowid(this, row)
|
|
@@ -4142,8 +4142,8 @@ const Methods = {
|
|
|
4142
4142
|
*/
|
|
4143
4143
|
reloadTreeExpand (row) {
|
|
4144
4144
|
const { treeOpts, treeLazyLoadeds } = this
|
|
4145
|
-
const { transform, lazy, hasChild } = treeOpts
|
|
4146
|
-
if (lazy && row[hasChild] && treeLazyLoadeds.indexOf(row) === -1) {
|
|
4145
|
+
const { transform, lazy, hasChildField, hasChild } = treeOpts
|
|
4146
|
+
if (lazy && row[hasChildField || hasChild] && treeLazyLoadeds.indexOf(row) === -1) {
|
|
4147
4147
|
this.clearTreeExpandLoaded(row).then(() => {
|
|
4148
4148
|
return this.handleAsyncTreeExpandChilds(row)
|
|
4149
4149
|
}).then(() => {
|
|
@@ -4252,10 +4252,10 @@ const Methods = {
|
|
|
4252
4252
|
*/
|
|
4253
4253
|
setAllTreeExpand (expanded) {
|
|
4254
4254
|
const { tableFullData, treeOpts } = this
|
|
4255
|
-
const { lazy, children } = treeOpts
|
|
4255
|
+
const { lazy, childrenField, children } = treeOpts
|
|
4256
4256
|
const expandeds = []
|
|
4257
4257
|
XEUtils.eachTree(tableFullData, row => {
|
|
4258
|
-
const rowChildren = row[children]
|
|
4258
|
+
const rowChildren = row[childrenField || children]
|
|
4259
4259
|
if (lazy || (rowChildren && rowChildren.length)) {
|
|
4260
4260
|
expandeds.push(row)
|
|
4261
4261
|
}
|
|
@@ -4270,7 +4270,7 @@ const Methods = {
|
|
|
4270
4270
|
*/
|
|
4271
4271
|
handleBaseTreeExpand (rows, expanded) {
|
|
4272
4272
|
const { fullAllDataRowMap, tableFullData, treeExpandeds, treeOpts, treeLazyLoadeds, treeNodeColumn } = this
|
|
4273
|
-
const { reserve, lazy, hasChild, children, accordion, toggleMethod } = treeOpts
|
|
4273
|
+
const { reserve, lazy, hasChildField, hasChild, childrenField, children, accordion, toggleMethod } = treeOpts
|
|
4274
4274
|
const result = []
|
|
4275
4275
|
const columnIndex = this.getColumnIndex(treeNodeColumn)
|
|
4276
4276
|
const $columnIndex = this.getVMColumnIndex(treeNodeColumn)
|
|
@@ -4287,12 +4287,12 @@ const Methods = {
|
|
|
4287
4287
|
validRows.forEach(row => {
|
|
4288
4288
|
if (treeExpandeds.indexOf(row) === -1) {
|
|
4289
4289
|
const rest = fullAllDataRowMap.get(row)
|
|
4290
|
-
const isLoad = lazy && row[hasChild] && !rest.treeLoaded && treeLazyLoadeds.indexOf(row) === -1
|
|
4290
|
+
const isLoad = lazy && row[(hasChildField || hasChild)] && !rest.treeLoaded && treeLazyLoadeds.indexOf(row) === -1
|
|
4291
4291
|
// 是否使用懒加载
|
|
4292
4292
|
if (isLoad) {
|
|
4293
4293
|
result.push(this.handleAsyncTreeExpandChilds(row))
|
|
4294
4294
|
} else {
|
|
4295
|
-
if (row[children] && row[children].length) {
|
|
4295
|
+
if (row[childrenField || children] && row[childrenField || children].length) {
|
|
4296
4296
|
treeExpandeds.push(row)
|
|
4297
4297
|
}
|
|
4298
4298
|
}
|
|
@@ -4865,10 +4865,10 @@ const Methods = {
|
|
|
4865
4865
|
const formatParams = { cellValue, row, rowIndex: this.getRowIndex(row), column, columnIndex: this.getColumnIndex(column) }
|
|
4866
4866
|
if (XEUtils.isString(formatter)) {
|
|
4867
4867
|
const gFormatOpts = formats.get(formatter)
|
|
4868
|
-
cellLabel = gFormatOpts && gFormatOpts.
|
|
4868
|
+
cellLabel = gFormatOpts && gFormatOpts.cellFormatMethod ? gFormatOpts.cellFormatMethod(formatParams) : ''
|
|
4869
4869
|
} else if (XEUtils.isArray(formatter)) {
|
|
4870
4870
|
const gFormatOpts = formats.get(formatter[0])
|
|
4871
|
-
cellLabel = gFormatOpts && gFormatOpts.
|
|
4871
|
+
cellLabel = gFormatOpts && gFormatOpts.cellFormatMethod ? gFormatOpts.cellFormatMethod(formatParams, ...formatter.slice(1)) : ''
|
|
4872
4872
|
} else {
|
|
4873
4873
|
cellLabel = formatter(formatParams)
|
|
4874
4874
|
}
|