@indfnd/common 1.1.11 → 1.1.14

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/CHANGELOG.md CHANGED
@@ -2,6 +2,17 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.1.14](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.13...v1.1.14) (2025-09-24)
6
+
7
+ ### [1.1.13](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.12...v1.1.13) (2025-09-24)
8
+
9
+
10
+ ### Features
11
+
12
+ * **table:** 增加分页配置项pageSize和pageSizeOpts ([88ebb25](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/88ebb25835025e37432c1e83aa90286ade3f126f))
13
+
14
+ ### [1.1.12](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.11...v1.1.12) (2025-09-24)
15
+
5
16
  ### [1.1.11](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.10...v1.1.11) (2025-09-16)
6
17
 
7
18
 
@@ -5460,7 +5460,7 @@ var lodash = { exports: {} };
5460
5460
  })(lodash, lodash.exports);
5461
5461
  var _ = lodash.exports;
5462
5462
  const name$1 = "@indfnd/common";
5463
- const version = "1.1.10";
5463
+ const version = "1.1.13";
5464
5464
  const author = "huxuetong";
5465
5465
  const publishConfig = {
5466
5466
  registry: "https://registry.npmjs.org/"
@@ -53140,7 +53140,7 @@ var render$13 = function() {
53140
53140
  _vm.checkAllGroup = $$v;
53141
53141
  }, expression: "checkAllGroup" } }, [_vm._l(_vm.columns, function(item2) {
53142
53142
  return [item2.title ? _c("Checkbox", { key: item2.field, attrs: { "label": item2.title } }, [_vm._v(_vm._s(item2.title))]) : _vm._e()];
53143
- }), _c("br"), _c("br"), _vm._v(" \xA0 "), _c("Button", { staticClass: "table-column-select-btn", attrs: { "type": "default" }, on: { "click": _vm.columnSave } }, [_vm._v("\u4FDD \u5B58")]), _vm._v(" \xA0 "), _c("Button", { staticClass: "table-column-select-btn", attrs: { "type": "default" }, on: { "click": _vm.columnClear } }, [_vm._v("\u6E05 \u9664")])], 2), _c("Button", { directives: [{ name: "show", rawName: "v-show", value: _vm.btnSel != "1", expression: "btnSel != '1'" }], staticStyle: { "position": "absolute", "top": "10px", "right": "10px" }, attrs: { "type": "primary", "icon": "md-close", "size": "small", "title": "\u5173\u95ED" }, on: { "click": _vm.closeTableSettingDropdown } })], 1)], 1)], 1)])], 2)], 1), _c("IndLoadingPanel", { attrs: { "loading": _vm.tableLoading } }, [!_vm.refreshTable ? _c("ag-grid-vue", _vm._g(_vm._b({ ref: "tableRef", staticClass: "ag-theme-balham", style: { height: _vm.height && !_vm.fullSreen ? _vm.height + "px" : "100%" }, attrs: { "id": "agTable", "suppressCellFocus": true, "suppressMenu": true, "suppressContextMenu": !_vm.showTableOption, "defaultColDef": _vm.defaultColDef, "headerHeight": _vm.headerHeight, "rowHeight": _vm.getRowHeightProp ? _vm.getRowHeightProp() : _vm.getRowHeight(), "getRowHeight": _vm.getRowHeightProp || _vm.getRowHeight, "rowData": _vm.rowDataFiltered, "suppressRowClickSelection": (_vm.isPc || _vm.isEditTable) && _vm.rowSelection == "multiple" || _vm.suppressRowClickSelection, "rowSelection": _vm.rowSelection, "rowMultiSelectWithClick": !_vm.isPc && !_vm.isEditTable && (_vm.rowSelection == "multiple" || _vm.rowMultiSelectWithClick), "columnDefs": _vm.tableColumns, "localeText": _vm.localeText, "singleClickEdit": true, "pinnedTopRowData": _vm.topRows, "pinnedBottomRowData": _vm.pinnedBottomRowData, "suppressRowTransform": true, "stopEditingWhenCellsLoseFocus": true, "getRowClass": _vm.getRowClassCommon, "getRowId": _vm.getRowId, "tooltipShowDelay": 500, "overlayNoRowsTemplate": _vm.noRowsTemplate || _vm.overlayNoRowsTemplate, "treeData": _vm.treeData, "getDataPath": _vm.getDataPath, "autoGroupColumnDef": _vm.autoGroupColumnDef, "groupDisplayType": _vm.groupDisplayType, "groupSelectsChildren": _vm.groupSelectsChildren, "groupDefaultExpanded": _vm.groupDefaultExpanded, "getContextMenuItems": _vm.getContextMenuItems }, on: { "sortChanged": _vm.sortChanged, "selection-changed": _vm.selectionChanged, "rowSelected": _vm.rowSelected, "grid-ready": _vm.onGridReady, "cellClicked": _vm.cellClicked, "cellDoubleClicked": _vm.cellDoubleClicked } }, "ag-grid-vue", _vm.$attrs, false), _vm.$listeners)) : _vm._e()], 1), _vm.showBottom ? _c("div", { ref: "bottom" }, [_c("Row", [_c("i-col", { staticStyle: { "text-align": "left" }, attrs: { "span": "18" } }, [_c("Page", { directives: [{ name: "show", rawName: "v-show", value: !_vm.disablePage, expression: "!disablePage" }], attrs: { "size": "small", "total": _vm.totalNumber, "current": _vm.currentPage, "page-size": _vm.limitNumber, "show-sizer": "", "show-total": "", "show-elevator": "" }, on: { "on-change": _vm.onPageChange, "on-page-size-change": _vm.onPageSizeChange } }), _c("span", { directives: [{ name: "show", rawName: "v-show", value: _vm.disablePage, expression: "disablePage" }] }, [_vm._v("\u5171 " + _vm._s(_vm.tableData.length) + " \u6761\u6570\u636E")])], 1)], 1)], 1) : _vm._e()], 1);
53143
+ }), _c("br"), _c("br"), _vm._v(" \xA0 "), _c("Button", { staticClass: "table-column-select-btn", attrs: { "type": "default" }, on: { "click": _vm.columnSave } }, [_vm._v("\u4FDD \u5B58")]), _vm._v(" \xA0 "), _c("Button", { staticClass: "table-column-select-btn", attrs: { "type": "default" }, on: { "click": _vm.columnClear } }, [_vm._v("\u6E05 \u9664")])], 2), _c("Button", { directives: [{ name: "show", rawName: "v-show", value: _vm.btnSel != "1", expression: "btnSel != '1'" }], staticStyle: { "position": "absolute", "top": "10px", "right": "10px" }, attrs: { "type": "primary", "icon": "md-close", "size": "small", "title": "\u5173\u95ED" }, on: { "click": _vm.closeTableSettingDropdown } })], 1)], 1)], 1)])], 2)], 1), _c("IndLoadingPanel", { attrs: { "loading": _vm.tableLoading } }, [!_vm.refreshTable ? _c("ag-grid-vue", _vm._g(_vm._b({ ref: "tableRef", staticClass: "ag-theme-balham", style: { height: _vm.height && !_vm.fullSreen ? _vm.height + "px" : "100%" }, attrs: { "id": "agTable", "suppressCellFocus": true, "suppressMenu": true, "suppressContextMenu": !_vm.showTableOption, "defaultColDef": _vm.defaultColDef, "headerHeight": _vm.headerHeight, "rowHeight": _vm.getRowHeightProp ? _vm.getRowHeightProp() : _vm.getRowHeight(), "getRowHeight": _vm.getRowHeightProp || _vm.getRowHeight, "rowData": _vm.rowDataFiltered, "suppressRowClickSelection": (_vm.isPc || _vm.isEditTable) && _vm.rowSelection == "multiple" || _vm.suppressRowClickSelection, "rowSelection": _vm.rowSelection, "rowMultiSelectWithClick": !_vm.isPc && !_vm.isEditTable && (_vm.rowSelection == "multiple" || _vm.rowMultiSelectWithClick), "columnDefs": _vm.tableColumns, "localeText": _vm.localeText, "singleClickEdit": true, "pinnedTopRowData": _vm.topRows, "pinnedBottomRowData": _vm.pinnedBottomRowData, "suppressRowTransform": true, "stopEditingWhenCellsLoseFocus": true, "getRowClass": _vm.getRowClassCommon, "getRowId": _vm.getRowId, "tooltipShowDelay": 500, "overlayNoRowsTemplate": _vm.noRowsTemplate || _vm.overlayNoRowsTemplate, "treeData": _vm.treeData, "getDataPath": _vm.getDataPath, "autoGroupColumnDef": _vm.autoGroupColumnDef, "groupDisplayType": _vm.groupDisplayType, "groupSelectsChildren": _vm.groupSelectsChildren, "groupDefaultExpanded": _vm.groupDefaultExpanded, "getContextMenuItems": _vm.getContextMenuItems }, on: { "sortChanged": _vm.sortChanged, "selection-changed": _vm.selectionChanged, "rowSelected": _vm.rowSelected, "grid-ready": _vm.onGridReady, "cellClicked": _vm.cellClicked, "cellDoubleClicked": _vm.cellDoubleClicked } }, "ag-grid-vue", _vm.$attrs, false), _vm.$listeners)) : _vm._e()], 1), _vm.showBottom ? _c("div", { ref: "bottom" }, [_c("Row", [_c("i-col", { staticStyle: { "text-align": "left" }, attrs: { "span": "18" } }, [_c("Page", { directives: [{ name: "show", rawName: "v-show", value: !_vm.disablePage, expression: "!disablePage" }], attrs: { "size": "small", "total": _vm.totalNumber, "current": _vm.currentPage, "page-size": _vm.limitNumber, "page-size-opts": _vm.pageSizeOpts, "show-sizer": "", "show-total": "", "show-elevator": "" }, on: { "on-change": _vm.onPageChange, "on-page-size-change": _vm.onPageSizeChange } }), _c("span", { directives: [{ name: "show", rawName: "v-show", value: _vm.disablePage, expression: "disablePage" }] }, [_vm._v("\u5171 " + _vm._s(_vm.tableData.length) + " \u6761\u6570\u636E")])], 1)], 1)], 1) : _vm._e()], 1);
53144
53144
  };
