eoss-mobiles 0.1.60 → 0.1.62

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.
@@ -8254,8 +8254,8 @@ table_src_main.install = function (Vue) {
8254
8254
  };
8255
8255
 
8256
8256
  /* harmony default export */ var table = (table_src_main);
8257
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/table-column/src/main.vue?vue&type=template&id=3d3e49ee&
8258
- var mainvue_type_template_id_3d3e49ee_render = function () {
8257
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/table-column/src/main.vue?vue&type=template&id=7eca6cd2&
8258
+ var mainvue_type_template_id_7eca6cd2_render = function () {
8259
8259
  var _vm = this
8260
8260
  var _h = _vm.$createElement
8261
8261
  var _c = _vm._self._c || _h
@@ -8903,11 +8903,11 @@ var mainvue_type_template_id_3d3e49ee_render = function () {
8903
8903
  )
8904
8904
  : _vm._e()
8905
8905
  }
8906
- var mainvue_type_template_id_3d3e49ee_staticRenderFns = []
8907
- mainvue_type_template_id_3d3e49ee_render._withStripped = true
8906
+ var mainvue_type_template_id_7eca6cd2_staticRenderFns = []
8907
+ mainvue_type_template_id_7eca6cd2_render._withStripped = true
8908
8908
 
8909
8909
 
8910
- // CONCATENATED MODULE: ./packages/table-column/src/main.vue?vue&type=template&id=3d3e49ee&
8910
+ // CONCATENATED MODULE: ./packages/table-column/src/main.vue?vue&type=template&id=7eca6cd2&
8911
8911
 
8912
8912
  // CONCATENATED MODULE: ./packages/table-column/src/mixins/table.js
8913
8913
  /* harmony default export */ var mixins_table = ({
@@ -9597,7 +9597,8 @@ var src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typ
9597
9597
  if (Array.isArray(row[field || prop]) && row[field || prop].length == 0) {
9598
9598
  str = '';
9599
9599
  } else {
9600
- str = row[field || prop] ? '是' : '否';
9600
+ str = row[field || prop];
9601
+ // str = row[field || prop] ? '是' : '否';
9601
9602
  }
9602
9603
  }
9603
9604
  return str;
@@ -9672,8 +9673,8 @@ var src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typ
9672
9673
 
9673
9674
  var table_column_src_main_component = normalizeComponent(
9674
9675
  packages_table_column_src_mainvue_type_script_lang_js_,
9675
- mainvue_type_template_id_3d3e49ee_render,
9676
- mainvue_type_template_id_3d3e49ee_staticRenderFns,
9676
+ mainvue_type_template_id_7eca6cd2_render,
9677
+ mainvue_type_template_id_7eca6cd2_staticRenderFns,
9677
9678
  false,
9678
9679
  null,
9679
9680
  null,
@@ -11250,8 +11251,8 @@ var StartFlow_component = normalizeComponent(
11250
11251
  )
11251
11252
 
11252
11253
  /* harmony default export */ var StartFlow = (StartFlow_component.exports);
11253
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Handle.vue?vue&type=template&id=0f9320b3&
11254
- var Handlevue_type_template_id_0f9320b3_render = function () {
11254
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Handle.vue?vue&type=template&id=3b9018af&
11255
+ var Handlevue_type_template_id_3b9018af_render = function () {
11255
11256
  var _vm = this
11256
11257
  var _h = _vm.$createElement
11257
11258
  var _c = _vm._self._c || _h
@@ -12230,11 +12231,11 @@ var Handlevue_type_template_id_0f9320b3_render = function () {
12230
12231
  1
12231
12232
  )
12232
12233
  }
12233
- var Handlevue_type_template_id_0f9320b3_staticRenderFns = []
12234
- Handlevue_type_template_id_0f9320b3_render._withStripped = true
12234
+ var Handlevue_type_template_id_3b9018af_staticRenderFns = []
12235
+ Handlevue_type_template_id_3b9018af_render._withStripped = true
12235
12236
 
12236
12237
 
12237
- // CONCATENATED MODULE: ./packages/flow/src/components/Handle.vue?vue&type=template&id=0f9320b3&
12238
+ // CONCATENATED MODULE: ./packages/flow/src/components/Handle.vue?vue&type=template&id=3b9018af&
12238
12239
 
12239
12240
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Reject.vue?vue&type=template&id=873f59d2&
12240
12241
  var Rejectvue_type_template_id_873f59d2_render = function () {
@@ -13370,12 +13371,18 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
13370
13371
  obj.name = !obj.value ? obj.name + x.showname : obj.name + ',' + x.showname;
13371
13372
  obj.value = obj.value ? obj.value + ',' + x.showid : 'employee-' + x.showid;
13372
13373
  } else {
13373
- data.push({ name: '[部门]' + x.showname, value: 'department-' + x.showid });
13374
+ data.push({
13375
+ name: '[部门]' + x.showname,
13376
+ value: 'department-' + x.showid
13377
+ });
13374
13378
  }
13375
13379
  });
13376
13380
  obj.value && data.push(obj);
13377
13381
  this.nextOtherOrgObjSelect.map(function (x) {
13378
- data.push({ name: '[企业]' + x.showname, value: "enterprise-" + x.showid });
13382
+ data.push({
13383
+ name: '[企业]' + x.showname,
13384
+ value: 'enterprise-' + x.showid
13385
+ });
13379
13386
  });
13380
13387
  return data;
13381
13388
  }
@@ -13740,9 +13747,13 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
13740
13747
  choiceDeptId = _res$data.choiceDeptId,
13741
13748
  pOrgId = _res$data.pOrgId,
13742
13749
  taskExamine = _res$data.taskExamine,
13750
+ currentOrgName = _res$data.currentOrgName,
13751
+ otherOrgName = _res$data.otherOrgName,
13743
13752
  defaultNotificationMessage = _res$data.defaultNotificationMessage,
13744
13753
  defaultNotificationType = _res$data.defaultNotificationType;
13745
13754
 
13755
+ that.currentOrgName = currentOrgName;
13756
+ that.otherOrgName = otherOrgName;
13746
13757
  that.taskExamineInfo = taskExamine;
13747
13758
  that.form.isReturnSubmitter = taskExamine.isReturnSubmitter;
13748
13759
  that.form.isUndertakeReply = taskExamine.isUndertakeReply;
@@ -14038,8 +14049,8 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
14038
14049
 
14039
14050
  var Handle_component = normalizeComponent(
14040
14051
  components_Handlevue_type_script_lang_js_,
14041
- Handlevue_type_template_id_0f9320b3_render,
14042
- Handlevue_type_template_id_0f9320b3_staticRenderFns,
14052
+ Handlevue_type_template_id_3b9018af_render,
14053
+ Handlevue_type_template_id_3b9018af_staticRenderFns,
14043
14054
  false,
14044
14055
  null,
14045
14056
  null,
@@ -16044,19 +16055,24 @@ count_down_src_main.install = function (Vue) {
16044
16055
  };
16045
16056
 
16046
16057
  /* harmony default export */ var count_down = (count_down_src_main);
16047
- // 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=6440bbcc&
16048
- var mainvue_type_template_id_6440bbcc_render = function () {
16058
+ // 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=42762a90&
16059
+ var mainvue_type_template_id_42762a90_render = function () {
16049
16060
  var _vm = this
16050
16061
  var _h = _vm.$createElement
16051
16062
  var _c = _vm._self._c || _h
16052
16063
  return _c(
16053
16064
  "van-form",
16054
16065
  _vm._g(
16055
- _vm._b({ ref: "emForm" }, "van-form", _vm.$attrs, false),
16066
+ _vm._b(
16067
+ { ref: "emForm", staticClass: "em-form" },
16068
+ "van-form",
16069
+ _vm.$attrs,
16070
+ false
16071
+ ),
16056
16072
  _vm.$listeners
16057
16073
  ),
16058
16074
  [
16059
- _vm._l(_vm.contents, function (item, index) {
16075
+ _vm._l(_vm.newContent, function (item, index) {
16060
16076
  return _c(
16061
16077
  "div",
16062
16078
  { key: index },
@@ -16345,6 +16361,30 @@ var mainvue_type_template_id_6440bbcc_render = function () {
16345
16361
  false
16346
16362
  )
16347
16363
  )
16364
+ : item.type == "table"
16365
+ ? _c(
16366
+ "em-table",
16367
+ _vm._b(
16368
+ {
16369
+ staticClass: "em-form-table",
16370
+ style: "margin:" + (item.margin || 10) + "px 0px",
16371
+ attrs: {
16372
+ thead: item.tHead,
16373
+ border: "",
16374
+ form:
16375
+ !item.disabled &&
16376
+ !_vm.disabled &&
16377
+ !item.readonly &&
16378
+ !_vm.readonly &&
16379
+ item.form,
16380
+ },
16381
+ on: { "btn-click": _vm.handleBtnClick },
16382
+ },
16383
+ "em-table",
16384
+ Object.assign({}, _vm.$attrs, item),
16385
+ false
16386
+ )
16387
+ )
16348
16388
  : _vm._e(),
16349
16389
  ],
16350
16390
  1
@@ -16400,11 +16440,11 @@ var mainvue_type_template_id_6440bbcc_render = function () {
16400
16440
  2
16401
16441
  )
16402
16442
  }
16403
- var mainvue_type_template_id_6440bbcc_staticRenderFns = []
16404
- mainvue_type_template_id_6440bbcc_render._withStripped = true
16443
+ var mainvue_type_template_id_42762a90_staticRenderFns = []
16444
+ mainvue_type_template_id_42762a90_render._withStripped = true
16405
16445
 
16406
16446
 
16407
- // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=6440bbcc&
16447
+ // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=42762a90&
16408
16448
 
16409
16449
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=script&lang=js&
16410
16450
  //
@@ -16563,6 +16603,28 @@ mainvue_type_template_id_6440bbcc_render._withStripped = true
16563
16603
  //
16564
16604
  //
16565
16605
  //
16606
+ //
16607
+ //
16608
+ //
16609
+ //
16610
+ //
16611
+ //
16612
+ //
16613
+ //
16614
+ //
16615
+ //
16616
+ //
16617
+ //
16618
+ //
16619
+ //
16620
+ //
16621
+ //
16622
+ //
16623
+ //
16624
+ //
16625
+ //
16626
+ //
16627
+ //
16566
16628
 
16567
16629
  /* harmony default export */ var form_src_mainvue_type_script_lang_js_ = ({
16568
16630
  name: 'EmForm',
@@ -16599,14 +16661,59 @@ mainvue_type_template_id_6440bbcc_render._withStripped = true
16599
16661
  return this.contents.filter(function (x) {
16600
16662
  return x.type === 'submit';
16601
16663
  });
16664
+ },
16665
+
16666
+ newContent: {
16667
+ get: function get() {
16668
+ var tableList = this.contents.filter(function (x) {
16669
+ return x.type == 'table';
16670
+ });
16671
+ if (tableList.length > 0) {
16672
+ tableList.map(function (x) {
16673
+ x.tHead.map(function (z) {
16674
+ if (z.type == 'handle' && z.events) {
16675
+ z.events.map(function (y) {
16676
+ y['native-type'] = 'button';
16677
+ });
16678
+ }
16679
+ });
16680
+ });
16681
+ }
16682
+ return this.contents;
16683
+ },
16684
+ set: function set(val) {
16685
+ return val;
16686
+ }
16602
16687
  }
16603
16688
  },
16689
+ mounted: function mounted() {
16690
+ // this.setBtnType()
16691
+ },
16692
+
16604
16693
  methods: {
16694
+ // setBtnType() {
16695
+ // let tableList = this.contents.filter(x => x.type == 'table');
16696
+ // if (tableList.length > 0) {
16697
+ // tableList.map(x => {
16698
+ // if (x.type == 'handle' && x.events) {
16699
+ // x.events.map(y => {
16700
+ // y['native-type'] = 'button';
16701
+ // });
16702
+ // }
16703
+ // });
16704
+ // }
16705
+ // this.contents
16706
+ // },
16605
16707
  handleChange: function handleChange(key, value) {
16606
16708
  this.$emit('change', key, value);
16607
16709
  },
16710
+ handleBtnClick: function handleBtnClick(val) {
16711
+ this.$emit('table-btn-click', val);
16712
+ },
16713
+ validate: function validate() {
16714
+ this.$refs.emForm.validate();
16715
+ },
16608
16716
  handleClick: function handleClick(val) {
16609
- console.log(this.$refs.emForm.validate(), 'emForm');
16610
16717
  this.$emit('click', { values: this.model, btn: val });
16611
16718
  }
16612
16719
  }
@@ -16623,8 +16730,8 @@ mainvue_type_template_id_6440bbcc_render._withStripped = true
16623
16730
 
16624
16731
  var form_src_main_component = normalizeComponent(
16625
16732
  packages_form_src_mainvue_type_script_lang_js_,
16626
- mainvue_type_template_id_6440bbcc_render,
16627
- mainvue_type_template_id_6440bbcc_staticRenderFns,
16733
+ mainvue_type_template_id_42762a90_render,
16734
+ mainvue_type_template_id_42762a90_staticRenderFns,
16628
16735
  false,
16629
16736
  null,
16630
16737
  null,
@@ -17622,7 +17729,7 @@ if (typeof window !== 'undefined' && window.Vue) {
17622
17729
  }
17623
17730
 
17624
17731
  /* harmony default export */ var src = __webpack_exports__["default"] = ({
17625
- version: '0.1.60',
17732
+ version: '0.1.62',
17626
17733
  install: install,
17627
17734
  Button: packages_button,
17628
17735
  ButtonGroup: button_group,
package/lib/flow.js CHANGED
@@ -3243,8 +3243,8 @@ var StartFlow_component = Object(componentNormalizer["a" /* default */])(
3243
3243
  )
3244
3244
 
3245
3245
  /* harmony default export */ var StartFlow = (StartFlow_component.exports);
3246
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Handle.vue?vue&type=template&id=0f9320b3&
3247
- var Handlevue_type_template_id_0f9320b3_render = function () {
3246
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Handle.vue?vue&type=template&id=3b9018af&
3247
+ var Handlevue_type_template_id_3b9018af_render = function () {
3248
3248
  var _vm = this
3249
3249
  var _h = _vm.$createElement
3250
3250
  var _c = _vm._self._c || _h
@@ -4223,11 +4223,11 @@ var Handlevue_type_template_id_0f9320b3_render = function () {
4223
4223
  1
4224
4224
  )
4225
4225
  }
4226
- var Handlevue_type_template_id_0f9320b3_staticRenderFns = []
4227
- Handlevue_type_template_id_0f9320b3_render._withStripped = true
4226
+ var Handlevue_type_template_id_3b9018af_staticRenderFns = []
4227
+ Handlevue_type_template_id_3b9018af_render._withStripped = true
4228
4228
 
4229
4229
 
4230
- // CONCATENATED MODULE: ./packages/flow/src/components/Handle.vue?vue&type=template&id=0f9320b3&
4230
+ // CONCATENATED MODULE: ./packages/flow/src/components/Handle.vue?vue&type=template&id=3b9018af&
4231
4231
 
4232
4232
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Reject.vue?vue&type=template&id=873f59d2&
4233
4233
  var Rejectvue_type_template_id_873f59d2_render = function () {
@@ -5366,12 +5366,18 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
5366
5366
  obj.name = !obj.value ? obj.name + x.showname : obj.name + ',' + x.showname;
5367
5367
  obj.value = obj.value ? obj.value + ',' + x.showid : 'employee-' + x.showid;
5368
5368
  } else {
5369
- data.push({ name: '[部门]' + x.showname, value: 'department-' + x.showid });
5369
+ data.push({
5370
+ name: '[部门]' + x.showname,
5371
+ value: 'department-' + x.showid
5372
+ });
5370
5373
  }
5371
5374
  });
5372
5375
  obj.value && data.push(obj);
5373
5376
  this.nextOtherOrgObjSelect.map(function (x) {
5374
- data.push({ name: '[企业]' + x.showname, value: "enterprise-" + x.showid });
5377
+ data.push({
5378
+ name: '[企业]' + x.showname,
5379
+ value: 'enterprise-' + x.showid
5380
+ });
5375
5381
  });
5376
5382
  return data;
5377
5383
  }
@@ -5736,9 +5742,13 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
5736
5742
  choiceDeptId = _res$data.choiceDeptId,
5737
5743
  pOrgId = _res$data.pOrgId,
5738
5744
  taskExamine = _res$data.taskExamine,
5745
+ currentOrgName = _res$data.currentOrgName,
5746
+ otherOrgName = _res$data.otherOrgName,
5739
5747
  defaultNotificationMessage = _res$data.defaultNotificationMessage,
5740
5748
  defaultNotificationType = _res$data.defaultNotificationType;
5741
5749
 
5750
+ that.currentOrgName = currentOrgName;
5751
+ that.otherOrgName = otherOrgName;
5742
5752
  that.taskExamineInfo = taskExamine;
5743
5753
  that.form.isReturnSubmitter = taskExamine.isReturnSubmitter;
5744
5754
  that.form.isUndertakeReply = taskExamine.isUndertakeReply;
@@ -6034,8 +6044,8 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
6034
6044
 
6035
6045
  var Handle_component = Object(componentNormalizer["a" /* default */])(
6036
6046
  components_Handlevue_type_script_lang_js_,
6037
- Handlevue_type_template_id_0f9320b3_render,
6038
- Handlevue_type_template_id_0f9320b3_staticRenderFns,
6047
+ Handlevue_type_template_id_3b9018af_render,
6048
+ Handlevue_type_template_id_3b9018af_staticRenderFns,
6039
6049
  false,
6040
6050
  null,
6041
6051
  null,
package/lib/form.js CHANGED
@@ -199,7 +199,7 @@ function normalizeComponent(
199
199
  // ESM COMPAT FLAG
200
200
  __webpack_require__.r(__webpack_exports__);
201
201
 
202
- // 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=6440bbcc&
202
+ // 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=42762a90&
203
203
  var render = function () {
204
204
  var _vm = this
205
205
  var _h = _vm.$createElement
@@ -207,11 +207,16 @@ var render = function () {
207
207
  return _c(
208
208
  "van-form",
209
209
  _vm._g(
210
- _vm._b({ ref: "emForm" }, "van-form", _vm.$attrs, false),
210
+ _vm._b(
211
+ { ref: "emForm", staticClass: "em-form" },
212
+ "van-form",
213
+ _vm.$attrs,
214
+ false
215
+ ),
211
216
  _vm.$listeners
212
217
  ),
213
218
  [
214
- _vm._l(_vm.contents, function (item, index) {
219
+ _vm._l(_vm.newContent, function (item, index) {
215
220
  return _c(
216
221
  "div",
217
222
  { key: index },
@@ -500,6 +505,30 @@ var render = function () {
500
505
  false
501
506
  )
502
507
  )
508
+ : item.type == "table"
509
+ ? _c(
510
+ "em-table",
511
+ _vm._b(
512
+ {
513
+ staticClass: "em-form-table",
514
+ style: "margin:" + (item.margin || 10) + "px 0px",
515
+ attrs: {
516
+ thead: item.tHead,
517
+ border: "",
518
+ form:
519
+ !item.disabled &&
520
+ !_vm.disabled &&
521
+ !item.readonly &&
522
+ !_vm.readonly &&
523
+ item.form,
524
+ },
525
+ on: { "btn-click": _vm.handleBtnClick },
526
+ },
527
+ "em-table",
528
+ Object.assign({}, _vm.$attrs, item),
529
+ false
530
+ )
531
+ )
503
532
  : _vm._e(),
504
533
  ],
505
534
  1
@@ -559,7 +588,7 @@ var staticRenderFns = []
559
588
  render._withStripped = true
560
589
 
561
590
 
562
- // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=6440bbcc&
591
+ // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=42762a90&
563
592
 
564
593
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=script&lang=js&
565
594
  //
@@ -718,6 +747,28 @@ render._withStripped = true
718
747
  //
719
748
  //
720
749
  //
750
+ //
751
+ //
752
+ //
753
+ //
754
+ //
755
+ //
756
+ //
757
+ //
758
+ //
759
+ //
760
+ //
761
+ //
762
+ //
763
+ //
764
+ //
765
+ //
766
+ //
767
+ //
768
+ //
769
+ //
770
+ //
771
+ //
721
772
 
722
773
  /* harmony default export */ var mainvue_type_script_lang_js_ = ({
723
774
  name: 'EmForm',
@@ -754,14 +805,59 @@ render._withStripped = true
754
805
  return this.contents.filter(function (x) {
755
806
  return x.type === 'submit';
756
807
  });
808
+ },
809
+
810
+ newContent: {
811
+ get: function get() {
812
+ var tableList = this.contents.filter(function (x) {
813
+ return x.type == 'table';
814
+ });
815
+ if (tableList.length > 0) {
816
+ tableList.map(function (x) {
817
+ x.tHead.map(function (z) {
818
+ if (z.type == 'handle' && z.events) {
819
+ z.events.map(function (y) {
820
+ y['native-type'] = 'button';
821
+ });
822
+ }
823
+ });
824
+ });
825
+ }
826
+ return this.contents;
827
+ },
828
+ set: function set(val) {
829
+ return val;
830
+ }
757
831
  }
758
832
  },
833
+ mounted: function mounted() {
834
+ // this.setBtnType()
835
+ },
836
+
759
837
  methods: {
838
+ // setBtnType() {
839
+ // let tableList = this.contents.filter(x => x.type == 'table');
840
+ // if (tableList.length > 0) {
841
+ // tableList.map(x => {
842
+ // if (x.type == 'handle' && x.events) {
843
+ // x.events.map(y => {
844
+ // y['native-type'] = 'button';
845
+ // });
846
+ // }
847
+ // });
848
+ // }
849
+ // this.contents
850
+ // },
760
851
  handleChange: function handleChange(key, value) {
761
852
  this.$emit('change', key, value);
762
853
  },
854
+ handleBtnClick: function handleBtnClick(val) {
855
+ this.$emit('table-btn-click', val);
856
+ },
857
+ validate: function validate() {
858
+ this.$refs.emForm.validate();
859
+ },
763
860
  handleClick: function handleClick(val) {
764
- console.log(this.$refs.emForm.validate(), 'emForm');
765
861
  this.$emit('click', { values: this.model, btn: val });
766
862
  }
767
863
  }