eoss-ui 0.4.61 → 0.4.63

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 (98) hide show
  1. package/lib/button-group.js +46 -44
  2. package/lib/button.js +46 -44
  3. package/lib/card.js +2 -2
  4. package/lib/cascader.js +2 -2
  5. package/lib/checkbox-group.js +61 -69
  6. package/lib/clients.js +2 -2
  7. package/lib/data-table-form.js +44 -42
  8. package/lib/data-table.js +107 -91
  9. package/lib/date-picker.js +53 -51
  10. package/lib/dialog.js +51 -50
  11. package/lib/editor.js +6 -6
  12. package/lib/enterprise.js +2 -2
  13. package/lib/eoss-ui.common.js +2408 -5194
  14. package/lib/error-page.js +2 -2
  15. package/lib/flow-group.js +127 -63
  16. package/lib/flow-list.js +1020 -323
  17. package/lib/flow.js +51 -50
  18. package/lib/form.js +231 -46
  19. package/lib/handle-user.js +46 -44
  20. package/lib/handler.js +49 -47
  21. package/lib/icons.js +4 -4
  22. package/lib/index.js +1 -1
  23. package/lib/input-number.js +46 -44
  24. package/lib/input.js +46 -44
  25. package/lib/label.js +2 -2
  26. package/lib/login.js +49 -47
  27. package/lib/main.js +289 -177
  28. package/lib/menu.js +7 -5
  29. package/lib/nav.js +48 -48
  30. package/lib/notify.js +2 -2
  31. package/lib/page.js +46 -44
  32. package/lib/pagination.js +2 -2
  33. package/lib/player.js +48 -46
  34. package/lib/qr-code.js +46 -44
  35. package/lib/radio-group.js +49 -47
  36. package/lib/retrial-auth.js +46 -44
  37. package/lib/select-ganged.js +46 -44
  38. package/lib/select.js +47 -45
  39. package/lib/selector-panel.js +46 -44
  40. package/lib/selector.js +63 -50
  41. package/lib/sizer.js +46 -44
  42. package/lib/steps.js +46 -44
  43. package/lib/switch.js +46 -44
  44. package/lib/table-form.js +46 -44
  45. package/lib/tabs-panel.js +2 -2
  46. package/lib/tabs.js +53 -51
  47. package/lib/theme-chalk/data-table.css +1 -1
  48. package/lib/theme-chalk/dialog.css +1 -1
  49. package/lib/theme-chalk/flow-list.css +1 -1
  50. package/lib/theme-chalk/index.css +1 -1
  51. package/lib/theme-chalk/menu.css +1 -1
  52. package/lib/tips.js +46 -44
  53. package/lib/toolbar.js +2 -2
  54. package/lib/tree-group.js +46 -44
  55. package/lib/tree.js +46 -44
  56. package/lib/upload.js +52 -50
  57. package/lib/utils/util.js +44 -42
  58. package/lib/wujie.js +46 -44
  59. package/lib/wxlogin.js +46 -44
  60. package/package.json +2 -2
  61. package/packages/checkbox-group/src/main.vue +16 -25
  62. package/packages/data-table/src/column.vue +15 -1
  63. package/packages/data-table/src/main.vue +58 -47
  64. package/packages/flow/src/component/taskUnionExamine.vue +0 -1
  65. package/packages/flow-group/src/main.vue +32 -14
  66. package/packages/flow-list/src/flow-table.vue +5 -1
  67. package/packages/flow-list/src/main.vue +780 -43
  68. package/packages/form/src/main.vue +63 -0
  69. package/packages/handler/src/main.vue +1 -1
  70. package/packages/login/src/main.vue +10 -1
  71. package/packages/main/src/main.vue +186 -63
  72. package/packages/main/src/userinfo.vue +3 -3
  73. package/packages/menu/src/main.vue +5 -3
  74. package/packages/nav/src/main.vue +0 -2
  75. package/packages/radio-group/src/main.vue +9 -5
  76. package/packages/select/src/main.vue +1 -1
  77. package/packages/selector/src/main.vue +12 -4
  78. package/packages/theme-chalk/lib/data-table.css +1 -1
  79. package/packages/theme-chalk/lib/dialog.css +1 -1
  80. package/packages/theme-chalk/lib/flow-list.css +1 -1
  81. package/packages/theme-chalk/lib/index.css +1 -1
  82. package/packages/theme-chalk/lib/menu.css +1 -1
  83. package/packages/theme-chalk/src/data-table.scss +10 -17
  84. package/packages/theme-chalk/src/dialog.scss +1 -1
  85. package/packages/theme-chalk/src/flow-list.scss +29 -34
  86. package/packages/theme-chalk/src/index.scss +0 -1
  87. package/packages/theme-chalk/src/menu.scss +3 -0
  88. package/packages/upload/src/main.vue +1 -1
  89. package/src/index.js +1 -4
  90. package/src/utils/util.js +58 -55
  91. package/lib/mainComp.js +0 -6817
  92. package/packages/mainComp/index.js +0 -5
  93. package/packages/mainComp/src/async-component/index.vue +0 -85
  94. package/packages/mainComp/src/main.vue +0 -1944
  95. package/packages/mainComp/src/message.vue +0 -239
  96. package/packages/mainComp/src/notice.vue +0 -152
  97. package/packages/mainComp/src/settings.vue +0 -105
  98. package/packages/mainComp/src/userinfo.vue +0 -430
