@indfnd/common 0.1.30 → 0.1.31

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,8 @@
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.31](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.30...v0.1.31) (2024-04-08)
6
+
5
7
  ### [0.1.30](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.29...v0.1.30) (2024-04-08)
6
8
 
7
9
 
@@ -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, 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, getIndexDescCache, listIndexDescApi, setIndexDescCache } from "@indfnd/utils";
3
3
  import Vue$1 from "vue";
4
4
  const name$1 = "@indfnd/common";
5
- const version = "0.1.29";
5
+ const version = "0.1.30";
6
6
  const author = "huxuetong";
7
7
  const publishConfig = {
8
8
  registry: "https://registry.npmjs.org/"
@@ -50893,8 +50893,18 @@ const __vue2_script$12 = {
50893
50893
  const disabled = disabledDef instanceof Function ? disabledDef(data) : disabledDef;
50894
50894
  const isText = textCondition instanceof Function ? textCondition(data) : textCondition;
50895
50895
  let renderVal = value;
50896
+ let scaledVal = value;
50897
+ const scale = scaleFn();
50898
+ if (scale === 0) {
50899
+ scaledVal = value ? parseInt(value) : value;
50900
+ } else if (scale) {
50901
+ let cellV = _.round(parseFloat(value), 6);
50902
+ if (!isNaN(cellV)) {
50903
+ scaledVal = cellV.toFixed(scale);
50904
+ }
50905
+ }
50896
50906
  if (isText) {
50897
- return h("span", renderVal);
50907
+ return h("span", scaledVal);
50898
50908
  } else {
50899
50909
  return h("Input", {
50900
50910
  ref: "input",