vxe-pc-ui 4.9.24 → 4.9.26

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 (37) hide show
  1. package/es/date-range-picker/src/date-range-picker.js +13 -2
  2. package/es/icon/style.css +1 -1
  3. package/es/style.css +1 -1
  4. package/es/style.min.css +1 -1
  5. package/es/table-select/src/table-select.js +28 -23
  6. package/es/ui/index.js +1 -1
  7. package/es/ui/src/log.js +1 -1
  8. package/lib/date-range-picker/src/date-range-picker.js +14 -2
  9. package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
  10. package/lib/icon/style/style.css +1 -1
  11. package/lib/icon/style/style.min.css +1 -1
  12. package/lib/index.umd.js +50 -31
  13. package/lib/index.umd.min.js +1 -1
  14. package/lib/style.css +1 -1
  15. package/lib/style.min.css +1 -1
  16. package/lib/table-select/src/table-select.js +34 -27
  17. package/lib/table-select/src/table-select.min.js +1 -1
  18. package/lib/ui/index.js +1 -1
  19. package/lib/ui/index.min.js +1 -1
  20. package/lib/ui/src/log.js +1 -1
  21. package/lib/ui/src/log.min.js +1 -1
  22. package/package.json +1 -1
  23. package/packages/date-range-picker/src/date-range-picker.ts +13 -2
  24. package/packages/table-select/src/table-select.ts +29 -23
  25. package/types/components/date-range-picker.d.ts +5 -0
  26. /package/es/icon/{iconfont.1757578479445.ttf → iconfont.1757663302345.ttf} +0 -0
  27. /package/es/icon/{iconfont.1757578479445.woff → iconfont.1757663302345.woff} +0 -0
  28. /package/es/icon/{iconfont.1757578479445.woff2 → iconfont.1757663302345.woff2} +0 -0
  29. /package/es/{iconfont.1757578479445.ttf → iconfont.1757663302345.ttf} +0 -0
  30. /package/es/{iconfont.1757578479445.woff → iconfont.1757663302345.woff} +0 -0
  31. /package/es/{iconfont.1757578479445.woff2 → iconfont.1757663302345.woff2} +0 -0
  32. /package/lib/icon/style/{iconfont.1757578479445.ttf → iconfont.1757663302345.ttf} +0 -0
  33. /package/lib/icon/style/{iconfont.1757578479445.woff → iconfont.1757663302345.woff} +0 -0
  34. /package/lib/icon/style/{iconfont.1757578479445.woff2 → iconfont.1757663302345.woff2} +0 -0
  35. /package/lib/{iconfont.1757578479445.ttf → iconfont.1757663302345.ttf} +0 -0
  36. /package/lib/{iconfont.1757578479445.woff → iconfont.1757663302345.woff} +0 -0
  37. /package/lib/{iconfont.1757578479445.woff2 → iconfont.1757663302345.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -3588,14 +3588,14 @@ function checkDynamic() {
3588
3588
  }
3589
3589
  ;// CONCATENATED MODULE: ./packages/ui/src/log.ts
3590
3590
 
3591
- const log_version = `ui v${"4.9.24"}`;
3591
+ const log_version = `ui v${"4.9.26"}`;
3592
3592
  const warnLog = log.create('warn', log_version);
3593
3593
  const errLog = log.create('error', log_version);
3594
3594
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
3595
3595
 
3596
3596
 
3597
3597
 
3598
- const ui_version = "4.9.24";
3598
+ const ui_version = "4.9.26";
3599
3599
  index_esm_VxeUI.uiVersion = ui_version;
3600
3600
  index_esm_VxeUI.dynamicApp = dynamicApp;
3601
3601
  function config(options) {
@@ -19342,6 +19342,7 @@ const DatePicker = VxeDatePicker;
19342
19342
  labelFormat: String,
19343
19343
  valueFormat: String,
19344
19344
  timeFormat: String,
19345
+ valueType: String,
19345
19346
  editable: {
19346
19347
  type: Boolean,
19347
19348
  default: true
@@ -19586,9 +19587,20 @@ const DatePicker = VxeDatePicker;
19586
19587
  };
19587
19588
  const getRangeValue = (sValue, eValue) => {
19588
19589
  const {
19589
- modelValue
19590
+ modelValue,
19591
+ valueType
19590
19592
  } = props;
19591
- const isArr = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(modelValue);
19593
+ let isArr = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(modelValue);
19594
+ if (valueType) {
19595
+ switch (valueType) {
19596
+ case 'array':
19597
+ isArr = true;
19598
+ break;
19599
+ case 'string':
19600
+ isArr = false;
19601
+ break;
19602
+ }
19603
+ }
19592
19604
  if (sValue || eValue) {
19593
19605
  const rest = [sValue || '', eValue || ''];
19594
19606
  if (isArr) {
@@ -35985,35 +35997,45 @@ function getRowUniqueId() {
35985
35997
  return Object.assign({}, getConfig().tableSelect.popupConfig, props.popupConfig);
35986
35998
  });
35987
35999
  const computeGridOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
35988
- const opts = Object.assign({}, getConfig().tableSelect.gridConfig, props.gridConfig, {
36000
+ return Object.assign({}, getConfig().tableSelect.gridConfig, props.gridConfig, {
35989
36001
  data: undefined,
35990
36002
  columns: undefined
35991
36003
  });
36004
+ });
36005
+ const computeSelectGridOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
36006
+ const gridOpts = computeGridOpts.value;
35992
36007
  const {
35993
36008
  proxyConfig
35994
- } = opts;
35995
- const ajaxMethods = proxyConfig && proxyConfig.ajax ? proxyConfig.ajax.query : null;
35996
- if (proxyConfig && ajaxMethods) {
35997
- const resConfigs = proxyConfig.response || proxyConfig.props || {};
35998
- opts.proxyConfig = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().merge({}, proxyConfig, {
35999
- ajax: {
36000
- query(params, ...args) {
36001
- return Promise.resolve(ajaxMethods(params, ...args)).then(rest => {
36002
- const listProp = resConfigs.list;
36003
- const tableData = (listProp ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(listProp) ? listProp({
36004
- data: rest,
36005
- $table: null,
36006
- $grid: null,
36007
- $gantt: null
36008
- }) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(rest, listProp) : rest) || [];
36009
- cacheDataMap(tableData || []);
36010
- return rest;
36011
- });
36012
- }
36009
+ } = gridOpts;
36010
+ if (proxyConfig) {
36011
+ const proxyAjax = proxyConfig.ajax;
36012
+ if (proxyAjax && proxyAjax.query) {
36013
+ const newProxyConfig = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(proxyConfig, true);
36014
+ const ajaxMethods = proxyAjax.query;
36015
+ if (ajaxMethods) {
36016
+ const resConfigs = proxyConfig.response || proxyConfig.props || {};
36017
+ Object.assign(newProxyConfig.ajax, {
36018
+ query(params, ...args) {
36019
+ return Promise.resolve(ajaxMethods(params, ...args)).then(rest => {
36020
+ const listProp = resConfigs.list;
36021
+ const tableData = (listProp ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(listProp) ? listProp({
36022
+ data: rest,
36023
+ $table: null,
36024
+ $grid: null,
36025
+ $gantt: null
36026
+ }) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(rest, listProp) : rest) || [];
36027
+ cacheDataMap(tableData || []);
36028
+ return rest;
36029
+ });
36030
+ }
36031
+ });
36013
36032
  }
36014
- });
36033
+ return Object.assign({}, gridOpts, {
36034
+ proxyConfig: newProxyConfig
36035
+ });
36036
+ }
36015
36037
  }
36016
- return opts;
36038
+ return gridOpts;
36017
36039
  });
36018
36040
  const computeSelectLabel = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
36019
36041
  const {
@@ -36421,7 +36443,7 @@ function getRowUniqueId() {
36421
36443
  const {
36422
36444
  className: popupClassName
36423
36445
  } = popupOpts;
36424
- const gridOpts = computeGridOpts.value;
36446
+ const selectGridOpts = computeSelectGridOpts.value;
36425
36447
  const rowOpts = computeRowOpts.value;
36426
36448
  const popupWrapperStyle = computePopupWrapperStyle.value;
36427
36449
  const headerSlot = slots.header;
@@ -36489,7 +36511,7 @@ function getRowUniqueId() {
36489
36511
  class: 'vxe-table-select-grid--wrapper',
36490
36512
  style: popupWrapperStyle
36491
36513
  }, [VxeTableGridComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeTableGridComponent, {
36492
- ...gridOpts,
36514
+ ...selectGridOpts,
36493
36515
  ...gridEvents,
36494
36516
  class: 'vxe-table-select--grid',
36495
36517
  ref: refGrid,
@@ -36528,9 +36550,6 @@ function getRowUniqueId() {
36528
36550
  if (gridConfig.proxyConfig.autoLoad !== false) {
36529
36551
  reactData.initialized = true;
36530
36552
  }
36531
- if (gridConfig.pagerConfig && gridConfig.pagerConfig.enabled !== false) {
36532
- warnLog('vxe.error.notProp', ['proxy-config & grid-config.pagerConfig']);
36533
- }
36534
36553
  }
36535
36554
  globalEvents.on($xeTableSelect, 'mousewheel', handleGlobalMousewheelEvent);
36536
36555
  globalEvents.on($xeTableSelect, 'mousedown', handleGlobalMousedownEvent);