eoss-ui 0.5.13 → 0.5.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/lib/button.js +2 -2
  2. package/lib/cascader.js +2 -2
  3. package/lib/checkbox-group.js +39 -21
  4. package/lib/data-table-form.js +3 -2
  5. package/lib/data-table.js +1204 -1516
  6. package/lib/date-picker.js +2 -2
  7. package/lib/dialog.js +9 -9
  8. package/lib/eoss-ui.common.js +1210 -1751
  9. package/lib/flow-list.js +2 -2
  10. package/lib/flow.js +7 -6
  11. package/lib/form.js +4 -9
  12. package/lib/icons.js +2 -2
  13. package/lib/index.js +1 -1
  14. package/lib/input-number.js +2 -2
  15. package/lib/input.js +2 -2
  16. package/lib/label.js +2 -2
  17. package/lib/layout.js +166 -152
  18. package/lib/main.js +6 -5
  19. package/lib/menu.js +2 -2
  20. package/lib/nav.js +9 -9
  21. package/lib/notify.js +2 -2
  22. package/lib/page.js +2 -2
  23. package/lib/pagination.js +2 -2
  24. package/lib/player.js +8 -8
  25. package/lib/qr-code.js +4 -4
  26. package/lib/radio-group.js +43 -21
  27. package/lib/retrial-auth.js +2 -2
  28. package/lib/select-ganged.js +25 -5
  29. package/lib/select.js +41 -18
  30. package/lib/selector-panel.js +6 -5
  31. package/lib/selector.js +4 -4
  32. package/lib/sizer.js +2 -2
  33. package/lib/steps.js +9 -9
  34. package/lib/switch.js +2 -2
  35. package/lib/table-form.js +2 -2
  36. package/lib/tabs-panel.js +2 -2
  37. package/lib/tabs.js +2 -2
  38. package/lib/theme-chalk/data-table.css +1 -1
  39. package/lib/theme-chalk/index.css +1 -1
  40. package/lib/tips.js +2 -2
  41. package/lib/toolbar.js +2 -2
  42. package/lib/tree-group.js +2 -2
  43. package/lib/tree.js +2 -2
  44. package/lib/upload.js +3 -3
  45. package/lib/wujie.js +2 -2
  46. package/lib/wxlogin.js +2 -2
  47. package/package.json +1 -1
  48. package/packages/checkbox-group/src/main.vue +20 -30
  49. package/packages/data-table/src/children.vue +4 -8
  50. package/packages/data-table/src/column.vue +522 -575
  51. package/packages/data-table/src/main.vue +95 -119
  52. package/packages/form/src/main.vue +2 -7
  53. package/packages/radio-group/src/main.vue +20 -30
  54. package/packages/select/src/main.vue +20 -29
  55. package/packages/select-ganged/src/main.vue +1 -3
  56. package/packages/theme-chalk/lib/data-table.css +1 -1
  57. package/packages/theme-chalk/lib/index.css +1 -1
  58. package/packages/theme-chalk/src/data-table.scss +2 -1
  59. package/src/index.js +1 -1
  60. package/packages/data-table/src/column copy.vue +0 -977
  61. package/packages/data-table/src/main copy.vue +0 -1325
  62. package/packages/data-table/src/mixins/table.js +0 -12
@@ -4217,8 +4217,8 @@ src_main.install = function (Vue) {
4217
4217
  };
4218
4218
 
4219
4219
  /* harmony default export */ var button_group = (src_main);
4220
- // 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=667a17b1&
4221
- var mainvue_type_template_id_667a17b1_render = function () {
4220
+ // 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&
4221
+ var mainvue_type_template_id_103e1959_render = function () {
4222
4222
  var _vm = this
4223
4223
  var _h = _vm.$createElement
4224
4224
  var _c = _vm._self._c || _h
@@ -4346,11 +4346,11 @@ var mainvue_type_template_id_667a17b1_render = function () {
4346
4346
  )
4347
4347
  : _vm._e()
4348
4348
  }
4349
- var mainvue_type_template_id_667a17b1_staticRenderFns = []
4350
- mainvue_type_template_id_667a17b1_render._withStripped = true
4349
+ var mainvue_type_template_id_103e1959_staticRenderFns = []
4350
+ mainvue_type_template_id_103e1959_render._withStripped = true
4351
4351
 
4352
4352
 
4353
- // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue?vue&type=template&id=667a17b1&
4353
+ // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue?vue&type=template&id=103e1959&
4354
4354
 
4355
4355
  // EXTERNAL MODULE: ./src/config/api.js
4356
4356
  var api = __webpack_require__(1);
@@ -4377,6 +4377,14 @@ var store_store = {
4377
4377
  };
4378
4378
  window.__store = store_store;
4379
4379
  /* harmony default export */ var utils_store = (store_store);
4380
+ // EXTERNAL MODULE: external "vue"
4381
+ var external_vue_ = __webpack_require__(12);
4382
+ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
4383
+
4384
+ // CONCATENATED MODULE: ./src/utils/bus.js
4385
+
4386
+
4387
+ /* harmony default export */ var bus = (new external_vue_default.a());
4380
4388
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox-group/src/main.vue?vue&type=script&lang=js&
4381
4389
  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; };
4382
4390
 
@@ -4439,15 +4447,13 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4439
4447
 
4440
4448
 
4441
4449
 
4450
+
4442
4451
  /* harmony default export */ var checkbox_group_src_mainvue_type_script_lang_js_ = ({
4443
4452
  name: 'EsCheckboxGroup',
4444
4453
  inheritAttrs: false,
4445
4454
  inject: {
4446
4455
  esForm: {
4447
4456
  default: ''
4448
- },
4449
- sysCodes: {
4450
- default: ''
4451
4457
  }
4452
4458
  },
4453
4459
  props: {
@@ -4604,21 +4610,11 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4604
4610
  handler: function handler() {
4605
4611
  this.url && this.getData(this.url);
4606
4612
  }
4607
- },
4608
- sysCodes: {
4609
- deep: true,
4610
- handler: function handler(val) {
4611
- if (this.canceled && val && (this.sysCode && val[this.sysCode] || this.dataKey && val[this.dataKey])) {
4612
- if (this.parseData) {
4613
- this.options = this.parseData(JSON.parse(JSON.stringify(val[this.sysCode || this.dataKey])));
4614
- } else {
4615
- this.options = JSON.parse(JSON.stringify(val[this.sysCode || this.dataKey]));
4616
- }
4617
- }
4618
- }
4619
4613
  }
4620
4614
  },
4621
- created: function created() {},
4615
+ created: function created() {
4616
+ this.bindEventBus();
4617
+ },
4622
4618
  mounted: function mounted() {},
4623
4619
 
4624
4620
  methods: {
@@ -4646,7 +4642,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4646
4642
  if (res.rCode === 0) {
4647
4643
  _this2.options = JSON.parse(JSON.stringify(res.results));
4648
4644
  if (sysCode || _this2.dataKey) {
4649
- _this2.esForm && _this2.esForm.setSysCodes(sysCode || _this2.dataKey, JSON.parse(JSON.stringify(_this2.options)));
4645
+ bus.$emit(sysCode || _this2.dataKey, JSON.parse(JSON.stringify(_this2.options)));
4650
4646
  utils_store.set(sysCode, JSON.parse(JSON.stringify(res.results)));
4651
4647
  }
4652
4648
  } else {
@@ -4670,7 +4666,19 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4670
4666
  this.$emit('input', this.valueType === 'object' ? res : res[this.valKey]);
4671
4667
  }
4672
4668
  return utils_util["a" /* default */].isObject(res) ? mainvue_type_script_lang_js_extends({}, attrs, res) : attrs;
4669
+ },
4670
+ setOptions: function setOptions(val) {
4671
+ this.options = val;
4672
+ },
4673
+ bindEventBus: function bindEventBus() {
4674
+ bus.$on(this.sysCode || this.dataKey, this.setOptions);
4675
+ },
4676
+ unbindEventBus: function unbindEventBus() {
4677
+ bus.$off(this.sysCode || this.dataKey, this.setOptions);
4673
4678
  }
4679
+ },
4680
+ beforeDestroy: function beforeDestroy() {
4681
+ this.unbindEventBus();
4674
4682
  }
4675
4683
  });
4676
4684
  // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue?vue&type=script&lang=js&
@@ -4685,8 +4693,8 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4685
4693
 
