eoss-ui 0.5.79 → 0.5.80

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.
Files changed (63) hide show
  1. package/lib/button-group.js +1 -1
  2. package/lib/button.js +1 -1
  3. package/lib/checkbox-group.js +1 -1
  4. package/lib/clients.js +9 -9
  5. package/lib/data-table-form.js +1 -1
  6. package/lib/data-table.js +16 -11
  7. package/lib/date-picker.js +1 -1
  8. package/lib/dialog.js +1 -1
  9. package/lib/eoss-ui.common.js +254 -147
  10. package/lib/flow-group.js +1 -1
  11. package/lib/flow-list.js +1 -1
  12. package/lib/flow.js +1 -1
  13. package/lib/form.js +109 -29
  14. package/lib/handle-user.js +1 -1
  15. package/lib/handler.js +1 -1
  16. package/lib/index.js +1 -1
  17. package/lib/input-number.js +1 -1
  18. package/lib/input.js +1 -5
  19. package/lib/login.js +3 -5
  20. package/lib/main.js +28 -27
  21. package/lib/nav.js +1 -1
  22. package/lib/page.js +1 -1
  23. package/lib/player.js +1 -1
  24. package/lib/qr-code.js +1 -1
  25. package/lib/radio-group.js +1 -1
  26. package/lib/retrial-auth.js +1 -1
  27. package/lib/select-ganged.js +1 -1
  28. package/lib/select.js +1 -1
  29. package/lib/selector-panel.js +1 -1
  30. package/lib/selector.js +1 -1
  31. package/lib/sizer.js +1 -1
  32. package/lib/steps.js +1 -1
  33. package/lib/switch.js +1 -1
  34. package/lib/table-form.js +1 -1
  35. package/lib/tabs.js +1 -1
  36. package/lib/theme-chalk/clients.css +1 -1
  37. package/lib/theme-chalk/data-table.css +1 -1
  38. package/lib/theme-chalk/form.css +1 -1
  39. package/lib/theme-chalk/index.css +1 -1
  40. package/lib/tips.js +1 -1
  41. package/lib/tree-group.js +1 -1
  42. package/lib/tree.js +1 -1
  43. package/lib/upload.js +68 -41
  44. package/lib/utils/util.js +1 -1
  45. package/lib/wujie.js +1 -1
  46. package/lib/wxlogin.js +1 -1
  47. package/package.json +2 -2
  48. package/packages/clients/src/main.vue +7 -7
  49. package/packages/data-table/src/main.vue +16 -5
  50. package/packages/form/src/main.vue +27 -13
  51. package/packages/input/src/main.vue +0 -4
  52. package/packages/login/src/main.vue +0 -1
  53. package/packages/main/src/main.vue +25 -24
  54. package/packages/theme-chalk/lib/clients.css +1 -1
  55. package/packages/theme-chalk/lib/data-table.css +1 -1
  56. package/packages/theme-chalk/lib/form.css +1 -1
  57. package/packages/theme-chalk/lib/index.css +1 -1
  58. package/packages/theme-chalk/src/clients.scss +1 -1
  59. package/packages/theme-chalk/src/data-table.scss +3 -0
  60. package/packages/theme-chalk/src/form.scss +2 -2
  61. package/packages/upload/src/main.vue +126 -72
  62. package/src/index.js +1 -1
  63. package/src/utils/util.js +1 -1
package/lib/tips.js CHANGED
@@ -351,7 +351,7 @@ var ajax = function ajax(_ref) {
351
351
  }, 1000);
352
352
  }
353
353
  // eslint-disable-next-line no-undef
354
- return Promise.resolve(response.data);
354
+ return Promise.resolve(JSON.parse(JSON.stringify(response.data)));
355
355
  }
356
356
  }, function (error) {
357
357
  loading && loading.close();
package/lib/tree-group.js CHANGED
@@ -351,7 +351,7 @@ var ajax = function ajax(_ref) {
351
351
  }, 1000);
