eoss-ui 0.5.12 → 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 (79) hide show
  1. package/lib/button-group.js +1 -13
  2. package/lib/button.js +3 -15
  3. package/lib/cascader.js +2 -2
  4. package/lib/checkbox-group.js +40 -34
  5. package/lib/data-table-form.js +4 -15
  6. package/lib/data-table.js +1219 -1529
  7. package/lib/date-picker.js +3 -15
  8. package/lib/dialog.js +10 -22
  9. package/lib/eoss-ui.common.js +1282 -1818
  10. package/lib/flow-group.js +1 -13
  11. package/lib/flow-list.js +3 -15
  12. package/lib/flow.js +43 -54
  13. package/lib/form.js +5 -22
  14. package/lib/handle-user.js +1 -13
  15. package/lib/handler.js +1 -13
  16. package/lib/icons.js +2 -2
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +3 -15
  19. package/lib/input.js +3 -15
  20. package/lib/label.js +5 -4
  21. package/lib/layout.js +166 -152
  22. package/lib/login.js +1 -13
  23. package/lib/main.js +15 -24
  24. package/lib/menu.js +2 -2
  25. package/lib/nav.js +10 -22
  26. package/lib/notify.js +2 -2
  27. package/lib/page.js +3 -15
  28. package/lib/pagination.js +2 -2
  29. package/lib/player.js +9 -21
  30. package/lib/qr-code.js +5 -17
  31. package/lib/radio-group.js +44 -34
  32. package/lib/retrial-auth.js +3 -15
  33. package/lib/select-ganged.js +26 -18
  34. package/lib/select.js +42 -31
  35. package/lib/selector-panel.js +7 -18
  36. package/lib/selector.js +5 -17
  37. package/lib/sizer.js +3 -15
  38. package/lib/steps.js +10 -22
  39. package/lib/switch.js +3 -15
  40. package/lib/table-form.js +3 -15
  41. package/lib/tabs-panel.js +2 -2
  42. package/lib/tabs.js +3 -15
  43. package/lib/theme-chalk/data-table.css +1 -1
  44. package/lib/theme-chalk/index.css +1 -1
  45. package/lib/theme-chalk/nav.css +1 -1
  46. package/lib/tips.js +3 -15
  47. package/lib/toolbar.js +2 -2
  48. package/lib/tree-group.js +3 -15
  49. package/lib/tree.js +3 -15
  50. package/lib/upload.js +4 -16
  51. package/lib/utils/util.js +1 -10
  52. package/lib/utils/webSocket.js +0 -3
  53. package/lib/wujie.js +3 -15
  54. package/lib/wxlogin.js +3 -15
  55. package/package.json +1 -1
  56. package/packages/checkbox-group/src/main.vue +20 -30
  57. package/packages/data-table/src/children.vue +4 -8
  58. package/packages/data-table/src/column.vue +522 -575
  59. package/packages/data-table/src/main.vue +123 -124
  60. package/packages/flow/src/component/taskUnionExamine.vue +1 -1
  61. package/packages/flow/src/main.vue +1 -1
  62. package/packages/flow/src/processForm.vue +1 -1
  63. package/packages/flow/src/processReject.vue +1 -1
  64. package/packages/flow/src/startTaskRead.vue +1 -1
  65. package/packages/form/src/main.vue +2 -7
  66. package/packages/label/src/main.vue +3 -2
  67. package/packages/main/src/main.vue +6 -4
  68. package/packages/radio-group/src/main.vue +20 -30
  69. package/packages/select/src/main.vue +20 -29
  70. package/packages/select-ganged/src/main.vue +1 -3
  71. package/packages/theme-chalk/lib/data-table.css +1 -1
  72. package/packages/theme-chalk/lib/index.css +1 -1
  73. package/packages/theme-chalk/lib/nav.css +1 -1
  74. package/packages/theme-chalk/src/data-table.scss +2 -1
  75. package/packages/theme-chalk/src/nav.scss +21 -2
  76. package/src/index.js +1 -1
  77. package/src/utils/util.js +1 -10
  78. package/src/utils/webSocket.js +0 -3
  79. package/packages/data-table/src/mixins/table.js +0 -12
package/lib/data-table.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 31);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 32);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ([
@@ -2522,7 +2522,6 @@ var setStorage = function setStorage(_ref14) {
2522
2522
  * @author huangbo
2523
2523
  * @date 2022年5月7日
2524
2524
  * @param {String} [url] - 连接地址
2525
- * @param {String} [send] - 是否发送消息
2526
2525
  * @param {String} [take] - 订阅地址
2527
2526
  * @param {String} [debug] - 调试
2528
2527
  * @param {String} [interval] - 重连间隔时间
@@ -2530,16 +2529,8 @@ var setStorage = function setStorage(_ref14) {
2530
2529
  * @param {Function} [error] - 重连间隔时间
2531
2530
  **/
2532
2531
  function socket(option, vm) {
2533
- var options = {};
2534
- for (var i in option) {
2535
- if (i === 'send') {
2536
- options['isSend'] = option[i];
2537
- } else {
2538
- options[i] = option[i];
2539
- }
2540
- }
2541
2532
  var socket = new _webSocket__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"]();
2542
- socket.init(options, vm);
2533
+ socket.init(option, vm);
2543
2534
  return socket;
2544
2535
  }
2545
2536
  /**
@@ -3477,7 +3468,6 @@ var WebSocket = function () {
3477
3468
  this.connects = 1;
3478
3469
  this.recon = false;
3479
3470
  this.sendTimeout = null;
3480
- this.isSend = false;
3481
3471
  }
3482
3472
 
3483
3473
  /** socket连接 */
@@ -3505,9 +3495,7 @@ var WebSocket = function () {
3505
3495
  // tryTimes定义重置
3506
3496
  _this.connects = 1;
3507
3497
  // 订阅消息
3508
- // if (!this.isSend) {
3509
3498
  _this.subscribe();
3510
- // }
3511
3499
  }, function (error) {
3512
3500
  var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
3513
3501
  if (_this.connects > 5 && diffSecond < _this.interval) {
@@ -3608,26 +3596,245 @@ module.exports = require("babel-runtime/regenerator");
3608
3596
 
3609
3597
  /***/ }),
3610
3598
  /* 13 */,
3611
- /* 14 */,
3612
- /* 15 */,
3613
- /* 16 */
3599
+ /* 14 */
3614
3600
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3615
3601
 
3616
3602
  "use strict";
3617
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17);
3603
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16);
3618
3604
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
3619
3605
 
3620
3606
 
3621
3607
  /* harmony default export */ __webpack_exports__["a"] = (new vue__WEBPACK_IMPORTED_MODULE_0___default.a());
3622
3608
 
3623
3609
  /***/ }),
3624
- /* 17 */
3610
+ /* 15 */
3611
+ /***/ (function(module, exports) {
3612
+
3613
+ module.exports = require("interactjs");
3614
+
3615
+ /***/ }),
3616
+ /* 16 */
3625
3617
  /***/ (function(module, exports) {
3626
3618
 
3627
3619
  module.exports = require("vue");
3628
3620
 
3629
3621
  /***/ }),
3630
- /* 18 */,
3622
+ /* 17 */,
3623
+ /* 18 */
3624
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3625
+
3626
+ "use strict";
3627
+
3628
+ // 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&
3629
+ var render = function () {
3630
+ var _vm = this
3631
+ var _h = _vm.$createElement
3632
+ var _c = _vm._self._c || _h
3633
+ return _c(
3634
+ "div",
3635
+ {
3636
+ ref: "move",
3637
+ staticClass: "es-layout-item",
3638
+ class: _vm.defaultClasss,
3639
+ style: _vm.defaultaStyle,
3640
+ },
3641
+ [
3642
+ _c("es-card"),
3643
+ _c("div", { staticClass: "es-layout-resizable-width" }),
3644
+ _c("div", { staticClass: "es-layout-resizable-height" }),
3645
+ _c("div", { staticClass: "es-layout-resizable" }),
3646
+ ],
3647
+ 1
3648
+ )
3649
+ }
3650
+ var staticRenderFns = []
3651
+ render._withStripped = true
3652
+
3653
+
3654
+ // CONCATENATED MODULE: ./packages/layout/src/item.vue?vue&type=template&id=124bb300&
3655
+
3656
+ // EXTERNAL MODULE: external "interactjs"
3657
+ var external_interactjs_ = __webpack_require__(15);
3658
+ var external_interactjs_default = /*#__PURE__*/__webpack_require__.n(external_interactjs_);
3659
+
3660
+ // 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&
3661
+ //
3662
+ //
3663
+ //
3664
+ //
3665
+ //
3666
+ //
3667
+ //
3668
+ //
3669
+ //
3670
+ //
3671
+ //
3672
+ //
3673
+ //
3674
+
3675
+ // import '@interactjs/auto-start';
3676
+ // import '@interactjs/auto-scroll';
3677
+ // import '@interactjs/actions/drag';
3678
+ // import '@interactjs/actions/resize';
3679
+ // import '@interactjs/modifiers';
3680
+ // import '@interactjs/dev-tools';
3681
+
3682
+ /* harmony default export */ var itemvue_type_script_lang_js_ = ({
3683
+ name: 'LayoutItem',
3684
+ components: {},
3685
+ props: {
3686
+ redact: {
3687
+ type: Boolean,
3688
+ default: true
3689
+ },
3690
+ width: {
3691
+ type: String,
3692
+ default: '100%'
3693
+ },
3694
+ height: {
3695
+ type: String,
3696
+ default: '100px'
3697
+ },
3698
+ left: String,
3699
+ top: String,
3700
+ index: Number
3701
+ },
3702
+ computed: {
3703
+ defaultClasss: function defaultClasss() {
3704
+ return {
3705
+ 'es-dragging': this.dragging
3706
+ };
3707
+ },
3708
+ defaultaStyle: function defaultaStyle() {
3709
+ return {
3710
+ width: this.width,
3711
+ height: this.height,
3712
+ left: this.left,
3713
+ top: this.top
3714
+ };
3715
+ },
3716
+ cardStyle: function cardStyle() {
3717
+ return {
3718
+ width: this.width,
3719
+ height: this.height
3720
+ };
3721
+ }
3722
+ },
3723
+ watch: {},
3724
+ data: function data() {
3725
+ return {
3726
+ position: { x: 0, y: 0 },
3727
+ interaction: null,
3728
+ dragging: false
3729
+ };
3730
+ },
3731
+ created: function created() {
3732
+ this.position = {
3733
+ x: parseInt(this.left) || 0,
3734
+ y: parseInt(this.top) || 0
3735
+ };
3736
+ console.log(this.position);
3737
+ },
3738
+ mounted: function mounted() {
3739
+ console.log(external_interactjs_default.a.feedback);
3740
+ this.interaction = external_interactjs_default()(this.$refs.move);
3741
+ this.interaction.draggable({
3742
+ // modifiers: [
3743
+ // interact.modifiers.restrictRect({
3744
+ // restriction: 'parent',
3745
+ // endOnly: false
3746
+ // })
3747
+ // ],
3748
+ // listeners: {
3749
+ // start: (event) => {
3750
+ // this.dragging = true;
3751
+ // console.log(event.type, event.target, 111);
3752
+ // },
3753
+ // move: (event) => {
3754
+ // this.position.x += event.dx;
3755
+ // this.position.y += event.dy;
3756
+ // event.target.style.transform = `translate(${this.position.x}px, ${this.position.y}px)`;
3757
+ // },
3758
+ // end: (event) => {
3759
+ // this.dragging = false;
3760
+ // console.log(event.type, event.target, 222);
3761
+ // }
3762
+ // }
3763
+ inertia: true,
3764
+ //autoScroll: { container: '.container' },
3765
+ listeners: [external_interactjs_default.a.feedback.pointers()],
3766
+ modifiers: [external_interactjs_default.a.modifiers.restrict({
3767
+ restriction: 'html',
3768
+ elementRect: { left: 0, top: 0, right: 1, bottom: 1 }
3769
+ }), external_interactjs_default.a.modifiers.transform(), external_interactjs_default.a.modifiers.spring()]
3770
+ });
3771
+ this.interaction.resizable({
3772
+ modifiers: [
3773
+ // keep the edges inside the parent
3774
+ external_interactjs_default.a.modifiers.restrictEdges({
3775
+ outer: 'parent'
3776
+ }),
3777
+
3778
+ // minimum size
3779
+ external_interactjs_default.a.modifiers.restrictSize({
3780
+ min: { width: 100, height: 100 }
3781
+ })],
3782
+
3783
+ //inertia: true,
3784
+ edges: { top: true, left: true, bottom: true, right: true },
3785
+ listeners: {
3786
+ move: function move(event) {
3787
+ console.log(1212);
3788
+ var _event$target$dataset = event.target.dataset,
3789
+ x = _event$target$dataset.x,
3790
+ y = _event$target$dataset.y;
3791
+
3792
+
3793
+ x = (parseFloat(x) || 0) + event.deltaRect.left;
3794
+ y = (parseFloat(y) || 0) + event.deltaRect.top;
3795
+
3796
+ Object.assign(event.target.style, {
3797
+ width: event.rect.width + 'px',
3798
+ height: event.rect.height + 'px',
3799
+ transform: 'translate(' + x + 'px, ' + y + 'px)'
3800
+ });
3801
+
3802
+ Object.assign(event.target.dataset, { x: x, y: y });
3803
+ }
3804
+ }
3805
+ });
3806
+ },
3807
+
3808
+ methods: {},
3809
+ beforeDestroy: function beforeDestroy() {}
3810
+ });
3811
+ // CONCATENATED MODULE: ./packages/layout/src/item.vue?vue&type=script&lang=js&
3812
+ /* harmony default export */ var src_itemvue_type_script_lang_js_ = (itemvue_type_script_lang_js_);
3813
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
3814
+ var componentNormalizer = __webpack_require__(3);
3815
+
3816
+ // CONCATENATED MODULE: ./packages/layout/src/item.vue
3817
+
3818
+
3819
+
3820
+
3821
+
3822
+ /* normalize component */
3823
+
3824
+ var component = Object(componentNormalizer["a" /* default */])(
3825
+ src_itemvue_type_script_lang_js_,
3826
+ render,
3827
+ staticRenderFns,
3828
+ false,
3829
+ null,
3830
+ null,
3831
+ null
3832
+
3833
+ )
3834
+
3835
+ /* harmony default export */ var item = __webpack_exports__["a"] = (component.exports);
3836
+
3837
+ /***/ }),
3631
3838
  /* 19 */,
3632
3839
  /* 20 */,
3633
3840
  /* 21 */,
@@ -3640,15 +3847,16 @@ module.exports = require("vue");
3640
3847
  /* 28 */,
3641
3848
  /* 29 */,
3642
3849
  /* 30 */,
3643
- /* 31 */
3850
+ /* 31 */,
3851
+ /* 32 */
3644
3852
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3645
3853
 
3646
3854
  "use strict";
