3h1-ui 2.14.79 → 2.14.81

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 (3) hide show
  1. package/es/index.js +34 -24
  2. package/lib/index.js +34 -24
  3. package/package.json +1 -1
package/es/index.js CHANGED
@@ -14825,6 +14825,12 @@ function useColumns$1(propsRef, getPaginationRef, tableAction) {
14825
14825
  return reactive(column);
14826
14826
  });
14827
14827
  });
14828
+ const getColumnsSummary = computed(() => {
14829
+ if (propsRef.value.rowSelection) {
14830
+ return [{ flag: "ROW_SELECTION" }, ...getViewColumns.value];
14831
+ }
14832
+ return getViewColumns.value;
14833
+ });
14828
14834
  watch(
14829
14835
  () => unref(propsRef).columns,
14830
14836
  (columns) => {
@@ -14901,7 +14907,8 @@ function useColumns$1(propsRef, getPaginationRef, tableAction) {
14901
14907
  getColumns,
14902
14908
  setColumns,
14903
14909
  getViewColumns,
14904
- setCacheColumnsByField
14910
+ setCacheColumnsByField,
14911
+ getColumnsSummary
14905
14912
  };
14906
14913
  }
14907
14914
  function sortFixedColumn(columns) {
@@ -17770,7 +17777,8 @@ const _sfc_main$q = defineComponent({
17770
17777
  setCacheColumnsByField,
17771
17778
  setColumns,
17772
17779
  getColumnsRef,
17773
- getCacheColumns
17780
+ getCacheColumns,
17781
+ getColumnsSummary
17774
17782
  } = useColumns$1(getProps, getPaginationInfo, tableActionRef);
17775
17783
  const { getScrollRef, redoHeight } = useTableScroll(
17776
17784
  getProps,
@@ -17973,7 +17981,8 @@ const _sfc_main$q = defineComponent({
17973
17981
  getColumns,
17974
17982
  getColumnsRef,
17975
17983
  summaryTotalData,
17976
- getProps
17984
+ getProps,
17985
+ getColumnsSummary
17977
17986
  };
17978
17987
  }
17979
17988
  });
@@ -18064,25 +18073,27 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
18064
18073
  default: withCtx(() => [
18065
18074
  createVNode(_component_TableSummaryRow, null, {
18066
18075
  default: withCtx(() => [
18067
- createVNode(_component_TableSummaryCell, {
18068
- align: "center",
18069
- index: 0
18070
- }, {
18071
- default: withCtx(() => [
18072
- createTextVNode(" 总计 ")
18073
- ]),
18074
- _: 1
18075
- }),
18076
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.getColumnsRef.filter((item) => item.flag !== "INDEX"), (item, index2) => {
18077
- return openBlock(), createBlock(_component_TableSummaryCell, {
18078
- key: index2,
18079
- index: index2 + 1
18080
- }, {
18081
- default: withCtx(() => [
18082
- createTextVNode(toDisplayString(_ctx.summaryTotalData[item.dataIndex] || ""), 1)
18083
- ]),
18084
- _: 2
18085
- }, 1032, ["index"]);
18076
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.getColumnsSummary, (item, index2) => {
18077
+ return openBlock(), createElementBlock(Fragment, { key: index2 }, [
18078
+ index2 === 0 ? (openBlock(), createBlock(_component_TableSummaryCell, {
18079
+ key: 0,
18080
+ align: "center",
18081
+ index: 0
18082
+ }, {
18083
+ default: withCtx(() => [
18084
+ createTextVNode(" 总计 ")
18085
+ ]),
18086
+ _: 1
18087
+ })) : (openBlock(), createBlock(_component_TableSummaryCell, {
18088
+ key: 1,
18089
+ index: index2
18090
+ }, {
18091
+ default: withCtx(() => [
18092
+ createTextVNode(toDisplayString(_ctx.summaryTotalData[item.dataIndex] || ""), 1)
18093
+ ]),
18094
+ _: 2
18095
+ }, 1032, ["index"]))
18096
+ ], 64);
18086
18097
  }), 128))
18087
18098
  ]),
18088
18099
  _: 1
@@ -18095,8 +18106,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
18095
18106
  } : void 0
18096
18107
  ]), 1040, ["rowClassName", "onChange", "onResizeColumn"]), [
18097
18108
  [vShow, _ctx.getEmptyDataIsShowTable]
18098
- ]),
18099
- createTextVNode(" " + toDisplayString(_ctx.getColumnsRef), 1)
18109
+ ])
18100
18110
  ])
18101
18111
  ])
18102
18112
  ], 2);
