@indfnd/common 1.1.47 → 1.1.48
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 +8 -0
- package/dist/ind-common.es.js +28 -13
- package/dist/ind-common.umd.cjs +4 -4
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
- package/src/styles/components/table.less +66 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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.48](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.46...v1.1.48) (2026-02-10)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* 添加报表自定义样式 ([daf74fb](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/daf74fbb603d7d3d921369bea363fe51e5f14716))
|
|
11
|
+
* 添加报表自定义样式 ([b3496e0](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/b3496e0f7035f1ac58d43f6ce2d4c6e379149339))
|
|
12
|
+
|
|
5
13
|
### [1.1.46](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.45...v1.1.46) (2026-02-02)
|
|
6
14
|
|
|
7
15
|
|
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.47";
|
|
5464
5464
|
const author = "huxuetong";
|
|
5465
5465
|
const publishConfig = {
|
|
5466
5466
|
registry: "https://registry.npmjs.org/"
|
|
@@ -5515,16 +5515,17 @@ const dependencies = {
|
|
|
5515
5515
|
"file-saver": "^2.0.5",
|
|
5516
5516
|
signature_pad: "^4.1.7",
|
|
5517
5517
|
vuedraggable: "^2.24.3",
|
|
5518
|
+
wangeditor: "^3.1.1",
|
|
5518
5519
|
"xe-utils": "3",
|
|
5519
5520
|
xlsx: "^0.17.2",
|
|
5520
|
-
"xlsx-populate": "^1.11.0"
|
|
5521
|
-
wangeditor: "^3.1.1"
|
|
5521
|
+
"xlsx-populate": "^1.11.0"
|
|
5522
5522
|
};
|
|
5523
5523
|
const devDependencies = {
|
|
5524
5524
|
"@indfnd/utils": "^0.1.33",
|
|
5525
5525
|
"ag-grid-community": "^30.1.0",
|
|
5526
5526
|
"ag-grid-enterprise": "^30.1.0",
|
|
5527
5527
|
"ag-grid-vue": "^30.1.0",
|
|
5528
|
+
axios: "^0.24.0",
|
|
5528
5529
|
eslint: "^3.19.0",
|
|
5529
5530
|
"eslint-config-prettier": "^8.5.0",
|
|
5530
5531
|
"eslint-plugin-prettier": "^4.2.1",
|
|
@@ -5549,8 +5550,7 @@ const devDependencies = {
|
|
|
5549
5550
|
"vue-router": "^3.5.3",
|
|
5550
5551
|
"vue-template-compiler": "^2.6.12",
|
|
5551
5552
|
"vue-tsc": "^1.8.8",
|
|
5552
|
-
vuex: "^3.6.2"
|
|
5553
|
-
axios: "^0.24.0"
|
|
5553
|
+
vuex: "^3.6.2"
|
|
5554
5554
|
};
|
|
5555
5555
|
const engines = {
|
|
5556
5556
|
node: ">= 16"
|
|
@@ -52547,7 +52547,7 @@ var render$15 = function() {
|
|
|
52547
52547
|
var _vm = this;
|
|
52548
52548
|
var _h = _vm.$createElement;
|
|
52549
52549
|
var _c = _vm._self._c || _h;
|
|
52550
|
-
return _c("iSwitch", { attrs: { "size": _vm.getCellRendererParams.size || "", "disabled": _vm.getCellRendererParams.disabled || false, "true-color": _vm.getCellRendererParams.trueColor || "", "false-color": _vm.getCellRendererParams.falseColor || "" }, on: { "on-change": _vm.change }, model: { value: _vm.getStatus, callback: function($$v) {
|
|
52550
|
+
return _c("iSwitch", { attrs: { "size": _vm.getCellRendererParams.size || "small", "disabled": _vm.getCellRendererParams.disabled || false, "true-color": _vm.getCellRendererParams.trueColor || "", "false-color": _vm.getCellRendererParams.falseColor || "" }, on: { "on-change": _vm.change }, model: { value: _vm.getStatus, callback: function($$v) {
|
|
52551
52551
|
_vm.getStatus = $$v;
|
|
52552
52552
|
}, expression: "getStatus" } }, [_c("span", { attrs: { "slot": "open" }, slot: "open" }, [_vm._v(_vm._s(_vm.getEnumList[0].V || ""))]), _c("span", { attrs: { "slot": "close" }, slot: "close" }, [_vm._v(_vm._s(_vm.getEnumList[1].V || ""))])]);
|
|
52553
52553
|
};
|
|
@@ -53226,7 +53226,7 @@ var render$14 = function() {
|
|
|
53226
53226
|
var _vm = this;
|
|
53227
53227
|
var _h = _vm.$createElement;
|
|
53228
53228
|
var _c = _vm._self._c || _h;
|
|
53229
|
-
return _c("div", { staticClass: "lambo-grid-table", class: [_vm.fullSreen ? "fullscreen-fixed" : ""] }, [_c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.$slots.search, expression: "$slots.search" }], ref: "search", staticClass: "search" }, [_vm._t("search")], 2), _c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.$slots.tip, expression: "$slots.tip" }], ref: "tip", staticClass: "tip" }, [_vm._t("tip")], 2), _c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.$slots.important - _vm.tip, expression: "$slots.important - tip" }], ref: "important-tip", staticClass: "important-tip" }, [_c("Icon", { attrs: { "type": "md-information-circle" } }), _vm._t("important-tip")], 2), _c("div", { ref: "buttons", staticClass: "other-button" }, [_c("Row", [[_c("i-col", { staticStyle: { "text-align": "left" }, attrs: { "flex": "1 1 0%" } }, [_c("IndButtonGroup", { attrs: { "split": "", "mb": "" } }, [_vm._t("buttons")], 2)], 1)], _c("i-col", { directives: [{ name: "show", rawName: "v-show", value: _vm.showUnitSwitch && _vm.isShowUnitSwitch || _vm.showTableOption || _vm.$slots.options, expression: "(showUnitSwitch && isShowUnitSwitch) || showTableOption || $slots.options" }], staticStyle: { "text-align": "right" }, attrs: { "flex": "0 0 auto" } }, [_c("div", { staticClass: "ind-flex end" }, [_c("div", { staticStyle: { "line-height": "var(--ivu-form-item-content-line-height)", "padding-bottom": "calc(var(--ind-table-button-padding) + 2px)", "margin-right": "10px" } }, [_vm._t("options")], 2), _vm.showZeroSwitch ? _c("IndZeroRadio", { staticStyle: { "margin-bottom": "var(--ind-unit-switch-bottom)", "line-height": "1" }, attrs: { "zeroTitle": _vm.switchZeroTitle }, model: { value: _vm.showZero, callback: function($$v) {
|
|
53229
|
+
return _c("div", { staticClass: "lambo-grid-table", class: [_vm.fullSreen ? "fullscreen-fixed" : "", _vm.mini ? "mini-theme" : ""] }, [_c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.$slots.search, expression: "$slots.search" }], ref: "search", staticClass: "search" }, [_vm._t("search")], 2), _c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.$slots.tip, expression: "$slots.tip" }], ref: "tip", staticClass: "tip" }, [_vm._t("tip")], 2), _c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.$slots.important - _vm.tip, expression: "$slots.important - tip" }], ref: "important-tip", staticClass: "important-tip" }, [_c("Icon", { attrs: { "type": "md-information-circle" } }), _vm._t("important-tip")], 2), _c("div", { ref: "buttons", staticClass: "other-button" }, [_c("Row", [[_c("i-col", { staticStyle: { "text-align": "left" }, attrs: { "flex": "1 1 0%" } }, [_c("IndButtonGroup", { attrs: { "split": "", "mb": "" } }, [_vm._t("buttons")], 2)], 1)], _c("i-col", { directives: [{ name: "show", rawName: "v-show", value: _vm.showUnitSwitch && _vm.isShowUnitSwitch || _vm.showTableOption || _vm.$slots.options, expression: "(showUnitSwitch && isShowUnitSwitch) || showTableOption || $slots.options" }], staticStyle: { "text-align": "right" }, attrs: { "flex": "0 0 auto" } }, [_c("div", { staticClass: "ind-flex end" }, [_c("div", { staticStyle: { "line-height": "var(--ivu-form-item-content-line-height)", "padding-bottom": "calc(var(--ind-table-button-padding) + 2px)", "margin-right": "10px" } }, [_vm._t("options")], 2), _vm.showZeroSwitch ? _c("IndZeroRadio", { staticStyle: { "margin-bottom": "var(--ind-unit-switch-bottom)", "line-height": "1" }, attrs: { "zeroTitle": _vm.switchZeroTitle }, model: { value: _vm.showZero, callback: function($$v) {
|
|
53230
53230
|
_vm.showZero = $$v;
|
|
53231
53231
|
}, expression: "showZero" } }) : _vm._e(), _vm.showUnitSwitch && _vm.isShowUnitSwitch ? _c("IndUnitRadio", { staticStyle: { "margin-bottom": "var(--ind-unit-switch-bottom)", "line-height": "1" }, attrs: { "isShowWX": _vm.isShowWX, "isShowJ": _vm.isShowJ }, model: { value: _vm.unitType, callback: function($$v) {
|
|
53232
53232
|
_vm.unitType = $$v;
|
|
@@ -53242,7 +53242,7 @@ var render$14 = function() {
|
|
|
53242
53242
|
_vm.checkAllGroup = $$v;
|
|
53243
53243
|
}, expression: "checkAllGroup" } }, [_vm._l(_vm.columns, function(item2) {
|
|
53244
53244
|
return [item2.title ? _c("Checkbox", { key: item2.field, attrs: { "label": item2.title } }, [_vm._v(_vm._s(item2.title))]) : _vm._e()];
|
|
53245
|
-
}), _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.
|
|
53245
|
+
}), _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.getHeaderHeight, "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);
|
|
53246
53246
|
};
|
|
53247
53247
|
var staticRenderFns$14 = [];
|
|
53248
53248
|
function suppressNavigation$1(params) {
|
|
@@ -53352,6 +53352,10 @@ const __vue2_script$15 = {
|
|
|
53352
53352
|
return ((_a = this.$config) == null ? void 0 : _a.agHeaderHeight) || 28;
|
|
53353
53353
|
}
|
|
53354
53354
|
},
|
|
53355
|
+
mini: {
|
|
53356
|
+
type: Boolean,
|
|
53357
|
+
default: false
|
|
53358
|
+
},
|
|
53355
53359
|
rowMultiSelectWithClick: Boolean,
|
|
53356
53360
|
pinnedTopRowData: Array,
|
|
53357
53361
|
pinnedBottomRowData: Array,
|
|
@@ -53730,6 +53734,13 @@ const __vue2_script$15 = {
|
|
|
53730
53734
|
},
|
|
53731
53735
|
shareFullSreen() {
|
|
53732
53736
|
return this.$store.state.app.isFullSreen;
|
|
53737
|
+
},
|
|
53738
|
+
getHeaderHeight() {
|
|
53739
|
+
if (this.mini) {
|
|
53740
|
+
return 21;
|
|
53741
|
+
} else {
|
|
53742
|
+
return this.headerHeight;
|
|
53743
|
+
}
|
|
53733
53744
|
}
|
|
53734
53745
|
},
|
|
53735
53746
|
watch: {
|
|
@@ -54172,11 +54183,15 @@ const __vue2_script$15 = {
|
|
|
54172
54183
|
this.fullSreen = !this.fullSreen;
|
|
54173
54184
|
},
|
|
54174
54185
|
getRowHeight() {
|
|
54175
|
-
|
|
54176
|
-
|
|
54177
|
-
|
|
54178
|
-
|
|
54179
|
-
|
|
54186
|
+
if (this.mini) {
|
|
54187
|
+
return 21;
|
|
54188
|
+
} else {
|
|
54189
|
+
let heightEnum = {
|
|
54190
|
+
"ind-default-theme": 42,
|
|
54191
|
+
"ind-small-theme": 28
|
|
54192
|
+
};
|
|
54193
|
+
return (this.$config.agLineHeight || heightEnum[this.getTheme] || 0) + this.rowAddHeight;
|
|
54194
|
+
}
|
|
54180
54195
|
},
|
|
54181
54196
|
onGridReady(params) {
|
|
54182
54197
|
window.gridApi = this.gridApi = params.api;
|