eoss-ui 0.5.45 → 0.5.47

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 (127) hide show
  1. package/lib/button.js +137 -144
  2. package/lib/calendar.js +769 -0
  3. package/lib/cascader.js +2 -2
  4. package/lib/checkbox-group.js +4 -2
  5. package/lib/clients.js +2 -2
  6. package/lib/data-table-form.js +36 -13
  7. package/lib/data-table.js +39 -37
  8. package/lib/date-picker.js +2 -2
  9. package/lib/dialog.js +10 -13
  10. package/lib/enterprise.js +2 -2
  11. package/lib/eoss-ui.common.js +1265 -721
  12. package/lib/error-page.js +2 -2
  13. package/lib/flow-group.js +9 -21
  14. package/lib/flow-list.js +2 -2
  15. package/lib/form.js +215 -231
  16. package/lib/handle-user.js +5 -11
  17. package/lib/handler.js +2 -2
  18. package/lib/icons.js +2 -2
  19. package/lib/index.js +1 -1
  20. package/lib/input-number.js +2 -2
  21. package/lib/input.js +2 -2
  22. package/lib/label.js +2 -2
  23. package/lib/menu.js +2 -2
  24. package/lib/nav.js +5 -5
  25. package/lib/notify.js +2 -2
  26. package/lib/page.js +2 -2
  27. package/lib/pagination.js +2 -2
  28. package/lib/player.js +2 -2
  29. package/lib/qr-code.js +2 -2
  30. package/lib/radio-group.js +2 -2
  31. package/lib/retrial-auth.js +2 -2
  32. package/lib/select-ganged.js +2 -2
  33. package/lib/select.js +2 -2
  34. package/lib/selector.js +2 -2
  35. package/lib/sizer.js +9 -9
  36. package/lib/steps.js +2 -2
  37. package/lib/switch.js +2 -2
  38. package/lib/table-form.js +2 -2
  39. package/lib/tabs-panel.js +2 -2
  40. package/lib/tabs.js +2 -2
  41. package/lib/theme-chalk/cascader.css +1 -0
  42. package/lib/theme-chalk/data-table-form.css +1 -1
  43. package/lib/theme-chalk/index.css +1 -1
  44. package/lib/theme-chalk/toolbar.css +1 -1
  45. package/lib/tips.js +2 -2
  46. package/lib/toolbar.js +22 -37
  47. package/lib/tree-group.js +2 -2
  48. package/lib/tree.js +2 -2
  49. package/lib/wujie.js +2 -2
  50. package/lib/wxlogin.js +2 -2
  51. package/package.json +1 -1
  52. package/packages/button/src/main.vue +2 -9
  53. package/packages/calendar/index.js +5 -0
  54. package/packages/calendar/src/main.vue +386 -0
  55. package/packages/data-table/src/main.vue +40 -28
  56. package/packages/data-table-form/src/main.vue +30 -23
  57. package/packages/data-table-form/src/table.vue +16 -3
  58. package/packages/dialog/src/main.vue +5 -9
  59. package/packages/flow-group/src/main.vue +5 -17
  60. package/packages/handle-user/src/main.vue +1 -7
  61. package/packages/nav/src/main.vue +1 -1
  62. package/packages/theme-chalk/gulpfile.js +25 -0
  63. package/packages/theme-chalk/src/cascader.scss +93 -0
  64. package/packages/theme-chalk/src/data-table-form.scss +11 -0
  65. package/packages/theme-chalk/src/index.scss +2 -1
  66. package/packages/theme-chalk/src/toolbar.scss +13 -11
  67. package/packages/toolbar/src/main.vue +39 -52
  68. package/src/index.js +7 -4
  69. package/CHANGELOG.md +0 -929
  70. package/packages/theme-chalk/lib/base.css +0 -1
  71. package/packages/theme-chalk/lib/button-group.css +0 -1
  72. package/packages/theme-chalk/lib/button.css +0 -1
  73. package/packages/theme-chalk/lib/card.css +0 -1
  74. package/packages/theme-chalk/lib/checkbox-group.css +0 -1
  75. package/packages/theme-chalk/lib/clients.css +0 -1
  76. package/packages/theme-chalk/lib/data-table-form.css +0 -1
  77. package/packages/theme-chalk/lib/data-table.css +0 -1
  78. package/packages/theme-chalk/lib/date-picker.css +0 -1
  79. package/packages/theme-chalk/lib/dialog.css +0 -1
  80. package/packages/theme-chalk/lib/enterprise.css +0 -1
  81. package/packages/theme-chalk/lib/error-page.css +0 -1
  82. package/packages/theme-chalk/lib/flow-group.css +0 -1
  83. package/packages/theme-chalk/lib/flow-list.css +0 -1
  84. package/packages/theme-chalk/lib/flow.css +0 -1
  85. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  86. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  87. package/packages/theme-chalk/lib/form.css +0 -1
  88. package/packages/theme-chalk/lib/handle-user.css +0 -1
  89. package/packages/theme-chalk/lib/handler.css +0 -1
  90. package/packages/theme-chalk/lib/icon.css +0 -1
  91. package/packages/theme-chalk/lib/icons.css +0 -1
  92. package/packages/theme-chalk/lib/index.css +0 -1
  93. package/packages/theme-chalk/lib/input-number.css +0 -0
  94. package/packages/theme-chalk/lib/input.css +0 -1
  95. package/packages/theme-chalk/lib/label.css +0 -1
  96. package/packages/theme-chalk/lib/layout.css +0 -1
  97. package/packages/theme-chalk/lib/login.css +0 -1
  98. package/packages/theme-chalk/lib/main.css +0 -1
  99. package/packages/theme-chalk/lib/mainComp.css +0 -0
  100. package/packages/theme-chalk/lib/menu.css +0 -1
  101. package/packages/theme-chalk/lib/nav.css +0 -1
  102. package/packages/theme-chalk/lib/notify.css +0 -0
  103. package/packages/theme-chalk/lib/page.css +0 -1
  104. package/packages/theme-chalk/lib/pagination.css +0 -1
  105. package/packages/theme-chalk/lib/player.css +0 -1
  106. package/packages/theme-chalk/lib/qr-code.css +0 -1
  107. package/packages/theme-chalk/lib/radio-group.css +0 -1
  108. package/packages/theme-chalk/lib/retrial-auth.css +0 -1
  109. package/packages/theme-chalk/lib/select-ganged.css +0 -1
  110. package/packages/theme-chalk/lib/select.css +0 -1
  111. package/packages/theme-chalk/lib/selector-panel.css +0 -1
  112. package/packages/theme-chalk/lib/selector.css +0 -1
  113. package/packages/theme-chalk/lib/sizer.css +0 -1
  114. package/packages/theme-chalk/lib/steps.css +0 -1
  115. package/packages/theme-chalk/lib/switch.css +0 -1
  116. package/packages/theme-chalk/lib/table-form.css +0 -0
  117. package/packages/theme-chalk/lib/tabs-panel.css +0 -0
  118. package/packages/theme-chalk/lib/tabs.css +0 -1
  119. package/packages/theme-chalk/lib/tips.css +0 -1
  120. package/packages/theme-chalk/lib/toolbar.css +0 -1
  121. package/packages/theme-chalk/lib/tree-group.css +0 -1
  122. package/packages/theme-chalk/lib/tree.css +0 -1
  123. package/packages/theme-chalk/lib/upload.css +0 -1
  124. package/packages/theme-chalk/lib/wujie.css +0 -0
  125. package/packages/theme-chalk/lib/wxlogin.css +0 -1
  126. /package/{packages/theme-chalk/lib/cascader.css → lib/theme-chalk/calendar.css} +0 -0
  127. /package/packages/theme-chalk/{lib/flow-chart.css → src/calendar.scss} +0 -0
