@indfnd/common-mobile 0.0.50 → 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 +11 -8
- package/dist/ind-common-mobile.es.js +57 -11
- package/dist/ind-common-mobile.umd.cjs +40 -40
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
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.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)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* 表单组件支持时间 ([96453c5](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/96453c5091a5ef313dd1ed34a04b81eb80520c81))
|
|
13
|
+
* 同步移动端表格修改内容表格 ([26f5920](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/26f59205feadac75a6c40d1a8ff4f92dc94987b2))
|
|
14
|
+
* form表单选时间 ([d8e9091](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/d8e9091a4d19623ae5b795e91bcd35c5e3814d6e))
|
|
15
|
+
|
|
5
16
|
### [0.0.50](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.49...v0.0.50) (2024-07-11)
|
|
6
17
|
|
|
7
18
|
### [0.0.49](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.48...v0.0.49) (2024-07-10)
|
|
@@ -137,14 +148,6 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
137
148
|
|
|
138
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)
|
|
139
150
|
|
|
140
|
-
<<<<<<< HEAD
|
|
141
|
-
=======
|
|
142
|
-
|
|
143
|
-
### Features
|
|
144
|
-
|
|
145
|
-
* 移动端会话补偿 ([2f627eb](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/2f627eb7362d45a41bd0b1c3a537fd22e3fd5784))
|
|
146
|
-
|
|
147
|
-
>>>>>>> 7445f43a11f06ff428d84dd9eae853fe1c47cc2c
|
|
148
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)
|
|
149
152
|
|
|
150
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);
|
|
@@ -42411,7 +42411,7 @@ var FormImpl = {
|
|
|
42411
42411
|
}
|
|
42412
42412
|
let diff = this.fieldList.length - renderFieldList.length;
|
|
42413
42413
|
_.forEach(renderFieldList, (d, idx) => {
|
|
42414
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i, _j, _k, _l, _m;
|
|
42414
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
42415
42415
|
let itemInner;
|
|
42416
42416
|
if (d.render) {
|
|
42417
42417
|
itemInner = d.render(h, d, this.form);
|
|
@@ -42682,6 +42682,44 @@ var FormImpl = {
|
|
|
42682
42682
|
});
|
|
42683
42683
|
break;
|
|
42684
42684
|
}
|
|
42685
|
+
case "timepicker": {
|
|
42686
|
+
itemInner = h("TimePicker", {
|
|
42687
|
+
ref: d.formKey,
|
|
42688
|
+
props: {
|
|
42689
|
+
...d.props || {},
|
|
42690
|
+
type: ((_i = d.props) == null ? void 0 : _i.type) || "time",
|
|
42691
|
+
value: this.form[d.formKey]
|
|
42692
|
+
},
|
|
42693
|
+
attrs: {
|
|
42694
|
+
confirm: true,
|
|
42695
|
+
...d.props || {}
|
|
42696
|
+
},
|
|
42697
|
+
on: {
|
|
42698
|
+
"on-change": (val) => {
|
|
42699
|
+
var _a3, _b3, _c3;
|
|
42700
|
+
this.val = val;
|
|
42701
|
+
if (((_a3 = d.props) == null ? void 0 : _a3.confirm) === false) {
|
|
42702
|
+
this.form[d.formKey] = this.val instanceof Date ? dayjs(this.val).format(((_b3 = d.props) == null ? void 0 : _b3.format) ? (_c3 = d.props) == null ? void 0 : _c3.format : "HH:mm:ss") : this.val;
|
|
42703
|
+
this.$emit("input", this.form);
|
|
42704
|
+
const required = d.required instanceof Function ? d.required(this.form) : d.required;
|
|
42705
|
+
if (required) {
|
|
42706
|
+
this.$refs.form.validateField(d.formKey);
|
|
42707
|
+
}
|
|
42708
|
+
}
|
|
42709
|
+
},
|
|
42710
|
+
"on-ok": () => {
|
|
42711
|
+
var _a3, _b3;
|
|
42712
|
+
this.form[d.formKey] = this.val instanceof Date ? dayjs(this.val).format(((_a3 = d.props) == null ? void 0 : _a3.format) ? (_b3 = d.props) == null ? void 0 : _b3.format : "HH:mm:ss") : this.val;
|
|
42713
|
+
this.$emit("input", this.form);
|
|
42714
|
+
const required = d.required instanceof Function ? d.required(this.form) : d.required;
|
|
42715
|
+
if (required) {
|
|
42716
|
+
this.$refs.form.validateField(d.formKey);
|
|
42717
|
+
}
|
|
42718
|
+
}
|
|
42719
|
+
}
|
|
42720
|
+
});
|
|
42721
|
+
break;
|
|
42722
|
+
}
|
|
42685
42723
|
case "treeselect": {
|
|
42686
42724
|
itemInner = h("IndMInputSelect", {
|
|
42687
42725
|
ref: d.formKey,
|
|
@@ -42760,11 +42798,11 @@ var FormImpl = {
|
|
|
42760
42798
|
default: {
|
|
42761
42799
|
let text = this.form[d.formKey];
|
|
42762
42800
|
if (d.enumKey) {
|
|
42763
|
-
text = (
|
|
42801
|
+
text = (_k = (_j = this.enumData[d.enumKey]) == null ? void 0 : _j.enumData) == null ? void 0 : _k[text];
|
|
42764
42802
|
} else if (d.enumList && d.enumList.length) {
|
|
42765
|
-
text = (
|
|
42803
|
+
text = (_m = (_l = d.enumList) == null ? void 0 : _l.find(({ K }) => K === text)) == null ? void 0 : _m.V;
|
|
42766
42804
|
} else if (d.enumData) {
|
|
42767
|
-
text = (
|
|
42805
|
+
text = (_n = d.enumData) == null ? void 0 : _n[text];
|
|
42768
42806
|
}
|
|
42769
42807
|
if (d.dateFormat) {
|
|
42770
42808
|
text = formatDate(text);
|
|
@@ -44217,6 +44255,10 @@ var staticRenderFns$j = [];
|
|
|
44217
44255
|
const __vue2_script$j = {
|
|
44218
44256
|
name: "IndMPageView",
|
|
44219
44257
|
props: {
|
|
44258
|
+
isTransfer: {
|
|
44259
|
+
type: Boolean,
|
|
44260
|
+
default: true
|
|
44261
|
+
},
|
|
44220
44262
|
dataUnit: {
|
|
44221
44263
|
type: String,
|
|
44222
44264
|
default: "X"
|
|
@@ -44435,7 +44477,7 @@ const __vue2_script$j = {
|
|
|
44435
44477
|
},
|
|
44436
44478
|
initConfig() {
|
|
44437
44479
|
if (this.xmlInfo) {
|
|
44438
|
-
const { subTable } = generateConfigByXml(this.xmlInfo);
|
|
44480
|
+
const { subTable } = generateConfigByXml(this.xmlInfo, this.isTransfer);
|
|
44439
44481
|
if (this.formFieldsExt) {
|
|
44440
44482
|
_.forEach(this.formFieldsExt, (v, k) => {
|
|
44441
44483
|
let tableTmp = _.find(subTable, { id: k }) || {};
|
|
@@ -44552,6 +44594,10 @@ var staticRenderFns$i = [];
|
|
|
44552
44594
|
const __vue2_script$i = {
|
|
44553
44595
|
name: "IndMPageView",
|
|
44554
44596
|
props: {
|
|
44597
|
+
isTransfer: {
|
|
44598
|
+
type: Boolean,
|
|
44599
|
+
default: true
|
|
44600
|
+
},
|
|
44555
44601
|
dataUnit: {
|
|
44556
44602
|
type: String,
|
|
44557
44603
|
default: "X"
|
|
@@ -44648,7 +44694,7 @@ const __vue2_script$i = {
|
|
|
44648
44694
|
initConfig() {
|
|
44649
44695
|
var _a, _b;
|
|
44650
44696
|
if (this.xmlInfo) {
|
|
44651
|
-
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);
|
|
44652
44698
|
this.pageBtnText = pageBtnText;
|
|
44653
44699
|
this.columns = columns2;
|
|
44654
44700
|
this.dataUrl = dataUrl;
|