@indfnd/common 1.0.113 → 1.0.115

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,20 @@
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.115](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.114...v1.0.115) (2025-05-13)
6
+
7
+ ### [1.0.114](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.113...v1.0.114) (2025-05-12)
8
+
9
+
10
+ ### Features
11
+
12
+ * 支持富文本编辑器的明细展示 ([d6c15b1](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/d6c15b1e76fe6eec7563b909055262897c7492de))
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * 移动端表格修改 ([a98a2bc](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/a98a2bc69fcba87ffa2995ac8631fdddbde88961))
18
+
5
19
  ### [1.0.113](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.112...v1.0.113) (2025-05-09)
6
20
 
7
21
 
@@ -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.114";
5464
5464
  const author = "huxuetong";
5465
5465
  const publishConfig = {
5466
5466
  registry: "https://registry.npmjs.org/"
@@ -54646,7 +54646,7 @@ var render$11 = function() {
54646
54646
  var _c = _vm._self._c || _h;
54647
54647
  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
54648
  _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);
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.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
54650
  };
54651
54651
  var staticRenderFns$11 = [];
54652
54652
  function suppressNavigation(params) {
@@ -54743,6 +54743,7 @@ const __vue2_script$12 = {
54743
54743
  type: Number,
54744
54744
  default: 28
54745
54745
  },
54746
+ getRowHeightProp: Function,
54746
54747
  rowMultiSelectWithClick: Boolean,
54747
54748
  pinnedTopRowData: Array,
54748
54749
  pinnedBottomRowData: Array,
@@ -56340,6 +56341,56 @@ const __vue2_script$12 = {
56340
56341
  });
56341
56342
  await this.$nextTick();
56342
56343
  this.updating = false;
56344
+ },
56345
+ async outSortChanged(sortParams) {
56346
+ if (sortParams.order === void 0) {
56347
+ Reflect.deleteProperty(this.sortParams, "sort");
56348
+ Reflect.deleteProperty(this.sortParams, "order");
56349
+ } else {
56350
+ this.sortParams = {
56351
+ sort: sortParams.sort,
56352
+ order: sortParams.order
56353
+ };
56354
+ }
56355
+ if (this.dataApi && !this.disablePage) {
56356
+ this.currentPage = 1;
56357
+ this.tableRefresh();
56358
+ } else {
56359
+ let topData = [];
56360
+ if (sortParams.order === void 0) {
56361
+ if (this.dataApi) {
56362
+ let tableDataTmp = _.cloneDeep(this.tableData);
56363
+ tableDataTmp = _.orderBy(tableDataTmp, ["_initialseq"], ["asc"]);
56364
+ this.tableData = tableDataTmp;
56365
+ } else {
56366
+ this.tableData = _.cloneDeep(this.value);
56367
+ }
56368
+ } else {
56369
+ if (this.noSortLine > -1) {
56370
+ topData = this.tableData.slice(0, this.noSortLine);
56371
+ this.tableData.splice(0, this.noSortLine);
56372
+ }
56373
+ this.tableData.sort((a, b) => {
56374
+ if (typeof a[this.sortParams.sort] == "number" && typeof b[this.sortParams.sort] == "number") {
56375
+ let _a = isNaN(parseFloat(a[this.sortParams.sort])) ? 0 : parseFloat(a[this.sortParams.sort]);
56376
+ let _b = isNaN(parseFloat(b[this.sortParams.sort])) ? 0 : parseFloat(b[this.sortParams.sort]);
56377
+ return this.sortParams.order === "asc" ? _a - _b : _b - _a;
56378
+ } else {
56379
+ let a2 = a[this.sortParams.sort] || "";
56380
+ let b2 = b[this.sortParams.sort] || "";
56381
+ return this.sortParams.order === "asc" ? a2.localeCompare(b2, "zh-CN") : b2.localeCompare(a2, "zh-CN");
56382
+ }
56383
+ });
56384
+ if (this.noSortLine > -1) {
56385
+ this.tableData = [...topData, ..._.cloneDeep(this.tableData)];
56386
+ }
56387
+ }
56388
+ this.$nextTick().then(() => {
56389
+ this.gridApi.refreshCells({ force: true });
56390
+ });
56391
+ }
56392
+ this.refreshCells();
56393
+ this.$emit("on-sort-change", sortParams);
56343
56394
  }
56344
56395
  }
56345
56396
  };