vxe-table 4.3.0 → 4.3.3

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 (66) hide show
  1. package/es/form/src/form-item.js +19 -6
  2. package/es/form/style.css +1 -0
  3. package/es/icon/style.css +41 -10
  4. package/es/loading/index.d.ts +4 -0
  5. package/es/loading/style.css +98 -0
  6. package/es/style.css +1 -1
  7. package/es/style.min.css +1 -1
  8. package/es/table/style.css +90 -0
  9. package/es/toolbar/src/toolbar.js +7 -6
  10. package/es/tools/log.js +1 -1
  11. package/es/v-x-e-table/index.js +1 -1
  12. package/es/v-x-e-table/style.css +42 -10
  13. package/es/vxe-form/style.css +1 -0
  14. package/es/vxe-icon/style.css +41 -10
  15. package/es/vxe-loading/index.d.ts +4 -0
  16. package/es/vxe-loading/index.js +3 -0
  17. package/es/vxe-loading/style.css +98 -0
  18. package/es/vxe-table/style.css +90 -0
  19. package/lib/form/src/form-item.js +18 -4
  20. package/lib/form/src/form-item.min.js +1 -1
  21. package/lib/form/style/style.css +1 -0
  22. package/lib/form/style/style.min.css +1 -1
  23. package/lib/icon/style/style.css +41 -10
  24. package/lib/icon/style/style.min.css +1 -1
  25. package/lib/index.umd.js +27 -12
  26. package/lib/index.umd.min.js +1 -1
  27. package/lib/loading/index.d.ts +4 -0
  28. package/lib/loading/style/index.js +1 -0
  29. package/lib/loading/style/style.css +98 -0
  30. package/lib/loading/style/style.min.css +1 -0
  31. package/lib/style.css +1 -1
  32. package/lib/style.min.css +1 -1
  33. package/lib/table/style/style.css +90 -0
  34. package/lib/table/style/style.min.css +1 -1
  35. package/lib/toolbar/src/toolbar.js +7 -6
  36. package/lib/toolbar/src/toolbar.min.js +1 -1
  37. package/lib/tools/log.js +1 -1
  38. package/lib/tools/log.min.js +1 -1
  39. package/lib/v-x-e-table/index.js +1 -1
  40. package/lib/v-x-e-table/index.min.js +1 -1
  41. package/lib/v-x-e-table/style/style.css +42 -10
  42. package/lib/v-x-e-table/style/style.min.css +1 -1
  43. package/lib/vxe-form/style/style.css +1 -0
  44. package/lib/vxe-form/style/style.min.css +1 -1
  45. package/lib/vxe-icon/style/style.css +41 -10
  46. package/lib/vxe-icon/style/style.min.css +1 -1
  47. package/lib/vxe-loading/index.d.ts +4 -0
  48. package/lib/vxe-loading/index.js +30 -0
  49. package/lib/vxe-loading/index.min.js +1 -0
  50. package/lib/vxe-loading/style/style.css +98 -0
  51. package/lib/vxe-loading/style/style.min.css +1 -0
  52. package/lib/vxe-table/style/style.css +90 -0
  53. package/lib/vxe-table/style/style.min.css +1 -1
  54. package/package.json +1 -1
  55. package/packages/form/src/form-item.ts +19 -6
  56. package/packages/loading/index.d.ts +4 -0
  57. package/packages/toolbar/src/toolbar.ts +7 -6
  58. package/styles/footer.scss +0 -22
  59. package/styles/form.scss +1 -0
  60. package/styles/icon.scss +54 -13
  61. package/styles/loading.scss +2 -0
  62. package/styles/modules.scss +1 -6
  63. package/styles/table.scss +25 -0
  64. package/types/all.d.ts +4 -2
  65. package/types/loading.d.ts +10 -0
  66. package/types/toolbar.d.ts +6 -1
package/lib/index.umd.js CHANGED
@@ -8872,7 +8872,7 @@ var es_array_concat = __webpack_require__("99af");
8872
8872
 
8873
8873
 
8874
8874
  function getLog(message, params) {
8875
- return "[vxe-table v".concat("4.3.0-beta.11", "] ").concat(src_conf.i18n(message, params));
8875
+ return "[vxe-table v".concat("4.3.3", "] ").concat(src_conf.i18n(message, params));
8876
8876
  }
8877
8877
 
