@indfnd/common 1.0.114 → 1.0.116

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,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.0.116](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.115...v1.0.116) (2025-05-13)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * 表格内部echarts部分配置项改为外部传参 ([3e2dbbd](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/3e2dbbded5a5efa24030440af78cc73b1a1750c5))
11
+
12
+ ### [1.0.115](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.114...v1.0.115) (2025-05-13)
13
+
5
14
  ### [1.0.114](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.113...v1.0.114) (2025-05-12)
6
15
 
7
16
 
@@ -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.0.112";
5463
+ const version = "1.0.115";
5464
5464
  const author = "huxuetong";
5465
5465
  const publishConfig = {
5466
5466
  registry: "https://registry.npmjs.org/"
@@ -54564,6 +54564,7 @@ const __vue2_script$13 = {
54564
54564
  this.setChartOption(chart);
54565
54565
  },
54566
54566
  setChartOption(chart) {
54567
+ var _a, _b, _c, _d;
54567
54568
  chart.off("click");
54568
54569
  const containerHeight = this.$refs.lineChart.offsetHeight;
54569
54570
  const gridHeight = containerHeight * 0.8;
@@ -54600,8 +54601,9 @@ const __vue2_script$13 = {
54600
54601
  type: "line",
54601
54602
  smooth: true,
54602
54603
  symbolSize: 4,
54604
+ symbol: ((_b = (_a = this.params) == null ? void 0 : _a.config) == null ? void 0 : _b.symbol) ? this.params.config.symbol : "circle",
54603
54605
  itemStyle: {
54604
- color: "rgb(19, 127, 209)"
54606
+ color: ((_d = (_c = this.params) == null ? void 0 : _c.config) == null ? void 0 : _d.color) ? this.params.config.color : "rgb(19, 127, 209)"
54605
54607
  }
54606
54608
  }
54607
54609
  ]
@@ -54646,7 +54648,7 @@ var render$11 = function() {
54646
54648
  var _c = _vm._self._c || _h;
54647
54649
  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%" } }, [_vm.showUnitSwitch && _vm.isShowUnitSwitch ? _c("IndUnitRadio", { staticStyle: { "margin-top": "var(--ind-unit-switch-bottom)", "line-height": "1", "margin-left": "10px" }, attrs: { "isShowWX": _vm.isShowWX, "isShowJ": _vm.isShowJ }, model: { value: _vm.unitType, callback: function($$v) {
54648
54650
  _vm.unitType = $$v;
54649
- }, expression: "unitType" } }) : _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)])])], 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.getRowHeight(), "getRowHeight": _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", { staticStyle: { "margin-top": "10px" } }, [_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);
54651
+ }, expression: "unitType" } }) : _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)])])], 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", { staticStyle: { "margin-top": "10px" } }, [_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);
54650
54652
  };
54651
54653
  var staticRenderFns$11 = [];
54652
54654
  function suppressNavigation(params) {
@@ -54743,6 +54745,7 @@ const __vue2_script$12 = {
54743
54745
  type: Number,
54744
54746
  default: 28
54745
54747
  },
54748
+ getRowHeightProp: Function,
54746
54749
  rowMultiSelectWithClick: Boolean,
54747
54750
  pinnedTopRowData: Array,
54748
54751
  pinnedBottomRowData: Array,
@@ -56340,6 +56343,56 @@ const __vue2_script$12 = {
56340
56343
  });
56341
56344
  await this.$nextTick();
56342
56345
  this.updating = false;
56346
+ },
56347
+ async outSortChanged(sortParams) {
56348
+ if (sortParams.order === void 0) {
56349
+ Reflect.deleteProperty(this.sortParams, "sort");
56350
+ Reflect.deleteProperty(this.sortParams, "order");
56351
+ } else {
56352
+ this.sortParams = {
56353
+ sort: sortParams.sort,
56354
+ order: sortParams.order
56355
+ };
56356
+ }
56357
+ if (this.dataApi && !this.disablePage) {
56358
+ this.currentPage = 1;
56359
+ this.tableRefresh();
56360
+ } else {
56361
+ let topData = [];
56362
+ if (sortParams.order === void 0) {
56363
+ if (this.dataApi) {
56364
+ let tableDataTmp = _.cloneDeep(this.tableData);
56365
+ tableDataTmp = _.orderBy(tableDataTmp, ["_initialseq"], ["asc"]);
56366
+ this.tableData = tableDataTmp;
56367
+ } else {
56368
+ this.tableData = _.cloneDeep(this.value);
56369
+ }
56370
+ } else {
56371
+ if (this.noSortLine > -1) {
56372
+ topData = this.tableData.slice(0, this.noSortLine);
56373
+ this.tableData.splice(0, this.noSortLine);
56374
+ }
56375
+ this.tableData.sort((a, b) => {
56376
+ if (typeof a[this.sortParams.sort] == "number" && typeof b[this.sortParams.sort] == "number") {
56377
+ let _a = isNaN(parseFloat(a[this.sortParams.sort])) ? 0 : parseFloat(a[this.sortParams.sort]);
56378
+ let _b = isNaN(parseFloat(b[this.sortParams.sort])) ? 0 : parseFloat(b[this.sortParams.sort]);
56379
+ return this.sortParams.order === "asc" ? _a - _b : _b - _a;
56380
+ } else {
56381
+ let a2 = a[this.sortParams.sort] || "";
56382
+ let b2 = b[this.sortParams.sort] || "";
56383
+ return this.sortParams.order === "asc" ? a2.localeCompare(b2, "zh-CN") : b2.localeCompare(a2, "zh-CN");
56384
+ }
56385
+ });
56386
+ if (this.noSortLine > -1) {
56387
+ this.tableData = [...topData, ..._.cloneDeep(this.tableData)];
56388
+ }
56389
+ }
56390
+ this.$nextTick().then(() => {
56391
+ this.gridApi.refreshCells({ force: true });
56392
+ });
56393
+ }
56394
+ this.refreshCells();
56395
+ this.$emit("on-sort-change", sortParams);
56343
56396
  }
56344
56397
  }
56345
56398
  };