@indfnd/common-mobile 1.0.23 → 1.0.24
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 +13 -0
- package/dist/ind-common-mobile.es.js +46 -6
- package/dist/ind-common-mobile.umd.cjs +7 -7
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
- package/src/styles/variables/index.less +2 -0
- package/src/styles/variables/theme/emerald-green/common.less +4 -0
- package/src/styles/variables/theme/emerald-green/index.less +1 -0
- package/src/styles/variables/theme/gleam-golden/common.less +38 -0
- package/src/styles/variables/theme/gleam-golden/index.less +1 -0
- package/src/styles/variables/theme3.less +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
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.0.24](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.23...v1.0.24) (2026-01-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 增加会话异常处理逻辑 ([ea1ae2a](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/ea1ae2afc7f6d6d7a55092d721627c3d7cfec2fd))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* 修改文件上传组件 ([313c67b](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/313c67ba9567e741a5f647e67e427b7570879a2b))
|
|
16
|
+
* 修改文件上传组件 ([36d73e1](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/36d73e18de719d3db348ec828ff71915392d6017))
|
|
17
|
+
|
|
5
18
|
### [1.0.23](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.22...v1.0.23) (2026-01-22)
|
|
6
19
|
|
|
7
20
|
### [1.0.22](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.21...v1.0.22) (2026-01-22)
|
|
@@ -3,7 +3,7 @@ import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage,
|
|
|
3
3
|
import Vue$1 from "vue";
|
|
4
4
|
import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
|
|
5
5
|
const name$1 = "@indfnd/common-mobile";
|
|
6
|
-
const version$2 = "1.0.
|
|
6
|
+
const version$2 = "1.0.23";
|
|
7
7
|
const author$1 = "huxuetong";
|
|
8
8
|
const publishConfig = {
|
|
9
9
|
registry: "https://registry.npmjs.org/"
|
|
@@ -29375,7 +29375,7 @@ var render$2 = function() {
|
|
|
29375
29375
|
return _vm.handleClickAttachment(item2);
|
|
29376
29376
|
} } }, [_vm._v(" " + _vm._s(item2.fileName) + " ")]), !_vm.readonly ? _c("div", { staticClass: "ind-upLoad-file-list-container-idel", on: { "click": function($event) {
|
|
29377
29377
|
return _vm.deleteFile(item2.fileId);
|
|
29378
|
-
} } }, [_c("div", { staticClass: "ind-upLoad-file-list-container-idel-btn" }, [_c("Icon", { staticStyle: { "font-size": "16px" }, attrs: { "type": "md-trash" } }), _vm._v("\u5220\u9664 ")], 1)]) : _vm._e(),
|
|
29378
|
+
} } }, [_c("div", { staticClass: "ind-upLoad-file-list-container-idel-btn" }, [_c("Icon", { staticStyle: { "font-size": "16px" }, attrs: { "type": "md-trash" } }), _vm._v("\u5220\u9664 ")], 1)]) : _vm._e(), _vm.shouldShowDelete ? _c("div", { staticClass: "ind-upLoad-file-list-container-idownload", on: { "click": function($event) {
|
|
29379
29379
|
return _vm.handleDownload(item2);
|
|
29380
29380
|
} } }, [_c("div", { staticClass: "ind-upLoad-file-list-container-idownload-btn" }, [_c("Icon", { staticStyle: { "font-size": "18px" }, attrs: { "type": "md-cloud-download" } }), _vm._v(" \u4E0B\u8F7D ")], 1)]) : _vm._e()])]);
|
|
29381
29381
|
})], 2)])]), !_vm.readonly ? _c("div", { staticClass: "ind-bottom-btn ind-flex ind-flex-no-shrink ind-space-between" }, [_c("IndButton", { attrs: { "bizType": "reset" }, on: { "click": _vm.cancel } }, [_vm._v("\u53D6\u6D88")]), _c("IndButton", { attrs: { "bizType": "primary" }, on: { "click": _vm.confirm } }, [_vm._v("\u786E\u8BA4")])], 1) : _vm._e(), _c("input", { ref: "uploadInput", staticStyle: { "position": "absolute", "clip": "rect(0 0 0 0)" }, attrs: { "type": "file", "disabled": false, "multiple": true, "accept": _vm.accept }, on: { "change": function($event) {
|
|
@@ -29429,7 +29429,7 @@ const __vue2_script$2 = {
|
|
|
29429
29429
|
},
|
|
29430
29430
|
ossServerContext: {
|
|
29431
29431
|
type: String,
|
|
29432
|
-
default: "/
|
|
29432
|
+
default: "/ind-uc-ext-server"
|
|
29433
29433
|
},
|
|
29434
29434
|
ossFilePutUrl: {
|
|
29435
29435
|
type: String,
|
|
@@ -29456,6 +29456,10 @@ const __vue2_script$2 = {
|
|
|
29456
29456
|
readonly: {
|
|
29457
29457
|
type: Boolean,
|
|
29458
29458
|
default: false
|
|
29459
|
+
},
|
|
29460
|
+
candel: {
|
|
29461
|
+
type: Boolean,
|
|
29462
|
+
default: true
|
|
29459
29463
|
}
|
|
29460
29464
|
},
|
|
29461
29465
|
data() {
|
|
@@ -29475,6 +29479,14 @@ const __vue2_script$2 = {
|
|
|
29475
29479
|
};
|
|
29476
29480
|
},
|
|
29477
29481
|
computed: {
|
|
29482
|
+
shouldShowDelete() {
|
|
29483
|
+
if (this.readonly) {
|
|
29484
|
+
let showd = this.candel ? true : false;
|
|
29485
|
+
return showd;
|
|
29486
|
+
} else {
|
|
29487
|
+
return true;
|
|
29488
|
+
}
|
|
29489
|
+
},
|
|
29478
29490
|
downloadUrl() {
|
|
29479
29491
|
return this.ossServerContext + this.ossFileGetUrl;
|
|
29480
29492
|
},
|
|
@@ -29565,7 +29577,10 @@ const __vue2_script$2 = {
|
|
|
29565
29577
|
}
|
|
29566
29578
|
},
|
|
29567
29579
|
h5Download(file) {
|
|
29568
|
-
const
|
|
29580
|
+
const isScyxWeb = location.pathname.includes("scyxweb");
|
|
29581
|
+
const prefix2 = isScyxWeb ? "/scyxgateway" : "";
|
|
29582
|
+
const downloadUrl = file.fileUrl ? prefix2 + file.fileUrl : `${this.ossServerContext}/oss/file/get/${file.fileId}`;
|
|
29583
|
+
console.log(`dld:`, downloadUrl);
|
|
29569
29584
|
const link = document.createElement("a");
|
|
29570
29585
|
link.href = downloadUrl;
|
|
29571
29586
|
link.download = file.fileName;
|
|
@@ -29573,6 +29588,7 @@ const __vue2_script$2 = {
|
|
|
29573
29588
|
document.body.appendChild(link);
|
|
29574
29589
|
link.click();
|
|
29575
29590
|
document.body.removeChild(link);
|
|
29591
|
+
console.log("\u4E0B\u8F7D\u94FE\u63A5\u5DF2\u89E6\u53D1");
|
|
29576
29592
|
},
|
|
29577
29593
|
goToMiniProgramDown(file) {
|
|
29578
29594
|
if (file.fileId) {
|
|
@@ -29741,7 +29757,7 @@ var render$1 = function() {
|
|
|
29741
29757
|
var _vm = this;
|
|
29742
29758
|
var _h = _vm.$createElement;
|
|
29743
29759
|
var _c = _vm._self._c || _h;
|
|
29744
|
-
return _c("div", { staticClass: "ind-common-m-card-outer" }, [_c("div", { staticClass: "ind-common-m-card-inner" }, [_c("div", { staticClass: "ind-common-m-card-inner-inner" }, [_vm.showHeader ? _c("div", { staticClass: "ind-common-m-card-title" }, [_vm.showIcon ? _c("div", { staticClass: "ind-common-m-card-title-icon" }, [_c("img", { attrs: { "src": _vm.icon, "alt": "" } })]) : _vm._e(), _c("div", { staticClass: "ind-common-m-card-title-text" }, [_vm._v(_vm._s(_vm.title))]), _c("div", { staticClass: "ind-common-m-card-title-arrow" }, [_vm._t("right-icon")], 2)]) : _vm._e(), _c("div", { staticClass: "ind-common-m-card-content" }, [_vm._t("default")], 2)])])]);
|
|
29760
|
+
return _c("div", { staticClass: "ind-common-m-card-outer", style: { width: _vm.width, margin: _vm.margin, padding: _vm.padding } }, [_c("div", { staticClass: "ind-common-m-card-inner" }, [_c("div", { staticClass: "ind-common-m-card-inner-inner" }, [_vm.showHeader ? _c("div", { staticClass: "ind-common-m-card-title" }, [_vm.showIcon ? _c("div", { staticClass: "ind-common-m-card-title-icon" }, [_c("img", { attrs: { "src": _vm.icon, "alt": "" } })]) : _vm._e(), _c("div", { staticClass: "ind-common-m-card-title-text" }, [_vm._v(_vm._s(_vm.title))]), _c("div", { staticClass: "ind-common-m-card-title-arrow" }, [_vm._t("right-icon")], 2)]) : _vm._e(), _c("div", { staticClass: "ind-common-m-card-content" }, [_vm._t("default")], 2)])])]);
|
|
29745
29761
|
};
|
|
29746
29762
|
var staticRenderFns$1 = [];
|
|
29747
29763
|
const __vue2_script$1 = {
|
|
@@ -29766,6 +29782,18 @@ const __vue2_script$1 = {
|
|
|
29766
29782
|
showHeader: {
|
|
29767
29783
|
type: Boolean,
|
|
29768
29784
|
default: true
|
|
29785
|
+
},
|
|
29786
|
+
width: {
|
|
29787
|
+
type: String,
|
|
29788
|
+
default: "100%"
|
|
29789
|
+
},
|
|
29790
|
+
padding: {
|
|
29791
|
+
type: String,
|
|
29792
|
+
default: "15px 15px 0px 15px"
|
|
29793
|
+
},
|
|
29794
|
+
margin: {
|
|
29795
|
+
type: String,
|
|
29796
|
+
default: "0px"
|
|
29769
29797
|
}
|
|
29770
29798
|
}
|
|
29771
29799
|
};
|
|
@@ -29792,7 +29820,7 @@ var render82 = function() {
|
|
|
29792
29820
|
var _vm = this;
|
|
29793
29821
|
var _h = _vm.$createElement;
|
|
29794
29822
|
var _c = _vm._self._c || _h;
|
|
29795
|
-
return _c("div", { staticClass: "ind-common-m-card-item-outer" }, [_c("div", { staticClass: "ind-common-m-card-item-inner-inner" }, [_vm.showHeader ? _c("div", { staticClass: "ind-common-m-card-item-title" }, [_vm.showIcon ? _c("div", { staticClass: "ind-common-m-card-item-title-icon" }, [_c("div", { staticClass: "ind-common-m-card-item-title-icon-icon" })]) : _vm._e(), _c("div", { staticClass: "ind-common-m-card-item-title-text" }, [_vm._v(_vm._s(_vm.title))]), _c("div", { staticClass: "ind-common-m-card-item-title-arrow" }, [_vm._t("right-icon")], 2)]) : _vm._e(), _c("div", { staticClass: "ind-common-m-card-item-content" }, [_vm._t("default")], 2)])]);
|
|
29823
|
+
return _c("div", { staticClass: "ind-common-m-card-item-outer", style: { width: _vm.width, margin: _vm.margin, padding: _vm.padding } }, [_c("div", { staticClass: "ind-common-m-card-item-inner-inner" }, [_vm.showHeader ? _c("div", { staticClass: "ind-common-m-card-item-title" }, [_vm.showIcon ? _c("div", { staticClass: "ind-common-m-card-item-title-icon" }, [_c("div", { staticClass: "ind-common-m-card-item-title-icon-icon" })]) : _vm._e(), _c("div", { staticClass: "ind-common-m-card-item-title-text" }, [_vm._v(_vm._s(_vm.title))]), _c("div", { staticClass: "ind-common-m-card-item-title-arrow" }, [_vm._t("right-icon")], 2)]) : _vm._e(), _c("div", { staticClass: "ind-common-m-card-item-content" }, [_vm._t("default")], 2)])]);
|
|
29796
29824
|
};
|
|
29797
29825
|
var staticRenderFns = [];
|
|
29798
29826
|
const __vue2_script = {
|
|
@@ -29817,6 +29845,18 @@ const __vue2_script = {
|
|
|
29817
29845
|
showHeader: {
|
|
29818
29846
|
type: Boolean,
|
|
29819
29847
|
default: true
|
|
29848
|
+
},
|
|
29849
|
+
width: {
|
|
29850
|
+
type: String,
|
|
29851
|
+
default: "100%"
|
|
29852
|
+
},
|
|
29853
|
+
padding: {
|
|
29854
|
+
type: String,
|
|
29855
|
+
default: "10px 10px 0px 10px"
|
|
29856
|
+
},
|
|
29857
|
+
margin: {
|
|
29858
|
+
type: String,
|
|
29859
|
+
default: "0px"
|
|
29820
29860
|
}
|
|
29821
29861
|
}
|
|
29822
29862
|
};
|