@indfnd/common 1.1.11 → 1.1.13
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 +9 -0
- package/dist/ind-common.es.js +20 -5
- package/dist/ind-common.umd.cjs +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
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.13](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.12...v1.1.13) (2025-09-24)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **table:** 增加分页配置项pageSize和pageSizeOpts ([88ebb25](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/88ebb25835025e37432c1e83aa90286ade3f126f))
|
|
11
|
+
|
|
12
|
+
### [1.1.12](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.11...v1.1.12) (2025-09-24)
|
|
13
|
+
|
|
5
14
|
### [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
15
|
|
|
7
16
|
|
package/dist/ind-common.es.js
CHANGED
|
@@ -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.
|
|
5463
|
+
const version = "1.1.12";
|
|
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: [],
|
|
@@ -61079,6 +61081,7 @@ const __vue2_script$z = {
|
|
|
61079
61081
|
inheritAttrs: false,
|
|
61080
61082
|
components: { Poptip, Tree },
|
|
61081
61083
|
props: {
|
|
61084
|
+
isAutoLoad: { type: Boolean, default: true },
|
|
61082
61085
|
data: Array,
|
|
61083
61086
|
dataApi: Function,
|
|
61084
61087
|
value: Array,
|
|
@@ -61118,7 +61121,19 @@ const __vue2_script$z = {
|
|
|
61118
61121
|
deactivated() {
|
|
61119
61122
|
this.visible = false;
|
|
61120
61123
|
},
|
|
61121
|
-
watch: {
|
|
61124
|
+
watch: {
|
|
61125
|
+
value: {
|
|
61126
|
+
handler: async function(val) {
|
|
61127
|
+
await this.$nextTick();
|
|
61128
|
+
if (this.isAutoLoad) {
|
|
61129
|
+
this.updateSelectedTitles();
|
|
61130
|
+
} else {
|
|
61131
|
+
this.selectedTitles = _.join(_.map(val || [], "title"), ",");
|
|
61132
|
+
}
|
|
61133
|
+
},
|
|
61134
|
+
deep: true
|
|
61135
|
+
}
|
|
61136
|
+
},
|
|
61122
61137
|
methods: {
|
|
61123
61138
|
visibleChange(value) {
|
|
61124
61139
|
this.visible = value;
|
|
@@ -61230,7 +61245,7 @@ var __component__$z = /* @__PURE__ */ normalizeComponent(
|
|
|
61230
61245
|
staticRenderFns$y,
|
|
61231
61246
|
false,
|
|
61232
61247
|
__vue2_injectStyles$z,
|
|
61233
|
-
"
|
|
61248
|
+
"2c707f00",
|
|
61234
61249
|
null,
|
|
61235
61250
|
null
|
|
61236
61251
|
);
|