@indfnd/common 0.1.51 → 0.1.52

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,21 @@
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.52](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.51...v0.1.52) (2024-04-28)
6
+
7
+
8
+ ### Features
9
+
10
+ * 按四川样式修改 ([ac5de52](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/ac5de52a52dd65235063efee5d718cd410ac90c0))
11
+ * 修改紧凑版样式 ([7810485](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/7810485161dee3e4369d0101579e4861a8581189))
12
+ * 修改样式 ([c2482f9](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/c2482f9eec930a13b6115fe3342c057ff50cf4a3))
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * 增加ibp-mode样式,调整modal的top ([d33be2a](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/d33be2acd7fb9cd757adc9445e5d884559d003e8))
18
+ * form的样式 ([d45c8bc](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/d45c8bcd4ece5155e6395964a43f06543116cd99))
19
+
5
20
  ### [0.1.51](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.50...v0.1.51) (2024-04-26)
6
21
 
7
22
 
@@ -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, 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, getLocalStorage, 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.50";
5
+ const version = "0.1.51";
6
6
  const author = "huxuetong";
7
7
  const publishConfig = {
8
8
  registry: "https://registry.npmjs.org/"
@@ -345,7 +345,7 @@ var render$1m = function() {
345
345
  var _vm = this;
346
346
  var _h = _vm.$createElement;
347
347
  var _c = _vm._self._c || _h;
348
- return _c("Button", _vm._g(_vm._b({ attrs: { "icon": _vm.icon ? _vm.icon : "", "type": _vm.isNil(_vm.type) ? _vm.typeEnum.type || "primary" : _vm.type, "size": _vm.isNil(_vm.size) ? _vm.typeEnum.size || "default" : _vm.size, "ghost": _vm.isNil(_vm.ghost) ? _vm.typeEnum.ghost : _vm.ghost } }, "Button", _vm.$attrs, false), _vm.$listeners), [_vm._t("default", function() {
348
+ return _c("Button", _vm._g(_vm._b({ attrs: { "icon": _vm.icon || _vm.typeEnum.icon, "type": _vm.isNil(_vm.type) ? _vm.typeEnum.type || "primary" : _vm.type, "size": _vm.isNil(_vm.size) ? _vm.typeEnum.size || "default" : _vm.size, "ghost": _vm.isNil(_vm.ghost) ? _vm.typeEnum.ghost : _vm.ghost } }, "Button", _vm.$attrs, false), _vm.$listeners), [_vm._t("default", function() {
349
349
  return [_vm._v(_vm._s(_vm.typeEnum.text))];
350
350
  }), _vm.arrow ? _c("Icons", { attrs: { "type": _vm.arrowType } }) : _vm._e()], 2);
351
351
  };
@@ -43848,7 +43848,8 @@ function doChangeTheme(theme) {
43848
43848
  let cls = ((_b = body.className) == null ? void 0 : _b.split(" ")) || [];
43849
43849
  const nowCls = cls.reduce((rlt, item2) => ({ ...rlt, [item2]: true }), {
43850
43850
  "ind-theme": true,
43851
- "ind-default-theme": true
43851
+ "ind-default-theme": true,
43852
+ "ibp-mode": !config.showMenus
43852
43853
  });
43853
43854
  let removeCls = {};
43854
43855
  const nowTheme = body.getAttribute(THEME_KEY);
@@ -48501,6 +48502,13 @@ var FormImpl = {
48501
48502
  this.rules = this.ruleValidate;
48502
48503
  },
48503
48504
  computed: {
48505
+ labelWidthCalc() {
48506
+ let titlesSize = _.map(this.fieldList, (d) => d.title.length);
48507
+ console.log("titlesSize is", titlesSize);
48508
+ let labelWidthCalc = Math.min(Math.max(100, _.max(titlesSize) * 14 + 24), 200);
48509
+ console.log("labelWidthCalc is", labelWidthCalc);
48510
+ return labelWidthCalc;
48511
+ },
48504
48512
  ruleValidate() {
48505
48513
  let validateList = {};
48506
48514
  _.forEach(this.fieldList, (d) => {
@@ -49089,7 +49097,7 @@ var FormImpl = {
49089
49097
  "FormItem",
49090
49098
  {
49091
49099
  props: {
49092
- labelWidth: this.$config.labelStyle.labelWidthButton,
49100
+ labelWidth: this.labelWidthCalc,
49093
49101
  label: " "
49094
49102
  },
49095
49103
  class: "textAlignRight"
@@ -49179,7 +49187,7 @@ var FormImpl = {
49179
49187
  props: {
49180
49188
  model: this.form,
49181
49189
  rules: this.rules,
49182
- labelWidth: this.labelWidth || (this.formType == "search" ? this.$config.labelStyle.labelWidthSmall : this.$config.labelStyle.labelWidthLarge),
49190
+ labelWidth: this.labelWidthCalc,
49183
49191
  labelColon: false
49184
49192
  },
49185
49193
  nativeOn: {
@@ -51991,7 +51999,7 @@ var render$W = function() {
51991
51999
  var _vm = this;
51992
52000
  var _h = _vm.$createElement;
51993
52001
  var _c = _vm._self._c || _h;
51994
- 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": "var(--ind-table-button-padding)", "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) {
52002
+ 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) + 4px)", "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) {
51995
52003
  _vm.showZero = $$v;
51996
52004
  }, 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) {
51997
52005
  _vm.unitType = $$v;
@@ -64622,10 +64630,6 @@ if (typeof window !== "undefined" && window.Vue) {
64622
64630
  window.addEventListener("resize", () => EventBus.$on("resize"), { passive: true });
64623
64631
  window.addEventListener("orientationchange", () => EventBus.$on("resize"), { passive: true });
64624
64632
  }
64625
- document.documentElement.style.setProperty(
64626
- "--common-label-width",
64627
- window.innerWidth / 1920 * 200 + "px"
64628
- );
64629
64633
  const API = {
64630
64634
  version: pkg.version,
64631
64635
  install,