53145
53145
  var staticRenderFns$13 = [];
53146
53146
  function suppressNavigation$1(params) {
@@ -53411,6 +53411,7 @@ const __vue2_script$14 = {
53411
53411
  watermark: String
53412
53412
  },
53413
53413
  data() {
53414
+ var _a, _b;
53414
53415
  function isPC() {
53415
53416
  const userAgent = navigator.userAgent;
53416
53417
  const pcKeywords = ["Windows", "Macintosh", "Linux"];
@@ -53443,7 +53444,8 @@ const __vue2_script$14 = {
53443
53444
  tableSummaryMethod: this.summaryMethod,
53444
53445
  totalNumber: 0,
53445
53446
  currentPage: 1,
53446
- limitNumber: 20,
53447
+ limitNumber: ((_a = this.$config) == null ? void 0 : _a.pageSize) || 20,
53448
+ pageSizeOpts: ((_b = this.$config) == null ? void 0 : _b.pageSizeOpts) || [10, 20, 30, 40],
53447
53449
  optionDropdownVisible: false,
53448
53450
  checkAll: true,
53449
53451
  checkAllGroup: [],
@@ -57304,6 +57306,7 @@ const __vue2_script$_ = {
57304
57306
  async created() {
57305
57307
  await this.init();
57306
57308
  this.watchDataProp();
57309
+ this.watchUrlParamsProp();
57307
57310
  this.watchDefaultValueProp();
57308
57311
  this.$nextTick(() => {
57309
57312
  this.$emit(
@@ -57587,6 +57590,15 @@ const __vue2_script$_ = {
57587
57590
  }
57588
57591
  }
57589
57592
  },
57593
+ watchUrlParamsProp() {
57594
+ this.$watch(
57595
+ "urlParams",
57596
+ () => {
57597
+ this.init();
57598
+ },
57599
+ { immediate: true }
57600
+ );
57601
+ },
57590
57602
  watchDefaultValueProp() {
57591
57603
  this.$watch(
57592
57604
  "defaultValueStr",
@@ -61079,6 +61091,7 @@ const __vue2_script$z = {
61079
61091
  inheritAttrs: false,
61080
61092
  components: { Poptip, Tree },
61081
61093
  props: {
61094
+ isAutoLoad: { type: Boolean, default: true },
61082
61095
  data: Array,
61083
61096
  dataApi: Function,
61084
61097
  value: Array,
@@ -61118,7 +61131,19 @@ const __vue2_script$z = {
61118
61131
  deactivated() {
61119
61132
  this.visible = false;
61120
61133
  },
61121
- watch: {},
61134
+ watch: {
61135
+ value: {
61136
+ handler: async function(val) {
61137
+ await this.$nextTick();
61138
+ if (this.isAutoLoad) {
61139
+ this.updateSelectedTitles();
61140
+ } else {
61141
+ this.selectedTitles = _.join(_.map(val || [], "title"), ",");
61142
+ }
61143
+ },
61144
+ deep: true
61145
+ }
61146
+ },
61122
61147
  methods: {
61123
61148
  visibleChange(value) {
61124
61149
  this.visible = value;
@@ -61230,7 +61255,7 @@ var __component__$z = /* @__PURE__ */ normalizeComponent(
61230
61255
  staticRenderFns$y,
61231
61256
  false,
61232
61257
  __vue2_injectStyles$z,
61233
- "23b6178c",
61258
+ "2c707f00",
61234
61259
  null,
61235
61260
  null
61236
61261
  );