352
352
  }
353
353
  // eslint-disable-next-line no-undef
354
- return Promise.resolve(response.data);
354
+ return Promise.resolve(JSON.parse(JSON.stringify(response.data)));
355
355
  }
356
356
  }, function (error) {
357
357
  loading && loading.close();
package/lib/tree.js CHANGED
@@ -351,7 +351,7 @@ var ajax = function ajax(_ref) {
351
351
  }, 1000);
352
352
  }
353
353
  // eslint-disable-next-line no-undef
354
- return Promise.resolve(response.data);
354
+ return Promise.resolve(JSON.parse(JSON.stringify(response.data)));
355
355
  }
356
356
  }, function (error) {
357
357
  loading && loading.close();
package/lib/upload.js CHANGED
@@ -350,7 +350,7 @@ var ajax = function ajax(_ref) {
350
350
  }, 1000);
351
351
  }
352
352
  // eslint-disable-next-line no-undef
353
- return Promise.resolve(response.data);
353
+ return Promise.resolve(JSON.parse(JSON.stringify(response.data)));
354
354
  }
355
355
  }, function (error) {
356
356
  loading && loading.close();
@@ -3943,8 +3943,8 @@ module.exports = require("js-base64");
3943
3943
  // ESM COMPAT FLAG
3944
3944
  __webpack_require__.r(__webpack_exports__);
3945
3945
 
3946
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=5a391a7a&
3947
- var mainvue_type_template_id_5a391a7a_render = function () {
3946
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=2013892f&
3947
+ var mainvue_type_template_id_2013892f_render = function () {
3948
3948
  var _vm = this
3949
3949
  var _h = _vm.$createElement
3950
3950
  var _c = _vm._self._c || _h
@@ -4325,10 +4325,10 @@ var mainvue_type_template_id_5a391a7a_render = function () {
4325
4325
  : _vm._e()
4326
4326
  }
4327
4327
  var staticRenderFns = []
4328
- mainvue_type_template_id_5a391a7a_render._withStripped = true
4328
+ mainvue_type_template_id_2013892f_render._withStripped = true
4329
4329
 
4330
4330
 
4331
- // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=5a391a7a&
4331
+ // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=2013892f&
4332
4332
 
4333
4333
  // EXTERNAL MODULE: ./src/config/api.js
4334
4334
  var api = __webpack_require__(1);
@@ -4776,9 +4776,10 @@ var _props;
4776
4776
  videoChange: false,
4777
4777
  source: '',
4778
4778
  excludeNames: '',
4779
- previewAdjunct: api["jb" /* previewAdjunct */],
4780
4779
  boxHeight: this.listHeight,
4781
- kkfileview: null
4780
+ previewAdjunct: api["jb" /* previewAdjunct */],
4781
+ kkfileview: null,
4782
+ dochubConfig: {}
4782
4783
  };
4783
4784
  },
4784
4785
 
@@ -4822,7 +4823,7 @@ var _props;
4822
4823
  return this.showFileList;
4823
4824
  },
4824
4825
  url: function url() {
4825
- var url = this.action ? this.action : this.portrait ? api["Zb" /* uploadOnlyOne */] : api["bc" /* uploads */];
4826
+ var url = this.action ? this.action : this.portrait ? this.dochubConfig.reuploadDocument || api["Zb" /* uploadOnlyOne */] : this.dochubConfig.uploadDocument || api["bc" /* uploads */];
4826
4827
  return url.indexOf(this.host) > -1 ? url : this.host + url;
4827
4828
  },
4828
4829
  excludes: function excludes() {
@@ -5026,6 +5027,7 @@ var _props;
5026
5027
  this.fileAccept = config.accept;
5027
5028
  this.fileSize = config.size;
5028
5029
  this.fileTotalSize = config.totalSize;
5030
+ this.dochubConfig = config.dochubConfig;
5029
5031
  } else {
5030
5032
  util["a" /* default */].ajax({
5031
5033
  method: this.method,
@@ -5042,6 +5044,9 @@ var _props;
5042
5044
  return item;
5043
5045
  }).join(',');
5044
5046
  }