package/lib/index.js CHANGED
@@ -14827,6 +14827,12 @@ function useColumns$1(propsRef, getPaginationRef, tableAction) {
14827
14827
  return vue.reactive(column);
14828
14828
  });
14829
14829
  });
14830
+ const getColumnsSummary = vue.computed(() => {
14831
+ if (propsRef.value.rowSelection) {
14832
+ return [{ flag: "ROW_SELECTION" }, ...getViewColumns.value];
14833
+ }
14834
+ return getViewColumns.value;
14835
+ });
14830
14836
  vue.watch(
14831
14837
  () => vue.unref(propsRef).columns,
14832
14838
  (columns) => {
@@ -14903,7 +14909,8 @@ function useColumns$1(propsRef, getPaginationRef, tableAction) {
14903
14909
  getColumns,
14904
14910
  setColumns,
14905
14911
  getViewColumns,
14906
- setCacheColumnsByField
14912
+ setCacheColumnsByField,
14913
+ getColumnsSummary
14907
14914
  };
14908
14915
  }
14909
14916
  function sortFixedColumn(columns) {
@@ -17772,7 +17779,8 @@ const _sfc_main$q = vue.defineComponent({
17772
17779
  setCacheColumnsByField,
17773
17780
  setColumns,
17774
17781
  getColumnsRef,
17775
- getCacheColumns
17782
+ getCacheColumns,
17783
+ getColumnsSummary
17776
17784
  } = useColumns$1(getProps, getPaginationInfo, tableActionRef);
17777
17785
  const { getScrollRef, redoHeight } = useTableScroll(
17778
17786
  getProps,
@@ -17975,7 +17983,8 @@ const _sfc_main$q = vue.defineComponent({
17975
17983
  getColumns,
17976
17984
  getColumnsRef,
17977
17985
  summaryTotalData,
17978
- getProps
17986
+ getProps,
17987
+ getColumnsSummary
17979
17988
  };
17980
17989
  }
17981
17990
  });
@@ -18066,25 +18075,27 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
18066
18075
  default: vue.withCtx(() => [
18067
18076
  vue.createVNode(_component_TableSummaryRow, null, {
18068
18077
  default: vue.withCtx(() => [
18069
- vue.createVNode(_component_TableSummaryCell, {
18070
- align: "center",
18071
- index: 0
18072
- }, {
18073
- default: vue.withCtx(() => [
18074
- vue.createTextVNode(" 总计 ")
18075
- ]),
18076
- _: 1
18077
- }),
18078
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.getColumnsRef.filter((item) => item.flag !== "INDEX"), (item, index2) => {
18079
- return vue.openBlock(), vue.createBlock(_component_TableSummaryCell, {
18080
- key: index2,
18081
- index: index2 + 1
18082
- }, {
18083
- default: vue.withCtx(() => [
18084
- vue.createTextVNode(vue.toDisplayString(_ctx.summaryTotalData[item.dataIndex] || ""), 1)
18085
- ]),
18086
- _: 2
18087
- }, 1032, ["index"]);
18078
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.getColumnsSummary, (item, index2) => {
18079
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
18080
+ index2 === 0 ? (vue.openBlock(), vue.createBlock(_component_TableSummaryCell, {
18081
+ key: 0,
18082
+ align: "center",
18083
+ index: 0
18084
+ }, {
18085
+ default: vue.withCtx(() => [
18086
+ vue.createTextVNode(" 总计 ")
18087
+ ]),
18088
+ _: 1
18089
+ })) : (vue.openBlock(), vue.createBlock(_component_TableSummaryCell, {
18090
+ key: 1,
18091
+ index: index2
18092
+ }, {
18093
+ default: vue.withCtx(() => [
18094
+ vue.createTextVNode(vue.toDisplayString(_ctx.summaryTotalData[item.dataIndex] || ""), 1)
18095
+ ]),
18096
+ _: 2
18097
+ }, 1032, ["index"]))
18098
+ ], 64);
18088
18099
  }), 128))
18089
18100
  ]),
18090
18101
  _: 1
@@ -18097,8 +18108,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
18097
18108
  } : void 0
18098
18109
  ]), 1040, ["rowClassName", "onChange", "onResizeColumn"]), [
18099
18110
  [vue.vShow, _ctx.getEmptyDataIsShowTable]
18100
- ]),
18101
- vue.createTextVNode(" " + vue.toDisplayString(_ctx.getColumnsRef), 1)
18111
+ ])
18102
18112
  ])
18103
18113
  ])
18104
18114
  ], 2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "2.14.79",
3
+ "version": "2.14.81",
4
4
  "description": "",
5
5
  "module": "es/index.js",
6
6
  "main": "lib/index.js",