@indfnd/common 0.0.77 → 0.0.78
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 +7 -0
- package/dist/ind-common.es.js +12 -17
- package/dist/ind-common.umd.cjs +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.0.78](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.0.77...v0.0.78) (2024-02-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* 表格小数位展现问题修复 ([998300b](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/998300b7b178209d4be202dc1e0439902aadb804))
|
|
11
|
+
|
|
5
12
|
### [0.0.77](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.0.76...v0.0.77) (2024-02-01)
|
|
6
13
|
|
|
7
14
|
|
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, useConfig, getLocalStorage, getQuarterNum, formatQuarter, str2Date, isDate, isArray, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, formatDate as formatDate$1, axios, isFunction, exportJsonToExcel as exportJsonToExcel$1, importJsonFromExcel, getPriceCode, getPriceSeg, getItem, on as on$1, off as off$1, deleteMenuHistoryApi, deleteMenuCollectApi, getMenuHistoryApi, getMenuCollectApi, getCaptchaURL, guid, setLocalStorage, removeLocalStorage, clearSessionStorage, cryptor, getToken, MIME_TYPE, responseInterceptors, config as config$1, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, getSessionStorage, setSessionStorage, getAppListApi, getPermissionCache, getPermissionApi, setPermissionCache, menuHistoryApi, addMenuCollectApi, removeMenuCollectApi } from "@indfnd/utils";
|
|
3
3
|
import Vue$1 from "vue";
|
|
4
4
|
const name$1 = "@indfnd/common";
|
|
5
|
-
const version$1 = "0.0.
|
|
5
|
+
const version$1 = "0.0.77";
|
|
6
6
|
const author = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -48341,6 +48341,9 @@ var FormImpl = {
|
|
|
48341
48341
|
message: d.title + "\u4E0D\u80FD\u4E3A\u7A7A",
|
|
48342
48342
|
trigger: "blur"
|
|
48343
48343
|
};
|
|
48344
|
+
if (d.validate) {
|
|
48345
|
+
validateTmp.validator = d.validate;
|
|
48346
|
+
}
|
|
48344
48347
|
if (["number"].includes(d.type)) {
|
|
48345
48348
|
validateTmp.type = "number";
|
|
48346
48349
|
} else if (["checkbox", "treeselect", "fileUpload", "imgUpload"].includes(d.type) || "select" === d.type && ((_a = d.props) == null ? void 0 : _a.multiple)) {
|
|
@@ -48363,22 +48366,13 @@ var FormImpl = {
|
|
|
48363
48366
|
validateTmp.trigger = "custom";
|
|
48364
48367
|
}
|
|
48365
48368
|
validateList[d.formKey] = [validateTmp];
|
|
48366
|
-
} else if (d.validate) {
|
|
48367
|
-
validateList[d.formKey] = [
|
|
48368
|
-
{
|
|
48369
|
-
required: true,
|
|
48370
|
-
validator: d.validate,
|
|
48371
|
-
trigger: "blur"
|
|
48372
|
-
}
|
|
48373
|
-
];
|
|
48374
48369
|
}
|
|
48375
48370
|
if (d.type == "idcard") {
|
|
48376
48371
|
validateList[d.formKey] = validateList[d.formKey] || [];
|
|
48377
48372
|
validateList[d.formKey].push({
|
|
48378
|
-
required: true,
|
|
48379
48373
|
validator: (rule, value, callback) => {
|
|
48380
48374
|
let checkRlt = checkIdCard(value);
|
|
48381
|
-
if (checkRlt == "\u9A8C\u8BC1\u901A\u8FC7!") {
|
|
48375
|
+
if (!value || checkRlt == "\u9A8C\u8BC1\u901A\u8FC7!") {
|
|
48382
48376
|
callback();
|
|
48383
48377
|
} else {
|
|
48384
48378
|
callback(new Error(checkRlt));
|
|
@@ -48389,9 +48383,8 @@ var FormImpl = {
|
|
|
48389
48383
|
} else if (d.type == "vehicleNo") {
|
|
48390
48384
|
validateList[d.formKey] = validateList[d.formKey] || [];
|
|
48391
48385
|
validateList[d.formKey].push({
|
|
48392
|
-
required: true,
|
|
48393
48386
|
validator: (rule, value, callback) => {
|
|
48394
|
-
if (checkVehicleNo(value)) {
|
|
48387
|
+
if (!value || checkVehicleNo(value)) {
|
|
48395
48388
|
callback();
|
|
48396
48389
|
} else {
|
|
48397
48390
|
callback(new Error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8F66\u724C\u53F7\u683C\u5F0F"));
|
|
@@ -48402,9 +48395,8 @@ var FormImpl = {
|
|
|
48402
48395
|
} else if (d.type == "phone") {
|
|
48403
48396
|
validateList[d.formKey] = validateList[d.formKey] || [];
|
|
48404
48397
|
validateList[d.formKey].push({
|
|
48405
|
-
required: true,
|
|
48406
48398
|
validator: (rule, value, callback) => {
|
|
48407
|
-
if (checkPhone(value)) {
|
|
48399
|
+
if (!value || checkPhone(value)) {
|
|
48408
48400
|
callback();
|
|
48409
48401
|
} else {
|
|
48410
48402
|
callback(new Error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u7535\u8BDD\u683C\u5F0F"));
|
|
@@ -56924,13 +56916,16 @@ const __vue2_script$N = {
|
|
|
56924
56916
|
} else {
|
|
56925
56917
|
return {
|
|
56926
56918
|
component: agRenderEnum[column.type],
|
|
56927
|
-
params:
|
|
56919
|
+
params: {
|
|
56920
|
+
...column.cellRendererParams,
|
|
56921
|
+
formatCols: this.formatCols
|
|
56922
|
+
}
|
|
56928
56923
|
};
|
|
56929
56924
|
}
|
|
56930
56925
|
};
|
|
56931
56926
|
}
|
|
56932
56927
|
}
|
|
56933
|
-
if (!column.type && (column.isSum || ((_a = column == null ? void 0 : column.cellRendererParams) == null ? void 0 : _a.scale) !== void 0)) {
|
|
56928
|
+
if (!column.type && (column.isSum || ((_a = column == null ? void 0 : column.cellRendererParams) == null ? void 0 : _a.scale) !== void 0 || column.isSwitchUnit)) {
|
|
56934
56929
|
agColumn.cellRendererSelector = (params) => {
|
|
56935
56930
|
var _a2;
|
|
56936
56931
|
if (params.node.rowPinned) {
|