vxe-pc-ui 4.11.42 → 4.11.44

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 (40) hide show
  1. package/es/backtop/src/backtop.js +30 -5
  2. package/es/icon/style.css +1 -1
  3. package/es/select/src/select.js +34 -9
  4. package/es/style.css +1 -1
  5. package/es/style.min.css +1 -1
  6. package/es/ui/index.js +1 -1
  7. package/es/ui/src/log.js +1 -1
  8. package/lib/backtop/src/backtop.js +35 -6
  9. package/lib/backtop/src/backtop.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 +72 -19
  13. package/lib/index.umd.min.js +1 -1
  14. package/lib/select/src/select.js +35 -11
  15. package/lib/select/src/select.min.js +1 -1
  16. package/lib/style.css +1 -1
  17. package/lib/style.min.css +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/backtop/src/backtop.ts +30 -5
  24. package/packages/select/src/select.ts +33 -9
  25. package/types/components/backtop.d.ts +1 -0
  26. package/types/components/select.d.ts +44 -0
  27. package/types/components/table.d.ts +2 -2
  28. package/types/components/upload.d.ts +1 -1
  29. /package/es/icon/{iconfont.1768142303827.ttf → iconfont.1768284745337.ttf} +0 -0
  30. /package/es/icon/{iconfont.1768142303827.woff → iconfont.1768284745337.woff} +0 -0
  31. /package/es/icon/{iconfont.1768142303827.woff2 → iconfont.1768284745337.woff2} +0 -0
  32. /package/es/{iconfont.1768142303827.ttf → iconfont.1768284745337.ttf} +0 -0
  33. /package/es/{iconfont.1768142303827.woff → iconfont.1768284745337.woff} +0 -0
  34. /package/es/{iconfont.1768142303827.woff2 → iconfont.1768284745337.woff2} +0 -0
  35. /package/lib/icon/style/{iconfont.1768142303827.ttf → iconfont.1768284745337.ttf} +0 -0
  36. /package/lib/icon/style/{iconfont.1768142303827.woff → iconfont.1768284745337.woff} +0 -0
  37. /package/lib/icon/style/{iconfont.1768142303827.woff2 → iconfont.1768284745337.woff2} +0 -0
  38. /package/lib/{iconfont.1768142303827.ttf → iconfont.1768284745337.ttf} +0 -0
  39. /package/lib/{iconfont.1768142303827.woff → iconfont.1768284745337.woff} +0 -0
  40. /package/lib/{iconfont.1768142303827.woff2 → iconfont.1768284745337.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -3661,14 +3661,14 @@ function checkDynamic() {
3661
3661
  }
3662
3662
  ;// CONCATENATED MODULE: ./packages/ui/src/log.ts
3663
3663
 
3664
- const log_version = `ui v${"4.11.42"}`;
3664
+ const log_version = `ui v${"4.11.44"}`;
3665
3665
  const warnLog = log.create('warn', log_version);
3666
3666
  const errLog = log.create('error', log_version);
3667
3667
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
3668
3668
 
3669
3669
 
3670
3670
 
3671
- const ui_version = "4.11.42";
3671
+ const ui_version = "4.11.44";
3672
3672
  index_esm_VxeUI.uiVersion = ui_version;
3673
3673
  index_esm_VxeUI.dynamicApp = dynamicApp;
3674
3674
  function config(options) {
@@ -7538,6 +7538,7 @@ const Button = VxeButton;
7538
7538
 
7539
7539
 
7540
7540
 
7541
+
7541
7542
  function createInternalData() {
7542
7543
  return {
7543
7544
  targetEl: null
@@ -7545,7 +7546,8 @@ function createInternalData() {
7545
7546
  }
7546
7547
  function createReactData() {
7547
7548
  return {
7548
- showBtn: false
7549
+ showBtn: false,
7550
+ backtopZindex: 0
7549
7551
  };
7550
7552
  }
7551
7553
  /* harmony default export */ var backtop = (defineVxeComponent({
@@ -7632,9 +7634,11 @@ function createReactData() {
7632
7634
  const computeWrapperStyle = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
7633
7635
  const {
7634
7636
  right,
7635
- bottom,
7636
- zIndex
7637
+ bottom
7637
7638
  } = props;
7639
+ const {
7640
+ backtopZindex
7641
+ } = reactData;
7638
7642
  const stys = {};
7639
7643
  if (right) {
7640
7644
  stys.right = toCssUnit(right);
@@ -7642,8 +7646,8 @@ function createReactData() {
7642
7646
  if (bottom) {
7643
7647
  stys.bottom = toCssUnit(bottom);
7644
7648
  }
7645
- if (zIndex) {
7646
- stys.zIndex = zIndex;
7649
+ if (backtopZindex) {
7650
+ stys.zIndex = backtopZindex;
7647
7651
  }
7648
7652
  return stys;
7649
7653
  });
@@ -7662,13 +7666,38 @@ function createReactData() {
7662
7666
  $backtop: $xeBacktop
7663
7667
  }, params));
7664
7668
  };
7669
+ const showBacktop = () => {
7670
+ const {
7671
+ position,
7672
+ zIndex
7673
+ } = props;
7674
+ const {
7675
+ backtopZindex
7676
+ } = reactData;
7677
+ if (zIndex) {
7678
+ reactData.backtopZindex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(zIndex);
7679
+ } else if (position === 'fixed') {
7680
+ if (backtopZindex < getLastZIndex()) {
7681
+ reactData.backtopZindex = nextZIndex();
7682
+ }
7683
+ }
7684
+ reactData.showBtn = true;
7685
+ };
7686
+ const hideBacktop = () => {
7687
+ reactData.showBtn = false;
7688
+ };
7665
7689
  const handleScrollEvent = evnt => {
7666
7690
  const {
7667
7691
  threshold
7668
7692
  } = props;
7669
7693
  const currentEl = evnt.currentTarget;
7670
7694
  const scrollTop = currentEl.scrollTop;
7671
- reactData.showBtn = scrollTop > Math.max(1, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(threshold));
7695
+ const showBtn = scrollTop > Math.max(1, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(threshold));
7696
+ if (showBtn) {
7697
+ showBacktop();
7698
+ } else {
7699
+ hideBacktop();
7700
+ }
7672
7701
  };
7673
7702
  const handleToTop = () => {
7674
7703
  const {
@@ -31795,7 +31824,12 @@ function select_createInternalData() {
31795
31824
  default: () => getConfig().select.size || getConfig().size
31796
31825
  },
31797
31826
  filterable: Boolean,
31827
+ /**
31828
+ * 已废弃,被 filter-config.filterMethod 替换
31829
+ * @deprecated
31830
+ */
31798
31831
  filterMethod: Function,
31832
+ filterConfig: Object,
31799
31833
  remote: Boolean,
31800
31834
  remoteConfig: Object,
31801
31835
  emptyText: String,
@@ -31979,6 +32013,9 @@ function select_createInternalData() {
31979
32013
  const computeRemoteOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
31980
32014
  return Object.assign({}, getConfig().select.remoteConfig, props.remoteConfig);
31981
32015
  });
32016
+ const computeFilterOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
32017
+ return Object.assign({}, getConfig().select.filterConfig, props.filterConfig);
32018
+ });
31982
32019
  const computeOptionOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
31983
32020
  return Object.assign({}, getConfig().select.optionConfig, props.optionConfig);
31984
32021
  });
@@ -32179,8 +32216,7 @@ function select_createInternalData() {
32179
32216
  const {
32180
32217
  remote,
32181
32218
  modelValue,
32182
- filterable,
32183
- filterMethod
32219
+ filterable
32184
32220
  } = props;
32185
32221
  const {
32186
32222
  searchValue
@@ -32191,13 +32227,15 @@ function select_createInternalData() {
32191
32227
  } = internalData;
32192
32228
  const labelField = computeLabelField.value;
32193
32229
  const valueField = computeValueField.value;
32230
+ const filterOpts = computeFilterOpts.value;
32231
+ const frMethod = filterOpts.filterMethod || props.filterMethod;
32194
32232
  const searchStr = `${searchValue || ''}`.toLowerCase();
32195
32233
  let avList = [];
32196
32234
  if (remote) {
32197
32235
  avList = fullData.filter(isOptionVisible);
32198
32236
  } else {
32199
- if (filterable && filterMethod) {
32200
- avList = fullData.filter(option => isOptionVisible(option) && filterMethod({
32237
+ if (filterable && frMethod) {
32238
+ avList = fullData.filter(option => isOptionVisible(option) && frMethod({
32201
32239
  $select: $xeSelect,
32202
32240
  group: null,
32203
32241
  option,
@@ -32299,7 +32337,7 @@ function select_createInternalData() {
32299
32337
  reactData.isActivated = true;
32300
32338
  reactData.isAniVisible = true;
32301
32339
  if (filterable) {
32302
- if (remote && remoteOpts.enabled && remoteOpts.autoLoad && !fullData.length) {
32340
+ if (remote && remoteOpts.enabled && (remoteOpts.autoLoad && !fullData.length || fullData.length && remoteOpts.clearOnClose)) {
32303
32341
  handleSearchEvent();
32304
32342
  } else {
32305
32343
  handleOption();
@@ -32325,7 +32363,23 @@ function select_createInternalData() {
32325
32363
  }
32326
32364
  };
32327
32365
  const hideOptionPanel = () => {
32328
- reactData.searchValue = '';
32366
+ const {
32367
+ filterable,
32368
+ remote
32369
+ } = props;
32370
+ const filterOpts = computeFilterOpts.value;
32371
+ const remoteOpts = computeRemoteOpts.value;
32372
+ if (remote) {
32373
+ if (remoteOpts.clearOnClose) {
32374
+ reactData.searchValue = '';
32375
+ }
32376
+ } else if (filterable) {
32377
+ if (filterOpts.clearOnClose) {
32378
+ reactData.searchValue = '';
32379
+ }
32380
+ } else {
32381
+ reactData.searchValue = '';
32382
+ }
32329
32383
  reactData.searchLoading = false;
32330
32384
  reactData.visiblePanel = false;
32331
32385
  internalData.hpTimeout = setTimeout(() => {
@@ -32676,17 +32730,16 @@ function select_createInternalData() {
32676
32730
  const handleSearchEvent = () => {
32677
32731
  const {
32678
32732
  modelValue,
32679
- remote,
32680
- remoteMethod
32733
+ remote
32681
32734
  } = props;
32682
32735
  const {
32683
32736
  searchValue
32684
32737
  } = reactData;
32685
32738
  const remoteOpts = computeRemoteOpts.value;
32686
- const queryMethod = remoteOpts.queryMethod || remoteMethod;
32687
- if (remote && queryMethod && remoteOpts.enabled) {
32739
+ const qyMethod = remoteOpts.queryMethod || props.remoteMethod;
32740
+ if (remote && qyMethod && remoteOpts.enabled) {
32688
32741
  reactData.searchLoading = true;
32689
- Promise.resolve(queryMethod({
32742
+ Promise.resolve(qyMethod({
32690
32743
  $select: $xeSelect,
32691
32744
  searchValue,
32692
32745
  value: modelValue