@indfnd/common-mobile 0.0.51 → 0.0.52
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 +3 -9
- package/dist/ind-common-mobile.es.js +15 -7
- package/dist/ind-common-mobile.umd.cjs +26 -26
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
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.
|
|
5
|
+
### [0.0.52](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.51...v0.0.52) (2024-08-23)
|
|
6
|
+
|
|
7
|
+
### [0.0.51](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.50...v0.0.51) (2024-08-23)
|
|
6
8
|
|
|
7
9
|
|
|
8
10
|
### Features
|
|
@@ -146,14 +148,6 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
146
148
|
|
|
147
149
|
### [0.0.29](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.28...v0.0.29) (2024-06-15)
|
|
148
150
|
|
|
149
|
-
<<<<<<< HEAD
|
|
150
|
-
=======
|
|
151
|
-
|
|
152
|
-
### Features
|
|
153
|
-
|
|
154
|
-
* 移动端会话补偿 ([2f627eb](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/2f627eb7362d45a41bd0b1c3a537fd22e3fd5784))
|
|
155
|
-
|
|
156
|
-
>>>>>>> 7445f43a11f06ff428d84dd9eae853fe1c47cc2c
|
|
157
151
|
### [0.0.28](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.27...v0.0.28) (2024-06-15)
|
|
158
152
|
|
|
159
153
|
|
|
@@ -2,7 +2,7 @@ import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage,
|
|
|
2
2
|
import Vue$1 from "vue";
|
|
3
3
|
import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
|
|
4
4
|
const name$1 = "@indfnd/common-mobile";
|
|
5
|
-
const version$2 = "0.0.
|
|
5
|
+
const version$2 = "0.0.51";
|
|
6
6
|
const author$1 = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -41765,14 +41765,14 @@ function dealFieldFormat(s) {
|
|
|
41765
41765
|
}
|
|
41766
41766
|
return arr.join("");
|
|
41767
41767
|
}
|
|
41768
|
-
function renderTable(table) {
|
|
41768
|
+
function renderTable(table, isTransfer) {
|
|
41769
41769
|
let columnSrc = table.column || [];
|
|
41770
41770
|
if (!(columnSrc instanceof Array)) {
|
|
41771
41771
|
columnSrc = [columnSrc];
|
|
41772
41772
|
}
|
|
41773
41773
|
columnSrc = columnSrc.map((d) => {
|
|
41774
41774
|
let rlt = { ...d._attributes };
|
|
41775
|
-
rlt.id = dealFieldFormat(rlt.id);
|
|
41775
|
+
rlt.id = isTransfer ? dealFieldFormat(rlt.id) : rlt.id;
|
|
41776
41776
|
let props = rlt.props;
|
|
41777
41777
|
if (props) {
|
|
41778
41778
|
try {
|
|
@@ -41847,14 +41847,14 @@ function renderTable(table) {
|
|
|
41847
41847
|
subTable
|
|
41848
41848
|
};
|
|
41849
41849
|
}
|
|
41850
|
-
function generateConfigByXml(xml) {
|
|
41850
|
+
function generateConfigByXml(xml, isTransfer) {
|
|
41851
41851
|
if (!xml) {
|
|
41852
41852
|
return {};
|
|
41853
41853
|
}
|
|
41854
41854
|
try {
|
|
41855
41855
|
let configSrc = JSON.parse(xml2json(xml, { compact: true }));
|
|
41856
41856
|
let table = configSrc.table;
|
|
41857
|
-
let rlt = renderTable(table);
|
|
41857
|
+
let rlt = renderTable(table, isTransfer);
|
|
41858
41858
|
return rlt;
|
|
41859
41859
|
} catch (e) {
|
|
41860
41860
|
console.log("\u914D\u7F6E\u5185\u5BB9", xml);
|
|
@@ -44255,6 +44255,10 @@ var staticRenderFns$j = [];
|
|
|
44255
44255
|
const __vue2_script$j = {
|
|
44256
44256
|
name: "IndMPageView",
|
|
44257
44257
|
props: {
|
|
44258
|
+
isTransfer: {
|
|
44259
|
+
type: Boolean,
|
|
44260
|
+
default: true
|
|
44261
|
+
},
|
|
44258
44262
|
dataUnit: {
|
|
44259
44263
|
type: String,
|
|
44260
44264
|
default: "X"
|
|
@@ -44473,7 +44477,7 @@ const __vue2_script$j = {
|
|
|
44473
44477
|
},
|
|
44474
44478
|
initConfig() {
|
|
44475
44479
|
if (this.xmlInfo) {
|
|
44476
|
-
const { subTable } = generateConfigByXml(this.xmlInfo);
|
|
44480
|
+
const { subTable } = generateConfigByXml(this.xmlInfo, this.isTransfer);
|
|
44477
44481
|
if (this.formFieldsExt) {
|
|
44478
44482
|
_.forEach(this.formFieldsExt, (v, k) => {
|
|
44479
44483
|
let tableTmp = _.find(subTable, { id: k }) || {};
|
|
@@ -44590,6 +44594,10 @@ var staticRenderFns$i = [];
|
|
|
44590
44594
|
const __vue2_script$i = {
|
|
44591
44595
|
name: "IndMPageView",
|
|
44592
44596
|
props: {
|
|
44597
|
+
isTransfer: {
|
|
44598
|
+
type: Boolean,
|
|
44599
|
+
default: true
|
|
44600
|
+
},
|
|
44593
44601
|
dataUnit: {
|
|
44594
44602
|
type: String,
|
|
44595
44603
|
default: "X"
|
|
@@ -44686,7 +44694,7 @@ const __vue2_script$i = {
|
|
|
44686
44694
|
initConfig() {
|
|
44687
44695
|
var _a, _b;
|
|
44688
44696
|
if (this.xmlInfo) {
|
|
44689
|
-
const { dataUrl, pageBtnText, columns: columns2, searchFormFields, formFieldList, subTable } = generateConfigByXml(this.xmlInfo);
|
|
44697
|
+
const { dataUrl, pageBtnText, columns: columns2, searchFormFields, formFieldList, subTable } = generateConfigByXml(this.xmlInfo, this.isTransfer);
|
|
44690
44698
|
this.pageBtnText = pageBtnText;
|
|
44691
44699
|
this.columns = columns2;
|
|
44692
44700
|
this.dataUrl = dataUrl;
|