5047
+ if (res.results.dochubConfig && Object.keys(res.results.dochubConfig).length) {
5048
+ _this3.dochubConfig = res.results.dochubConfig;
5049
+ }
5045
5050
  if (res.results.kkViewRootPath) {
5046
5051
  _this3.kkfileview = res.results.kkViewRootPath;
5047
5052
  }
@@ -5050,7 +5055,8 @@ var _props;
5050
5055
  store["a" /* default */].set(_this3.code, {
5051
5056
  accept: _this3.fileAccept,
5052
5057
  size: _this3.fileSize,
5053
- totalSize: _this3.fileTotalSize
5058
+ totalSize: _this3.fileTotalSize,
5059
+ dochubConfig: _this3.dochubConfig
5054
5060
  });
5055
5061
  }
5056
5062
  }
@@ -5130,36 +5136,55 @@ var _props;
5130
5136
  if (res.status === 'success') {
5131
5137
  var suffix = file.suffix;
5132
5138
  suffix = suffix.toLowerCase();
5133
- if (suffix.includes('doc') || suffix.includes('docx') || suffix.includes('xls') || suffix.includes('xlsx') || suffix.includes('ppt')) {
5134
- if (this.kkfileview) {
5135
- this.openKkfileview(file);
5136
- } else {
5137
- util["a" /* default */].win.open(this.host + (url ? url : api["lb" /* previewAdjunctOffice */]) + '?cmd=view&bucketName=' + file.absolutePath + '&fileId=' + file.adjunctId + '&fileName=' + file.newName);
5138
- }
5139
- } else if (suffix.includes('pdf')) {
5140
- if (this.kkfileview) {
5141
- this.openKkfileview(file);
5139
+ if (this.dochubConfig.previewDocumentUrl) {
5140
+ if (suffix.includes('jpge') || suffix.includes('jpg') || suffix.includes('gif') || suffix.includes('png')) {
5141
+ this.imgUrl = res.url && util["a" /* default */].startWith(url, ['http', '/', true]) ? res.url : this.host + (url ? url : this.previewAdjunct + '?adjunctId=' + file.adjunctId);
5142
+ this.title = file.originalName;
5143
+ this.showImg = true;
5144
+ this.$nextTick(function () {
5145
+ _this5.loadImage();
5146
+ });
5147
+ } else if (suffix.includes('mp4')) {
5148
+ this.source = {
5149
+ src: this.host + (url ? url : this.previewAdjunct + '?adjunctId=' + file.adjunctId)
5150
+ };
5151
+ this.title = file.originalName;
5152
+ this.showVideo = true;
5142
5153
  } else {
5143
- util["a" /* default */].win.open(this.host + (url ? url : api["kb" /* previewAdjunct2 */]) + '/' + file.originalName + '?adjunctId=' + file.adjunctId);
5154
+ util["a" /* default */].win.open(this.host + (url ? url : this.dochubConfig.previewDocumentUrl + '?documentId=' + file.adjunctId + '&action=\u9644\u4EF6\u9884\u89C8'));
5144
5155
  }
5145
- } else if (suffix.includes('jpge') || suffix.includes('jpg') || suffix.includes('gif') || suffix.includes('png')) {
5146
- this.imgUrl = res.url && util["a" /* default */].startWith(url, ['http', '/', true]) ? res.url : this.host + (url ? url : this.previewAdjunct) + '?adjunctId=' + file.adjunctId;
5147
- this.title = file.originalName;
5148
- this.showImg = true;
5149
- this.$nextTick(function () {
5150
- _this5.loadImage();
5151
- });
5152
- } else if (suffix.includes('mp4')) {
5153
- this.source = {
5154
- src: this.host + (url ? url : this.previewAdjunct) + '?adjunctId=' + file.adjunctId
5155
- };
5156
- this.title = file.originalName;
5157
- this.showVideo = true;
5158
5156
  } else {
5159
- if (this.kkfileview) {
5160
- this.openKkfileview(file);
5157
+ if (suffix.includes('doc') || suffix.includes('docx') || suffix.includes('xls') || suffix.includes('xlsx') || suffix.includes('ppt')) {
5158
+ if (this.kkfileview) {
5159
+ this.openKkfileview(file);
5160
+ } else {
5161
+ util["a" /* default */].win.open(this.host + (url ? url : api["lb" /* previewAdjunctOffice */]) + '?cmd=view&bucketName=' + file.absolutePath + '&fileId=' + file.adjunctId + '&fileName=' + file.newName);
5162
+ }
5163
+ } else if (suffix.includes('pdf')) {
5164
+ if (this.kkfileview) {
5165
+ this.openKkfileview(file);
5166
+ } else {
5167
+ util["a" /* default */].win.open(this.host + (url ? url : api["kb" /* previewAdjunct2 */]) + '/' + file.originalName + '?adjunctId=' + file.adjunctId);
5168
+ }
5169
+ } else if (suffix.includes('jpge') || suffix.includes('jpg') || suffix.includes('gif') || suffix.includes('png')) {
5170
+ this.imgUrl = res.url && util["a" /* default */].startWith(url, ['http', '/', true]) ? res.url : this.host + (url ? url : this.previewAdjunct) + '?adjunctId=' + file.adjunctId;
5171
+ this.title = file.originalName;
5172
+ this.showImg = true;
5173
+ this.$nextTick(function () {
5174
+ _this5.loadImage();
5175
+ });
5176
+ } else if (suffix.includes('mp4')) {
5177
+ this.source = {
5178
+ src: this.host + (url ? url : this.previewAdjunct) + '?adjunctId=' + file.adjunctId
5179
+ };
5180
+ this.title = file.originalName;
5181
+ this.showVideo = true;
5161
5182
  } else {
5162
- util["a" /* default */].win.open(this.host + (url ? url : this.previewAdjunct) + '?adjunctId=' + file.adjunctId);
5183
+ if (this.kkfileview) {
5184
+ this.openKkfileview(file);
5185
+ } else {
5186
+ util["a" /* default */].win.open(this.host + (url ? url : this.previewAdjunct) + '?adjunctId=' + file.adjunctId);
5187
+ }
5163
5188
  }
5164
5189
  }
5165
5190
  } else {
@@ -5265,16 +5290,18 @@ var _props;
5265
5290
  var userName = file.userName || file.response && file.response.userName || util["a" /* default */].getStorage('userName');
5266
5291
  // eslint-disable-next-line no-undef
5267
5292
  return new Promise(function (resolve, reject) {
5268
- var url = typeof _this7.deleted === 'string' ? _this7.deleted : _this7.remove === 'string' ? _this7.remove : api["g" /* delAdjunct */];
5293
+ var url = typeof _this7.deleted === 'string' ? _this7.deleted : _this7.remove === 'string' ? _this7.remove : _this7.dochubConfig.deleteDocumentUrl || api["g" /* delAdjunct */];
5269
5294
  util["a" /* default */].ajax({
5270
5295
  method: _this7.method,
5271
5296
  url: url,
5272
5297
  data: {
5273
5298
  userName: userName,
5299
+ documentId: file.adjunctId || file.response.adjunctId,
5274
5300
  id: file.adjunctId || file.response.adjunctId
5275
5301
  },
5276
5302
  params: {
5277
5303
  userName: userName,
5304
+ documentId: file.adjunctId || file.response.adjunctId,
5278
5305
  id: file.adjunctId || file.response.adjunctId
5279
5306
  }
5280
5307
  }).then(function (res) {
@@ -5302,13 +5329,13 @@ var _props;
5302
5329
  }
5303
5330
  },
5304
5331
  handleDownloads: function handleDownloads() {
5305
- var url = typeof this.downloads === 'string' ? this.downloads : api["Yb" /* uploadDownloads */];
5332
+ var url = typeof this.downloads === 'string' ? this.downloads : this.dochubConfig.compressDownloadDocument || api["Yb" /* uploadDownloads */];
5306
5333
  util["a" /* default */].win.open(this.host + url + '?ownId=' + this.ownId + '&code=' + this.code + (this.extendCode ? '&extendCode=' + this.extendCode : ''));
5307
5334
  },
5308
5335
  handleDownload: function handleDownload(file) {
5309
5336
  if (file.status === 'success') {
5310
- var url = typeof this.download === 'string' ? this.download : api["r" /* downloadByAdjunctId */];
5311
- util["a" /* default */].win.open(this.host + url + '?adjunctId=' + (file.adjunctId || file.response.adjunctId));
5337
+ var url = typeof this.download === 'string' ? this.download : this.dochubConfig.downloadDocumentUrl || api["r" /* downloadByAdjunctId */];
5338
+ util["a" /* default */].win.open(this.host + url + '?adjunctId=' + (file.adjunctId || file.response.adjunctId) + '&documentId=' + (file.adjunctId || file.response.adjunctId));
5312
5339
  } else {
5313
5340
  this.aLinkDownload(file);
5314
5341
  }
@@ -5342,7 +5369,7 @@ var _props;
5342
5369
  ids = ids.join(',');
5343
5370
  util["a" /* default */].ajax({
5344
5371
  method: this.method,
5345
- url: api["ac" /* uploadSort */],
5372
+ url: this.dochubConfig.sortDocumentsUrl || api["ac" /* uploadSort */],
5346
5373
  data: {
5347
5374
  ids: ids
5348
5375
  },
@@ -5444,7 +5471,7 @@ var componentNormalizer = __webpack_require__(3);
5444
5471
 
5445
5472
  var component = Object(componentNormalizer["a" /* default */])(
5446
5473
  src_mainvue_type_script_lang_js_,
5447
- mainvue_type_template_id_5a391a7a_render,
5474
+ mainvue_type_template_id_2013892f_render,
5448
5475
  staticRenderFns,
5449
5476
  false,
5450
5477
  null,
package/lib/utils/util.js CHANGED
@@ -268,7 +268,7 @@ var ajax = function ajax(_ref) {
268
268
  }, 1000);
269
269
  }
270
270
  // eslint-disable-next-line no-undef
271
- return Promise.resolve(response.data);
271
+ return Promise.resolve(JSON.parse(JSON.stringify(response.data)));
272
272
  }
273
273
  }, function (error) {
274
274
  loading && loading.close();
package/lib/wujie.js CHANGED
@@ -351,7 +351,7 @@ var ajax = function ajax(_ref) {
351
351
  }, 1000);
352
352
  }
353
353
  // eslint-disable-next-line no-undef
354
- return Promise.resolve(response.data);
354
+ return Promise.resolve(JSON.parse(JSON.stringify(response.data)));
355
355
  }
356
356
  }, function (error) {
357
357
  loading && loading.close();
package/lib/wxlogin.js CHANGED
@@ -351,7 +351,7 @@ var ajax = function ajax(_ref) {
351
351
  }, 1000);
352
352
  }
353
353
  // eslint-disable-next-line no-undef
354
- return Promise.resolve(response.data);
354
+ return Promise.resolve(JSON.parse(JSON.stringify(response.data)));
355
355
  }
356
356
  }, function (error) {
357
357
  loading && loading.close();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.5.79",
3
+ "version": "0.5.80",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -97,7 +97,7 @@
97
97
  "cp-cli": "^1.0.2",
98
98
  "cross-env": "^3.1.3",
99
99
  "css-loader": "^2.1.0",
100
- "eoss-element": "^0.2.102",
100
+ "eoss-element": "^0.3.4",
101
101
  "es6-promise": "^4.0.5",
102
102
  "eslint": "4.18.2",
103
103
  "eslint-config-elemefe": "0.1.1",
@@ -100,7 +100,7 @@ export default {
100
100
  mounted() {},
101
101
  methods: {
102
102
  handleDownload(url) {
103
- if (url) {
103
+ if (url && typeof url == 'string') {
104
104
  window.open(url);
105
105
  return;
106
106
  }
@@ -114,24 +114,24 @@ export default {
114
114
  var isLinux =
115
115
  navigator.platform == 'X11' || navigator.platform.indexOf('Linux') > -1;
116
116
  if (isWin) {
117
- if (this.win) {
118
- window.open(this.win);
117
+ if (this.downloads.win) {
118
+ window.open(this.downloads.win);
119
119
  } else {
120
120
  this.$message.error('下载地址不存在!');
121
121
  return;
122
122
  }
123
123
  }
124
124
  if (isMac) {
125
- if (this.mac) {
126
- window.open(this.mac);
125
+ if (this.downloads.mac) {
126
+ window.open(this.downloads.mac);
127
127
  } else {
128
128
  this.$message.error('下载地址不存在!');
129
129
  return;
130
130
  }
131
131
  }
132
132
  if (isLinux) {
133
- if (this.linux) {
134
- window.open(this.linux);
133
+ if (this.downloads.linux) {
134
+ window.open(this.downloads.linux);
135
135
  } else {
136
136
  this.$message.error('下载地址不存在!');
137
137
  return;
@@ -562,7 +562,13 @@ export default {
562
562
  if (this.list && this.list.length) {
563
563
  return this.list;
564
564
  }
565
- if (this.config.totalCount == 0 && this.data.length) {
565
+ if (
566
+ this.page &&
567
+ ((typeof this.page === 'object' &&
568
+ (!Object.prototype.hasOwnProperty.call(this.page, 'totalCount') ||
569
+ this.page.totalCount == 0)) ||
570
+ this.page === true)
571
+ ) {
566
572
  this.config.totalCount = this.data.length - this.lose;
567
573
  }
568
574
  if (this.page && this.data.length > this.config.pageSize) {
@@ -641,10 +647,15 @@ export default {
641
647
  this.doLayout();
642
648
  },
643
649
  // data: {
644
- // immediate: true,
645
650
  // deep: true,
646
651
  // handler(val) {
647
- // this.config.totalCount = val.length - this.lose;
652
+ // if (
653
+ // this.page &&
654
+ // typeof this.page === 'object' &&
655
+ // !Object.prototype.hasOwnProperty.call(this.page, 'totalCount')
656
+ // ) {
657
+ // this.config.totalCount = val.length - this.lose;
658
+ // }
648
659
  // }
649
660
  // },
650
661
  page() {
@@ -1013,7 +1024,7 @@ export default {
1013
1024
  if (where) {
1014
1025
  reqData = util.extend({}, reqData, where);
1015
1026
  }
1016
- if (this.retainSearh) {
1027
+ if (this.retainSearh || first === false) {
1017
1028
  reqData = util.extend({}, reqData, this.wheres);
1018
1029
  }
1019
1030
  if (this.isJoin) {
@@ -1258,7 +1269,7 @@ export default {
1258
1269
  }
1259
1270
  let thead = this.theads;
1260
1271
  if (this.$refs.oaTable) {
1261
- thead = this.$refs.oaTable.getThead();
1272
+ thead = this.$refs.oaTable.getThead().thead;
1262
1273
  }
1263
1274
  if (handle.action) {
1264
1275
  let isConfirm = handle.confirm || true;
@@ -54,10 +54,12 @@
54
54
  class="es-collapse-item"
55
55
  v-if="!items.hide"
56
56
  v-show="items.show !== false"
57
+ v-bind="items.config"
57
58
  :class="{
58
59
  'es-collapse-readonly': accordion ? false : !collapse,
59
60
  'es-collapse-caption': items.caption
60
61
  }"
62
+ :show-title="items.showTitle"
61
63
  :name="items.name || String(indexs)"
62
64
  :key="indexs"
63
65
  :readonly="accordion ? false : !collapse"
@@ -591,7 +593,10 @@
591
593
  v-else-if="item.type === 'component'"
592
594
  v-model="models[item.name]"
593
595
  v-bind="
594
- handleExclAttribute({ data: item, attrs: ['value'] })
596
+ handleExclAttribute({
597
+ data: item,
598
+ attrs: ['value', 'type']
599
+ })
595
600
  "
596
601
  v-on="item.events"
597
602
  ></component>
@@ -657,6 +662,7 @@
657
662
  </div>
658
663
  <el-form-item
659
664
  label-width="0"
665
+ :class="{ 'fixed-width': inline.width }"
660
666
  :prop="inline.name"
661
667
  :rules="getRules(inline)"
662
668
  >
@@ -845,7 +851,7 @@
845
851
  v-bind="
846
852
  handleExclAttribute({
847
853
  data: inline,
848
- attrs: ['value']
854
+ attrs: ['value', 'type']
849
855
  })
850
856
  "
851
857
  v-on="inline.events"
@@ -900,6 +906,7 @@
900
906
  </div>
901
907
  <el-form-item
902
908
  label-width="0"
909
+ :class="{ 'fixed-width': item.inline.width }"
903
910
  :prop="item.inline.name"
904
911
  :rules="getRules(item.inline)"
905
912
  >
@@ -1093,7 +1100,7 @@
1093
1100
  v-bind="
1094
1101
  handleExclAttribute({
1095
1102
  data: inline,
1096
- attrs: ['value']
1103
+ attrs: ['value', 'type']
1097
1104
  })
1098
1105
  "
1099
1106
  v-on="inline.events"
@@ -1549,7 +1556,7 @@
1549
1556
  v-bind="
1550
1557
  handleExclAttribute({
1551
1558
  data: item,
1552
- attrs: ['value']
1559
+ attrs: ['value', 'type']
1553
1560
  })
1554
1561
  "
1555
1562
  v-on="item.events"
@@ -1609,6 +1616,7 @@
1609
1616
  </div>
1610
1617
  <el-form-item
1611
1618
  label-width="0"
1619
+ :class="{ 'fixed-width': inline.width }"
1612
1620
  :prop="inline.name"
1613
1621
  :rules="getRules(inline)"
1614
1622
  >
@@ -1776,7 +1784,7 @@
1776
1784
  v-bind="
1777
1785
  handleExclAttribute({
1778
1786
  data: inline,
1779
- attrs: ['value']
1787
+ attrs: ['value', 'type']
1780
1788
  })
1781
1789
  "
1782
1790
  v-on="inline.events"
@@ -1824,6 +1832,7 @@
1824
1832
  </div>
1825
1833
  <el-form-item
1826
1834
  label-width="0"
1835
+ :class="{ 'fixed-width': item.inline.width }"
1827
1836
  :prop="item.inline.name"
1828
1837
  :rules="getRules(item.inline)"
1829
1838
  >
@@ -1983,7 +1992,7 @@
1983
1992
  v-bind="
1984
1993
  handleExclAttribute({
1985
1994
  data: item.inline,
1986
- attrs: ['value']
1995
+ attrs: ['value', 'type']
1987
1996
  })
1988
1997
  "
1989
1998
  v-on="item.inline.events"
@@ -2554,7 +2563,7 @@
2554
2563
  v-bind="
2555
2564
  handleExclAttribute({
2556
2565
  data: item,
2557
- attrs: ['value']
2566
+ attrs: ['value', 'type']
2558
2567
  })
2559
2568
  "
2560
2569
  v-on="item.events"
@@ -2618,6 +2627,7 @@
2618
2627
  </div>
2619
2628
  <el-form-item
2620
2629
  label-width="0"
2630
+ :class="{ 'fixed-width': inline.width }"
2621
2631
  :prop="inline.name"
2622
2632
  :rules="getRules(inline)"
2623
2633
  >
@@ -2805,7 +2815,7 @@
2805
2815
  v-bind="
2806
2816
  handleExclAttribute({
2807
2817
  data: inline,
2808
- attrs: ['value']
2818
+ attrs: ['value', 'type']
2809
2819
  })
2810
2820
  "
2811
2821
  v-on="inline.events"
@@ -2860,6 +2870,7 @@
2860
2870
  </div>
2861
2871
  <el-form-item
2862
2872
  label-width="0"
2873
+ :class="{ 'fixed-width': item.inline.width }"
2863
2874
  :prop="item.inline.name"
2864
2875
  :rules="getRules(item.inline)"
2865
2876
  >
@@ -3034,7 +3045,7 @@
3034
3045
  v-bind="
3035
3046
  handleExclAttribute({
3036
3047
  data: item.inline,
3037
- attrs: ['value']
3048
+ attrs: ['value', 'type']
3038
3049
  })
3039
3050
  "
3040
3051
  v-on="item.inline.events"
@@ -3468,7 +3479,7 @@
3468
3479
  v-bind="
3469
3480
  handleExclAttribute({
3470
3481
  data: item,
3471
- attrs: ['value']
3482
+ attrs: ['value', 'type']
3472
3483
  })
3473
3484
  "
3474
3485
  v-on="item.events"
@@ -3544,6 +3555,7 @@
3544
3555
  >
3545
3556
  <el-form-item
3546
3557
  label-width="0"
3558
+ :class="{ 'fixed-width': inline.width }"
3547
3559
  :prop="inline.name"
3548
3560
  :rules="getRules(inline)"
3549
3561
  >
@@ -3711,7 +3723,7 @@
3711
3723
  v-bind="
3712
3724
  handleExclAttribute({
3713
3725
  data: inline,
3714
- attrs: ['value']
3726
+ attrs: ['value', 'type']
3715
3727
  })
3716
3728
  "
3717
3729
  v-on="inline.events"
@@ -3759,6 +3771,7 @@
3759
3771
  </div>
3760
3772
  <el-form-item
3761
3773
  label-width="0"
3774
+ :class="{ 'fixed-width': item.inline.width }"
3762
3775
  :prop="item.inline.name"
3763
3776
  :rules="getRules(item.inline)"
3764
3777
  >
@@ -3918,7 +3931,7 @@
3918
3931
  v-bind="
3919
3932
  handleExclAttribute({
3920
3933
  data: item.inline,
3921
- attrs: ['value']
3934
+ attrs: ['value', 'type']
3922
3935
  })
3923
3936
  "
3924
3937
  v-on="item.inline.events"
@@ -4524,7 +4537,8 @@ export default {
4524
4537
  mounted() {
4525
4538
  this.$nextTick(() => {
4526
4539
  !this.height && this.getHeight();
4527
- this.$refs.esForm.$el.addEventListener('keyup', this.handleEnter);
4540
+ this.$refs.esForm &&
4541
+ this.$refs.esForm.$el.addEventListener('keyup', this.handleEnter);
4528
4542
  });
4529
4543
  },
4530
4544
  methods: {
@@ -30,10 +30,6 @@ export default {
30
30
  return {};
31
31
  }
32
32
  },
33
- autocomplete: {
34
- type: [String, Boolean],
35
- default: ''
36
- },
37
33
  fetchSuggestions: Function,
38
34
  focusShow: {
39
35
  type: Boolean,
@@ -79,7 +79,6 @@
79
79
  :focusShow="focusShow"
80
80
  :data="users"
81
81
  @select="handleBlur"
82
- :autocomplete="true"
83
82
  >
84
83
  <template slot="prefix">
85
84
  <i class="es-icon-zhanghao es-label-user"></i>