@indfnd/common 0.1.47 → 0.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 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
+ ### [0.1.48](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.47...v0.1.48) (2024-04-24)
6
+
7
+
8
+ ### Features
9
+
10
+ * 紧凑版样式修改 ([5b9f2ed](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/5b9f2edc38fdd4a1e0eedf3ac623a6160353629a))
11
+ * **date-picker:** 半年日期框支持全年 ([205c5d5](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/205c5d5aa1b4e99ef6ab72849c62a3767d07df0b))
12
+
5
13
  ### [0.1.47](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.46...v0.1.47) (2024-04-24)
6
14
 
7
15
 
@@ -2,7 +2,7 @@ import { Button as Button$1, ButtonGroup as ButtonGroup$1, Input, Drawer as Draw
2
2
  import { isNil, formatDate as formatDate$1, useConfig, getLocalStorage, getQuarterNum, formatQuarter, str2Date, isDate, isArray, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios, isFunction, isString, uuid, exportJsonToExcel as exportJsonToExcel$1, importJsonFromExcel, on, off, deleteMenuHistoryApi, deleteMenuCollectApi, getMenuHistoryApi, getMenuCollectApi, listItemTreeApi, getPriceInfo, MIME_TYPE, base64ToBlob, putOssFileApi, isEqual, getCaptchaURL, guid, setLocalStorage, removeLocalStorage, clearSessionStorage, cryptor, getToken, putOssFileUrl, getOssFileUrl, responseInterceptors, config as config$1, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, getSessionStorage, setSessionStorage, getAppListApi, getPermissionCache, getPermissionApi, setPermissionCache, menuHistoryApi, addMenuCollectApi, removeMenuCollectApi, listIndexDescApi, setIndexDescCache } from "@indfnd/utils";
3
3
  import Vue$1 from "vue";
4
4
  const name$1 = "@indfnd/common";
5
- const version = "0.1.46";
5
+ const version = "0.1.47";
6
6
  const author = "huxuetong";
7
7
  const publishConfig = {
8
8
  registry: "https://registry.npmjs.org/"
@@ -47599,6 +47599,7 @@ const __vue2_script$1g = {
47599
47599
  confirm: Boolean,
47600
47600
  readonly: Boolean,
47601
47601
  disabled: Boolean,
47602
+ fullYear: Boolean,
47602
47603
  options: { type: Object, default: () => ({}) }
47603
47604
  },
47604
47605
  data() {
@@ -47623,10 +47624,11 @@ const __vue2_script$1g = {
47623
47624
  return this.showClose ? "ios-close-circle" : "ios-calendar-outline";
47624
47625
  },
47625
47626
  messageTxt() {
47626
- if (!this.message || this.message.length < 6)
47627
+ var _a;
47628
+ if (!this.message || this.message.length < 4)
47627
47629
  return "";
47628
47630
  const halfYear = this.message.substring(4, 6);
47629
- const halfYearText = halfYear === "H1" ? "\u4E0A\u534A\u5E74" : "\u4E0B\u534A\u5E74";
47631
+ const halfYearText = ((_a = this.dataList.find((item2) => item2.value === halfYear)) == null ? void 0 : _a.label) || "";
47630
47632
  return `${this.message.substring(0, 4)}${halfYearText}`;
47631
47633
  },
47632
47634
  selectYear() {
@@ -47647,6 +47649,9 @@ const __vue2_script$1g = {
47647
47649
  }
47648
47650
  },
47649
47651
  created() {
47652
+ if (this.fullYear) {
47653
+ this.dataList.unshift({ label: "\u5168\u5E74", value: "", disable: false });
47654
+ }
47650
47655
  this.initData();
47651
47656
  },
47652
47657
  methods: {
@@ -51864,9 +51869,9 @@ var render$W = function() {
51864
51869
  var _vm = this;
51865
51870
  var _h = _vm.$createElement;
51866
51871
  var _c = _vm._self._c || _h;
51867
- 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)], _vm.showUnitSwitch && _vm.isShowUnitSwitch || _vm.showTableOption || _vm.$slots.options ? _c("i-col", { staticStyle: { "text-align": "right" }, attrs: { "flex": "0 0 auto" } }, [_c("div", { staticClass: "ind-flex end" }, [_c("div", { staticStyle: { "line-height": "32px", "padding-bottom": "var(--ind-padding-base)", "margin-right": "10px" } }, [_vm._t("options")], 2), _vm.showZeroSwitch ? _c("IndZeroRadio", { staticStyle: { "margin-bottom": "10px", "line-height": "1" }, attrs: { "zeroTitle": _vm.switchZeroTitle }, model: { value: _vm.showZero, callback: function($$v) {
51872
+ 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)], _vm.showUnitSwitch && _vm.isShowUnitSwitch || _vm.showTableOption || _vm.$slots.options ? _c("i-col", { staticStyle: { "text-align": "right" }, attrs: { "flex": "0 0 auto" } }, [_c("div", { staticClass: "ind-flex end" }, [_c("div", { staticStyle: { "line-height": "32px", "padding-bottom": "var(--ind-padding-base)", "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) {
51868
51873
  _vm.showZero = $$v;
51869
- }, expression: "showZero" } }) : _vm._e(), _vm.showUnitSwitch && _vm.isShowUnitSwitch ? _c("IndUnitRadio", { staticStyle: { "margin-bottom": "10px", "line-height": "1" }, attrs: { "isShowWX": _vm.isShowWX, "isShowJ": _vm.isShowJ }, model: { value: _vm.unitType, callback: function($$v) {
51874
+ }, 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) {
51870
51875
  _vm.unitType = $$v;
51871
51876
  }, expression: "unitType" } }) : _vm._e(), _vm.showTableOption ? _c("Dropdown", { staticClass: "table-option-dropdown", staticStyle: { "float": "right", "margin-bottom": "var(--ind-padding-base)" }, attrs: { "trigger": "custom", "visible": _vm.optionDropdownVisible, "placement": "bottom-end" }, on: { "on-click": _vm.resetTableSize } }, [_c("IndButtonGroup", { staticStyle: { "display": "flex" }, attrs: { "split": false, "mb": "" } }, [_c("IndButton", { attrs: { "bizType": "reset" }, on: { "click": _vm.toggleFullScreen } }, [_vm._v(" " + _vm._s(_vm.fullSreen ? "\u53D6\u6D88\u5168\u5C4F" : "\u5168\u5C4F") + " ")]), _vm.revertBtn ? _c("IndButton", { attrs: { "bizType": "reset" }, on: { "click": function($event) {
51872
51877
  return _vm.$emit("revertColumnRow");
@@ -52754,9 +52759,9 @@ const __vue2_script$X = {
52754
52759
  let agColumn = {
52755
52760
  resizable: true,
52756
52761
  headerName: column.title || column.headerName,
52757
- width: column.width,
52758
- minWidth: column.minWidth,
52759
- maxWidth: column.maxWidth,
52762
+ width: column.width ? parseInt(column.width) * (this.getTheme == "ind-small-theme" ? 0.8 : 1) : column.width,
52763
+ minWidth: column.minWidth ? parseInt(column.minWidth) * (this.getTheme == "ind-small-theme" ? 0.8 : 1) : column.minWidth,
52764
+ maxWidth: column.maxWidth ? parseInt(column.maxWidth) * (this.getTheme == "ind-small-theme" ? 0.8 : 1) : column.maxWidth,
52760
52765
  pinned: column.fixed || column.pinned,
52761
52766
  cellDataType: column.cellDataType || "text",
52762
52767
  headerTooltip: (_c = (_b = (_a = this.$store) == null ? void 0 : _a.getters) == null ? void 0 : _b.getIndexDesc) == null ? void 0 : _c[column.standardField || column.key || column.field]