@zscreate/form-component 1.1.11 → 1.1.12

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.
@@ -67443,7 +67443,14 @@ const API = '/form/formdesiger/countLeaveDays';
67443
67443
  updateModelByModelsChange() {
67444
67444
  try {
67445
67445
  //防止设计表单缺少models报错
67446
- this.dataModel = this.tableKey ? this.models[this.tableKey][this.tableIndex][this.widget.model] : this.models[this.widget.model];
67446
+
67447
+ const dataModel = this.tableKey ? this.models[this.tableKey][this.tableIndex][this.widget.model] : this.models[this.widget.model];
67448
+ // 兼容移动端bug, select 下拉选择框,单选的时候, 可能返回的数组的值, 所以这里需要单独处理下
67449
+ if (this.widget.type === 'select' && !this.widget.options.multiple && Array.isArray(dataModel) && dataModel.length > 0) {
67450
+ this.dataModel = dataModel[0];
67451
+ return;
67452
+ }
67453
+ this.dataModel = dataModel;
67447
67454
  if (this.widget.options.disabled) {
67448
67455
  // 审核状态下 不提示placeholder
67449
67456
  this.widget.options.placeholder = "";
@@ -106853,7 +106860,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__7203__;
106853
106860
  /***/ (function(module) {
106854
106861
 
106855
106862
  "use strict";
106856
- module.exports = {"i8":"1.1.11"};
106863
+ module.exports = {"i8":"1.1.12"};
106857
106864
 
106858
106865
  /***/ })
106859
106866
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/form-component",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "main": "dist/form-component.umd.js",