vue3-components-plus 3.0.18 → 3.0.20

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.
@@ -78956,102 +78956,104 @@ const _sfc_main$1 = {
78956
78956
  const _component_el_pagination = resolveComponent("el-pagination");
78957
78957
  const _directive_loading = resolveDirective("loading");
78958
78958
  return openBlock(), createElementBlock("div", _hoisted_1$1, [
78959
- __props.showHeaderToolbar ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
78960
- createElementVNode("div", _hoisted_3$1, [
78961
- renderSlot(_ctx.$slots, "header-left", {}, void 0, true)
78962
- ]),
78963
- createElementVNode("div", _hoisted_4, [
78964
- renderSlot(_ctx.$slots, "header-right", {}, () => [
78965
- __props.showAddButton ? (openBlock(), createBlock(_component_el_button, {
78959
+ renderSlot(_ctx.$slots, "page-content", {}, () => [
78960
+ __props.showHeaderToolbar ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
78961
+ createElementVNode("div", _hoisted_3$1, [
78962
+ renderSlot(_ctx.$slots, "header-left", {}, void 0, true)
78963
+ ]),
78964
+ createElementVNode("div", _hoisted_4, [
78965
+ renderSlot(_ctx.$slots, "header-right", {}, () => [
78966
+ __props.showAddButton ? (openBlock(), createBlock(_component_el_button, {
78967
+ key: 0,
78968
+ type: "primary",
78969
+ icon: unref(plus_default),
78970
+ onClick: handleAdd
78971
+ }, {
78972
+ default: withCtx(() => [
78973
+ createTextVNode(toDisplayString(__props.addButtonText), 1)
78974
+ ]),
78975
+ _: 1
78976
+ }, 8, ["icon"])) : createCommentVNode("", true)
78977
+ ], true)
78978
+ ])
78979
+ ])) : createCommentVNode("", true),
78980
+ withDirectives((openBlock(), createBlock(_component_el_table, mergeProps({
78981
+ ref_key: "tableRef",
78982
+ ref: tableRef
78983
+ }, tableAttrs.value, {
78984
+ data: __props.tableData,
78985
+ border: __props.border,
78986
+ stripe: __props.stripe,
78987
+ height: __props.height,
78988
+ "max-height": __props.maxHeight,
78989
+ "row-key": __props.rowKey,
78990
+ "default-expand-all": __props.defaultExpandAll,
78991
+ "highlight-current-row": __props.highlightCurrentRow,
78992
+ onSelectionChange: handleSelectionChange,
78993
+ onSortChange: handleSortChange2,
78994
+ onRowClick: handleRowClick
78995
+ }), {
78996
+ empty: withCtx(() => [
78997
+ renderSlot(_ctx.$slots, "empty", {}, () => [
78998
+ createVNode(_component_el_empty, { description: "暂无数据" })
78999
+ ], true)
79000
+ ]),
79001
+ default: withCtx(() => [
79002
+ __props.showSelection ? (openBlock(), createBlock(_component_el_table_column, {
78966
79003
  key: 0,
78967
- type: "primary",
78968
- icon: unref(plus_default),
78969
- onClick: handleAdd
78970
- }, {
78971
- default: withCtx(() => [
78972
- createTextVNode(toDisplayString(__props.addButtonText), 1)
78973
- ]),
78974
- _: 1
78975
- }, 8, ["icon"])) : createCommentVNode("", true)
78976
- ], true)
78977
- ])
78978
- ])) : createCommentVNode("", true),
78979
- withDirectives((openBlock(), createBlock(_component_el_table, mergeProps({
78980
- ref_key: "tableRef",
78981
- ref: tableRef
78982
- }, tableAttrs.value, {
78983
- data: __props.tableData,
78984
- border: __props.border,
78985
- stripe: __props.stripe,
78986
- height: __props.height,
78987
- "max-height": __props.maxHeight,
78988
- "row-key": __props.rowKey,
78989
- "default-expand-all": __props.defaultExpandAll,
78990
- "highlight-current-row": __props.highlightCurrentRow,
78991
- onSelectionChange: handleSelectionChange,
78992
- onSortChange: handleSortChange2,
78993
- onRowClick: handleRowClick
78994
- }), {
78995
- empty: withCtx(() => [
78996
- renderSlot(_ctx.$slots, "empty", {}, () => [
78997
- createVNode(_component_el_empty, { description: "暂无数据" })
78998
- ], true)
78999
- ]),
79000
- default: withCtx(() => [
79001
- __props.showSelection ? (openBlock(), createBlock(_component_el_table_column, {
79002
- key: 0,
79003
- type: "selection",
79004
- width: "55",
79005
- align: "center",
79006
- "reserve-selection": !!__props.rowKey
79007
- }, null, 8, ["reserve-selection"])) : createCommentVNode("", true),
79008
- __props.showIndex ? (openBlock(), createBlock(_component_el_table_column, {
79009
- key: 1,
79010
- type: "index",
79011
- label: "序号",
79012
- width: "60",
79013
- index: getNumIndex,
79014
- align: "center"
79015
- })) : createCommentVNode("", true),
79016
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (column) => {
79017
- return openBlock(), createBlock(_sfc_main$2, {
79018
- key: column.prop || column.type || column.label,
79019
- column,
79020
- onLinkClick: handleLinkClick
79021
- }, createSlots({ _: 2 }, [
79022
- renderList(_ctx.$slots, (_3, slotName) => {
79023
- return {
79024
- name: slotName,
79025
- fn: withCtx((slotData) => [
79026
- renderSlot(_ctx.$slots, slotName, mergeProps({ ref_for: true }, slotData), void 0, true)
79027
- ])
79028
- };
79029
- })
79030
- ]), 1032, ["column"]);
79031
- }), 128))
79004
+ type: "selection",
79005
+ width: "55",
79006
+ align: "center",
79007
+ "reserve-selection": !!__props.rowKey
79008
+ }, null, 8, ["reserve-selection"])) : createCommentVNode("", true),
79009
+ __props.showIndex ? (openBlock(), createBlock(_component_el_table_column, {
79010
+ key: 1,
79011
+ type: "index",
79012
+ label: "序号",
79013
+ width: "60",
79014
+ index: getNumIndex,
79015
+ align: "center"
79016
+ })) : createCommentVNode("", true),
79017
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (column) => {
79018
+ return openBlock(), createBlock(_sfc_main$2, {
79019
+ key: column.prop || column.type || column.label,
79020
+ column,
79021
+ onLinkClick: handleLinkClick
79022
+ }, createSlots({ _: 2 }, [
79023
+ renderList(_ctx.$slots, (_3, slotName) => {
79024
+ return {
79025
+ name: slotName,
79026
+ fn: withCtx((slotData) => [
79027
+ renderSlot(_ctx.$slots, slotName, mergeProps({ ref_for: true }, slotData), void 0, true)
79028
+ ])
79029
+ };
79030
+ })
79031
+ ]), 1032, ["column"]);
79032
+ }), 128))
79033
+ ]),
79034
+ _: 3
79035
+ }, 16, ["data", "border", "stripe", "height", "max-height", "row-key", "default-expand-all", "highlight-current-row"])), [
79036
+ [_directive_loading, __props.loading]
79032
79037
  ]),
