eoss-mobiles 0.1.61 → 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.
@@ -16055,19 +16055,24 @@ count_down_src_main.install = function (Vue) {
16055
16055
  };
16056
16056
 
16057
16057
  /* harmony default export */ var count_down = (count_down_src_main);
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=6440bbcc&
16059
- 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 () {
16060
16060
  var _vm = this
16061
16061
  var _h = _vm.$createElement
16062
16062
  var _c = _vm._self._c || _h
16063
16063
  return _c(
16064
16064
  "van-form",
16065
16065
  _vm._g(
16066
- _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
+ ),
16067
16072
  _vm.$listeners
16068
16073
  ),
16069
16074
  [
16070
- _vm._l(_vm.contents, function (item, index) {
16075
+ _vm._l(_vm.newContent, function (item, index) {
16071
16076
  return _c(
16072
16077
  "div",
16073
16078
  { key: index },
@@ -16356,6 +16361,30 @@ var mainvue_type_template_id_6440bbcc_render = function () {
16356
16361
  false
16357
16362
  )
16358
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
+ )
16359
16388
  : _vm._e(),
16360
16389
  ],
16361
16390
  1
@@ -16411,11 +16440,11 @@ var mainvue_type_template_id_6440bbcc_render = function () {
16411
16440
  2
16412
16441
  )
16413
16442
  }
16414
- var mainvue_type_template_id_6440bbcc_staticRenderFns = []
16415
- 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
16416
16445
 
16417
16446
 
16418
- // 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&
16419
16448
 
16420
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&
16421
16450
  //
@@ -16574,6 +16603,28 @@ mainvue_type_template_id_6440bbcc_render._withStripped = true
16574
16603
  //
16575
16604
  //
16576
16605
  //
16606
+ //
16607
+ //
16608
+ //
16609
+ //
16610
+ //
16611
+ //
16612
+ //
16613
+ //
16614
+ //
16615
+ //
16616
+ //
16617
+ //
16618
+ //
16619
+ //
16620
+ //
16621
+ //
16622
+ //
16623
+ //
16624
+ //
16625
+ //
16626
+ //
16627
+ //
16577
16628
 
16578
16629
  /* harmony default export */ var form_src_mainvue_type_script_lang_js_ = ({
16579
16630
  name: 'EmForm',
@@ -16610,14 +16661,59 @@ mainvue_type_template_id_6440bbcc_render._withStripped = true
16610
16661
  return this.contents.filter(function (x) {
16611
16662
  return x.type === 'submit';
16612
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
+ }
16613
16687
  }
16614
16688
  },
16689
+ mounted: function mounted() {
16690
+ // this.setBtnType()
16691
+ },
16692
+
16615
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
+ // },
16616
16707
  handleChange: function handleChange(key, value) {
16617
16708
  this.$emit('change', key, value);
16618
16709
  },
16710
+ handleBtnClick: function handleBtnClick(val) {
16711
+ this.$emit('table-btn-click', val);
16712
+ },
16713
+ validate: function validate() {
16714
+ this.$refs.emForm.validate();
16715
+ },
16619
16716
  handleClick: function handleClick(val) {
16620
- console.log(this.$refs.emForm.validate(), 'emForm');
16621
16717
  this.$emit('click', { values: this.model, btn: val });
16622
16718
  }
16623
16719
  }
@@ -16634,8 +16730,8 @@ mainvue_type_template_id_6440bbcc_render._withStripped = true
16634
16730
 
16635
16731
  var form_src_main_component = normalizeComponent(
16636
16732
  packages_form_src_mainvue_type_script_lang_js_,
16637
- mainvue_type_template_id_6440bbcc_render,
16638
- mainvue_type_template_id_6440bbcc_staticRenderFns,
16733
+ mainvue_type_template_id_42762a90_render,
16734
+ mainvue_type_template_id_42762a90_staticRenderFns,
16639
16735
  false,
16640
16736
  null,
16641
16737
  null,
@@ -17633,7 +17729,7 @@ if (typeof window !== 'undefined' && window.Vue) {
17633
17729
  }
17634
17730
 
17635
17731
  /* harmony default export */ var src = __webpack_exports__["default"] = ({
17636
- version: '0.1.61',
17732
+ version: '0.1.62',
17637
17733
  install: install,
17638
17734
  Button: packages_button,
17639
17735
  ButtonGroup: button_group,
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
  }