eoss-ui 0.5.67 → 0.5.68

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.
@@ -4009,7 +4009,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4009
4009
  var config = {};
4010
4010
  if (this.selector) {
4011
4011
  tag = 'es-selector';
4012
- props = _extends({}, this.$attrs, { button: { type: this._type, size: this.size } });
4012
+ props = _extends({
4013
+ reset: true
4014
+ }, this.$attrs, {
4015
+ button: { type: this._type, size: this.size }
4016
+ });
4013
4017
  listeners = this.$listeners;
4014
4018
  } else if (this.upload) {
4015
4019
  tag = 'es-upload';
@@ -4201,8 +4205,8 @@ main.install = function (Vue) {
4201
4205
  };
4202
4206
 
4203
4207
  /* harmony default export */ var packages_button = (main);
4204
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button-group/src/main.vue?vue&type=template&id=1080b7f0&
4205
- var mainvue_type_template_id_1080b7f0_render = function () {
4208
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button-group/src/main.vue?vue&type=template&id=1a095074&
4209
+ var mainvue_type_template_id_1a095074_render = function () {
4206
4210
  var _vm = this
4207
4211
  var _h = _vm.$createElement
4208
4212
  var _c = _vm._self._c || _h
@@ -4219,16 +4223,27 @@ var mainvue_type_template_id_1080b7f0_render = function () {
4219
4223
  item.upload || (item.code && item.ownId)
4220
4224
  ? _c(
4221
4225
  "es-upload",
4222
- _vm._b(
4223
- { staticClass: "el-button" },
4224
- "es-upload",
4225
- Object.assign({}, item, {
4226
- method: "post",
4227
- btnSize: _vm.size,
4228
- showFileList: false,
4229
- selectType: item.type ? item.type : "",
4230
- }),
4231
- false
4226
+ _vm._g(
4227
+ _vm._b(
4228
+ { staticClass: "el-button" },
4229
+ "es-upload",
4230
+ Object.assign(
4231
+ {},
4232
+ _vm.exclAttribute({
4233
+ data: item,
4234
+ attrs: ["events"],
4235
+ }),
4236
+ _vm.parseProps(),
4237
+ {
4238
+ method: "post",
4239
+ btnSize: _vm.size,
4240
+ showFileList: false,
4241
+ selectType: item.type ? item.type : "",
4242
+ }
4243
+ ),
4244
+ false
4245
+ ),
4246
+ item.events
4232
4247
  )
4233
4248
  )
4234
4249
  : _c(
@@ -4287,6 +4302,7 @@ var mainvue_type_template_id_1080b7f0_render = function () {
4287
4302
  ? _c(
4288
4303
  "el-dropdown",
4289
4304
  {
4305
+ ref: "dropdown",
4290
4306
  attrs: { trigger: _vm.trigger },
4291
4307
  on: {
4292
4308
  command: _vm.handleCommand,
@@ -4320,19 +4336,99 @@ var mainvue_type_template_id_1080b7f0_render = function () {
4320
4336
  _vm._l(_vm.other, function (item, index) {
4321
4337
  return _c(
4322
4338
  "el-dropdown-item",
4323
- { key: index, attrs: { command: item } },
4339
+ {
4340
+ key: index,
4341
+ class: {
4342
+ "es-dropdown-padding": item.upload || item.selector,
4343
+ },
4344
+ attrs: { command: item },
4345
+ },
4324
4346
  [
4325
- item.icon ? _c("i", { class: item.icon }) : _vm._e(),
4326
- _vm._v(
4327
- _vm._s(
4328
- item.template
4329
- ? item.template(
4330
- Object.assign({}, _vm.data, { config: item })
4331
- )
4332
- : item.text
4333
- )
4334
- ),
4335
- ]
4347
+ item.upload || (item.code && item.ownId)
4348
+ ? _c(
4349
+ "es-upload",
4350
+ _vm._g(
4351
+ _vm._b(
4352
+ { staticClass: "es-dropdown-upload" },
4353
+ "es-upload",
4354
+ Object.assign(
4355
+ {},
4356
+ _vm.exclAttribute({
4357
+ data: item,
4358
+ attrs: ["events"],
4359
+ }),
4360
+ _vm.parseProps(),
4361
+ {
4362
+ method: "post",
4363
+ showFileList: false,
4364
+ selectType: "text",
4365
+ }
4366
+ ),
4367
+ false
4368
+ ),
4369
+ item.events
4370
+ )
4371
+ )
4372
+ : item.selector
4373
+ ? _c(
4374
+ "es-selector",
4375
+ _vm._g(
4376
+ _vm._b(
4377
+ {
4378
+ staticClass: "es-dropdown-selector",
4379
+ attrs: {
4380
+ button: { size: "medium", type: "text" },
4381
+ },
4382
+ },
4383
+ "es-selector",
4384
+ Object.assign(
4385
+ {},
4386
+ { reset: true },
4387
+ _vm.exclAttribute({
4388
+ data: item,
4389
+ attrs: ["events", "type", "value"],
4390
+ }),
4391
+ { businessData: _vm.data }
4392
+ ),
4393
+ false
4394
+ ),
4395
+ item.events
4396
+ ),
4397
+ [
4398
+ item.icon
4399
+ ? _c("i", { class: item.icon })
4400
+ : _vm._e(),
4401
+ _vm._v(
4402
+ _vm._s(
4403
+ item.template
4404
+ ? item.template(
4405
+ Object.assign({}, _vm.data, {
4406
+ config: item,
4407
+ })
4408
+ )
4409
+ : item.text
4410
+ ) + "\n "
4411
+ ),
4412
+ ]
4413
+ )
4414
+ : [
4415
+ item.icon
4416
+ ? _c("i", { class: item.icon })
4417
+ : _vm._e(),
4418
+ _vm._v(
4419
+ _vm._s(
4420
+ item.template
4421
+ ? item.template(
4422
+ Object.assign({}, _vm.data, {
4423
+ config: item,
4424
+ })
4425
+ )
4426
+ : item.text
4427
+ ) + "\n "
4428
+ ),
4429
+ ],
4430
+ ],
4431
+ 2
4336
4432
  )
4337
4433
  }),
4338
4434
  1
@@ -4345,11 +4441,11 @@ var mainvue_type_template_id_1080b7f0_render = function () {
4345
4441
  2
4346
4442
  )
4347
4443
  }
4348
- var mainvue_type_template_id_1080b7f0_staticRenderFns = []
4349
- mainvue_type_template_id_1080b7f0_render._withStripped = true
4444
+ var mainvue_type_template_id_1a095074_staticRenderFns = []
4445
+ mainvue_type_template_id_1a095074_render._withStripped = true
4350
4446
 
4351
4447
 
4352
- // CONCATENATED MODULE: ./packages/button-group/src/main.vue?vue&type=template&id=1080b7f0&
4448
+ // CONCATENATED MODULE: ./packages/button-group/src/main.vue?vue&type=template&id=1a095074&
4353
4449
 
4354
4450
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/button-group/src/main.vue?vue&type=script&lang=js&
4355
4451
  var mainvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
@@ -4427,6 +4523,53 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4427
4523
  //
4428
4524
  //
4429
4525
  //
4526
+ //
4527
+ //
4528
+ //
4529
+ //
4530
+ //
4531
+ //
4532
+ //
4533
+ //
4534
+ //
4535
+ //
4536
+ //
4537
+ //
4538
+ //
4539
+ //
4540
+ //
4541
+ //
4542
+ //
4543
+ //
4544
+ //
4545
+ //
4546
+ //
4547
+ //
4548
+ //
4549
+ //
4550
+ //
4551
+ //
4552
+ //
4553
+ //
4554
+ //
4555
+ //
4556
+ //
4557
+ //
4558
+ //
4559
+ //
4560
+ //
4561
+ //
4562
+ //
4563
+ //
4564
+ //
4565
+ //
4566
+ //
4567
+ //
4568
+ //
4569
+ //
4570
+ //
4571
+ //
4572
+ //
4430
4573
 
4431
4574
 
4432
4575
  /* harmony default export */ var button_group_src_mainvue_type_script_lang_js_ = ({
@@ -4460,7 +4603,8 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4460
4603
  placement: {
4461
4604
  type: String,
4462
4605
  default: 'bottom'
4463
- }
4606
+ },
4607
+ parseData: Function
4464
4608
  },
4465
4609
  computed: {
4466
4610
  btns: function btns() {
@@ -4524,6 +4668,10 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4524
4668
  this.$emit('handle-click', obj);
4525
4669
  },
4526
4670
  handleCommand: function handleCommand(res) {
4671
+ if (res.upload || res.selector) {
4672
+ this.$refs.dropdown.hide();
4673
+ return false;
4674
+ }
4527
4675
  this.$emit('handleClick', mainvue_type_script_lang_js_extends({}, this.data, { handle: res }));
4528
4676
  this.$emit('handle-click', mainvue_type_script_lang_js_extends({}, this.data, { handle: res }));
4529
4677
  },
@@ -4543,6 +4691,9 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4543
4691
  _this2.$emit('input', w + 'px');
4544
4692
  }
4545
4693
  });
4694
+ },
4695
+ parseProps: function parseProps() {
4696
+ return this.parseData && this.data ? this.parseData(this.data) : {};
4546
4697
  }
4547
4698
  }
4548
4699
  });
@@ -4558,8 +4709,8 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4558
4709
 
4559
4710
  var src_main_component = normalizeComponent(
4560
4711
  packages_button_group_src_mainvue_type_script_lang_js_,
4561
- mainvue_type_template_id_1080b7f0_render,
4562
- mainvue_type_template_id_1080b7f0_staticRenderFns,
4712
+ mainvue_type_template_id_1a095074_render,
4713
+ mainvue_type_template_id_1a095074_staticRenderFns,
4563
4714
  false,
4564
4715
  null,
4565
4716
  null,
@@ -4576,8 +4727,8 @@ src_main.install = function (Vue) {
4576
4727
  };
4577
4728
 
4578
4729
  /* harmony default export */ var button_group = (src_main);
4579
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/calendar/src/main.vue?vue&type=template&id=aa9b4086&
4580
- var mainvue_type_template_id_aa9b4086_render = function () {
4730
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/calendar/src/main.vue?vue&type=template&id=37892338&
4731
+ var mainvue_type_template_id_37892338_render = function () {
4581
4732
  var _vm = this
4582
4733
  var _h = _vm.$createElement
4583
4734
  var _c = _vm._self._c || _h
@@ -4647,7 +4798,7 @@ var mainvue_type_template_id_aa9b4086_render = function () {
4647
4798
  ),
4648
4799
  _c(
4649
4800
  "ul",
4650
- { staticClass: "es-calendar-days" },
4801
+ { staticClass: "es-calendar-days", style: { height: _vm._height } },
4651
4802
  _vm._l(_vm.lists, function (item, index) {
4652
4803
  return _c(
4653
4804
  "li",
@@ -4726,11 +4877,11 @@ var mainvue_type_template_id_aa9b4086_render = function () {
4726
4877
  ),
4727
4878
  ])
4728
4879
  }
4729
- var mainvue_type_template_id_aa9b4086_staticRenderFns = []
4730
- mainvue_type_template_id_aa9b4086_render._withStripped = true
4880
+ var mainvue_type_template_id_37892338_staticRenderFns = []
4881
+ mainvue_type_template_id_37892338_render._withStripped = true
4731
4882
 
4732
4883
 
4733
- // CONCATENATED MODULE: ./packages/calendar/src/main.vue?vue&type=template&id=aa9b4086&
4884
+ // CONCATENATED MODULE: ./packages/calendar/src/main.vue?vue&type=template&id=37892338&
4734
4885
 
4735
4886
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/calendar/src/main.vue?vue&type=script&lang=js&
4736
4887
  //
@@ -4815,7 +4966,8 @@ mainvue_type_template_id_aa9b4086_render._withStripped = true
4815
4966
  default: true
4816
4967
  },
4817
4968
  mark: Boolean,
4818
- disabled: Boolean
4969
+ disabled: Boolean,
4970
+ height: String
4819
4971
  },
4820
4972
  watch: {
4821
4973
  date: {
@@ -4850,6 +5002,9 @@ mainvue_type_template_id_aa9b4086_render._withStripped = true
4850
5002
  }
4851
5003
  }
4852
5004
  });
5005
+ },
5006
+ _height: function _height() {
5007
+ return this.height && this.all ? parseInt(this.height) + 'px' : '';
4853
5008
  }
4854
5009
  },
4855
5010
  data: function data() {
@@ -5155,8 +5310,8 @@ mainvue_type_template_id_aa9b4086_render._withStripped = true
5155
5310
 
5156
5311
  var calendar_src_main_component = normalizeComponent(
5157
5312
  packages_calendar_src_mainvue_type_script_lang_js_,
5158
- mainvue_type_template_id_aa9b4086_render,
5159
- mainvue_type_template_id_aa9b4086_staticRenderFns,
5313
+ mainvue_type_template_id_37892338_render,
5314
+ mainvue_type_template_id_37892338_staticRenderFns,
5160
5315
  false,
5161
5316
  null,
5162
5317
  null,
@@ -6870,8 +7025,8 @@ childrenvue_type_template_id_44b7ff61_render._withStripped = true
6870
7025
 
6871
7026
  // CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=44b7ff61&
6872
7027
 
6873
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/column.vue?vue&type=template&id=449ae3d7&
6874
- var columnvue_type_template_id_449ae3d7_render = function () {
7028
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/column.vue?vue&type=template&id=2dabb50c&
7029
+ var columnvue_type_template_id_2dabb50c_render = function () {
6875
7030
  var _vm = this
6876
7031
  var _h = _vm.$createElement
6877
7032
  var _c = _vm._self._c || _h
@@ -7589,11 +7744,11 @@ var columnvue_type_template_id_449ae3d7_render = function () {
7589
7744
  2
7590
7745
  )
7591
7746
  }
7592
- var columnvue_type_template_id_449ae3d7_staticRenderFns = []
7593
- columnvue_type_template_id_449ae3d7_render._withStripped = true
7747
+ var columnvue_type_template_id_2dabb50c_staticRenderFns = []
7748
+ columnvue_type_template_id_2dabb50c_render._withStripped = true
7594
7749
 
7595
7750
 
7596
- // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=449ae3d7&
7751
+ // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=2dabb50c&
7597
7752
 
7598
7753
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
7599
7754
  var regenerator_ = __webpack_require__(2);
@@ -8087,7 +8242,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
8087
8242
  width: [Number, String],
8088
8243
  minWidth: [Number, String],
8089
8244
  hide: Boolean,
8090
- showOverflowTooltip: Boolean,
8245
+ showOverflowTooltip: [Boolean, Number],
8091
8246
  render: [Function, String],
8092
8247
  contents: Array,
8093
8248
  events: [Array, Object],
@@ -8457,8 +8612,8 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
8457
8612
 
8458
8613
  var column_component = normalizeComponent(
8459
8614
  src_columnvue_type_script_lang_js_,
8460
- columnvue_type_template_id_449ae3d7_render,
8461
- columnvue_type_template_id_449ae3d7_staticRenderFns,
8615
+ columnvue_type_template_id_2dabb50c_render,
8616
+ columnvue_type_template_id_2dabb50c_staticRenderFns,
8462
8617
  false,
8463
8618
  null,
8464
8619
  null,
@@ -13706,8 +13861,8 @@ error_page_src_main.install = function (Vue) {
13706
13861
  };
13707
13862
 
13708
13863
  /* harmony default export */ var error_page = (error_page_src_main);
13709
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=55faec94&
13710
- var mainvue_type_template_id_55faec94_render = function () {
13864
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=5a2c9b21&
13865
+ var mainvue_type_template_id_5a2c9b21_render = function () {
13711
13866
  var _vm = this
13712
13867
  var _h = _vm.$createElement
13713
13868
  var _c = _vm._self._c || _h
@@ -25163,11 +25318,11 @@ var mainvue_type_template_id_55faec94_render = function () {
25163
25318
  )
25164
25319
  : _vm._e()
25165
25320
  }
25166
- var mainvue_type_template_id_55faec94_staticRenderFns = []
25167
- mainvue_type_template_id_55faec94_render._withStripped = true
25321
+ var mainvue_type_template_id_5a2c9b21_staticRenderFns = []
25322
+ mainvue_type_template_id_5a2c9b21_render._withStripped = true
25168
25323
 
25169
25324
 
25170
- // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=55faec94&
25325
+ // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=5a2c9b21&
25171
25326
 
25172
25327
  // CONCATENATED MODULE: ./src/utils/rules.js
25173
25328
  // 手机号
@@ -29378,7 +29533,8 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
29378
29533
  default: function _default() {
29379
29534
  return {};
29380
29535
  }
29381
- }
29536
+ },
29537
+ active: Array
29382
29538
  },
29383
29539
  data: function data() {
29384
29540
  return {
@@ -29575,7 +29731,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
29575
29731
  if (index === 0) {
29576
29732
  names = item.name || String(index);
29577
29733
  }
29578
- } else {
29734
+ } else if (item.active !== false) {
29579
29735
  names.push(item.name || String(index));
29580
29736
  }
29581
29737
  } else {
@@ -29584,7 +29740,9 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
29584
29740
  contents.push(item);
29585
29741
  }
29586
29742
  });
29587
- this.activeNames = names;
29743
+ if (!this.active || this.active && !this.active.length) {
29744
+ this.activeNames = names;
29745
+ }
29588
29746
  this.content = contents;
29589
29747
  if (this.content.length === 1) {
29590
29748
  if (Object.prototype.hasOwnProperty.call(this.content[0], 'title') && Object.prototype.hasOwnProperty.call(this.content[0], 'contents')) {
@@ -29658,6 +29816,16 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
29658
29816
  },
29659
29817
  readonly: function readonly() {
29660
29818
  !this.height && this.getHeight();
29819
+ },
29820
+
29821
+ active: {
29822
+ immediate: true,
29823
+ deep: true,
29824
+ handler: function handler(val) {
29825
+ if (val && val.length) {
29826
+ this.activeNames = val;
29827
+ }
29828
+ }
29661
29829
  }
29662
29830
  },
29663
29831
  created: function created() {
@@ -29747,7 +29915,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
29747
29915
  if (index === 0) {
29748
29916
  names = item.name || String(index);
29749
29917
  }
29750
- } else {
29918
+ } else if (item.active !== false) {
29751
29919
  names.push(item.name || String(index));
29752
29920
  }
29753
29921
  } else {
@@ -29756,7 +29924,9 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
29756
29924
  contents.push(utils_util["a" /* default */].extend({}, item));
29757
29925
  }
