@indfnd/common 1.0.127 → 1.1.0
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 +4 -0
- package/dist/ind-common.es.js +50 -5
- package/dist/ind-common.umd.cjs +264 -264
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
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
|
+
## [1.1.0](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.128...v1.1.0) (2025-08-29)
|
|
6
|
+
|
|
7
|
+
### [1.0.128](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.127...v1.0.128) (2025-08-27)
|
|
8
|
+
|
|
5
9
|
### [1.0.127](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.126...v1.0.127) (2025-08-27)
|
|
6
10
|
|
|
7
11
|
|
package/dist/ind-common.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Button as Button$1, ButtonGroup as ButtonGroup$1, Input, Drawer as Drawer$1, Dropdown as Dropdown$1, Modal as Modal$1, Form, FormItem, Select as Select$1, Option, Row, Col, Menu, MenuItem, Submenu, Badge, DropdownMenu, DropdownItem, Tag, Header, Layout, Content, Spin, Poptip as Poptip$1, CheckboxGroup, Checkbox, RadioGroup, Radio, Card, Message, LoadingBar } from "view-design";
|
|
2
|
-
import { isNil, getSessionStorage, putOssFileApi, formatDate as formatDate$1, useConfig, getQuarterNum, formatQuarter, str2Date, isDate, isArray, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios, getPreviewUrlApi, isFunction, isString, uuid, exportJsonToExcel as exportJsonToExcel$1, importJsonFromExcel, on, off, deleteMenuHistoryApi, deleteMenuCollectApi, getMenuHistoryApi, getMenuCollectApi, getPermissionCache, getLocalStorage, listItemTreeApi, getPriceInfo, MIME_TYPE, base64ToBlob, isEqual, getCaptchaURL, guid, setLocalStorage, removeLocalStorage, clearSessionStorage, cryptor,
|
|
2
|
+
import { isNil, getSessionStorage, putOssFileApi, formatDate as formatDate$1, useConfig, getQuarterNum, formatQuarter, str2Date, isDate, isArray, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios, getPreviewUrlApi, getToken, isFunction, isString, uuid, exportJsonToExcel as exportJsonToExcel$1, importJsonFromExcel, on, off, deleteMenuHistoryApi, deleteMenuCollectApi, getMenuHistoryApi, getMenuCollectApi, getPermissionCache, getLocalStorage, listItemTreeApi, getPriceInfo, MIME_TYPE, base64ToBlob, isEqual, getCaptchaURL, guid, setLocalStorage, removeLocalStorage, clearSessionStorage, cryptor, putOssFileUrl, getOssFileUrl, responseInterceptors, listComTreeApi, listUserTreeApi, UC_ENUM, config as config$1, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, setSessionStorage, getAppListApi, getPermissionApi, setPermissionCache, menuHistoryApi, addMenuCollectApi, removeMenuCollectApi, getIndexDescCache, listIndexDescApi, setIndexDescCache } from "@indfnd/utils";
|
|
3
3
|
import Vue$1 from "vue";
|
|
4
4
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
5
5
|
function getAugmentedNamespace(n) {
|
|
@@ -5460,7 +5460,7 @@ var lodash = { exports: {} };
|
|
|
5460
5460
|
})(lodash, lodash.exports);
|
|
5461
5461
|
var _ = lodash.exports;
|
|
5462
5462
|
const name$1 = "@indfnd/common";
|
|
5463
|
-
const version = "1.0.
|
|
5463
|
+
const version = "1.0.128";
|
|
5464
5464
|
const author = "huxuetong";
|
|
5465
5465
|
const publishConfig = {
|
|
5466
5466
|
registry: "https://registry.npmjs.org/"
|
|
@@ -5504,7 +5504,7 @@ const scripts = {
|
|
|
5504
5504
|
build: "yarn build:prod && yarn build:style",
|
|
5505
5505
|
"type-check": "vue-tsc --noEmit -p tsconfig.check.json --composite false",
|
|
5506
5506
|
dts: "vue-tsc -p tsconfig.types.json",
|
|
5507
|
-
release: "node build/auto-build.js && yarn release-
|
|
5507
|
+
release: "node build/auto-build.js && yarn release-minor && git push --follow-tags && yarn re-publish",
|
|
5508
5508
|
"release-major": "standard-version --release-as major",
|
|
5509
5509
|
"release-minor": "standard-version --release-as minor",
|
|
5510
5510
|
"release-patch": "standard-version --release-as patch",
|
|
@@ -49725,7 +49725,26 @@ var FormImpl = {
|
|
|
49725
49725
|
}
|
|
49726
49726
|
},
|
|
49727
49727
|
[
|
|
49728
|
-
|
|
49728
|
+
d.checkAble ? h("div", { style: { display: "flex" } }, [
|
|
49729
|
+
this.scopedSlots[d.formKey] ? this.scopedSlots[d.formKey]({
|
|
49730
|
+
form: this.form,
|
|
49731
|
+
item: d
|
|
49732
|
+
}) : itemInner,
|
|
49733
|
+
h(
|
|
49734
|
+
"Checkbox",
|
|
49735
|
+
{
|
|
49736
|
+
props: {
|
|
49737
|
+
label: d.formKey,
|
|
49738
|
+
value: d.checked
|
|
49739
|
+
},
|
|
49740
|
+
style: {
|
|
49741
|
+
flexShrink: 0,
|
|
49742
|
+
marginLeft: "10px"
|
|
49743
|
+
}
|
|
49744
|
+
},
|
|
49745
|
+
[d.checkLabel || "\u5206\u7EC4"]
|
|
49746
|
+
)
|
|
49747
|
+
]) : this.scopedSlots[d.formKey] ? this.scopedSlots[d.formKey]({
|
|
49729
49748
|
form: this.form,
|
|
49730
49749
|
item: d
|
|
49731
49750
|
}) : itemInner
|
|
@@ -50873,12 +50892,19 @@ const __vue2_script$1l = {
|
|
|
50873
50892
|
if (result.code == "1") {
|
|
50874
50893
|
tempUrl = result.data;
|
|
50875
50894
|
}
|
|
50895
|
+
const token = getToken() || sessionStorage.getItem("sso_token");
|
|
50896
|
+
console.log("openPreview token", token);
|
|
50876
50897
|
console.log("tempUrl is", tempUrl);
|
|
50877
50898
|
var instance = OpenSDK == null ? void 0 : OpenSDK.config({
|
|
50878
50899
|
url: tempUrl,
|
|
50879
50900
|
mount: document.getElementById(this.id)
|
|
50880
50901
|
});
|
|
50881
50902
|
console.log("instance-----", instance);
|
|
50903
|
+
instance.setToken({
|
|
50904
|
+
token,
|
|
50905
|
+
timeout: 10 * 60 * 1e3
|
|
50906
|
+
});
|
|
50907
|
+
console.log("wps instance", instance);
|
|
50882
50908
|
},
|
|
50883
50909
|
exportCurrentPage() {
|
|
50884
50910
|
this.$emit("doExport");
|
|
@@ -66942,12 +66968,18 @@ const __vue2_script$5 = {
|
|
|
66942
66968
|
if (result.code == "1") {
|
|
66943
66969
|
tempUrl = result.data;
|
|
66944
66970
|
}
|
|
66971
|
+
const token = getToken() || sessionStorage.getItem("sso_token");
|
|
66972
|
+
console.log("preview token", token);
|
|
66945
66973
|
console.log("tempUrl is", tempUrl);
|
|
66946
66974
|
var instance = OpenSDK == null ? void 0 : OpenSDK.config({
|
|
66947
66975
|
url: tempUrl,
|
|
66948
66976
|
mount: document.getElementById(this.id)
|
|
66949
66977
|
});
|
|
66950
66978
|
console.log("instance-----", instance);
|
|
66979
|
+
instance.setToken({
|
|
66980
|
+
token,
|
|
66981
|
+
timeout: 10 * 60 * 1e3
|
|
66982
|
+
});
|
|
66951
66983
|
console.log("wps instance", instance);
|
|
66952
66984
|
},
|
|
66953
66985
|
onCancel() {
|
|
@@ -72247,7 +72279,20 @@ const store = {
|
|
|
72247
72279
|
const install = function(Vue2, opts = { theme: "" }) {
|
|
72248
72280
|
if (install.installed)
|
|
72249
72281
|
return;
|
|
72250
|
-
|
|
72282
|
+
if (!location.pathname.includes("scyxweb")) {
|
|
72283
|
+
initWps();
|
|
72284
|
+
}
|
|
72285
|
+
const addScript2 = function(src, cb) {
|
|
72286
|
+
var script = document.createElement("script");
|
|
72287
|
+
script.src = src;
|
|
72288
|
+
document.getElementsByTagName("head")[0].appendChild(script);
|
|
72289
|
+
script.onload = function() {
|
|
72290
|
+
if (!!cb) {
|
|
72291
|
+
cb();
|
|
72292
|
+
}
|
|
72293
|
+
};
|
|
72294
|
+
};
|
|
72295
|
+
addScript2(`//${location.host}/ind-uc-ext/vendor/exceljs.min.js`);
|
|
72251
72296
|
const theme = opts.theme || getDefaultTheme();
|
|
72252
72297
|
doChangeTheme(theme);
|
|
72253
72298
|
if (!location.pathname.includes("scyxweb")) {
|