eoss-ui 0.4.86 → 0.4.87

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/lib/upload.js CHANGED
@@ -3398,8 +3398,8 @@ module.exports = require("qs");
3398
3398
  // ESM COMPAT FLAG
3399
3399
  __webpack_require__.r(__webpack_exports__);
3400
3400
 
3401
- // 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=df2dc078&
3402
- var mainvue_type_template_id_df2dc078_render = function () {
3401
+ // 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=3bdc3f65&
3402
+ var mainvue_type_template_id_3bdc3f65_render = function () {
3403
3403
  var _vm = this
3404
3404
  var _h = _vm.$createElement
3405
3405
  var _c = _vm._self._c || _h
@@ -3779,10 +3779,10 @@ var mainvue_type_template_id_df2dc078_render = function () {
3779
3779
  : _vm._e()
3780
3780
  }
3781
3781
  var staticRenderFns = []
3782
- mainvue_type_template_id_df2dc078_render._withStripped = true
3782
+ mainvue_type_template_id_3bdc3f65_render._withStripped = true
3783
3783
 
3784
3784
 
3785
- // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=df2dc078&
3785
+ // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=3bdc3f65&
3786
3786
 
3787
3787
  // EXTERNAL MODULE: ./src/config/api.js
3788
3788
  var api = __webpack_require__(1);
@@ -4266,7 +4266,7 @@ var _props;
4266
4266
  return this.showFileList;
4267
4267
  },
4268
4268
  url: function url() {
4269
- var url = this.action ? this.action : this.portrait || !this.multiple ? api["Wb" /* uploadOnlyOne */] : api["Yb" /* uploads */];
4269
+ var url = this.action ? this.action : this.portrait ? api["Wb" /* uploadOnlyOne */] : api["Yb" /* uploads */];
4270
4270
  return url.indexOf(this.host) > -1 ? url : this.host + url;
4271
4271
  },
4272
4272
  excludes: function excludes() {
@@ -4848,7 +4848,7 @@ var componentNormalizer = __webpack_require__(2);
4848
4848
 
4849
4849
  var component = Object(componentNormalizer["a" /* default */])(
4850
4850
  src_mainvue_type_script_lang_js_,
4851
- mainvue_type_template_id_df2dc078_render,
4851
+ mainvue_type_template_id_3bdc3f65_render,
4852
4852
  staticRenderFns,
4853
4853
  false,
4854
4854
  null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.4.86",
3
+ "version": "0.4.87",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -95,7 +95,7 @@
95
95
  "cp-cli": "^1.0.2",
96
96
  "cross-env": "^3.1.3",
97
97
  "css-loader": "^2.1.0",
98
- "eoss-element": "^0.2.69",
98
+ "eoss-element": "^0.2.71",
99
99
  "es6-promise": "^4.0.5",
100
100
  "eslint": "4.18.2",
101
101
  "eslint-config-elemefe": "0.1.1",
@@ -629,6 +629,18 @@ export default {
629
629
  },
630
630
  getOptions(res) {
631
631
  res.forEach((item) => {
632
+ if (
633
+ (!item.childHead || !item.childHead.length) &&
634
+ (!item.children || !item.children.length) &&
635
+ !item.width &&
636
+ !item.minWidth &&
637
+ item.title
638
+ ) {
639
+ let width = item.title.length * 14 + 20;
640
+ if (width > 80) {
641
+ this.$set(item, 'minWidth', width);
642
+ }
643
+ }
632
644
  if (item.sysCode || item.url) {
633
645
  let params = util.extend(
634
646
  {},
@@ -1276,6 +1288,10 @@ export default {
1276
1288
  } else {
1277
1289
  console.warn(this.$el.parentNode, `获取不到高度!`);
1278
1290
  }
1291
+ } else if (!warn) {
1292
+ setTimeout(() => {
1293
+ this.resetHeight(true);
1294
+ }, 1000);
1279
1295
  }
1280
1296
  }
1281
1297
  });
@@ -243,9 +243,7 @@
243
243
  <es-label
244
244
  slot="label"
245
245
  v-if="
246
- item.showLabel !== false &&
247
- item.type !== 'table' &&
248
- showLabel
246
+ item.showLabel !== false && item.label && showLabel
249
247
  "
250
248
  :contents="item.label"
251
249
  v-bind="
@@ -1184,11 +1182,7 @@
1184
1182
  >
1185
1183
  <es-label
1186
1184
  slot="label"
1187
- v-if="
1188
- item.showLabel !== false &&
1189
- item.type !== 'table' &&
1190
- showLabel
1191
- "
1185
+ v-if="item.showLabel !== false && item.label && showLabel"
1192
1186
  :contents="item.label"
1193
1187
  v-bind="
1194
1188
  item.label
@@ -2154,11 +2148,7 @@
2154
2148
  >
2155
2149
  <es-label
2156
2150
  slot="label"
2157
- v-if="
2158
- item.showLabel !== false &&
2159
- item.type !== 'table' &&
2160
- showLabel
2161
- "
2151
+ v-if="item.showLabel !== false && item.label && showLabel"
2162
2152
  :contents="item.label"
2163
2153
  v-bind="
2164
2154
  item.label
@@ -3048,11 +3038,7 @@
3048
3038
  >
3049
3039
  <es-label
3050
3040
  slot="label"
3051
- v-if="
3052
- item.showLabel !== false &&
3053
- item.type !== 'table' &&
3054
- showLabel
3055
- "
3041
+ v-if="item.showLabel !== false && item.label && showLabel"
3056
3042
  :contents="item.label"
3057
3043
  v-bind="
3058
3044
  item.label
@@ -110,7 +110,7 @@
110
110
  :rowspan="item.labelRow"
111
111
  >
112
112
  <es-label
113
- v-if="item.type !== 'table'"
113
+ v-if="item.showLabel !== false && item.label"
114
114
  :contents="item.label"
115
115
  v-bind="
116
116
  item.label
@@ -156,7 +156,7 @@ export default {
156
156
  }
157
157
  this.menu.forEach((item) => {
158
158
  if (item.id === this.active) {
159
- this.subMenu = item.children;
159
+ this.subMenu = item.children || [];
160
160
  this.headline = this.title ? this.title : item.text;
161
161
  return;
162
162
  }
@@ -180,7 +180,7 @@ export default {
180
180
  }
181
181
  val.forEach((item) => {
182
182
  if (item.id === this.active) {
183
- this.subMenu = item.children;
183
+ this.subMenu = item.children || [];
184
184
  this.headline = this.title ? this.title : item.text;
185
185
  return;
186
186
  }