@indfnd/common-mobile 1.0.53 → 1.0.55

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.55](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.54...v1.0.55) (2026-03-10)
6
+
7
+
8
+ ### Features
9
+
10
+ * select组件增加enableSelectAll属性 ([515bafe](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/515bafe4893d3a631265e764c7bfe5da2062010b))
11
+
12
+ ### [1.0.54](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.53...v1.0.54) (2026-03-10)
13
+
14
+
15
+ ### Features
16
+
17
+ * 获取首页地址 ([3a4b62c](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/3a4b62ce8eaa7feee71ff83f78daea6c38866d75))
18
+
5
19
  ### [1.0.53](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.52...v1.0.53) (2026-03-06)
6
20
 
7
21
 
@@ -3,7 +3,7 @@ import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage,
3
3
  import Vue$1 from "vue";
4
4
  import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
5
5
  const name$1 = "@indfnd/common-mobile";
6
- const version$2 = "1.0.52";
6
+ const version$2 = "1.0.54";
7
7
  const author$1 = "huxuetong";
8
8
  const publishConfig = {
9
9
  registry: "https://registry.npmjs.org/"
@@ -22938,7 +22938,8 @@ const __vue2_script$r = {
22938
22938
  showHeader: {
22939
22939
  type: Boolean,
22940
22940
  default: false
22941
- }
22941
+ },
22942
+ enableSelectAll: Boolean
22942
22943
  },
22943
22944
  data() {
22944
22945
  return {
@@ -23017,7 +23018,7 @@ const __vue2_script$r = {
23017
23018
  }
23018
23019
  },
23019
23020
  isRowSelectable(params2) {
23020
- return this.multiple || !this.multiple && !(params2.data.children && params2.data.children.length);
23021
+ return this.enableSelectAll || this.multiple || !this.multiple && !(params2.data.children && params2.data.children.length);
23021
23022
  },
23022
23023
  async initConfig() {
23023
23024
  this.dataInited = false;
@@ -23144,7 +23145,7 @@ const __vue2_script$r = {
23144
23145
  return;
23145
23146
  }
23146
23147
  }
23147
- if (this.isTree) {
23148
+ if (this.isTree && !this.enableSelectAll) {
23148
23149
  this.selectedRows = _.filter(selectedRows, (d) => {
23149
23150
  var _a2;
23150
23151
  return !((_a2 = d == null ? void 0 : d.children) == null ? void 0 : _a2.length);
@@ -23186,7 +23187,7 @@ var render$q = function() {
23186
23187
  var _c = _vm._self._c || _h;
23187
23188
  return _c("div", { staticClass: "ind-input-select" }, [_c("Input", { staticClass: "selected-input", class: { readonly: _vm.readonly }, attrs: { "value": _vm.selectedTitles, "title": _vm.selectedTitles, "icon": _vm.readonly ? "" : _vm.inputIcon, "placeholder": "\u8BF7\u9009\u62E9", "readonly": "" }, nativeOn: { "click": function($event) {
23188
23189
  return _vm.setVisible.apply(null, arguments);
23189
- } } }), _c("IndMSelectPanel", _vm._b({ attrs: { "defaultVisible": _vm.defaultVisible, "title": _vm.title, "multiple": _vm.showCheckbox || _vm.multiple, "show": _vm.visible, "value": _vm.value, "type": _vm.type, "dataApi": _vm.dataApiComp, "columns": _vm.columnsComp, "rowKey": _vm.rowKeyComp }, on: { "update:show": function($event) {
23190
+ } } }), _c("IndMSelectPanel", _vm._b({ attrs: { "defaultVisible": _vm.defaultVisible, "title": _vm.title, "multiple": _vm.showCheckbox || _vm.multiple, "show": _vm.visible, "value": _vm.value, "type": _vm.type, "dataApi": _vm.dataApiComp, "columns": _vm.columnsComp, "rowKey": _vm.rowKeyComp, "enableSelectAll": _vm.enableSelectAll }, on: { "update:show": function($event) {
23190
23191
  _vm.visible = $event;
23191
23192
  }, "input": function($event) {
23192
23193
  return _vm.$emit("input", $event);
@@ -23214,7 +23215,8 @@ const __vue2_script$q = {
23214
23215
  defaultExpandLevel: Number,
23215
23216
  dataApi: Function,
23216
23217
  columns: Array,
23217
- rowKey: String
23218
+ rowKey: String,
23219
+ enableSelectAll: Boolean
23218
23220
  },
23219
23221
  data() {
23220
23222
  return {
@@ -23314,9 +23316,14 @@ const __vue2_script$q = {
23314
23316
  },
23315
23317
  updateSelectedTitles() {
23316
23318
  var _a, _b, _c, _d, _e, _f, _g, _h;
23317
- let tempNodes = _.filter(this.value, (d) => {
23318
- return !d.children || d.children.length == 0;
23319
- });
23319
+ let tempNodes = [];
23320
+ if (this.enableSelectAll) {
23321
+ tempNodes = this.value;
23322
+ } else {
23323
+ tempNodes = _.filter(this.value, (d) => {
23324
+ return !d.children || d.children.length == 0;
23325
+ });
23326
+ }
23320
23327
  let textField = "title";
23321
23328
  if (((_a = this.columnsComp) == null ? void 0 : _a.length) > 1) {
23322
23329
  textField = this.columnsComp[1].field;