4686
4694
  var checkbox_group_src_main_component = normalizeComponent(
4687
4695
  packages_checkbox_group_src_mainvue_type_script_lang_js_,
4688
- mainvue_type_template_id_667a17b1_render,
4689
- mainvue_type_template_id_667a17b1_staticRenderFns,
4696
+ mainvue_type_template_id_103e1959_render,
4697
+ mainvue_type_template_id_103e1959_staticRenderFns,
4690
4698
  false,
4691
4699
  null,
4692
4700
  null,
@@ -5521,8 +5529,8 @@ clients_src_main.install = function (Vue) {
5521
5529
  };
5522
5530
 
5523
5531
  /* harmony default export */ var clients = (clients_src_main);
5524
- // 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=1d557e20&
5525
- var mainvue_type_template_id_1d557e20_render = function () {
5532
+ // 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=2d512d7f&
5533
+ var mainvue_type_template_id_2d512d7f_render = function () {
5526
5534
  var _vm = this
5527
5535
  var _h = _vm.$createElement
5528
5536
  var _c = _vm._self._c || _h
@@ -5537,7 +5545,6 @@ var mainvue_type_template_id_1d557e20_render = function () {
5537
5545
  expression: "tableLoading",
5538
5546
  },
5539
5547
  ],
5540
- ref: "esTableForm",
5541
5548
  tag: "component",
5542
5549
  staticClass: "es-data-table",
5543
5550
  attrs: {
@@ -5627,103 +5634,17 @@ var mainvue_type_template_id_1d557e20_render = function () {
5627
5634
  [
5628
5635
  _vm._t("prepend"),
5629
5636
  _vm._t("default"),
5630
- _vm.checkbox
5631
- ? _c(
5632
- "el-table-column",
5633
- _vm._b(
5634
- {},
5635
- "el-table-column",
5636
- {
5637
- type: "selection",
5638
- width: "55",
5639
- align: "center",
5640
- fixed: "left",
5641
- selectable: _vm.selectable,
5642
- reserveSelection: _vm.reserveSelection,
5643
- filterIcon: _vm.getIcon(),
5644
- },
5645
- false
5646
- )
5647
- )
5648
- : _vm._e(),
5649
- _vm.numbers
5650
- ? _c(
5651
- "el-table-column",
5652
- _vm._b(
5653
- {},
5654
- "el-table-column",
5655
- {
5656
- type: "index",
5657
- label: "序号",
5658
- width: "70",
5659
- align: "center",
5660
- fixed: "left",
5661
- index:
5662
- _vm.index === true
5663
- ? (_vm.config.pageNum - 1) *
5664
- _vm.config.pageSize +
5665
- 1
5666
- : _vm.index === false
5667
- ? 1
5668
- : _vm.index,
5669
- filterIcon: _vm.getIcon(),
5670
- },
5671
- false
5672
- )
5673
- )
5674
- : _vm._e(),
5675
- _vm._l(_vm.theads, function (items, indexs) {
5637
+ _vm._l(_vm.theads, function (item, index) {
5676
5638
  return [
5677
- items.hide !== true
5639
+ item.hide !== true
5678
5640
  ? [
5679
- items.type === "index"
5641
+ item.type === "index" || item.type === "selection"
5680
5642
  ? _c(
5681
5643
  "el-table-column",
5682
5644
  _vm._b(
5683
- { key: indexs },
5645
+ { key: index },
5684
5646
  "el-table-column",
5685
- Object.assign(
5686
- {},
5687
- {
5688
- type: "index",
5689
- label: "序号",
5690
- width: "70",
5691
- align: "center",
5692
- fixed: "left",
5693
- index:
5694
- _vm.index === true
5695
- ? (_vm.config.pageNum - 1) *
5696
- _vm.config.pageSize +
5697
- 1
5698
- : _vm.index === false
5699
- ? 1
5700
- : _vm.index,
5701
- filterIcon: _vm.getIcon(),
5702
- },
5703
- items
5704
- ),
5705
- false
5706
- )
5707
- )
5708
- : items.type === "selection"
5709
- ? _c(
5710
- "el-table-column",
5711
- _vm._b(
5712
- { key: indexs },
5713
- "el-table-column",
5714
- Object.assign(
5715
- {},
5716
- {
5717
- type: "selection",
5718
- width: "55",
5719
- align: "center",
5720
- fixed: "left",
5721
- selectable: _vm.selectable,
5722
- reserveSelection: _vm.reserveSelection,
5723
- filterIcon: _vm.getIcon(),
5724
- },
5725
- items
5726
- ),
5647
+ item,
5727
5648
  false
5728
5649
  )
5729
5650
  )
@@ -5731,21 +5652,18 @@ var mainvue_type_template_id_1d557e20_render = function () {
5731
5652
  "children",
5732
5653
  _vm._g(
5733
5654
  _vm._b(
5734
- { key: indexs },
5655
+ { key: item.label || item.title },
5735
5656
  "children",
5736
- {
5737
- name: _vm.name,
5738
- item: items,
5739
- width: items.width,
5740
- index: indexs,
5741
- readonly: _vm.readonly,
5742
- optionData: _vm.optionDatas,
5743
- form: _vm.form,
5744
- minWidth: _vm.minWidth,
5745
- filterIcon: _vm.getIcon(items.fixed),
5746
- children: items.children,
5747
- childHead: items.childHead,
5748
- },
5657
+ Object.assign(
5658
+ {},
5659
+ {
5660
+ name: _vm.name,
5661
+ indexs: index,
5662
+ form: _vm.form,
5663
+ optionData: _vm.optionDatas,
5664
+ },
5665
+ item
5666
+ ),
5749
5667
  false
5750
5668
  ),
5751
5669
  {
@@ -5858,14 +5776,14 @@ var mainvue_type_template_id_1d557e20_render = function () {
5858
5776
  1
5859
5777
  )
5860
5778
  }
5861
- var mainvue_type_template_id_1d557e20_staticRenderFns = []
5862
- mainvue_type_template_id_1d557e20_render._withStripped = true
5779
+ var mainvue_type_template_id_2d512d7f_staticRenderFns = []
5780
+ mainvue_type_template_id_2d512d7f_render._withStripped = true
5863
5781
 
5864
5782
 
5865
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=1d557e20&
5783
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=2d512d7f&
5866
5784
 
5867
- // 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=796433ee&
5868
- var childrenvue_type_template_id_796433ee_render = function () {
5785
+ // 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&
5786
+ var childrenvue_type_template_id_29bcbc72_render = function () {
5869
5787
  var _vm = this
5870
5788
  var _h = _vm.$createElement
5871
5789
  var _c = _vm._self._c || _h
@@ -5873,7 +5791,7 @@ var childrenvue_type_template_id_796433ee_render = function () {
5873
5791
  "column",
5874
5792
  _vm._g(_vm._b({}, "column", _vm.$attrs, false), _vm.$listeners),
5875
5793
  [
5876
- _vm.childrens && _vm.childrens.length
5794
+ _vm.childrens.length
5877
5795
  ? [
5878
5796
  _vm._l(_vm.childrens, function (item, index) {
5879
5797
  return [
@@ -5884,13 +5802,8 @@ var childrenvue_type_template_id_796433ee_render = function () {
5884
5802
  _vm._b(
5885
5803
  { key: index },
5886
5804
  "children",
5887
- Object.assign({}, _vm.$attrs, {
5888
- filterIcon: false,
5889
- item: item,
5890
- width: item.width,
5891
- index: index,
5892
- children: item.children,
5893
- childHead: item.childHead,
5805
+ Object.assign({}, _vm.$attrs, item, {
5806
+ indexs: index,
5894
5807
  }),
5895
5808
  false
5896
5809
  ),
@@ -5906,902 +5819,630 @@ var childrenvue_type_template_id_796433ee_render = function () {
5906
5819
  2
5907
5820
  )
5908
5821
  }
5909
- var childrenvue_type_template_id_796433ee_staticRenderFns = []
5910
- childrenvue_type_template_id_796433ee_render._withStripped = true
5822
+ var childrenvue_type_template_id_29bcbc72_staticRenderFns = []
5823
+ childrenvue_type_template_id_29bcbc72_render._withStripped = true
5911
5824
 
5912
5825
 
5913
- // CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=796433ee&
5826
+ // CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=29bcbc72&
5914
5827
 
5915
- // 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=00ff0a77&
5916
- var columnvue_type_template_id_00ff0a77_render = function () {
5828
+ // 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=7363f6a6&
5829
+ var columnvue_type_template_id_7363f6a6_render = function () {
5917
5830
  var _vm = this
5918
5831
  var _h = _vm.$createElement
5919
5832
  var _c = _vm._self._c || _h
5920
- return _vm.showTemplate(_vm.item)
5921
- ? _c("el-table-column", {
5922
- directives: [
5923
- {
5924
- name: "show",
5925
- rawName: "v-show",
5926
- value: !_vm.item.hide,
5927
- expression: "!item.hide",
5928
- },
5929
- ],
5930
- attrs: {
5931
- "filter-icon": _vm.filterIcon,
5932
- label: _vm.item.title || _vm.item.label,
5933
- "label-key": _vm.item.labelKey,
5934
- "value-key": _vm.item.valueKey,
5935
- prop: _vm.item.field || _vm.item.prop,
5936
- fixed: _vm.item.fixed,
5937
- sortable: _vm.item.sortable || _vm.item.sort,
5938
- "column-key": _vm.item.columnKey,
5939
- width: _vm.width,
5940
- "min-width": _vm.item.minWidth,
5941
- "render-header": _vm.item.renderHeader,
5942
- "sort-method": _vm.item.sortMethod,
5943
- "sort-by": _vm.item.sortBy,
5944
- "sort-orders": _vm.item.sortOrders,
5945
- resizable: _vm.item.resizable,
5946
- formatter: _vm.item.formatter,
5947
- "show-overflow-tooltip": _vm.item.showOverflowTooltip,
5948
- align: _vm.item.align,
5949
- "header-align": _vm.item.headerAlign,
5950
- "class-name":
5951
- (_vm.item.className
5952
- ? _vm.item.className +
5953
- (_vm.item.type ? " es-table-" + _vm.item.type + "-box" : "")
5954
- : _vm.item.type
5955
- ? "es-table-" + _vm.item.type + "-box"
5956
- : "") + (_vm.item.showOverflowTooltip ? " es-text-ellipsis" : ""),
5957
- "label-class-name": _vm.item.required
5958
- ? "es-required" +
5959
- (_vm.item.labelClassName ? " " + _vm.item.labelClassName : "")
5960
- : _vm.item.labelClassName,
5961
- selectable: _vm.item.selectable,
5962
- "reserve-selection": _vm.item.reserveSelection,
5963
- filters: _vm.item.filters,
5964
- "filter-placement": _vm.item.filterPlacement,
5965
- "filter-multiple": _vm.item.filterMultiple,
5966
- "filter-method": _vm.item.filterMethod,
5967
- "filtered-value": _vm.item.filteredValue,
5968
- colspan: _vm.item.colspan,
5969
- rowspan: _vm.item.rowspan,
5970
- total: _vm.item.total,
5971
- },
5833
+ return _c(
5834
+ "el-table-column",
5835
+ _vm._b(
5836
+ {
5972
5837
  scopedSlots: _vm._u([
5973
5838
  {
5974
5839
  key: "default",
5975
5840
  fn: function (scope) {
5976
5841
  return [
5977
- _vm.form && _vm.item.type !== "handle"
5842
+ _vm.isForm && !_vm.isReadOnly(scope)
5978
5843
  ? [
5979
- _vm.isReadOnly(_vm.item, scope)
5980
- ? [
5981
- _vm.item.render
5982
- ? _c("expand-dom", {
5983
- attrs: {
5984
- column: _vm.item,
5985
- row: scope.row,
5986
- render: _vm.item.render,
5987
- index: _vm.index,
5988
- },
5989
- })
5990
- : [
5991
- _vm._v(
5992
- _vm._s(_vm.format(scope.row, _vm.item))
5993
- ),
5994
- ],
5995
- ]
5996
- : [
5997
- _vm.item.type === "slot"
5998
- ? _c("section", [_vm._t(_vm.item.prop)], 2)
5999
- : _c(
6000
- "el-form-item",
5844
+ _c(
5845
+ "el-form-item",
5846
+ {
5847
+ attrs: {
5848
+ name: _vm.name,
5849
+ prop: _vm.field || _vm.prop,
5850
+ rules: _vm.isNotRule(scope) ? [] : _vm.rules,
5851
+ index: scope.$index,
5852
+ },
5853
+ },
5854
+ [
5855
+ _vm.type === "select"
5856
+ ? _c(
5857
+ "es-select",
5858
+ _vm._b(
6001
5859
  {
6002
- attrs: {
6003
- name: _vm.name,
6004
- prop: _vm.item.field,
6005
- rules: _vm.isNotRule(_vm.item, scope)
6006
- ? []
6007
- : _vm.item.rules,
6008
- index: scope.$index,
5860
+ on: {
5861
+ blur: function (event) {
5862
+ _vm.handleBlur({
5863
+ item: _vm.config,
5864
+ event: event,
5865
+ data: scope.row,
5866
+ scope: scope,
5867
+ })
5868
+ },
5869
+ focus: function (event) {
5870
+ _vm.handleFocus({
5871
+ item: _vm.config,
5872
+ event: event,
5873
+ data: scope.row,
5874
+ scope: scope,
5875
+ })
5876
+ },
5877
+ change: function (value) {
5878
+ _vm.handleChange({
5879
+ item: _vm.config,
5880
+ name: _vm.field || _vm.prop,
5881
+ value: value,
5882
+ data: scope.row,
5883
+ scope: scope,
5884
+ })
5885
+ },
5886
+ },
5887
+ model: {
5888
+ value: scope.row[_vm.field || _vm.prop],
5889
+ callback: function ($$v) {
5890
+ _vm.$set(
5891
+ scope.row,
5892
+ _vm.field || _vm.prop,
5893
+ $$v
5894
+ )
5895
+ },
5896
+ expression: "scope.row[field || prop]",
6009
5897
  },
6010
5898
  },
6011
- [
6012
- _vm.item.type === "select"
6013
- ? _c(
6014
- "es-select",
6015
- _vm._b(
6016
- {
6017
- attrs: {
6018
- ajax: false,
6019
- data: _vm.item.data
6020
- ? _vm.item.data
6021
- : _vm.item.optionData
6022
- ? scope.row[
6023
- _vm.item.optionData
6024
- ]
6025
- : _vm.optionDatas[
6026
- _vm.item.field ||
6027
- _vm.item.prop
6028
- ],
6029
- },
6030
- on: {
6031
- blur: function (event) {
6032
- _vm.handleBlur({
6033
- item: _vm.item,
6034
- event: event,
6035
- data: scope.row,
6036
- scope: scope,
6037
- })
6038
- },
6039
- focus: function (event) {
6040
- _vm.handleFocus({
6041
- item: _vm.item,
6042
- event: event,
6043
- data: scope.row,
6044
- scope: scope,
6045
- })
6046
- },
6047
- change: function (value) {
6048
- _vm.handleChange({
6049
- item: _vm.item,
6050
- name:
6051
- _vm.item.field ||
6052
- _vm.item.prop,
6053
- value: value,
6054
- data: scope.row,
6055
- scope: scope,
6056
- })
6057
- },
6058
- },
6059
- model: {
6060
- value:
6061
- scope.row[_vm.item.field],
6062
- callback: function ($$v) {
6063
- _vm.$set(
6064
- scope.row,
6065
- _vm.item.field,
6066
- $$v
6067
- )
6068
- },
6069
- expression:
6070
- "scope.row[item.field]",
6071
- },
6072
- },
6073
- "es-select",
6074
- _vm.exclAttribute({
6075
- data: _vm.item,
6076
- attrs: "width",
6077
- }),
6078
- false
6079
- )
5899
+ "es-select",
5900
+ _vm.formOption,
5901
+ false
5902
+ )
5903
+ )
5904
+ : _vm.type == "cascader"
5905
+ ? _c(
5906
+ "es-cascader",
5907
+ _vm._b(
5908
+ {
5909
+ on: {
5910
+ blur: function (event) {
5911
+ _vm.handleBlur({
5912
+ item: _vm.config,
5913
+ event: event,
5914
+ data: scope.row,
5915
+ scope: scope,
5916
+ })
5917
+ },
5918
+ focus: function (event) {
5919
+ _vm.handleFocus({
5920
+ item: _vm.config,
5921
+ event: event,
5922
+ data: scope.row,
5923
+ scope: scope,
5924
+ })
5925
+ },
5926
+ change: function (value) {
5927
+ _vm.handleChange({
5928
+ item: _vm.config,
5929
+ name: _vm.field || _vm.prop,
5930
+ value: value,
5931
+ data: scope.row,
5932
+ scope: scope,
5933
+ })
5934
+ },
5935
+ },
5936
+ model: {
5937
+ value: scope.row[_vm.field || _vm.prop],
5938
+ callback: function ($$v) {
5939
+ _vm.$set(
5940
+ scope.row,
5941
+ _vm.field || _vm.prop,
5942
+ $$v
6080
5943
  )
6081
- : _vm.item.type == "cascader"
6082
- ? _c(
6083
- "es-cascader",
6084
- _vm._b(
6085
- {
6086
- attrs: {
6087
- data: _vm.item.data
6088
- ? _vm.item.data
6089
- : _vm.item.optionData
6090
- ? scope.row[
6091
- _vm.item.optionData
6092
- ]
6093
- : _vm.optionDatas[
6094
- _vm.item.field ||
6095
- _vm.item.prop
6096
- ],
6097
- },
6098
- on: {
6099
- blur: function (event) {
6100
- _vm.handleBlur({
6101
- item: _vm.item,
6102
- event: event,
6103
- data: scope.row,
6104
- scope: scope,
6105
- })
6106
- },
6107
- focus: function (event) {
6108
- _vm.handleFocus({
6109
- item: _vm.item,
6110
- event: event,
6111
- data: scope.row,
6112
- scope: scope,
6113
- })
6114
- },
6115
- change: function (value) {
6116
- _vm.handleChange({
6117
- item: _vm.item,
6118
- name:
6119
- _vm.item.field ||
6120
- _vm.item.prop,
6121
- value: value,
6122
- data: scope.row,
6123
- scope: scope,
6124
- })
6125
- },
6126
- },
6127
- model: {
6128
- value:
6129
- scope.row[_vm.item.field],
6130
- callback: function ($$v) {
6131
- _vm.$set(
6132
- scope.row,
6133
- _vm.item.field,
6134
- $$v
6135
- )
6136
- },
6137
- expression:
6138
- "scope.row[item.field]",
6139
- },
6140
- },
6141
- "es-cascader",
6142
- _vm.exclAttribute({
6143
- data: _vm.item,
6144
- attrs: "width",
6145
- }),
6146
- false
6147
- )
5944
+ },
5945
+ expression: "scope.row[field || prop]",
5946
+ },
5947
+ },
5948
+ "es-cascader",
5949
+ _vm.formOption,
5950
+ false
5951
+ )
5952
+ )
5953
+ : _vm.type === "ganged"
5954
+ ? _c(
5955
+ "es-select-ganged",
5956
+ _vm._b(
5957
+ {
5958
+ attrs: {
5959
+ data: _vm.init(_vm.option, _vm.config),
5960
+ },
5961
+ on: {
5962
+ change: function (value) {
5963
+ _vm.handleChange({
5964
+ name: _vm.field || _vm.prop,
5965
+ value: value,
5966
+ data: scope.row,
5967
+ item: _vm.item,
5968
+ })
5969
+ },
5970
+ },
5971
+ model: {
5972
+ value: scope.row[_vm.field || _vm.prop],
5973
+ callback: function ($$v) {
5974
+ _vm.$set(
5975
+ scope.row,
5976
+ _vm.field || _vm.prop,
5977
+ $$v
6148
5978
  )
6149
- : _vm.item.type === "ganged"
6150
- ? _c(
6151
- "es-select-ganged",
6152
- _vm._b(
6153
- {
6154
- attrs: {
6155
- data: _vm.init(
6156
- _vm.item.data
6157
- ? _vm.item.data
6158
- : _vm.item.optionData
6159
- ? scope.row[
6160
- _vm.item.optionData
6161
- ]
6162
- : _vm.optionDatas[
6163
- _vm.item.field ||
6164
- _vm.item.prop
6165
- ],
6166
- scope.row[_vm.item.field],
6167
- _vm.item
6168
- ),
6169
- },
6170
- on: {
6171
- change: function (value) {
6172
- _vm.handleChange({
6173
- name:
6174
- _vm.item.field ||
6175
- _vm.item.prop,
6176
- value: value,
6177
- data: scope.row,
6178
- item: _vm.item,
6179
- })
6180
- },
6181
- },
6182
- model: {
6183
- value:
6184
- scope.row[_vm.item.field],
6185
- callback: function ($$v) {
6186
- _vm.$set(
6187
- scope.row,
6188
- _vm.item.field,
6189
- $$v
6190
- )
6191
- },
6192
- expression:
6193
- "scope.row[item.field]",
6194
- },
6195
- },
6196
- "es-select-ganged",
6197
- _vm.exclAttribute({
6198
- data: _vm.item,
6199
- attrs: [
6200
- "width",
6201
- "url",
6202
- "sysCode",
6203
- ],
6204
- }),
6205
- false
6206
- )
5979
+ },
5980
+ expression: "scope.row[field || prop]",
5981
+ },
5982
+ },
5983
+ "es-select-ganged",
5984
+ _vm.exclAttribute({
5985
+ data: _vm.config,
5986
+ attrs: ["width", "url", "sysCode"],
5987
+ }),
5988
+ false
5989
+ )
5990
+ )
5991
+ : _vm.type === "radio"
5992
+ ? _c(
5993
+ "es-radio-group",
5994
+ _vm._b(
5995
+ {
5996
+ on: {
5997
+ change: function (value) {
5998
+ _vm.handleChange({
5999
+ item: _vm.config,
6000
+ name: _vm.field || _vm.prop,
6001
+ value: value,
6002
+ data: scope.row,
6003
+ })
6004
+ },
6005
+ },
6006
+ model: {
6007
+ value: scope.row[_vm.field || _vm.prop],
6008
+ callback: function ($$v) {
6009
+ _vm.$set(
6010
+ scope.row,
6011
+ _vm.field || _vm.prop,
6012
+ $$v
6207
6013
  )
6208
- : _vm.item.type === "radio"
6209
- ? _c(
6210
- "es-radio-group",
6211
- _vm._b(
6212
- {
6213
- attrs: {
6214
- data: _vm.item.data
6215
- ? _vm.item.data
6216
- : _vm.item.optionData
6217
- ? scope.row[
6218
- _vm.item.optionData
6219
- ]
6220
- : _vm.optionDatas[
6221
- _vm.item.field ||
6222
- _vm.item.prop
6223
- ],
6224
- ajax: false,
6225
- },
6226
- on: {
6227
- change: function (value) {
6228
- _vm.handleChange({
6229
- item: _vm.item,
6230
- name:
6231
- _vm.item.field ||
6232
- _vm.item.prop,
6233
- value: value,
6234
- data: scope.row,
6235
- })
6236
- },
6237
- },
6238
- model: {
6239
- value:
6240
- scope.row[_vm.item.field],
6241
- callback: function ($$v) {
6242
- _vm.$set(
6243
- scope.row,
6244
- _vm.item.field,
6245
- $$v
6246
- )
6247
- },
6248
- expression:
6249
- "scope.row[item.field]",
6250
- },
6251
- },
6252
- "es-radio-group",
6253
- _vm.exclAttribute({
6254
- data: _vm.item,
6255
- attrs: "width",
6256
- }),
6257
- false
6258
- )
6014
+ },
6015
+ expression: "scope.row[field || prop]",
6016
+ },
6017
+ },
6018
+ "es-radio-group",
6019
+ _vm.formOption,
6020
+ false
6021
+ )
6022
+ )
6023
+ : _vm.type === "checkbox"
6024
+ ? _c(
6025
+ "es-checkbox-group",
6026
+ _vm._b(
6027
+ {
6028
+ on: {
6029
+ change: function (value) {
6030
+ _vm.handleChange({
6031
+ item: _vm.config,
6032
+ name: _vm.field || _vm.prop,
6033
+ value: value,
6034
+ data: scope.row,
6035
+ })
6036
+ },
6037
+ },
6038
+ model: {
6039
+ value: scope.row[_vm.field || _vm.prop],
6040
+ callback: function ($$v) {
6041
+ _vm.$set(
6042
+ scope.row,
6043
+ _vm.field || _vm.prop,
6044
+ $$v
6259
6045
  )
6260
- : _vm.item.type === "checkbox"
6261
- ? _c(
6262
- "es-checkbox-group",
6263
- _vm._b(
6264
- {
6265
- attrs: {
6266
- data: _vm.item.data
6267
- ? _vm.item.data
6268
- : _vm.item.optionData
6269
- ? scope.row[
6270
- _vm.item.optionData
6271
- ]
6272
- : _vm.optionDatas[
6273
- _vm.item.field ||
6274
- _vm.item.prop
6275
- ],
6276
- ajax: false,
6277
- },
6278
- on: {
6279
- change: function (value) {
6280
- _vm.handleChange({
6281
- item: _vm.item,
6282
- name:
6283
- _vm.item.field ||
6284
- _vm.item.prop,
6285
- value: value,
6286
- data: scope.row,
6287
- })
6288
- },
6289
- },
6290
- model: {
6291
- value:
6292
- scope.row[_vm.item.field],
6293
- callback: function ($$v) {
6294
- _vm.$set(
6295
- scope.row,
6296
- _vm.item.field,
6297
- $$v
6298
- )
6299
- },
6300
- expression:
6301
- "scope.row[item.field]",
6302
- },
6303
- },
6304
- "es-checkbox-group",
6305
- _vm.exclAttribute({
6306
- data: _vm.item,
6307
- attrs: "width",
6308
- }),
6309
- false
6310
- )
6046
+ },
6047
+ expression: "scope.row[field || prop]",
6048
+ },
6049
+ },
6050
+ "es-checkbox-group",
6051
+ _vm.formOption,
6052
+ false
6053
+ )
6054
+ )
6055
+ : _vm.type === "switch"
6056
+ ? _c(
6057
+ "es-switch",
6058
+ _vm._b(
6059
+ {
6060
+ on: {
6061
+ change: function (value) {
6062
+ _vm.handleChange({
6063
+ item: _vm.config,
6064
+ name: _vm.field || _vm.prop,
6065
+ value: value,
6066
+ data: scope.row,
6067
+ })
6068
+ },
6069
+ },
6070
+ model: {
6071
+ value: scope.row[_vm.field || _vm.prop],
6072
+ callback: function ($$v) {
6073
+ _vm.$set(
6074
+ scope.row,
6075
+ _vm.field || _vm.prop,
6076
+ $$v
6311
6077
  )
6312
- : _vm.item.type === "switch"
6313
- ? _c(
6314
- "es-switch",
6315
- _vm._b(
6316
- {
6317
- attrs: {
6318
- data: _vm.item.data
6319
- ? _vm.item.data
6320
- : _vm.item.optionData
6321
- ? scope.row[
6322
- _vm.item.optionData
6323
- ]
6324
- : _vm.optionDatas[
6325
- _vm.item.field ||
6326
- _vm.item.prop
6327
- ],
6328
- },
6329
- on: {
6330
- change: function (value) {
6331
- _vm.handleChange({
6332
- item: _vm.item,
6333
- name:
6334
- _vm.item.field ||
6335
- _vm.item.prop,
6336
- value: value,
6337
- data: scope.row,
6338
- })
6339
- },
6340
- },
6341
- model: {
6342
- value:
6343
- scope.row[_vm.item.field],
6344
- callback: function ($$v) {
6345
- _vm.$set(
6346
- scope.row,
6347
- _vm.item.field,
6348
- $$v
6349
- )
6350
- },
6351
- expression:
6352
- "scope.row[item.field]",
6353
- },
6354
- },
6355
- "es-switch",
6356
- _vm.exclAttribute({
6357
- data: _vm.item,
6358
- attrs: "width",
6359
- }),
6360
- false
6361
- )
6078
+ },
6079
+ expression: "scope.row[field || prop]",
6080
+ },
6081
+ },
6082
+ "es-switch",
6083
+ _vm.formOption,
6084
+ false
6085
+ )
6086
+ )
6087
+ : _vm.config.date ||
6088
+ _vm.type == "date" ||
6089
+ _vm.type == "year" ||
6090
+ _vm.type == "month" ||
6091
+ _vm.type == "date" ||
6092
+ _vm.type == "dates" ||
6093
+ _vm.type == "week" ||
6094
+ _vm.type == "datetime" ||
6095
+ _vm.type == "datetimerange" ||
6096
+ _vm.type == "daterange" ||
6097
+ _vm.type == "monthrange" ||
6098
+ _vm.type == "quarter" ||
6099
+ _vm.type == "halfyear"
6100
+ ? _c(
6101
+ "es-date-picker",
6102
+ _vm._b(
6103
+ {
6104
+ on: {
6105
+ blur: function (event) {
6106
+ _vm.handleBlur({
6107
+ item: _vm.config,
6108
+ event: event,
6109
+ data: scope.row,
6110
+ scope: scope,
6111
+ })
6112
+ },
6113
+ focus: function (event) {
6114
+ _vm.handleFocus({
6115
+ item: _vm.config,
6116
+ event: event,
6117
+ data: scope.row,
6118
+ scope: scope,
6119
+ })
6120
+ },
6121
+ change: function (value) {
6122
+ _vm.handleChange({
6123
+ item: _vm.config,
6124
+ name: _vm.field || _vm.prop,
6125
+ value: value,
6126
+ data: scope.row,
6127
+ scope: scope,
6128
+ })
6129
+ },
6130
+ },
6131
+ model: {
6132
+ value: scope.row[_vm.field || _vm.prop],
6133
+ callback: function ($$v) {
6134
+ _vm.$set(
6135
+ scope.row,
6136
+ _vm.field || _vm.prop,
6137
+ $$v
6362
6138
  )
6363
- : _vm.item.date ||
6364
- _vm.item.type == "date" ||
6365
- _vm.item.type == "year" ||
6366
- _vm.item.type == "month" ||
6367
- _vm.item.type == "date" ||
6368
- _vm.item.type == "dates" ||
6369
- _vm.item.type == "week" ||
6370
- _vm.item.type == "datetime" ||
6371
- _vm.item.type == "datetimerange" ||
6372
- _vm.item.type == "daterange" ||
6373
- _vm.item.type == "monthrange" ||
6374
- _vm.item.type == "quarter" ||
6375
- _vm.item.type == "halfyear"
6376
- ? _c(
6377
- "es-date-picker",
6378
- _vm._b(
6379
- {
6380
- on: {
6381
- blur: function (event) {
6382
- _vm.handleBlur({
6383
- item: _vm.item,
6384
- event: event,
6385
- data: scope.row,
6386
- scope: scope,
6387
- })
6388
- },
6389
- focus: function (event) {
6390
- _vm.handleFocus({
6391
- item: _vm.item,
6392
- event: event,
6393
- data: scope.row,
6394
- scope: scope,
6395
- })
6396
- },
6397
- change: function (value) {
6398
- _vm.handleChange({
6399
- item: _vm.item,
6400
- name:
6401
- _vm.item.field ||
6402
- _vm.item.prop,
6403
- value: value,
6404
- data: scope.row,
6405
- scope: scope,
6406
- })
6407
- },
6408
- },
6409
- model: {
6410
- value:
6411
- scope.row[_vm.item.field],
6412
- callback: function ($$v) {
6413
- _vm.$set(
6414
- scope.row,
6415
- _vm.item.field,
6416
- $$v
6417
- )
6418
- },
6419
- expression:
6420
- "scope.row[item.field]",
6421
- },
6422
- },
6423
- "es-date-picker",
6424
- _vm.exclAttribute({
6425
- data: _vm.item,
6426
- attrs: "width",
6427
- }),
6428
- false
6429
- )
6139
+ },
6140
+ expression: "scope.row[field || prop]",
6141
+ },
6142
+ },
6143
+ "es-date-picker",
6144
+ _vm.formOption,
6145
+ false
6146
+ )
6147
+ )
6148
+ : _vm.type == "number"
6149
+ ? _c(
6150
+ "es-input-number",
6151
+ _vm._b(
6152
+ {
6153
+ on: {
6154
+ blur: function (event) {
6155
+ _vm.handleBlur({
6156
+ item: _vm.config,
6157
+ event: event,
6158
+ data: scope.row,
6159
+ scope: scope,
6160
+ })
6161
+ },
6162
+ focus: function (event) {
6163
+ _vm.handleFocus({
6164
+ item: _vm.config,
6165
+ event: event,
6166
+ data: scope.row,
6167
+ scope: scope,
6168
+ })
6169
+ },
6170
+ change: function (value) {
6171
+ _vm.handleChange({
6172
+ item: _vm.config,
6173
+ name: _vm.field || _vm.prop,
6174
+ value: value,
6175
+ data: scope.row,
6176
+ scope: scope,
6177
+ })
6178
+ },
6179
+ },
6180
+ model: {
6181
+ value: scope.row[_vm.field || _vm.prop],
6182
+ callback: function ($$v) {
6183
+ _vm.$set(
6184
+ scope.row,
6185
+ _vm.field || _vm.prop,
6186
+ $$v
6430
6187
  )
6431
- : _vm.item.type == "number"
6432
- ? _c(
6433
- "es-input-number",
6434
- _vm._b(
6435
- {
6436
- on: {
6437
- blur: function (event) {
6438
- _vm.handleBlur({
6439
- item: _vm.item,
6440
- event: event,
6441
- data: scope.row,
6442
- scope: scope,
6443
- })
6444
- },
6445
- focus: function (event) {
6446
- _vm.handleFocus({
6447
- item: _vm.item,
6448
- event: event,
6449
- data: scope.row,
6450
- scope: scope,
6451
- })
6452
- },
6453
- change: function (value) {
6454
- _vm.handleChange({
6455
- item: _vm.item,
6456
- name:
6457
- _vm.item.field ||
6458
- _vm.item.prop,
6459
- value: value,
6460
- data: scope.row,
6461
- scope: scope,
6462
- })
6463
- },
6464
- },
6465
- model: {
6466
- value:
6467
- scope.row[_vm.item.field],
6468
- callback: function ($$v) {
6469
- _vm.$set(
6470
- scope.row,
6471
- _vm.item.field,
6472
- $$v
6473
- )
6474
- },
6475
- expression:
6476
- "scope.row[item.field]",
6477
- },
6478
- },
6479
- "es-input-number",
6480
- _vm.exclAttribute({
6481
- data: _vm.item,
6482
- attrs: "width",
6483
- }),
6484
- false
6188
+ },
6189
+ expression: "scope.row[field || prop]",
6190
+ },
6191
+ },
6192
+ "es-input-number",
6193
+ _vm.formOption,
6194
+ false
6195
+ )
6196
+ )
6197
+ : _vm.type == "selector"
6198
+ ? _c(
6199
+ "es-selector",
6200
+ _vm._g(
6201
+ _vm._b(
6202
+ {
6203
+ on: {
6204
+ change: function (value) {
6205
+ _vm.handleChange({
6206
+ item: _vm.config,
6207
+ name: _vm.field || _vm.prop,
6208
+ value: value,
6209
+ data: scope.row,
6210
+ })
6211
+ },
6212
+ },
6213
+ model: {
6214
+ value: scope.row[_vm.field || _vm.prop],
6215
+ callback: function ($$v) {
6216
+ _vm.$set(
6217
+ scope.row,
6218
+ _vm.field || _vm.prop,
6219
+ $$v
6485
6220
  )
6486
- )
6487
- : _vm.item.type == "selector"
6488
- ? _c(
6489
- "es-selector",
6490
- _vm._g(
6221
+ },
6222
+ expression: "scope.row[field || prop]",
6223
+ },
6224
+ },
6225
+ "es-selector",
6226
+ _vm.formOption,
6227
+ false
6228
+ ),
6229
+ _vm.exclAttribute({
6230
+ data: _vm.events,
6231
+ attrs: "change",
6232
+ })
6233
+ )
6234
+ )
6235
+ : _vm.type === "text" || _vm.type === "textarea"
6236
+ ? [
6237
+ _vm.config.lazy
6238
+ ? [
6239
+ _vm.type === "text"
6240
+ ? _c(
6241
+ "input",
6491
6242
  _vm._b(
6492
6243
  {
6244
+ directives: [
6245
+ {
6246
+ name: "model",
6247
+ rawName: "v-model.lazy",
6248
+ value: scope.row[_vm.field],
6249
+ expression:
6250
+ "scope.row[field]",
6251
+ modifiers: { lazy: true },
6252
+ },
6253
+ ],
6254
+ staticClass: "el-input__inner",
6255
+ domProps: {
6256
+ value: scope.row[_vm.field],
6257
+ },
6493
6258
  on: {
6494
- change: function (value) {
6495
- _vm.handleChange({
6496
- item: _vm.item,
6497
- name:
6498
- _vm.item.field ||
6499
- _vm.item.prop,
6500
- value: value,
6259
+ blur: function (event) {
6260
+ _vm.handleBlur({
6261
+ item: _vm.config,
6262
+ event: event,
6501
6263
  data: scope.row,
6264
+ scope: scope,
6502
6265
  })
6503
6266
  },
6504
- },
6505
- model: {
6506
- value:
6507
- scope.row[_vm.item.field],
6508
- callback: function ($$v) {
6509
- _vm.$set(
6510
- scope.row,
6511
- _vm.item.field,
6512
- $$v
6513
- )
6267
+ focus: function (event) {
6268
+ _vm.handleFocus({
6269
+ item: _vm.config,
6270
+ event: event,
6271
+ data: scope.row,
6272
+ scope: scope,
6273
+ })
6514
6274
  },
6515
- expression:
6516
- "scope.row[item.field]",
6275
+ change: [
6276
+ function ($event) {
6277
+ _vm.$set(
6278
+ scope.row,
6279
+ _vm.field,
6280
+ $event.target.value
6281
+ )
6282
+ },
6283
+ function (value) {
6284
+ _vm.handleChange({
6285
+ item: _vm.config,
6286
+ name:
6287
+ _vm.field || _vm.prop,
6288
+ value: value,
6289
+ data: scope.row,
6290
+ scope: scope,
6291
+ })
6292
+ },
6293
+ ],
6517
6294
  },
6518
6295
  },
6519
- "es-selector",
6520
- _vm.exclAttribute({
6521
- data: _vm.item,
6522
- attrs: "width",
6523
- }),
6296
+ "input",
6297
+ _vm.formOption,
6524
6298
  false
6525
- ),
6526
- _vm.exclAttribute({
6527
- data: _vm.item.events,
6528
- attrs: "change",
6529
- })
6299
+ )
6530
6300
  )
6531
- )
6532
- : _vm.item.type === "text" ||
6533
- _vm.item.type === "textarea"
6534
- ? [
6535
- _vm.item.lazy
6536
- ? [
6537
- _vm.item.type === "text"
6538
- ? _c(
6539
- "input",
6540
- _vm._b(
6541
- {
6542
- directives: [
6543
- {
6544
- name: "model",
6545
- rawName:
6546
- "v-model.lazy",
6547
- value:
6548
- scope.row[
6549
- _vm.item.field
6550
- ],
6551
- expression:
6552
- "scope.row[item.field]",
6553
- modifiers: {
6554
- lazy: true,
6555
- },
6556
- },
6557
- ],
6558
- staticClass:
6559
- "el-input__inner",
6560
- domProps: {
6561
- value:
6562
- scope.row[
6563
- _vm.item.field
6564
- ],
6565
- },
6566
- on: {
6567
- blur: function (
6568
- event
6569
- ) {
6570
- _vm.handleBlur({
6571
- item: _vm.item,
6572
- event: event,
6573
- data: scope.row,
6574
- scope: scope,
6575
- })
6576
- },
6577
- focus: function (
6578
- event
6579
- ) {
6580
- _vm.handleFocus({
6581
- item: _vm.item,
6582
- event: event,
6583
- data: scope.row,
6584
- scope: scope,
6585
- })
6586
- },
6587
- change: [
6588
- function (
6589
- $event
6590
- ) {
6591
- _vm.$set(
6592
- scope.row,
6593
- _vm.item
6594
- .field,
6595
- $event.target
6596
- .value
6597
- )
6598
- },
6599
- function (value) {
6600
- _vm.handleChange(
6601
- {
6602
- item: _vm.item,
6603
- name:
6604
- _vm.item
6605
- .field ||
6606
- _vm.item
6607
- .prop,
6608
- value:
6609
- value,
6610
- data: scope.row,
6611
- scope:
6612
- scope,
6613
- }
6614
- )
6615
- },
6616
- ],
6617
- },
6618
- },
6619
- "input",
6620
- _vm.exclAttribute({
6621
- data: _vm.item,
6622
- attrs: "width",
6623
- }),
6624
- false
6625
- )
6626
- )
6627
- : _c(
6628
- "textarea",
6629
- _vm._b(
6630
- {
6631
- directives: [
6632
- {
6633
- name: "model",
6634
- rawName:
6635
- "v-model.lazy",
6636
- value:
6637
- scope.row[
6638
- _vm.item.field
6639
- ],
6640
- expression:
6641
- "scope.row[item.field]",
6642
- modifiers: {
6643
- lazy: true,
6644
- },
6645
- },
6646
- ],
6647
- staticClass:
6648
- "el-textarea__inner",
6649
- domProps: {
6650
- value:
6651
- scope.row[
6652
- _vm.item.field
6653
- ],
6654
- },
6655
- on: {
6656
- blur: function (
6657
- event
6658
- ) {
6659
- _vm.handleBlur({
6660
- item: _vm.item,
6661
- event: event,
6662
- data: scope.row,
6663
- scope: scope,
6664
- })
6665
- },
6666
- focus: function (
6667
- event
6668
- ) {
6669
- _vm.handleFocus({
6670
- item: _vm.item,
6671
- event: event,
6672
- data: scope.row,
6673
- scope: scope,
6674
- })
6675
- },
6676
- change: [
6677
- function (
6678
- $event
6679
- ) {
6680
- _vm.$set(
6681
- scope.row,
6682
- _vm.item
6683
- .field,
6684
- $event.target
6685
- .value
6686
- )
6687
- },
6688
- function (value) {
6689
- _vm.handleChange(
6690
- {
6691
- item: _vm.item,
6692
- name:
6693
- _vm.item
6694
- .field ||
6695
- _vm.item
6696
- .prop,
6697
- value:
6698
- value,
6699
- data: scope.row,
6700
- scope:
6701
- scope,
6702
- }
6703
- )
6704
- },
6705
- ],
6706
- },
6707
- },
6708
- "textarea",
6709
- _vm.exclAttribute({
6710
- data: _vm.item,
6711
- attrs: "width",
6712
- }),
6713
- false
6714
- )
6715
- ),
6716
- ]
6717
- : _c(
6718
- "es-input",
6719
- _vm._b(
6301
+ : _c(
6302
+ "textarea",
6303
+ _vm._b(
6304
+ {
6305
+ directives: [
6720
6306
  {
6721
- attrs: { scope: scope },
6722
- on: {
6723
- blur: function (event) {
6724
- _vm.handleBlur({
6725
- item: _vm.item,
6726
- event: event,
6727
- data: scope.row,
6728
- scope: scope,
6729
- })
6730
- },
6731
- focus: function (event) {
6732
- _vm.handleFocus({
6733
- item: _vm.item,
6734
- event: event,
6735
- data: scope.row,
6736
- scope: scope,
6737
- })
6738
- },
6739
- change: function (value) {
6740
- _vm.handleChange({
6741
- item: _vm.item,
6742
- name:
6743
- _vm.item.field ||
6744
- _vm.item.prop,
6745
- value: value,
6746
- data: scope.row,
6747
- scope: scope,
6748
- })
6749
- },
6307
+ name: "model",
6308
+ rawName: "v-model.lazy",
6309
+ value: scope.row[_vm.field],
6310
+ expression:
6311
+ "scope.row[field]",
6312
+ modifiers: { lazy: true },
6313
+ },
6314
+ ],
6315
+ staticClass:
6316
+ "el-textarea__inner",
6317
+ domProps: {
6318
+ value: scope.row[_vm.field],
6319
+ },
6320
+ on: {
6321
+ blur: function (event) {
6322
+ _vm.handleBlur({
6323
+ item: _vm.config,
6324
+ event: event,
6325
+ data: scope.row,
6326
+ scope: scope,
6327
+ })
6328
+ },
6329
+ focus: function (event) {
6330
+ _vm.handleFocus({
6331
+ item: _vm.config,
6332
+ event: event,
6333
+ data: scope.row,
6334
+ scope: scope,
6335
+ })
6336
+ },
6337
+ change: [
6338
+ function ($event) {
6339
+ _vm.$set(
6340
+ scope.row,
6341
+ _vm.field,
6342
+ $event.target.value
6343
+ )
6750
6344
  },
6751
- model: {
6752
- value:
6753
- scope.row[
6754
- _vm.item.field
6755
- ],
6756
- callback: function ($$v) {
6757
- _vm.$set(
6758
- scope.row,
6759
- _vm.item.field,
6760
- $$v
6761
- )
6762
- },
6763
- expression:
6764
- "scope.row[item.field]",
6345
+ function (value) {
6346
+ _vm.handleChange({
6347
+ item: _vm.config,
6348
+ name:
6349
+ _vm.field || _vm.prop,
6350
+ value: value,
6351
+ data: scope.row,
6352
+ scope: scope,
6353
+ })
6765
6354
  },
6766
- },
6767
- "es-input",
6768
- _vm.exclAttribute({
6769
- data: _vm.item,
6770
- attrs: "width",
6771
- }),
6772
- false
6773
- )
6774
- ),
6775
- ]
6776
- : _vm._e(),
6777
- ],
6778
- 2
6779
- ),
6780
- ],
6355
+ ],
6356
+ },
6357
+ },
6358
+ "textarea",
6359
+ _vm.formOption,
6360
+ false
6361
+ )
6362
+ ),
6363
+ ]
6364
+ : _c(
6365
+ "es-input",
6366
+ _vm._b(
6367
+ {
6368
+ attrs: { scope: scope },
6369
+ on: {
6370
+ blur: function (event) {
6371
+ _vm.handleBlur({
6372
+ item: _vm.config,
6373
+ event: event,
6374
+ data: scope.row,
6375
+ scope: scope,
6376
+ })
6377
+ },
6378
+ focus: function (event) {
6379
+ _vm.handleFocus({
6380
+ item: _vm.config,
6381
+ event: event,
6382
+ data: scope.row,
6383
+ scope: scope,
6384
+ })
6385
+ },
6386
+ change: function (value) {
6387
+ _vm.handleChange({
6388
+ item: _vm.config,
6389
+ name: _vm.field || _vm.prop,
6390
+ value: value,
6391
+ data: scope.row,
6392
+ scope: scope,
6393
+ })
6394
+ },
6395
+ },
6396
+ model: {
6397
+ value:
6398
+ scope.row[_vm.field || _vm.prop],
6399
+ callback: function ($$v) {
6400
+ _vm.$set(
6401
+ scope.row,
6402
+ _vm.field || _vm.prop,
6403
+ $$v
6404
+ )
6405
+ },
6406
+ expression:
6407
+ "scope.row[field || prop]",
6408
+ },
6409
+ },
6410
+ "es-input",
6411
+ _vm.formOption,
6412
+ false
6413
+ )
6414
+ ),
6415
+ ]
6416
+ : _vm._e(),
6417
+ ],
6418
+ 2
6419
+ ),
6781
6420
  ]
6782
- : _vm._e(),
6783
- _vm.item.type === "handle" && !scope.row.hideHandle
6421
+ : _vm.type === "handle" && !scope.row.hideHandle
6784
6422
  ? _c(
6785
6423
  "es-button-group",
6786
6424
  _vm._b(
6787
6425
  {
6788
6426
  attrs: {
6789
6427
  stop: "",
6790
- contents: _vm.item.contents || _vm.item.events,
6428
+ contents: _vm.contents || _vm.events,
6791
6429
  data: scope.row,
6792
6430
  },
6793
6431
  on: { handleClick: _vm.handleClick },
6794
6432
  model: {
6795
- value: _vm.width,
6433
+ value: _vm.btnWidth,
6796
6434
  callback: function ($$v) {
6797
- _vm.width = $$v
6435
+ _vm.btnWidth = $$v
6798
6436
  },
6799
- expression: "width",
6437
+ expression: "btnWidth",
6800
6438
  },
6801
6439
  },
6802
6440
  "es-button-group",
6803
6441
  _vm.exclAttribute({
6804
- data: _vm.item,
6442
+ data: Object.assign({}, _vm.config, {
6443
+ prop: this.prop,
6444
+ field: this.field,
6445
+ }),
6805
6446
  attrs: [
6806
6447
  "contents",
6807
6448
  "events",
@@ -6814,117 +6455,68 @@ var columnvue_type_template_id_00ff0a77_render = function () {
6814
6455
  false
6815
6456
  )
6816
6457
  )
6817
- : _vm._e(),
6458
+ : _vm.render
6459
+ ? _c("expand-dom", {
6460
+ attrs: {
6461
+ column: Object.assign({}, _vm.config, {
6462
+ prop: this.prop,
6463
+ field: this.field,
6464
+ }),
6465
+ row: scope.row,
6466
+ render: _vm.render,
6467
+ index: _vm.indexs,
6468
+ },
6469
+ })
6470
+ : _vm.dateFormat
6471
+ ? [
6472
+ _vm._v(
6473
+ "\n " +
6474
+ _vm._s(
6475
+ _vm.formatDate(
6476
+ scope.row[_vm.field || _vm.prop],
6477
+ _vm.dateFormat
6478
+ )
6479
+ ) +
6480
+ "\n "
6481
+ ),
6482
+ ]
6483
+ : _c(
6484
+ "span",
6485
+ {
6486
+ style: _vm.styles
6487
+ ? _vm.styles[scope.row[_vm.prop]]
6488
+ : {},
6489
+ },
6490
+ [_vm._v(_vm._s(_vm.format(scope.row)))]
6491
+ ),
6818
6492
  ]
6819
6493
  },
6820
6494
  },
6821
6495
  ]),
6822
- })
6823
- : _c(
6824
- "el-table-column",
6825
- {
6826
- directives: [
6827
- {
6828
- name: "show",
6829
- rawName: "v-show",
6830
- value: !_vm.item.hide,
6831
- expression: "!item.hide",
6832
- },
6833
- ],
6834
- key: _vm.index,
6835
- attrs: {
6836
- "filter-icon": _vm.filterIcon,
6837
- label: _vm.item.title || _vm.item.label,
6838
- "label-key": _vm.item.labelKey,
6839
- "value-key": _vm.item.valueKey,
6840
- prop: _vm.item.field || _vm.item.prop,
6841
- fixed: _vm.item.fixed,
6842
- sortable: _vm.item.sortable || _vm.item.sort,
6843
- index: _vm.item.index,
6844
- "column-key": _vm.item.columnKey,
6845
- width: _vm.item.width,
6846
- "min-width": _vm.item.minWidth,
6847
- "render-header": _vm.item.renderHeader,
6848
- "sort-method": _vm.item.sortMethod,
6849
- "sort-by": _vm.item.sortBy,
6850
- "sort-orders": _vm.item.sortOrders,
6851
- resizable: _vm.item.resizable,
6852
- formatter: _vm.item.formatter,
6853
- "show-overflow-tooltip": _vm.item.showOverflowTooltip,
6854
- align: _vm.item.align,
6855
- "header-align": _vm.item.headerAlign,
6856
- "class-name": _vm.item.className,
6857
- "label-class-name": _vm.item.labelClassName,
6858
- selectable: _vm.item.selectable,
6859
- "reserve-selection": _vm.item.reserveSelection,
6860
- filters: _vm.item.filters,
6861
- "filter-placement": _vm.item.filterPlacement,
6862
- "filter-multiple": _vm.item.filterMultiple,
6863
- "filter-method": _vm.item.filterMethod,
6864
- "filtered-value": _vm.item.filteredValue,
6865
- colspan: _vm.item.colspan,
6866
- rowspan: _vm.item.rowspan,
6867
- total: _vm.item.total,
6868
- },
6869
- scopedSlots: _vm._u([
6870
- {
6871
- key: "default",
6872
- fn: function (scope) {
6873
- return [
6874
- _vm.item.render
6875
- ? _c("expand-dom", {
6876
- attrs: {
6877
- column: _vm.item,
6878
- row: scope.row,
6879
- render: _vm.item.render,
6880
- index: _vm.index,
6881
- },
6882
- })
6883
- : [
6884
- _vm._v(
6885
- _vm._s(
6886
- _vm.item.formatDate
6887
- ? _vm.formatDate(
6888
- scope.row[_vm.item.field || _vm.item.prop],
6889
- _vm.item.formatDate
6890
- )
6891
- : _vm.format(scope.row, _vm.item)
6892
- )
6893
- ),
6894
- ],
6895
- ]
6896
- },
6897
- },
6898
- ]),
6899
- },
6900
- [_vm._t("default")],
6901
- 2
6902
- )
6496
+ },
6497
+ "el-table-column",
6498
+ _vm.config,
6499
+ false
6500
+ ),
6501
+ [_vm._t("default")],
6502
+ 2
6503
+ )
6903
6504
  }
6904
- var columnvue_type_template_id_00ff0a77_staticRenderFns = []
6905
- columnvue_type_template_id_00ff0a77_render._withStripped = true
6505
+ var columnvue_type_template_id_7363f6a6_staticRenderFns = []
6506
+ columnvue_type_template_id_7363f6a6_render._withStripped = true
6906
6507
 
6907
6508
 
6908
- // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=00ff0a77&
6509
+ // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=7363f6a6&
6909
6510
 
6910
6511
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
6911
6512
  var regenerator_ = __webpack_require__(2);
6912
6513
  var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator_);
6913
6514
 
6914
- // CONCATENATED MODULE: ./packages/data-table/src/mixins/table.js
6915
- /* harmony default export */ var mixins_table = ({
6916
- methods: {
6917
- showTemplate: function showTemplate(item) {
6918
- if (item.type) {
6919
- item.type.toLowerCase();
6920
- }
6921
- return 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(item.type) > -1 || ['space', 'slot', 'handle', 'template'].indexOf(item.type) > -1;
6922
- }
6923
- }
6924
- });
6925
6515
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/column.vue?vue&type=script&lang=js&
6926
6516
 
6927
6517
 
6518
+ var columnvue_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; };
6519
+
6928
6520
  function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
6929
6521
 
6930
6522
  //
@@ -7333,158 +6925,6 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7333
6925
  //
7334
6926
  //
7335
6927
  //
7336
- //
7337
- //
7338
- //
7339
- //
7340
- //
7341
- //
7342
- //
7343
- //
7344
- //
7345
- //
7346
- //
7347
- //
7348
- //
7349
- //
7350
- //
7351
- //
7352
- //
7353
- //
7354
- //
7355
- //
7356
- //
7357
- //
7358
- //
7359
- //
7360
- //
7361
- //
7362
- //
7363
- //
7364
- //
7365
- //
7366
- //
7367
- //
7368
- //
7369
- //
7370
- //
7371
- //
7372
- //
7373
- //
7374
- //
7375
- //
7376
- //
7377
- //
7378
- //
7379
- //
7380
- //
7381
- //
7382
- //
7383
- //
7384
- //
7385
- //
7386
- //
7387
- //
7388
- //
7389
- //
7390
- //
7391
- //
7392
- //
7393
- //
7394
- //
7395
- //
7396
- //
7397
- //
7398
- //
7399
- //
7400
- //
7401
- //
7402
- //
7403
- //
7404
- //
7405
- //
7406
- //
7407
- //
7408
- //
7409
- //
7410
- //
7411
- //
7412
- //
7413
- //
7414
- //
7415
- //
7416
- //
7417
- //
7418
- //
7419
- //
7420
- //
7421
- //
7422
- //
7423
- //
7424
- //
7425
- //
7426
- //
7427
- //
7428
- //
7429
- //
7430
- //
7431
- //
7432
- //
7433
- //
7434
- //
7435
- //
7436
- //
7437
- //
7438
- //
7439
- //
7440
- //
7441
- //
7442
- //
7443
- //
7444
- //
7445
- //
7446
- //
7447
- //
7448
- //
7449
- //
7450
- //
7451
- //
7452
- //
7453
- //
7454
- //
7455
- //
7456
- //
7457
- //
7458
- //
7459
- //
7460
- //
7461
- //
7462
- //
7463
- //
7464
- //
7465
- //
7466
- //
7467
- //
7468
- //
7469
- //
7470
- //
7471
- //
7472
- //
7473
- //
7474
- //
7475
- //
7476
- //
7477
- //
7478
- //
7479
- //
7480
- //
7481
- //
7482
- //
7483
- //
7484
- //
7485
- //
7486
- //
7487
-
7488
6928
 
7489
6929
 
7490
6930
 
@@ -7527,38 +6967,52 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7527
6967
  },
7528
6968
  tableReload: {
7529
6969
  default: ''
6970
+ },
6971
+ table: {
6972
+ default: ''
7530
6973
  }
7531
6974
  },
7532
- mixins: [mixins_table],
7533
6975
  props: {
6976
+ form: Boolean,
7534
6977
  readonly: Boolean,
7535
6978
  name: String,
7536
6979
  filterIcon: [Boolean, String],
7537
- item: {
7538
- type: Object,
7539
- default: function _default() {
7540
- return {};
7541
- }
7542
- },
7543
- index: {
6980
+ title: String,
6981
+ label: String,
6982
+ labelKey: String,
6983
+ valueKey: String,
6984
+ field: String,
6985
+ prop: String,
6986
+ sortable: [Boolean, String],
6987
+ sort: [Boolean, String],
6988
+ className: String,
6989
+ labelClassName: String,
6990
+ type: String,
6991
+ required: Boolean,
6992
+ width: String,
6993
+ minWidth: String,
6994
+ hide: Boolean,
6995
+ showOverflowTooltip: Boolean,
6996
+ render: [Function, String],
6997
+ contents: Array,
6998
+ events: [Array, Object],
6999
+ dateFormat: String,
7000
+ styles: [Array, Object],
7001
+ sysCode: String,
7002
+ valueToString: Boolean,
7003
+ symbol: String,
7004
+ rules: [Array, Object],
7005
+ method: String,
7006
+ indexs: {
7544
7007
  type: Number,
7545
7008
  default: null
7546
7009
  },
7547
- minWidth: {
7548
- type: String,
7549
- default: function _default() {
7550
- return this.form ? '180px' : undefined;
7551
- }
7552
- },
7010
+ data: Object,
7553
7011
  optionData: {
7554
7012
  type: Object,
7555
7013
  default: function _default() {
7556
7014
  return {};
7557
7015
  }
7558
- },
7559
- form: {
7560
- type: Boolean,
7561
- default: false
7562
7016
  }
7563
7017
  },
7564
7018
  watch: {
@@ -7567,12 +7021,66 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7567
7021
  handler: function handler(val) {
7568
7022
  this.optionDatas = val;
7569
7023
  }
7024
+ },
7025
+ width: {
7026
+ immediate: true,
7027
+ handler: function handler(val) {
7028
+ if (val) {
7029
+ this.btnWidth = parseInt(val, 10) + 'px';
7030
+ }
7031
+ }
7032
+ }
7033
+ },
7034
+ computed: {
7035
+ config: function config() {
7036
+ var config = {
7037
+ label: this.label || this.title,
7038
+ width: this.btnWidth || this.width
7039
+ };
7040
+
7041
+ if (this.type === 'expand') {
7042
+ config = columnvue_type_script_lang_js_extends({ type: this.type }, config, this.$attrs);
7043
+ return config;
7044
+ }
7045
+ var minWidth = this.label || this.title ? (this.label || this.title).length * 14 + 20 : this.width ? '' : '180px';
7046
+ config = columnvue_type_script_lang_js_extends({}, config, {
7047
+ filterIcon: this.icon,
7048
+ sortable: this.sortable || this.sort,
7049
+ minWidth: this.minWidth || this.table.minWidth || minWidth,
7050
+ className: [this.className ? this.className : '', this.type ? ' es-table-' + this.type + '-box' : '', this.showOverflowTooltip ? ' es-text-ellipsis' : ''].join(' '),
7051
+ labelClassName: [this.labelClassName ? this.labelClassName : '', this.required ? 'es-required' : ''].join(' ')
7052
+ }, this.$attrs);
7053
+ return columnvue_type_script_lang_js_extends({}, config, { prop: this.field || this.prop, field: this.field });
7054
+ },
7055
+ formOption: function formOption() {
7056
+ return columnvue_type_script_lang_js_extends({
7057
+ labelKey: this.sysCode ? 'shortName' : this.labelKey,
7058
+ valueKey: this.sysCode ? 'cciValue' : this.valueKey,
7059
+ rules: this.rules,
7060
+ events: this.events
7061
+ }, this.$attrs, {
7062
+ data: this.option
7063
+ });
7064
+ },
7065
+ icon: function icon() {
7066
+ if (this.filterIcon === true) {
7067
+ return 'es-icon-biao';
7068
+ }
7069
+ return false;
7070
+ },
7071
+ isForm: function isForm() {
7072
+ var type = this.type ? this.type.toLowerCase() : '';
7073
+ 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;
7074
+ return flag;
7075
+ },
7076
+ option: function option() {
7077
+ var field = this.field || this.prop;
7078
+ return this.data ? this.data : this.optionDatas[this.sysCode || field];
7570
7079
  }
7571
7080
  },
7572
- computed: {},
7573
7081
  data: function data() {
7574
7082
  return {
7575
- width: Object.prototype.hasOwnProperty.call(this.item, 'width') ? parseInt(this.item.width, 10) + 'px' : undefined,
7083
+ btnWidth: '',
7576
7084
  searchs: [],
7577
7085
  optionDatas: this.optionData
7578
7086
  };
@@ -7585,7 +7093,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7585
7093
 
7586
7094
  if (data && value) {
7587
7095
  if (Array.isArray(value) && value.length) {
7588
- if (item.url || item.sysCode) {
7096
+ if (item.url || this.sysCode) {
7589
7097
  value.forEach(function () {
7590
7098
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee(val, index) {
7591
7099
  var option, lists, v, queryKey, param, i, params;
@@ -7593,7 +7101,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7593
7101
  while (1) {
7594
7102
  switch (_context.prev = _context.next) {
7595
7103
  case 0:
7596
- if (!(val.hasSub == false || _this.searchs.indexOf(val[item.valueKey] || val.value) > -1)) {
7104
+ if (!(val.hasSub == false || _this.searchs.indexOf(val[_this.valueKey] || val.value) > -1)) {
7597
7105
  _context.next = 2;
7598
7106
  break;
7599
7107
  }
@@ -7601,7 +7109,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7601
7109
  return _context.abrupt('return');
7602
7110
 
7603
7111
  case 2:
7604
- _this.searchs.push(val[item.valueKey] || val.value);
7112
+ _this.searchs.push(val[_this.valueKey] || val.value);
7605
7113
 
7606
7114
  if (!(item.ganged && index < item.ganged - 1 || val.hasSub)) {
7607
7115
  _context.next = 14;
@@ -7612,7 +7120,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7612
7120
  lists = [];
7613
7121
 
7614
7122
  if (option) {
7615
- v = val[item.valueKey] || val.value;
7123
+ v = val[_this.valueKey] || val.value;
7616
7124
 
7617
7125
  lists = option.filter(function (list) {
7618
7126
  return list[item.filtrateKey] == v;
@@ -7632,10 +7140,10 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7632
7140
  param[i] = val[queryKey[i]];
7633
7141
  }
7634
7142
  }
7635
- params = utils_util["a" /* default */].extend(true, item.sysCode ? { sysAppCode: item.sysCode } : {}, item.param ? item.param : {}, param);
7143
+ params = utils_util["a" /* default */].extend(true, _this.sysCode ? { sysAppCode: _this.sysCode } : {}, item.param ? item.param : {}, param);
7636
7144
  _context.next = 14;
7637
7145
  return utils_util["a" /* default */].ajax({
7638
- url: item.sysCode ? api["u" /* findSysCode */] : item.url,
7146
+ url: _this.sysCode ? api["u" /* findSysCode */] : item.url,
7639
7147
  method: _this.method,
7640
7148
  params: params,
7641
7149
  data: params
@@ -7680,73 +7188,69 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7680
7188
 
7681
7189
  return utils_util["a" /* default */].exclAttribute({ data: data, attrs: attrs });
7682
7190
  },
7683
- format: function format(rows, col) {
7191
+ format: function format(rows) {
7684
7192
  var _this2 = this;
7685
7193
 
7686
- var field = col.field || col.prop;
7687
- var data = col.data ? col.data : col.optionData ? rows[col.optionData] : this.optionDatas[field];
7194
+ var field = this.field || this.prop;
7195
+ var data = this.option;
7688
7196
  if (utils_util["a" /* default */].isObject(rows[field])) {
7689
- return rows[field][col.labelKey] || rows[field]['name'] || rows[field]['label'] || rows[field]['shortName'];
7197
+ return rows[field][this.labelKey] || rows[field]['name'] || rows[field]['label'] || rows[field]['shortName'];
7690
7198
  } else if (Array.isArray(rows[field])) {
7691
7199
  var vals = rows[field].map(function (item) {
7692
7200
  if (utils_util["a" /* default */].isObject(item)) {
7693
- return item[col.labelKey] || item['name'] || item['label'] || item['shortName'];
7201
+ return item[_this2.labelKey] || item['name'] || item['label'] || item['shortName'];
7694
7202
  } else {
7695
7203
  if (data && data.length && utils_util["a" /* default */].isObject(data[0])) {
7696
- return _this2.getLabel(data, item, col);
7204
+ return _this2.getLabel(data, item);
7697
7205
  }
7698
7206
  return item;
7699
7207
  }
7700
7208
  });
7701
- return vals.join(col.symbol ? col.symbol : '-');
7209
+ return vals.join(this.symbol ? this.symbol : '-');
7702
7210
  } else {
7703
- if (col.valueToString || col['value-to-string']) {
7211
+ if (this.valueToString) {
7704
7212
  var _vals = rows[field].split(',').map(function (item) {
7705
7213
  if (data && data.length && utils_util["a" /* default */].isObject(data[0])) {
7706
- return _this2.getLabel(data, item, col);
7214
+ return _this2.getLabel(data, item);
7707
7215
  }
7708
7216
  return item;
7709
7217
  });
7710
- return _vals.join(col.symbol ? col.symbol : '-');
7218
+ return _vals.join(this.symbol ? this.symbol : '-');
7711
7219
  } else {
7712
7220
  if (data && data.length && utils_util["a" /* default */].isObject(data[0])) {
7713
- return this.getLabel(data, rows[field], col);
7221
+ return this.getLabel(data, rows[field]);
7714
7222
  }
7715
7223
  return rows[field];
7716
7224
  }
7717
7225
  }
7718
7226
  },
7719
- getLabel: function getLabel(obj, val, col) {
7227
+ getLabel: function getLabel(obj, val) {
7720
7228
  for (var i = 0; i < obj.length; i++) {
7721
7229
  var item = obj[i];
7722
- var value = item[col.valueKey || 'cciValue'] || item['value'];
7230
+ var value = item[this.valueKey || 'cciValue'] || item['value'];
7723
7231
  if (value == val) {
7724
- return item[col.labelKey] || item['name'] || item['label'] || item['shortName'];
7232
+ return item[this.labelKey] || item['name'] || item['label'] || item['shortName'];
7725
7233
  } else if (item.children && item.children.length) {
7726
- return this.getLabel(item.children, val, col);
7234
+ return this.getLabel(item.children, val);
7727
7235
  }
7728
7236
  }
7729
7237
  },
7730
- isReadOnly: function isReadOnly(item, scope) {
7731
- return scope.row.canEdit === false || this.readonly || item.editable === false || scope.row.cantEditKey && scope.row.cantEditKey.indexOf(item.field || item.prop) > -1 || item.readonly;
7238
+ isReadOnly: function isReadOnly(scope) {
7239
+ return scope.row.canEdit === false || this.readonly || this.$attrs.editable === false || scope.row.cantEditKey && scope.row.cantEditKey.indexOf(this.field || this.prop) > -1;
7732
7240
  },
7733
- isNotRule: function isNotRule(item, scope) {
7734
- if (scope.row.canRule === false || scope.row.notRules && scope.row.notRules.indexOf(item.field || item.prop) > -1) {
7735
- this.elForm && this.elForm.clearValidate(item.field || item.prop);
7241
+ isNotRule: function isNotRule(scope) {
7242
+ if (scope.row.canRule === false || scope.row.notRules && scope.row.notRules.indexOf(this.field || this.prop) > -1) {
7243
+ this.elForm && this.elForm.clearValidate(this.field || this.prop);
7736
7244
  return true;
7737
7245
  }
7738
7246
  return false;
7739
7247
  },
7740
7248
  handleBlur: function handleBlur(data) {
7741
- var item = data.item;
7742
-
7743
- item.events && item.events.blur && item.events.blur(data);
7249
+ this.events && this.events.blur && this.events.blur(data);
7744
7250
  this.$emit('formBlur', data);
7745
7251
  },
7746
7252
  handleFocus: function handleFocus(data) {
7747
- var item = data.item;
7748
-
7749
- item.events && item.events.focus && item.events.focus(data);
7253
+ this.events && this.events.focus && this.events.focus(data);
7750
7254
  this.$emit('formFocus', data);
7751
7255
  },
7752
7256
  handleChange: function handleChange(data) {
@@ -7754,16 +7258,16 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7754
7258
 
7755
7259
  var item = data.item;
7756
7260
 
7757
- if (item && item.type == 'ganged') {
7261
+ if (item && this.type == 'ganged') {
7758
7262
  var _data$value = data.value,
7759
7263
  index = _data$value.index,
7760
7264
  value = _data$value.value;
7761
7265
 
7762
- if ((item.url || item.sysCode) && (item.ganged && index > item.ganged - 1 || value.hasSub)) {
7763
- var filte = value[item.valueKey] || value.value;
7266
+ if ((item.url || this.sysCode) && (item.ganged && index > item.ganged - 1 || value.hasSub)) {
7267
+ var filte = value[this.valueKey] || value.value;
7764
7268
  var datas = [];
7765
- if (this.optionDatas[item.field || item.prop][index + 1]) {
7766
- datas = this.optionDatas[item.field || item.prop][index + 1].filter(function (items) {
7269
+ if (this.optionDatas[this.field || this.prop][index + 1]) {
7270
+ datas = this.optionDatas[this.field || this.prop][index + 1].filter(function (items) {
7767
7271
  return filte == items[item.filtrateKey];
7768
7272
  });
7769
7273
  }
@@ -7775,21 +7279,21 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7775
7279
  param[i] = value[queryKey[i]];
7776
7280
  }
7777
7281
  }
7778
- var params = utils_util["a" /* default */].extend(true, item.sysCode ? { sysAppCode: item.sysCode } : {}, item.param ? item.param : {}, param);
7282
+ var params = utils_util["a" /* default */].extend(true, this.sysCode ? { sysAppCode: this.sysCode } : {}, item.param ? item.param : {}, param);
7779
7283
  utils_util["a" /* default */].ajax({
7780
- url: item.sysCode ? api["u" /* findSysCode */] : item.url,
7284
+ url: this.sysCode ? api["u" /* findSysCode */] : item.url,
7781
7285
  method: this.method,
7782
7286
  params: params,
7783
7287
  data: params
7784
7288
  }).then(function (res) {
7785
7289
  if (res.rCode === 0) {
7786
- var options = JSON.parse(JSON.stringify(_this3.optionDatas[item.field || item.prop]));
7290
+ var options = JSON.parse(JSON.stringify(_this3.optionDatas[_this3.sysCode]));
7787
7291
  if (options[index + 1]) {
7788
7292
  options[index + 1] = options[index + 1].concat(JSON.parse(JSON.stringify(res.results)));
7789
7293
  } else {
7790
7294
  options.push(JSON.parse(JSON.stringify(res.results)));
7791
7295
  }
7792
- _this3.$set(_this3.optionDatas, item.field || item.prop, options);
7296
+ _this3.$set(_this3.optionDatas, _this3.sysCode, options);
7793
7297
  } else {
7794
7298
  var msg = res.msg || '系统错误,请联系管理员!';
7795
7299
  _this3.$message.error(msg);
@@ -7802,7 +7306,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7802
7306
  }
7803
7307
  }
7804
7308
  }
7805
- item.events && item.events.change && item.events.change(data);
7309
+ this.events && this.events.change && this.events.change(data);
7806
7310
  this.$emit('formChange', data);
7807
7311
  },
7808
7312
  handleClick: function handleClick(data) {
@@ -7825,8 +7329,8 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7825
7329
 
7826
7330
  var column_component = normalizeComponent(
7827
7331
  src_columnvue_type_script_lang_js_,
7828
- columnvue_type_template_id_00ff0a77_render,
7829
- columnvue_type_template_id_00ff0a77_staticRenderFns,
7332
+ columnvue_type_template_id_7363f6a6_render,
7333
+ columnvue_type_template_id_7363f6a6_staticRenderFns,
7830
7334
  false,
7831
7335
  null,
7832
7336
  null,
@@ -7856,10 +7360,6 @@ var _components;
7856
7360
  //
7857
7361
  //
7858
7362
  //
7859
- //
7860
- //
7861
- //
7862
- //
7863
7363
 
7864
7364
 
7865
7365
  /* harmony default export */ var childrenvue_type_script_lang_js_ = ({
@@ -7871,7 +7371,7 @@ var _components;
7871
7371
  },
7872
7372
  computed: {
7873
7373
  childrens: function childrens() {
7874
- return this.children || this.childHead;
7374
+ return this.children || this.childHead || [];
7875
7375
  }
7876
7376
  }
7877
7377
  });
@@ -7887,8 +7387,8 @@ var _components;
7887
7387
 
7888
7388
  var children_component = normalizeComponent(
7889
7389
  src_childrenvue_type_script_lang_js_,
7890
- childrenvue_type_template_id_796433ee_render,
7891
- childrenvue_type_template_id_796433ee_staticRenderFns,
7390
+ childrenvue_type_template_id_29bcbc72_render,
7391
+ childrenvue_type_template_id_29bcbc72_staticRenderFns,
7892
7392
  false,
7893
7393
  null,
7894
7394
  null,
@@ -8133,23 +7633,43 @@ var sizer_component = normalizeComponent(
8133
7633
  )
8134
7634
 
8135
7635
  /* harmony default export */ var sizer = (sizer_component.exports);
8136
- // EXTERNAL MODULE: external "vue"
8137
- var external_vue_ = __webpack_require__(12);
8138
- var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
8139
-
8140
- // CONCATENATED MODULE: ./src/utils/bus.js
8141
-
8142
-
8143
- /* harmony default export */ var bus = (new external_vue_default.a());
8144
7636
  // EXTERNAL MODULE: external "qs"
8145
7637
  var external_qs_ = __webpack_require__(3);
8146
7638
  var external_qs_default = /*#__PURE__*/__webpack_require__.n(external_qs_);
8147
7639
 
8148
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=script&lang=js&
8149
- var data_table_src_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; };
7640
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/layout/src/item.vue?vue&type=template&id=124bb300&
7641
+ var itemvue_type_template_id_124bb300_render = function () {
7642
+ var _vm = this
7643
+ var _h = _vm.$createElement
7644
+ var _c = _vm._self._c || _h
7645
+ return _c(
7646
+ "div",
7647
+ {
7648
+ ref: "move",
7649
+ staticClass: "es-layout-item",
7650
+ class: _vm.defaultClasss,
7651
+ style: _vm.defaultaStyle,
7652
+ },
7653
+ [
7654
+ _c("es-card"),
7655
+ _c("div", { staticClass: "es-layout-resizable-width" }),
7656
+ _c("div", { staticClass: "es-layout-resizable-height" }),
7657
+ _c("div", { staticClass: "es-layout-resizable" }),
7658
+ ],
7659
+ 1
7660
+ )
7661
+ }
7662
+ var itemvue_type_template_id_124bb300_staticRenderFns = []
7663
+ itemvue_type_template_id_124bb300_render._withStripped = true
8150
7664
 
8151
- var mainvue_type_script_lang_js_components;
8152
7665
 
7666
+ // CONCATENATED MODULE: ./packages/layout/src/item.vue?vue&type=template&id=124bb300&
7667
+
7668
+ // EXTERNAL MODULE: external "interactjs"
7669
+ var external_interactjs_ = __webpack_require__(4);
7670
+ var external_interactjs_default = /*#__PURE__*/__webpack_require__.n(external_interactjs_);
7671
+
7672
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/layout/src/item.vue?vue&type=script&lang=js&
8153
7673
  //
8154
7674
  //
8155
7675
  //
@@ -8163,6 +7683,172 @@ var mainvue_type_script_lang_js_components;
8163
7683
  //
8164
7684
  //
8165
7685
  //
7686
+
7687
+ // import '@interactjs/auto-start';
7688
+ // import '@interactjs/auto-scroll';
7689
+ // import '@interactjs/actions/drag';
7690
+ // import '@interactjs/actions/resize';
7691
+ // import '@interactjs/modifiers';
7692
+ // import '@interactjs/dev-tools';
7693
+
7694
+ /* harmony default export */ var itemvue_type_script_lang_js_ = ({
7695
+ name: 'LayoutItem',
7696
+ components: {},
7697
+ props: {
7698
+ redact: {
7699
+ type: Boolean,
7700
+ default: true
7701
+ },
7702
+ width: {
7703
+ type: String,
7704
+ default: '100%'
7705
+ },
7706
+ height: {
7707
+ type: String,
7708
+ default: '100px'
7709
+ },
7710
+ left: String,
7711
+ top: String,
7712
+ index: Number
7713
+ },
7714
+ computed: {
7715
+ defaultClasss: function defaultClasss() {
7716
+ return {
7717
+ 'es-dragging': this.dragging
7718
+ };
7719
+ },
7720
+ defaultaStyle: function defaultaStyle() {
7721
+ return {
7722
+ width: this.width,
7723
+ height: this.height,
7724
+ left: this.left,
7725
+ top: this.top
7726
+ };
7727
+ },
7728
+ cardStyle: function cardStyle() {
7729
+ return {
7730
+ width: this.width,
7731
+ height: this.height
7732
+ };
7733
+ }
7734
+ },
7735
+ watch: {},
7736
+ data: function data() {
7737
+ return {
7738
+ position: { x: 0, y: 0 },
7739
+ interaction: null,
7740
+ dragging: false
7741
+ };
7742
+ },
7743
+ created: function created() {
7744
+ this.position = {
7745
+ x: parseInt(this.left) || 0,
7746
+ y: parseInt(this.top) || 0
7747
+ };
7748
+ console.log(this.position);
7749
+ },
7750
+ mounted: function mounted() {
7751
+ console.log(external_interactjs_default.a.feedback);
7752
+ this.interaction = external_interactjs_default()(this.$refs.move);
7753
+ this.interaction.draggable({
7754
+ // modifiers: [
7755
+ // interact.modifiers.restrictRect({
7756
+ // restriction: 'parent',
7757
+ // endOnly: false
7758
+ // })
7759
+ // ],
7760
+ // listeners: {
7761
+ // start: (event) => {
7762
+ // this.dragging = true;
7763
+ // console.log(event.type, event.target, 111);
7764
+ // },
7765
+ // move: (event) => {
7766
+ // this.position.x += event.dx;
7767
+ // this.position.y += event.dy;
7768
+ // event.target.style.transform = `translate(${this.position.x}px, ${this.position.y}px)`;
7769
+ // },
7770
+ // end: (event) => {
7771
+ // this.dragging = false;
7772
+ // console.log(event.type, event.target, 222);
7773
+ // }
7774
+ // }
7775
+ inertia: true,
7776
+ //autoScroll: { container: '.container' },
7777
+ listeners: [external_interactjs_default.a.feedback.pointers()],
7778
+ modifiers: [external_interactjs_default.a.modifiers.restrict({
7779
+ restriction: 'html',
7780
+ elementRect: { left: 0, top: 0, right: 1, bottom: 1 }
7781
+ }), external_interactjs_default.a.modifiers.transform(), external_interactjs_default.a.modifiers.spring()]
7782
+ });
7783
+ this.interaction.resizable({
7784
+ modifiers: [
7785
+ // keep the edges inside the parent
7786
+ external_interactjs_default.a.modifiers.restrictEdges({
7787
+ outer: 'parent'
7788
+ }),
7789
+
7790
+ // minimum size
7791
+ external_interactjs_default.a.modifiers.restrictSize({
7792
+ min: { width: 100, height: 100 }
7793
+ })],
7794
+
7795
+ //inertia: true,
7796
+ edges: { top: true, left: true, bottom: true, right: true },
7797
+ listeners: {
7798
+ move: function move(event) {
7799
+ console.log(1212);
7800
+ var _event$target$dataset = event.target.dataset,
7801
+ x = _event$target$dataset.x,
7802
+ y = _event$target$dataset.y;
7803
+
7804
+
7805
+ x = (parseFloat(x) || 0) + event.deltaRect.left;
7806
+ y = (parseFloat(y) || 0) + event.deltaRect.top;
7807
+
7808
+ Object.assign(event.target.style, {
7809
+ width: event.rect.width + 'px',
7810
+ height: event.rect.height + 'px',
7811
+ transform: 'translate(' + x + 'px, ' + y + 'px)'
7812
+ });
7813
+
7814
+ Object.assign(event.target.dataset, { x: x, y: y });
7815
+ }
7816
+ }
7817
+ });
7818
+ },
7819
+
7820
+ methods: {},
7821
+ beforeDestroy: function beforeDestroy() {}
7822
+ });
7823
+ // CONCATENATED MODULE: ./packages/layout/src/item.vue?vue&type=script&lang=js&
7824
+ /* harmony default export */ var src_itemvue_type_script_lang_js_ = (itemvue_type_script_lang_js_);
7825
+ // CONCATENATED MODULE: ./packages/layout/src/item.vue
7826
+
7827
+
7828
+
7829
+
7830
+
7831
+ /* normalize component */
7832
+
7833
+ var item_component = normalizeComponent(
7834
+ src_itemvue_type_script_lang_js_,
7835
+ itemvue_type_template_id_124bb300_render,
7836
+ itemvue_type_template_id_124bb300_staticRenderFns,
7837
+ false,
7838
+ null,
7839
+ null,
7840
+ null
7841
+
7842
+ )
7843
+
7844
+ /* harmony default export */ var src_item = (item_component.exports);
7845
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=script&lang=js&
7846
+ var mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
7847
+
7848
+ var data_table_src_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; };
7849
+
7850
+ var mainvue_type_script_lang_js_components;
7851
+
8166
7852
  //
8167
7853
  //
8168
7854
  //
@@ -8298,57 +7984,7 @@ var mainvue_type_script_lang_js_components;
8298
7984
  //
8299
7985
  //
8300
7986
  //
8301
- //
8302
- //
8303
- //
8304
- //
8305
- //
8306
- //
8307
- //
8308
- //
8309
- //
8310
- //
8311
- //
8312
- //
8313
- //
8314
- //
8315
- //
8316
- //
8317
- //
8318
- //
8319
- //
8320
- //
8321
- //
8322
- //
8323
- //
8324
- //
8325
- //
8326
- //
8327
- //
8328
- //
8329
- //
8330
- //
8331
- //
8332
- //
8333
- //
8334
- //
8335
- //
8336
- //
8337
- //
8338
- //
8339
- //
8340
- //
8341
- //
8342
- //
8343
- //
8344
- //
8345
- //
8346
- //
8347
- //
8348
- //
8349
- //
8350
- //
8351
- //
7987
+
8352
7988
 
8353
7989
 
8354
7990
 
@@ -8461,10 +8097,6 @@ var mainvue_type_script_lang_js_components;
8461
8097
  type: String,
8462
8098
  default: 'id'
8463
8099
  },
8464
- sizer: {
8465
- type: Boolean,
8466
- default: true
8467
- },
8468
8100
  // 无数据时显示的文本
8469
8101
  emptyText: {
8470
8102
  type: String,
@@ -8598,7 +8230,8 @@ var mainvue_type_script_lang_js_components;
8598
8230
  selected: null,
8599
8231
  options: {},
8600
8232
  icon: true,
8601
- show: true
8233
+ show: true,
8234
+ sysCodes: []
8602
8235
  };
8603
8236
  },
8604
8237
 
@@ -8609,12 +8242,33 @@ var mainvue_type_script_lang_js_components;
8609
8242
 
8610
8243
  theads: {
8611
8244
  get: function get() {
8245
+ var thead = [];
8246
+ if (this.checkbox) {
8247
+ thead.push({
8248
+ type: 'selection',
8249
+ width: '55',
8250
+ align: 'center',
8251
+ fixed: 'left',
8252
+ selectable: this.selectable,
8253
+ reserveSelection: this.reserveSelection
8254
+ });
8255
+ }
8256
+ if (this.numbers) {
8257
+ thead.push({
8258
+ type: 'index',
8259
+ label: '序号',
8260
+ width: '70',
8261
+ align: 'center',
8262
+ fixed: 'left',
8263
+ index: this.index === true ? (this.config.pageNum - 1) * this.config.pageSize + 1 : this.index === false ? 1 : this.index
8264
+ });
8265
+ }
8612
8266
  if (this.theadData.length) {
8613
- this.setMinWidth(this.theadData);
8614
- return this.theadData;
8267
+ thead = [].concat(thead, this.theadData);
8268
+ } else {
8269
+ thead = [].concat(thead, this.thead);
8615
8270
  }
8616
- this.setMinWidth(this.thead);
8617
- return this.thead;
8271
+ return thead;
8618
8272
  },
8619
8273
  set: function set(val) {
8620
8274
  return val;
@@ -8663,7 +8317,8 @@ var mainvue_type_script_lang_js_components;
8663
8317
 
8664
8318
  optionDatas: {
8665
8319
  get: function get() {
8666
- return this.optionData ? data_table_src_mainvue_type_script_lang_js_extends({}, this.optionData, this.options) : this.options;
8320
+ var data = this.optionData ? data_table_src_mainvue_type_script_lang_js_extends({}, this.optionData, this.options) : this.options;
8321
+ return data;
8667
8322
  },
8668
8323
  set: function set(val) {
8669
8324
  return val;
@@ -8718,12 +8373,20 @@ var mainvue_type_script_lang_js_components;
8718
8373
  immediate: true,
8719
8374
  deep: true,
8720
8375
  handler: function handler(val) {
8721
- this.config = utils_util["a" /* default */].extend({}, this.config, this.page);
8376
+ if ((typeof val === 'undefined' ? 'undefined' : mainvue_type_script_lang_js_typeof(val)) === 'object') {
8377
+ this.config = utils_util["a" /* default */].extend({}, this.config, val);
8378
+ } else {
8379
+ this.config = {
8380
+ pageNum: 1,
8381
+ pageSize: 20,
8382
+ totalCount: 0
8383
+ };
8384
+ }
8722
8385
  }
8723
8386
  },
8724
8387
  'config.pageNum': function configPageNum() {
8725
8388
  if (this.data.length) {
8726
- this.$refs.oaTable.resetScroll(0, 0);
8389
+ this.$refs.oaTable && this.$refs.oaTable.resetScroll && this.$refs.oaTable.resetScroll(0, 0);
8727
8390
  }
8728
8391
  },
8729
8392
 
@@ -8771,80 +8434,68 @@ var mainvue_type_script_lang_js_components;
8771
8434
 
8772
8435
  return [method, url, external_qs_default.a.stringify(params), external_qs_default.a.stringify(data)].join('&');
8773
8436
  },
8774
- getIcon: function getIcon(res) {
8775
- if (this.sizer && this.icon && res !== 'right' && !this.$slots.prepend && !this.$slots.append && !this.$slots.default && !this.form) {
8776
- this.icon = false;
8777
- return 'es-icon-biao';
8778
- }
8779
- return false;
8780
- },
8781
- setMinWidth: function setMinWidth(obj) {
8782
- var _this2 = this;
8783
-
8784
- obj.forEach(function (item) {
8785
- if (item.childHead && item.childHead.length) {
8786
- _this2.setMinWidth(item.childHead);
8787
- } else if (item.children && item.children.length) {
8788
- _this2.setMinWidth(item.children);
8789
- } else if (!item.width && !item.minWidth && item.title) {
8790
- var width = item.title.length * 14 + 20;
8791
- if (width > 80) {
8792
- _this2.$set(item, 'minWidth', width);
8793
- }
8794
- }
8795
- });
8796
- },
8797
8437
  getOptions: function getOptions(res) {
8798
- var _this3 = this;
8438
+ var _this2 = this;
8799
8439
 
8440
+ var sysCodes = [];
8800
8441
  res.forEach(function (item) {
8801
8442
  if (item.sysCode || item.url) {
8443
+ item.sysCode && sysCodes.push(item.sysCode);
8802
8444
  var params = utils_util["a" /* default */].extend({}, item.sysCode ? { sysAppCode: item.sysCode } : {}, item.param ? item.param : {});
8803
- var key = _this3.getRequestKey({
8804
- method: _this3.method,
8445
+ var key = _this2.getRequestKey({
8446
+ method: _this2.method,
8805
8447
  url: item.sysCode ? api["u" /* findSysCode */] : item.url,
8806
8448
  params: params,
8807
8449
  data: {}
8808
8450
  });
8809
- if (!_this3.requests.includes(key)) {
8451
+ if (!_this2.requests.includes(key)) {
8810
8452
  utils_util["a" /* default */].ajax({
8811
8453
  url: item.sysCode ? api["u" /* findSysCode */] : item.url,
8812
- method: _this3.method,
8454
+ method: _this2.method,
8813
8455
  params: params,
8814
8456
  data: params
8815
8457
  }).then(function (res) {
8816
8458
  if (res.rCode === 0) {
8817
8459
  if (item.type == 'ganged') {
8818
- _this3.$set(_this3.options, item.field || item.prop, [JSON.parse(JSON.stringify(res.results))]);
8460
+ _this2.$set(_this2.options, item.sysCode || item.field || item.prop, [JSON.parse(JSON.stringify(res.results))]);
8461
+ if (item.sysCode) {
8462
+ bus.$emit(item.sysCode, JSON.parse(JSON.stringify(_this2.options[item.sysCode])));
8463
+ }
8819
8464
  } else {
8820
- _this3.$set(_this3.options, item.field || item.prop, JSON.parse(JSON.stringify(res.results)));
8465
+ _this2.$set(_this2.options, item.sysCode || item.field || item.prop, JSON.parse(JSON.stringify(res.results)));
8466
+ if (item.sysCode) {
8467
+ bus.$emit(item.sysCode, JSON.parse(JSON.stringify(res.results)));
8468
+ }
8821
8469
  }
8822
- _this3.requests.push(key);
8470
+ _this2.requests.push(key);
8823
8471
  } else {
8824
8472
  var msg = res.msg || '系统错误,请联系管理员!';
8825
- _this3.$message.error(msg);
8473
+ _this2.$message.error(msg);
8826
8474
  }
8827
8475
  }).catch(function (err) {
8828
8476
  if (err.message && err.message !== 'canceled') {
8829
- _this3.$message.error(err.message);
8477
+ _this2.$message.error(err.message);
8830
8478
  }
8831
8479
  });
8832
8480
  }
8833
8481
  } else {
8834
8482
  if (item.childHead && item.childHead.length) {
8835
- _this3.getOptions(item.childHead);
8483
+ _this2.getOptions(item.childHead);
8836
8484
  }
8837
8485
  if (item.children && item.children.length) {
8838
- _this3.getOptions(item.children);
8486
+ _this2.getOptions(item.children);
8839
8487
  }
8840
8488
  }
8841
8489
  });
8490
+ this.sysCodes = sysCodes;
8491
+
8492
+ this.bindEventBus();
8842
8493
  },
8843
8494
  checkObject: function checkObject(item) {
8844
8495
  return utils_util["a" /* default */].getObjectType(item) === 'object';
8845
8496
  },
8846
8497
  chekOpenTotalArea: function chekOpenTotalArea() {
8847
- var _this4 = this;
8498
+ var _this3 = this;
8848
8499
 
8849
8500
  if (this.total || this.showSummary) {
8850
8501
  this.showTotal = true;
@@ -8853,7 +8504,7 @@ var mainvue_type_script_lang_js_components;
8853
8504
  var arr = JSON.parse(JSON.stringify(this.theads));
8854
8505
  arr.forEach(function (item) {
8855
8506
  if (item.total) {
8856
- _this4.showTotal = true;
8507
+ _this3.showTotal = true;
8857
8508
  }
8858
8509
  });
8859
8510
  },
@@ -8892,27 +8543,27 @@ var mainvue_type_script_lang_js_components;
8892
8543
  });
8893
8544
  },
8894
8545
  checkSelect: function checkSelect(newVal) {
8895
- var _this5 = this;
8546
+ var _this4 = this;
8896
8547
 
8897
8548
  this.$nextTick(function () {
8898
8549
  if (utils_util["a" /* default */].getObjectType(newVal) === 'array') {
8899
8550
  newVal.forEach(function (row) {
8900
8551
  if (utils_util["a" /* default */].isObject(row)) {
8901
- _this5.$refs.oaTable.toggleRowSelection(row, true);
8902
- } else _this5.datas.forEach(function (item) {
8903
- if (item[_this5.checkedKey] === row) {
8904
- _this5.$refs.oaTable.toggleRowSelection(item, true);
8552
+ _this4.$refs.oaTable.toggleRowSelection(row, true);
8553
+ } else _this4.datas.forEach(function (item) {
8554
+ if (item[_this4.checkedKey] === row) {
8555
+ _this4.$refs.oaTable.toggleRowSelection(item, true);
8905
8556
  return;
8906
8557
  }
8907
8558
  });
8908
8559
  });
8909
8560
  } else if (newVal === true) {
8910
- _this5.toggleAllSelection();
8561
+ _this4.toggleAllSelection();
8911
8562
  }
8912
8563
  });
8913
8564
  },
8914
8565
  getTheads: function getTheads() {
8915
- var _this6 = this;
8566
+ var _this5 = this;
8916
8567
 
8917
8568
  utils_util["a" /* default */].ajax({
8918
8569
  url: this.thead,
@@ -8924,27 +8575,27 @@ var mainvue_type_script_lang_js_components;
8924
8575
  if (res.rCode === 0) {
8925
8576
  var results = res.results;
8926
8577
  if (Array.isArray(results)) {
8927
- _this6.theadData = results;
8578
+ _this5.theadData = results;
8928
8579
  } else {
8929
- _this6.theadData = results.theadData || [];
8930
- _this6.list = results.data || results.records || [];
8931
- _this6.config.totalCount = results.count || results.total || results.totalCount;
8932
- _this6.getOptions(_this6.theadData);
8580
+ _this5.theadData = results.theadData || [];
8581
+ _this5.list = results.data || results.records || [];
8582
+ _this5.config.totalCount = results.count || results.total || results.totalCount;
8583
+ _this5.getOptions(_this5.theadData);
8933
8584
  }
8934
8585
  } else {
8935
- _this6.theadData = [];
8586
+ _this5.theadData = [];
8936
8587
  var msg = res.msg || '系统错误,请联系管理员!';
8937
- _this6.$message.error(msg);
8588
+ _this5.$message.error(msg);
8938
8589
  }
8939
- _this6.$emit('success', res);
8590
+ _this5.$emit('success', res);
8940
8591
  }).catch(function (err) {
8941
8592
  if (err.message && err.message !== 'canceled') {
8942
- _this6.$message.error(err.message);
8593
+ _this5.$message.error(err.message);
8943
8594
  }
8944
8595
  });
8945
8596
  },
8946
8597
  getTableData: function getTableData(res) {
8947
- var _this7 = this;
8598
+ var _this6 = this;
8948
8599
 
8949
8600
  var where = void 0;
8950
8601
  var first = void 0;
@@ -8974,28 +8625,28 @@ var mainvue_type_script_lang_js_components;
8974
8625
  params: reqData,
8975
8626
  data: reqData
8976
8627
  }).then(function (res) {
8977
- _this7.tableLoading = false;
8628
+ _this6.tableLoading = false;
8978
8629
  if (res.rCode === 0 || res.status === 'success') {
8979
- _this7.$refs.oaTable.resetScroll(0, 0);
8980
- var results = _this7.parseData !== undefined ? _this7.parseData(res.results || res.data || res) : res.results || res.data;
8981
- _this7.list = results.data || results.records || results.list || [];
8982
- _this7.config.totalCount = results.count || results.total || results.totalCount;
8983
- _this7.checked && _this7.$nextTick(function () {
8984
- _this7.checkSelect(_this7.checked);
8630
+ _this6.$refs.oaTable.resetScroll(0, 0);
8631
+ var results = _this6.parseData !== undefined ? _this6.parseData(res.results || res.data || res) : res.results || res.data;
8632
+ _this6.list = results.data || results.records || results.list || [];
8633
+ _this6.config.totalCount = results.count || results.total || results.totalCount;
8634
+ _this6.checked && _this6.$nextTick(function () {
8635
+ _this6.checkSelect(_this6.checked);
8985
8636
  });
8986
8637
  } else {
8987
- _this7.list = [];
8638
+ _this6.list = [];
8988
8639
  //this.tableHeight = false;
8989
8640
  var msg = res.msg || '系统错误,请联系管理员!';
8990
- _this7.$message.error(msg);
8641
+ _this6.$message.error(msg);
8991
8642
  }
8992
- _this7.$emit('success', res);
8643
+ _this6.$emit('success', res);
8993
8644
  }).catch(function (err) {
8994
8645
  //this.tableHeight = false;
8995
8646
  if (err.message && err.message !== 'canceled') {
8996
- _this7.$message.error(err.message);
8647
+ _this6.$message.error(err.message);
8997
8648
  }
8998
- _this7.tableLoading = false;
8649
+ _this6.tableLoading = false;
8999
8650
  });
9000
8651
  },
9001
8652
  selectionChange: function selectionChange(data) {
@@ -9040,7 +8691,7 @@ var mainvue_type_script_lang_js_components;
9040
8691
  this.$emit('change', data, this.datas);
9041
8692
  },
9042
8693
  handleAjax: function handleAjax(handle, row) {
9043
- var _this8 = this;
8694
+ var _this7 = this;
9044
8695
 
9045
8696
  this.changeLoading(true, handle.text + '\u4E2D...');
9046
8697
  var params = handle.param || {};
@@ -9096,9 +8747,9 @@ var mainvue_type_script_lang_js_components;
9096
8747
  method: handle.method,
9097
8748
  format: handle.format
9098
8749
  }).then(function (res) {
9099
- _this8.changeLoading(false);
8750
+ _this7.changeLoading(false);
9100
8751
  if (res.rCode === 0) {
9101
- _this8.$message({
8752
+ _this7.$message({
9102
8753
  message: handle.text + '\u6210\u529F',
9103
8754
  duration: 2000,
9104
8755
  type: 'success',
@@ -9106,17 +8757,17 @@ var mainvue_type_script_lang_js_components;
9106
8757
  var first = Object.prototype.hasOwnProperty.call(handle, 'first') ? handle.first : false;
9107
8758
  var reload = handle.reload || true;
9108
8759
  if (reload) {
9109
- _this8.reload({}, first);
8760
+ _this7.reload({}, first);
9110
8761
  }
9111
8762
  }
9112
8763
  });
9113
8764
  } else {
9114
- _this8.$message.error(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
8765
+ _this7.$message.error(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
9115
8766
  }
9116
8767
  }).catch(function (err) {
9117
- _this8.changeLoading(false);
8768
+ _this7.changeLoading(false);
9118
8769
  if (err.message && err.message !== 'canceled') {
9119
- _this8.$message.error(err.message);
8770
+ _this7.$message.error(err.message);
9120
8771
  }
9121
8772
  });
9122
8773
  },
@@ -9141,7 +8792,7 @@ var mainvue_type_script_lang_js_components;
9141
8792
  return data_table_src_mainvue_type_script_lang_js_extends({}, obj, item);
9142
8793
  },
9143
8794
  handleClick: function handleClick(res) {
9144
- var _this9 = this;
8795
+ var _this8 = this;
9145
8796
 
9146
8797
  var row = res.row,
9147
8798
  handle = res.handle;
@@ -9177,7 +8828,7 @@ var mainvue_type_script_lang_js_components;
9177
8828
  cancelButtonText: '取消',
9178
8829
  type: 'warning'
9179
8830
  }).then(function () {
9180
- _this9.handleAjax(handle, rows);
8831
+ _this8.handleAjax(handle, rows);
9181
8832
  }).catch(function () {});
9182
8833
  } else {
9183
8834
  this.handleAjax(handle, rows);
@@ -9265,7 +8916,7 @@ var mainvue_type_script_lang_js_components;
9265
8916
  var type = ['selection', 'index', 'expand'];
9266
8917
  thead = thead.map(function (item) {
9267
8918
  return item.filter(function (ele) {
9268
- return !type.includes(ele.type) && ele.label !== text && !_this9.exportExcludeLabel.includes(ele.label);
8919
+ return !type.includes(ele.type) && ele.label !== text && !_this8.exportExcludeLabel.includes(ele.label);
9269
8920
  });
9270
8921
  });
9271
8922
  utils_util["a" /* default */].exportXls({
@@ -9371,47 +9022,47 @@ var mainvue_type_script_lang_js_components;
9371
9022
  }
9372
9023
  },
9373
9024
  resetHeight: function resetHeight(warn) {
9374
- var _this10 = this;
9025
+ var _this9 = this;
9375
9026
 
9376
9027
  this.$nextTick(function () {
9377
- if (_this10.full && !_this10.height && !_this10.maxHeight) {
9378
- var height = _this10.$el.parentNode.offsetHeight;
9028
+ if (_this9.full && !_this9.height && !_this9.maxHeight) {
9029
+ var height = _this9.$el.parentNode.offsetHeight;
9379
9030
  if (height) {
9380
- height = parseInt(utils_util["a" /* default */].getStyle(_this10.$el.parentNode, 'height', '%'), 10);
9381
- height = (height == NaN ? 0 : height) - parseInt(utils_util["a" /* default */].getStyle(_this10.$el.parentNode, 'padding-top'), 10) - parseInt(utils_util["a" /* default */].getStyle(_this10.$el.parentNode, 'padding-bottom'), 10);
9382
- for (var i = 0; i < _this10.$el.parentNode.childNodes.length; i++) {
9383
- var ele = _this10.$el.parentNode.childNodes[i];
9384
- if (ele !== _this10.$el && ele.offsetHeight !== undefined) {
9031
+ height = parseInt(utils_util["a" /* default */].getStyle(_this9.$el.parentNode, 'height', '%'), 10);
9032
+ height = (height == NaN ? 0 : height) - parseInt(utils_util["a" /* default */].getStyle(_this9.$el.parentNode, 'padding-top'), 10) - parseInt(utils_util["a" /* default */].getStyle(_this9.$el.parentNode, 'padding-bottom'), 10);
9033
+ for (var i = 0; i < _this9.$el.parentNode.childNodes.length; i++) {
9034
+ var ele = _this9.$el.parentNode.childNodes[i];
9035
+ if (ele !== _this9.$el && ele.offsetHeight !== undefined) {
9385
9036
  height = height - ele.offsetHeight - parseInt(utils_util["a" /* default */].getStyle(ele, 'margin-top'), 10) - parseInt(utils_util["a" /* default */].getStyle(ele, 'margin-bottom'), 10);
9386
9037
  }
9387
9038
  }
9388
- height -= _this10.showToolbar ? 45 : 0;
9389
- height -= _this10.page === false ? 0 : 46;
9390
- height -= _this10.title ? _this10.$refs.title.offsetHeight : 0;
9391
- height -= parseInt(utils_util["a" /* default */].getStyle(_this10.$refs.esTableContent, 'padding-top'), 10);
9392
- height -= parseInt(utils_util["a" /* default */].getStyle(_this10.$refs.esTableContent, 'padding-bottom'), 10);
9393
- var emptyText = _this10.$refs.esTableContent.querySelector('.el-table__empty-text');
9039
+ height -= _this9.showToolbar ? 45 : 0;
9040
+ height -= _this9.page === false ? 0 : 46;
9041
+ height -= _this9.title ? _this9.$refs.title.offsetHeight : 0;
9042
+ height -= parseInt(utils_util["a" /* default */].getStyle(_this9.$refs.esTableContent, 'padding-top'), 10);
9043
+ height -= parseInt(utils_util["a" /* default */].getStyle(_this9.$refs.esTableContent, 'padding-bottom'), 10);
9044
+ var emptyText = _this9.$refs.esTableContent.querySelector('.el-table__empty-text');
9394
9045
  var eht = 0;
9395
9046
  if (emptyText) {
9396
9047
  eht = emptyText.offsetHeight;
9397
- var thead = _this10.$refs.esTableContent.querySelector('.el-table__header');
9048
+ var thead = _this9.$refs.esTableContent.querySelector('.el-table__header');
9398
9049
  thead && (eht += thead.offsetHeight);
9399
9050
  }
9400
9051
  if (height > 1 && height - eht > 1) {
9401
- _this10.tableHeight = height;
9052
+ _this9.tableHeight = height;
9402
9053
  } else {
9403
- console.warn(_this10.$el.parentNode, '\u83B7\u53D6\u4E0D\u5230\u9AD8\u5EA6\uFF01');
9054
+ console.warn(_this9.$el.parentNode, '\u83B7\u53D6\u4E0D\u5230\u9AD8\u5EA6\uFF01');
9404
9055
  }
9405
9056
  } else if (!warn) {
9406
9057
  setTimeout(function () {
9407
- _this10.resetHeight(true);
9058
+ _this9.resetHeight(true);
9408
9059
  }, 1000);
9409
9060
  }
9410
9061
  }
9411
9062
  });
9412
9063
  },
9413
9064
  validate: function validate(callback) {
9414
- var form = this.elForm || this.$refs.esTableForm;
9065
+ var form = this.elForm || this.$el;
9415
9066
  form.validate(function (valid) {
9416
9067
  callback(valid);
9417
9068
  });
@@ -9432,13 +9083,32 @@ var mainvue_type_script_lang_js_components;
9432
9083
  this.$emit('sort-change', res);
9433
9084
  },
9434
9085
  mergeThead: function mergeThead(res) {
9435
- var _this11 = this;
9086
+ var _this10 = this;
9436
9087
 
9437
9088
  this.theadData = res;
9438
9089
  this.icon = true;
9439
9090
  setTimeout(function () {
9440
- _this11.show = true;
9091
+ _this10.show = true;
9441
9092
  }, 100);
9093
+ },
9094
+ setOptions: function setOptions(val, sysCode) {
9095
+ this.$set(this.options, sysCode, val);
9096
+ },
9097
+ bindEventBus: function bindEventBus() {
9098
+ var _this11 = this;
9099
+
9100
+ this.sysCodes.forEach(function (item) {
9101
+ bus.$on(item, function (val) {
9102
+ _this11.setOptions(val, item);
9103
+ });
9104
+ });
9105
+ },
9106
+ unbindEventBus: function unbindEventBus() {
9107
+ var _this12 = this;
9108
+
9109
+ this.sysCodes.forEach(function (item) {
9110
+ bus.$off(item, _this12.setOptions);
9111
+ });
9442
9112
  }
9443
9113
  }
9444
9114
  });
@@ -9454,8 +9124,8 @@ var mainvue_type_script_lang_js_components;
9454
9124
 
9455
9125
  var data_table_src_main_component = normalizeComponent(
9456
9126
  packages_data_table_src_mainvue_type_script_lang_js_,
9457
- mainvue_type_template_id_1d557e20_render,
9458
- mainvue_type_template_id_1d557e20_staticRenderFns,
9127
+ mainvue_type_template_id_2d512d7f_render,
9128
+ mainvue_type_template_id_2d512d7f_staticRenderFns,
9459
9129
  false,
9460
9130
  null,
9461
9131
  null,
@@ -12853,8 +12523,8 @@ error_page_src_main.install = function (Vue) {
12853
12523
  };
12854
12524
 
12855
12525
  /* harmony default export */ var error_page = (error_page_src_main);
12856
- // 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=2fd814fb&
12857
- var mainvue_type_template_id_2fd814fb_render = function () {
12526
+ // 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=14ee5f2f&
12527
+ var mainvue_type_template_id_14ee5f2f_render = function () {
12858
12528
  var _vm = this
12859
12529
  var _h = _vm.$createElement
12860
12530
  var _c = _vm._self._c || _h
@@ -23768,11 +23438,11 @@ var mainvue_type_template_id_2fd814fb_render = function () {
23768
23438
  )
23769
23439
  : _vm._e()
23770
23440
  }
23771
- var mainvue_type_template_id_2fd814fb_staticRenderFns = []
23772
- mainvue_type_template_id_2fd814fb_render._withStripped = true
23441
+ var mainvue_type_template_id_14ee5f2f_staticRenderFns = []
23442
+ mainvue_type_template_id_14ee5f2f_render._withStripped = true
23773
23443
 
23774
23444
 
23775
- // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=2fd814fb&
23445
+ // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=14ee5f2f&
23776
23446
 
23777
23447
  // CONCATENATED MODULE: ./src/utils/rules.js
23778
23448
  // 手机号
@@ -23796,7 +23466,7 @@ var bankCard = { pattern: new RegExp('^([1-9]{1})(\\d{14}|\\d{18})$'), message:
23796
23466
  // 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&
23797
23467
 
23798
23468
 
23799
- var mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
23469
+ var src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
23800
23470
 
23801
23471
  var form_src_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; };
23802
23472
 
@@ -27680,8 +27350,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
27680
27350
  inheritAttrs: false,
27681
27351
  provide: function provide() {
27682
27352
  return {
27683
- esForm: this,
27684
- sysCodes: this.sysCodes
27353
+ esForm: this
27685
27354
  };
27686
27355
  },
27687
27356
 
@@ -27856,8 +27525,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
27856
27525
  newHeight: null,
27857
27526
  uuid: utils_util["a" /* default */].uuid(32),
27858
27527
  dialog: false,
27859
- refresh: true,
27860
- sysCodes: {}
27528
+ refresh: true
27861
27529
  };
27862
27530
  },
27863
27531
 
@@ -28458,7 +28126,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
28458
28126
  if (obj) {
28459
28127
  if (Array.isArray(a.idCard)) {
28460
28128
  a.idCard.forEach(function (item) {
28461
- if ((typeof item === 'undefined' ? 'undefined' : mainvue_type_script_lang_js_typeof(item)) === 'object') {
28129
+ if ((typeof item === 'undefined' ? 'undefined' : src_mainvue_type_script_lang_js_typeof(item)) === 'object') {
28462
28130
  for (var i in item) {
28463
28131
  if (typeof item[i] === 'string') {
28464
28132
  _this8.$set(_this8.models, i, obj[item[i]]);
@@ -28480,7 +28148,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
28480
28148
  var adjunctId = b[0].response.adjunctId;
28481
28149
  this.$set(this.models, a.name, a.previewUrl ? a.previewUrl + adjunctId : adjunctId);
28482
28150
  }
28483
- if (Object.prototype.hasOwnProperty.call(a, 'setValues') && (typeof b === 'undefined' ? 'undefined' : mainvue_type_script_lang_js_typeof(b)) === 'object') {
28151
+ if (Object.prototype.hasOwnProperty.call(a, 'setValues') && (typeof b === 'undefined' ? 'undefined' : src_mainvue_type_script_lang_js_typeof(b)) === 'object') {
28484
28152
  if (Array.isArray(a.setValues)) {
28485
28153
  a.setValues.forEach(function (item) {
28486
28154
  _this8.$set(_this8.models, item, b[item]);
@@ -28604,7 +28272,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
28604
28272
  }
28605
28273
  _context3.next = 8;
28606
28274
  return utils_util["a" /* default */].ajax({
28607
- url: mainvue_type_script_lang_js_typeof(_this11.action) === 'object' ? _this11.action[_this11.actionType] : _this11.action,
28275
+ url: src_mainvue_type_script_lang_js_typeof(_this11.action) === 'object' ? _this11.action[_this11.actionType] : _this11.action,
28608
28276
  format: handle.format || _this11.format,
28609
28277
  data: form_src_mainvue_type_script_lang_js_extends({}, models, param),
28610
28278
  method: _this11.method,
@@ -28677,7 +28345,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
28677
28345
  }
28678
28346
  _context4.next = 7;
28679
28347
  return utils_util["a" /* default */].ajax({
28680
- url: mainvue_type_script_lang_js_typeof(_this11.action) === 'object' ? _this11.action[_this11.actionType] : _this11.action,
28348
+ url: src_mainvue_type_script_lang_js_typeof(_this11.action) === 'object' ? _this11.action[_this11.actionType] : _this11.action,
28681
28349
  format: handle.format || _this11.format,
28682
28350
  data: form_src_mainvue_type_script_lang_js_extends({}, models, param),
28683
28351
  method: _this11.method,
@@ -28755,7 +28423,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
28755
28423
  for (var i in keys) {
28756
28424
  var _ret = _loop(i);
28757
28425
 
28758
- if ((typeof _ret === 'undefined' ? 'undefined' : mainvue_type_script_lang_js_typeof(_ret)) === "object") return _ret.v;
28426
+ if ((typeof _ret === 'undefined' ? 'undefined' : src_mainvue_type_script_lang_js_typeof(_ret)) === "object") return _ret.v;
28759
28427
  }
28760
28428
  }
28761
28429
  return null;
@@ -28866,9 +28534,6 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
28866
28534
  data: data,
28867
28535
  attrs: attrs
28868
28536
  });
28869
- },
28870
- setSysCodes: function setSysCodes(name, value) {
28871
- this.$set(this.sysCodes, name, value);
28872
28537
  }
28873
28538
  }
28874
28539
  });
@@ -28884,8 +28549,8 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
28884
28549
 
28885
28550
  var form_src_main_component = normalizeComponent(
28886
28551
  packages_form_src_mainvue_type_script_lang_js_,
28887
- mainvue_type_template_id_2fd814fb_render,
28888
- mainvue_type_template_id_2fd814fb_staticRenderFns,
28552
+ mainvue_type_template_id_14ee5f2f_render,
28553
+ mainvue_type_template_id_14ee5f2f_staticRenderFns,
28889
28554
  false,
28890
28555
  null,
28891
28556
  null,
@@ -43967,7 +43632,7 @@ icons_src_main.install = function (Vue) {
43967
43632
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/main.vue?vue&type=script&lang=js&
43968
43633
  var input_src_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; };
43969
43634
 
43970
- var src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
43635
+ var input_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
43971
43636
 
43972
43637
 
43973
43638
 
@@ -44095,7 +43760,7 @@ var src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typ
44095
43760
  getData: function getData(query, callback, isChange) {
44096
43761
  var _this2 = this;
44097
43762
 
44098
- if (src_mainvue_type_script_lang_js_typeof(this.url) && this.results.length === 0) {
43763
+ if (input_src_mainvue_type_script_lang_js_typeof(this.url) && this.results.length === 0) {
44099
43764
  utils_util["a" /* default */].ajax({
44100
43765
  method: this.method,
44101
43766
  url: this.url,
@@ -44147,7 +43812,7 @@ var src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typ
44147
43812
  doms.push(h('template', { slot: type }, this.$attrs.render(h, this)));
44148
43813
  }
44149
43814
  }
44150
- } else if (src_mainvue_type_script_lang_js_typeof(this.$attrs[type]) === 'object') {
43815
+ } else if (input_src_mainvue_type_script_lang_js_typeof(this.$attrs[type]) === 'object') {
44151
43816
  doms.push(h('es-button', {
44152
43817
  slot: type,
44153
43818
  class: ['el-primeval', this.$attrs[type].class],
@@ -44818,211 +44483,6 @@ mainvue_type_template_id_3f931032_render._withStripped = true
44818
44483
 
44819
44484
  // CONCATENATED MODULE: ./packages/layout/src/main.vue?vue&type=template&id=3f931032&
44820
44485
 
44821
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/layout/src/item.vue?vue&type=template&id=124bb300&
44822
- var itemvue_type_template_id_124bb300_render = function () {
44823
- var _vm = this
44824
- var _h = _vm.$createElement
44825
- var _c = _vm._self._c || _h
44826
- return _c(
44827
- "div",
44828
- {
44829
- ref: "move",
44830
- staticClass: "es-layout-item",
44831
- class: _vm.defaultClasss,
44832
- style: _vm.defaultaStyle,
44833
- },
44834
- [
44835
- _c("es-card"),
44836
- _c("div", { staticClass: "es-layout-resizable-width" }),
44837
- _c("div", { staticClass: "es-layout-resizable-height" }),
44838
- _c("div", { staticClass: "es-layout-resizable" }),
44839
- ],
44840
- 1
44841
- )
44842
- }
44843
- var itemvue_type_template_id_124bb300_staticRenderFns = []
44844
- itemvue_type_template_id_124bb300_render._withStripped = true
44845
-
44846
-
44847
- // CONCATENATED MODULE: ./packages/layout/src/item.vue?vue&type=template&id=124bb300&
44848
-
44849
- // EXTERNAL MODULE: external "interactjs"
44850
- var external_interactjs_ = __webpack_require__(4);
44851
- var external_interactjs_default = /*#__PURE__*/__webpack_require__.n(external_interactjs_);
44852
-
44853
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/layout/src/item.vue?vue&type=script&lang=js&
44854
- //
44855
- //
44856
- //
44857
- //
44858
- //
44859
- //
44860
- //
44861
- //
44862
- //
44863
- //
44864
- //
44865
- //
44866
- //
44867
-
44868
- // import '@interactjs/auto-start';
44869
- // import '@interactjs/auto-scroll';
44870
- // import '@interactjs/actions/drag';
44871
- // import '@interactjs/actions/resize';
44872
- // import '@interactjs/modifiers';
44873
- // import '@interactjs/dev-tools';
44874
-
44875
- /* harmony default export */ var itemvue_type_script_lang_js_ = ({
44876
- name: 'LayoutItem',
44877
- components: {},
44878
- props: {
44879
- redact: {
44880
- type: Boolean,
44881
- default: true
44882
- },
44883
- width: {
44884
- type: String,
44885
- default: '100%'
44886
- },
44887
- height: {
44888
- type: String,
44889
- default: '100px'
44890
- },
44891
- left: String,
44892
- top: String,
44893
- index: Number
44894
- },
44895
- computed: {
44896
- defaultClasss: function defaultClasss() {
44897
- return {
44898
- 'es-dragging': this.dragging
44899
- };
44900
- },
44901
- defaultaStyle: function defaultaStyle() {
44902
- return {
44903
- width: this.width,
44904
- height: this.height,
44905
- left: this.left,
44906
- top: this.top
44907
- };
44908
- },
44909
- cardStyle: function cardStyle() {
44910
- return {
44911
- width: this.width,
44912
- height: this.height
44913
- };
44914
- }
44915
- },
44916
- watch: {},
44917
- data: function data() {
44918
- return {
44919
- position: { x: 0, y: 0 },
44920
- interaction: null,
44921
- dragging: false
44922
- };
44923
- },
44924
- created: function created() {
44925
- this.position = {
44926
- x: parseInt(this.left) || 0,
44927
- y: parseInt(this.top) || 0
44928
- };
44929
- console.log(this.position);
44930
- },
44931
- mounted: function mounted() {
44932
- console.log(external_interactjs_default.a.feedback);
44933
- this.interaction = external_interactjs_default()(this.$refs.move);
44934
- this.interaction.draggable({
44935
- // modifiers: [
44936
- // interact.modifiers.restrictRect({
44937
- // restriction: 'parent',
44938
- // endOnly: false
44939
- // })
44940
- // ],
44941
- // listeners: {
44942
- // start: (event) => {
44943
- // this.dragging = true;
44944
- // console.log(event.type, event.target, 111);
44945
- // },
44946
- // move: (event) => {
44947
- // this.position.x += event.dx;
44948
- // this.position.y += event.dy;
44949
- // event.target.style.transform = `translate(${this.position.x}px, ${this.position.y}px)`;
44950
- // },
44951
- // end: (event) => {
44952
- // this.dragging = false;
44953
- // console.log(event.type, event.target, 222);
44954
- // }
44955
- // }
44956
- inertia: true,
44957
- //autoScroll: { container: '.container' },
44958
- listeners: [external_interactjs_default.a.feedback.pointers()],
44959
- modifiers: [external_interactjs_default.a.modifiers.restrict({
44960
- restriction: 'html',
44961
- elementRect: { left: 0, top: 0, right: 1, bottom: 1 }
44962
- }), external_interactjs_default.a.modifiers.transform(), external_interactjs_default.a.modifiers.spring()]
44963
- });
44964
- this.interaction.resizable({
44965
- modifiers: [
44966
- // keep the edges inside the parent
44967
- external_interactjs_default.a.modifiers.restrictEdges({
44968
- outer: 'parent'
44969
- }),
44970
-
44971
- // minimum size
44972
- external_interactjs_default.a.modifiers.restrictSize({
44973
- min: { width: 100, height: 100 }
44974
- })],
44975
-
44976
- //inertia: true,
44977
- edges: { top: true, left: true, bottom: true, right: true },
44978
- listeners: {
44979
- move: function move(event) {
44980
- console.log(1212);
44981
- var _event$target$dataset = event.target.dataset,
44982
- x = _event$target$dataset.x,
44983
- y = _event$target$dataset.y;
44984
-
44985
-
44986
- x = (parseFloat(x) || 0) + event.deltaRect.left;
44987
- y = (parseFloat(y) || 0) + event.deltaRect.top;
44988
-
44989
- Object.assign(event.target.style, {
44990
- width: event.rect.width + 'px',
44991
- height: event.rect.height + 'px',
44992
- transform: 'translate(' + x + 'px, ' + y + 'px)'
44993
- });
44994
-
44995
- Object.assign(event.target.dataset, { x: x, y: y });
44996
- }
44997
- }
44998
- });
44999
- },
45000
-
45001
- methods: {},
45002
- beforeDestroy: function beforeDestroy() {}
45003
- });
45004
- // CONCATENATED MODULE: ./packages/layout/src/item.vue?vue&type=script&lang=js&
45005
- /* harmony default export */ var src_itemvue_type_script_lang_js_ = (itemvue_type_script_lang_js_);
45006
- // CONCATENATED MODULE: ./packages/layout/src/item.vue
45007
-
45008
-
45009
-
45010
-
45011
-
45012
- /* normalize component */
45013
-
45014
- var item_component = normalizeComponent(
45015
- src_itemvue_type_script_lang_js_,
45016
- itemvue_type_template_id_124bb300_render,
45017
- itemvue_type_template_id_124bb300_staticRenderFns,
45018
- false,
45019
- null,
45020
- null,
45021
- null
45022
-
45023
- )
45024
-
45025
- /* harmony default export */ var src_item = (item_component.exports);
45026
44486
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/layout/src/main.vue?vue&type=script&lang=js&
45027
44487
  //
45028
44488
  //
@@ -54235,8 +53695,8 @@ qr_code_src_main.install = function (Vue) {
54235
53695
  };
54236
53696
 
54237
53697
  /* harmony default export */ var qr_code = (qr_code_src_main);
54238
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio-group/src/main.vue?vue&type=template&id=a0afa96c&
54239
- var mainvue_type_template_id_a0afa96c_render = function () {
53698
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio-group/src/main.vue?vue&type=template&id=4b2ba50e&
53699
+ var mainvue_type_template_id_4b2ba50e_render = function () {
54240
53700
  var _vm = this
54241
53701
  var _h = _vm.$createElement
54242
53702
  var _c = _vm._self._c || _h
@@ -54365,11 +53825,11 @@ var mainvue_type_template_id_a0afa96c_render = function () {
54365
53825
  )
54366
53826
  : _vm._e()
54367
53827
  }
54368
- var mainvue_type_template_id_a0afa96c_staticRenderFns = []
54369
- mainvue_type_template_id_a0afa96c_render._withStripped = true
53828
+ var mainvue_type_template_id_4b2ba50e_staticRenderFns = []
53829
+ mainvue_type_template_id_4b2ba50e_render._withStripped = true
54370
53830
 
54371
53831
 
54372
- // CONCATENATED MODULE: ./packages/radio-group/src/main.vue?vue&type=template&id=a0afa96c&
53832
+ // CONCATENATED MODULE: ./packages/radio-group/src/main.vue?vue&type=template&id=4b2ba50e&
54373
53833
 
54374
53834
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio-group/src/main.vue?vue&type=script&lang=js&
54375
53835
  var radio_group_src_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; };
@@ -54436,15 +53896,13 @@ var radio_group_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "func
54436
53896
 
54437
53897
 
54438
53898
 
53899
+
54439
53900
  /* harmony default export */ var radio_group_src_mainvue_type_script_lang_js_ = ({
54440
53901
  name: 'EsRadioGroup',
54441
53902
  inheritAttrs: false,
54442
53903
  inject: {
54443
53904
  esForm: {
54444
53905
  default: ''
54445
- },
54446
- sysCodes: {
54447
- default: ''
54448
53906
  }
54449
53907
  },
54450
53908
  props: {
@@ -54603,21 +54061,11 @@ var radio_group_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "func
54603
54061
  handler: function handler() {
54604
54062
  this.url && this.getData(this.url);
54605
54063
  }
54606
- },
54607
- sysCodes: {
54608
- deep: true,
54609
- handler: function handler(val) {
54610
- if (this.canceled && val && (this.sysCode && val[this.sysCode] || this.dataKey && val[this.dataKey])) {
54611
- if (this.parseData) {
54612
- this.options = this.parseData(JSON.parse(JSON.stringify(val[this.sysCode || this.dataKey])));
54613
- } else {
54614
- this.options = JSON.parse(JSON.stringify(val[this.sysCode || this.dataKey]));
54615
- }
54616
- }
54617
- }
54618
54064
  }
54619
54065
  },
54620
- created: function created() {},
54066
+ created: function created() {
54067
+ this.bindEventBus();
54068
+ },
54621
54069
  mounted: function mounted() {},
54622
54070
 
54623
54071
  methods: {
@@ -54645,7 +54093,7 @@ var radio_group_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "func
54645
54093
  if (res.rCode === 0) {
54646
54094
  _this2.options = JSON.parse(JSON.stringify(res.results));
54647
54095
  if (sysCode || _this2.dataKey) {
54648
- _this2.esForm && _this2.esForm.setSysCodes(sysCode || _this2.dataKey, JSON.parse(JSON.stringify(_this2.options)));
54096
+ bus.$emit(sysCode || _this2.dataKey, JSON.parse(JSON.stringify(_this2.options)));
54649
54097
  utils_store.set(sysCode, JSON.parse(JSON.stringify(res.results)));
54650
54098
  }
54651
54099
  }
@@ -54666,7 +54114,19 @@ var radio_group_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "func
54666
54114
  this.$emit('input', this.valueType === 'object' ? res : res[this.valKey]);
54667
54115
  }
54668
54116
  return utils_util["a" /* default */].isObject(res) ? radio_group_src_mainvue_type_script_lang_js_extends({}, attrs, res) : attrs;
54117
+ },
54118
+ setOptions: function setOptions(val) {
54119
+ this.options = val;
54120
+ },
54121
+ bindEventBus: function bindEventBus() {
54122
+ bus.$on(this.sysCode || this.dataKey, this.setOptions);
54123
+ },
54124
+ unbindEventBus: function unbindEventBus() {
54125
+ bus.$off(this.sysCode || this.dataKey, this.setOptions);
54669
54126
  }
54127
+ },
54128
+ beforeDestroy: function beforeDestroy() {
54129
+ this.unbindEventBus();
54670
54130
  }
54671
54131
  });
54672
54132
  // CONCATENATED MODULE: ./packages/radio-group/src/main.vue?vue&type=script&lang=js&
@@ -54681,8 +54141,8 @@ var radio_group_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "func
54681
54141
 
54682
54142
  var radio_group_src_main_component = normalizeComponent(
54683
54143
  packages_radio_group_src_mainvue_type_script_lang_js_,
54684
- mainvue_type_template_id_a0afa96c_render,
54685
- mainvue_type_template_id_a0afa96c_staticRenderFns,
54144
+ mainvue_type_template_id_4b2ba50e_render,
54145
+ mainvue_type_template_id_4b2ba50e_staticRenderFns,
54686
54146
  false,
54687
54147
  null,
54688
54148
  null,
@@ -55164,6 +54624,7 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
55164
54624
 
55165
54625
 
55166
54626
 
54627
+
55167
54628
  /* harmony default export */ var select_src_mainvue_type_script_lang_js_ = ({
55168
54629
  name: 'EsSelect',
55169
54630
  componentName: 'EsSelect',
@@ -55177,9 +54638,6 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
55177
54638
  inject: {
55178
54639
  esForm: {
55179
54640
  default: ''
55180
- },
55181
- sysCodes: {
55182
- default: ''
55183
54641
  }
55184
54642
  },
55185
54643
  props: {
@@ -55383,20 +54841,11 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
55383
54841
  this.getData(this.sysCode);
55384
54842
  }
55385
54843
  }
55386
- },
55387
- sysCodes: {
55388
- deep: true,
55389
- handler: function handler(val) {
55390
- if (this.canceled && val && (this.sysCode && val[this.sysCode] || this.dataKey && val[this.dataKey])) {
55391
- if (this.parseData) {
55392
- this.options = this.parseData(JSON.parse(JSON.stringify(val[this.sysCode || this.dataKey])));
55393
- } else {
55394
- this.options = JSON.parse(JSON.stringify(val[this.sysCode || this.dataKey]));
55395
- }
55396
- }
55397
- }
55398
54844
  }
55399
54845
  },
54846
+ created: function created() {
54847
+ this.bindEventBus();
54848
+ },
55400
54849
  mounted: function mounted() {
55401
54850
  if (this.wait) {
55402
54851
  this.getData();
@@ -55485,7 +54934,7 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
55485
54934
  _this3.options = JSON.parse(JSON.stringify(res.results));
55486
54935
  }
55487
54936
  if (sysCode || _this3.dataKey) {
55488
- _this3.esForm && _this3.esForm.setSysCodes(sysCode || _this3.dataKey, JSON.parse(JSON.stringify(_this3.options)));
54937
+ bus.$emit(sysCode || _this3.dataKey, JSON.parse(JSON.stringify(_this3.options)));
55489
54938
  utils_store.set(sysCode, JSON.parse(JSON.stringify(_this3.options)));
55490
54939
  }
55491
54940
  } else {
@@ -55677,8 +55126,20 @@ var select_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "function"
55677
55126
  },
55678
55127
  toggleMenu: function toggleMenu() {
55679
55128
  this.$refs.elSelect.toggleMenu();
55129
+ },
55130
+ setOptions: function setOptions(val) {
55131
+ this.options = val;
55132
+ },
55133
+ bindEventBus: function bindEventBus() {
55134
+ bus.$on(this.sysCode || this.dataKey, this.setOptions);
55135
+ },
55136
+ unbindEventBus: function unbindEventBus() {
55137
+ bus.$off(this.sysCode || this.dataKey, this.setOptions);
55680
55138
  }
55681
55139
  },
55140
+ beforeDestroy: function beforeDestroy() {
55141
+ this.unbindEventBus();
55142
+ },
55682
55143
  render: function render(h) {
55683
55144
  var _this7 = this;
55684
55145
 
@@ -55833,6 +55294,7 @@ select_src_main.install = function (Vue) {
55833
55294
  var select_ganged_src_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; };
55834
55295
 
55835
55296
 
55297
+
55836
55298
  /* harmony default export */ var select_ganged_src_mainvue_type_script_lang_js_ = ({
55837
55299
  name: 'EsSelectGanged',
55838
55300
  componentName: 'EsSelectGanged',
@@ -55846,9 +55308,6 @@ var select_ganged_src_mainvue_type_script_lang_js_extends = Object.assign || fun
55846
55308
  inject: {
55847
55309
  esForm: {
55848
55310
  default: ''
55849
- },
55850
- sysCodes: {
55851
- default: ''
55852
55311
  }
55853
55312
  },
55854
55313
  props: {
@@ -71130,7 +70589,7 @@ if (typeof window !== 'undefined' && window.Vue) {
71130
70589
  }
71131
70590
 
71132
70591
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
71133
- version: '0.5.13',
70592
+ version: '0.5.14',
71134
70593
  install: install,
71135
70594
  Button: packages_button,
71136
70595
  ButtonGroup: button_group,