3647
3855
  // ESM COMPAT FLAG
3648
3856
  __webpack_require__.r(__webpack_exports__);
3649
3857
 
3650
- // 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=094be154&
3651
- var mainvue_type_template_id_094be154_render = function () {
3858
+ // 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&
3859
+ var mainvue_type_template_id_2d512d7f_render = function () {
3652
3860
  var _vm = this
3653
3861
  var _h = _vm.$createElement
3654
3862
  var _c = _vm._self._c || _h
@@ -3663,7 +3871,6 @@ var mainvue_type_template_id_094be154_render = function () {
3663
3871
  expression: "tableLoading",
3664
3872
  },
3665
3873
  ],
3666
- ref: "esTableForm",
3667
3874
  tag: "component",
3668
3875
  staticClass: "es-data-table",
3669
3876
  attrs: {
@@ -3753,103 +3960,17 @@ var mainvue_type_template_id_094be154_render = function () {
3753
3960
  [
3754
3961
  _vm._t("prepend"),
3755
3962
  _vm._t("default"),
3756
- _vm.checkbox
3757
- ? _c(
3758
- "el-table-column",
3759
- _vm._b(
3760
- {},
3761
- "el-table-column",
3762
- {
3763
- type: "selection",
3764
- width: "55",
3765
- align: "center",
3766
- fixed: "left",
3767
- selectable: _vm.selectable,
3768
- reserveSelection: _vm.reserveSelection,
3769
- filterIcon: _vm.getIcon(),
3770
- },
3771
- false
3772
- )
3773
- )
3774
- : _vm._e(),
3775
- _vm.numbers
3776
- ? _c(
3777
- "el-table-column",
3778
- _vm._b(
3779
- {},
3780
- "el-table-column",
3781
- {
3782
- type: "index",
3783
- label: "序号",
3784
- width: "70",
3785
- align: "center",
3786
- fixed: "left",
3787
- index:
3788
- _vm.index === true
3789
- ? (_vm.config.pageNum - 1) *
3790
- _vm.config.pageSize +
3791
- 1
3792
- : _vm.index === false
3793
- ? 1
3794
- : _vm.index,
3795
- filterIcon: _vm.getIcon(),
3796
- },
3797
- false
3798
- )
3799
- )
3800
- : _vm._e(),
3801
- _vm._l(_vm.theads, function (items, indexs) {
3963
+ _vm._l(_vm.theads, function (item, index) {
3802
3964
  return [
3803
- items.hide !== true
3965
+ item.hide !== true
3804
3966
  ? [
3805
- items.type === "index"
3806
- ? _c(
3807
- "el-table-column",
3808
- _vm._b(
3809
- { key: indexs },
3810
- "el-table-column",
3811
- Object.assign(
3812
- {},
3813
- {
3814
- type: "index",
3815
- label: "序号",
3816
- width: "70",
3817
- align: "center",
3818
- fixed: "left",
3819
- index:
3820
- _vm.index === true
3821
- ? (_vm.config.pageNum - 1) *
3822
- _vm.config.pageSize +
3823
- 1
3824
- : _vm.index === false
3825
- ? 1
3826
- : _vm.index,
3827
- filterIcon: _vm.getIcon(),
3828
- },
3829
- items
3830
- ),
3831
- false
3832
- )
3833
- )
3834
- : items.type === "selection"
3967
+ item.type === "index" || item.type === "selection"
3835
3968
  ? _c(
3836
3969
  "el-table-column",
3837
3970
  _vm._b(
3838
- { key: indexs },
3971
+ { key: index },
3839
3972
  "el-table-column",
3840
- Object.assign(
3841
- {},
3842
- {
3843
- type: "selection",
3844
- width: "55",
3845
- align: "center",
3846
- fixed: "left",
3847
- selectable: _vm.selectable,
3848
- reserveSelection: _vm.reserveSelection,
3849
- filterIcon: _vm.getIcon(),
3850
- },
3851
- items
3852
- ),
3973
+ item,
3853
3974
  false
3854
3975
  )
3855
3976
  )
@@ -3857,21 +3978,18 @@ var mainvue_type_template_id_094be154_render = function () {
3857
3978
  "children",
3858
3979
  _vm._g(
3859
3980
  _vm._b(
3860
- { key: indexs },
3981
+ { key: item.label || item.title },
3861
3982
  "children",
3862
- {
3863
- name: _vm.name,
3864
- item: items,
3865
- width: items.width,
3866
- index: indexs,
3867
- readonly: _vm.readonly,
3868
- optionData: _vm.optionDatas,
3869
- form: _vm.form,
3870
- minWidth: _vm.minWidth,
3871
- filterIcon: _vm.getIcon(items.fixed),
3872
- children: items.children,
3873
- childHead: items.childHead,
3874
- },
3983
+ Object.assign(
3984
+ {},
3985
+ {
3986
+ name: _vm.name,
3987
+ indexs: index,
3988
+ form: _vm.form,
3989
+ optionData: _vm.optionDatas,
3990
+ },
3991
+ item
3992
+ ),
3875
3993
  false
3876
3994
  ),
3877
3995
  {
@@ -3985,16 +4103,16 @@ var mainvue_type_template_id_094be154_render = function () {
3985
4103
  )
3986
4104
  }
3987
4105
  var staticRenderFns = []
3988
- mainvue_type_template_id_094be154_render._withStripped = true
4106
+ mainvue_type_template_id_2d512d7f_render._withStripped = true
3989
4107
 
3990
4108
 
3991
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=094be154&
4109
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=2d512d7f&
3992
4110
 
3993
4111
  // EXTERNAL MODULE: ./src/config/api.js
3994
4112
  var api = __webpack_require__(1);
3995
4113
 
3996
- // 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&
3997
- var childrenvue_type_template_id_796433ee_render = function () {
4114
+ // 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&
4115
+ var childrenvue_type_template_id_29bcbc72_render = function () {
3998
4116
  var _vm = this
3999
4117
  var _h = _vm.$createElement
4000
4118
  var _c = _vm._self._c || _h
@@ -4002,7 +4120,7 @@ var childrenvue_type_template_id_796433ee_render = function () {
4002
4120
  "column",
4003
4121
  _vm._g(_vm._b({}, "column", _vm.$attrs, false), _vm.$listeners),
4004
4122
  [
4005
- _vm.childrens && _vm.childrens.length
4123
+ _vm.childrens.length
4006
4124
  ? [
4007
4125
  _vm._l(_vm.childrens, function (item, index) {
4008
4126
  return [
@@ -4013,13 +4131,8 @@ var childrenvue_type_template_id_796433ee_render = function () {
4013
4131
  _vm._b(
4014
4132
  { key: index },
4015
4133
  "children",
4016
- Object.assign({}, _vm.$attrs, {
4017
- filterIcon: false,
4018
- item: item,
4019
- width: item.width,
4020
- index: index,
4021
- children: item.children,
4022
- childHead: item.childHead,
4134
+ Object.assign({}, _vm.$attrs, item, {
4135
+ indexs: index,
4023
4136
  }),
4024
4137
  false
4025
4138
  ),
@@ -4035,1181 +4148,709 @@ var childrenvue_type_template_id_796433ee_render = function () {
4035
4148
  2
4036
4149
  )
4037
4150
  }
4038
- var childrenvue_type_template_id_796433ee_staticRenderFns = []
4039
- childrenvue_type_template_id_796433ee_render._withStripped = true
4151
+ var childrenvue_type_template_id_29bcbc72_staticRenderFns = []
4152
+ childrenvue_type_template_id_29bcbc72_render._withStripped = true
4040
4153
 
4041
4154
 
4042
- // CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=796433ee&
4155
+ // CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=29bcbc72&
4043
4156
 
4044
- // 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&
4045
- var columnvue_type_template_id_00ff0a77_render = function () {
4157
+ // 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&
4158
+ var columnvue_type_template_id_7363f6a6_render = function () {
4046
4159
  var _vm = this
4047
4160
  var _h = _vm.$createElement
4048
4161
  var _c = _vm._self._c || _h
4049
- return _vm.showTemplate(_vm.item)
4050
- ? _c("el-table-column", {
4051
- directives: [
4052
- {
4053
- name: "show",
4054
- rawName: "v-show",
4055
- value: !_vm.item.hide,
4056
- expression: "!item.hide",
4057
- },
4058
- ],
4059
- attrs: {
4060
- "filter-icon": _vm.filterIcon,
4061
- label: _vm.item.title || _vm.item.label,
4062
- "label-key": _vm.item.labelKey,
4063
- "value-key": _vm.item.valueKey,
4064
- prop: _vm.item.field || _vm.item.prop,
4065
- fixed: _vm.item.fixed,
4066
- sortable: _vm.item.sortable || _vm.item.sort,
4067
- "column-key": _vm.item.columnKey,
4068
- width: _vm.width,
4069
- "min-width": _vm.item.minWidth,
4070
- "render-header": _vm.item.renderHeader,
4071
- "sort-method": _vm.item.sortMethod,
4072
- "sort-by": _vm.item.sortBy,
4073
- "sort-orders": _vm.item.sortOrders,
4074
- resizable: _vm.item.resizable,
4075
- formatter: _vm.item.formatter,
4076
- "show-overflow-tooltip": _vm.item.showOverflowTooltip,
4077
- align: _vm.item.align,
4078
- "header-align": _vm.item.headerAlign,
4079
- "class-name":
4080
- (_vm.item.className
4081
- ? _vm.item.className +
4082
- (_vm.item.type ? " es-table-" + _vm.item.type + "-box" : "")
4083
- : _vm.item.type
4084
- ? "es-table-" + _vm.item.type + "-box"
4085
- : "") + (_vm.item.showOverflowTooltip ? " es-text-ellipsis" : ""),
4086
- "label-class-name": _vm.item.required
4087
- ? "es-required" +
4088
- (_vm.item.labelClassName ? " " + _vm.item.labelClassName : "")
4089
- : _vm.item.labelClassName,
4090
- selectable: _vm.item.selectable,
4091
- "reserve-selection": _vm.item.reserveSelection,
4092
- filters: _vm.item.filters,
4093
- "filter-placement": _vm.item.filterPlacement,
4094
- "filter-multiple": _vm.item.filterMultiple,
4095
- "filter-method": _vm.item.filterMethod,
4096
- "filtered-value": _vm.item.filteredValue,
4097
- colspan: _vm.item.colspan,
4098
- rowspan: _vm.item.rowspan,
4099
- total: _vm.item.total,
4100
- },
4162
+ return _c(
4163
+ "el-table-column",
4164
+ _vm._b(
4165
+ {
4101
4166
  scopedSlots: _vm._u([
4102
4167
  {
4103
4168
  key: "default",
4104
4169
  fn: function (scope) {
4105
4170
  return [
4106
- _vm.form && _vm.item.type !== "handle"
4171
+ _vm.isForm && !_vm.isReadOnly(scope)
4107
4172
  ? [
4108
- _vm.isReadOnly(_vm.item, scope)
4109
- ? [
4110
- _vm.item.render
4111
- ? _c("expand-dom", {
4112
- attrs: {
4113
- column: _vm.item,
4114
- row: scope.row,
4115
- render: _vm.item.render,
4116
- index: _vm.index,
4173
+ _c(
4174
+ "el-form-item",
4175
+ {
4176
+ attrs: {
4177
+ name: _vm.name,
4178
+ prop: _vm.field || _vm.prop,
4179
+ rules: _vm.isNotRule(scope) ? [] : _vm.rules,
4180
+ index: scope.$index,
4181
+ },
4182
+ },
4183
+ [
4184
+ _vm.type === "select"
4185
+ ? _c(
4186
+ "es-select",
4187
+ _vm._b(
4188
+ {
4189
+ on: {
4190
+ blur: function (event) {
4191
+ _vm.handleBlur({
4192
+ item: _vm.config,
4193
+ event: event,
4194
+ data: scope.row,
4195
+ scope: scope,
4196
+ })
4197
+ },
4198
+ focus: function (event) {
4199
+ _vm.handleFocus({
4200
+ item: _vm.config,
4201
+ event: event,
4202
+ data: scope.row,
4203
+ scope: scope,
4204
+ })
4205
+ },
4206
+ change: function (value) {
4207
+ _vm.handleChange({
4208
+ item: _vm.config,
4209
+ name: _vm.field || _vm.prop,
4210
+ value: value,
4211
+ data: scope.row,
4212
+ scope: scope,
4213
+ })
4214
+ },
4215
+ },
4216
+ model: {
4217
+ value: scope.row[_vm.field || _vm.prop],
4218
+ callback: function ($$v) {
4219
+ _vm.$set(
4220
+ scope.row,
4221
+ _vm.field || _vm.prop,
4222
+ $$v
4223
+ )
4224
+ },
4225
+ expression: "scope.row[field || prop]",
4226
+ },
4117
4227
  },
4118
- })
4119
- : [
4120
- _vm._v(
4121
- _vm._s(_vm.format(scope.row, _vm.item))
4122
- ),
4123
- ],
4124
- ]
4125
- : [
4126
- _vm.item.type === "slot"
4127
- ? _c("section", [_vm._t(_vm.item.prop)], 2)
4128
- : _c(
4129
- "el-form-item",
4228
+ "es-select",
4229
+ _vm.formOption,
4230
+ false
4231
+ )
4232
+ )
4233
+ : _vm.type == "cascader"
4234
+ ? _c(
4235
+ "es-cascader",
4236
+ _vm._b(
4130
4237
  {
4131
- attrs: {
4132
- name: _vm.name,
4133
- prop: _vm.item.field,
4134
- rules: _vm.isNotRule(_vm.item, scope)
4135
- ? []
4136
- : _vm.item.rules,
4137
- index: scope.$index,
4238
+ on: {
4239
+ blur: function (event) {
4240
+ _vm.handleBlur({
4241
+ item: _vm.config,
4242
+ event: event,
4243
+ data: scope.row,
4244
+ scope: scope,
4245
+ })
4246
+ },
4247
+ focus: function (event) {
4248
+ _vm.handleFocus({
4249
+ item: _vm.config,
4250
+ event: event,
4251
+ data: scope.row,
4252
+ scope: scope,
4253
+ })
4254
+ },
4255
+ change: function (value) {
4256
+ _vm.handleChange({
4257
+ item: _vm.config,
4258
+ name: _vm.field || _vm.prop,
4259
+ value: value,
4260
+ data: scope.row,
4261
+ scope: scope,
4262
+ })
4263
+ },
4264
+ },
4265
+ model: {
4266
+ value: scope.row[_vm.field || _vm.prop],
4267
+ callback: function ($$v) {
4268
+ _vm.$set(
4269
+ scope.row,
4270
+ _vm.field || _vm.prop,
4271
+ $$v
4272
+ )
4273
+ },
4274
+ expression: "scope.row[field || prop]",
4138
4275
  },
4139
4276
  },
4140
- [
4141
- _vm.item.type === "select"
4142
- ? _c(
4143
- "es-select",
4144
- _vm._b(
4145
- {
4146
- attrs: {
4147
- ajax: false,
4148
- data: _vm.item.data
4149
- ? _vm.item.data
4150
- : _vm.item.optionData
4151
- ? scope.row[
4152
- _vm.item.optionData
4153
- ]
4154
- : _vm.optionDatas[
4155
- _vm.item.field ||
4156
- _vm.item.prop
4157
- ],
4158
- },
4159
- on: {
4160
- blur: function (event) {
4161
- _vm.handleBlur({
4162
- item: _vm.item,
4163
- event: event,
4164
- data: scope.row,
4165
- scope: scope,
4166
- })
4167
- },
4168
- focus: function (event) {
4169
- _vm.handleFocus({
4170
- item: _vm.item,
4171
- event: event,
4172
- data: scope.row,
4173
- scope: scope,
4174
- })
4175
- },
4176
- change: function (value) {
4177
- _vm.handleChange({
4178
- item: _vm.item,
4179
- name:
4180
- _vm.item.field ||
4181
- _vm.item.prop,
4182
- value: value,
4183
- data: scope.row,
4184
- scope: scope,
4185
- })
4186
- },
4187
- },
4188
- model: {
4189
- value:
4190
- scope.row[_vm.item.field],
4191
- callback: function ($$v) {
4192
- _vm.$set(
4193
- scope.row,
4194
- _vm.item.field,
4195
- $$v
4196
- )
4197
- },
4198
- expression:
4199
- "scope.row[item.field]",
4200
- },
4201
- },
4202
- "es-select",
4203
- _vm.exclAttribute({
4204
- data: _vm.item,
4205
- attrs: "width",
4206
- }),
4207
- false
4208
- )
4277
+ "es-cascader",
4278
+ _vm.formOption,
4279
+ false
4280
+ )
4281
+ )
4282
+ : _vm.type === "ganged"
4283
+ ? _c(
4284
+ "es-select-ganged",
4285
+ _vm._b(
4286
+ {
4287
+ attrs: {
4288
+ data: _vm.init(_vm.option, _vm.config),
4289
+ },
4290
+ on: {
4291
+ change: function (value) {
4292
+ _vm.handleChange({
4293
+ name: _vm.field || _vm.prop,
4294
+ value: value,
4295
+ data: scope.row,
4296
+ item: _vm.item,
4297
+ })
4298
+ },
4299
+ },
4300
+ model: {
4301
+ value: scope.row[_vm.field || _vm.prop],
4302
+ callback: function ($$v) {
4303
+ _vm.$set(
4304
+ scope.row,
4305
+ _vm.field || _vm.prop,
4306
+ $$v
4209
4307
  )
4210
- : _vm.item.type == "cascader"
4211
- ? _c(
4212
- "es-cascader",
4213
- _vm._b(
4214
- {
4215
- attrs: {
4216
- data: _vm.item.data
4217
- ? _vm.item.data
4218
- : _vm.item.optionData
4219
- ? scope.row[
4220
- _vm.item.optionData
4221
- ]
4222
- : _vm.optionDatas[
4223
- _vm.item.field ||
4224
- _vm.item.prop
4225
- ],
4226
- },
4227
- on: {
4228
- blur: function (event) {
4229
- _vm.handleBlur({
4230
- item: _vm.item,
4231
- event: event,
4232
- data: scope.row,
4233
- scope: scope,
4234
- })
4235
- },
4236
- focus: function (event) {
4237
- _vm.handleFocus({
4238
- item: _vm.item,
4239
- event: event,
4240
- data: scope.row,
4241
- scope: scope,
4242
- })
4243
- },
4244
- change: function (value) {
4245
- _vm.handleChange({
4246
- item: _vm.item,
4247
- name:
4248
- _vm.item.field ||
4249
- _vm.item.prop,
4250
- value: value,
4251
- data: scope.row,
4252
- scope: scope,
4253
- })
4254
- },
4255
- },
4256
- model: {
4257
- value:
4258
- scope.row[_vm.item.field],
4259
- callback: function ($$v) {
4260
- _vm.$set(
4261
- scope.row,
4262
- _vm.item.field,
4263
- $$v
4264
- )
4265
- },
4266
- expression:
4267
- "scope.row[item.field]",
4268
- },
4269
- },
4270
- "es-cascader",
4271
- _vm.exclAttribute({
4272
- data: _vm.item,
4273
- attrs: "width",
4274
- }),
4275
- false
4276
- )
4308
+ },
4309
+ expression: "scope.row[field || prop]",
4310
+ },
4311
+ },
4312
+ "es-select-ganged",
4313
+ _vm.exclAttribute({
4314
+ data: _vm.config,
4315
+ attrs: ["width", "url", "sysCode"],
4316
+ }),
4317
+ false
4318
+ )
4319
+ )
4320
+ : _vm.type === "radio"
4321
+ ? _c(
4322
+ "es-radio-group",
4323
+ _vm._b(
4324
+ {
4325
+ on: {
4326
+ change: function (value) {
4327
+ _vm.handleChange({
4328
+ item: _vm.config,
4329
+ name: _vm.field || _vm.prop,
4330
+ value: value,
4331
+ data: scope.row,
4332
+ })
4333
+ },
4334
+ },
4335
+ model: {
4336
+ value: scope.row[_vm.field || _vm.prop],
4337
+ callback: function ($$v) {
4338
+ _vm.$set(
4339
+ scope.row,
4340
+ _vm.field || _vm.prop,
4341
+ $$v
4277
4342
  )
4278
- : _vm.item.type === "ganged"
4279
- ? _c(
4280
- "es-select-ganged",
4281
- _vm._b(
4282
- {
4283
- attrs: {
4284
- data: _vm.init(
4285
- _vm.item.data
4286
- ? _vm.item.data
4287
- : _vm.item.optionData
4288
- ? scope.row[
4289
- _vm.item.optionData
4290
- ]
4291
- : _vm.optionDatas[
4292
- _vm.item.field ||
4293
- _vm.item.prop
4294
- ],
4295
- scope.row[_vm.item.field],
4296
- _vm.item
4297
- ),
4298
- },
4299
- on: {
4300
- change: function (value) {
4301
- _vm.handleChange({
4302
- name:
4303
- _vm.item.field ||
4304
- _vm.item.prop,
4305
- value: value,
4306
- data: scope.row,
4307
- item: _vm.item,
4308
- })
4309
- },
4310
- },
4311
- model: {
4312
- value:
4313
- scope.row[_vm.item.field],
4314
- callback: function ($$v) {
4315
- _vm.$set(
4316
- scope.row,
4317
- _vm.item.field,
4318
- $$v
4319
- )
4320
- },
4321
- expression:
4322
- "scope.row[item.field]",
4323
- },
4324
- },
4325
- "es-select-ganged",
4326
- _vm.exclAttribute({
4327
- data: _vm.item,
4328
- attrs: [
4329
- "width",
4330
- "url",
4331
- "sysCode",
4332
- ],
4333
- }),
4334
- false
4335
- )
4343
+ },
4344
+ expression: "scope.row[field || prop]",
4345
+ },
4346
+ },
4347
+ "es-radio-group",
4348
+ _vm.formOption,
4349
+ false
4350
+ )
4351
+ )
4352
+ : _vm.type === "checkbox"
4353
+ ? _c(
4354
+ "es-checkbox-group",
4355
+ _vm._b(
4356
+ {
4357
+ on: {
4358
+ change: function (value) {
4359
+ _vm.handleChange({
4360
+ item: _vm.config,
4361
+ name: _vm.field || _vm.prop,
4362
+ value: value,
4363
+ data: scope.row,
4364
+ })
4365
+ },
4366
+ },
4367
+ model: {
4368
+ value: scope.row[_vm.field || _vm.prop],
4369
+ callback: function ($$v) {
4370
+ _vm.$set(
4371
+ scope.row,
4372
+ _vm.field || _vm.prop,
4373
+ $$v
4336
4374
  )
4337
- : _vm.item.type === "radio"
4338
- ? _c(
4339
- "es-radio-group",
4340
- _vm._b(
4341
- {
4342
- attrs: {
4343
- data: _vm.item.data
4344
- ? _vm.item.data
4345
- : _vm.item.optionData
4346
- ? scope.row[
4347
- _vm.item.optionData
4348
- ]
4349
- : _vm.optionDatas[
4350
- _vm.item.field ||
4351
- _vm.item.prop
4352
- ],
4353
- ajax: false,
4354
- },
4355
- on: {
4356
- change: function (value) {
4357
- _vm.handleChange({
4358
- item: _vm.item,
4359
- name:
4360
- _vm.item.field ||
4361
- _vm.item.prop,
4362
- value: value,
4363
- data: scope.row,
4364
- })
4365
- },
4366
- },
4367
- model: {
4368
- value:
4369
- scope.row[_vm.item.field],
4370
- callback: function ($$v) {
4371
- _vm.$set(
4372
- scope.row,
4373
- _vm.item.field,
4374
- $$v
4375
- )
4376
- },
4377
- expression:
4378
- "scope.row[item.field]",
4379
- },
4380
- },
4381
- "es-radio-group",
4382
- _vm.exclAttribute({
4383
- data: _vm.item,
4384
- attrs: "width",
4385
- }),
4386
- false
4387
- )
4375
+ },
4376
+ expression: "scope.row[field || prop]",
4377
+ },
4378
+ },
4379
+ "es-checkbox-group",
4380
+ _vm.formOption,
4381
+ false
4382
+ )
4383
+ )
4384
+ : _vm.type === "switch"
4385
+ ? _c(
4386
+ "es-switch",
4387
+ _vm._b(
4388
+ {
4389
+ on: {
4390
+ change: function (value) {
4391
+ _vm.handleChange({
4392
+ item: _vm.config,
4393
+ name: _vm.field || _vm.prop,
4394
+ value: value,
4395
+ data: scope.row,
4396
+ })
4397
+ },
4398
+ },
4399
+ model: {
4400
+ value: scope.row[_vm.field || _vm.prop],
4401
+ callback: function ($$v) {
4402
+ _vm.$set(
4403
+ scope.row,
4404
+ _vm.field || _vm.prop,
4405
+ $$v
4388
4406
  )
4389
- : _vm.item.type === "checkbox"
4390
- ? _c(
4391
- "es-checkbox-group",
4392
- _vm._b(
4393
- {
4394
- attrs: {
4395
- data: _vm.item.data
4396
- ? _vm.item.data
4397
- : _vm.item.optionData
4398
- ? scope.row[
4399
- _vm.item.optionData
4400
- ]
4401
- : _vm.optionDatas[
4402
- _vm.item.field ||
4403
- _vm.item.prop
4404
- ],
4405
- ajax: false,
4406
- },
4407
- on: {
4408
- change: function (value) {
4409
- _vm.handleChange({
4410
- item: _vm.item,
4411
- name:
4412
- _vm.item.field ||
4413
- _vm.item.prop,
4414
- value: value,
4415
- data: scope.row,
4416
- })
4417
- },
4418
- },
4419
- model: {
4420
- value:
4421
- scope.row[_vm.item.field],
4422
- callback: function ($$v) {
4423
- _vm.$set(
4424
- scope.row,
4425
- _vm.item.field,
4426
- $$v
4427
- )
4428
- },
4429
- expression:
4430
- "scope.row[item.field]",
4431
- },
4432
- },
4433
- "es-checkbox-group",
4434
- _vm.exclAttribute({
4435
- data: _vm.item,
4436
- attrs: "width",
4437
- }),
4438
- false
4439
- )
4407
+ },
4408
+ expression: "scope.row[field || prop]",
4409
+ },
4410
+ },
4411
+ "es-switch",
4412
+ _vm.formOption,
4413
+ false
4414
+ )
4415
+ )
4416
+ : _vm.config.date ||
4417
+ _vm.type == "date" ||
4418
+ _vm.type == "year" ||
4419
+ _vm.type == "month" ||
4420
+ _vm.type == "date" ||
4421
+ _vm.type == "dates" ||
4422
+ _vm.type == "week" ||
4423
+ _vm.type == "datetime" ||
4424
+ _vm.type == "datetimerange" ||
4425
+ _vm.type == "daterange" ||
4426
+ _vm.type == "monthrange" ||
4427
+ _vm.type == "quarter" ||
4428
+ _vm.type == "halfyear"
4429
+ ? _c(
4430
+ "es-date-picker",
4431
+ _vm._b(
4432
+ {
4433
+ on: {
4434
+ blur: function (event) {
4435
+ _vm.handleBlur({
4436
+ item: _vm.config,
4437
+ event: event,
4438
+ data: scope.row,
4439
+ scope: scope,
4440
+ })
4441
+ },
4442
+ focus: function (event) {
4443
+ _vm.handleFocus({
4444
+ item: _vm.config,
4445
+ event: event,
4446
+ data: scope.row,
4447
+ scope: scope,
4448
+ })
4449
+ },
4450
+ change: function (value) {
4451
+ _vm.handleChange({
4452
+ item: _vm.config,
4453
+ name: _vm.field || _vm.prop,
4454
+ value: value,
4455
+ data: scope.row,
4456
+ scope: scope,
4457
+ })
4458
+ },
4459
+ },
4460
+ model: {
4461
+ value: scope.row[_vm.field || _vm.prop],
4462
+ callback: function ($$v) {
4463
+ _vm.$set(
4464
+ scope.row,
4465
+ _vm.field || _vm.prop,
4466
+ $$v
4440
4467
  )
4441
- : _vm.item.type === "switch"
4442
- ? _c(
4443
- "es-switch",
4444
- _vm._b(
4445
- {
4446
- attrs: {
4447
- data: _vm.item.data
4448
- ? _vm.item.data
4449
- : _vm.item.optionData
4450
- ? scope.row[
4451
- _vm.item.optionData
4452
- ]
4453
- : _vm.optionDatas[
4454
- _vm.item.field ||
4455
- _vm.item.prop
4456
- ],
4457
- },
4458
- on: {
4459
- change: function (value) {
4460
- _vm.handleChange({
4461
- item: _vm.item,
4462
- name:
4463
- _vm.item.field ||
4464
- _vm.item.prop,
4465
- value: value,
4466
- data: scope.row,
4467
- })
4468
- },
4469
- },
4470
- model: {
4471
- value:
4472
- scope.row[_vm.item.field],
4473
- callback: function ($$v) {
4474
- _vm.$set(
4475
- scope.row,
4476
- _vm.item.field,
4477
- $$v
4478
- )
4479
- },
4480
- expression:
4481
- "scope.row[item.field]",
4482
- },
4483
- },
4484
- "es-switch",
4485
- _vm.exclAttribute({
4486
- data: _vm.item,
4487
- attrs: "width",
4488
- }),
4489
- false
4490
- )
4468
+ },
4469
+ expression: "scope.row[field || prop]",
4470
+ },
4471
+ },
4472
+ "es-date-picker",
4473
+ _vm.formOption,
4474
+ false
4475
+ )
4476
+ )
4477
+ : _vm.type == "number"
4478
+ ? _c(
4479
+ "es-input-number",
4480
+ _vm._b(
4481
+ {
4482
+ on: {
4483
+ blur: function (event) {
4484
+ _vm.handleBlur({
4485
+ item: _vm.config,
4486
+ event: event,
4487
+ data: scope.row,
4488
+ scope: scope,
4489
+ })
4490
+ },
4491
+ focus: function (event) {
4492
+ _vm.handleFocus({
4493
+ item: _vm.config,
4494
+ event: event,
4495
+ data: scope.row,
4496
+ scope: scope,
4497
+ })
4498
+ },
4499
+ change: function (value) {
4500
+ _vm.handleChange({
4501
+ item: _vm.config,
4502
+ name: _vm.field || _vm.prop,
4503
+ value: value,
4504
+ data: scope.row,
4505
+ scope: scope,
4506
+ })
4507
+ },
4508
+ },
4509
+ model: {
4510
+ value: scope.row[_vm.field || _vm.prop],
4511
+ callback: function ($$v) {
4512
+ _vm.$set(
4513
+ scope.row,
4514
+ _vm.field || _vm.prop,
4515
+ $$v
4491
4516
  )
4492
- : _vm.item.date ||
4493
- _vm.item.type == "date" ||
4494
- _vm.item.type == "year" ||
4495
- _vm.item.type == "month" ||
4496
- _vm.item.type == "date" ||
4497
- _vm.item.type == "dates" ||
4498
- _vm.item.type == "week" ||
4499
- _vm.item.type == "datetime" ||
4500
- _vm.item.type == "datetimerange" ||
4501
- _vm.item.type == "daterange" ||
4502
- _vm.item.type == "monthrange" ||
4503
- _vm.item.type == "quarter" ||
4504
- _vm.item.type == "halfyear"
4505
- ? _c(
4506
- "es-date-picker",
4507
- _vm._b(
4508
- {
4509
- on: {
4510
- blur: function (event) {
4511
- _vm.handleBlur({
4512
- item: _vm.item,
4513
- event: event,
4514
- data: scope.row,
4515
- scope: scope,
4516
- })
4517
- },
4518
- focus: function (event) {
4519
- _vm.handleFocus({
4520
- item: _vm.item,
4521
- event: event,
4522
- data: scope.row,
4523
- scope: scope,
4524
- })
4525
- },
4526
- change: function (value) {
4527
- _vm.handleChange({
4528
- item: _vm.item,
4529
- name:
4530
- _vm.item.field ||
4531
- _vm.item.prop,
4532
- value: value,
4533
- data: scope.row,
4534
- scope: scope,
4535
- })
4536
- },
4537
- },
4538
- model: {
4539
- value:
4540
- scope.row[_vm.item.field],
4541
- callback: function ($$v) {
4542
- _vm.$set(
4543
- scope.row,
4544
- _vm.item.field,
4545
- $$v
4546
- )
4547
- },
4548
- expression:
4549
- "scope.row[item.field]",
4550
- },
4551
- },
4552
- "es-date-picker",
4553
- _vm.exclAttribute({
4554
- data: _vm.item,
4555
- attrs: "width",
4556
- }),
4557
- false
4558
- )
4559
- )
4560
- : _vm.item.type == "number"
4561
- ? _c(
4562
- "es-input-number",
4563
- _vm._b(
4564
- {
4565
- on: {
4566
- blur: function (event) {
4567
- _vm.handleBlur({
4568
- item: _vm.item,
4569
- event: event,
4570
- data: scope.row,
4571
- scope: scope,
4572
- })
4573
- },
4574
- focus: function (event) {
4575
- _vm.handleFocus({
4576
- item: _vm.item,
4577
- event: event,
4578
- data: scope.row,
4579
- scope: scope,
4580
- })
4581
- },
4582
- change: function (value) {
4583
- _vm.handleChange({
4584
- item: _vm.item,
4585
- name:
4586
- _vm.item.field ||
4587
- _vm.item.prop,
4588
- value: value,
4589
- data: scope.row,
4590
- scope: scope,
4591
- })
4592
- },
4593
- },
4594
- model: {
4595
- value:
4596
- scope.row[_vm.item.field],
4597
- callback: function ($$v) {
4598
- _vm.$set(
4599
- scope.row,
4600
- _vm.item.field,
4601
- $$v
4602
- )
4603
- },
4604
- expression:
4605
- "scope.row[item.field]",
4606
- },
4607
- },
4608
- "es-input-number",
4609
- _vm.exclAttribute({
4610
- data: _vm.item,
4611
- attrs: "width",
4612
- }),
4613
- false
4517
+ },
4518
+ expression: "scope.row[field || prop]",
4519
+ },
4520
+ },
4521
+ "es-input-number",
4522
+ _vm.formOption,
4523
+ false
4524
+ )
4525
+ )
4526
+ : _vm.type == "selector"
4527
+ ? _c(
4528
+ "es-selector",
4529
+ _vm._g(
4530
+ _vm._b(
4531
+ {
4532
+ on: {
4533
+ change: function (value) {
4534
+ _vm.handleChange({
4535
+ item: _vm.config,
4536
+ name: _vm.field || _vm.prop,
4537
+ value: value,
4538
+ data: scope.row,
4539
+ })
4540
+ },
4541
+ },
4542
+ model: {
4543
+ value: scope.row[_vm.field || _vm.prop],
4544
+ callback: function ($$v) {
4545
+ _vm.$set(
4546
+ scope.row,
4547
+ _vm.field || _vm.prop,
4548
+ $$v
4614
4549
  )
4615
- )
4616
- : _vm.item.type == "selector"
4617
- ? _c(
4618
- "es-selector",
4619
- _vm._g(
4550
+ },
4551
+ expression: "scope.row[field || prop]",
4552
+ },
4553
+ },
4554
+ "es-selector",
4555
+ _vm.formOption,
4556
+ false
4557
+ ),
4558
+ _vm.exclAttribute({
4559
+ data: _vm.events,
4560
+ attrs: "change",
4561
+ })
4562
+ )
4563
+ )
4564
+ : _vm.type === "text" || _vm.type === "textarea"
4565
+ ? [
4566
+ _vm.config.lazy
4567
+ ? [
4568
+ _vm.type === "text"
4569
+ ? _c(
4570
+ "input",
4620
4571
  _vm._b(
4621
4572
  {
4573
+ directives: [
4574
+ {
4575
+ name: "model",
4576
+ rawName: "v-model.lazy",
4577
+ value: scope.row[_vm.field],
4578
+ expression:
4579
+ "scope.row[field]",
4580
+ modifiers: { lazy: true },
4581
+ },
4582
+ ],
4583
+ staticClass: "el-input__inner",
4584
+ domProps: {
4585
+ value: scope.row[_vm.field],
4586
+ },
4622
4587
  on: {
4623
- change: function (value) {
4624
- _vm.handleChange({
4625
- item: _vm.item,
4626
- name:
4627
- _vm.item.field ||
4628
- _vm.item.prop,
4629
- value: value,
4588
+ blur: function (event) {
4589
+ _vm.handleBlur({
4590
+ item: _vm.config,
4591
+ event: event,
4630
4592
  data: scope.row,
4593
+ scope: scope,
4631
4594
  })
4632
4595
  },
4633
- },
4634
- model: {
4635
- value:
4636
- scope.row[_vm.item.field],
4637
- callback: function ($$v) {
4638
- _vm.$set(
4639
- scope.row,
4640
- _vm.item.field,
4641
- $$v
4642
- )
4596
+ focus: function (event) {
4597
+ _vm.handleFocus({
4598
+ item: _vm.config,
4599
+ event: event,
4600
+ data: scope.row,
4601
+ scope: scope,
4602
+ })
4643
4603
  },
4644
- expression:
4645
- "scope.row[item.field]",
4604
+ change: [
4605
+ function ($event) {
4606
+ _vm.$set(
4607
+ scope.row,
4608
+ _vm.field,
4609
+ $event.target.value
4610
+ )
4611
+ },
4612
+ function (value) {
4613
+ _vm.handleChange({
4614
+ item: _vm.config,
4615
+ name:
4616
+ _vm.field || _vm.prop,
4617
+ value: value,
4618
+ data: scope.row,
4619
+ scope: scope,
4620
+ })
4621
+ },
4622
+ ],
4646
4623
  },
4647
4624
  },
4648
- "es-selector",
4649
- _vm.exclAttribute({
4650
- data: _vm.item,
4651
- attrs: "width",
4652
- }),
4625
+ "input",
4626
+ _vm.formOption,
4653
4627
  false
4654
- ),
4655
- _vm.exclAttribute({
4656
- data: _vm.item.events,
4657
- attrs: "change",
4658
- })
4628
+ )
4659
4629
  )
4660
- )
4661
- : _vm.item.type === "text" ||
4662
- _vm.item.type === "textarea"
4663
- ? [
4664
- _vm.item.lazy
4665
- ? [
4666
- _vm.item.type === "text"
4667
- ? _c(
4668
- "input",
4669
- _vm._b(
4670
- {
4671
- directives: [
4672
- {
4673
- name: "model",
4674
- rawName:
4675
- "v-model.lazy",
4676
- value:
4677
- scope.row[
4678
- _vm.item.field
4679
- ],
4680
- expression:
4681
- "scope.row[item.field]",
4682
- modifiers: {
4683
- lazy: true,
4684
- },
4685
- },
4686
- ],
4687
- staticClass:
4688
- "el-input__inner",
4689
- domProps: {
4690
- value:
4691
- scope.row[
4692
- _vm.item.field
4693
- ],
4694
- },
4695
- on: {
4696
- blur: function (
4697
- event
4698
- ) {
4699
- _vm.handleBlur({
4700
- item: _vm.item,
4701
- event: event,
4702
- data: scope.row,
4703
- scope: scope,
4704
- })
4705
- },
4706
- focus: function (
4707
- event
4708
- ) {
4709
- _vm.handleFocus({
4710
- item: _vm.item,
4711
- event: event,
4712
- data: scope.row,
4713
- scope: scope,
4714
- })
4715
- },
4716
- change: [
4717
- function (
4718
- $event
4719
- ) {
4720
- _vm.$set(
4721
- scope.row,
4722
- _vm.item
4723
- .field,
4724
- $event.target
4725
- .value
4726
- )
4727
- },
4728
- function (value) {
4729
- _vm.handleChange(
4730
- {
4731
- item: _vm.item,
4732
- name:
4733
- _vm.item
4734
- .field ||
4735
- _vm.item
4736
- .prop,
4737
- value:
4738
- value,
4739
- data: scope.row,
4740
- scope:
4741
- scope,
4742
- }
4743
- )
4744
- },
4745
- ],
4746
- },
4747
- },
4748
- "input",
4749
- _vm.exclAttribute({
4750
- data: _vm.item,
4751
- attrs: "width",
4752
- }),
4753
- false
4754
- )
4755
- )
4756
- : _c(
4757
- "textarea",
4758
- _vm._b(
4759
- {
4760
- directives: [
4761
- {
4762
- name: "model",
4763
- rawName:
4764
- "v-model.lazy",
4765
- value:
4766
- scope.row[
4767
- _vm.item.field
4768
- ],
4769
- expression:
4770
- "scope.row[item.field]",
4771
- modifiers: {
4772
- lazy: true,
4773
- },
4774
- },
4775
- ],
4776
- staticClass:
4777
- "el-textarea__inner",
4778
- domProps: {
4779
- value:
4780
- scope.row[
4781
- _vm.item.field
4782
- ],
4783
- },
4784
- on: {
4785
- blur: function (
4786
- event
4787
- ) {
4788
- _vm.handleBlur({
4789
- item: _vm.item,
4790
- event: event,
4791
- data: scope.row,
4792
- scope: scope,
4793
- })
4794
- },
4795
- focus: function (
4796
- event
4797
- ) {
4798
- _vm.handleFocus({
4799
- item: _vm.item,
4800
- event: event,
4801
- data: scope.row,
4802
- scope: scope,
4803
- })
4804
- },
4805
- change: [
4806
- function (
4807
- $event
4808
- ) {
4809
- _vm.$set(
4810
- scope.row,
4811
- _vm.item
4812
- .field,
4813
- $event.target
4814
- .value
4815
- )
4816
- },
4817
- function (value) {
4818
- _vm.handleChange(
4819
- {
4820
- item: _vm.item,
4821
- name:
4822
- _vm.item
4823
- .field ||
4824
- _vm.item
4825
- .prop,
4826
- value:
4827
- value,
4828
- data: scope.row,
4829
- scope:
4830
- scope,
4831
- }
4832
- )
4833
- },
4834
- ],
4835
- },
4836
- },
4837
- "textarea",
4838
- _vm.exclAttribute({
4839
- data: _vm.item,
4840
- attrs: "width",
4841
- }),
4842
- false
4843
- )
4844
- ),
4845
- ]
4846
- : _c(
4847
- "es-input",
4848
- _vm._b(
4630
+ : _c(
4631
+ "textarea",
4632
+ _vm._b(
4633
+ {
4634
+ directives: [
4849
4635
  {
4850
- attrs: { scope: scope },
4851
- on: {
4852
- blur: function (event) {
4853
- _vm.handleBlur({
4854
- item: _vm.item,
4855
- event: event,
4856
- data: scope.row,
4857
- scope: scope,
4858
- })
4859
- },
4860
- focus: function (event) {
4861
- _vm.handleFocus({
4862
- item: _vm.item,
4863
- event: event,
4864
- data: scope.row,
4865
- scope: scope,
4866
- })
4867
- },
4868
- change: function (value) {
4869
- _vm.handleChange({
4870
- item: _vm.item,
4871
- name:
4872
- _vm.item.field ||
4873
- _vm.item.prop,
4874
- value: value,
4875
- data: scope.row,
4876
- scope: scope,
4877
- })
4878
- },
4636
+ name: "model",
4637
+ rawName: "v-model.lazy",
4638
+ value: scope.row[_vm.field],
4639
+ expression:
4640
+ "scope.row[field]",
4641
+ modifiers: { lazy: true },
4642
+ },
4643
+ ],
4644
+ staticClass:
4645
+ "el-textarea__inner",
4646
+ domProps: {
4647
+ value: scope.row[_vm.field],
4648
+ },
4649
+ on: {
4650
+ blur: function (event) {
4651
+ _vm.handleBlur({
4652
+ item: _vm.config,
4653
+ event: event,
4654
+ data: scope.row,
4655
+ scope: scope,
4656
+ })
4657
+ },
4658
+ focus: function (event) {
4659
+ _vm.handleFocus({
4660
+ item: _vm.config,
4661
+ event: event,
4662
+ data: scope.row,
4663
+ scope: scope,
4664
+ })
4665
+ },
4666
+ change: [
4667
+ function ($event) {
4668
+ _vm.$set(
4669
+ scope.row,
4670
+ _vm.field,
4671
+ $event.target.value
4672
+ )
4879
4673
  },
4880
- model: {
4881
- value:
4882
- scope.row[
4883
- _vm.item.field
4884
- ],
4885
- callback: function ($$v) {
4886
- _vm.$set(
4887
- scope.row,
4888
- _vm.item.field,
4889
- $$v
4890
- )
4891
- },
4892
- expression:
4893
- "scope.row[item.field]",
4674
+ function (value) {
4675
+ _vm.handleChange({
4676
+ item: _vm.config,
4677
+ name:
4678
+ _vm.field || _vm.prop,
4679
+ value: value,
4680
+ data: scope.row,
4681
+ scope: scope,
4682
+ })
4894
4683
  },
4895
- },
4896
- "es-input",
4897
- _vm.exclAttribute({
4898
- data: _vm.item,
4899
- attrs: "width",
4900
- }),
4901
- false
4902
- )
4903
- ),
4904
- ]
4905
- : _vm._e(),
4906
- ],
4907
- 2
4908
- ),
4909
- ],
4910
- ]
4911
- : _vm._e(),
4912
- _vm.item.type === "handle" && !scope.row.hideHandle
4913
- ? _c(
4914
- "es-button-group",
4915
- _vm._b(
4916
- {
4917
- attrs: {
4918
- stop: "",
4919
- contents: _vm.item.contents || _vm.item.events,
4920
- data: scope.row,
4921
- },
4922
- on: { handleClick: _vm.handleClick },
4923
- model: {
4924
- value: _vm.width,
4925
- callback: function ($$v) {
4926
- _vm.width = $$v
4927
- },
4928
- expression: "width",
4929
- },
4930
- },
4931
- "es-button-group",
4932
- _vm.exclAttribute({
4933
- data: _vm.item,
4934
- attrs: [
4935
- "contents",
4936
- "events",
4937
- "type",
4938
- "width",
4939
- "template",
4940
- "title",
4941
- ],
4942
- }),
4943
- false
4944
- )
4945
- )
4946
- : _vm._e(),
4947
- ]
4948
- },
4949
- },
4950
- ]),
4951
- })
4952
- : _c(
4953
- "el-table-column",
4954
- {
4955
- directives: [
4956
- {
4957
- name: "show",
4958
- rawName: "v-show",
4959
- value: !_vm.item.hide,
4960
- expression: "!item.hide",
4961
- },
4962
- ],
4963
- key: _vm.index,
4964
- attrs: {
4965
- "filter-icon": _vm.filterIcon,
4966
- label: _vm.item.title || _vm.item.label,
4967
- "label-key": _vm.item.labelKey,
4968
- "value-key": _vm.item.valueKey,
4969
- prop: _vm.item.field || _vm.item.prop,
4970
- fixed: _vm.item.fixed,
4971
- sortable: _vm.item.sortable || _vm.item.sort,
4972
- index: _vm.item.index,
4973
- "column-key": _vm.item.columnKey,
4974
- width: _vm.item.width,
4975
- "min-width": _vm.item.minWidth,
4976
- "render-header": _vm.item.renderHeader,
4977
- "sort-method": _vm.item.sortMethod,
4978
- "sort-by": _vm.item.sortBy,
4979
- "sort-orders": _vm.item.sortOrders,
4980
- resizable: _vm.item.resizable,
4981
- formatter: _vm.item.formatter,
4982
- "show-overflow-tooltip": _vm.item.showOverflowTooltip,
4983
- align: _vm.item.align,
4984
- "header-align": _vm.item.headerAlign,
4985
- "class-name": _vm.item.className,
4986
- "label-class-name": _vm.item.labelClassName,
4987
- selectable: _vm.item.selectable,
4988
- "reserve-selection": _vm.item.reserveSelection,
4989
- filters: _vm.item.filters,
4990
- "filter-placement": _vm.item.filterPlacement,
4991
- "filter-multiple": _vm.item.filterMultiple,
4992
- "filter-method": _vm.item.filterMethod,
4993
- "filtered-value": _vm.item.filteredValue,
4994
- colspan: _vm.item.colspan,
4995
- rowspan: _vm.item.rowspan,
4996
- total: _vm.item.total,
4997
- },
4998
- scopedSlots: _vm._u([
4999
- {
5000
- key: "default",
5001
- fn: function (scope) {
5002
- return [
5003
- _vm.item.render
5004
- ? _c("expand-dom", {
5005
- attrs: {
5006
- column: _vm.item,
5007
- row: scope.row,
5008
- render: _vm.item.render,
5009
- index: _vm.index,
5010
- },
5011
- })
5012
- : [
5013
- _vm._v(
5014
- _vm._s(
5015
- _vm.item.formatDate
5016
- ? _vm.formatDate(
5017
- scope.row[_vm.item.field || _vm.item.prop],
5018
- _vm.item.formatDate
5019
- )
5020
- : _vm.format(scope.row, _vm.item)
5021
- )
5022
- ),
5023
- ],
5024
- ]
5025
- },
5026
- },
5027
- ]),
5028
- },
5029
- [_vm._t("default")],
5030
- 2
5031
- )
5032
- }
5033
- var columnvue_type_template_id_00ff0a77_staticRenderFns = []
5034
- columnvue_type_template_id_00ff0a77_render._withStripped = true
5035
-
5036
-
5037
- // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=00ff0a77&
5038
-
5039
- // EXTERNAL MODULE: external "babel-runtime/regenerator"
5040
- var regenerator_ = __webpack_require__(12);
5041
- var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator_);
5042
-
5043
- // CONCATENATED MODULE: ./packages/data-table/src/mixins/table.js
5044
- /* harmony default export */ var table = ({
5045
- methods: {
5046
- showTemplate: function showTemplate(item) {
5047
- if (item.type) {
5048
- item.type.toLowerCase();
5049
- }
5050
- 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;
5051
- }
5052
- }
5053
- });
5054
- // EXTERNAL MODULE: ./src/utils/util.js
5055
- var util = __webpack_require__(0);
5056
-
5057
- // 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&
5058
-
5059
-
5060
- 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"); }); }; }
5061
-
5062
- //
5063
- //
5064
- //
5065
- //
5066
- //
5067
- //
5068
- //
5069
- //
5070
- //
5071
- //
5072
- //
5073
- //
5074
- //
5075
- //
5076
- //
5077
- //
5078
- //
5079
- //
5080
- //
5081
- //
5082
- //
5083
- //
5084
- //
5085
- //
5086
- //
5087
- //
5088
- //
5089
- //
5090
- //
5091
- //
5092
- //
5093
- //
5094
- //
5095
- //
5096
- //
5097
- //
5098
- //
5099
- //
5100
- //
5101
- //
5102
- //
5103
- //
5104
- //
5105
- //
5106
- //
5107
- //
5108
- //
5109
- //
5110
- //
5111
- //
5112
- //
5113
- //
5114
- //
5115
- //
5116
- //
5117
- //
5118
- //
5119
- //
5120
- //
5121
- //
5122
- //
5123
- //
5124
- //
5125
- //
5126
- //
5127
- //
5128
- //
5129
- //
5130
- //
5131
- //
5132
- //
5133
- //
5134
- //
5135
- //
5136
- //
5137
- //
5138
- //
5139
- //
5140
- //
5141
- //
5142
- //
5143
- //
5144
- //
5145
- //
5146
- //
5147
- //
5148
- //
5149
- //
5150
- //
5151
- //
5152
- //
5153
- //
5154
- //
5155
- //
5156
- //
5157
- //
5158
- //
5159
- //
5160
- //
5161
- //
5162
- //
5163
- //
5164
- //
5165
- //
5166
- //
5167
- //
5168
- //
5169
- //
5170
- //
5171
- //
5172
- //
5173
- //
5174
- //
5175
- //
5176
- //
5177
- //
5178
- //
5179
- //
5180
- //
5181
- //
5182
- //
5183
- //
5184
- //
5185
- //
5186
- //
5187
- //
5188
- //
5189
- //
5190
- //
5191
- //
5192
- //
5193
- //
5194
- //
5195
- //
5196
- //
5197
- //
5198
- //
5199
- //
5200
- //
5201
- //
5202
- //
5203
- //
5204
- //
5205
- //
5206
- //
5207
- //
5208
- //
5209
- //
5210
- //
5211
- //
5212
- //
4684
+ ],
4685
+ },
4686
+ },
4687
+ "textarea",
4688
+ _vm.formOption,
4689
+ false
4690
+ )
4691
+ ),
4692
+ ]
4693
+ : _c(
4694
+ "es-input",
4695
+ _vm._b(
4696
+ {
4697
+ attrs: { scope: scope },
4698
+ on: {
4699
+ blur: function (event) {
4700
+ _vm.handleBlur({
4701
+ item: _vm.config,
4702
+ event: event,
4703
+ data: scope.row,
4704
+ scope: scope,
4705
+ })
4706
+ },
4707
+ focus: function (event) {
4708
+ _vm.handleFocus({
4709
+ item: _vm.config,
4710
+ event: event,
4711
+ data: scope.row,
4712
+ scope: scope,
4713
+ })
4714
+ },
4715
+ change: function (value) {
4716
+ _vm.handleChange({
4717
+ item: _vm.config,
4718
+ name: _vm.field || _vm.prop,
4719
+ value: value,
4720
+ data: scope.row,
4721
+ scope: scope,
4722
+ })
4723
+ },
4724
+ },
4725
+ model: {
4726
+ value:
4727
+ scope.row[_vm.field || _vm.prop],
4728
+ callback: function ($$v) {
4729
+ _vm.$set(
4730
+ scope.row,
4731
+ _vm.field || _vm.prop,
4732
+ $$v
4733
+ )
4734
+ },
4735
+ expression:
4736
+ "scope.row[field || prop]",
4737
+ },
4738
+ },
4739
+ "es-input",
4740
+ _vm.formOption,
4741
+ false
4742
+ )
4743
+ ),
4744
+ ]
4745
+ : _vm._e(),
4746
+ ],
4747
+ 2
4748
+ ),
4749
+ ]
4750
+ : _vm.type === "handle" && !scope.row.hideHandle
4751
+ ? _c(
4752
+ "es-button-group",
4753
+ _vm._b(
4754
+ {
4755
+ attrs: {
4756
+ stop: "",
4757
+ contents: _vm.contents || _vm.events,
4758
+ data: scope.row,
4759
+ },
4760
+ on: { handleClick: _vm.handleClick },
4761
+ model: {
4762
+ value: _vm.btnWidth,
4763
+ callback: function ($$v) {
4764
+ _vm.btnWidth = $$v
4765
+ },
4766
+ expression: "btnWidth",
4767
+ },
4768
+ },
4769
+ "es-button-group",
4770
+ _vm.exclAttribute({
4771
+ data: Object.assign({}, _vm.config, {
4772
+ prop: this.prop,
4773
+ field: this.field,
4774
+ }),
4775
+ attrs: [
4776
+ "contents",
4777
+ "events",
4778
+ "type",
4779
+ "width",
4780
+ "template",
4781
+ "title",
4782
+ ],
4783
+ }),
4784
+ false
4785
+ )
4786
+ )
4787
+ : _vm.render
4788
+ ? _c("expand-dom", {
4789
+ attrs: {
4790
+ column: Object.assign({}, _vm.config, {
4791
+ prop: this.prop,
4792
+ field: this.field,
4793
+ }),
4794
+ row: scope.row,
4795
+ render: _vm.render,
4796
+ index: _vm.indexs,
4797
+ },
4798
+ })
4799
+ : _vm.dateFormat
4800
+ ? [
4801
+ _vm._v(
4802
+ "\n " +
4803
+ _vm._s(
4804
+ _vm.formatDate(
4805
+ scope.row[_vm.field || _vm.prop],
4806
+ _vm.dateFormat
4807
+ )
4808
+ ) +
4809
+ "\n "
4810
+ ),
4811
+ ]
4812
+ : _c(
4813
+ "span",
4814
+ {
4815
+ style: _vm.styles
4816
+ ? _vm.styles[scope.row[_vm.prop]]
4817
+ : {},
4818
+ },
4819
+ [_vm._v(_vm._s(_vm.format(scope.row)))]
4820
+ ),
4821
+ ]
4822
+ },
4823
+ },
4824
+ ]),
4825
+ },
4826
+ "el-table-column",
4827
+ _vm.config,
4828
+ false
4829
+ ),
4830
+ [_vm._t("default")],
4831
+ 2
4832
+ )
4833
+ }
4834
+ var columnvue_type_template_id_7363f6a6_staticRenderFns = []
4835
+ columnvue_type_template_id_7363f6a6_render._withStripped = true
4836
+
4837
+
4838
+ // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=7363f6a6&
4839
+
4840
+ // EXTERNAL MODULE: external "babel-runtime/regenerator"
4841
+ var regenerator_ = __webpack_require__(12);
4842
+ var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator_);
4843
+
4844
+ // EXTERNAL MODULE: ./src/utils/util.js
4845
+ var util = __webpack_require__(0);
4846
+
4847
+ // 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&
4848
+
4849
+
4850
+ var _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; };
4851
+
4852
+ 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"); }); }; }
4853
+
5213
4854
  //
5214
4855
  //
5215
4856
  //
@@ -5619,7 +5260,6 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5619
5260
 
5620
5261
 
5621
5262
 
5622
-
5623
5263
  /* harmony default export */ var columnvue_type_script_lang_js_ = ({
5624
5264
  name: 'Column',
5625
5265
  components: {
@@ -5659,38 +5299,52 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5659
5299
  },
5660
5300
  tableReload: {
5661
5301
  default: ''
5302
+ },
5303
+ table: {
5304
+ default: ''
5662
5305
  }
5663
5306
  },
5664
- mixins: [table],
5665
5307
  props: {
5308
+ form: Boolean,
5666
5309
  readonly: Boolean,
5667
5310
  name: String,
5668
5311
  filterIcon: [Boolean, String],
5669
- item: {
5670
- type: Object,
5671
- default: function _default() {
5672
- return {};
5673
- }
5674
- },
5675
- index: {
5312
+ title: String,
5313
+ label: String,
5314
+ labelKey: String,
5315
+ valueKey: String,
5316
+ field: String,
5317
+ prop: String,
5318
+ sortable: [Boolean, String],
5319
+ sort: [Boolean, String],
5320
+ className: String,
5321
+ labelClassName: String,
5322
+ type: String,
5323
+ required: Boolean,
5324
+ width: String,
5325
+ minWidth: String,
5326
+ hide: Boolean,
5327
+ showOverflowTooltip: Boolean,
5328
+ render: [Function, String],
5329
+ contents: Array,
5330
+ events: [Array, Object],
5331
+ dateFormat: String,
5332
+ styles: [Array, Object],
5333
+ sysCode: String,
5334
+ valueToString: Boolean,
5335
+ symbol: String,
5336
+ rules: [Array, Object],
5337
+ method: String,
5338
+ indexs: {
5676
5339
  type: Number,
5677
5340
  default: null
5678
5341
  },
5679
- minWidth: {
5680
- type: String,
5681
- default: function _default() {
5682
- return this.form ? '180px' : undefined;
5683
- }
5684
- },
5342
+ data: Object,
5685
5343
  optionData: {
5686
5344
  type: Object,
5687
5345
  default: function _default() {
5688
5346
  return {};
5689
5347
  }
5690
- },
5691
- form: {
5692
- type: Boolean,
5693
- default: false
5694
5348
  }
5695
5349
  },
5696
5350
  watch: {
@@ -5699,12 +5353,66 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5699
5353
  handler: function handler(val) {
5700
5354
  this.optionDatas = val;
5701
5355
  }
5356
+ },
5357
+ width: {
5358
+ immediate: true,
5359
+ handler: function handler(val) {
5360
+ if (val) {
5361
+ this.btnWidth = parseInt(val, 10) + 'px';
5362
+ }
5363
+ }
5364
+ }
5365
+ },
5366
+ computed: {
5367
+ config: function config() {
5368
+ var config = {
5369
+ label: this.label || this.title,
5370
+ width: this.btnWidth || this.width
5371
+ };
5372
+
5373
+ if (this.type === 'expand') {
5374
+ config = _extends({ type: this.type }, config, this.$attrs);
5375
+ return config;
5376
+ }
5377
+ var minWidth = this.label || this.title ? (this.label || this.title).length * 14 + 20 : this.width ? '' : '180px';
5378
+ config = _extends({}, config, {
5379
+ filterIcon: this.icon,
5380
+ sortable: this.sortable || this.sort,
5381
+ minWidth: this.minWidth || this.table.minWidth || minWidth,
5382
+ className: [this.className ? this.className : '', this.type ? ' es-table-' + this.type + '-box' : '', this.showOverflowTooltip ? ' es-text-ellipsis' : ''].join(' '),
5383
+ labelClassName: [this.labelClassName ? this.labelClassName : '', this.required ? 'es-required' : ''].join(' ')
5384
+ }, this.$attrs);
5385
+ return _extends({}, config, { prop: this.field || this.prop, field: this.field });
5386
+ },
5387
+ formOption: function formOption() {
5388
+ return _extends({
5389
+ labelKey: this.sysCode ? 'shortName' : this.labelKey,
5390
+ valueKey: this.sysCode ? 'cciValue' : this.valueKey,
5391
+ rules: this.rules,
5392
+ events: this.events
5393
+ }, this.$attrs, {
5394
+ data: this.option
5395
+ });
5396
+ },
5397
+ icon: function icon() {
5398
+ if (this.filterIcon === true) {
5399
+ return 'es-icon-biao';
5400
+ }
5401
+ return false;
5402
+ },
5403
+ isForm: function isForm() {
5404
+ var type = this.type ? this.type.toLowerCase() : '';
5405
+ 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;
5406
+ return flag;
5407
+ },
5408
+ option: function option() {
5409
+ var field = this.field || this.prop;
5410
+ return this.data ? this.data : this.optionDatas[this.sysCode || field];
5702
5411
  }
5703
5412
  },
5704
- computed: {},
5705
5413
  data: function data() {
5706
5414
  return {
5707
- width: Object.prototype.hasOwnProperty.call(this.item, 'width') ? parseInt(this.item.width, 10) + 'px' : undefined,
5415
+ btnWidth: '',
5708
5416
  searchs: [],
5709
5417
  optionDatas: this.optionData
5710
5418
  };
@@ -5717,7 +5425,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5717
5425
 
5718
5426
  if (data && value) {
5719
5427
  if (Array.isArray(value) && value.length) {
5720
- if (item.url || item.sysCode) {
5428
+ if (item.url || this.sysCode) {
5721
5429
  value.forEach(function () {
5722
5430
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee(val, index) {
5723
5431
  var option, lists, v, queryKey, param, i, params;
@@ -5725,7 +5433,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5725
5433
  while (1) {
5726
5434
  switch (_context.prev = _context.next) {
5727
5435
  case 0:
5728
- if (!(val.hasSub == false || _this.searchs.indexOf(val[item.valueKey] || val.value) > -1)) {
5436
+ if (!(val.hasSub == false || _this.searchs.indexOf(val[_this.valueKey] || val.value) > -1)) {
5729
5437
  _context.next = 2;
5730
5438
  break;
5731
5439
  }
@@ -5733,7 +5441,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5733
5441
  return _context.abrupt('return');
5734
5442
 
5735
5443
  case 2:
5736
- _this.searchs.push(val[item.valueKey] || val.value);
5444
+ _this.searchs.push(val[_this.valueKey] || val.value);
5737
5445
 
5738
5446
  if (!(item.ganged && index < item.ganged - 1 || val.hasSub)) {
5739
5447
  _context.next = 14;
@@ -5744,7 +5452,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5744
5452
  lists = [];
5745
5453
 
5746
5454
  if (option) {
5747
- v = val[item.valueKey] || val.value;
5455
+ v = val[_this.valueKey] || val.value;
5748
5456
 
5749
5457
  lists = option.filter(function (list) {
5750
5458
  return list[item.filtrateKey] == v;
@@ -5764,10 +5472,10 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5764
5472
  param[i] = val[queryKey[i]];
5765
5473
  }
5766
5474
  }
5767
- params = util["a" /* default */].extend(true, item.sysCode ? { sysAppCode: item.sysCode } : {}, item.param ? item.param : {}, param);
5475
+ params = util["a" /* default */].extend(true, _this.sysCode ? { sysAppCode: _this.sysCode } : {}, item.param ? item.param : {}, param);
5768
5476
  _context.next = 14;
5769
5477
  return util["a" /* default */].ajax({
5770
- url: item.sysCode ? api["u" /* findSysCode */] : item.url,
5478
+ url: _this.sysCode ? api["u" /* findSysCode */] : item.url,
5771
5479
  method: _this.method,
5772
5480
  params: params,
5773
5481
  data: params
@@ -5812,73 +5520,69 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5812
5520
 
5813
5521
  return util["a" /* default */].exclAttribute({ data: data, attrs: attrs });
5814
5522
  },
5815
- format: function format(rows, col) {
5523
+ format: function format(rows) {
5816
5524
  var _this2 = this;
5817
5525
 
5818
- var field = col.field || col.prop;
5819
- var data = col.data ? col.data : col.optionData ? rows[col.optionData] : this.optionDatas[field];
5526
+ var field = this.field || this.prop;
5527
+ var data = this.option;
5820
5528
  if (util["a" /* default */].isObject(rows[field])) {
5821
- return rows[field][col.labelKey] || rows[field]['name'] || rows[field]['label'] || rows[field]['shortName'];
5529
+ return rows[field][this.labelKey] || rows[field]['name'] || rows[field]['label'] || rows[field]['shortName'];
5822
5530
  } else if (Array.isArray(rows[field])) {
5823
5531
  var vals = rows[field].map(function (item) {
5824
5532
  if (util["a" /* default */].isObject(item)) {
5825
- return item[col.labelKey] || item['name'] || item['label'] || item['shortName'];
5533
+ return item[_this2.labelKey] || item['name'] || item['label'] || item['shortName'];
5826
5534
  } else {
5827
5535
  if (data && data.length && util["a" /* default */].isObject(data[0])) {
5828
- return _this2.getLabel(data, item, col);
5536
+ return _this2.getLabel(data, item);
5829
5537
  }
5830
5538
  return item;
5831
5539
  }
5832
5540
  });
5833
- return vals.join(col.symbol ? col.symbol : '-');
5541
+ return vals.join(this.symbol ? this.symbol : '-');
5834
5542
  } else {
5835
- if (col.valueToString || col['value-to-string']) {
5543
+ if (this.valueToString) {
5836
5544
  var _vals = rows[field].split(',').map(function (item) {
5837
5545
  if (data && data.length && util["a" /* default */].isObject(data[0])) {
5838
- return _this2.getLabel(data, item, col);
5546
+ return _this2.getLabel(data, item);
5839
5547
  }
5840
5548
  return item;
5841
5549
  });
5842
- return _vals.join(col.symbol ? col.symbol : '-');
5550
+ return _vals.join(this.symbol ? this.symbol : '-');
5843
5551
  } else {
5844
5552
  if (data && data.length && util["a" /* default */].isObject(data[0])) {
5845
- return this.getLabel(data, rows[field], col);
5553
+ return this.getLabel(data, rows[field]);
5846
5554
  }
5847
5555
  return rows[field];
5848
5556
  }
5849
5557
  }
5850
5558
  },
5851
- getLabel: function getLabel(obj, val, col) {
5559
+ getLabel: function getLabel(obj, val) {
5852
5560
  for (var i = 0; i < obj.length; i++) {
5853
5561
  var item = obj[i];
5854
- var value = item[col.valueKey || 'cciValue'] || item['value'];
5562
+ var value = item[this.valueKey || 'cciValue'] || item['value'];
5855
5563
  if (value == val) {
5856
- return item[col.labelKey] || item['name'] || item['label'] || item['shortName'];
5564
+ return item[this.labelKey] || item['name'] || item['label'] || item['shortName'];
5857
5565
  } else if (item.children && item.children.length) {
5858
- return this.getLabel(item.children, val, col);
5566
+ return this.getLabel(item.children, val);
5859
5567
  }
5860
5568
  }
5861
5569
  },
5862
- isReadOnly: function isReadOnly(item, scope) {
5863
- return scope.row.canEdit === false || this.readonly || item.editable === false || scope.row.cantEditKey && scope.row.cantEditKey.indexOf(item.field || item.prop) > -1 || item.readonly;
5570
+ isReadOnly: function isReadOnly(scope) {
5571
+ return scope.row.canEdit === false || this.readonly || this.$attrs.editable === false || scope.row.cantEditKey && scope.row.cantEditKey.indexOf(this.field || this.prop) > -1;
5864
5572
  },
5865
- isNotRule: function isNotRule(item, scope) {
5866
- if (scope.row.canRule === false || scope.row.notRules && scope.row.notRules.indexOf(item.field || item.prop) > -1) {
5867
- this.elForm && this.elForm.clearValidate(item.field || item.prop);
5573
+ isNotRule: function isNotRule(scope) {
5574
+ if (scope.row.canRule === false || scope.row.notRules && scope.row.notRules.indexOf(this.field || this.prop) > -1) {
5575
+ this.elForm && this.elForm.clearValidate(this.field || this.prop);
5868
5576
  return true;
5869
5577
  }
5870
5578
  return false;
5871
5579
  },
5872
5580
  handleBlur: function handleBlur(data) {
5873
- var item = data.item;
5874
-
5875
- item.events && item.events.blur && item.events.blur(data);
5581
+ this.events && this.events.blur && this.events.blur(data);
5876
5582
  this.$emit('formBlur', data);
5877
5583
  },
5878
5584
  handleFocus: function handleFocus(data) {
5879
- var item = data.item;
5880
-
5881
- item.events && item.events.focus && item.events.focus(data);
5585
+ this.events && this.events.focus && this.events.focus(data);
5882
5586
  this.$emit('formFocus', data);
5883
5587
  },
5884
5588
  handleChange: function handleChange(data) {
@@ -5886,16 +5590,16 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5886
5590
 
5887
5591
  var item = data.item;
5888
5592
 
5889
- if (item && item.type == 'ganged') {
5593
+ if (item && this.type == 'ganged') {
5890
5594
  var _data$value = data.value,
5891
5595
  index = _data$value.index,
5892
5596
  value = _data$value.value;
5893
5597
 
5894
- if ((item.url || item.sysCode) && (item.ganged && index > item.ganged - 1 || value.hasSub)) {
5895
- var filte = value[item.valueKey] || value.value;
5598
+ if ((item.url || this.sysCode) && (item.ganged && index > item.ganged - 1 || value.hasSub)) {
5599
+ var filte = value[this.valueKey] || value.value;
5896
5600
  var datas = [];
5897
- if (this.optionDatas[item.field || item.prop][index + 1]) {
5898
- datas = this.optionDatas[item.field || item.prop][index + 1].filter(function (items) {
5601
+ if (this.optionDatas[this.field || this.prop][index + 1]) {
5602
+ datas = this.optionDatas[this.field || this.prop][index + 1].filter(function (items) {
5899
5603
  return filte == items[item.filtrateKey];
5900
5604
  });
5901
5605
  }
@@ -5907,21 +5611,21 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5907
5611
  param[i] = value[queryKey[i]];
5908
5612
  }
5909
5613
  }
5910
- var params = util["a" /* default */].extend(true, item.sysCode ? { sysAppCode: item.sysCode } : {}, item.param ? item.param : {}, param);
5614
+ var params = util["a" /* default */].extend(true, this.sysCode ? { sysAppCode: this.sysCode } : {}, item.param ? item.param : {}, param);
5911
5615
  util["a" /* default */].ajax({
5912
- url: item.sysCode ? api["u" /* findSysCode */] : item.url,
5616
+ url: this.sysCode ? api["u" /* findSysCode */] : item.url,
5913
5617
  method: this.method,
5914
5618
  params: params,
5915
5619
  data: params
5916
5620
  }).then(function (res) {
5917
5621
  if (res.rCode === 0) {
5918
- var options = JSON.parse(JSON.stringify(_this3.optionDatas[item.field || item.prop]));
5622
+ var options = JSON.parse(JSON.stringify(_this3.optionDatas[_this3.sysCode]));
5919
5623
  if (options[index + 1]) {
5920
5624
  options[index + 1] = options[index + 1].concat(JSON.parse(JSON.stringify(res.results)));
5921
5625
  } else {
5922
5626
  options.push(JSON.parse(JSON.stringify(res.results)));
5923
5627
  }
5924
- _this3.$set(_this3.optionDatas, item.field || item.prop, options);
5628
+ _this3.$set(_this3.optionDatas, _this3.sysCode, options);
5925
5629
  } else {
5926
5630
  var msg = res.msg || '系统错误,请联系管理员!';
5927
5631
  _this3.$message.error(msg);
@@ -5934,7 +5638,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5934
5638
  }
5935
5639
  }
5936
5640
  }
5937
- item.events && item.events.change && item.events.change(data);
5641
+ this.events && this.events.change && this.events.change(data);
5938
5642
  this.$emit('formChange', data);
5939
5643
  },
5940
5644
  handleClick: function handleClick(data) {
@@ -5960,8 +5664,8 @@ var componentNormalizer = __webpack_require__(3);
5960
5664
 
5961
5665
  var component = Object(componentNormalizer["a" /* default */])(
5962
5666
  src_columnvue_type_script_lang_js_,
5963
- columnvue_type_template_id_00ff0a77_render,
5964
- columnvue_type_template_id_00ff0a77_staticRenderFns,
5667
+ columnvue_type_template_id_7363f6a6_render,
5668
+ columnvue_type_template_id_7363f6a6_staticRenderFns,
5965
5669
  false,
5966
5670
  null,
5967
5671
  null,
@@ -5991,10 +5695,6 @@ var _components;
5991
5695
  //
5992
5696
  //
5993
5697
  //
5994
- //
5995
- //
5996
- //
5997
- //
5998
5698
 
5999
5699
 
6000
5700
  /* harmony default export */ var childrenvue_type_script_lang_js_ = ({
@@ -6006,7 +5706,7 @@ var _components;
6006
5706
  },
6007
5707
  computed: {
6008
5708
  childrens: function childrens() {
6009
- return this.children || this.childHead;
5709
+ return this.children || this.childHead || [];
6010
5710
  }
6011
5711
  }
6012
5712
  });
@@ -6022,8 +5722,8 @@ var _components;
6022
5722
 
6023
5723
  var children_component = Object(componentNormalizer["a" /* default */])(
6024
5724
  src_childrenvue_type_script_lang_js_,
6025
- childrenvue_type_template_id_796433ee_render,
6026
- childrenvue_type_template_id_796433ee_staticRenderFns,
5725
+ childrenvue_type_template_id_29bcbc72_render,
5726
+ childrenvue_type_template_id_29bcbc72_staticRenderFns,
6027
5727
  false,
6028
5728
  null,
6029
5729
  null,
@@ -6091,7 +5791,7 @@ sizervue_type_template_id_58e4111d_render._withStripped = true
6091
5791
  // CONCATENATED MODULE: ./packages/data-table/src/sizer.vue?vue&type=template&id=58e4111d&
6092
5792
 
6093
5793
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/sizer.vue?vue&type=script&lang=js&
6094
- var _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; };
5794
+ var sizervue_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; };
6095
5795
 
6096
5796
  function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
6097
5797
 
@@ -6194,7 +5894,7 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
6194
5894
  title = item.title,
6195
5895
  other = _objectWithoutProperties(item, ['fixed', 'hide', 'childHead', 'children', 'title']);
6196
5896
 
6197
- var items = _extends({
5897
+ var items = sizervue_type_script_lang_js_extends({
6198
5898
  title: title ? title : item.label,
6199
5899
  fixed: fixed === true ? 'left' : fixed === undefined || fixed === false ? '' : fixed,
6200
5900
  hide: hide ? false : true,
@@ -6269,13 +5969,18 @@ var sizer_component = Object(componentNormalizer["a" /* default */])(
6269
5969
 
6270
5970
  /* harmony default export */ var sizer = (sizer_component.exports);
6271
5971
  // EXTERNAL MODULE: ./src/utils/bus.js
6272
- var bus = __webpack_require__(16);
5972
+ var bus = __webpack_require__(14);
6273
5973
 
6274
5974
  // EXTERNAL MODULE: external "qs"
6275
5975
  var external_qs_ = __webpack_require__(4);
6276
5976
  var external_qs_default = /*#__PURE__*/__webpack_require__.n(external_qs_);
6277
5977
 
5978
+ // EXTERNAL MODULE: ./packages/layout/src/item.vue + 4 modules
5979
+ var src_item = __webpack_require__(18);
5980
+
6278
5981
  // 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&
5982
+ var _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; };
5983
+
6279
5984
  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; };
6280
5985
 
6281
5986
  var mainvue_type_script_lang_js_components;
@@ -6415,70 +6120,7 @@ var mainvue_type_script_lang_js_components;
6415
6120
  //
6416
6121
  //
6417
6122
  //
6418
- //
6419
- //
6420
- //
6421
- //
6422
- //
6423
- //
6424
- //
6425
- //
6426
- //
6427
- //
6428
- //
6429
- //
6430
- //
6431
- //
6432
- //
6433
- //
6434
- //
6435
- //
6436
- //
6437
- //
6438
- //
6439
- //
6440
- //
6441
- //
6442
- //
6443
- //
6444
- //
6445
- //
6446
- //
6447
- //
6448
- //
6449
- //
6450
- //
6451
- //
6452
- //
6453
- //
6454
- //
6455
- //
6456
- //
6457
- //
6458
- //
6459
- //
6460
- //
6461
- //
6462
- //
6463
- //
6464
- //
6465
- //
6466
- //
6467
- //
6468
- //
6469
- //
6470
- //
6471
- //
6472
- //
6473
- //
6474
- //
6475
- //
6476
- //
6477
- //
6478
- //
6479
- //
6480
- //
6481
- //
6123
+
6482
6124
 
6483
6125
 
6484
6126
 
@@ -6591,10 +6233,6 @@ var mainvue_type_script_lang_js_components;
6591
6233
  type: String,
6592
6234
  default: 'id'
6593
6235
  },
6594
- sizer: {
6595
- type: Boolean,
6596
- default: true
6597
- },
6598
6236
  // 无数据时显示的文本
6599
6237
  emptyText: {
6600
6238
  type: String,
@@ -6695,7 +6333,13 @@ var mainvue_type_script_lang_js_components;
6695
6333
  type: Boolean,
6696
6334
  default: true
6697
6335
  },
6698
- zoom: false
6336
+ zoom: false,
6337
+ exportExcludeLabel: {
6338
+ type: Array,
6339
+ default: function _default() {
6340
+ return [];
6341
+ }
6342
+ }
6699
6343
  },
6700
6344
  data: function data() {
6701
6345
  return {
@@ -6722,7 +6366,8 @@ var mainvue_type_script_lang_js_components;
6722
6366
  selected: null,
6723
6367
  options: {},
6724
6368
  icon: true,
6725
- show: true
6369
+ show: true,
6370
+ sysCodes: []
6726
6371
  };
6727
6372
  },
6728
6373
 
@@ -6733,12 +6378,33 @@ var mainvue_type_script_lang_js_components;
6733
6378
 
6734
6379
  theads: {
6735
6380
  get: function get() {
6381
+ var thead = [];
6382
+ if (this.checkbox) {
6383
+ thead.push({
6384
+ type: 'selection',
6385
+ width: '55',
6386
+ align: 'center',
6387
+ fixed: 'left',
6388
+ selectable: this.selectable,
6389
+ reserveSelection: this.reserveSelection
6390
+ });
6391
+ }
6392
+ if (this.numbers) {
6393
+ thead.push({
6394
+ type: 'index',
6395
+ label: '序号',
6396
+ width: '70',
6397
+ align: 'center',
6398
+ fixed: 'left',
6399
+ index: this.index === true ? (this.config.pageNum - 1) * this.config.pageSize + 1 : this.index === false ? 1 : this.index
6400
+ });
6401
+ }
6736
6402
  if (this.theadData.length) {
6737
- this.setMinWidth(this.theadData);
6738
- return this.theadData;
6403
+ thead = [].concat(thead, this.theadData);
6404
+ } else {
6405
+ thead = [].concat(thead, this.thead);
6739
6406
  }
6740
- this.setMinWidth(this.thead);
6741
- return this.thead;
6407
+ return thead;
6742
6408
  },
6743
6409
  set: function set(val) {
6744
6410
  return val;
@@ -6787,7 +6453,8 @@ var mainvue_type_script_lang_js_components;
6787
6453
 
6788
6454
  optionDatas: {
6789
6455
  get: function get() {
6790
- return this.optionData ? mainvue_type_script_lang_js_extends({}, this.optionData, this.options) : this.options;
6456
+ var data = this.optionData ? mainvue_type_script_lang_js_extends({}, this.optionData, this.options) : this.options;
6457
+ return data;
6791
6458
  },
6792
6459
  set: function set(val) {
6793
6460
  return val;
@@ -6842,9 +6509,23 @@ var mainvue_type_script_lang_js_components;
6842
6509
  immediate: true,
6843
6510
  deep: true,
6844
6511
  handler: function handler(val) {
6845
- this.config = util["a" /* default */].extend({}, this.config, this.page);
6512
+ if ((typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object') {
6513
+ this.config = util["a" /* default */].extend({}, this.config, val);
6514
+ } else {
6515
+ this.config = {
6516
+ pageNum: 1,
6517
+ pageSize: 20,
6518
+ totalCount: 0
6519
+ };
6520
+ }
6521
+ }
6522
+ },
6523
+ 'config.pageNum': function configPageNum() {
6524
+ if (this.data.length) {
6525
+ this.$refs.oaTable && this.$refs.oaTable.resetScroll && this.$refs.oaTable.resetScroll(0, 0);
6846
6526
  }
6847
6527
  },
6528
+
6848
6529
  height: {
6849
6530
  immediate: true,
6850
6531
  handler: function handler(val) {
@@ -6889,80 +6570,68 @@ var mainvue_type_script_lang_js_components;
6889
6570
 
6890
6571
  return [method, url, external_qs_default.a.stringify(params), external_qs_default.a.stringify(data)].join('&');
6891
6572
  },
6892
- getIcon: function getIcon(res) {
6893
- if (this.sizer && this.icon && res !== 'right' && !this.$slots.prepend && !this.$slots.append && !this.$slots.default && !this.form) {
6894
- this.icon = false;
6895
- return 'es-icon-biao';
6896
- }
6897
- return false;
6898
- },
6899
- setMinWidth: function setMinWidth(obj) {
6900
- var _this2 = this;
6901
-
6902
- obj.forEach(function (item) {
6903
- if (item.childHead && item.childHead.length) {
6904
- _this2.setMinWidth(item.childHead);
6905
- } else if (item.children && item.children.length) {
6906
- _this2.setMinWidth(item.children);
6907
- } else if (!item.width && !item.minWidth && item.title) {
6908
- var width = item.title.length * 14 + 20;
6909
- if (width > 80) {
6910
- _this2.$set(item, 'minWidth', width);
6911
- }
6912
- }
6913
- });
6914
- },
6915
6573
  getOptions: function getOptions(res) {
6916
- var _this3 = this;
6574
+ var _this2 = this;
6917
6575
 
6576
+ var sysCodes = [];
6918
6577
  res.forEach(function (item) {
6919
6578
  if (item.sysCode || item.url) {
6579
+ item.sysCode && sysCodes.push(item.sysCode);
6920
6580
  var params = util["a" /* default */].extend({}, item.sysCode ? { sysAppCode: item.sysCode } : {}, item.param ? item.param : {});
6921
- var key = _this3.getRequestKey({
6922
- method: _this3.method,
6581
+ var key = _this2.getRequestKey({
6582
+ method: _this2.method,
6923
6583
  url: item.sysCode ? api["u" /* findSysCode */] : item.url,
6924
6584
  params: params,
6925
6585
  data: {}
6926
6586
  });
6927
- if (!_this3.requests.includes(key)) {
6587
+ if (!_this2.requests.includes(key)) {
6928
6588
  util["a" /* default */].ajax({
6929
6589
  url: item.sysCode ? api["u" /* findSysCode */] : item.url,
6930
- method: _this3.method,
6590
+ method: _this2.method,
6931
6591
  params: params,
6932
6592
  data: params
6933
6593
  }).then(function (res) {
6934
6594
  if (res.rCode === 0) {
6935
6595
  if (item.type == 'ganged') {
6936
- _this3.$set(_this3.options, item.field || item.prop, [JSON.parse(JSON.stringify(res.results))]);
6596
+ _this2.$set(_this2.options, item.sysCode || item.field || item.prop, [JSON.parse(JSON.stringify(res.results))]);
6597
+ if (item.sysCode) {
6598
+ bus["a" /* default */].$emit(item.sysCode, JSON.parse(JSON.stringify(_this2.options[item.sysCode])));
6599
+ }
6937
6600
  } else {
6938
- _this3.$set(_this3.options, item.field || item.prop, JSON.parse(JSON.stringify(res.results)));
6601
+ _this2.$set(_this2.options, item.sysCode || item.field || item.prop, JSON.parse(JSON.stringify(res.results)));
6602
+ if (item.sysCode) {
6603
+ bus["a" /* default */].$emit(item.sysCode, JSON.parse(JSON.stringify(res.results)));
6604
+ }
6939
6605
  }
6940
- _this3.requests.push(key);
6606
+ _this2.requests.push(key);
6941
6607
  } else {
6942
6608
  var msg = res.msg || '系统错误,请联系管理员!';
6943
- _this3.$message.error(msg);
6609
+ _this2.$message.error(msg);
6944
6610
  }
6945
6611
  }).catch(function (err) {
6946
6612
  if (err.message && err.message !== 'canceled') {
6947
- _this3.$message.error(err.message);
6613
+ _this2.$message.error(err.message);
6948
6614
  }
6949
6615
  });
6950
6616
  }
6951
6617
  } else {
6952
6618
  if (item.childHead && item.childHead.length) {
6953
- _this3.getOptions(item.childHead);
6619
+ _this2.getOptions(item.childHead);
6954
6620
  }
6955
6621
  if (item.children && item.children.length) {
6956
- _this3.getOptions(item.children);
6622
+ _this2.getOptions(item.children);
6957
6623
  }
6958
6624
  }
6959
6625
  });
6626
+ this.sysCodes = sysCodes;
6627
+
6628
+ this.bindEventBus();
6960
6629
  },
6961
6630
  checkObject: function checkObject(item) {
6962
6631
  return util["a" /* default */].getObjectType(item) === 'object';
6963
6632
  },
6964
6633
  chekOpenTotalArea: function chekOpenTotalArea() {
6965
- var _this4 = this;
6634
+ var _this3 = this;
6966
6635
 
6967
6636
  if (this.total || this.showSummary) {
6968
6637
  this.showTotal = true;
@@ -6971,7 +6640,7 @@ var mainvue_type_script_lang_js_components;
6971
6640
  var arr = JSON.parse(JSON.stringify(this.theads));
6972
6641
  arr.forEach(function (item) {
6973
6642
  if (item.total) {
6974
- _this4.showTotal = true;
6643
+ _this3.showTotal = true;
6975
6644
  }
6976
6645
  });
6977
6646
  },
@@ -7010,27 +6679,27 @@ var mainvue_type_script_lang_js_components;
7010
6679
  });
7011
6680
  },
7012
6681
  checkSelect: function checkSelect(newVal) {
7013
- var _this5 = this;
6682
+ var _this4 = this;
7014
6683
 
7015
6684
  this.$nextTick(function () {
7016
6685
  if (util["a" /* default */].getObjectType(newVal) === 'array') {
7017
6686
  newVal.forEach(function (row) {
7018
6687
  if (util["a" /* default */].isObject(row)) {
7019
- _this5.$refs.oaTable.toggleRowSelection(row, true);
7020
- } else _this5.datas.forEach(function (item) {
7021
- if (item[_this5.checkedKey] === row) {
7022
- _this5.$refs.oaTable.toggleRowSelection(item, true);
6688
+ _this4.$refs.oaTable.toggleRowSelection(row, true);
6689
+ } else _this4.datas.forEach(function (item) {
6690
+ if (item[_this4.checkedKey] === row) {
6691
+ _this4.$refs.oaTable.toggleRowSelection(item, true);
7023
6692
  return;
7024
6693
  }
7025
6694
  });
7026
6695
  });
7027
6696
  } else if (newVal === true) {
7028
- _this5.toggleAllSelection();
6697
+ _this4.toggleAllSelection();
7029
6698
  }
7030
6699
  });
7031
6700
  },
7032
6701
  getTheads: function getTheads() {
7033
- var _this6 = this;
6702
+ var _this5 = this;
7034
6703
 
7035
6704
  util["a" /* default */].ajax({
7036
6705
  url: this.thead,
@@ -7042,27 +6711,27 @@ var mainvue_type_script_lang_js_components;
7042
6711
  if (res.rCode === 0) {
7043
6712
  var results = res.results;
7044
6713
  if (Array.isArray(results)) {
7045
- _this6.theadData = results;
6714
+ _this5.theadData = results;
7046
6715
  } else {
7047
- _this6.theadData = results.theadData || [];
7048
- _this6.list = results.data || results.records || [];
7049
- _this6.config.totalCount = results.count || results.total || results.totalCount;
7050
- _this6.getOptions(_this6.theadData);
6716
+ _this5.theadData = results.theadData || [];
6717
+ _this5.list = results.data || results.records || [];
6718
+ _this5.config.totalCount = results.count || results.total || results.totalCount;
6719
+ _this5.getOptions(_this5.theadData);
7051
6720
  }
7052
6721
  } else {
7053
- _this6.theadData = [];
6722
+ _this5.theadData = [];
7054
6723
  var msg = res.msg || '系统错误,请联系管理员!';
7055
- _this6.$message.error(msg);
6724
+ _this5.$message.error(msg);
7056
6725
  }
7057
- _this6.$emit('success', res);
6726
+ _this5.$emit('success', res);
7058
6727
  }).catch(function (err) {
7059
6728
  if (err.message && err.message !== 'canceled') {
7060
- _this6.$message.error(err.message);
6729
+ _this5.$message.error(err.message);
7061
6730
  }
7062
6731
  });
7063
6732
  },
7064
6733
  getTableData: function getTableData(res) {
7065
- var _this7 = this;
6734
+ var _this6 = this;
7066
6735
 
7067
6736
  var where = void 0;
7068
6737
  var first = void 0;
@@ -7077,10 +6746,10 @@ var mainvue_type_script_lang_js_components;
7077
6746
  this.config.pageNum = 1;
7078
6747
  }
7079
6748
  this.tableLoadingText = '加载中...';
7080
- var reqData = util["a" /* default */].extend({}, this.param, {
6749
+ var reqData = util["a" /* default */].extend({}, this.param, this.page ? {
7081
6750
  pageNum: this.config.pageNum,
7082
6751
  pageSize: this.config.pageSize
7083
- });
6752
+ } : {});
7084
6753
  if (where) {
7085
6754
  reqData = util["a" /* default */].extend({}, reqData, where);
7086
6755
  }
@@ -7092,27 +6761,28 @@ var mainvue_type_script_lang_js_components;
7092
6761
  params: reqData,
7093
6762
  data: reqData
7094
6763
  }).then(function (res) {
7095
- _this7.tableLoading = false;
6764
+ _this6.tableLoading = false;
7096
6765
  if (res.rCode === 0 || res.status === 'success') {
7097
- var results = _this7.parseData !== undefined ? _this7.parseData(res.results || res.data || res) : res.results || res.data;
7098
- _this7.list = results.data || results.records || results.list || [];
7099
- _this7.config.totalCount = results.count || results.total || results.totalCount;
7100
- _this7.checked && _this7.$nextTick(function () {
7101
- _this7.checkSelect(_this7.checked);
6766
+ _this6.$refs.oaTable.resetScroll(0, 0);
6767
+ var results = _this6.parseData !== undefined ? _this6.parseData(res.results || res.data || res) : res.results || res.data;
6768
+ _this6.list = results.data || results.records || results.list || [];
6769
+ _this6.config.totalCount = results.count || results.total || results.totalCount;
6770
+ _this6.checked && _this6.$nextTick(function () {
6771
+ _this6.checkSelect(_this6.checked);
7102
6772
  });
7103
6773
  } else {
7104
- _this7.list = [];
6774
+ _this6.list = [];
7105
6775
  //this.tableHeight = false;
7106
6776
  var msg = res.msg || '系统错误,请联系管理员!';
7107
- _this7.$message.error(msg);
6777
+ _this6.$message.error(msg);
7108
6778
  }
7109
- _this7.$emit('success', res);
6779
+ _this6.$emit('success', res);
7110
6780
  }).catch(function (err) {
7111
6781
  //this.tableHeight = false;
7112
6782
  if (err.message && err.message !== 'canceled') {
7113
- _this7.$message.error(err.message);
6783
+ _this6.$message.error(err.message);
7114
6784
  }
7115
- _this7.tableLoading = false;
6785
+ _this6.tableLoading = false;
7116
6786
  });
7117
6787
  },
7118
6788
  selectionChange: function selectionChange(data) {
@@ -7157,7 +6827,7 @@ var mainvue_type_script_lang_js_components;
7157
6827
  this.$emit('change', data, this.datas);
7158
6828
  },
7159
6829
  handleAjax: function handleAjax(handle, row) {
7160
- var _this8 = this;
6830
+ var _this7 = this;
7161
6831
 
7162
6832
  this.changeLoading(true, handle.text + '\u4E2D...');
7163
6833
  var params = handle.param || {};
@@ -7213,9 +6883,9 @@ var mainvue_type_script_lang_js_components;
7213
6883
  method: handle.method,
7214
6884
  format: handle.format
7215
6885
  }).then(function (res) {
7216
- _this8.changeLoading(false);
6886
+ _this7.changeLoading(false);
7217
6887
  if (res.rCode === 0) {
7218
- _this8.$message({
6888
+ _this7.$message({
7219
6889
  message: handle.text + '\u6210\u529F',
7220
6890
  duration: 2000,
7221
6891
  type: 'success',
@@ -7223,17 +6893,17 @@ var mainvue_type_script_lang_js_components;
7223
6893
  var first = Object.prototype.hasOwnProperty.call(handle, 'first') ? handle.first : false;
7224
6894
  var reload = handle.reload || true;
7225
6895
  if (reload) {
7226
- _this8.reload({}, first);
6896
+ _this7.reload({}, first);
7227
6897
  }
7228
6898
  }
7229
6899
  });
7230
6900
  } else {
7231
- _this8.$message.error(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
6901
+ _this7.$message.error(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
7232
6902
  }
7233
6903
  }).catch(function (err) {
7234
- _this8.changeLoading(false);
6904
+ _this7.changeLoading(false);
7235
6905
  if (err.message && err.message !== 'canceled') {
7236
- _this8.$message.error(err.message);
6906
+ _this7.$message.error(err.message);
7237
6907
  }
7238
6908
  });
7239
6909
  },
@@ -7258,7 +6928,7 @@ var mainvue_type_script_lang_js_components;
7258
6928
  return mainvue_type_script_lang_js_extends({}, obj, item);
7259
6929
  },
7260
6930
  handleClick: function handleClick(res) {
7261
- var _this9 = this;
6931
+ var _this8 = this;
7262
6932
 
7263
6933
  var row = res.row,
7264
6934
  handle = res.handle;
@@ -7294,7 +6964,7 @@ var mainvue_type_script_lang_js_components;
7294
6964
  cancelButtonText: '取消',
7295
6965
  type: 'warning'
7296
6966
  }).then(function () {
7297
- _this9.handleAjax(handle, rows);
6967
+ _this8.handleAjax(handle, rows);
7298
6968
  }).catch(function () {});
7299
6969
  } else {
7300
6970
  this.handleAjax(handle, rows);
@@ -7379,9 +7049,10 @@ var mainvue_type_script_lang_js_components;
7379
7049
  if (this.theads[this.theads.length - 1] && this.theads[this.theads.length - 1].type === 'handle') {
7380
7050
  text = this.theads[this.theads.length - 1].title;
7381
7051
  }
7052
+ var type = ['selection', 'index', 'expand'];
7382
7053
  thead = thead.map(function (item) {
7383
7054
  return item.filter(function (ele) {
7384
- return ele.label !== text && ele.label;
7055
+ return !type.includes(ele.type) && ele.label !== text && !_this8.exportExcludeLabel.includes(ele.label);
7385
7056
  });
7386
7057
  });
7387
7058
  util["a" /* default */].exportXls({
@@ -7487,47 +7158,47 @@ var mainvue_type_script_lang_js_components;
7487
7158
  }
7488
7159
  },
7489
7160
  resetHeight: function resetHeight(warn) {
7490
- var _this10 = this;
7161
+ var _this9 = this;
7491
7162
 
7492
7163
  this.$nextTick(function () {
7493
- if (_this10.full && !_this10.height && !_this10.maxHeight) {
7494
- var height = _this10.$el.parentNode.offsetHeight;
7164
+ if (_this9.full && !_this9.height && !_this9.maxHeight) {
7165
+ var height = _this9.$el.parentNode.offsetHeight;
7495
7166
  if (height) {
7496
- height = parseInt(util["a" /* default */].getStyle(_this10.$el.parentNode, 'height', '%'), 10);
7497
- height = (height == NaN ? 0 : height) - parseInt(util["a" /* default */].getStyle(_this10.$el.parentNode, 'padding-top'), 10) - parseInt(util["a" /* default */].getStyle(_this10.$el.parentNode, 'padding-bottom'), 10);
7498
- for (var i = 0; i < _this10.$el.parentNode.childNodes.length; i++) {
7499
- var ele = _this10.$el.parentNode.childNodes[i];
7500
- if (ele !== _this10.$el && ele.offsetHeight !== undefined) {
7167
+ height = parseInt(util["a" /* default */].getStyle(_this9.$el.parentNode, 'height', '%'), 10);
7168
+ height = (height == NaN ? 0 : height) - parseInt(util["a" /* default */].getStyle(_this9.$el.parentNode, 'padding-top'), 10) - parseInt(util["a" /* default */].getStyle(_this9.$el.parentNode, 'padding-bottom'), 10);
7169
+ for (var i = 0; i < _this9.$el.parentNode.childNodes.length; i++) {
7170
+ var ele = _this9.$el.parentNode.childNodes[i];
7171
+ if (ele !== _this9.$el && ele.offsetHeight !== undefined) {
7501
7172
  height = height - ele.offsetHeight - parseInt(util["a" /* default */].getStyle(ele, 'margin-top'), 10) - parseInt(util["a" /* default */].getStyle(ele, 'margin-bottom'), 10);
7502
7173
  }
7503
7174
  }
7504
- height -= _this10.showToolbar ? 45 : 0;
7505
- height -= _this10.page === false ? 0 : 46;
7506
- height -= _this10.title ? _this10.$refs.title.offsetHeight : 0;
7507
- height -= parseInt(util["a" /* default */].getStyle(_this10.$refs.esTableContent, 'padding-top'), 10);
7508
- height -= parseInt(util["a" /* default */].getStyle(_this10.$refs.esTableContent, 'padding-bottom'), 10);
7509
- var emptyText = _this10.$refs.esTableContent.querySelector('.el-table__empty-text');
7175
+ height -= _this9.showToolbar ? 45 : 0;
7176
+ height -= _this9.page === false ? 0 : 46;
7177
+ height -= _this9.title ? _this9.$refs.title.offsetHeight : 0;
7178
+ height -= parseInt(util["a" /* default */].getStyle(_this9.$refs.esTableContent, 'padding-top'), 10);
7179
+ height -= parseInt(util["a" /* default */].getStyle(_this9.$refs.esTableContent, 'padding-bottom'), 10);
7180
+ var emptyText = _this9.$refs.esTableContent.querySelector('.el-table__empty-text');
7510
7181
  var eht = 0;
7511
7182
  if (emptyText) {
7512
7183
  eht = emptyText.offsetHeight;
7513
- var thead = _this10.$refs.esTableContent.querySelector('.el-table__header');
7184
+ var thead = _this9.$refs.esTableContent.querySelector('.el-table__header');
7514
7185
  thead && (eht += thead.offsetHeight);
7515
7186
  }
7516
7187
  if (height > 1 && height - eht > 1) {
7517
- _this10.tableHeight = height;
7188
+ _this9.tableHeight = height;
7518
7189
  } else {
7519
- console.warn(_this10.$el.parentNode, '\u83B7\u53D6\u4E0D\u5230\u9AD8\u5EA6\uFF01');
7190
+ console.warn(_this9.$el.parentNode, '\u83B7\u53D6\u4E0D\u5230\u9AD8\u5EA6\uFF01');
7520
7191
  }
7521
7192
  } else if (!warn) {
7522
7193
  setTimeout(function () {
7523
- _this10.resetHeight(true);
7194
+ _this9.resetHeight(true);
7524
7195
  }, 1000);
7525
7196
  }
7526
7197
  }
7527
7198
  });
7528
7199
  },
7529
7200
  validate: function validate(callback) {
7530
- var form = this.elForm || this.$refs.esTableForm;
7201
+ var form = this.elForm || this.$el;
7531
7202
  form.validate(function (valid) {
7532
7203
  callback(valid);
7533
7204
  });
@@ -7548,13 +7219,32 @@ var mainvue_type_script_lang_js_components;
7548
7219
  this.$emit('sort-change', res);
7549
7220
  },
7550
7221
  mergeThead: function mergeThead(res) {
7551
- var _this11 = this;
7222
+ var _this10 = this;
7552
7223
 
7553
7224
  this.theadData = res;
7554
7225
  this.icon = true;
7555
7226
  setTimeout(function () {
7556
- _this11.show = true;
7227
+ _this10.show = true;
7557
7228
  }, 100);
7229
+ },
7230
+ setOptions: function setOptions(val, sysCode) {
7231
+ this.$set(this.options, sysCode, val);
7232
+ },
7233
+ bindEventBus: function bindEventBus() {
7234
+ var _this11 = this;
7235
+
7236
+ this.sysCodes.forEach(function (item) {
7237
+ bus["a" /* default */].$on(item, function (val) {
7238
+ _this11.setOptions(val, item);
7239
+ });
7240
+ });
7241
+ },
7242
+ unbindEventBus: function unbindEventBus() {
7243
+ var _this12 = this;
7244
+
7245
+ this.sysCodes.forEach(function (item) {
7246
+ bus["a" /* default */].$off(item, _this12.setOptions);
7247
+ });
7558
7248
  }
7559
7249
  }
7560
7250
  });
@@ -7570,7 +7260,7 @@ var mainvue_type_script_lang_js_components;
7570
7260
 
7571
7261
  var main_component = Object(componentNormalizer["a" /* default */])(
7572
7262
  src_mainvue_type_script_lang_js_,
7573
- mainvue_type_template_id_094be154_render,
7263
+ mainvue_type_template_id_2d512d7f_render,
7574
7264
  staticRenderFns,
7575
7265
  false,
7576
7266
  null,