29758
29926
  });
29759
- this.activeNames = names;
29927
+ if (!this.active || this.active && !this.active.length) {
29928
+ this.activeNames = names;
29929
+ }
29760
29930
  this.content = contents;
29761
29931
  if (this.content.length === 1 && (this.content[0].type === 'text' || this.content[0].type === 'textarea' || this.content[0].type === undefined || Object.prototype.hasOwnProperty.call(this.content[0], 'title') && Object.prototype.hasOwnProperty.call(this.content[0], 'contents') && this.content[0].contents.length === 1 && (this.content[0].contents[0].type === 'text' || this.content[0].contents[0].type === 'textarea' || this.content[0].contents[0].type === undefined))) {
29762
29932
  this.forbid = true;
@@ -30465,8 +30635,8 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
30465
30635
 
30466
30636
  var form_src_main_component = normalizeComponent(
30467
30637
  packages_form_src_mainvue_type_script_lang_js_,
30468
- mainvue_type_template_id_55faec94_render,
30469
- mainvue_type_template_id_55faec94_staticRenderFns,
30638
+ mainvue_type_template_id_5a2c9b21_render,
30639
+ mainvue_type_template_id_5a2c9b21_staticRenderFns,
30470
30640
  false,
30471
30641
  null,
30472
30642
  null,
@@ -47212,8 +47382,8 @@ layout_src_main.install = function (Vue) {
47212
47382
  };
47213
47383
 
47214
47384
  /* harmony default export */ var layout = (layout_src_main);
47215
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=b795be2e&
47216
- var mainvue_type_template_id_b795be2e_render = function () {
47385
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=c5d4acd0&
47386
+ var mainvue_type_template_id_c5d4acd0_render = function () {
47217
47387
  var _vm = this
47218
47388
  var _h = _vm.$createElement
47219
47389
  var _c = _vm._self._c || _h
@@ -47222,15 +47392,13 @@ var mainvue_type_template_id_b795be2e_render = function () {
47222
47392
  "div",
47223
47393
  {
47224
47394
  staticClass: "es-login-screen",
47225
- style: {
47226
- "background-image": _vm.getImgUrl(_vm.loginBackgroundUrl),
47227
- },
47395
+ style: _vm.getBackground(_vm.loginBackgroundImg),
47228
47396
  },
47229
47397
  [
47230
- _vm.loginLogoUrl
47398
+ _vm.loginLogoImg
47231
47399
  ? _c("img", {
47232
47400
  staticClass: "es-login-logo",
47233
- attrs: { src: _vm.loginLogoUrl },
47401
+ attrs: { src: _vm.loginLogoImg },
47234
47402
  })
47235
47403
  : _vm._e(),
47236
47404
  _vm._t("default"),
@@ -47256,26 +47424,24 @@ var mainvue_type_template_id_b795be2e_render = function () {
47256
47424
  },
47257
47425
  },
47258
47426
  [
47259
- _vm.loginNameUrl
47427
+ _vm.loginNameImg
47260
47428
  ? _c("img", {
47261
47429
  staticClass: "es-login-name",
47262
- attrs: { src: _vm.loginNameUrl },
47430
+ attrs: { src: _vm.loginNameImg },
47263
47431
  })
47264
47432
  : _vm._e(),
47265
47433
  _c(
47266
47434
  "div",
47267
47435
  {
47268
47436
  staticClass: "es-login-main",
47269
- style: {
47270
- "background-image": _vm.getImgUrl(_vm.loginImageUrl),
47271
- },
47437
+ style: _vm.getBackground(_vm.loginMainImg),
47272
47438
  },
47273
47439
  [
47274
- _vm.loginTitleUrl
47440
+ _vm.loginTitleImg
47275
47441
  ? _c("div", { staticClass: "es-login-title-image" }, [
47276
47442
  _c("img", {
47277
47443
  staticClass: "es-login-title-img",
47278
- attrs: { src: _vm.loginTitleUrl },
47444
+ attrs: { src: _vm.loginTitleImg },
47279
47445
  }),
47280
47446
  ])
47281
47447
  : _vm._e(),
@@ -47332,7 +47498,7 @@ var mainvue_type_template_id_b795be2e_render = function () {
47332
47498
  attrs: { model: _vm.formData },
47333
47499
  },
47334
47500
  [
47335
- !_vm.loginTitleUrl
47501
+ !_vm.loginTitleImg
47336
47502
  ? _c(
47337
47503
  "div",
47338
47504
  { staticClass: "es-login-title" },
@@ -47643,7 +47809,7 @@ var mainvue_type_template_id_b795be2e_render = function () {
47643
47809
  "div",
47644
47810
  { staticClass: "es-login-qrcode" },
47645
47811
  [
47646
- !_vm.loginTitleUrl
47812
+ !_vm.loginTitleImg
47647
47813
  ? _c(
47648
47814
  "div",
47649
47815
  { staticClass: "es-login-title" },
@@ -47770,7 +47936,7 @@ var mainvue_type_template_id_b795be2e_render = function () {
47770
47936
  attrs: { model: _vm.formData },
47771
47937
  },
47772
47938
  [
47773
- !_vm.loginTitleUrl
47939
+ !_vm.loginTitleImg
47774
47940
  ? _c(
47775
47941
  "div",
47776
47942
  { staticClass: "es-login-title" },
@@ -48132,11 +48298,11 @@ var mainvue_type_template_id_b795be2e_render = function () {
48132
48298
  )
48133
48299
  : _vm._e()
48134
48300
  }
48135
- var mainvue_type_template_id_b795be2e_staticRenderFns = []
48136
- mainvue_type_template_id_b795be2e_render._withStripped = true
48301
+ var mainvue_type_template_id_c5d4acd0_staticRenderFns = []
48302
+ mainvue_type_template_id_c5d4acd0_render._withStripped = true
48137
48303
 
48138
48304
 
48139
- // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=b795be2e&
48305
+ // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=c5d4acd0&
48140
48306
 
48141
48307
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/resetPassword.vue?vue&type=template&id=28f463b9&
48142
48308
  var resetPasswordvue_type_template_id_28f463b9_render = function () {
@@ -49036,13 +49202,6 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
49036
49202
  //
49037
49203
  //
49038
49204
  //
49039
- //
49040
- //
49041
- //
49042
- //
49043
- //
49044
- //
49045
- //
49046
49205
 
49047
49206
 
49048
49207
 
@@ -49075,8 +49234,8 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
49075
49234
  return {};
49076
49235
  }
49077
49236
  },
49078
- loginBackground: [String, Array],
49079
- loginImage: [String, Array],
49237
+ loginBackground: [String, Array, Object],
49238
+ loginImage: [String, Array, Object],
49080
49239
  loginLogo: String,
49081
49240
  loginTitle: String,
49082
49241
  loginName: String,
@@ -49279,21 +49438,6 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
49279
49438
  return window.location.href || window.href;
49280
49439
  }
49281
49440
  },
49282
- loginBackgroundUrl: function loginBackgroundUrl() {
49283
- return this.loginBackground ? this.loginBackground : this.loginBackgroundImg;
49284
- },
49285
- loginImageUrl: function loginImageUrl() {
49286
- return this.loginImage ? this.loginImage : this.loginMainImg;
49287
- },
49288
- loginNameUrl: function loginNameUrl() {
49289
- return this.loginNameImg ? this.loginNameImg : this.loginName;
49290
- },
49291
- loginTitleUrl: function loginTitleUrl() {
49292
- return this.loginTitleImg ? this.loginTitleImg : this.loginTitle;
49293
- },
49294
- loginLogoUrl: function loginLogoUrl() {
49295
- return this.loginLogoImg ? this.loginLogoImg : this.loginLogo;
49296
- },
49297
49441
  warnInfo: function warnInfo() {
49298
49442
  return this.warning === false ? false : typeof this.warning === 'string' ? this.warning : '本系统为非涉密系统,禁止上传和处理任何涉密文件';
49299
49443
  },
@@ -49402,11 +49546,11 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
49402
49546
  data: function data() {
49403
49547
  return {
49404
49548
  align: this.position,
49405
- loginBackgroundImg: null,
49406
- loginMainImg: null,
49407
- loginNameImg: null,
49408
- loginTitleImg: null,
49409
- loginLogoImg: null,
49549
+ loginBackgroundImg: this.loginBackground,
49550
+ loginMainImg: this.loginImage,
49551
+ loginNameImg: this.loginName,
49552
+ loginTitleImg: this.loginTitle,
49553
+ loginLogoImg: this.loginLogo,
49410
49554
  loginModel: this.type,
49411
49555
  passModifyModel: null,
49412
49556
  active: 0,
@@ -49500,19 +49644,36 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
49500
49644
  }
49501
49645
  });
49502
49646
  },
49503
- getImgUrl: function getImgUrl(urls) {
49504
- var url = '';
49505
- if (!urls || !urls.length) {
49506
- return url;
49647
+ getBackground: function getBackground(res) {
49648
+ var style = {};
49649
+ if (!res || Array.isArray(res) && !res.length) {
49650
+ return style;
49507
49651
  }
49508
- if (Array.isArray(urls)) {
49509
- url = urls.map(function (item) {
49510
- return 'url(' + item + ')';
49511
- }).join(',');
49652
+ if (Array.isArray(res)) {
49653
+ var url = [];
49654
+ var image = [];
49655
+ res.forEach(function (item) {
49656
+ if (item.indexOf('url(') > -1) {
49657
+ url.push(item);
49658
+ } else {
49659
+ image.push('url(' + item + ')');
49660
+ }
49661
+ });
49662
+ if (url.length == res.length) {
49663
+ style = { background: url.join(',') };
49664
+ } else if (image.length == res.length) {
49665
+ style = { 'background-image': image.join(',') };
49666
+ } else {
49667
+ console.error('设置的样式不一致!');
49668
+ }
49669
+ } else if (utils_util["a" /* default */].isObject(res)) {
49670
+ style = res;
49671
+ } else if (res.indexOf('url(') > -1) {
49672
+ style = { background: res };
49512
49673
  } else {
49513
- url = 'url(' + urls + ')';
49674
+ style = { 'background-image': 'url(' + res + ')' };
49514
49675
  }
49515
- return url;
49676
+ return style;
49516
49677
  },
49517
49678
  getRemember: function getRemember(user) {
49518
49679
  var values = localStorage.getItem('unpd');
@@ -49676,8 +49837,12 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
49676
49837
  if (res.loginModel) {
49677
49838
  this.loginModel = res.loginModel;
49678
49839
  }
49679
- this.loginBackgroundImg = res.loginBackgroundUrl ? res.loginBackgroundUrl.split(',') : null;
49680
- this.loginLogoImg = res.loginLogoUrl ? res.loginLogoUrl : null;
49840
+ if (res.loginBackgroundUrl) {
49841
+ this.loginBackgroundImg = res.loginBackgroundUrl.split(',');
49842
+ }
49843
+ if (res.loginLogoUrl) {
49844
+ this.loginLogoImg = res.loginLogoUrl;
49845
+ }
49681
49846
  res.loginPage && sessionStorage.setItem('loginPage', res.loginPage);
49682
49847
  if (res.subsystemExtend && Object.keys(res.subsystemExtend).length) {
49683
49848
  this.icpInfo = res.subsystemExtend;
@@ -50160,8 +50325,8 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
50160
50325
 
50161
50326
  var login_src_main_component = normalizeComponent(
50162
50327
  packages_login_src_mainvue_type_script_lang_js_,
50163
- mainvue_type_template_id_b795be2e_render,
50164
- mainvue_type_template_id_b795be2e_staticRenderFns,
50328
+ mainvue_type_template_id_c5d4acd0_render,
50329
+ mainvue_type_template_id_c5d4acd0_staticRenderFns,
50165
50330
  false,
50166
50331
  null,
50167
50332
  null,
@@ -59203,126 +59368,96 @@ select_ganged_src_main.install = function (Vue) {
59203
59368
  };
59204
59369
 
59205
59370
  /* harmony default export */ var select_ganged = (select_ganged_src_main);
59206
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/main.vue?vue&type=template&id=19828fe9&
59207
- var mainvue_type_template_id_19828fe9_render = function () {
59371
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/main.vue?vue&type=template&id=bcfee2b4&
59372
+ var mainvue_type_template_id_bcfee2b4_render = function () {
59208
59373
  var _vm = this
59209
59374
  var _h = _vm.$createElement
59210
59375
  var _c = _vm._self._c || _h
59211
- return _c(
59212
- "div",
59213
- {
59214
- directives: [
59376
+ return _vm.isRender
59377
+ ? _c(
59378
+ "div",
59215
59379
  {
59216
- name: "clickoutside",
59217
- rawName: "v-clickoutside",
59218
- value: _vm.handleClose,
59219
- expression: "handleClose",
59380
+ directives: [
59381
+ {
59382
+ name: "clickoutside",
59383
+ rawName: "v-clickoutside",
59384
+ value: _vm.handleClose,
59385
+ expression: "handleClose",
59386
+ },
59387
+ ],
59388
+ ref: "esSelector",
59389
+ staticClass: "es-selector",
59390
+ class: { "es-pointer": !_vm.readonly && !_vm.filterable },
59220
59391
  },
59221
- ],
59222
- ref: "esSelector",
59223
- staticClass: "es-selector",
59224
- class: { "es-pointer": !_vm.readonly && !_vm.filterable },
59225
- },
59226
- [
59227
- _vm.button
59228
- ? _c(
59229
- "el-button",
59230
- _vm._b(
59231
- {
59232
- on: {
59233
- click: function ($event) {
59234
- $event.stopPropagation()
59235
- return _vm.openDialog($event)
59236
- },
59237
- },
59238
- },
59239
- "el-button",
59240
- _vm.button,
59241
- false
59242
- ),
59243
- [_vm._t("default", [_vm._v("选择")])],
59244
- 2
59245
- )
59246
- : [
59247
- _c(
59248
- "div",
59249
- {
59250
- class: [
59251
- _vm.selectorSize
59252
- ? "el-select--" + _vm.selectorSize
59253
- : "es-selector-box",
59254
- { "es-selector-search": _vm.filterable },
59255
- ],
59256
- on: {
59257
- click: function ($event) {
59258
- $event.stopPropagation()
59259
- return _vm.toggleMenu($event)
59260
- },
59261
- },
59262
- },
59263
- [
59264
- _vm.multiple
59265
- ? _c(
59266
- "div",
59267
- {
59268
- ref: "tags",
59269
- staticClass: "el-select__tags",
59270
- class: { "es-selector-edit": !_vm.readonly },
59392
+ [
59393
+ _vm.button
59394
+ ? _c(
59395
+ "el-button",
59396
+ _vm._b(
59397
+ { on: { click: _vm.openDialog } },
59398
+ "el-button",
59399
+ _vm.button,
59400
+ false
59401
+ ),
59402
+ [_vm._t("default", [_vm._v("选择")])],
59403
+ 2
59404
+ )
59405
+ : [
59406
+ _c(
59407
+ "div",
59408
+ {
59409
+ class: [
59410
+ _vm.selectorSize
59411
+ ? "el-select--" + _vm.selectorSize
59412
+ : "es-selector-box",
59413
+ { "es-selector-search": _vm.filterable },
59414
+ ],
59415
+ on: {
59416
+ click: function ($event) {
59417
+ $event.stopPropagation()
59418
+ return _vm.toggleMenu($event)
59271
59419
  },
59272
- [
59273
- _vm.collapseTags && _vm.selected.length
59274
- ? _c(
59275
- "div",
59276
- {
59277
- staticClass: "es-selector-tags",
59278
- class: {
59279
- "es-selector-more": _vm.selected.length > 1,
59280
- },
59281
- },
59282
- [
59283
- _c(
59284
- "el-tag",
59420
+ },
59421
+ },
59422
+ [
59423
+ _vm.multiple
59424
+ ? _c(
59425
+ "div",
59426
+ {
59427
+ ref: "tags",
59428
+ staticClass: "el-select__tags",
59429
+ class: { "es-selector-edit": !_vm.readonly },
59430
+ },
59431
+ [
59432
+ _vm.collapseTags && _vm.selected.length
59433
+ ? _c(
59434
+ "div",
59285
59435
  {
59286
- attrs: {
59287
- closable:
59288
- !_vm.selectorDisabled && !_vm.readonly,
59289
- type: "info",
59290
- "disable-transitions": "",
59291
- },
59292
- on: {
59293
- close: function ($event) {
59294
- _vm.deleteTag($event, _vm.selected[0])
59295
- },
59436
+ staticClass: "es-selector-tags",
59437
+ class: {
59438
+ "es-selector-more":
59439
+ _vm.selected.length > 1,
59296
59440
  },
59297
59441
  },
59298
59442
  [
59299
59443
  _c(
59300
- "span",
59301
- { staticClass: "el-select__tags-text" },
59302
- [
59303
- _vm._v(
59304
- "\n " +
59305
- _vm._s(
59306
- _vm.isObject(_vm.selected[0])
59307
- ? _vm.selected[0][_vm.labelKey]
59308
- : _vm.selected[0]
59309
- ) +
59310
- "\n "
59311
- ),
59312
- ]
59313
- ),
59314
- ]
59315
- ),
59316
- _vm.selected.length > 1
59317
- ? _c(
59318
59444
  "el-tag",
59319
59445
  {
59320
- staticClass: "es-tags-more",
59321
59446
  attrs: {
59322
- closable: false,
59447
+ closable:
59448
+ !_vm.selectorDisabled &&
59449
+ !_vm.readonly,
59323
59450
  type: "info",
59324
59451
  "disable-transitions": "",
59325
59452
  },
59453
+ on: {
59454
+ close: function ($event) {
59455
+ _vm.deleteTag(
59456
+ $event,
59457
+ _vm.selected[0]
59458
+ )
59459
+ },
59460
+ },
59326
59461
  },
59327
59462
  [
59328
59463
  _c(
@@ -59332,367 +59467,415 @@ var mainvue_type_template_id_19828fe9_render = function () {
59332
59467
  },
59333
59468
  [
59334
59469
  _vm._v(
59335
- "+ " +
59336
- _vm._s(_vm.selected.length - 1)
59470
+ "\n " +
59471
+ _vm._s(
59472
+ _vm.isObject(_vm.selected[0])
59473
+ ? _vm.selected[0][
59474
+ _vm.labelKey
59475
+ ]
59476
+ : _vm.selected[0]
59477
+ ) +
59478
+ "\n "
59337
59479
  ),
59338
59480
  ]
59339
59481
  ),
59340
59482
  ]
59341
- )
59342
- : _vm._e(),
59343
- ],
59344
- 1
59345
- )
59346
- : _vm._e(),
59347
- _c(
59348
- "transition-group",
59349
- { on: { "after-leave": _vm.resetInputHeight } },
59350
- _vm._l(_vm.selected, function (item, index) {
59351
- return _c(
59352
- "el-tag",
59353
- {
59354
- key: _vm.getValueKey(item),
59355
- attrs: {
59356
- closable:
59357
- !_vm.selectorDisabled && !_vm.readonly,
59358
- type: "info",
59359
- "disable-transitions": "",
59360
- },
59361
- on: {
59362
- close: function ($event) {
59363
- _vm.deleteTag($event, item, index)
59364
- },
59365
- },
59366
- },
59367
- [
59368
- _c(
59369
- "span",
59370
- { staticClass: "el-select__tags-text" },
59371
- [_vm._v(_vm._s(_vm.getLabel(item)))]
59372
- ),
59373
- ]
59374
- )
59375
- }),
59376
- 1
59377
- ),
59378
- ],
59379
- 1
59380
- )
59381
- : _vm._e(),
59382
- _vm.readonly
59383
- ? _c(
59384
- "div",
59385
- { ref: "reference", staticClass: "es-input__inner" },
59386
- [
59387
- !_vm.multiple
59388
- ? [_vm._v(_vm._s(_vm.selectedLabel))]
59389
- : _vm._e(),
59390
- ],
59391
- 2
59392
- )
59393
- : [
59394
- _vm.multiple
59395
- ? [
59396
- _c(
59397
- "el-input",
59398
- {
59399
- directives: [
59400
- {
59401
- name: "popover",
59402
- rawName: "v-popover:popover",
59403
- arg: "popover",
59404
- },
59405
- ],
59406
- ref: "reference",
59407
- class: {
59408
- "is-focus": _vm.visible,
59409
- "es-plain": _vm.plain,
59410
- "es-pointer": !_vm.filterable,
59411
- "es-zindex-2": _vm.focus,
59412
- },
59413
- attrs: {
59414
- type: "text",
59415
- autocomplete: "off",
59416
- readonly: _vm.filterable ? false : true,
59417
- id: _vm.id,
59418
- placeholder: _vm.currentPlaceholder,
59419
- size: _vm.selectorSize,
59420
- disabled: _vm.selectorDisabled,
59421
- tabindex: _vm.multiple ? "-1" : null,
59422
- },
59423
- on: {
59424
- focus: _vm.handleFocus,
59425
- blur: _vm.handleBlur,
59426
- },
59427
- nativeOn: {
59428
- dblclick: function ($event) {
59429
- return _vm.openDialog($event)
59430
- },
59431
- },
59432
- model: {
59433
- value: _vm.words,
59434
- callback: function ($$v) {
59435
- _vm.words = $$v
59436
- },
59437
- expression: "words",
59438
- },
59439
- },
59440
- [
59441
- _c(
59442
- "template",
59443
- { slot: "append" },
59444
- [
59445
- _vm.filterable || _vm.showButton
59483
+ ),
59484
+ _vm.selected.length > 1
59446
59485
  ? _c(
59447
- "el-button",
59486
+ "el-tag",
59448
59487
  {
59449
- ref: "openDialog",
59450
- on: {
59451
- click: function ($event) {
59452
- $event.stopPropagation()
59453
- return _vm.openDialog($event)
59454
- },
59488
+ staticClass: "es-tags-more",
59489
+ attrs: {
59490
+ closable: false,
59491
+ type: "info",
59492
+ "disable-transitions": "",
59455
59493
  },
59456
59494
  },
59457
- [_vm._t("default", [_vm._v("选择")])],
59458
- 2
59495
+ [
59496
+ _c(
59497
+ "span",
59498
+ {
59499
+ staticClass:
59500
+ "el-select__tags-text",
59501
+ },
59502
+ [
59503
+ _vm._v(
59504
+ "+ " +
59505
+ _vm._s(
59506
+ _vm.selected.length - 1
59507
+ )
59508
+ ),
59509
+ ]
59510
+ ),
59511
+ ]
59459
59512
  )
59460
59513
  : _vm._e(),
59461
59514
  ],
59462
59515
  1
59463
- ),
59464
- ],
59465
- 2
59516
+ )
59517
+ : _vm._e(),
59518
+ _c(
59519
+ "transition-group",
59520
+ { on: { "after-leave": _vm.resetInputHeight } },
59521
+ _vm._l(_vm.selected, function (item, index) {
59522
+ return _c(
59523
+ "el-tag",
59524
+ {
59525
+ key: _vm.getValueKey(item),
59526
+ attrs: {
59527
+ closable:
59528
+ !_vm.selectorDisabled && !_vm.readonly,
59529
+ type: "info",
59530
+ "disable-transitions": "",
59531
+ },
59532
+ on: {
59533
+ close: function ($event) {
59534
+ _vm.deleteTag($event, item, index)
59535
+ },
59536
+ },
59537
+ },
59538
+ [
59539
+ _c(
59540
+ "span",
59541
+ { staticClass: "el-select__tags-text" },
59542
+ [_vm._v(_vm._s(_vm.getLabel(item)))]
59543
+ ),
59544
+ ]
59545
+ )
59546
+ }),
59547
+ 1
59466
59548
  ),
59467
- _c("el-input", {
59468
- directives: [
59549
+ ],
59550
+ 1
59551
+ )
59552
+ : _vm._e(),
59553
+ _vm.readonly
59554
+ ? _c(
59555
+ "div",
59556
+ { ref: "reference", staticClass: "es-input__inner" },
59557
+ [
59558
+ !_vm.multiple
59559
+ ? [_vm._v(_vm._s(_vm.selectedLabel))]
59560
+ : _vm._e(),
59561
+ ],
59562
+ 2
59563
+ )
59564
+ : [
59565
+ _vm.multiple
59566
+ ? [
59567
+ _c(
59568
+ "el-input",
59569
+ {
59570
+ directives: [
59571
+ {
59572
+ name: "popover",
59573
+ rawName: "v-popover:popover",
59574
+ arg: "popover",
59575
+ },
59576
+ ],
59577
+ ref: "reference",
59578
+ class: {
59579
+ "is-focus": _vm.visible,
59580
+ "es-plain": _vm.plain,
59581
+ "es-pointer": !_vm.filterable,
59582
+ "es-zindex-2": _vm.focus,
59583
+ },
59584
+ attrs: {
59585
+ type: "text",
59586
+ autocomplete: "off",
59587
+ readonly: _vm.filterable ? false : true,
59588
+ id: _vm.id,
59589
+ placeholder: _vm.currentPlaceholder,
59590
+ size: _vm.selectorSize,
59591
+ disabled: _vm.selectorDisabled,
59592
+ tabindex: _vm.multiple ? "-1" : null,
59593
+ },
59594
+ on: {
59595
+ focus: _vm.handleFocus,
59596
+ blur: _vm.handleBlur,
59597
+ },
59598
+ nativeOn: {
59599
+ dblclick: function ($event) {
59600
+ return _vm.openDialog($event)
59601
+ },
59602
+ },
59603
+ model: {
59604
+ value: _vm.words,
59605
+ callback: function ($$v) {
59606
+ _vm.words = $$v
59607
+ },
59608
+ expression: "words",
59609
+ },
59610
+ },
59611
+ [
59612
+ _c(
59613
+ "template",
59614
+ { slot: "append" },
59615
+ [
59616
+ _vm.filterable || _vm.showButton
59617
+ ? _c(
59618
+ "el-button",
59619
+ {
59620
+ ref: "openDialog",
59621
+ on: {
59622
+ click: function ($event) {
59623
+ $event.stopPropagation()
59624
+ return _vm.openDialog(
59625
+ $event
59626
+ )
59627
+ },
59628
+ },
59629
+ },
59630
+ [
59631
+ _vm._t("default", [
59632
+ _vm._v("选择"),
59633
+ ]),
59634
+ ],
59635
+ 2
59636
+ )
59637
+ : _vm._e(),
59638
+ ],
59639
+ 1
59640
+ ),
59641
+ ],
59642
+ 2
59643
+ ),
59644
+ _c("el-input", {
59645
+ directives: [
59646
+ {
59647
+ name: "show",
59648
+ rawName: "v-show",
59649
+ value: false,
59650
+ expression: "false",
59651
+ },
59652
+ ],
59653
+ attrs: {
59654
+ readonly: "",
59655
+ name: _vm.name,
59656
+ type: "text",
59657
+ },
59658
+ model: {
59659
+ value: _vm.selectedLabel,
59660
+ callback: function ($$v) {
59661
+ _vm.selectedLabel = $$v
59662
+ },
59663
+ expression: "selectedLabel",
59664
+ },
59665
+ }),
59666
+ ]
59667
+ : _c(
59668
+ "el-input",
59469
59669
  {
59470
- name: "show",
59471
- rawName: "v-show",
59472
- value: false,
59473
- expression: "false",
59474
- },
59475
- ],
59476
- attrs: {
59477
- readonly: "",
59478
- name: _vm.name,
59479
- type: "text",
59480
- wqwq: "",
59481
- },
59482
- model: {
59483
- value: _vm.selectedLabel,
59484
- callback: function ($$v) {
59485
- _vm.selectedLabel = $$v
59486
- },
59487
- expression: "selectedLabel",
59488
- },
59489
- }),
59490
- ]
59491
- : _c(
59492
- "el-input",
59493
- {
59494
- ref: "reference",
59495
- class: {
59496
- "is-focus": _vm.visible,
59497
- "es-plain": this.plain,
59498
- "es-pointer": !_vm.filterable,
59499
- },
59500
- attrs: {
59501
- type: "text",
59502
- autocomplete: "off",
59503
- clearable: "clearable",
59504
- showClearIcon: "",
59505
- name: _vm.name,
59506
- readonly: _vm.filterable ? false : true,
59507
- active: _vm.actived,
59508
- id: _vm.id,
59509
- placeholder: _vm.currentPlaceholder,
59510
- size: _vm.selectorSize,
59511
- disabled: _vm.selectorDisabled,
59512
- tabindex: _vm.multiple ? "-1" : null,
59513
- },
59514
- on: { clear: _vm.handleClear },
59515
- nativeOn: {
59516
- dblclick: function ($event) {
59517
- return _vm.openDialog($event)
59518
- },
59519
- },
59520
- model: {
59521
- value: _vm.selectedLabel,
59522
- callback: function ($$v) {
59523
- _vm.selectedLabel = $$v
59670
+ ref: "reference",
59671
+ class: {
59672
+ "is-focus": _vm.visible,
59673
+ "es-plain": this.plain,
59674
+ "es-pointer": !_vm.filterable,
59675
+ },
59676
+ attrs: {
59677
+ type: "text",
59678
+ autocomplete: "off",
59679
+ clearable: "clearable",
59680
+ showClearIcon: "",
59681
+ name: _vm.name,
59682
+ readonly: _vm.filterable ? false : true,
59683
+ active: _vm.actived,
59684
+ id: _vm.id,
59685
+ placeholder: _vm.currentPlaceholder,
59686
+ size: _vm.selectorSize,
59687
+ disabled: _vm.selectorDisabled,
59688
+ tabindex: _vm.multiple ? "-1" : null,
59689
+ },
59690
+ on: { clear: _vm.handleClear },
59691
+ nativeOn: {
59692
+ dblclick: function ($event) {
59693
+ return _vm.openDialog($event)
59694
+ },
59695
+ },
59696
+ model: {
59697
+ value: _vm.selectedLabel,
59698
+ callback: function ($$v) {
59699
+ _vm.selectedLabel = $$v
59700
+ },
59701
+ expression: "selectedLabel",
59702
+ },
59524
59703
  },
59525
- expression: "selectedLabel",
59526
- },
59527
- },
59528
- [
59529
- _c(
59530
- "template",
59531
- { slot: "append" },
59532
59704
  [
59533
- _vm.filterable || _vm.showButton
59534
- ? _c(
59535
- "el-button",
59536
- {
59537
- ref: "openDialog",
59538
- on: {
59539
- click: function ($event) {
59540
- $event.stopPropagation()
59541
- return _vm.openDialog($event)
59705
+ _c(
59706
+ "template",
59707
+ { slot: "append" },
59708
+ [
59709
+ _vm.filterable || _vm.showButton
59710
+ ? _c(
59711
+ "el-button",
59712
+ {
59713
+ ref: "openDialog",
59714
+ on: {
59715
+ click: function ($event) {
59716
+ $event.stopPropagation()
59717
+ return _vm.openDialog($event)
59718
+ },
59719
+ },
59542
59720
  },
59543
- },
59544
- },
59545
- [_vm._t("default", [_vm._v("选择")])],
59546
- 2
59547
- )
59548
- : _vm._e(),
59721
+ [
59722
+ _vm._t("default", [
59723
+ _vm._v("选择"),
59724
+ ]),
59725
+ ],
59726
+ 2
59727
+ )
59728
+ : _vm._e(),
59729
+ ],
59730
+ 1
59731
+ ),
59549
59732
  ],
59550
- 1
59733
+ 2
59551
59734
  ),
59552
- ],
59553
- 2
59554
- ),
59555
- ],
59556
- ],
59557
- 2
59558
- ),
59559
- _c(
59560
- "el-popover",
59561
- {
59562
- attrs: {
59563
- placement: "bottom-start",
59564
- trigger: "manual",
59565
- "popper-class": "es-selector-popover",
59566
- width: _vm.minWidth,
59567
- queryParent: true,
59568
- reference: _vm.reference,
59569
- "arrow-offset": 20,
59570
- },
59571
- model: {
59572
- value: _vm.show,
59573
- callback: function ($$v) {
59574
- _vm.show = $$v
59575
- },
59576
- expression: "show",
59577
- },
59578
- },
59579
- [
59735
+ ],
59736
+ ],
59737
+ 2
59738
+ ),
59580
59739
  _c(
59581
- "el-scrollbar",
59740
+ "el-popover",
59582
59741
  {
59583
- directives: [
59584
- {
59585
- name: "show",
59586
- rawName: "v-show",
59587
- value: _vm.options.length,
59588
- expression: "options.length",
59589
- },
59590
- ],
59591
- ref: "scrollbar",
59592
59742
  attrs: {
59593
- tag: "ul",
59594
- "wrap-class": "es-selector-dropdown__wrap",
59595
- "view-class": "es-selector-dropdown__list",
59596
- maxHeight: "228",
59743
+ placement: "bottom-start",
59744
+ trigger: "manual",
59745
+ "popper-class": "es-selector-popover",
59746
+ width: _vm.minWidth,
59747
+ queryParent: true,
59748
+ reference: _vm.reference,
59749
+ "arrow-offset": 20,
59750
+ },
59751
+ model: {
59752
+ value: _vm.show,
59753
+ callback: function ($$v) {
59754
+ _vm.show = $$v
59755
+ },
59756
+ expression: "show",
59597
59757
  },
59598
59758
  },
59599
- _vm._l(_vm.options, function (item) {
59600
- return _c(
59601
- "li",
59759
+ [
59760
+ _c(
59761
+ "el-scrollbar",
59602
59762
  {
59603
- key: item.id,
59604
- staticClass: "es-selector-dropdown-item",
59605
- class: { "es-selected": item.selected },
59606
- on: {
59607
- click: function ($event) {
59608
- _vm.handleSelect(item)
59763
+ directives: [
59764
+ {
59765
+ name: "show",
59766
+ rawName: "v-show",
59767
+ value: _vm.options.length,
59768
+ expression: "options.length",
59609
59769
  },
59770
+ ],
59771
+ ref: "scrollbar",
59772
+ attrs: {
59773
+ tag: "ul",
59774
+ "wrap-class": "es-selector-dropdown__wrap",
59775
+ "view-class": "es-selector-dropdown__list",
59776
+ maxHeight: "228",
59610
59777
  },
59611
59778
  },
59612
- [_c("span", [_vm._v(_vm._s(item[_vm.labelKey]))])]
59613
- )
59614
- }),
59615
- 0
59779
+ _vm._l(_vm.options, function (item) {
59780
+ return _c(
59781
+ "li",
59782
+ {
59783
+ key: item.id,
59784
+ staticClass: "es-selector-dropdown-item",
59785
+ class: { "es-selected": item.selected },
59786
+ on: {
59787
+ click: function ($event) {
59788
+ _vm.handleSelect(item)
59789
+ },
59790
+ },
59791
+ },
59792
+ [_c("span", [_vm._v(_vm._s(item[_vm.labelKey]))])]
59793
+ )
59794
+ }),
59795
+ 0
59796
+ ),
59797
+ _vm.options.length == 0
59798
+ ? _c("p", { staticClass: "el-select-dropdown__empty" }, [
59799
+ _vm._v(
59800
+ "\n " + _vm._s(_vm.noMatchText) + "\n "
59801
+ ),
59802
+ ])
59803
+ : _vm._e(),
59804
+ ],
59805
+ 1
59616
59806
  ),
59617
- _vm.options.length == 0
59618
- ? _c("p", { staticClass: "el-select-dropdown__empty" }, [
59619
- _vm._v(
59620
- "\n " + _vm._s(_vm.noMatchText) + "\n "
59621
- ),
59622
- ])
59623
- : _vm._e(),
59624
59807
  ],
59625
- 1
59626
- ),
59627
- ],
59628
- !_vm.readonly
59629
- ? _c(
59630
- "es-dialog",
59631
- {
59632
- staticClass: "es-selector-dialog",
59633
- attrs: {
59634
- title: _vm.title,
59635
- visible: _vm.visible,
59636
- width: _vm.width,
59637
- css: false,
59638
- "append-to-body": true,
59639
- "close-on-click-modal": false,
59640
- },
59641
- on: {
59642
- "update:visible": function ($event) {
59643
- _vm.visible = $event
59644
- },
59645
- },
59646
- },
59647
- [
59648
- _c(
59649
- "es-selector-panel",
59650
- _vm._b(
59651
- {
59652
- attrs: {
59653
- multiple: _vm.multiple,
59654
- width: "100%",
59655
- height: "100%",
59656
- "value-key": _vm.valueKey,
59657
- "label-key": _vm.labelKey,
59658
- host: _vm.host,
59659
- type: _vm.types,
59660
- mix: _vm.mix,
59661
- isShowLevel3: _vm.isShowLevel3,
59662
- },
59663
- on: {
59664
- "!click": function ($event) {
59665
- return _vm.stopd($event)
59666
- },
59667
- confirm: _vm.handleConfirm,
59668
- cancel: _vm.handleCancel,
59669
- },
59670
- model: {
59671
- value: _vm.selected,
59672
- callback: function ($$v) {
59673
- _vm.selected = $$v
59674
- },
59675
- expression: "selected",
59808
+ !_vm.readonly
59809
+ ? _c(
59810
+ "es-dialog",
59811
+ {
59812
+ staticClass: "es-selector-dialog",
59813
+ attrs: {
59814
+ title: _vm.title,
59815
+ visible: _vm.visible,
59816
+ width: _vm.width,
59817
+ css: false,
59818
+ "append-to-body": true,
59819
+ "close-on-click-modal": false,
59820
+ },
59821
+ on: {
59822
+ "update:visible": function ($event) {
59823
+ _vm.visible = $event
59676
59824
  },
59677
59825
  },
59678
- "es-selector-panel",
59679
- _vm.$attrs,
59680
- false
59681
- )
59682
- ),
59683
- ],
59684
- 1
59685
- )
59686
- : _vm._e(),
59687
- ],
59688
- 2
59689
- )
59826
+ },
59827
+ [
59828
+ _vm.isReset
59829
+ ? _c(
59830
+ "es-selector-panel",
59831
+ _vm._b(
59832
+ {
59833
+ attrs: {
59834
+ multiple: _vm.multiple,
59835
+ width: "100%",
59836
+ height: "100%",
59837
+ "value-key": _vm.valueKey,
59838
+ "label-key": _vm.labelKey,
59839
+ host: _vm.host,
59840
+ type: _vm.types,
59841
+ mix: _vm.mix,
59842
+ isShowLevel3: _vm.isShowLevel3,
59843
+ },
59844
+ on: {
59845
+ "!click": function ($event) {
59846
+ return _vm.stopd($event)
59847
+ },
59848
+ confirm: _vm.handleConfirm,
59849
+ cancel: _vm.handleCancel,
59850
+ },
59851
+ model: {
59852
+ value: _vm.selected,
59853
+ callback: function ($$v) {
59854
+ _vm.selected = $$v
59855
+ },
59856
+ expression: "selected",
59857
+ },
59858
+ },
59859
+ "es-selector-panel",
59860
+ _vm.$attrs,
59861
+ false
59862
+ )
59863
+ )
59864
+ : _vm._e(),
59865
+ ],
59866
+ 1
59867
+ )
59868
+ : _vm._e(),
59869
+ ],
59870
+ 2
59871
+ )
59872
+ : _vm._e()
59690
59873
  }
59691
- var mainvue_type_template_id_19828fe9_staticRenderFns = []
59692
- mainvue_type_template_id_19828fe9_render._withStripped = true
59874
+ var mainvue_type_template_id_bcfee2b4_staticRenderFns = []
59875
+ mainvue_type_template_id_bcfee2b4_render._withStripped = true
59693
59876
 
59694
59877
 
59695
- // CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=19828fe9&
59878
+ // CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=bcfee2b4&
59696
59879
 
59697
59880
  // EXTERNAL MODULE: external "eoss-element/src/utils/clickoutside"
59698
59881
  var clickoutside_ = __webpack_require__(18);
@@ -59907,6 +60090,7 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
59907
60090
  //
59908
60091
  //
59909
60092
  //
60093
+ //
59910
60094
 
59911
60095
 
59912
60096
 
@@ -60030,6 +60214,13 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
60030
60214
  emptySerach: {
60031
60215
  type: Boolean,
60032
60216
  default: false
60217
+ },
60218
+ reset: Boolean,
60219
+ useCaseCode: String,
60220
+ businessData: [String, Array, Object],
60221
+ inputHeight: {
60222
+ type: Number,
60223
+ default: 40
60033
60224
  }
60034
60225
  },
60035
60226
  data: function data() {
@@ -60050,6 +60241,16 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
60050
60241
  },
60051
60242
 
60052
60243
  computed: {
60244
+ isRender: function isRender() {
60245
+ var useCaseCodes = utils_util["a" /* default */].getStorage('useCaseCodes');
60246
+ if (useCaseCodes && this.useCaseCode) {
60247
+ return useCaseCodes.indexOf(this.useCaseCode) > -1;
60248
+ }
60249
+ return true;
60250
+ },
60251
+ isReset: function isReset() {
60252
+ return this.reset ? this.visible : true;
60253
+ },
60053
60254
  _elFormItemSize: function _elFormItemSize() {
60054
60255
  return (this.elFormItem || {}).elFormItemSize;
60055
60256
  },
@@ -60116,7 +60317,7 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
60116
60317
  selected: {
60117
60318
  deep: true,
60118
60319
  handler: function handler(val) {
60119
- this.$emit('change', Array.isArray(val) ? val : [val]);
60320
+ this.$emit('change', Array.isArray(val) ? val : [val], this.businessData);
60120
60321
  if (this.multiple) {
60121
60322
  this.resetInputHeight();
60122
60323
  }
@@ -60247,10 +60448,11 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
60247
60448
  this.visible = false;
60248
60449
  if (utils_util["a" /* default */].isObject(res)) {
60249
60450
  this.$emit('input', [res]);
60451
+ this.$emit('confirm', [res], this.businessData);
60250
60452
  } else {
60251
60453
  this.$emit('input', res);
60454
+ this.$emit('confirm', res, this.businessData);
60252
60455
  }
60253
- this.$emit('confirm', res);
60254
60456
  var inputChildNodes = this.$refs.reference ? this.$refs.reference.$el.childNodes : null;
60255
60457
  var input = inputChildNodes ? [].filter.call(inputChildNodes, function (item) {
60256
60458
  return item.tagName === 'INPUT';
@@ -60259,6 +60461,9 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
60259
60461
  input.focus();
60260
60462
  input.blur();
60261
60463
  }
60464
+ if (this.reset) {
60465
+ this.selected = [];
60466
+ }
60262
60467
  },
60263
60468
  handleClear: function handleClear() {
60264
60469
  this.$emit('input', []);
@@ -60280,7 +60485,7 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
60280
60485
  if (this.collapseTags) return;
60281
60486
  this.$nextTick(function () {
60282
60487
  if (!_this4.$refs.reference) return;
60283
- var sizeInMap = _this4.initialInputHeight || 40;
60488
+ var sizeInMap = _this4.inputHeight;
60284
60489
  var height = '';
60285
60490
  if (_this4.selected !== undefined && _this4.selected.length === 0) {
60286
60491
  height = sizeInMap + 'px';
@@ -60328,8 +60533,8 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
60328
60533
 
60329
60534
  var selector_src_main_component = normalizeComponent(
60330
60535
  packages_selector_src_mainvue_type_script_lang_js_,
60331
- mainvue_type_template_id_19828fe9_render,
60332
- mainvue_type_template_id_19828fe9_staticRenderFns,
60536
+ mainvue_type_template_id_bcfee2b4_render,
60537
+ mainvue_type_template_id_bcfee2b4_staticRenderFns,
60333
60538
  false,
60334
60539
  null,
60335
60540
  null,
@@ -67966,6 +68171,12 @@ function mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var ta
67966
68171
  }))]);
67967
68172
  }
67968
68173
  if (type === 'search') {
68174
+ for (var i = 0; i < contents.length; i++) {
68175
+ if (contents[i].type == 'selector') {
68176
+ contents[i].inputHeight = 32;
68177
+ break;
68178
+ }
68179
+ }
67969
68180
  var itemClass = {
67970
68181
  radio: 'es-toolbar-item-radio',
67971
68182
  checkbox: 'es-toolbar-item-checkbox',
@@ -72326,8 +72537,8 @@ form_src_table.install = function (Vue) {
72326
72537
  };
72327
72538
 
72328
72539
  /* harmony default export */ var table_form = (form_src_table);
72329
- // 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=031cebad&
72330
- var mainvue_type_template_id_031cebad_render = function () {
72540
+ // 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=33bc9a52&
72541
+ var mainvue_type_template_id_33bc9a52_render = function () {
72331
72542
  var _vm = this
72332
72543
  var _h = _vm.$createElement
72333
72544
  var _c = _vm._self._c || _h
@@ -72341,7 +72552,7 @@ var mainvue_type_template_id_031cebad_render = function () {
72341
72552
  class: [
72342
72553
  {
72343
72554
  "es-avatar-uploader": _vm.portrait,
72344
- "es-upload-readonly": _vm.isReadonly,
72555
+ "es-upload-readonly": _vm.isReadonly && !_vm.downloads,
72345
72556
  },
72346
72557
  "es-upload-" + _vm.listType,
72347
72558
  ],
@@ -72707,11 +72918,11 @@ var mainvue_type_template_id_031cebad_render = function () {
72707
72918
  )
72708
72919
  : _vm._e()
72709
72920
  }
72710
- var mainvue_type_template_id_031cebad_staticRenderFns = []
72711
- mainvue_type_template_id_031cebad_render._withStripped = true
72921
+ var mainvue_type_template_id_33bc9a52_staticRenderFns = []
72922
+ mainvue_type_template_id_33bc9a52_render._withStripped = true
72712
72923
 
72713
72924
 
72714
- // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=031cebad&
72925
+ // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=33bc9a52&
72715
72926
 
72716
72927
  // CONCATENATED MODULE: ./packages/upload/src/picture.js
72717
72928
  /* harmony default export */ var picture = ({
@@ -73801,8 +74012,8 @@ var mainvue_type_script_lang_js_props;
73801
74012
 
73802
74013
  var upload_src_main_component = normalizeComponent(
73803
74014
  packages_upload_src_mainvue_type_script_lang_js_,
73804
- mainvue_type_template_id_031cebad_render,
73805
- mainvue_type_template_id_031cebad_staticRenderFns,
74015
+ mainvue_type_template_id_33bc9a52_render,
74016
+ mainvue_type_template_id_33bc9a52_staticRenderFns,
73806
74017
  false,
73807
74018
  null,
73808
74019
  null,
@@ -74279,7 +74490,7 @@ if (typeof window !== 'undefined' && window.Vue) {
74279
74490
  }
74280
74491
 
74281
74492
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
74282
- version: '0.5.67',
74493
+ version: '0.5.68',
74283
74494
  install: install,
74284
74495
  Button: packages_button,
74285
74496
  ButtonGroup: button_group,