8878
8878
  function outLog(type) {
@@ -10906,7 +10906,7 @@ var v_x_e_table_config = new v_x_e_table_VXETableConfig();
10906
10906
  var v = 'v4';
10907
10907
  var VXETable = {
10908
10908
  v: v,
10909
- version: "4.3.0-beta.11",
10909
+ version: "4.3.3",
10910
10910
  setup: setup_setup,
10911
10911
  interceptor: interceptor,
10912
10912
  renderer: renderer,
@@ -26226,13 +26226,13 @@ dynamicApp.component(grid.name, grid);
26226
26226
  var refreshOpts = computeRefreshOpts.value;
26227
26227
 
26228
26228
  if (!isRefresh) {
26229
- var query = refreshOpts.query;
26229
+ var queryMethod = refreshOpts.queryMethod || refreshOpts.query;
26230
26230
 
26231
- if (query) {
26231
+ if (queryMethod) {
26232
26232
  reactData.isRefresh = true;
26233
26233
 
26234
26234
  try {
26235
- Promise.resolve(query({})).catch(function (e) {
26235
+ Promise.resolve(queryMethod({})).catch(function (e) {
26236
26236
  return e;
26237
26237
  }).then(function () {
26238
26238
  reactData.isRefresh = false;
@@ -26242,7 +26242,7 @@ dynamicApp.component(grid.name, grid);
26242
26242
  }
26243
26243
  } else if ($xegrid) {
26244
26244
  reactData.isRefresh = true;
26245
- $xegrid.commitProxy('reload').catch(function (e) {
26245
+ $xegrid.commitProxy(refreshOpts.code || 'reload').catch(function (e) {
26246
26246
  return e;
26247
26247
  }).then(function () {
26248
26248
  reactData.isRefresh = false;
@@ -26600,9 +26600,10 @@ dynamicApp.component(grid.name, grid);
26600
26600
  Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])(function () {
26601
26601
  var refresh = props.refresh;
26602
26602
  var refreshOpts = computeRefreshOpts.value;
26603
+ var queryMethod = refreshOpts.queryMethod || refreshOpts.query;
26603
26604
 
26604
- if (refresh && !$xegrid && !refreshOpts.query) {
26605
- warnLog('vxe.error.notFunc', ['query']);
26605
+ if (refresh && !$xegrid && !queryMethod) {
26606
+ warnLog('vxe.error.notFunc', ['queryMethod']);
26606
26607
  }
26607
26608
  });
26608
26609
 
@@ -29725,8 +29726,14 @@ var formItemProps = {
29725
29726
  field: String,
29726
29727
  span: [String, Number],
29727
29728
  align: String,
29728
- titleAlign: String,
29729
- titleWidth: [String, Number],
29729
+ titleAlign: {
29730
+ type: String,
29731
+ default: null
29732
+ },
29733
+ titleWidth: {
29734
+ type: [String, Number],
29735
+ default: null
29736
+ },
29730
29737
  titleColon: {
29731
29738
  type: Boolean,
29732
29739
  default: null
@@ -29786,6 +29793,10 @@ var formItemProps = {
29786
29793
  reactData = $xeform.reactData;
29787
29794
  var data = props.data,
29788
29795
  rules = props.rules,
29796
+ allTitleAlign = props.titleAlign,
29797
+ allTitleWidth = props.titleWidth,
29798
+ allTitleColon = props.titleColon,
29799
+ allTitleAsterisk = props.titleAsterisk,
29789
29800
  allTitleOverflow = props.titleOverflow;
29790
29801
  var collapseAll = reactData.collapseAll;
29791
29802
 
@@ -29810,8 +29821,10 @@ var formItemProps = {
29810
29821
  var titleSlot = slots ? slots.title : null;
29811
29822
  var span = item.span || props.span;
29812
29823
  var align = item.align || props.align;
29813
- var titleAlign = item.titleAlign || props.titleAlign;
29814
- var titleWidth = item.titleWidth || props.titleWidth;
29824
+ var titleAlign = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eqNull(item.titleAlign) ? allTitleAlign : item.titleAlign;
29825
+ var titleWidth = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eqNull(item.titleWidth) ? allTitleWidth : item.titleWidth;
29826
+ var titleColon = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eqNull(item.titleColon) ? allTitleColon : item.titleColon;
29827
+ var titleAsterisk = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eqNull(item.titleAsterisk) ? allTitleAsterisk : item.titleAsterisk;
29815
29828
  var itemOverflow = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isUndefined(titleOverflow) || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isNull(titleOverflow) ? allTitleOverflow : titleOverflow;
29816
29829
  var showEllipsis = itemOverflow === 'ellipsis';
29817
29830
  var showTitle = itemOverflow === 'title';
@@ -29880,6 +29893,8 @@ var formItemProps = {
29880
29893
  ref: refElem,
29881
29894
  class: ['vxe-form--item', item.id, span ? "vxe-col--".concat(span, " is--span") : '', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(className) ? className(params) : className : '', itemClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(itemClassName) ? itemClassName(params) : itemClassName : '', {
29882
29895
  'is--title': title,
29896
+ 'is--colon': titleColon,
29897
+ 'is--asterisk': titleAsterisk,
29883
29898
  'is--required': isRequired,
29884
29899
  'is--hidden': folding && collapseAll,
29885
29900
  'is--active': isActivetem($xeform, item),