79033
- _: 3
79034
- }, 16, ["data", "border", "stripe", "height", "max-height", "row-key", "default-expand-all", "highlight-current-row"])), [
79035
- [_directive_loading, __props.loading]
79036
- ]),
79037
- __props.showPagination ? (openBlock(), createElementBlock("div", _hoisted_5, [
79038
- createVNode(_component_el_pagination, {
79039
- "current-page": currentPageModel.value,
79040
- "onUpdate:currentPage": _cache[0] || (_cache[0] = ($event) => currentPageModel.value = $event),
79041
- "page-size": pageSizeModel.value,
79042
- "onUpdate:pageSize": _cache[1] || (_cache[1] = ($event) => pageSizeModel.value = $event),
79043
- "page-sizes": __props.pageSizes,
79044
- total: __props.total,
79045
- layout: __props.paginationLayout,
79046
- onSizeChange: handleSizeChange,
79047
- onCurrentChange: handleCurrentChange
79048
- }, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout"])
79049
- ])) : createCommentVNode("", true)
79038
+ __props.showPagination ? (openBlock(), createElementBlock("div", _hoisted_5, [
79039
+ createVNode(_component_el_pagination, {
79040
+ "current-page": currentPageModel.value,
79041
+ "onUpdate:currentPage": _cache[0] || (_cache[0] = ($event) => currentPageModel.value = $event),
79042
+ "page-size": pageSizeModel.value,
79043
+ "onUpdate:pageSize": _cache[1] || (_cache[1] = ($event) => pageSizeModel.value = $event),
79044
+ "page-sizes": __props.pageSizes,
79045
+ total: __props.total,
79046
+ layout: __props.paginationLayout,
79047
+ onSizeChange: handleSizeChange,
79048
+ onCurrentChange: handleCurrentChange
79049
+ }, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout"])
79050
+ ])) : createCommentVNode("", true)
79051
+ ], true)
79050
79052
  ]);
79051
79053
  };
79052
79054
  }
79053
79055
  };
79054
- const NsTable = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-b1074b05"]]);
79056
+ const NsTable = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-629ce96f"]]);
79055
79057
  const _hoisted_1 = { class: "page-container" };
79056
79058
  const _hoisted_2 = {
79057
79059
  key: 0,