xrk-components 2.0.0-beta.40 → 2.0.0-beta.41

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.
package/lib/index.esm.js CHANGED
@@ -75611,7 +75611,6 @@ var script$9 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$9
75611
75611
  emptyText: __props.emptyText,
75612
75612
  spanMethod: __props.spanMethod,
75613
75613
  "tree-props": __props.treeProps,
75614
- key: __props.data.length == 0 ? 'empty' : 'has-data',
75615
75614
  onExpandChange: handleExpandChange,
75616
75615
  onSortChange: handleSortChange
75617
75616
  }, {
@@ -76649,6 +76648,7 @@ var script$1 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$1
76649
76648
  var props = _props;
76650
76649
  var slots = useSlots();
76651
76650
  var vLoading$1 = vLoading;
76651
+ var baseTableKey = ref(1);
76652
76652
  var paginationConfig = computed(function () { return (__assign({ pageNoKey: 'pageNum', pageSizeKey: 'pageSize', paginationPageSize: 60, paginationCurrentPage: 1 }, (props.paginationConfig || {}))); });
76653
76653
  var TableSelectionRows = ref([]);
76654
76654
  var XrkSearchRef = ref();
@@ -76663,6 +76663,10 @@ var script$1 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$1
76663
76663
  if (!props.fix)
76664
76664
  return;
76665
76665
  tableContentFix.value = false;
76666
+ if (pageAllData.value.length == 0) {
76667
+ baseTableKey.value += 1;
76668
+ return;
76669
+ }
76666
76670
  nextTick(function () {
76667
76671
  var _a, _b;
76668
76672
  tableContentFix.value =
@@ -76844,17 +76848,18 @@ var script$1 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$1
76844
76848
  : createCommentVNode("v-if", true),
76845
76849
  createVNode(unref(BaseLayoutFlexContent), { fix: unref(tableContentFix) }, {
76846
76850
  default: withCtx(function () { return [
76847
- withDirectives(createVNode(unref(BaseTable), mergeProps({
76851
+ withDirectives((openBlock(), createBlock(unref(BaseTable), mergeProps({
76848
76852
  class: "xrk-table-content",
76849
76853
  ref_key: "XrkTablebaseTableRef",
76850
76854
  ref: XrkTablebaseTableRef
76851
76855
  }, __props.tableConfig.baseConfig, {
76856
+ key: baseTableKey.value,
76852
76857
  data: unref(pageAllData),
76853
76858
  columns: __props.tableConfig.tableColumns,
76854
76859
  onExpandChange: handleExpandChange,
76855
76860
  onSelectAll: handleTableSelect,
76856
76861
  onSelect: handleTableSelect
76857
- }), null, 16 /* FULL_PROPS */, ["data", "columns"]), [
76862
+ }), null, 16 /* FULL_PROPS */, ["data", "columns"])), [
76858
76863
  [unref(vLoading$1), unref(pageIsLoading)]
76859
76864
  ])
76860
76865
  ]; }),
package/lib/index.umd.js CHANGED
@@ -75614,7 +75614,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
75614
75614
  emptyText: __props.emptyText,
75615
75615
  spanMethod: __props.spanMethod,
75616
75616
  "tree-props": __props.treeProps,
75617
- key: __props.data.length == 0 ? 'empty' : 'has-data',
75618
75617
  onExpandChange: handleExpandChange,
75619
75618
  onSortChange: handleSortChange
75620
75619
  }, {
@@ -76652,6 +76651,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76652
76651
  var props = _props;
76653
76652
  var slots = vue.useSlots();
76654
76653
  var vLoading$1 = vLoading;
76654
+ var baseTableKey = vue.ref(1);
76655
76655
  var paginationConfig = vue.computed(function () { return (__assign({ pageNoKey: 'pageNum', pageSizeKey: 'pageSize', paginationPageSize: 60, paginationCurrentPage: 1 }, (props.paginationConfig || {}))); });
76656
76656
  var TableSelectionRows = vue.ref([]);
76657
76657
  var XrkSearchRef = vue.ref();
@@ -76666,6 +76666,10 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76666
76666
  if (!props.fix)
76667
76667
  return;
76668
76668
  tableContentFix.value = false;
76669
+ if (pageAllData.value.length == 0) {
76670
+ baseTableKey.value += 1;
76671
+ return;
76672
+ }
76669
76673
  vue.nextTick(function () {
76670
76674
  var _a, _b;
76671
76675
  tableContentFix.value =
@@ -76847,17 +76851,18 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
76847
76851
  : vue.createCommentVNode("v-if", true),
76848
76852
  vue.createVNode(vue.unref(BaseLayoutFlexContent), { fix: vue.unref(tableContentFix) }, {
76849
76853
  default: vue.withCtx(function () { return [
76850
- vue.withDirectives(vue.createVNode(vue.unref(BaseTable), vue.mergeProps({
76854
+ vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(BaseTable), vue.mergeProps({
76851
76855
  class: "xrk-table-content",
76852
76856
  ref_key: "XrkTablebaseTableRef",
76853
76857
  ref: XrkTablebaseTableRef
76854
76858
  }, __props.tableConfig.baseConfig, {
76859
+ key: baseTableKey.value,
76855
76860
  data: vue.unref(pageAllData),
76856
76861
  columns: __props.tableConfig.tableColumns,
76857
76862
  onExpandChange: handleExpandChange,
76858
76863
  onSelectAll: handleTableSelect,
76859
76864
  onSelect: handleTableSelect
76860
- }), null, 16 /* FULL_PROPS */, ["data", "columns"]), [
76865
+ }), null, 16 /* FULL_PROPS */, ["data", "columns"])), [
76861
76866
  [vue.unref(vLoading$1), vue.unref(pageIsLoading)]
76862
76867
  ])
76863
76868
  ]; }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xrk-components",
3
- "version": "2.0.0-beta.40",
3
+ "version": "2.0.0-beta.41",
4
4
  "description": "",
5
5
  "main": "lib/index.esm.js",
6
6
  "typings": "lib/packages/index.d.ts",