@weitutech/by-components 1.1.181 → 1.1.183

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.
@@ -74524,14 +74524,14 @@ var component = normalizeComponent(
74524
74524
  )
74525
74525
 
74526
74526
  /* harmony default export */ var pager = (component.exports);
74527
- ;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5daa4f39-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/table/index.vue?vue&type=template&id=14da638e
74528
- var tablevue_type_template_id_14da638e_render = function render() {
74527
+ ;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5daa4f39-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/table/index.vue?vue&type=template&id=23b79ced
74528
+ var tablevue_type_template_id_23b79ced_render = function render() {
74529
74529
  var _vm = this,
74530
74530
  _c = _vm._self._c;
74531
74531
  return _c('div', {
74532
74532
  staticClass: "by-table-wrapper",
74533
74533
  class: {
74534
- 'custom-loading-mode': _vm.loadingStyle === 'custom' && _vm.loading
74534
+ 'custom-loading-mode': (_vm.loadingStyle === 'pulse' || _vm.loadingStyle === 'box') && _vm.loading
74535
74535
  }
74536
74536
  }, [_c('div', {
74537
74537
  staticClass: "vxe-grid-wrapper"
@@ -74616,7 +74616,7 @@ var tablevue_type_template_id_14da638e_render = function render() {
74616
74616
  }
74617
74617
  }) : _vm._e()], 1);
74618
74618
  };
74619
- var tablevue_type_template_id_14da638e_staticRenderFns = [];
74619
+ var tablevue_type_template_id_23b79ced_staticRenderFns = [];
74620
74620
 
74621
74621
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
74622
74622
  var es_array_push = __webpack_require__(4114);
@@ -76664,11 +76664,11 @@ var custom_column_component = normalizeComponent(
76664
76664
  default: false
76665
76665
  },
76666
76666
  loadingStyle: {
76667
- // loading样式类型:'custom' 自定义3D旋转圆环样式(默认),'default' 使用vxe-table默认样式
76667
+ // loading样式类型:'pulse' 3D旋转圆环样式(默认),'box' 方块变形动画样式,'default' 使用vxe-table默认样式
76668
76668
  type: String,
76669
76669
  default: 'default',
76670
76670
  validator(value) {
76671
- return ['custom', 'default'].includes(value);
76671
+ return ['pulse', 'box', 'default'].includes(value);
76672
76672
  }
76673
76673
  }
76674
76674
  },
