vxe-table 3.8.21 → 3.8.23

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.
Files changed (189) hide show
  1. package/helper/vetur/attributes.json +1 -1966
  2. package/helper/vetur/tags.json +1 -648
  3. package/lib/button/src/button.js +4 -2
  4. package/lib/button/src/button.min.js +1 -1
  5. package/lib/button/style/style.css +11 -0
  6. package/lib/button/style/style.min.css +1 -1
  7. package/lib/button-group/style/style.css +1 -0
  8. package/lib/checkbox/style/style.css +1 -0
  9. package/lib/checkbox-group/style/style.css +1 -0
  10. package/lib/colgroup/style/style.css +1 -0
  11. package/lib/column/style/style.css +1 -0
  12. package/lib/custom/src/panel.js +157 -71
  13. package/lib/custom/src/panel.min.js +1 -1
  14. package/lib/custom/style/style.css +19 -34
  15. package/lib/custom/style/style.min.css +1 -1
  16. package/lib/edit/style/style.css +1 -0
  17. package/lib/export/src/export-panel.js +7 -1
  18. package/lib/export/src/export-panel.min.js +1 -1
  19. package/lib/export/style/style.css +1 -0
  20. package/lib/filter/style/style.css +1 -0
  21. package/lib/form/src/form.js +0 -3
  22. package/lib/form/src/form.min.js +1 -1
  23. package/lib/form/style/style.css +1 -0
  24. package/lib/form-gather/style/style.css +1 -0
  25. package/lib/form-item/style/style.css +1 -0
  26. package/lib/grid/style/style.css +2 -0
  27. package/lib/grid/style/style.min.css +1 -1
  28. package/lib/icon/style/style.css +4 -2
  29. package/lib/icon/style/style.min.css +4 -2
  30. package/lib/index.css +1 -1
  31. package/lib/index.umd.js +4561 -4261
  32. package/lib/index.umd.min.js +1 -1
  33. package/lib/input/src/input.js +9 -2
  34. package/lib/input/src/input.min.js +1 -1
  35. package/lib/input/style/style.css +4 -3
  36. package/lib/input/style/style.min.css +1 -1
  37. package/lib/keyboard/style/style.css +1 -0
  38. package/lib/list/style/style.css +1 -0
  39. package/lib/loading/style/style.css +1 -0
  40. package/lib/locale/lang/en-US.js +201 -9
  41. package/lib/locale/lang/en-US.min.js +1 -1
  42. package/lib/locale/lang/en-US.umd.js +201 -9
  43. package/lib/locale/lang/es-ES.js +202 -10
  44. package/lib/locale/lang/es-ES.min.js +1 -1
  45. package/lib/locale/lang/es-ES.umd.js +202 -10
  46. package/lib/locale/lang/ja-JP.js +214 -22
  47. package/lib/locale/lang/ja-JP.min.js +1 -1
  48. package/lib/locale/lang/ja-JP.umd.js +214 -22
  49. package/lib/locale/lang/pt-BR.js +201 -9
  50. package/lib/locale/lang/pt-BR.min.js +1 -1
  51. package/lib/locale/lang/pt-BR.umd.js +201 -9
  52. package/lib/locale/lang/zh-CN.js +196 -4
  53. package/lib/locale/lang/zh-CN.min.js +1 -1
  54. package/lib/locale/lang/zh-CN.umd.js +196 -4
  55. package/lib/locale/lang/zh-HK.min.js +1 -1
  56. package/lib/locale/lang/zh-HK.umd.js +200 -8
  57. package/lib/locale/lang/zh-MO.min.js +1 -1
  58. package/lib/locale/lang/zh-MO.umd.js +200 -8
  59. package/lib/locale/lang/zh-TC.js +200 -8
  60. package/lib/locale/lang/zh-TC.min.js +1 -1
  61. package/lib/locale/lang/zh-TC.umd.js +200 -8
  62. package/lib/locale/lang/zh-TW.min.js +1 -1
  63. package/lib/locale/lang/zh-TW.umd.js +200 -8
  64. package/lib/menu/src/panel.js +24 -8
  65. package/lib/menu/src/panel.min.js +1 -1
  66. package/lib/menu/style/style.css +11 -27
  67. package/lib/menu/style/style.min.css +1 -1
  68. package/lib/modal/style/style.css +4 -0
  69. package/lib/modal/style/style.min.css +1 -1
  70. package/lib/optgroup/style/style.css +1 -0
  71. package/lib/option/style/style.css +1 -0
  72. package/lib/pager/src/pager.js +29 -25
  73. package/lib/pager/src/pager.min.js +1 -1
  74. package/lib/pager/style/style.css +2 -19
  75. package/lib/pager/style/style.min.css +1 -1
  76. package/lib/pulldown/style/style.css +3 -1
  77. package/lib/pulldown/style/style.min.css +1 -1
  78. package/lib/radio/style/style.css +1 -0
  79. package/lib/radio-button/style/style.css +1 -0
  80. package/lib/radio-group/style/style.css +1 -0
  81. package/lib/select/src/select.js +5 -4
  82. package/lib/select/src/select.min.js +1 -1
  83. package/lib/select/style/style.css +2 -0
  84. package/lib/select/style/style.min.css +1 -1
  85. package/lib/style.css +1 -1
  86. package/lib/style.min.css +1 -1
  87. package/lib/switch/style/style.css +1 -0
  88. package/lib/table/src/header.js +4 -3
  89. package/lib/table/src/header.min.js +1 -1
  90. package/lib/table/src/methods.js +33 -46
  91. package/lib/table/src/methods.min.js +1 -1
  92. package/lib/table/style/style.css +17 -10
  93. package/lib/table/style/style.min.css +1 -1
  94. package/lib/textarea/style/style.css +1 -0
  95. package/lib/toolbar/style/style.css +1 -0
  96. package/lib/tools/log.js +1 -1
  97. package/lib/tools/log.min.js +1 -1
  98. package/lib/tooltip/style/style.css +1 -0
  99. package/lib/v-x-e-table/index.js +1 -1
  100. package/lib/v-x-e-table/index.min.js +1 -1
  101. package/lib/v-x-e-table/src/conf.js +1 -0
  102. package/lib/v-x-e-table/src/conf.min.js +1 -1
  103. package/lib/v-x-e-table/style/style.css +3 -1
  104. package/lib/v-x-e-table/style/style.min.css +1 -1
  105. package/lib/validator/style/style.css +1 -0
  106. package/lib/vxe-button/style/style.css +11 -0
  107. package/lib/vxe-button/style/style.min.css +1 -1
  108. package/lib/vxe-button-group/style/style.css +1 -0
  109. package/lib/vxe-checkbox/style/style.css +1 -0
  110. package/lib/vxe-checkbox-group/style/style.css +1 -0
  111. package/lib/vxe-colgroup/style/style.css +1 -0
  112. package/lib/vxe-column/style/style.css +1 -0
  113. package/lib/vxe-form/style/style.css +1 -0
  114. package/lib/vxe-form-gather/style/style.css +1 -0
  115. package/lib/vxe-form-item/style/style.css +1 -0
  116. package/lib/vxe-grid/style/style.css +2 -0
  117. package/lib/vxe-grid/style/style.min.css +1 -1
  118. package/lib/vxe-icon/style/style.css +3 -1
  119. package/lib/vxe-icon/style/style.min.css +1 -1
  120. package/lib/vxe-input/style/style.css +4 -3
  121. package/lib/vxe-input/style/style.min.css +1 -1
  122. package/lib/vxe-list/style/style.css +1 -0
  123. package/lib/vxe-loading/style/style.css +1 -0
  124. package/lib/vxe-modal/style/style.css +4 -0
  125. package/lib/vxe-modal/style/style.min.css +1 -1
  126. package/lib/vxe-optgroup/style/style.css +1 -0
  127. package/lib/vxe-option/style/style.css +1 -0
  128. package/lib/vxe-pager/style/style.css +2 -19
  129. package/lib/vxe-pager/style/style.min.css +1 -1
  130. package/lib/vxe-pulldown/style/style.css +3 -1
  131. package/lib/vxe-pulldown/style/style.min.css +1 -1
  132. package/lib/vxe-radio/style/style.css +1 -0
  133. package/lib/vxe-radio-button/style/style.css +1 -0
  134. package/lib/vxe-radio-group/style/style.css +1 -0
  135. package/lib/vxe-select/style/style.css +2 -0
  136. package/lib/vxe-select/style/style.min.css +1 -1
  137. package/lib/vxe-switch/style/style.css +1 -0
  138. package/lib/vxe-table/style/style.css +17 -10
  139. package/lib/vxe-table/style/style.min.css +1 -1
  140. package/lib/vxe-table-custom-module/style/style.css +19 -34
  141. package/lib/vxe-table-custom-module/style/style.min.css +1 -1
  142. package/lib/vxe-table-edit-module/style/style.css +1 -0
  143. package/lib/vxe-table-export-module/style/style.css +1 -0
  144. package/lib/vxe-table-filter-module/style/style.css +1 -0
  145. package/lib/vxe-table-keyboard-module/style/style.css +1 -0
  146. package/lib/vxe-table-menu-module/style/style.css +11 -27
  147. package/lib/vxe-table-menu-module/style/style.min.css +1 -1
  148. package/lib/vxe-table-validator-module/style/style.css +1 -0
  149. package/lib/vxe-textarea/style/style.css +1 -0
  150. package/lib/vxe-toolbar/style/style.css +1 -0
  151. package/lib/vxe-tooltip/style/style.css +1 -0
  152. package/package.json +1 -1
  153. package/packages/button/src/button.js +4 -3
  154. package/packages/custom/src/panel.js +167 -85
  155. package/packages/export/src/export-panel.js +11 -3
  156. package/packages/form/src/form.js +0 -3
  157. package/packages/input/src/input.js +9 -2
  158. package/packages/locale/lang/en-US.js +201 -9
  159. package/packages/locale/lang/es-ES.js +202 -10
  160. package/packages/locale/lang/ja-JP.js +214 -22
  161. package/packages/locale/lang/pt-BR.js +201 -9
  162. package/packages/locale/lang/zh-CN.js +196 -4
  163. package/packages/locale/lang/zh-TC.js +200 -8
  164. package/packages/menu/src/panel.js +38 -10
  165. package/packages/pager/src/pager.js +24 -21
  166. package/packages/select/src/select.js +5 -4
  167. package/packages/table/src/header.js +4 -3
  168. package/packages/table/src/methods.js +28 -38
  169. package/packages/v-x-e-table/src/conf.js +1 -0
  170. package/styles/button.scss +10 -0
  171. package/styles/custom.scss +23 -37
  172. package/styles/grid.scss +1 -0
  173. package/styles/input.scss +3 -3
  174. package/styles/menu.scss +21 -39
  175. package/styles/modal.scss +3 -0
  176. package/styles/old-icon.scss +1 -1
  177. package/styles/pager.scss +1 -19
  178. package/styles/pulldown.scss +2 -1
  179. package/styles/select.scss +1 -0
  180. package/styles/table.scss +14 -8
  181. package/styles/variable.scss +5 -1
  182. package/types/module/menu.d.ts +40 -3
  183. package/types/v-x-e-table/renderer.d.ts +6 -1
  184. /package/lib/icon/style/{iconfont.1724212116436.ttf → iconfont.1724894779531.ttf} +0 -0
  185. /package/lib/icon/style/{iconfont.1724212116436.woff → iconfont.1724894779531.woff} +0 -0
  186. /package/lib/icon/style/{iconfont.1724212116436.woff2 → iconfont.1724894779531.woff2} +0 -0
  187. /package/lib/{iconfont.1724212116436.ttf → iconfont.1724894779531.ttf} +0 -0
  188. /package/lib/{iconfont.1724212116436.woff → iconfont.1724894779531.woff} +0 -0
  189. /package/lib/{iconfont.1724212116436.woff2 → iconfont.1724894779531.woff2} +0 -0