package/lib/cascader.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 = 70);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 71);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 70:
195
+ /***/ 71:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
@@ -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 = 38);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 40);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ([
@@ -3768,7 +3768,9 @@ module.exports = require("vue");
3768
3768
  /* 35 */,
3769
3769
  /* 36 */,
3770
3770
  /* 37 */,
3771
- /* 38 */
3771
+ /* 38 */,
3772
+ /* 39 */,
3773
+ /* 40 */
3772
3774
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3773
3775
 
3774
3776
  "use strict";
package/lib/clients.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 = 40);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 41);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 40:
195
+ /***/ 41:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
@@ -3761,14 +3761,17 @@ var api = __webpack_require__(1);
3761
3761
  // EXTERNAL MODULE: ./src/utils/store.js
3762
3762
  var store = __webpack_require__(11);
3763
3763
 
3764
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table-form/src/table.vue?vue&type=template&id=736ff20c&
3765
- var tablevue_type_template_id_736ff20c_render = function () {
3764
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table-form/src/table.vue?vue&type=template&id=3953d5ce&
3765
+ var tablevue_type_template_id_3953d5ce_render = function () {
3766
3766
  var _vm = this
3767
3767
  var _h = _vm.$createElement
3768
3768
  var _c = _vm._self._c || _h
3769
3769
  return _c(
3770
3770
  "div",
3771
- { staticClass: "es-data-form" },
3771
+ {
3772
+ staticClass: "es-data-form",
3773
+ class: { "es-data-form-haspage": _vm.page },
3774
+ },
3772
3775
  [
3773
3776
  _c(
3774
3777
  "el-scrollbar",
@@ -3874,7 +3877,10 @@ var tablevue_type_template_id_736ff20c_render = function () {
3874
3877
  refInFor: true,
3875
3878
  staticClass: "es-data-table-form-handle",
3876
3879
  style: _vm.style,
3877
- attrs: { data: _vm.options[item.field || item.prop] },
3880
+ attrs: {
3881
+ suffix: false,
3882
+ data: _vm.options[item.field || item.prop],
3883
+ },
3878
3884
  on: {
3879
3885
  "hide-menu": function ($event) {
3880
3886
  _vm.selectShow = false
@@ -3949,10 +3955,10 @@ var tablevue_type_template_id_736ff20c_render = function () {
3949
3955
  )
3950
3956
  }
3951
3957
  var staticRenderFns = []
3952
- tablevue_type_template_id_736ff20c_render._withStripped = true
3958
+ tablevue_type_template_id_3953d5ce_render._withStripped = true
3953
3959
 
3954
3960
 
3955
- // CONCATENATED MODULE: ./packages/data-table-form/src/table.vue?vue&type=template&id=736ff20c&
3961
+ // CONCATENATED MODULE: ./packages/data-table-form/src/table.vue?vue&type=template&id=3953d5ce&
3956
3962
 
3957
3963
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table-form/src/colgroup.vue?vue&type=template&id=9b289ebe&
3958
3964
  var colgroupvue_type_template_id_9b289ebe_render = function () {
@@ -5294,6 +5300,7 @@ var tablevue_type_script_lang_js_components;
5294
5300
  //
5295
5301
  //
5296
5302
  //
5303
+ //
5297
5304
 
5298
5305
 
5299
5306
  //import rules from 'eoss-ui/src/utils/rules.js';
@@ -5310,6 +5317,11 @@ var tablevue_type_script_lang_js_components;
5310
5317
  };
5311
5318
  },
5312
5319
 
5320
+ inject: {
5321
+ esDialog: {
5322
+ default: ''
5323
+ }
5324
+ },
5313
5325
  props: {
5314
5326
  height: String,
5315
5327
  readonly: Boolean,
@@ -5389,8 +5401,15 @@ var tablevue_type_script_lang_js_components;
5389
5401
  }
5390
5402
  },
5391
5403
  setStyle: function setStyle(res, data, field) {
5392
- this.style.left = res ? res.left + 'px' : '';
5393
- this.style.top = res ? res.top + 'px' : '';
5404
+ var left = 0;
5405
+ var top = 0;
5406
+ if (this.esDialog) {
5407
+ var style = this.esDialog.getDialog().getBoundingClientRect();
5408
+ left = style.left;
5409
+ top = style.top;
5410
+ }
5411
+ this.style.left = res ? res.left - left + 'px' : '';
5412
+ this.style.top = res ? res.top - top + 'px' : '';
5394
5413
  this.style.width = res ? res.width + 'px' : '';
5395
5414
  this.target = data;
5396
5415
  this.field = field;
@@ -5432,7 +5451,7 @@ var tablevue_type_script_lang_js_components;
5432
5451
 
5433
5452
  var table_component = Object(componentNormalizer["a" /* default */])(
5434
5453
  src_tablevue_type_script_lang_js_,
5435
- tablevue_type_template_id_736ff20c_render,
5454
+ tablevue_type_template_id_3953d5ce_render,
5436
5455
  staticRenderFns,
5437
5456
  false,
5438
5457
  null,
@@ -5443,6 +5462,8 @@ var table_component = Object(componentNormalizer["a" /* default */])(
5443
5462
 
5444
5463
  /* harmony default export */ var table = (table_component.exports);
5445
5464
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table-form/src/main.vue?vue&type=script&lang=js&
5465
+ 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; };
5466
+
5446
5467
  var mainvue_type_script_lang_js_components;
5447
5468
 
5448
5469
 
@@ -5579,15 +5600,17 @@ var mainvue_type_script_lang_js_components;
5579
5600
  }
5580
5601
  },
5581
5602
  render: function render(h) {
5582
- var _props;
5603
+ var _extends2;
5583
5604
 
5584
5605
  var tag = this.elForm ? 'div' : 'form';
5585
- return h(tag, {}, [h('eo-table', {
5586
- props: (_props = {
5606
+ return h(tag, {
5607
+ class: { 'es-data-form-full': this.full, 'es-data-table-form': 1 }
5608
+ }, [h('eo-table', {
5609
+ props: mainvue_type_script_lang_js_extends((_extends2 = {
5587
5610
  cols: this.cols,
5588
5611
  thead: this.theads,
5589
5612
  numbers: this.numbers
5590
- }, _props['cols'] = this.cols, _props.data = this.models, _props.types = this.types, _props.options = this.options, _props.page = this.page, _props),
5613
+ }, _extends2['cols'] = this.cols, _extends2.data = this.models, _extends2.types = this.types, _extends2.options = this.options, _extends2.page = this.page, _extends2), this.$attrs),
5591
5614
  on: this.$listeners
5592
5615
  })]);
5593
5616
  }
package/lib/data-table.js CHANGED
@@ -3748,8 +3748,8 @@ module.exports = require("vue");
3748
3748
  // ESM COMPAT FLAG
3749
3749
  __webpack_require__.r(__webpack_exports__);
3750
3750
 
3751
- // 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=76df6f7a&
3752
- var mainvue_type_template_id_76df6f7a_render = function () {
3751
+ // 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=5745f486&
3752
+ var mainvue_type_template_id_5745f486_render = function () {
3753
3753
  var _vm = this
3754
3754
  var _h = _vm.$createElement
3755
3755
  var _c = _vm._self._c || _h
@@ -4015,10 +4015,10 @@ var mainvue_type_template_id_76df6f7a_render = function () {
4015
4015
  )
4016
4016
  }
4017
4017
  var staticRenderFns = []
4018
- mainvue_type_template_id_76df6f7a_render._withStripped = true
4018
+ mainvue_type_template_id_5745f486_render._withStripped = true
4019
4019
 
4020
4020
 
4021
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=76df6f7a&
4021
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=5745f486&
4022
4022
 
4023
4023
  // EXTERNAL MODULE: ./src/config/api.js
4024
4024
  var api = __webpack_require__(1);
@@ -6343,7 +6343,11 @@ var mainvue_type_script_lang_js_components, _watch;
6343
6343
  least: Boolean,
6344
6344
  //保留搜索参数
6345
6345
  retainSearh: Boolean,
6346
- infiniteScroll: Boolean
6346
+ infiniteScroll: Boolean,
6347
+ isJoin: {
6348
+ type: Boolean,
6349
+ default: true
6350
+ }
6347
6351
  },
6348
6352
  data: function data() {
6349
6353
  return {
@@ -6376,6 +6380,9 @@ var mainvue_type_script_lang_js_components, _watch;
6376
6380
  },
6377
6381
 
6378
6382
  computed: {
6383
+ params: function params() {
6384
+ return mainvue_type_script_lang_js_extends({}, this.param || {}, this.searchValue || {}, this.advanceValue || {});
6385
+ },
6379
6386
  tag: function tag() {
6380
6387
  return this.form && this.elForm == '' ? 'el-form' : 'div';
6381
6388
  },
@@ -6810,7 +6817,7 @@ var mainvue_type_script_lang_js_components, _watch;
6810
6817
  this.config.pageNum = 1;
6811
6818
  }
6812
6819
  this.tableLoadingText = '加载中...';
6813
- var reqData = util["a" /* default */].extend({}, this.param, this.page ? {
6820
+ var reqData = util["a" /* default */].extend({}, this.params, this.page ? {
6814
6821
  pageNum: this.config.pageNum,
6815
6822
  pageSize: this.config.pageSize
6816
6823
  } : {});
@@ -6820,6 +6827,13 @@ var mainvue_type_script_lang_js_components, _watch;
6820
6827
  if (this.retainSearh) {
6821
6828
  reqData = util["a" /* default */].extend({}, reqData, this.wheres);
6822
6829
  }
6830
+ if (this.isJoin) {
6831
+ for (var i in reqData) {
6832
+ if (Array.isArray(reqData[i])) {
6833
+ reqData[i] = reqData[i].join(',');
6834
+ }
6835
+ }
6836
+ }
6823
6837
  this.tableLoading = true;
6824
6838
  util["a" /* default */].ajax({
6825
6839
  url: this.url,
@@ -7169,53 +7183,41 @@ var mainvue_type_script_lang_js_components, _watch;
7169
7183
  this.$emit('next', res);
7170
7184
  },
7171
7185
  hanleSearch: function hanleSearch(data) {
7172
- this.wheres = data;
7186
+ this.wheres = this.response !== undefined ? this.response({
7187
+ type: 'search',
7188
+ data: JSON.parse(JSON.stringify(data))
7189
+ }) : data;
7173
7190
  if (this.url) {
7174
- if (this.response !== undefined) {
7175
- this.getTableData({
7176
- where: this.response({
7177
- type: 'search',
7178
- data: JSON.parse(JSON.stringify(data))
7179
- })
7180
- });
7181
- } else {
7182
- this.getTableData({ where: this.wheres });
7183
- }
7191
+ this.getTableData();
7184
7192
  }
7185
- this.$emit('search', data);
7193
+ this.$emit('search', this.wheres);
7186
7194
  },
7187
7195
  hanleReset: function hanleReset() {
7188
7196
  if (this.url) {
7189
7197
  this.wheres = {};
7190
7198
  this.getTableData();
7191
7199
  }
7192
- this.$emit('reset');
7200
+ this.$emit('reset', this.params);
7193
7201
  },
7194
7202
  hanleSubmit: function hanleSubmit(_ref) {
7195
7203
  var data = _ref.data,
7196
7204
  show = _ref.show;
7197
7205
 
7198
- this.wheres = data;
7206
+ this.wheres = this.response !== undefined ? this.response({
7207
+ type: 'filter',
7208
+ data: JSON.parse(JSON.stringify(data))
7209
+ }) : data;
7199
7210
  if (this.url) {
7200
- if (this.response !== undefined) {
7201
- this.getTableData({
7202
- where: this.response({
7203
- type: 'filter',
7204
- data: JSON.parse(JSON.stringify(data))
7205
- })
7206
- });
7207
- } else {
7208
- this.getTableData({ where: this.wheres });
7209
- }
7211
+ this.getTableData();
7210
7212
  }
7211
- this.$emit('submit', { data: data, show: show });
7213
+ this.$emit('submit', { data: this.wheres, show: show });
7212
7214
  },
7213
7215
  hanleCancel: function hanleCancel() {
7214
- if (this.url && JSON.stringify(this.wheres) !== '{}') {
7215
- this.wheres = {};
7216
- this.getTableData();
7217
- }
7218
- this.$emit('cancel');
7216
+ // if (this.url && JSON.stringify(this.wheres) !== '{}') {
7217
+ // this.wheres = {};
7218
+ // this.getTableData();
7219
+ // }
7220
+ this.$emit('cancel', this.params);
7219
7221
  },
7220
7222
  handleTabs: function handleTabs(_ref2) {
7221
7223
  var item = _ref2.item,
@@ -7341,7 +7343,7 @@ var mainvue_type_script_lang_js_components, _watch;
7341
7343
 
7342
7344
  var main_component = Object(componentNormalizer["a" /* default */])(
7343
7345
  src_mainvue_type_script_lang_js_,
7344
- mainvue_type_template_id_76df6f7a_render,
7346
+ mainvue_type_template_id_5745f486_render,
7345
7347
  staticRenderFns,
7346
7348
  false,
7347
7349
  null,
@@ -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 = 71);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 72);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -3698,7 +3698,7 @@ var WebSocket = function () {
3698
3698
 
3699
3699
  /***/ }),
3700
3700
 
3701
- /***/ 71:
3701
+ /***/ 72:
3702
3702
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3703
3703
 
3704
3704
  "use strict";
package/lib/dialog.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 = 41);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 42);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ([
@@ -3755,14 +3755,15 @@ module.exports = require("wujie-vue2");
3755
3755
  /* 38 */,
3756
3756
  /* 39 */,
3757
3757
  /* 40 */,
3758
- /* 41 */
3758
+ /* 41 */,
3759
+ /* 42 */
3759
3760
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3760
3761
 
3761
3762
  "use strict";
3762
3763
  // ESM COMPAT FLAG
3763
3764
  __webpack_require__.r(__webpack_exports__);
3764
3765
 
3765
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/dialog/src/main.vue?vue&type=template&id=b1d8aec4&
3766
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/dialog/src/main.vue?vue&type=template&id=39199bdc&
3766
3767
  var render = function () {
3767
3768
  var _vm = this
3768
3769
  var _h = _vm.$createElement
@@ -4276,7 +4277,7 @@ var staticRenderFns = []
4276
4277
  render._withStripped = true
4277
4278
 
4278
4279
 
4279
- // CONCATENATED MODULE: ./packages/dialog/src/main.vue?vue&type=template&id=b1d8aec4&
4280
+ // CONCATENATED MODULE: ./packages/dialog/src/main.vue?vue&type=template&id=39199bdc&
4280
4281
 
4281
4282
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
4282
4283
  var regenerator_ = __webpack_require__(12);
@@ -4686,15 +4687,8 @@ var mainvue_type_script_lang_js_bus = external_wujie_vue2_default.a.bus;
4686
4687
 
4687
4688
  var availWidth = 0;
4688
4689
  var availHeight = 0;
4689
- var win = void 0;
4690
- try {
4691
- util["a" /* default */].win.top.document;
4692
- win = util["a" /* default */].win.top;
4693
- } catch (error) {
4694
- win = util["a" /* default */].getMyWinTop();
4695
- }
4696
- availWidth = win.document.body.offsetWidth - 260;
4697
- availHeight = win.document.body.offsetHeight - 60;
4690
+ availWidth = util["a" /* default */].win.top.document.body.offsetWidth - 260;
4691
+ availHeight = util["a" /* default */].win.top.document.body.offsetHeight - 60;
4698
4692
  this.sizes.max = { width: availWidth + 'px', height: availHeight + 'px' };
4699
4693
  if (this.size === 'full' || this.width == '100%' && this.height == '100%') {
4700
4694
  this.full = true;
@@ -4834,6 +4828,9 @@ var mainvue_type_script_lang_js_bus = external_wujie_vue2_default.a.bus;
4834
4828
  this.zoom = res;
4835
4829
  this.$set(this.scales, 'zoom', res);
4836
4830
  this.$emit('scale', res);
4831
+ },
4832
+ getDialog: function getDialog() {
4833
+ return this.$refs[this.wujieName].$refs['dialog'];
4837
4834
  }
4838
4835
  }
4839
4836
  });
package/lib/enterprise.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 = 42);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 43);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 42:
195
+ /***/ 43:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";