package/lib/wxlogin.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 67);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 66);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -248,52 +248,54 @@ var ajax = function ajax(_ref) {
248
248
  if (response.data.rCode === 64 || response.data.rCode === 65 || response.data.rCode === 67 || response.data.rCode === 69) {
249
249
  removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
250
250
  if (win.top.location.href.indexOf('#/login') === -1 && win.top.location.href.indexOf('/login.html') === -1) {
251
- clearTimeout(loginMsg);
252
251
  var remind = sessionStorage.getItem('remind');
253
- !remind && (loginMsg = setTimeout(function () {
254
- sessionStorage.setItem('remind', 1);
255
- eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].confirm(response.data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', response.data.rCode === 69 ? {
256
- confirmButtonText: '确定',
257
- closeOnClickModal: false,
258
- type: 'warning'
259
- } : {
260
- confirmButtonText: '确定',
261
- cancelButtonText: '取消',
262
- closeOnClickModal: false,
263
- type: 'warning'
264
- }).then(function () {
265
- var loginPage = getStorage('login') || getStorage('loginPage');
266
- if (loginPage) {
267
- var src = void 0;
268
- if (!startWith(loginPage, ['http', '/'])) {
269
- var pathname = win.top.location.pathname;
270
- if (pathname !== '/') {
271
- pathname = pathname.split('/');
272
- pathname.splice(pathname.length - 1);
273
- pathname = pathname.join('/');
274
- src = pathname + '/' + loginPage.replace('./', '');
252
+ if (!remind) {
253
+ clearTimeout(loginMsg);
254
+ loginMsg = setTimeout(function () {
255
+ sessionStorage.setItem('remind', 1);
256
+ eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].confirm(response.data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', response.data.rCode === 69 ? {
257
+ confirmButtonText: '确定',
258
+ closeOnClickModal: false,
259
+ type: 'warning'
260
+ } : {
261
+ confirmButtonText: '确定',
262
+ cancelButtonText: '取消',
263
+ closeOnClickModal: false,
264
+ type: 'warning'
265
+ }).then(function () {
266
+ var loginPage = getStorage('login') || getStorage('loginPage');
267
+ if (loginPage) {
268
+ var src = void 0;
269
+ if (!startWith(loginPage, ['http', '/'], true)) {
270
+ var pathname = win.top.location.pathname;
271
+ if (pathname !== '/') {
272
+ pathname = pathname.split('/');
273
+ pathname.splice(pathname.length - 1);
274
+ pathname = pathname.join('/');
275
+ src = pathname + '/' + loginPage.replace('./', '');
276
+ } else {
277
+ src = pathname + loginPage.replace('./', '');
278
+ }
275
279
  } else {
276
- src = pathname + loginPage.replace('./', '');
280
+ src = loginPage;
277
281
  }
282
+ win.top.location.href = src;
283
+ } else if (win.top.location.href.indexOf('main.html') > -1) {
284
+ win.top.location.href = './login.html';
278
285
  } else {
279
- src = loginPage;
280
- }
281
- win.top.location.href = src;
282
- } else if (win.top.location.href.indexOf('main.html') > -1) {
283
- win.top.location.href = './login.html';
284
- } else {
285
- var hash = win.top.location.hash;
286
- if (hash) {
287
- var len = win.top.location.href.indexOf(hash);
288
- win.top.location.href = win.location.href.slice(0, len) + '#/login';
289
- } else {
290
- win.top.location.href = '/login.html';
286
+ var hash = win.top.location.hash;
287
+ if (hash) {
288
+ var len = win.top.location.href.indexOf(hash);
289
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
290
+ } else {
291
+ win.top.location.href = '/login.html';
292
+ }
291
293
  }
292
- }
293
- }).catch(function (e) {
294
- sessionStorage.removeItem('remind');
295
- });
296
- }, 1000));
294
+ }).catch(function (e) {
295
+ sessionStorage.removeItem('remind');
296
+ });
297
+ }, 2000);
298
+ }
297
299
  }