@@ -2,12 +2,15 @@ export default {
2
2
  vxe: {
3
3
  base: {
4
4
  pleaseInput: '请输入',
5
- pleaseSelect: '请选择'
5
+ pleaseSelect: '请选择',
6
+ comma: ',',
7
+ fullStop: '。'
6
8
  },
7
9
  loading: {
8
10
  text: '加载中...'
9
11
  },
10
12
  error: {
13
+ downErr: '下载失败',
11
14
  groupFixed: '如果使用分组表头,冻结列必须按组设置',
12
15
  groupMouseRange: '分组表头与 "{0}" 不能同时使用,这可能会出现错误',
13
16
  groupTag: '分组列头应该使用 "{0}" 而不是 "{1}",这可能会出现错误',
@@ -17,6 +20,7 @@ export default {
17
20
  useErr: '安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',
18
21
  barUnableLink: '工具栏无法关联表格',
19
22
  expandContent: '展开行的插槽应该是 "content",请检查是否正确',
23
+ reqComp: '缺少 "{0}" 组件,请检查是否正确安装。 https://vxeui.com/#/start/useGlobal',
20
24
  reqModule: '缺少 "{0}" 模块',
21
25
  reqProp: '缺少必要的 "{0}" 参数,这可能会导致出现错误',
22
26
  emptyProp: '参数 "{0}" 不允许为空',
@@ -32,6 +36,7 @@ export default {
32
36
  notProp: '不支持的参数 "{0}"',
33
37
  checkProp: '当数据量过大时可能会导致复选框卡顿,建议设置参数 "{0}" 提升渲染速度',
34
38
  coverProp: '"{0}" 的参数 "{1}" 重复定义,这可能会出现错误',
39
+ uniField: '字段名 "{0}" 重复定义,这可能会出现错误',
35
40
  delFunc: '方法 "{0}" 已废弃,请使用 "{1}"',
36
41
  delProp: '参数 "{0}" 已废弃,请使用 "{1}"',
37
42
  delEvent: '事件 "{0}" 已废弃,请使用 "{1}"',
@@ -46,6 +51,7 @@ export default {
46
51
  emptyText: '暂无数据',
47
52
  allTitle: '全选/取消',
48
53
  seqTitle: '序号',
54
+ actionTitle: '操作',
49
55
  confirmFilter: '筛选',
50
56
  resetFilter: '重置',
51
57
  allFilter: '全部',
@@ -60,6 +66,7 @@ export default {
60
66
  customTitle: '列设置',
61
67
  customAll: '全部',
62
68
  customConfirm: '确认',
69
+ customClose: '关闭',
63
70
  customCancel: '取消',
64
71
  customRestore: '恢复默认',
65
72
  maxFixedCol: '最大冻结列的数量不能超过 {0} 个'
@@ -80,6 +87,7 @@ export default {
80
87
  },
81
88
  pager: {
82
89
  goto: '前往',
90
+ gotoTitle: '页数',
83
91
  pagesize: '{0}条/页',
84
92
  total: '共 {0} 条记录',
85
93
  pageClassifier: '页',
@@ -187,8 +195,14 @@ export default {
187
195
  expCancel: '取消'
188
196
  },
189
197
  modal: {
198
+ errTitle: '错误提示',
199
+ zoomMin: '最小化',
190
200
  zoomIn: '最大化',
191
201
  zoomOut: '还原',
202
+ close: '关闭',
203
+ miniMaxSize: '最小化窗口的数量不能超过 {0} 个'
204
+ },
205
+ drawer: {
192
206
  close: '关闭'
193
207
  },
194
208
  form: {
@@ -268,11 +282,189 @@ export default {
268
282
  }
269
283
  }
270
284
  },
285
+ imagePreview: {
286
+ popupTitle: '预览',
287
+ operBtn: {
288
+ zoomOut: '缩小',
289
+ zoomIn: '放大',
290
+ pctFull: '等比例缩放',
291
+ pct11: '显示原始尺寸',
292
+ rotateLeft: '向左旋转',
293
+ rotateRight: '向右旋转',
294
+ print: '点击打印图片',
295
+ download: '点击下载图片'
296
+ }
297
+ },
298
+ upload: {
299
+ fileBtnText: '点击或拖拽上传',
300
+ imgBtnText: '点击或拖拽上传',
301
+ dragPlaceholder: '请把文件拖放到这个区域即可上传',
302
+ imgSizeHint: '单张{0}',
303
+ imgCountHint: '最多{0}张',
304
+ fileTypeHint: '支持 {0} 文件类型',
305
+ fileSizeHint: '单个文件大小不超过{0}',
306
+ fileCountHint: '最多可上传{0}个文件',
307
+ overCountErr: '最多只能选择{0}个文件!',
308
+ overCountExtraErr: '已超出最大数量{0}个,超出的{1}个文件将被忽略!',
309
+ overSizeErr: '文件大小最大不能超过{0}!',
310
+ reUpload: '重新上传',
311
+ uploadProgress: '上传中 {0}%',
312
+ uploadErr: '上传失败',
313
+ uploadSuccess: '上传成功',
314
+ moreBtnText: '更多({0})',
315
+ viewItemTitle: '点击查看'
316
+ },
271
317
  formDesign: {
318
+ formName: '表单名称',
319
+ defFormTitle: '未命名的表单',
320
+ widgetPropTab: '控件属性',
321
+ widgetFormTab: '表单属性',
322
+ error: {
323
+ wdFormUni: '该类型的控件在表单中只允许添加一个',
324
+ wdSubUni: '该类型的控件在子表中只允许添加一个'
325
+ },
326
+ styleSetting: {
327
+ btn: '样式设置',
328
+ title: '表单的样式设置',
329
+ layoutTitle: '控件布局',
330
+ verticalLayout: '上下布局',
331
+ horizontalLayout: '横向布局',
332
+ styleTitle: '标题样式',
333
+ boldTitle: '标题加粗',
334
+ fontBold: '加粗',
335
+ fontNormal: '常规',
336
+ colonTitle: '显示冒号',
337
+ colonVisible: '显示',
338
+ colonHidden: '隐藏',
339
+ alignTitle: '对齐方式',
340
+ widthTitle: '标题宽度',
341
+ alignLeft: '居左',
342
+ alignRight: '居右',
343
+ unitPx: '像素',
344
+ unitPct: '百分比'
345
+ },
272
346
  widget: {
273
- input: '输入框',
274
- textarea: '文本域',
275
- select: '下拉框'
347
+ group: {
348
+ base: '基础控件',
349
+ layout: '布局控件',
350
+ system: '系统控件',
351
+ module: '模块控件',
352
+ chart: '图表控件',
353
+ advanced: '高级控件'
354
+ },
355
+ copyTitle: '副本_{0}',
356
+ component: {
357
+ input: '输入框',
358
+ textarea: '文本域',
359
+ select: '下拉选择',
360
+ row: '一行多列',
361
+ title: '标题',
362
+ text: '文本',
363
+ subtable: '子表',
364
+ VxeSwitch: '是/否',
365
+ VxeInput: '输入框',
366
+ VxeNumberInput: '数字',
367
+ VxeDatePicker: '日期',
368
+ VxeTextarea: '文本域',
369
+ VxeSelect: '下拉选择',
370
+ VxeTreeSelect: '树形选择',
371
+ VxeRadioGroup: '单选框',
372
+ VxeCheckboxGroup: '复选框',
373
+ VxeUploadFile: '文件',
374
+ VxeUploadImage: '图片'
375
+ }
376
+ },
377
+ widgetProp: {
378
+ name: '控件名称',
379
+ placeholder: '提示语',
380
+ required: '必填校验',
381
+ multiple: '允许多选',
382
+ displaySetting: {
383
+ name: '显示设置',
384
+ pc: '电脑端',
385
+ mobile: '手机端',
386
+ visible: '显示',
387
+ hidden: '隐藏'
388
+ },
389
+ dataSource: {
390
+ name: '数据源',
391
+ defValue: '选项{0}',
392
+ addOption: '添加选项',
393
+ batchEditOption: '批量编辑',
394
+ batchEditTip: '每行对应一个选项,支持从表格、Excel、WPS 中直接复制粘贴。',
395
+ batchEditSubTip: '每行对应一个选项,如果是分组,子项可以是空格或制表键开头,支持从表格、Excel、WPS 中直接复制粘贴。',
396
+ buildOption: '生成选项'
397
+ },
398
+ rowProp: {
399
+ colSize: '列数',
400
+ col2: '两列',
401
+ col3: '三列',
402
+ col4: '四列',
403
+ col6: '六列',
404
+ layout: '布局'
405
+ },
406
+ textProp: {
407
+ name: '内容',
408
+ alignTitle: '对齐方式',
409
+ alignLeft: '居左',
410
+ alignCenter: '居中',
411
+ alignRight: '居右',
412
+ colorTitle: '字体颜色',
413
+ sizeTitle: '字体大小',
414
+ boldTitle: '字体加粗',
415
+ fontNormal: '常规',
416
+ fontBold: '加粗'
417
+ },
418
+ subtableProp: {
419
+ seqTitle: '序号',
420
+ showSeq: '显示序号',
421
+ showCheckbox: '允许多选',
422
+ errSubDrag: '子表不支持该控件,请使用其他控件',
423
+ colPlace: '将控件拖拽进来'
424
+ },
425
+ uploadProp: {
426
+ limitFileCount: '文件数量限制',
427
+ limitFileSize: '文件大小限制',
428
+ multiFile: '允许上传多个文件',
429
+ limitImgCount: '图片数量限制',
430
+ limitImgSize: '图片大小限制',
431
+ multiImg: '允许上传多张图片'
432
+ }
433
+ }
434
+ },
435
+ listDesign: {
436
+ fieldSettingTab: '字段设置',
437
+ listSettingTab: '参数设置',
438
+ searchTitle: '查询条件',
439
+ listTitle: '列表字段',
440
+ searchField: '查询字段',
441
+ listField: '列表字段',
442
+ activeBtn: {
443
+ ActionButtonUpdate: '编辑',
444
+ ActionButtonDelete: '删除'
445
+ },
446
+ search: {
447
+ addBtn: '编辑',
448
+ emptyText: '未配置查询条件',
449
+ editPopupTitle: '编辑查询字段'
450
+ },
451
+ searchPopup: {
452
+ colTitle: '标题',
453
+ saveBtn: '保存'
454
+ }
455
+ },
456
+ text: {
457
+ copySuccess: '已复制到剪贴板',
458
+ copyError: '当前环境不支持该操作'
459
+ },
460
+ countdown: {
461
+ formats: {
462
+ yyyy: '年',
463
+ MM: '月',
464
+ dd: '天',
465
+ HH: '时',
466
+ mm: '分',
467
+ ss: '秒'
276
468
  }
277
469
  },
278
470
 
@@ -2,12 +2,15 @@ export default {
2
2
  vxe: {
3
3
  base: {
4
4
  pleaseInput: '请输入',
5
- pleaseSelect: '请选择'
5
+ pleaseSelect: '请选择',
6
+ comma: ',',
7
+ fullStop: '。'
6
8
  },
7
9
  loading: {
8
10
  text: '加載中...'
9
11
  },
10
12
  error: {
13
+ downErr: '下载失败',
11
14
  groupFixed: '如果使用分組表頭,固冻结列必須按組設定',
12
15
  groupMouseRange: '分组表頭與 "{0}" 不能同時使用,這可能會出現錯誤',
13
16
  groupTag: '分組列頭應該使用 "{0}" 而不是 "{1}",這可能會出現錯誤',
@@ -17,6 +20,7 @@ export default {
17
20
  useErr: '安裝 "{0}" 模組時發生錯誤,可能順序不正確,依賴的模組需要在Table之前安裝',
18
21
  barUnableLink: '工具欄無法關聯表格',
19
22
  expandContent: '展開行的插槽應該是 “content”,請檢查是否正確',
23
+ reqComp: '缺少 "{0}" 組件,请检查是否正确安装。 https://vxeui.com/#/start/useGlobal',
20
24
  reqModule: '缺少 "{0}" 模組',
21
25
  reqProp: '缺少必要的 "{0}" 參數,可能會導致出現錯誤',
22
26
  emptyProp: '參數 "{0}" 不允許為空',
@@ -32,6 +36,7 @@ export default {
32
36
  notProp: '不支持的參數 "{0}"',
33
37
  checkProp: '當數據量過大時可能會導致複選框卡頓,建議設置參數 "{0}" 提升渲染速度',
34
38
  coverProp: '"{0}" 的參數 "{1}" 重複定義,這可能會出現錯誤',
39
+ uniField: '字段名 "{0}" 重複定義,這可能會出現錯誤',
35
40
  delFunc: '方法 "{0}" 已停用,請使用 "{1}"',
36
41
  delProp: '參數 "{0}" 已停用,請使用 "{1}"',
37
42
  delEvent: '事件 "{0}" 已停用,請使用 "{1}"',
@@ -45,7 +50,8 @@ export default {
45
50
  table: {
46
51
  emptyText: '暫無資料',
47
52
  allTitle: '全選/取消',
48
- seqTitle: '序號',
53
+ seqTitle: '序号',
54
+ actionTitle: '操作',
49
55
  confirmFilter: '篩選',
50
56
  resetFilter: '重置',
51
57
  allFilter: '全部',
@@ -59,7 +65,8 @@ export default {
59
65
  expSrcFilename: '匯出_從_{0}',
60
66
  customTitle: '列設定',
61
67
  customAll: '全部',
62
- customConfirm: '確認',
68
+ customConfirm: '确认',
69
+ customClose: '关闭',
63
70
  customCancel: '取消',
64
71
  customRestore: '恢复默认',
65
72
  maxFixedCol: '最大冻结列的數量不能超過 {0} 個'
@@ -80,6 +87,7 @@ export default {
80
87
  },
81
88
  pager: {
82
89
  goto: '前往',
90
+ gotoTitle: '页数',
83
91
  pagesize: '{0}項/頁',
84
92
  total: '共 {0} 項記錄',
85
93
  pageClassifier: '頁',
@@ -187,8 +195,14 @@ export default {
187
195
  expCancel: '取消'
188
196
  },
189
197
  modal: {
198
+ errTitle: '錯誤提示',
199
+ zoomMin: '最小化',
190
200
  zoomIn: '最大化',
191
201
  zoomOut: '還原',
202
+ close: '關閉',
203
+ miniMaxSize: '最小化窗口的數量不能超過 {0} 個'
204
+ },
205
+ drawer: {
192
206
  close: '關閉'
193
207
  },
194
208
  form: {
@@ -204,8 +218,6 @@ export default {
204
218
  zoomOut: '還原',
205
219
  custom: '列設定',
206
220
  customAll: '全部',
207
- customConfirm: '確認',
208
- customRestore: '重置',
209
221
  fixedLeft: '冻结在左側',
210
222
  fixedRight: '冻结在右側',
211
223
  cancelFixed: '取消冻结列'
@@ -268,11 +280,191 @@ export default {
268
280
  }
269
281
  }
270
282
  },
283
+ imagePreview: {
284
+ popupTitle: '預覽',
285
+ operBtn: {
286
+ zoomOut: '縮小',
287
+ zoomIn: '放大',
288
+ pctFull: '等比例縮放',
289
+ pct11: '顯示原始尺寸',
290
+ rotateLeft: '向左旋轉',
291
+ rotateRight: '向右旋轉',
292
+ print: '點擊打印圖片',
293
+ download: '點擊下載圖片'
294
+ }
295
+ },
296
+ upload: {
297
+ fileBtnText: '點擊或拖拽上傳',
298
+ imgBtnText: '點擊或拖拽上傳',
299
+ dragPlaceholder: '請把文件拖放到這個區域即可上傳',
300
+ imgSizeHint: '單張{0}',
301
+ imgCountHint: '最多{0}張',
302
+ fileTypeHint: '支持 {0} 文件類型',
303
+ fileSizeHint: '單個文件大小不超過{0}',
304
+ fileCountHint: '最多可上傳{0}个文件',
305
+ overCountErr: '最多隻能選擇{0}个文件!',
306
+ overCountExtraErr: '已超出最大數量{0}個,超出的{1}個文件將被忽略!',
307
+ overSizeErr: '文件大小最大不能超過{0}!',
308
+ reUpload: '重新上傳',
309
+ uploadProgress: '上傳中 {0}%',
310
+ uploadErr: '上傳失敗',
311
+ uploadSuccess: '上傳成功',
312
+ moreBtnText: '更多({0})',
313
+ viewItemTitle: '點擊查看'
314
+ },
271
315
  formDesign: {
316
+ formName: '表單名稱',
317
+ defFormTitle: '未命名的表單',
318
+ widgetPropTab: '控件屬性',
319
+ widgetFormTab: '表單屬性',
320
+ error: {
321
+ wdFormUni: '該類型的控件在表單中只允許添加一個',
322
+ wdSubUni: '該類型的控件在子表中只允許添加一個'
323
+ },
324
+ styleSetting: {
325
+ btn: '樣式設置',
326
+ title: '表單的樣式設置',
327
+ layoutTitle: '控件佈局',
328
+ verticalLayout: '上下佈局',
329
+ horizontalLayout: '橫向佈局',
330
+ styleTitle: '標題樣式',
331
+ boldTitle: '標題加粗',
332
+ fontBold: '加粗',
333
+ fontNormal: '常規',
334
+ colonTitle: '顯示冒號',
335
+ colonVisible: '顯示',
336
+ colonHidden: '隱藏',
337
+ alignTitle: '對齊方式',
338
+ widthTitle: '標題寬度',
339
+ alignLeft: '居左',
340
+ alignRight: '居右',
341
+ unitPx: '像素',
342
+ unitPct: '百分比'
343
+ },
272
344
  widget: {
273
- input: '輸入框',
274
- textarea: '文本域',
275
- select: '下拉框'
345
+ group: {
346
+ base: '基礎控件',
347
+ layout: '佈局控件',
348
+ system: '系統控件',
349
+ module: '模塊控件',
350
+ chart: '圖表控件',
351
+ advanced: '高級控件'
352
+ },
353
+ copyTitle: '副本_{0}',
354
+ component: {
355
+ input: '輸入框',
356
+ textarea: '文本域',
357
+ select: '下拉選擇',
358
+ row: '一行多列',
359
+ title: '標題',
360
+ text: '文本',
361
+ subtable: '子表',
362
+ VxeSwitch: '是/否',
363
+ VxeInput: '輸入框',
364
+ VxeNumberInput: '數字',
365
+ VxeDatePicker: '日期',
366
+ VxeTextarea: '文本域',
367
+ VxeSelect: '下拉選擇',
368
+ VxeTreeSelect: '樹形選擇',
369
+ VxeRadioGroup: '單選框',
370
+ VxeCheckboxGroup: '複選框',
371
+ VxeUploadFile: '文件',
372
+ VxeUploadImage: '圖片'
373
+ }
374
+ },
375
+ widgetProp: {
376
+ name: '控件名稱',
377
+ placeholder: '控件提示',
378
+ required: '必填校驗',
379
+ multiple: '允許多選',
380
+ displaySetting: {
381
+ name: '顯示設置',
382
+ pc: '電腦端',
383
+ mobile: '手機端',
384
+ visible: '顯示',
385
+ hidden: '隱藏'
386
+ },
387
+ dataSource: {
388
+ name: '數據源',
389
+ defValue: '選項{0}',
390
+ addOption: '添加選項',
391
+ batchEditOption: '批量編輯',
392
+ batchEditTip: '每行對應一個選項,支持從表格、Excel、WPS 中直接複製粘貼。',
393
+ batchEditSubTip: '每行對應一個選項,如果是分組,子項可以是空格或製表鍵開頭,支持從表格、Excel、WPS 中直接複製粘貼。',
394
+ buildOption: '生成選項'
395
+ },
396
+ rowProp: {
397
+ colSize: '列數',
398
+ col2: '两列',
399
+ col3: '三列',
400
+ col4: '四列',
401
+ col6: '六列',
402
+ layout: '佈局'
403
+ },
404
+ textProp: {
405
+ name: '内容',
406
+ alignTitle: '對齊方式',
407
+ alignLeft: '居左',
408
+ alignCenter: '居中',
409
+ alignRight: '居右',
410
+ colorTitle: '字體顏色',
411
+ sizeTitle: '字體大小',
412
+ boldTitle: '字體加粗',
413
+ fontNormal: '常規',
414
+ fontBold: '加粗'
415
+ },
416
+ subtableProp: {
417
+ seqTitle: '序號',
418
+ showSeq: '顯示序號',
419
+ showCheckbox: '允許多選',
420
+ errSubDrag: '子表不支持該控件,請使用其他控件',
421
+ colPlace: '将控件拖拽进来'
422
+ },
423
+ uploadProp: {
424
+ uploadProp: {
425
+ limitFileCount: '文件數量限制',
426
+ limitFileSize: '文件大小限制',
427
+ multiFile: '允許上傳多個文件',
428
+ limitImgCount: '圖片數量限制',
429
+ limitImgSize: '圖片大小限制',
430
+ multiImg: '允許上傳多張圖片'
431
+ }
432
+ }
433
+ }
434
+ },
435
+ listDesign: {
436
+ fieldSettingTab: '字段設置',
437
+ listSettingTab: '参数设置',
438
+ searchTitle: '查询条件',
439
+ listTitle: '列表字段',
440
+ searchField: '查询字段',
441
+ listField: '列表字段',
442
+ activeBtn: {
443
+ ActionButtonUpdate: '編輯',
444
+ ActionButtonDelete: '刪除'
445
+ },
446
+ search: {
447
+ addBtn: '编辑',
448
+ emptyText: '未配置查询条件',
449
+ editPopupTitle: '编辑查询字段'
450
+ },
451
+ searchPopup: {
452
+ colTitle: '标题',
453
+ saveBtn: '保存'
454
+ }
455
+ },
456
+ text: {
457
+ copySuccess: '已複製到剪貼板',
458
+ copyError: '當前環境不支持該操作'
459
+ },
460
+ countdown: {
461
+ formats: {
462
+ yyyy: '年',
463
+ MM: '月',
464
+ dd: '天',
465
+ HH: '时',
466
+ mm: '分',
467
+ ss: '秒'
276
468
  }
277
469
  },
278
470
 
@@ -1,4 +1,5 @@
1
1
  import { getFuncText } from '../../tools/utils'
2
+ import GlobalConfig from '../../v-x-e-table/src/conf'
2
3
 
3
4
  export default {
4
5
  name: 'VxeTableMenuPanel',
@@ -29,6 +30,8 @@ export default {
29
30
  key: gIndex
30
31
  }, options.map((item, index) => {
31
32
  const hasChildMenus = item.children && item.children.some((child) => child.visible !== false)
33
+ const prefixOpts = Object.assign({}, item.prefixConfig)
34
+ const suffixOpts = Object.assign({}, item.suffixConfig)
32
35
  return item.visible === false ? null : h('li', {
33
36
  class: [item.className, {
34
37
  'link--disabled': item.disabled,
@@ -50,21 +53,33 @@ export default {
50
53
  }
51
54
  }
52
55
  }, [
53
- h('i', {
54
- class: ['vxe-context-menu--link-prefix', item.prefixIcon]
55
- }),
56
+ h('div', {
57
+ class: ['vxe-context-menu--link-prefix', prefixOpts.className || '']
58
+ }, [
59
+ h('i', {
60
+ class: prefixOpts.icon || item.prefixIcon
61
+ }),
62
+ prefixOpts.content ? h('span', {}, `${prefixOpts.content}`) : _e()
63
+ ]),
56
64
  h('span', {
57
65
  class: 'vxe-context-menu--link-content'
58
66
  }, getFuncText(item.name)),
59
- h('i', {
60
- class: ['vxe-context-menu--link-suffix', hasChildMenus ? item.suffixIcon || 'suffix--haschild' : item.suffixIcon]
61
- })
67
+ h('div', {
68
+ class: ['vxe-context-menu--link-suffix', suffixOpts.className || '']
69
+ }, [
70
+ h('i', {
71
+ class: (suffixOpts.icon || item.suffixIcon) || (hasChildMenus ? GlobalConfig.icon.TABLE_MENU_OPTIONS : '')
72
+ }),
73
+ suffixOpts.content ? h('span', `${suffixOpts.content}`) : _e()
74
+ ])
62
75
  ]),
63
76
  hasChildMenus ? h('ul', {
64
77
  class: ['vxe-table--context-menu-clild-wrapper', {
65
78
  'is--show': item === ctxMenuStore.selected && ctxMenuStore.showChild
66
79
  }]
67
80
  }, item.children.map((child, cIndex) => {
81
+ const childPrefixOpts = Object.assign({}, child.prefixConfig)
82
+ const childSuffixOpts = Object.assign({}, child.suffixConfig)
68
83
  return child.visible === false ? null : h('li', {
69
84
  class: [child.className, {
70
85
  'link--disabled': child.disabled,
@@ -86,12 +101,25 @@ export default {
86
101
  }
87
102
  }
88
103
  }, [
89
- h('i', {
90
- class: ['vxe-context-menu--link-prefix', child.prefixIcon]
91
- }),
104
+ h('div', {
105
+ class: ['vxe-context-menu--link-prefix', childPrefixOpts.className || '']
106
+ }, [
107
+ h('i', {
108
+ class: childPrefixOpts.icon || child.prefixIcon
109
+ }),
110
+ childPrefixOpts.content ? h('span', `${childPrefixOpts.content}`) : _e()
111
+ ]),
92
112
  h('span', {
93
113
  class: 'vxe-context-menu--link-content'
94
- }, getFuncText(child.name))
114
+ }, getFuncText(child.name)),
115
+ h('div', {
116
+ class: ['vxe-context-menu--link-suffix', childSuffixOpts.className || '']
117
+ }, [
118
+ h('i', {
119
+ class: childSuffixOpts.icon
120
+ }),
121
+ childSuffixOpts.content ? h('span', `${childSuffixOpts.content}`) : _e()
122
+ ])
95
123
  ])
96
124
  ])
97
125
  })) : null
@@ -298,17 +298,21 @@ export default {
298
298
  isFull ? h('span', {
299
299
  class: 'vxe-pager--goto-text'
300
300
  }, GlobalConfig.i18n('vxe.pager.goto')) : null,
301
- h('input', {
301
+ h('vxe-input', {
302
302
  class: 'vxe-pager--goto',
303
- domProps: {
304
- value: this.inpCurrPage
305
- },
306
- attrs: {
307
- type: 'text',
308
- autocomplete: 'off'
303
+ props: {
304
+ value: this.inpCurrPage,
305
+ placeholder: GlobalConfig.i18n('vxe.pager.gotoTitle'),
306
+ align: 'center',
307
+ type: 'integer',
308
+ max: this.pageCount,
309
+ min: 1,
310
+ controls: false
309
311
  },
310
312
  on: {
311
- input: this.jumpInputEvent,
313
+ modelValue: (val) => {
314
+ this.inpCurrPage = val
315
+ },
312
316
  keydown: this.jumpKeydownEvent,
313
317
  blur: this.triggerJumpEvent
314
318
  }
@@ -448,25 +452,24 @@ export default {
448
452
  this.$emit('update:pageSize', pageSize)
449
453
  this.$emit('page-change', { type: 'size', pageSize, currentPage })
450
454
  },
451
- jumpInputEvent (evnt) {
452
- this.inpCurrPage = evnt.target.value
453
- },
454
- jumpKeydownEvent (evnt) {
455
- if (evnt.keyCode === 13) {
456
- this.triggerJumpEvent(evnt)
457
- } else if (evnt.keyCode === 38) {
458
- evnt.preventDefault()
455
+ jumpKeydownEvent (params) {
456
+ const { $event } = params
457
+ if ($event.keyCode === 13) {
458
+ this.triggerJumpEvent(params)
459
+ } else if ($event.keyCode === 38) {
460
+ $event.preventDefault()
459
461
  this.nextPage()
460
- } else if (evnt.keyCode === 40) {
461
- evnt.preventDefault()
462
+ } else if ($event.keyCode === 40) {
463
+ $event.preventDefault()
462
464
  this.prevPage()
463
465
  }
464
466
  },
465
- triggerJumpEvent (evnt) {
466
- const value = XEUtils.toInteger(evnt.target.value)
467
+ triggerJumpEvent (params) {
468
+ const { $event } = params
469
+ const value = XEUtils.toInteger($event.target.value)
467
470
  const current = value <= 0 ? 1 : value >= this.pageCount ? this.pageCount : value
468
471
  const currPage = XEUtils.toValueString(current)
469
- evnt.target.value = currPage
472
+ $event.target.value = currPage
470
473
  this.inpCurrPage = currPage
471
474
  this.jumpPage(current)
472
475
  }