@indfnd/common 0.1.35 → 0.1.37
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 +15 -0
- package/dist/ind-common.es.js +11 -10
- package/dist/ind-common.umd.cjs +35 -35
- package/package.json +1 -1
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.37](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.36...v0.1.37) (2024-04-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 再改小数位 ([ba1e069](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/ba1e0693775ca030eda0139476c9354cad34b536))
|
|
11
|
+
* form表单0不渲染 ([0430a50](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/0430a50ffde4bc99cd95747c1352e40f74626724))
|
|
12
|
+
|
|
13
|
+
### [0.1.36](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.35...v0.1.36) (2024-04-11)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* 重置样式修复 ([3dbef66](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/3dbef66d9b3989221de6e2580321e08513e9a58d))
|
|
19
|
+
|
|
5
20
|
### [0.1.35](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.34...v0.1.35) (2024-04-11)
|
|
6
21
|
|
|
7
22
|
|
package/dist/ind-common.es.js
CHANGED
|
@@ -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, 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.
|
|
5
|
+
const version = "0.1.36";
|
|
6
6
|
const author = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -48910,7 +48910,7 @@ var FormImpl = {
|
|
|
48910
48910
|
if (d.dateFormat) {
|
|
48911
48911
|
text = formatDate$1(text);
|
|
48912
48912
|
}
|
|
48913
|
-
if (text) {
|
|
48913
|
+
if (text != null && text !== void 0) {
|
|
48914
48914
|
itemInner = h("span", {}, [text]);
|
|
48915
48915
|
} else {
|
|
48916
48916
|
itemInner = h("span", {
|
|
@@ -48986,7 +48986,7 @@ var FormImpl = {
|
|
|
48986
48986
|
{
|
|
48987
48987
|
props: { bizType: "reset" },
|
|
48988
48988
|
attrs: { loading: this.searchLoading },
|
|
48989
|
-
style: { display: this.resetBtn ? "block" : "none" },
|
|
48989
|
+
style: { display: this.resetBtn ? "inline-block" : "none" },
|
|
48990
48990
|
on: {
|
|
48991
48991
|
click: () => {
|
|
48992
48992
|
this.$emit("reset");
|
|
@@ -50898,18 +50898,18 @@ const __vue2_script$12 = {
|
|
|
50898
50898
|
const disabled = disabledDef instanceof Function ? disabledDef(data) : disabledDef;
|
|
50899
50899
|
const isText = textCondition instanceof Function ? textCondition(data) : textCondition;
|
|
50900
50900
|
let renderVal = value;
|
|
50901
|
-
let scaledVal = value;
|
|
50902
50901
|
const scale = scaleFn();
|
|
50903
50902
|
if (scale === 0) {
|
|
50904
|
-
|
|
50903
|
+
renderVal = value ? parseInt(value) : value;
|
|
50905
50904
|
} else if (scale) {
|
|
50906
50905
|
let cellV = _.round(parseFloat(value), 6);
|
|
50907
50906
|
if (!isNaN(cellV)) {
|
|
50908
|
-
|
|
50907
|
+
renderVal = cellV.toFixed(scale);
|
|
50908
|
+
renderVal = parseFloat(renderVal);
|
|
50909
50909
|
}
|
|
50910
50910
|
}
|
|
50911
50911
|
if (isText) {
|
|
50912
|
-
return h("span",
|
|
50912
|
+
return h("span", renderVal);
|
|
50913
50913
|
} else {
|
|
50914
50914
|
return h("Input", {
|
|
50915
50915
|
ref: "input",
|
|
@@ -51296,6 +51296,7 @@ const __vue2_script$X = {
|
|
|
51296
51296
|
let cellV = parseFloat(value);
|
|
51297
51297
|
if (!isNaN(cellV)) {
|
|
51298
51298
|
renderVal = cellV.toFixed(scale);
|
|
51299
|
+
renderVal = parseFloat(renderVal);
|
|
51299
51300
|
}
|
|
51300
51301
|
}
|
|
51301
51302
|
return h("span", renderVal);
|
|
@@ -52090,11 +52091,11 @@ const __vue2_script$W = {
|
|
|
52090
52091
|
},
|
|
52091
52092
|
xScale: {
|
|
52092
52093
|
type: Number,
|
|
52093
|
-
default:
|
|
52094
|
+
default: 4
|
|
52094
52095
|
},
|
|
52095
52096
|
wzScale: {
|
|
52096
52097
|
type: Number,
|
|
52097
|
-
default:
|
|
52098
|
+
default: 4
|
|
52098
52099
|
},
|
|
52099
52100
|
funId: String,
|
|
52100
52101
|
groupDefaultExpanded: {
|
|
@@ -52645,7 +52646,7 @@ const __vue2_script$W = {
|
|
|
52645
52646
|
return column.cellRendererParams.scale;
|
|
52646
52647
|
if (column.isSwitchUnit) {
|
|
52647
52648
|
const unitType = this.unitType.toLowerCase();
|
|
52648
|
-
return this[`${unitType}Scale`] ||
|
|
52649
|
+
return this[`${unitType}Scale`] || 4;
|
|
52649
52650
|
}
|
|
52650
52651
|
return null;
|
|
52651
52652
|
},
|