@indfnd/common-mobile 0.0.50 → 0.0.51
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 +9 -0
- package/dist/ind-common-mobile.es.js +43 -5
- package/dist/ind-common-mobile.umd.cjs +41 -41
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
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.51](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.50...v0.0.51) (2024-08-21)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 表单组件支持时间 ([96453c5](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/96453c5091a5ef313dd1ed34a04b81eb80520c81))
|
|
11
|
+
* 同步移动端表格修改内容表格 ([26f5920](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/26f59205feadac75a6c40d1a8ff4f92dc94987b2))
|
|
12
|
+
* form表单选时间 ([d8e9091](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/d8e9091a4d19623ae5b795e91bcd35c5e3814d6e))
|
|
13
|
+
|
|
5
14
|
### [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
15
|
|
|
7
16
|
### [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)
|
|
@@ -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.50";
|
|
6
6
|
const author$1 = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -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);
|