298
300
  } else if (response.data.rCode === 61) {
299
301
  clearTimeout(initAuth);
@@ -2082,7 +2084,7 @@ var setStorage = function setStorage(_ref14) {
2082
2084
  * @param {boolean} [or] - 或者(等同于||)
2083
2085
  **/
2084
2086
  var startWith = function startWith(value, reg) {
2085
- var or = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
2087
+ var or = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
2086
2088
 
2087
2089
  if (Array.isArray(reg)) {
2088
2090
  var flag = true;
@@ -2862,7 +2864,7 @@ module.exports = require("json-bigint");
2862
2864
 
2863
2865
  /***/ }),
2864
2866
 
2865
- /***/ 67:
2867
+ /***/ 66:
2866
2868
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2867
2869
 
2868
2870
  "use strict";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.4.61",
3
+ "version": "0.4.63",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -93,7 +93,7 @@
93
93
  "cp-cli": "^1.0.2",
94
94
  "cross-env": "^3.1.3",
95
95
  "css-loader": "^2.1.0",
96
- "eoss-element": "^0.2.66",
96
+ "eoss-element": "^0.2.68",
97
97
  "es6-promise": "^4.0.5",
98
98
  "eslint": "4.18.2",
99
99
  "eslint-config-elemefe": "0.1.1",
@@ -169,33 +169,24 @@ export default {
169
169
  return this.options ? this.options : this.data;
170
170
  },
171
171
  labelVal() {
172
- if (typeof this.model === 'string') {
172
+ let model =
173
+ typeof this.model === 'string' ? this.model.split(',') : this.model;
174
+ let label = model.map((item) => {
175
+ if (util.isObject(item)) {
176
+ return item[this.label];
177
+ }
173
178
  if (util.isObject(this.results[0])) {
174
- return this.results.map((item) => {
175
- if (item[this.valueKey] === this.model) {
176
- return item[this.label] || this.model;
177
- }
178
- });
179
+ return this.results
180
+ .map((ele) => {
181
+ if (ele[this.valueKey] === item) {
182
+ return ele[this.label];
183
+ }
184
+ })
185
+ .join(' ');
179
186
  }
180
- return this.model;
181
- } else {
182
- let label = this.model.map((item) => {
183
- if (util.isObject(item)) {
184
- return item[this.label];
185
- }
186
- if (util.isObject(this.results[0])) {
187
- return this.results
188
- .map((ele) => {
189
- if (ele[this.valueKey] === item) {
190
- return ele[this.label];
191
- }
192
- })
193
- .join(' ');
194
- }
195
- return item;
196
- });
197
- return label.join(' ');
198
- }
187
+ return item;
188
+ });
189
+ return label.join(' ');
199
190
  }
200
191
  },
201
192
  watch: {
@@ -64,7 +64,7 @@
64
64
  <el-form-item
65
65
  :name="name"
66
66
  :prop="item.field"
67
- :rules="item.rules"
67
+ :rules="isNotRule(item, scope) ? [] : item.rules"
68
68
  :index="scope.$index"
69
69
  v-else
70
70
  >
@@ -587,6 +587,9 @@ export default {
587
587
  }
588
588
  },
589
589
  inject: {
590
+ elForm: {
591
+ default: ''
592
+ },
590
593
  tableReload: {
591
594
  default: ''
592
595
  }
@@ -798,6 +801,17 @@ export default {
798
801
  item.readonly
799
802
  );
800
803
  },
804
+ isNotRule(item, scope) {
805
+ if (
806
+ scope.row.canRule === false ||
807
+ (scope.row.notRules &&
808
+ scope.row.notRules.indexOf(item.field || item.prop) > -1)
809
+ ) {
810
+ this.elForm && this.elForm.clearValidate(item.field || item.prop);
811
+ return true;
812
+ }
813
+ return false;
814
+ },
801
815
  handleBlur(data) {
802
816
  let { item } = data;
803
817
  item.events && item.events.blur && item.events.blur(data);
@@ -27,7 +27,7 @@
27
27
  cancel: hanleCancel
28
28
  }"
29
29
  ></es-toolbar>
30
- <p v-if="title" class="es-table-title" v-html="title"></p>
30
+ <p v-if="title" ref="title" class="es-table-title" v-html="title"></p>
31
31
  <div
32
32
  style="styles"
33
33
  class="es-data-table-content"
@@ -43,7 +43,10 @@
43
43
  showSummary: showTotal,
44
44
  sumText: sumText || totalText,
45
45
  totalRow: restotalRow || totalRow,
46
- height: tableHeight !== 'auto' ? tableHeight : undefined,
46
+ height:
47
+ tableHeight !== 'auto' && tableHeight !== false
48
+ ? tableHeight
49
+ : undefined,
47
50
  border: border
48
51
  }"