@@ -76716,7 +76716,7 @@ var custom_column_component = normalizeComponent(
76716
76716
  this.initDefaultSortForFrontendPagination();
76717
76717
 
76718
76718
  // 初始化自定义loading
76719
- if (this.loadingStyle === 'custom') {
76719
+ if (this.loadingStyle === 'pulse' || this.loadingStyle === 'box') {
76720
76720
  this.$nextTick(() => {
76721
76721
  this.initCustomLoading();
76722
76722
  // 使用MutationObserver监听DOM变化,确保默认loading被隐藏
@@ -76739,14 +76739,14 @@ var custom_column_component = normalizeComponent(
76739
76739
  },
76740
76740
  watch: {
76741
76741
  loading(newVal) {
76742
- if (this.loadingStyle === 'custom') {
76742
+ if (this.loadingStyle === 'pulse' || this.loadingStyle === 'box') {
76743
76743
  this.$nextTick(() => {
76744
76744
  this.updateCustomLoading();
76745
76745
  });
76746
76746
  }
76747
76747
  },
76748
76748
  loadingStyle() {
76749
- if (this.loadingStyle === 'custom') {
76749
+ if (this.loadingStyle === 'pulse' || this.loadingStyle === 'box') {
76750
76750
  this.$nextTick(() => {
76751
76751
  this.updateCustomLoading();
76752
76752
  });
@@ -76885,7 +76885,7 @@ var custom_column_component = normalizeComponent(
76885
76885
  ...this.gridOptions.loadingConfig
76886
76886
  };
76887
76887
  // 如果使用自定义loading样式,隐藏默认的loading文字和图标
76888
- if (this.loadingStyle === 'custom') {
76888
+ if (this.loadingStyle === 'pulse' || this.loadingStyle === 'box') {
76889
76889
  baseConfig.text = null;
76890
76890
  baseConfig.icon = null;
76891
76891
  } else {
@@ -77553,7 +77553,7 @@ var custom_column_component = normalizeComponent(
77553
77553
  * 初始化自定义loading
77554
77554
  */
77555
77555
  initCustomLoading() {
77556
- if (this.loadingStyle !== 'custom') return;
77556
+ if (this.loadingStyle !== 'pulse' && this.loadingStyle !== 'box') return;
77557
77557
  this.$nextTick(() => {
77558
77558
  this.updateCustomLoading();
77559
77559
  });
@@ -77572,7 +77572,7 @@ var custom_column_component = normalizeComponent(
77572
77572
 
77573
77573
  // 创建MutationObserver
77574
77574
  this.loadingObserver = new MutationObserver(() => {
77575
- if (this.loading && this.loadingStyle === 'custom') {
77575
+ if (this.loading && (this.loadingStyle === 'pulse' || this.loadingStyle === 'box')) {
77576
77576
  this.hideDefaultLoading();
77577
77577
  }
77578
77578
  });
@@ -77614,60 +77614,105 @@ var custom_column_component = normalizeComponent(
77614
77614
  const loadingEl = gridEl.querySelector('.vxe-loading');
77615
77615
  if (!loadingEl) {
77616
77616
  // 如果loading元素不存在,延迟重试
77617
- if (this.loading && this.loadingStyle === 'custom') {
77617
+ if (this.loading && (this.loadingStyle === 'pulse' || this.loadingStyle === 'box')) {
77618
77618
  setTimeout(() => {
77619
77619
  this.updateCustomLoading();
77620
77620
  }, 100);
77621
77621
  }
77622
77622
  return;
77623
77623
  }
77624
-
77625
- // 强制隐藏默认loading
77626
- this.hideDefaultLoading();
77627
77624
  let customLoading = loadingEl.querySelector('.custom-loading-content');
77628
- if (this.loading && this.loadingStyle === 'custom') {
77629
- if (!customLoading) {
77630
- var _this$gridOptions$loa;
77631
- // 获取loading文案配置
77632
- const loadingText = ((_this$gridOptions$loa = this.gridOptions.loadingConfig) === null || _this$gridOptions$loa === void 0 ? void 0 : _this$gridOptions$loa.text) || '加载中...';
77633
-
77634
- // 将文案转换为字符数组
77635
- const textChars = loadingText.split('');
77636
77625
 
77626
+ // 强制隐藏默认loading(只在自定义loading模式下)
77627
+ if (this.loading && (this.loadingStyle === 'pulse' || this.loadingStyle === 'box')) {
77628
+ this.hideDefaultLoading();
77629
+ }
77630
+ if (this.loading && (this.loadingStyle === 'pulse' || this.loadingStyle === 'box')) {
77631
+ if (!customLoading) {
77637
77632
  // 创建自定义loading元素
77638
77633
  customLoading = document.createElement('div');
77639
77634
  customLoading.className = 'custom-loading-content';
77635
+ if (this.loadingStyle === 'pulse') {
77636
+ var _this$gridOptions$loa;
77637
+ // 3D旋转圆环样式
77638
+ // 获取loading文案配置
77639
+ const loadingText = ((_this$gridOptions$loa = this.gridOptions.loadingConfig) === null || _this$gridOptions$loa === void 0 ? void 0 : _this$gridOptions$loa.text) || '加载中...';
77640
+
77641
+ // 将文案转换为字符数组
77642
+ const textChars = loadingText.split('');
77643
+
77644
+ // 创建容器
77645
+ const uiverseDiv = document.createElement('div');
77646
+ uiverseDiv.className = 'table-loading-pulse';
77647
+ const loaderContainer = document.createElement('div');
77648
+ loaderContainer.className = 'loader-container';
77649
+
77650
+ // 创建文字元素(使用h3标签)
77651
+ if (loadingText) {
77652
+ const textElement = document.createElement('h3');
77653
+ textElement.className = 'loader-text';
77654
+
77655
+ // 为每个字符创建span,并设置动画延迟
77656
+ textChars.forEach((char, index) => {
77657
+ const charSpan = document.createElement('span');
77658
+ charSpan.className = 'loader-char';
77659
+ charSpan.style.animationDelay = `${index * 0.15}s`;
77660
+ charSpan.textContent = char === ' ' ? '\u00A0' : char; // 使用不间断空格
77661
+ textElement.appendChild(charSpan);
77662
+ });
77663
+ loaderContainer.appendChild(textElement);
77664
+ }
77640
77665
 
77641
- // 创建容器
77642
- const uiverseDiv = document.createElement('div');
77643
- uiverseDiv.className = 'uiverse-table-loading-pulse';
77644
- const loaderContainer = document.createElement('div');
77645
- loaderContainer.className = 'loader-container';
77646
-
77647
- // 创建文字元素(使用h3标签)
77648
- if (loadingText) {
77649
- const textElement = document.createElement('h3');
77650
- textElement.className = 'loader-text';
77651
-
77652
- // 为每个字符创建span,并设置动画延迟
77653
- textChars.forEach((char, index) => {
77654
- const charSpan = document.createElement('span');
77655
- charSpan.className = 'loader-char';
77656
- charSpan.style.animationDelay = `${index * 0.1}s`;
77657
- charSpan.textContent = char === ' ' ? '\u00A0' : char; // 使用不间断空格
77658
- textElement.appendChild(charSpan);
77659
- });
77660
- loaderContainer.appendChild(textElement);
77661
- }
77662
-
77663
- // 添加旋转圆环
77664
- for (let i = 0; i < 4; i++) {
77665
- const ring = document.createElement('div');
77666
- ring.className = 'loader-ring';
77667
- loaderContainer.appendChild(ring);
77666
+ // 添加旋转圆环
77667
+ for (let i = 0; i < 4; i++) {
77668
+ const ring = document.createElement('div');
77669
+ ring.className = 'loader-ring';
77670
+ loaderContainer.appendChild(ring);
77671
+ }
77672
+ uiverseDiv.appendChild(loaderContainer);
77673
+ customLoading.appendChild(uiverseDiv);
77674
+ } else if (this.loadingStyle === 'box') {
77675
+ var _this$gridOptions$loa2;
77676
+ // 方块变形动画样式
77677
+ const boxDiv = document.createElement('div');
77678
+ boxDiv.className = 'table-loading-box';
77679
+ const loader = document.createElement('div');
77680
+ loader.className = 'loader';
77681
+
77682
+ // 创建三个方块
77683
+ const box1 = document.createElement('div');
77684
+ box1.className = 'box1';
77685
+ const box2 = document.createElement('div');
77686
+ box2.className = 'box2';
77687
+ const box3 = document.createElement('div');
77688
+ box3.className = 'box3';
77689
+ loader.appendChild(box1);
77690
+ loader.appendChild(box2);
77691
+ loader.appendChild(box3);
77692
+
77693
+ // 创建容器包裹loader和文字
77694
+ const loaderContainer = document.createElement('div');
77695
+ loaderContainer.className = 'loader-container';
77696
+ loaderContainer.appendChild(loader);
77697
+
77698
+ // 添加文字动画(显示在下方)
77699
+ const loadingText = ((_this$gridOptions$loa2 = this.gridOptions.loadingConfig) === null || _this$gridOptions$loa2 === void 0 ? void 0 : _this$gridOptions$loa2.text) || '加载中...';
77700
+ if (loadingText) {
77701
+ const textChars = loadingText.split('');
77702
+ const textElement = document.createElement('h3');
77703
+ textElement.className = 'loader-text';
77704
+ textChars.forEach((char, index) => {
77705
+ const charSpan = document.createElement('span');
77706
+ charSpan.className = 'loader-char';
77707
+ charSpan.style.animationDelay = `${index * 0.1}s`;
77708
+ charSpan.textContent = char === ' ' ? '\u00A0' : char;
77709
+ textElement.appendChild(charSpan);
77710
+ });
77711
+ loaderContainer.appendChild(textElement);
77712
+ }
77713
+ boxDiv.appendChild(loaderContainer);
77714
+ customLoading.appendChild(boxDiv);
77668
77715
  }
77669
- uiverseDiv.appendChild(loaderContainer);
77670
- customLoading.appendChild(uiverseDiv);
77671
77716
  loadingEl.appendChild(customLoading);
77672
77717
 
77673
77718
  // 确保loading在表格中央区域居中显示
@@ -77741,8 +77786,8 @@ var custom_column_component = normalizeComponent(
77741
77786
  ;
77742
77787
  var table_component = normalizeComponent(
77743
77788
  components_tablevue_type_script_lang_js,
77744
- tablevue_type_template_id_14da638e_render,
77745
- tablevue_type_template_id_14da638e_staticRenderFns,
77789
+ tablevue_type_template_id_23b79ced_render,
77790
+ tablevue_type_template_id_23b79ced_staticRenderFns,
77746
77791
  false,
77747
77792
  null,
77748
77793
  null,
@@ -74534,14 +74534,14 @@ var component = normalizeComponent(
74534
74534
  )
74535
74535
 
74536
74536
  /* harmony default export */ var pager = (component.exports);
74537
- ;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5daa4f39-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/table/index.vue?vue&type=template&id=14da638e
74538
- var tablevue_type_template_id_14da638e_render = function render() {
74537
+ ;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5daa4f39-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/table/index.vue?vue&type=template&id=23b79ced
74538
+ var tablevue_type_template_id_23b79ced_render = function render() {
74539
74539
  var _vm = this,
74540
74540
  _c = _vm._self._c;
74541
74541
  return _c('div', {
74542
74542
  staticClass: "by-table-wrapper",
74543
74543
  class: {
74544
- 'custom-loading-mode': _vm.loadingStyle === 'custom' && _vm.loading
74544
+ 'custom-loading-mode': (_vm.loadingStyle === 'pulse' || _vm.loadingStyle === 'box') && _vm.loading
74545
74545
  }
74546
74546
  }, [_c('div', {
74547
74547
  staticClass: "vxe-grid-wrapper"
@@ -74626,7 +74626,7 @@ var tablevue_type_template_id_14da638e_render = function render() {
74626
74626
  }
74627
74627
  }) : _vm._e()], 1);
74628
74628
  };
74629
- var tablevue_type_template_id_14da638e_staticRenderFns = [];
74629
+ var tablevue_type_template_id_23b79ced_staticRenderFns = [];
74630
74630
 
74631
74631
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
74632
74632
  var es_array_push = __webpack_require__(4114);
@@ -76674,11 +76674,11 @@ var custom_column_component = normalizeComponent(
76674
76674
  default: false
76675
76675
  },
76676
76676
  loadingStyle: {
76677
- // loading样式类型:'custom' 自定义3D旋转圆环样式(默认),'default' 使用vxe-table默认样式
76677
+ // loading样式类型:'pulse' 3D旋转圆环样式(默认),'box' 方块变形动画样式,'default' 使用vxe-table默认样式
76678
76678
  type: String,
76679
76679
  default: 'default',
76680
76680
  validator(value) {
76681
- return ['custom', 'default'].includes(value);
76681
+ return ['pulse', 'box', 'default'].includes(value);
76682
76682
  }
76683
76683
  }
76684
76684
  },
@@ -76726,7 +76726,7 @@ var custom_column_component = normalizeComponent(
76726
76726
  this.initDefaultSortForFrontendPagination();
76727
76727
 
76728
76728
  // 初始化自定义loading
76729
- if (this.loadingStyle === 'custom') {
76729
+ if (this.loadingStyle === 'pulse' || this.loadingStyle === 'box') {
76730
76730
  this.$nextTick(() => {
76731
76731
  this.initCustomLoading();
76732
76732
  // 使用MutationObserver监听DOM变化,确保默认loading被隐藏
@@ -76749,14 +76749,14 @@ var custom_column_component = normalizeComponent(
76749
76749
  },
76750
76750
  watch: {
76751
76751
  loading(newVal) {
76752
- if (this.loadingStyle === 'custom') {
76752
+ if (this.loadingStyle === 'pulse' || this.loadingStyle === 'box') {
76753
76753
  this.$nextTick(() => {
76754
76754
  this.updateCustomLoading();
76755
76755
  });
76756
76756
  }
76757
76757
  },
76758
76758
  loadingStyle() {
76759
- if (this.loadingStyle === 'custom') {
76759
+ if (this.loadingStyle === 'pulse' || this.loadingStyle === 'box') {
76760
76760
  this.$nextTick(() => {
76761
76761
  this.updateCustomLoading();
76762
76762
  });
@@ -76895,7 +76895,7 @@ var custom_column_component = normalizeComponent(
76895
76895
  ...this.gridOptions.loadingConfig
76896
76896
  };
76897
76897
  // 如果使用自定义loading样式,隐藏默认的loading文字和图标
76898
- if (this.loadingStyle === 'custom') {
76898
+ if (this.loadingStyle === 'pulse' || this.loadingStyle === 'box') {
76899
76899
  baseConfig.text = null;
76900
76900
  baseConfig.icon = null;
76901
76901
  } else {
@@ -77563,7 +77563,7 @@ var custom_column_component = normalizeComponent(
77563
77563
  * 初始化自定义loading
77564
77564
  */
77565
77565
  initCustomLoading() {
77566
- if (this.loadingStyle !== 'custom') return;
77566
+ if (this.loadingStyle !== 'pulse' && this.loadingStyle !== 'box') return;
77567
77567
  this.$nextTick(() => {
77568
77568
  this.updateCustomLoading();
77569
77569
  });
@@ -77582,7 +77582,7 @@ var custom_column_component = normalizeComponent(
77582
77582
 
77583
77583
  // 创建MutationObserver
77584
77584
  this.loadingObserver = new MutationObserver(() => {
77585
- if (this.loading && this.loadingStyle === 'custom') {
77585
+ if (this.loading && (this.loadingStyle === 'pulse' || this.loadingStyle === 'box')) {
77586
77586
  this.hideDefaultLoading();
77587
77587
  }
77588
77588
  });
@@ -77624,60 +77624,105 @@ var custom_column_component = normalizeComponent(
77624
77624
  const loadingEl = gridEl.querySelector('.vxe-loading');
77625
77625
  if (!loadingEl) {
77626
77626
  // 如果loading元素不存在,延迟重试
77627
- if (this.loading && this.loadingStyle === 'custom') {
77627
+ if (this.loading && (this.loadingStyle === 'pulse' || this.loadingStyle === 'box')) {
77628
77628
  setTimeout(() => {
77629
77629
  this.updateCustomLoading();
77630
77630
  }, 100);
77631
77631
  }
77632
77632
  return;
77633
77633
  }
77634
-
77635
- // 强制隐藏默认loading
77636
- this.hideDefaultLoading();
77637
77634
  let customLoading = loadingEl.querySelector('.custom-loading-content');
77638
- if (this.loading && this.loadingStyle === 'custom') {
77639
- if (!customLoading) {
77640
- var _this$gridOptions$loa;
77641
- // 获取loading文案配置
77642
- const loadingText = ((_this$gridOptions$loa = this.gridOptions.loadingConfig) === null || _this$gridOptions$loa === void 0 ? void 0 : _this$gridOptions$loa.text) || '加载中...';
77643
-
77644
- // 将文案转换为字符数组
77645
- const textChars = loadingText.split('');
77646
77635
 
77636
+ // 强制隐藏默认loading(只在自定义loading模式下)
77637
+ if (this.loading && (this.loadingStyle === 'pulse' || this.loadingStyle === 'box')) {
77638
+ this.hideDefaultLoading();
77639
+ }
77640
+ if (this.loading && (this.loadingStyle === 'pulse' || this.loadingStyle === 'box')) {
77641
+ if (!customLoading) {
77647
77642
  // 创建自定义loading元素
77648
77643
  customLoading = document.createElement('div');
77649
77644
  customLoading.className = 'custom-loading-content';
77645
+ if (this.loadingStyle === 'pulse') {
77646
+ var _this$gridOptions$loa;
77647
+ // 3D旋转圆环样式
77648
+ // 获取loading文案配置
77649
+ const loadingText = ((_this$gridOptions$loa = this.gridOptions.loadingConfig) === null || _this$gridOptions$loa === void 0 ? void 0 : _this$gridOptions$loa.text) || '加载中...';
77650
+
77651
+ // 将文案转换为字符数组
77652
+ const textChars = loadingText.split('');
77653
+
77654
+ // 创建容器
77655
+ const uiverseDiv = document.createElement('div');
77656
+ uiverseDiv.className = 'table-loading-pulse';
77657
+ const loaderContainer = document.createElement('div');
77658
+ loaderContainer.className = 'loader-container';
77659
+
77660
+ // 创建文字元素(使用h3标签)
77661
+ if (loadingText) {
77662
+ const textElement = document.createElement('h3');
77663
+ textElement.className = 'loader-text';
77664
+
77665
+ // 为每个字符创建span,并设置动画延迟
77666
+ textChars.forEach((char, index) => {
77667
+ const charSpan = document.createElement('span');
77668
+ charSpan.className = 'loader-char';
77669
+ charSpan.style.animationDelay = `${index * 0.15}s`;
77670
+ charSpan.textContent = char === ' ' ? '\u00A0' : char; // 使用不间断空格
77671
+ textElement.appendChild(charSpan);
77672
+ });
77673
+ loaderContainer.appendChild(textElement);
77674
+ }
77650
77675
 
77651
- // 创建容器
77652
- const uiverseDiv = document.createElement('div');
77653
- uiverseDiv.className = 'uiverse-table-loading-pulse';
77654
- const loaderContainer = document.createElement('div');
77655
- loaderContainer.className = 'loader-container';
77656
-
77657
- // 创建文字元素(使用h3标签)
77658
- if (loadingText) {
77659
- const textElement = document.createElement('h3');
77660
- textElement.className = 'loader-text';
77661
-
77662
- // 为每个字符创建span,并设置动画延迟
77663
- textChars.forEach((char, index) => {
77664
- const charSpan = document.createElement('span');
77665
- charSpan.className = 'loader-char';
77666
- charSpan.style.animationDelay = `${index * 0.1}s`;
77667
- charSpan.textContent = char === ' ' ? '\u00A0' : char; // 使用不间断空格
77668
- textElement.appendChild(charSpan);
77669
- });
77670
- loaderContainer.appendChild(textElement);
77671
- }
77672
-
77673
- // 添加旋转圆环
77674
- for (let i = 0; i < 4; i++) {
77675
- const ring = document.createElement('div');
77676
- ring.className = 'loader-ring';
77677
- loaderContainer.appendChild(ring);
77676
+ // 添加旋转圆环
77677
+ for (let i = 0; i < 4; i++) {
77678
+ const ring = document.createElement('div');
77679
+ ring.className = 'loader-ring';
77680
+ loaderContainer.appendChild(ring);
77681
+ }
77682
+ uiverseDiv.appendChild(loaderContainer);
77683
+ customLoading.appendChild(uiverseDiv);
77684
+ } else if (this.loadingStyle === 'box') {
77685
+ var _this$gridOptions$loa2;
77686
+ // 方块变形动画样式
77687
+ const boxDiv = document.createElement('div');
77688
+ boxDiv.className = 'table-loading-box';
77689
+ const loader = document.createElement('div');
77690
+ loader.className = 'loader';
77691
+
77692
+ // 创建三个方块
77693
+ const box1 = document.createElement('div');
77694
+ box1.className = 'box1';
77695
+ const box2 = document.createElement('div');
77696
+ box2.className = 'box2';
77697
+ const box3 = document.createElement('div');
77698
+ box3.className = 'box3';
77699
+ loader.appendChild(box1);
77700
+ loader.appendChild(box2);
77701
+ loader.appendChild(box3);
77702
+
77703
+ // 创建容器包裹loader和文字
77704
+ const loaderContainer = document.createElement('div');
77705
+ loaderContainer.className = 'loader-container';
77706
+ loaderContainer.appendChild(loader);
77707
+
77708
+ // 添加文字动画(显示在下方)
77709
+ const loadingText = ((_this$gridOptions$loa2 = this.gridOptions.loadingConfig) === null || _this$gridOptions$loa2 === void 0 ? void 0 : _this$gridOptions$loa2.text) || '加载中...';
77710
+ if (loadingText) {
77711
+ const textChars = loadingText.split('');
77712
+ const textElement = document.createElement('h3');
77713
+ textElement.className = 'loader-text';
77714
+ textChars.forEach((char, index) => {
77715
+ const charSpan = document.createElement('span');
77716
+ charSpan.className = 'loader-char';
77717
+ charSpan.style.animationDelay = `${index * 0.1}s`;
77718
+ charSpan.textContent = char === ' ' ? '\u00A0' : char;
77719
+ textElement.appendChild(charSpan);
77720
+ });
77721
+ loaderContainer.appendChild(textElement);
77722
+ }
77723
+ boxDiv.appendChild(loaderContainer);
77724
+ customLoading.appendChild(boxDiv);
77678
77725
  }
77679
- uiverseDiv.appendChild(loaderContainer);
77680
- customLoading.appendChild(uiverseDiv);
77681
77726
  loadingEl.appendChild(customLoading);
77682
77727
 
77683
77728
  // 确保loading在表格中央区域居中显示
@@ -77751,8 +77796,8 @@ var custom_column_component = normalizeComponent(
77751
77796
  ;
77752
77797
  var table_component = normalizeComponent(
77753
77798
  components_tablevue_type_script_lang_js,
77754
- tablevue_type_template_id_14da638e_render,
77755
- tablevue_type_template_id_14da638e_staticRenderFns,
77799
+ tablevue_type_template_id_23b79ced_render,
77800
+ tablevue_type_template_id_23b79ced_staticRenderFns,
77756
77801
  false,
77757
77802
  null,
77758
77803
  null,