eoss-ui 0.5.25 → 0.5.26

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.
@@ -3632,7 +3632,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3632
3632
  stop: Boolean,
3633
3633
  syncKeys: Object,
3634
3634
  text: String,
3635
- onClick: Function
3635
+ onClick: Function,
3636
+ badge: [Object, Number]
3636
3637
  },
3637
3638
  computed: {
3638
3639
  _type: function _type() {
@@ -3824,6 +3825,34 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3824
3825
  tag = 'a';
3825
3826
  clas = clas.concat(['el-button', this._type ? 'el-button--' + this._type : 'el-button--default', this.size ? 'el-button--' + this.size : '']);
3826
3827
  }
3828
+ if (this.badge) {
3829
+ var config = {};
3830
+ if (typeof this.badge === 'number') {
3831
+ config = { class: 'es-button-badge', props: { value: this.badge } };
3832
+ } else {
3833
+ var _badge = this.badge,
3834
+ value = _badge.value,
3835
+ max = _badge.max,
3836
+ isDot = _badge.isDot,
3837
+ hidden = _badge.hidden,
3838
+ type = _badge.type;
3839
+
3840
+ config = {
3841
+ class: this.badge.class ? this.badge.class + ' es-button-badge' : 'es-button-badge',
3842
+ props: { value: value, max: max, isDot: isDot, hidden: hidden, type: type }
3843
+ };
3844
+ }
3845
+ return h('el-badge', config, [h(tag, {
3846
+ class: clas,
3847
+ props: _extends({}, this.$attrs, props),
3848
+ attrs: attrs,
3849
+ on: _extends({}, this.$listeners, { click: this.handleClick }),
3850
+ directives: [{
3851
+ name: 'show',
3852
+ value: !this.hide
3853
+ }]
3854
+ }, this.iconPlacement === 'start' ? [this.icon ? h('i', { class: this.icon }) : '', this.$slots.default || this.text] : [this.$slots.default || this.text, this.icon ? h('i', { class: this.icon }) : ''])]);
3855
+ }
3827
3856
  return h(tag, {
3828
3857
  class: clas,
3829
3858
  props: _extends({}, this.$attrs, props),
@@ -4219,8 +4248,8 @@ src_main.install = function (Vue) {
4219
4248
  };
4220
4249
 
4221
4250
  /* harmony default export */ var button_group = (src_main);
4222
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox-group/src/main.vue?vue&type=template&id=103e1959&
4223
- var mainvue_type_template_id_103e1959_render = function () {
4251
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox-group/src/main.vue?vue&type=template&id=796a733a&
4252
+ var mainvue_type_template_id_796a733a_render = function () {
4224
4253
  var _vm = this
4225
4254
  var _h = _vm.$createElement
4226
4255
  var _c = _vm._self._c || _h
@@ -4348,11 +4377,11 @@ var mainvue_type_template_id_103e1959_render = function () {
4348
4377
  )
4349
4378
  : _vm._e()
4350
4379
  }
4351
- var mainvue_type_template_id_103e1959_staticRenderFns = []
4352
- mainvue_type_template_id_103e1959_render._withStripped = true
4380
+ var mainvue_type_template_id_796a733a_staticRenderFns = []
4381
+ mainvue_type_template_id_796a733a_render._withStripped = true
4353
4382
 
4354
4383
 
4355
- // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue?vue&type=template&id=103e1959&
4384
+ // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue?vue&type=template&id=796a733a&
4356
4385
 
4357
4386
  // EXTERNAL MODULE: ./src/config/api.js
4358
4387
  var api = __webpack_require__(1);
@@ -4568,7 +4597,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4568
4597
  labelVal: function labelVal() {
4569
4598
  var _this = this;
4570
4599
 
4571
- var model = typeof this.model === 'string' ? this.model.split(',') : this.model;
4600
+ var model = typeof this.model === 'string' ? this.model.split(',') : this.model || [];
4572
4601
  var label = model.map(function (item) {
4573
4602
  if (utils_util["a" /* default */].isObject(item)) {
4574
4603
  return item[_this.label];
@@ -4695,8 +4724,8 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4695
4724
 
4696
4725
  var checkbox_group_src_main_component = normalizeComponent(
4697
4726
  packages_checkbox_group_src_mainvue_type_script_lang_js_,
4698
- mainvue_type_template_id_103e1959_render,
4699
- mainvue_type_template_id_103e1959_staticRenderFns,
4727
+ mainvue_type_template_id_796a733a_render,
4728
+ mainvue_type_template_id_796a733a_staticRenderFns,
4700
4729
  false,
4701
4730
  null,
4702
4731
  null,
@@ -5531,8 +5560,8 @@ clients_src_main.install = function (Vue) {
5531
5560
  };
5532
5561
 
5533
5562
  /* harmony default export */ var clients = (clients_src_main);
5534
- // 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/main.vue?vue&type=template&id=55ef7929&
5535
- var mainvue_type_template_id_55ef7929_render = function () {
5563
+ // 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/main.vue?vue&type=template&id=1931d6be&
5564
+ var mainvue_type_template_id_1931d6be_render = function () {
5536
5565
  var _vm = this
5537
5566
  var _h = _vm.$createElement
5538
5567
  var _c = _vm._self._c || _h
@@ -5662,6 +5691,7 @@ var mainvue_type_template_id_55ef7929_render = function () {
5662
5691
  name: _vm.name,
5663
5692
  indexs: index,
5664
5693
  form: _vm.form,
5694
+ readonly: _vm.readonly,
5665
5695
  optionData: _vm.optionDatas,
5666
5696
  },
5667
5697
  item
@@ -5778,11 +5808,11 @@ var mainvue_type_template_id_55ef7929_render = function () {
5778
5808
  1
5779
5809
  )
5780
5810
  }
5781
- var mainvue_type_template_id_55ef7929_staticRenderFns = []
5782
- mainvue_type_template_id_55ef7929_render._withStripped = true
5811
+ var mainvue_type_template_id_1931d6be_staticRenderFns = []
5812
+ mainvue_type_template_id_1931d6be_render._withStripped = true
5783
5813
 
5784
5814
 
5785
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=55ef7929&
5815
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=1931d6be&
5786
5816
 
5787
5817
  // 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/children.vue?vue&type=template&id=29bcbc72&
5788
5818
  var childrenvue_type_template_id_29bcbc72_render = function () {
@@ -5827,8 +5857,8 @@ childrenvue_type_template_id_29bcbc72_render._withStripped = true
5827
5857
 
5828
5858
  // CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=29bcbc72&
5829
5859
 
5830
- // 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=5798afd2&
5831
- var columnvue_type_template_id_5798afd2_render = function () {
5860
+ // 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=04b841ca&
5861
+ var columnvue_type_template_id_04b841ca_render = function () {
5832
5862
  var _vm = this
5833
5863
  var _h = _vm.$createElement
5834
5864
  var _c = _vm._self._c || _h
@@ -6258,11 +6288,14 @@ var columnvue_type_template_id_5798afd2_render = function () {
6258
6288
  })
6259
6289
  )
6260
6290
  )
6261
- : _vm.type === "text" || _vm.type === "textarea"
6291
+ : _vm.type === "text" ||
6292
+ _vm.type === "input" ||
6293
+ _vm.type === "textarea"
6262
6294
  ? [
6263
6295
  _vm.config.lazy
6264
6296
  ? [
6265
- _vm.type === "text"
6297
+ _vm.type === "text" ||
6298
+ _vm.type === "input"
6266
6299
  ? _c(
6267
6300
  "input",
6268
6301
  _vm._b(
@@ -6402,7 +6435,10 @@ var columnvue_type_template_id_5798afd2_render = function () {
6402
6435
  "es-input",
6403
6436
  _vm._b(
6404
6437
  {
6405
- attrs: { scope: scope },
6438
+ attrs: {
6439
+ type: _vm.type,
6440
+ scope: scope,
6441
+ },
6406
6442
  on: {
6407
6443
  blur: function (event) {
6408
6444
  _vm.handleBlur({
@@ -6480,6 +6516,13 @@ var columnvue_type_template_id_5798afd2_render = function () {
6480
6516
  "\n "
6481
6517
  ),
6482
6518
  ]
6519
+ : _vm.type === "textarea"
6520
+ ? _c("span", {
6521
+ style: _vm.styles ? _vm.styles[scope.row[_vm.prop]] : {},
6522
+ domProps: {
6523
+ innerHTML: _vm._s(_vm.format(scope.row, true)),
6524
+ },
6525
+ })
6483
6526
  : _c(
6484
6527
  "span",
6485
6528
  {
@@ -6537,11 +6580,11 @@ var columnvue_type_template_id_5798afd2_render = function () {
6537
6580
  2
6538
6581
  )
6539
6582
  }
6540
- var columnvue_type_template_id_5798afd2_staticRenderFns = []
6541
- columnvue_type_template_id_5798afd2_render._withStripped = true
6583
+ var columnvue_type_template_id_04b841ca_staticRenderFns = []
6584
+ columnvue_type_template_id_04b841ca_render._withStripped = true
6542
6585
 
6543
6586
 
6544
- // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=5798afd2&
6587
+ // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=04b841ca&
6545
6588
 
6546
6589
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
6547
6590
  var regenerator_ = __webpack_require__(2);
@@ -6963,6 +7006,16 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
6963
7006
  //
6964
7007
  //
6965
7008
  //
7009
+ //
7010
+ //
7011
+ //
7012
+ //
7013
+ //
7014
+ //
7015
+ //
7016
+ //
7017
+ //
7018
+ //
6966
7019
 
6967
7020
 
6968
7021
 
@@ -7080,13 +7133,25 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7080
7133
  config = columnvue_type_script_lang_js_extends({ type: this.type }, config, this.$attrs);
7081
7134
  return config;
7082
7135
  }
7136
+ var required = this.required;
7137
+ if (this.rules && !required) {
7138
+ if (Array.isArray(this.rules)) {
7139
+ this.rules.map(function (item) {
7140
+ if (item.required) {
7141
+ required = item.required;
7142
+ }
7143
+ });
7144
+ } else if (this.rules.required) {
7145
+ required = this.rules.required;
7146
+ }
7147
+ }
7083
7148
  var minWidth = this.label || this.title ? (this.label || this.title).length * 14 + 20 : this.width ? '' : '180px';
7084
7149
  config = columnvue_type_script_lang_js_extends({}, config, {
7085
7150
  filterIcon: this.icon,
7086
7151
  sortable: this.sortable || this.sort,
7087
7152
  minWidth: this.minWidth || this.table.minWidth || minWidth,
7088
7153
  className: [this.className ? this.className : '', this.type ? ' es-table-' + this.type + '-box' : '', this.showOverflowTooltip ? ' es-text-ellipsis' : ''].join(' '),
7089
- labelClassName: [this.labelClassName ? this.labelClassName : '', this.required ? 'es-required' : ''].join(' '),
7154
+ labelClassName: [this.labelClassName ? this.labelClassName : '', required ? 'es-required' : ''].join(' '),
7090
7155
  showOverflowTooltip: this.showOverflowTooltip,
7091
7156
  prop: this.field || this.prop,
7092
7157
  field: this.field
@@ -7102,9 +7167,6 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7102
7167
  }, this.$attrs, {
7103
7168
  data: this.option
7104
7169
  });
7105
- if (this.type === 'textarea') {
7106
- config.type = 'textarea';
7107
- }
7108
7170
  return config;
7109
7171
  },
7110
7172
  icon: function icon() {
@@ -7115,7 +7177,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7115
7177
  },
7116
7178
  isForm: function isForm() {
7117
7179
  var type = this.type ? this.type.toLowerCase() : '';
7118
- var flag = this.form && ['text', 'textarea', 'checkbox', 'radio', 'select', 'handle', 'date', 'year', 'month', 'date', 'dates', 'week', 'datetime', 'datetimerange', 'daterange', 'monthrange', 'quarter', 'halfyear', 'switch', 'selector', 'ganged', 'number'].indexOf(type) > -1 || ['space', 'slot'].indexOf(type) > -1;
7180
+ var flag = this.form && ['input', 'text', 'textarea', 'checkbox', 'radio', 'select', 'handle', 'date', 'year', 'month', 'date', 'dates', 'week', 'datetime', 'datetimerange', 'daterange', 'monthrange', 'quarter', 'halfyear', 'switch', 'selector', 'ganged', 'number'].indexOf(type) > -1 || ['space', 'slot'].indexOf(type) > -1;
7119
7181
  return flag;
7120
7182
  },
7121
7183
  option: function option() {
@@ -7233,41 +7295,47 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7233
7295
 
7234
7296
  return utils_util["a" /* default */].exclAttribute({ data: data, attrs: attrs });
7235
7297
  },
7236
- format: function format(rows) {
7298
+ format: function format(rows, flag) {
7237
7299
  var _this2 = this;
7238
7300
 
7239
7301
  var field = this.field || this.prop;
7240
7302
  var data = this.option;
7303
+ var str = '';
7241
7304
  if (utils_util["a" /* default */].isObject(rows[field])) {
7242
- return rows[field][this.labelKey] || rows[field]['name'] || rows[field]['label'] || rows[field]['shortName'];
7305
+ str = rows[field][this.labelKey] || rows[field]['name'] || rows[field]['label'] || rows[field]['shortName'];
7243
7306
  } else if (Array.isArray(rows[field])) {
7244
7307
  var vals = rows[field].map(function (item) {
7245
7308
  if (utils_util["a" /* default */].isObject(item)) {
7246
- return item[_this2.labelKey] || item['name'] || item['label'] || item['shortName'];
7309
+ str = item[_this2.labelKey] || item['name'] || item['label'] || item['shortName'];
7247
7310
  } else {
7248
7311
  if (data && data.length && utils_util["a" /* default */].isObject(data[0])) {
7249
- return _this2.getLabel(data, item);
7312
+ str = _this2.getLabel(data, item);
7250
7313
  }
7251
- return item;
7314
+ str = item;
7252
7315
  }
7253
7316
  });
7254
- return vals.join(this.symbol ? this.symbol : '-');
7317
+ str = vals.join(this.symbol ? this.symbol : '-');
7255
7318
  } else {
7256
7319
  if (this.valueToString) {
7257
7320
  var _vals = rows[field].split(',').map(function (item) {
7258
7321
  if (data && data.length && utils_util["a" /* default */].isObject(data[0])) {
7259
- return _this2.getLabel(data, item);
7322
+ str = _this2.getLabel(data, item);
7260
7323
  }
7261
- return item;
7324
+ str = item;
7262
7325
  });
7263
- return _vals.join(this.symbol ? this.symbol : '-');
7326
+ str = _vals.join(this.symbol ? this.symbol : '-');
7264
7327
  } else {
7265
7328
  if (data && data.length && utils_util["a" /* default */].isObject(data[0])) {
7266
- return this.getLabel(data, rows[field]);
7329
+ str = this.getLabel(data, rows[field]);
7267
7330
  }
7268
- return rows[field];
7331
+ str = rows[field];
7269
7332
  }
7270
7333
  }
7334
+ if (str && flag) {
7335
+ str = str.replace(RegExp('\\n', 'g'), '<br/>');
7336
+ str = str.replace(RegExp(' ', 'g'), '&nbsp;');
7337
+ }
7338
+ return str;
7271
7339
  },
7272
7340
  getLabel: function getLabel(obj, val) {
7273
7341
  for (var i = 0; i < obj.length; i++) {
@@ -7374,8 +7442,8 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7374
7442
 
7375
7443
  var column_component = normalizeComponent(
7376
7444
  src_columnvue_type_script_lang_js_,
7377
- columnvue_type_template_id_5798afd2_render,
7378
- columnvue_type_template_id_5798afd2_staticRenderFns,
7445
+ columnvue_type_template_id_04b841ca_render,
7446
+ columnvue_type_template_id_04b841ca_staticRenderFns,
7379
7447
  false,
7380
7448
  null,
7381
7449
  null,
@@ -8029,6 +8097,7 @@ var mainvue_type_script_lang_js_components, _watch;
8029
8097
  //
8030
8098
  //
8031
8099
  //
8100
+ //
8032
8101
 
8033
8102
 
8034
8103
 
@@ -9172,8 +9241,8 @@ var mainvue_type_script_lang_js_components, _watch;
9172
9241
 
9173
9242
  var data_table_src_main_component = normalizeComponent(
9174
9243
  packages_data_table_src_mainvue_type_script_lang_js_,
9175
- mainvue_type_template_id_55ef7929_render,
9176
- mainvue_type_template_id_55ef7929_staticRenderFns,
9244
+ mainvue_type_template_id_1931d6be_render,
9245
+ mainvue_type_template_id_1931d6be_staticRenderFns,
9177
9246
  false,
9178
9247
  null,
9179
9248
  null,
@@ -12571,8 +12640,8 @@ error_page_src_main.install = function (Vue) {
12571
12640
  };
12572
12641
 
12573
12642
  /* harmony default export */ var error_page = (error_page_src_main);
12574
- // 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=4a085d1c&
12575
- var mainvue_type_template_id_4a085d1c_render = function () {
12643
+ // 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=8e0d1656&
12644
+ var mainvue_type_template_id_8e0d1656_render = function () {
12576
12645
  var _vm = this
12577
12646
  var _h = _vm.$createElement
12578
12647
  var _c = _vm._self._c || _h
@@ -23488,11 +23557,11 @@ var mainvue_type_template_id_4a085d1c_render = function () {
23488
23557
  )
23489
23558
  : _vm._e()
23490
23559
  }
23491
- var mainvue_type_template_id_4a085d1c_staticRenderFns = []
23492
- mainvue_type_template_id_4a085d1c_render._withStripped = true
23560
+ var mainvue_type_template_id_8e0d1656_staticRenderFns = []
23561
+ mainvue_type_template_id_8e0d1656_render._withStripped = true
23493
23562
 
23494
23563
 
23495
- // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=4a085d1c&
23564
+ // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=8e0d1656&
23496
23565
 
23497
23566
  // CONCATENATED MODULE: ./src/utils/rules.js
23498
23567
  // 手机号
@@ -28146,7 +28215,8 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
28146
28215
  var month = ageDate.getMonth() + 1;
28147
28216
  var day = ageDate.getDate();
28148
28217
  var age = ageDate.getFullYear() - id.substring(6, 10) - 1;
28149
- if (id.substring(10, 12) < month || id.substring(10, 12) === month && id.substring(12, 14) <= day) {
28218
+ var _month = parseInt(id.substring(10, 12), 10);
28219
+ if (_month < month || _month === month && id.substring(12, 14) <= day) {
28150
28220
  age++;
28151
28221
  }
28152
28222
  if (age <= 0) {
@@ -28605,8 +28675,8 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
28605
28675
 
28606
28676
  var form_src_main_component = normalizeComponent(
28607
28677
  packages_form_src_mainvue_type_script_lang_js_,
28608
- mainvue_type_template_id_4a085d1c_render,
28609
- mainvue_type_template_id_4a085d1c_staticRenderFns,
28678
+ mainvue_type_template_id_8e0d1656_render,
28679
+ mainvue_type_template_id_8e0d1656_staticRenderFns,
28610
28680
  false,
28611
28681
  null,
28612
28682
  null,
@@ -28623,8 +28693,8 @@ form_src_main.install = function (Vue) {
28623
28693
  };
28624
28694
 
28625
28695
  /* harmony default export */ var packages_form = (form_src_main);
28626
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=13cc8c3c&
28627
- var mainvue_type_template_id_13cc8c3c_render = function () {
28696
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=2d625847&
28697
+ var mainvue_type_template_id_2d625847_render = function () {
28628
28698
  var _vm = this
28629
28699
  var _h = _vm.$createElement
28630
28700
  var _c = _vm._self._c || _h
@@ -29772,39 +29842,44 @@ var mainvue_type_template_id_13cc8c3c_render = function () {
29772
29842
  "div",
29773
29843
  { staticClass: "es-user-defined" },
29774
29844
  [
29775
- _vm._l(_vm.btnList.slice(0, 1), function (item) {
29776
- return _c(
29777
- "el-button",
29778
- {
29779
- directives: [
29780
- {
29781
- name: "show",
29782
- rawName: "v-show",
29783
- value:
29784
- _vm.isSubmitButtonShowAgreeAndDisagree !=
29785
- 1,
29786
- expression:
29787
- "isSubmitButtonShowAgreeAndDisagree != 1",
29788
- },
29789
- ],
29790
- key: item.name,
29791
- style: _vm.btnStyle,
29792
- attrs: { type: item.type },
29793
- on: {
29794
- click: function ($event) {
29795
- item.event === "sub"
29796
- ? _vm.subProcess()
29797
- : _vm.saveInfo(false, item)
29845
+ _vm._l(
29846
+ _vm.hideBtn ? _vm.btnList.slice(0, 1) : _vm.btnList,
29847
+ function (item) {
29848
+ return _c(
29849
+ "el-button",
29850
+ {
29851
+ directives: [
29852
+ {
29853
+ name: "show",
29854
+ rawName: "v-show",
29855
+ value:
29856
+ _vm.isSubmitButtonShowAgreeAndDisagree !=
29857
+ 1,
29858
+ expression:
29859
+ "isSubmitButtonShowAgreeAndDisagree != 1",
29860
+ },
29861
+ ],
29862
+ key: item.name,
29863
+ style: _vm.btnStyle,
29864
+ attrs: { type: item.type },
29865
+ on: {
29866
+ click: function ($event) {
29867
+ item.event === "sub"
29868
+ ? _vm.subProcess()
29869
+ : _vm.saveInfo(false, item)
29870
+ },
29798
29871
  },
29799
29872
  },
29800
- },
29801
- [
29802
- _vm._v(
29803
- "\n " + _vm._s(item.text) + "\n "
29804
- ),
29805
- ]
29806
- )
29807
- }),
29873
+ [
29874
+ _vm._v(
29875
+ "\n " +
29876
+ _vm._s(item.text) +
29877
+ "\n "
29878
+ ),
29879
+ ]
29880
+ )
29881
+ }
29882
+ ),
29808
29883
  _vm.btnList.length > 1 ||
29809
29884
  (!_vm.isFlow &&
29810
29885
  (_vm.rejectObj.fun ||
@@ -29813,169 +29888,251 @@ var mainvue_type_template_id_13cc8c3c_render = function () {
29813
29888
  ? _c(
29814
29889
  "div",
29815
29890
  {
29891
+ class: { "em-flow-more-btn": !_vm.hideBtn },
29816
29892
  attrs: { placement: "top", trigger: "click" },
29817
29893
  },
29818
29894
  [
29819
- _c(
29820
- "el-button-group",
29821
- {
29822
- staticStyle: { margin: "0px 10px" },
29823
- attrs: { slot: "reference" },
29824
- slot: "reference",
29825
- },
29826
- [
29827
- _vm._l(
29828
- _vm.btnList.slice(1),
29829
- function (item) {
29830
- return _c(
29831
- "el-button",
29832
- {
29833
- directives: [
29895
+ !_vm.isFlow && !_vm.hideBtn
29896
+ ? _c(
29897
+ "div",
29898
+ { staticClass: "es-footer-btn" },
29899
+ [
29900
+ _vm.rejectObj.fun
29901
+ ? _c(
29902
+ "el-button",
29834
29903
  {
29835
- name: "show",
29836
- rawName: "v-show",
29837
- value:
29838
- _vm.isSubmitButtonShowAgreeAndDisagree !=
29839
- 1,
29840
- expression:
29841
- "isSubmitButtonShowAgreeAndDisagree != 1",
29904
+ staticStyle: {
29905
+ "margin-right": "10px",
29906
+ },
29907
+ attrs: { type: "danger" },
29908
+ on: { click: _vm.rejectBtn },
29842
29909
  },
29843
- ],
29844
- key: item.name,
29845
- style: _vm.btnStyle,
29846
- attrs: { type: item.type },
29847
- on: {
29848
- click: function ($event) {
29849
- $event.stopPropagation()
29850
- item.event === "sub"
29851
- ? _vm.subProcess()
29852
- : _vm.saveInfo(false, item)
29910
+ [
29911
+ _vm._v(
29912
+ "\n " +
29913
+ _vm._s(
29914
+ _vm.rejectObj.value
29915
+ ) +
29916
+ "\n "
29917
+ ),
29918
+ ]
29919
+ )
29920
+ : _vm._e(),
29921
+ _vm.pointsReadingObj.fun
29922
+ ? _c(
29923
+ "el-button",
29924
+ {
29925
+ staticClass: "btn",
29926
+ on: {
29927
+ click: _vm.taskReadBtn,
29928
+ },
29929
+ },
29930
+ [_vm._v("分阅")]
29931
+ )
29932
+ : _vm._e(),
29933
+ _vm._l(_vm.moreList, function (item) {
29934
+ return _c(
29935
+ "el-button",
29936
+ {
29937
+ key: item.key,
29938
+ staticClass: "btn",
29939
+ on: {
29940
+ click: function ($event) {
29941
+ _vm.goView(item)
29942
+ },
29853
29943
  },
29854
29944
  },
29855
- },
29856
- [
29857
- _vm._v(
29858
- "\n " +
29859
- _vm._s(item.text) +
29860
- "\n "
29861
- ),
29862
- ]
29863
- )
29864
- }
29865
- ),
29866
- !_vm.isFlow &&
29867
- (_vm.rejectObj.fun ||
29868
- _vm.pointsReadingObj.fun ||
29869
- _vm.moreList.length > 0)
29870
- ? _c(
29871
- "el-dropdown",
29872
- {
29873
- staticStyle: {
29874
- "border-left":
29875
- "1px solid #d9d9d9",
29876
- },
29877
- attrs: {
29878
- trigger: "click",
29879
- placement: "top",
29880
- },
29881
- },
29882
- [
29883
- _c("el-button", [_vm._v("...")]),
29884
- _c(
29885
- "el-dropdown-menu",
29945
+ [
29946
+ _vm._v(
29947
+ "\n " +
29948
+ _vm._s(item.value) +
29949
+ "\n "
29950
+ ),
29951
+ ]
29952
+ )
29953
+ }),
29954
+ ],
29955
+ 2
29956
+ )
29957
+ : _vm._e(),
29958
+ _vm.hideBtn
29959
+ ? _c(
29960
+ "el-button-group",
29961
+ {
29962
+ staticStyle: { margin: "0px 10px" },
29963
+ attrs: { slot: "reference" },
29964
+ slot: "reference",
29965
+ },
29966
+ [
29967
+ _vm._l(
29968
+ _vm.btnList.slice(1),
29969
+ function (item) {
29970
+ return _c(
29971
+ "el-button",
29972
+ {
29973
+ directives: [
29974
+ {
29975
+ name: "show",
29976
+ rawName: "v-show",
29977
+ value:
29978
+ _vm.isSubmitButtonShowAgreeAndDisagree !=
29979
+ 1,
29980
+ expression:
29981
+ "isSubmitButtonShowAgreeAndDisagree != 1",
29982
+ },
29983
+ ],
29984
+ key: item.name,
29985
+ style: _vm.btnStyle,
29986
+ attrs: { type: item.type },
29987
+ on: {
29988
+ click: function ($event) {
29989
+ $event.stopPropagation()
29990
+ item.event === "sub"
29991
+ ? _vm.subProcess()
29992
+ : _vm.saveInfo(
29993
+ false,
29994
+ item
29995
+ )
29996
+ },
29997
+ },
29998
+ },
29999
+ [
30000
+ _vm._v(
30001
+ "\n " +
30002
+ _vm._s(item.text) +
30003
+ "\n "
30004
+ ),
30005
+ ]
30006
+ )
30007
+ }
30008
+ ),
30009
+ !_vm.isFlow &&
30010
+ (_vm.rejectObj.fun ||
30011
+ _vm.pointsReadingObj.fun ||
30012
+ _vm.moreList.length > 0)
30013
+ ? _c(
30014
+ "el-dropdown",
29886
30015
  {
29887
- attrs: { slot: "dropdown" },
29888
- slot: "dropdown",
30016
+ staticStyle: {
30017
+ "border-left":
30018
+ "1px solid #d9d9d9",
30019
+ },
30020
+ attrs: {
30021
+ trigger: "click",
30022
+ placement: "top",
30023
+ },
29889
30024
  },
29890
30025
  [
29891
- _vm._l(
29892
- _vm.moreList,
29893
- function (item) {
29894
- return _c(
29895
- "el-dropdown-item",
29896
- { key: item.key },
29897
- [
29898
- _c(
29899
- "div",
29900
- {
29901
- staticClass:
29902
- "btn",
29903
- on: {
29904
- click:
29905
- function (
29906
- $event
29907
- ) {
29908
- _vm.goView(
29909
- item
29910
- )
30026
+ _c("el-button", [
30027
+ _vm._v("..."),
30028
+ ]),
30029
+ _c(
30030
+ "el-dropdown-menu",
30031
+ {
30032
+ attrs: {
30033
+ slot: "dropdown",
30034
+ },
30035
+ slot: "dropdown",
30036
+ },
30037
+ [
30038
+ _vm._l(
30039
+ _vm.moreList,
30040
+ function (item) {
30041
+ return _c(
30042
+ "el-dropdown-item",
30043
+ { key: item.key },
30044
+ [
30045
+ _c(
30046
+ "div",
30047
+ {
30048
+ staticClass:
30049
+ "btn",
30050
+ on: {
30051
+ click:
30052
+ function (
30053
+ $event
30054
+ ) {
30055
+ _vm.goView(
30056
+ item
30057
+ )
30058
+ },
29911
30059
  },
29912
- },
29913
- },
30060
+ },
30061
+ [
30062
+ _vm._v(
30063
+ "\n " +
30064
+ _vm._s(
30065
+ item.value
30066
+ ) +
30067
+ "\n "
30068
+ ),
30069
+ ]
30070
+ ),
30071
+ ]
30072
+ )
30073
+ }
30074
+ ),
30075
+ _vm.pointsReadingObj.fun
30076
+ ? _c(
30077
+ "el-dropdown-item",
29914
30078
  [
29915
- _vm._v(
29916
- "\n " +
29917
- _vm._s(
29918
- item.value
29919
- ) +
29920
- "\n "
30079
+ _c(
30080
+ "div",
30081
+ {
30082
+ staticClass:
30083
+ "btn",
30084
+ on: {
30085
+ click:
30086
+ _vm.taskReadBtn,
30087
+ },
30088
+ },
30089
+ [_vm._v("分阅")]
29921
30090
  ),
29922
30091
  ]
29923
- ),
29924
- ]
29925
- )
29926
- }
30092
+ )
30093
+ : _vm._e(),
30094
+ _vm.rejectObj.fun
30095
+ ? _c(
30096
+ "el-dropdown-item",
30097
+ [
30098
+ _c(
30099
+ "div",
30100
+ {
30101
+ staticStyle: {
30102
+ color:
30103
+ "red",
30104
+ },
30105
+ on: {
30106
+ click:
30107
+ _vm.rejectBtn,
30108
+ },
30109
+ },
30110
+ [
30111
+ _vm._v(
30112
+ "\n " +
30113
+ _vm._s(
30114
+ _vm
30115
+ .rejectObj
30116
+ .value
30117
+ ) +
30118
+ "\n "
30119
+ ),
30120
+ ]
30121
+ ),
30122
+ ]
30123
+ )
30124
+ : _vm._e(),
30125
+ ],
30126
+ 2
29927
30127
  ),
29928
- _vm.pointsReadingObj.fun
29929
- ? _c("el-dropdown-item", [
29930
- _c(
29931
- "div",
29932
- {
29933
- staticClass: "btn",
29934
- on: {
29935
- click:
29936
- _vm.taskReadBtn,
29937
- },
29938
- },
29939
- [_vm._v("分阅")]
29940
- ),
29941
- ])
29942
- : _vm._e(),
29943
- _vm.rejectObj.fun
29944
- ? _c("el-dropdown-item", [
29945
- _c(
29946
- "div",
29947
- {
29948
- staticStyle: {
29949
- color: "red",
29950
- },
29951
- on: {
29952
- click:
29953
- _vm.rejectBtn,
29954
- },
29955
- },
29956
- [
29957
- _vm._v(
29958
- "\n " +
29959
- _vm._s(
29960
- _vm.rejectObj
29961
- .value
29962
- ) +
29963
- "\n "
29964
- ),
29965
- ]
29966
- ),
29967
- ])
29968
- : _vm._e(),
29969
30128
  ],
29970
- 2
29971
- ),
29972
- ],
29973
- 1
29974
- )
29975
- : _vm._e(),
29976
- ],
29977
- 2
29978
- ),
30129
+ 1
30130
+ )
30131
+ : _vm._e(),
30132
+ ],
30133
+ 2
30134
+ )
30135
+ : _vm._e(),
29979
30136
  ],
29980
30137
  1
29981
30138
  )
@@ -30256,11 +30413,11 @@ var mainvue_type_template_id_13cc8c3c_render = function () {
30256
30413
  )
30257
30414
  : _vm._e()
30258
30415
  }
30259
- var mainvue_type_template_id_13cc8c3c_staticRenderFns = []
30260
- mainvue_type_template_id_13cc8c3c_render._withStripped = true
30416
+ var mainvue_type_template_id_2d625847_staticRenderFns = []
30417
+ mainvue_type_template_id_2d625847_render._withStripped = true
30261
30418
 
30262
30419
 
30263
- // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=13cc8c3c&
30420
+ // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=2d625847&
30264
30421
 
30265
30422
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/CommonOpinions.vue?vue&type=template&id=4e1f4030&
30266
30423
  var CommonOpinionsvue_type_template_id_4e1f4030_render = function () {
@@ -37824,6 +37981,7 @@ function flow_src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return func
37824
37981
  //
37825
37982
  //
37826
37983
  //
37984
+ //
37827
37985
 
37828
37986
 
37829
37987
 
@@ -37850,6 +38008,7 @@ function flow_src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return func
37850
38008
  typeCode: { type: String, default: '' },
37851
38009
  flowTypeCode: { type: String, default: '' },
37852
38010
  defaultProcessKey: { type: String, default: '' },
38011
+ hideBtn: { type: Boolean, default: false },
37853
38012
  btnList: {
37854
38013
  type: Array,
37855
38014
  default: function _default() {
@@ -39557,8 +39716,8 @@ function flow_src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return func
39557
39716
 
39558
39717
  var flow_src_main_component = normalizeComponent(
39559
39718
  packages_flow_src_mainvue_type_script_lang_js_,
39560
- mainvue_type_template_id_13cc8c3c_render,
39561
- mainvue_type_template_id_13cc8c3c_staticRenderFns,
39719
+ mainvue_type_template_id_2d625847_render,
39720
+ mainvue_type_template_id_2d625847_staticRenderFns,
39562
39721
  false,
39563
39722
  null,
39564
39723
  null,
@@ -43894,9 +44053,14 @@ var input_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
43894
44053
  var cls = [];
43895
44054
  var doms = [];
43896
44055
  if (this.readonly) {
44056
+ var content = this.text;
44057
+ if (this.model) {
44058
+ content = this.model.replace(RegExp('\\n', 'g'), '<br/>');
44059
+ content = content.replace(RegExp(' ', 'g'), '&nbsp;');
44060
+ }
43897
44061
  return h('div', {
43898
44062
  class: [this.$attrs.type === 'textarea' ? 'es-textarea__inner ' : 'es-input__inner', { 'es-plain': this.plain }]
43899
- }, [this.model == '' || this.model == null || this.model == undefined || this.model == NaN ? this.text : this.model]);
44063
+ }, [content]);
43900
44064
  }
43901
44065
  if (this.$slots.prefix) {
43902
44066
  doms.push(h('template', { slot: 'prefix' }, this.$slots.prefix));
@@ -71029,7 +71193,7 @@ if (typeof window !== 'undefined' && window.Vue) {
71029
71193
  }
71030
71194
 
71031
71195
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
71032
- version: '0.5.25',
71196
+ version: '0.5.26',
71033
71197
  install: install,
71034
71198
  Button: packages_button,
71035
71199
  ButtonGroup: button_group,