49
52
  v-on="{
@@ -515,7 +518,11 @@ export default {
515
518
  scale: {
516
519
  deep: true,
517
520
  handler(val) {
518
- if (this.tableHeight != 'auto' && this.display) {
521
+ if (
522
+ this.tableHeight != 'auto' &&
523
+ this.tableHeight !== false &&
524
+ this.display
525
+ ) {
519
526
  this.resetHeight();
520
527
  this.doLayout();
521
528
  }
@@ -523,7 +530,11 @@ export default {
523
530
  },
524
531
  zoom: {
525
532
  handler(val) {
526
- if (this.tableHeight != 'auto' && this.display) {
533
+ if (
534
+ this.tableHeight != 'auto' &&
535
+ this.tableHeight !== false &&
536
+ this.display
537
+ ) {
527
538
  this.resetHeight();
528
539
  this.doLayout();
529
540
  }
@@ -797,12 +808,14 @@ export default {
797
808
  });
798
809
  } else {
799
810
  this.list = [];
811
+ this.tableHeight = false;
800
812
  let msg = res.msg || '系统错误,请联系管理员!';
801
813
  this.$message.error(msg);
802
814
  }
803
815
  this.$emit('success', res);
804
816
  })
805
817
  .catch((err) => {
818
+ this.tableHeight = false;
806
819
  if (err.message && err.message !== 'canceled') {
807
820
  this.$message.error(err.message);
808
821
  }
@@ -1194,51 +1207,49 @@ export default {
1194
1207
  }
1195
1208
  },
1196
1209
  resetHeight() {
1197
- this.$nextTick(() => {
1198
- if (this.full && !this.height && !this.maxHeight) {
1199
- let height =
1200
- this.$el.parentNode.offsetHeight -
1201
- parseInt(util.getStyle(this.$el.parentNode, 'paddingTop'), 10) -
1202
- parseInt(util.getStyle(this.$el.parentNode, 'paddingBottom'), 10);
1203
- for (let i = 0; i < this.$el.parentNode.childNodes.length; i++) {
1204
- let ele = this.$el.parentNode.childNodes[i];
1205
- if (ele !== this.$el) {
1206
- height -= ele.offsetHeight === undefined ? 0 : ele.offsetHeight;
1207
- }
1208
- }
1209
- for (let i = 0; i < this.$el.childNodes.length; i++) {
1210
- let ele = this.$el.childNodes[i];
1211
- if (ele !== this.$refs.esTableContent) {
1212
- height -= ele.offsetHeight === undefined ? 0 : ele.offsetHeight;
1213
- }
1214
- }
1215
- this.styles = { height: height + 'px' };
1216
- const loadingDom =
1217
- this.$refs.esTableContent.querySelector('.el-loading-mask');
1218
- for (
1219
- let i = 0;
1220
- i < this.$refs.esTableContent.childNodes.length;
1221
- i++
1222
- ) {
1223
- let ele = this.$refs.esTableContent.childNodes[i];
1224
- if (
1225
- ele !== this.$refs.oaTable.$el &&
1226
- (!loadingDom || ele !== loadingDom)
1227
- ) {
1228
- height -= ele.offsetHeight === undefined ? 0 : ele.offsetHeight;
1229
- }
1210
+ //this.$nextTick(() => {
1211
+ if (this.full && !this.height && !this.maxHeight) {
1212
+ let height =
1213
+ this.$el.parentNode.offsetHeight -
1214
+ parseInt(util.getStyle(this.$el.parentNode, 'padding-top'), 10) -
1215
+ parseInt(util.getStyle(this.$el.parentNode, 'padding-bottom'), 10);
1216
+ for (let i = 0; i < this.$el.parentNode.childNodes.length; i++) {
1217
+ let ele = this.$el.parentNode.childNodes[i];
1218
+ if (ele !== this.$el && ele.offsetHeight !== undefined) {
1219
+ height =
1220
+ height -
1221
+ ele.offsetHeight -
1222
+ parseInt(util.getStyle(ele, 'margin-top'), 10) -
1223
+ parseInt(util.getStyle(ele, 'margin-bottom'), 10);
1230
1224
  }
1231
- let pt = parseInt(
1232
- util.getStyle(this.$refs.esTableContent, 'paddingTop'),
1233
- 10
1234
- );
1235
- let pb = parseInt(
1236
- util.getStyle(this.$refs.esTableContent, 'paddingBottom'),
1237
- 10
1238
- );
1239
- this.tableHeight = height - pt - pb + (this.page ? 2 : 1) + 'px';
1240
1225
  }
1241
- });
1226
+ height -= this.showToolbar ? 45 : 0;
1227
+ height -= this.page === false ? 0 : 46;
1228
+ height -= this.title ? this.$refs.title.offsetHeight : 0;
1229
+ height -= parseInt(
1230
+ util.getStyle(this.$refs.esTableContent, 'padding-top'),
1231
+ 10
1232
+ );
1233
+ height -= parseInt(
1234
+ util.getStyle(this.$refs.esTableContent, 'padding-bottom'),
1235
+ 10
1236
+ );
1237
+ let emptyText = this.$refs.esTableContent.querySelector(
1238
+ '.el-table__empty-text'
1239
+ );
1240
+ let eht = 0;
1241
+ if (emptyText) {
1242
+ eht = emptyText.offsetHeight;
1243
+ let thead =
1244
+ this.$refs.esTableContent.querySelector('.el-table__header');
1245
+ thead && (eht += thead.offsetHeight);
1246
+ }
1247
+ if (height > 1 && height - eht > 1) {
1248
+ this.tableHeight = height;
1249
+ } else {
1250
+ console.warn(this.$el.parentNode, `获取不到高度!`);
1251
+ }
1252
+ }
1242
1253
  },
1243
1254
  validate(callback) {
1244
1255
  let form = this.elForm || this.$refs.esTableForm;
@@ -442,7 +442,6 @@ export default {
442
442
  newNextUser = `${item.stype}-${item.id}`;
443
443
  }
444
444
  });
445
- //console.log(options, newNextUser, 'newNextUser');
446
445
  this.infoList[type] = newNextUser;
447
446
  },
448
447
  getNodeType() {
@@ -42,12 +42,24 @@
42
42
  v-if="items.average"
43
43
  >
44
44
  <div class="es-tab-pane-main">
45
+ <es-flow-list
46
+ v-if="
47
+ item.type === 'flow-list' || item.type === 'flowList'
48
+ "
49
+ :businessId="businessId"
50
+ v-bind="
51
+ handleExclAttribute({
52
+ data: item,
53
+ attrs: ['events', 'visible', 'type']
54
+ })
55
+ "
56
+ :key="index"
57
+ v-on="item.events"
58
+ ></es-flow-list>
45
59
  <es-data-table
46
60
  v-if="
47
61
  item.type === 'data-table' ||
48
- item.type === 'dataTable' ||
49
- item.type === 'flow-list' ||
50
- item.type === 'flowList'
62
+ item.type === 'dataTable'
51
63
  "
52
64
  :appId="taskExamineAppId"
53
65
  v-bind="
@@ -59,10 +71,7 @@
59
71
  :class="{
60
72
  'es-flow-group-data-table':
61
73
  item.type === 'data-table' ||
62
- item.type === 'dataTable',
63
- 'es-flow-list':
64
- item.type === 'flow-list' ||
65
- item.type === 'flowList'
74
+ item.type === 'dataTable'
66
75
  }"
67
76
  :display="activeName === String(indexs)"
68
77
  v-on="item.events"
@@ -151,12 +160,22 @@
151
160
  :businessId.sync="businessId"
152
161
  v-on="{ ...item.events }"
153
162
  ></es-form>
163
+ <es-flow-list
164
+ v-if="
165
+ item.type === 'flow-list' || item.type === 'flowList'
166
+ "
167
+ :businessId="businessId"
168
+ v-bind="
169
+ handleExclAttribute({
170
+ data: item,
171
+ attrs: ['events', 'visible', 'type']
172
+ })
173
+ "
174
+ :key="index"
175
+ ></es-flow-list>
154
176
  <es-data-table
155
177
  v-if="
156
- item.type === 'data-table' ||
157
- item.type === 'dataTable' ||
158
- item.type === 'flow-list' ||
159
- item.type === 'flowList'
178
+ item.type === 'data-table' || item.type === 'dataTable'
160
179
  "
161
180
  :appId="taskExamineAppId"
162
181
  v-bind="
@@ -169,9 +188,7 @@
169
188
  :class="{
170
189
  'es-flow-group-data-table':
171
190
  item.type === 'data-table' ||
172
- item.type === 'dataTable',
173
- 'es-flow-list':
174
- item.type === 'flow-list' || item.type === 'flowList'
191
+ item.type === 'dataTable'
175
192
  }"
176
193
  :display="activeName === String(indexs)"
177
194
  v-on="item.events"
@@ -379,6 +396,7 @@
379
396
  @save="handleSave"
380
397
  :closeParent="closeParent"
381
398
  ></es-flow>
399
+ <slot></slot>
382
400
  </div>
383
401
  </template>
384
402
  <script>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div style="height:100%">
3
- <es-data-table :data="data" border style="width: 100%">
3
+ <es-data-table :toolbar="toolbar" :showFormBtn="false" :data="data" border style="width: 100%">
4
4
  <el-table-column type="index" align="center" label="序号" width="50">
5
5
  </el-table-column>
6
6
  <el-table-column
@@ -209,6 +209,10 @@ export default {
209
209
  hasAgent: {
210
210
  type: String,
211
211
  default: '1'
212
+ },
213
+ toolbar:{
214
+ type:Array,
215
+ default:() => []
212
216
  }
213
217
  },
214
218
  filters: {