@indfnd/common 1.1.47 → 1.1.49

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,27 @@
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.49](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.48...v1.1.49) (2026-02-11)
6
+
7
+
8
+ ### Features
9
+
10
+ * nform的下拉默认支持筛选,且仅按照label筛选,原逻辑默认不支持筛选,筛选按照key或value模糊匹配。 ([5a77838](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/5a778384c2545adc75492b4fc62825fe918edc5f))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * 处理tip插槽 ([6905c80](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/6905c8043bb20f37f31d651845d4b1724b8ec5b3))
16
+ * 处理tip插槽 ([93b718f](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/93b718f7f8aff5bc7db78e1a3f8708ca5894a256))
17
+
18
+ ### [1.1.48](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.46...v1.1.48) (2026-02-10)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * 添加报表自定义样式 ([daf74fb](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/daf74fbb603d7d3d921369bea363fe51e5f14716))
24
+ * 添加报表自定义样式 ([b3496e0](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/b3496e0f7035f1ac58d43f6ce2d4c6e379149339))
25
+
5
26
  ### [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
27
 
7
28
 
@@ -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.45";
5463
+ const version = "1.1.48";
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"
@@ -49415,6 +49415,8 @@ var FormImpl = {
49415
49415
  ref: d.formKey,
49416
49416
  props: {
49417
49417
  placeholder: `\u8BF7\u9009\u62E9${d.title}`,
49418
+ filterable: d.props && d.props.filterable === false ? false : true,
49419
+ filterByLabel: d.props && d.props.filterByLabel === false ? false : true,
49418
49420
  ...d.props,
49419
49421
  disabled,
49420
49422
  maxTagCount: 1,
@@ -52547,7 +52549,7 @@ var render$15 = function() {
52547
52549
  var _vm = this;
52548
52550
  var _h = _vm.$createElement;
52549
52551
  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) {
52552
+ 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
52553
  _vm.getStatus = $$v;
52552
52554
  }, 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
52555
  };
@@ -53226,7 +53228,7 @@ var render$14 = function() {
53226
53228
  var _vm = this;
53227
53229
  var _h = _vm.$createElement;
53228
53230
  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) {
53231
+ 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), _vm.tipPostion == "singleLine" && _vm.$slots.tip ? _c("div", { ref: "tip", staticClass: "tip" }, [_vm._t("tip")], 2) : _vm._e(), _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%" } }, [_vm.tipPostion == "singleLine" ? _c("IndButtonGroup", { attrs: { "split": "", "mb": "" } }, [_vm._t("buttons")], 2) : _vm._e(), _vm.tipPostion != "singleLine" && _vm.$slots.tip ? _c("div", { staticClass: "tip" }, [_vm._t("tip")], 2) : _vm._e()], 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
53232
  _vm.showZero = $$v;
53231
53233
  }, 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
53234
  _vm.unitType = $$v;
@@ -53242,7 +53244,7 @@ var render$14 = function() {
53242
53244
  _vm.checkAllGroup = $$v;
53243
53245
  }, expression: "checkAllGroup" } }, [_vm._l(_vm.columns, function(item2) {
53244
53246
  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.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);
53247
+ }), _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
53248
  };
53247
53249
  var staticRenderFns$14 = [];
53248
53250
  function suppressNavigation$1(params) {
@@ -53352,6 +53354,14 @@ const __vue2_script$15 = {
53352
53354
  return ((_a = this.$config) == null ? void 0 : _a.agHeaderHeight) || 28;
53353
53355
  }
53354
53356
  },
53357
+ mini: {
53358
+ type: Boolean,
53359
+ default: false
53360
+ },
53361
+ tipPostion: {
53362
+ type: String,
53363
+ default: "singleLine"
53364
+ },
53355
53365
  rowMultiSelectWithClick: Boolean,
53356
53366
  pinnedTopRowData: Array,
53357
53367
  pinnedBottomRowData: Array,
@@ -53730,6 +53740,13 @@ const __vue2_script$15 = {
53730
53740
  },
53731
53741
  shareFullSreen() {
53732
53742
  return this.$store.state.app.isFullSreen;
53743
+ },
53744
+ getHeaderHeight() {
53745
+ if (this.mini) {
53746
+ return 21;
53747
+ } else {
53748
+ return this.headerHeight;
53749
+ }
53733
53750
  }
53734
53751
  },
53735
53752
  watch: {
@@ -54172,11 +54189,15 @@ const __vue2_script$15 = {
54172
54189
  this.fullSreen = !this.fullSreen;
54173
54190
  },
54174
54191
  getRowHeight() {
54175
- let heightEnum = {
54176
- "ind-default-theme": 42,
54177
- "ind-small-theme": 28
54178
- };
54179
- return (this.$config.agLineHeight || heightEnum[this.getTheme] || 0) + this.rowAddHeight;
54192
+ if (this.mini) {
54193
+ return 21;
54194
+ } else {
54195
+ let heightEnum = {
54196
+ "ind-default-theme": 42,
54197
+ "ind-small-theme": 28
54198
+ };
54199
+ return (this.$config.agLineHeight || heightEnum[this.getTheme] || 0) + this.rowAddHeight;
54200
+ }
54180
54201
  },
54181
54202
  onGridReady(params) {
54182
54203
  window.gridApi = this.gridApi = params.api;