@jetlinks-web/components 2.7.0 → 2.7.1

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 (172) hide show
  1. package/es/AMap/Map.js +1 -2
  2. package/es/AutoComplete/AutoComplete.js +0 -1
  3. package/es/BadgeStatus/Badge.js +1 -2
  4. package/es/CardSelect/CardSelect.js +1 -2
  5. package/es/CardSelect/style/css.js +1 -0
  6. package/es/CheckButton/CheckButton.js +1 -2
  7. package/es/CheckButton/style/css.js +1 -0
  8. package/es/DragModal/DragModal.js +0 -1
  9. package/es/DragModal/style/css.js +1 -0
  10. package/es/Echarts/Echarts.js +1 -2
  11. package/es/EditTable/EditTable.js +4 -6
  12. package/es/EditTable/FormItem.js +0 -1
  13. package/es/EditTable/Header.js +5 -3
  14. package/es/EditTable/components/ContextMenu/Menu.js +1 -2
  15. package/es/EditTable/components/Search/search.js +1 -2
  16. package/es/EditTable/components/Search/sort.js +1 -3
  17. package/es/EditTable/group.js +7 -10
  18. package/es/EditTable/hooks/useValidate.js +1 -1
  19. package/es/EditTable/style/css.js +1 -0
  20. package/es/EditTable/utils.js +1 -1
  21. package/es/Ellipsis/style/css.js +1 -0
  22. package/es/FullPage/FullPage.js +1 -2
  23. package/es/Icon/icon.js +3 -3
  24. package/es/LocaleProvider/index.js +1 -2
  25. package/es/MonacoEditor/style/css.js +1 -0
  26. package/es/PermissionButton/index.js +6 -7
  27. package/es/ProLayout/Basic/BasicLayout.js +34 -39
  28. package/es/ProLayout/Basic/Header.js +3 -7
  29. package/es/ProLayout/PageContainer/index.js +8 -12
  30. package/es/ProLayout/SiderMenu/BaseMenu.js +16 -39
  31. package/es/ProLayout/SiderMenu/SiderMenu.js +14 -34
  32. package/es/ProLayout/TopHeader/index.js +1 -9
  33. package/es/ProLayout/style/css.js +1 -0
  34. package/es/ProLayout/util.js +5 -5
  35. package/es/ProTable/Content.js +5 -5
  36. package/es/ProTable/hooks/useTableSelection.js +2 -0
  37. package/es/ProTable/style/css.js +1 -0
  38. package/es/RadioButton/RadioButton.js +0 -1
  39. package/es/RadioButton/style/css.js +1 -0
  40. package/es/Scrollbar/style/css.js +1 -0
  41. package/es/Search/Advanced/SaveHistory.js +1 -2
  42. package/es/Search/Item.js +1 -2
  43. package/es/Search/style/css.js +2 -0
  44. package/es/Title/style/css.js +1 -0
  45. package/es/Title/title.js +0 -1
  46. package/es/style/css.js +3 -0
  47. package/es/style/index.less +13 -13
  48. package/lib/AMap/Map.js +1 -2
  49. package/lib/AutoComplete/AutoComplete.js +0 -1
  50. package/lib/BadgeStatus/Badge.js +1 -2
  51. package/lib/CardSelect/CardSelect.js +1 -2
  52. package/lib/CardSelect/style/css.js +3 -0
  53. package/lib/CheckButton/CheckButton.js +1 -2
  54. package/lib/CheckButton/style/css.js +3 -0
  55. package/lib/DragModal/DragModal.js +0 -1
  56. package/lib/DragModal/style/css.js +3 -0
  57. package/lib/Echarts/Echarts.js +1 -2
  58. package/lib/EditTable/EditTable.js +4 -6
  59. package/lib/EditTable/FormItem.js +0 -1
  60. package/lib/EditTable/Header.js +5 -3
  61. package/lib/EditTable/components/ContextMenu/Menu.js +1 -2
  62. package/lib/EditTable/components/Search/search.js +1 -2
  63. package/lib/EditTable/components/Search/sort.js +1 -3
  64. package/lib/EditTable/group.js +7 -10
  65. package/lib/EditTable/hooks/useValidate.js +1 -1
  66. package/lib/EditTable/style/css.js +3 -0
  67. package/lib/EditTable/utils.js +1 -1
  68. package/lib/Ellipsis/style/css.js +3 -0
  69. package/lib/FullPage/FullPage.js +1 -2
  70. package/lib/Icon/icon.js +4 -5
  71. package/lib/LocaleProvider/index.js +1 -2
  72. package/lib/MonacoEditor/style/css.js +3 -0
  73. package/lib/PermissionButton/index.js +6 -7
  74. package/lib/ProLayout/Basic/BasicLayout.js +34 -40
  75. package/lib/ProLayout/Basic/Header.js +2 -6
  76. package/lib/ProLayout/PageContainer/index.js +7 -11
  77. package/lib/ProLayout/SiderMenu/BaseMenu.js +17 -39
  78. package/lib/ProLayout/SiderMenu/SiderMenu.js +14 -35
  79. package/lib/ProLayout/TopHeader/index.js +2 -9
  80. package/lib/ProLayout/style/css.js +3 -0
  81. package/lib/ProLayout/util.js +5 -5
  82. package/lib/ProTable/Content.js +5 -5
  83. package/lib/ProTable/hooks/useTableSelection.js +2 -0
  84. package/lib/ProTable/style/css.js +3 -0
  85. package/lib/RadioButton/RadioButton.js +0 -1
  86. package/lib/RadioButton/style/css.js +3 -0
  87. package/lib/Scrollbar/style/css.js +3 -0
  88. package/lib/Search/Advanced/SaveHistory.js +1 -2
  89. package/lib/Search/Item.js +1 -2
  90. package/lib/Search/style/css.js +4 -0
  91. package/lib/Title/style/css.js +3 -0
  92. package/lib/Title/title.js +0 -1
  93. package/lib/components.js +1 -2
  94. package/lib/index.js +1 -2
  95. package/lib/style/css.js +4 -0
  96. package/lib/style/index.less +13 -13
  97. package/package.json +5 -5
  98. package/es/CardSelect/style/index.css +0 -24
  99. package/es/CardSelect/style/index.less +0 -26
  100. package/es/CheckButton/style/index.css +0 -37
  101. package/es/CheckButton/style/index.less +0 -40
  102. package/es/DragModal/style/index.css +0 -82
  103. package/es/DragModal/style/index.less +0 -97
  104. package/es/EditTable/style/body.less +0 -66
  105. package/es/EditTable/style/form.less +0 -33
  106. package/es/EditTable/style/group.less +0 -32
  107. package/es/EditTable/style/header.less +0 -77
  108. package/es/EditTable/style/index.css +0 -267
  109. package/es/EditTable/style/index.less +0 -41
  110. package/es/EditTable/style/menu.less +0 -25
  111. package/es/EditTable/style/table.less +0 -47
  112. package/es/Ellipsis/style/index.css +0 -17
  113. package/es/Ellipsis/style/index.less +0 -20
  114. package/es/MonacoEditor/style/index.css +0 -4
  115. package/es/MonacoEditor/style/index.less +0 -4
  116. package/es/ProLayout/Basic/BasicLayout.less +0 -66
  117. package/es/ProLayout/Basic/Header.less +0 -8
  118. package/es/ProLayout/PageContainer/index.less +0 -103
  119. package/es/ProLayout/SiderMenu/index.less +0 -231
  120. package/es/ProLayout/TopHeader/index.less +0 -174
  121. package/es/ProLayout/style/default.less +0 -4
  122. package/es/ProLayout/style/style.less +0 -7
  123. package/es/ProTable/style/ProTable.less +0 -141
  124. package/es/RadioButton/style/index.css +0 -20
  125. package/es/RadioButton/style/index.less +0 -19
  126. package/es/Scrollbar/style/index.css +0 -65
  127. package/es/Scrollbar/style/index.less +0 -83
  128. package/es/Search/style/Item.less +0 -33
  129. package/es/Search/style/Search.less +0 -179
  130. package/es/Title/style/index.css +0 -23
  131. package/es/Title/style/index.less +0 -25
  132. package/es/style/index.css +0 -5197
  133. package/es/style/variable.css +0 -4
  134. package/es/style/variable.less +0 -4
  135. package/lib/CardSelect/style/index.css +0 -24
  136. package/lib/CardSelect/style/index.less +0 -26
  137. package/lib/CheckButton/style/index.css +0 -37
  138. package/lib/CheckButton/style/index.less +0 -40
  139. package/lib/DragModal/style/index.css +0 -82
  140. package/lib/DragModal/style/index.less +0 -97
  141. package/lib/EditTable/style/body.less +0 -66
  142. package/lib/EditTable/style/form.less +0 -33
  143. package/lib/EditTable/style/group.less +0 -32
  144. package/lib/EditTable/style/header.less +0 -77
  145. package/lib/EditTable/style/index.css +0 -267
  146. package/lib/EditTable/style/index.less +0 -41
  147. package/lib/EditTable/style/menu.less +0 -25
  148. package/lib/EditTable/style/table.less +0 -47
  149. package/lib/Ellipsis/style/index.css +0 -17
  150. package/lib/Ellipsis/style/index.less +0 -20
  151. package/lib/MonacoEditor/style/index.css +0 -4
  152. package/lib/MonacoEditor/style/index.less +0 -4
  153. package/lib/ProLayout/Basic/BasicLayout.less +0 -66
  154. package/lib/ProLayout/Basic/Header.less +0 -8
  155. package/lib/ProLayout/PageContainer/index.less +0 -103
  156. package/lib/ProLayout/SiderMenu/index.less +0 -231
  157. package/lib/ProLayout/TopHeader/index.less +0 -174
  158. package/lib/ProLayout/style/default.less +0 -4
  159. package/lib/ProLayout/style/style.less +0 -7
  160. package/lib/ProTable/style/ProTable.less +0 -141
  161. package/lib/RadioButton/style/index.css +0 -20
  162. package/lib/RadioButton/style/index.less +0 -19
  163. package/lib/Scrollbar/style/index.css +0 -65
  164. package/lib/Scrollbar/style/index.less +0 -83
  165. package/lib/Search/style/Item.less +0 -33
  166. package/lib/Search/style/Search.less +0 -179
  167. package/lib/Title/style/index.css +0 -23
  168. package/lib/Title/style/index.less +0 -25
  169. package/lib/style/components.less +0 -9
  170. package/lib/style/index.css +0 -5197
  171. package/lib/style/variable.css +0 -4
  172. package/lib/style/variable.less +0 -4
@@ -41,7 +41,6 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
41
41
  "useSlots": "setup-const",
42
42
  "ref": "setup-const",
43
43
  "reactive": "setup-const",
44
- "defineOptions": "setup-const",
45
44
  "computed": "setup-const",
46
45
  "watch": "setup-const",
47
46
  "bodyProps": "setup-maybe-ref",
@@ -109,7 +108,6 @@ const _hoisted_3 = {
109
108
  key: 0,
110
109
  class: "jetlinks-table-horizontal-scroll"
111
110
  };
112
- const _hoisted_4 = /*#__PURE__*/ _createElementVNode("div", { style: { "width": "15px", "height": "100%", "overflow-x": "hidden" } }, null, -1 /* HOISTED */);
113
111
  import { FULL_SCREEN, RIGHT_MENU, TABLE_DATA_SOURCE, TABLE_ERROR, TABLE_GROUP_ACTIVE, TABLE_GROUP_ERROR, TABLE_GROUP_OPTIONS, TABLE_H_SCROLL, TABLE_OPEN_GROUP, TABLE_TOOL, TABLE_WRAPPER } from './consts';
114
112
  import { handleColumnsWidth } from './utils';
115
113
  import { useGroup, useResizeObserver, useValidate } from './hooks';
@@ -515,18 +513,18 @@ const __sfc_main__ = Object.assign({
515
513
  class: "jetlinks-table-horizontal-scroll-bar",
516
514
  ref_key: "scrollBarRef",
517
515
  ref: scrollBarRef,
518
- style: _normalizeStyle({
516
+ style: {
519
517
  width: 'calc(100% - 15px)',
520
518
  height: '100%',
521
519
  overflowX: 'scroll'
522
- }),
520
+ },
523
521
  onScroll: onHorizontalScroll
524
522
  }, [
525
523
  _createElementVNode("div", {
526
524
  style: _normalizeStyle({ minWidth: horizontalScrollWidth.value + 'px', maxWidth: horizontalScrollWidth.value + 'px', height: '100%' })
527
525
  }, null, 4 /* STYLE */)
528
- ], 36 /* STYLE, NEED_HYDRATION */),
529
- _hoisted_4
526
+ ], 544 /* NEED_HYDRATION, NEED_PATCH */),
527
+ _cache[1] || (_cache[1] = _createElementVNode("div", { style: { "width": "15px", "height": "100%", "overflow-x": "hidden" } }, null, -1 /* CACHED */))
530
528
  ]))
531
529
  : _createCommentVNode("v-if", true),
532
530
  (_ctx.dataSource.length && _ctx.openGroup)
@@ -21,7 +21,6 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
21
21
  "computed": "setup-const",
22
22
  "reactive": "setup-const",
23
23
  "watch": "setup-const",
24
- "defineOptions": "setup-const",
25
24
  "provide": "setup-const",
26
25
  "get": "setup-maybe-ref",
27
26
  "isArray": "setup-maybe-ref",
@@ -22,7 +22,6 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
22
22
  "SearchModal": "setup-maybe-ref",
23
23
  "Sort": "setup-maybe-ref",
24
24
  "reactive": "setup-const",
25
- "defineOptions": "setup-const",
26
25
  "useHScroll": "setup-maybe-ref",
27
26
  "useTableTool": "setup-maybe-ref",
28
27
  "HeaderItemRender": "setup-const",
@@ -47,7 +46,7 @@ const _hoisted_6 = {
47
46
  class: "table-header-cell-trigger"
48
47
  };
49
48
  import { SearchModal, Sort } from './components/Search';
50
- import { reactive, } from 'vue';
49
+ import { reactive } from 'vue';
51
50
  import { useHScroll, useTableTool } from "./hooks";
52
51
  import HeaderItemRender from './HeaderRender.js';
53
52
  const __sfc_main__ = Object.assign({
@@ -126,7 +125,10 @@ const __sfc_main__ = Object.assign({
126
125
  }, null, 8 /* PROPS */, ["onClick"]))
127
126
  : _createCommentVNode("v-if", true),
128
127
  (item.sort)
129
- ? (_openBlock(), _createBlock(_unref(Sort), _mergeProps({ key: 1 }, item.sort, {
128
+ ? (_openBlock(), _createBlock(_unref(Sort), _mergeProps({
129
+ key: 1,
130
+ ref_for: true
131
+ }, item.sort, {
130
132
  key: item.dataIndex,
131
133
  active: _unref(tableTool).sortData.dataIndex === item.dataIndex,
132
134
  selectedRowKeys: _unref(tableTool).sortData.dataIndex === item.dataIndex ? _unref(tableTool).sortData.orderKeys : [],
@@ -23,7 +23,6 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
23
23
  "onMounted": "setup-const",
24
24
  "ref": "setup-const",
25
25
  "nextTick": "setup-const",
26
- "defineOptions": "setup-const",
27
26
  "AIcon": "setup-maybe-ref",
28
27
  "Menu": "setup-maybe-ref",
29
28
  "useLocaleReceiver": "setup-maybe-ref",
@@ -38,7 +37,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
38
37
  "close": "setup-const"
39
38
  } */
40
39
  import { unref as _unref, createVNode as _createVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
41
- import { onMounted, ref, nextTick, } from "vue";
40
+ import { onMounted, ref, nextTick } from "vue";
42
41
  import { AIcon } from '../../../components';
43
42
  import { Menu } from 'ant-design-vue/lib/';
44
43
  import { useLocaleReceiver } from "../../../LocaleReciver";
@@ -24,7 +24,6 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
24
24
  "useGroupOptions": "setup-maybe-ref",
25
25
  "ref": "setup-const",
26
26
  "computed": "setup-const",
27
- "defineOptions": "setup-const",
28
27
  "Ellipsis": "setup-const",
29
28
  "DragModal": "setup-const",
30
29
  "useLocaleReceiver": "setup-maybe-ref",
@@ -68,7 +67,7 @@ const _hoisted_6 = { key: 1 };
68
67
  const _hoisted_7 = { class: "jetlinks-table-search-result-total" };
69
68
  import Table from '../../EditTable.js';
70
69
  import { useTableDataSource, useTableOpenGroup, useTableTool, useGroupOptions } from "../../context";
71
- import { ref, computed, } from "vue";
70
+ import { ref, computed } from "vue";
72
71
  import Ellipsis from '../../../Ellipsis/Ellipsis.js';
73
72
  import DragModal from '../../../DragModal/DragModal.js';
74
73
  import { useLocaleReceiver } from "../../../LocaleReciver/index";
@@ -22,7 +22,6 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
22
22
  "active": "props",
23
23
  "useTableTool": "setup-maybe-ref",
24
24
  "useTableWrapper": "setup-maybe-ref",
25
- "defineOptions": "setup-const",
26
25
  "ref": "setup-const",
27
26
  "reactive": "setup-const",
28
27
  "useLocaleReceiver": "setup-maybe-ref",
@@ -41,8 +40,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
41
40
  "onAsc": "setup-const",
42
41
  "onDesc": "setup-const"
43
42
  } */
44
- import { unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
45
- const _withScopeId = n => (_pushScopeId("data-v-1755250733021"), n = n(), _popScopeId(), n);
43
+ import { unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, normalizeClass as _normalizeClass } from "vue";
46
44
  const _hoisted_1 = { class: "jetlinks-table-sort-content" };
47
45
  const _hoisted_2 = { class: "jetlinks-table-sort-title" };
48
46
  const _hoisted_3 = { class: "table-sort-body" };
@@ -24,7 +24,6 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
24
24
  "useTableGroupError": "setup-maybe-ref",
25
25
  "useTableWrapper": "setup-maybe-ref",
26
26
  "ref": "setup-const",
27
- "defineOptions": "setup-const",
28
27
  "useLocaleReceiver": "setup-maybe-ref",
29
28
  "props": "setup-reactive-const",
30
29
  "emit": "setup-const",
@@ -50,18 +49,16 @@ import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlo
50
49
  const _hoisted_1 = { class: "jetlinks-table-group-warp" };
51
50
  const _hoisted_2 = { class: "jetlinks-table-group-error-warp" };
52
51
  const _hoisted_3 = { style: { "color": "#1d2129" } };
53
- const _hoisted_4 = /*#__PURE__*/ _createElementVNode("div", { class: "jetlinks-table-group-error-target" }, null, -1 /* HOISTED */);
54
- const _hoisted_5 = {
52
+ const _hoisted_4 = {
55
53
  key: 1,
56
54
  class: "jetlinks-table-group-error-warp"
57
55
  };
58
- const _hoisted_6 = { style: { "color": "#1d2129" } };
59
- const _hoisted_7 = /*#__PURE__*/ _createElementVNode("div", { class: "jetlinks-table-group-error-target" }, null, -1 /* HOISTED */);
56
+ const _hoisted_5 = { style: { "color": "#1d2129" } };
60
57
  import { Modal } from "ant-design-vue/lib/";
61
58
  import { randomNumber } from "@jetlinks-web/utils";
62
59
  import { isFullScreen } from "./utils";
63
60
  import { useTableGroupError, useTableWrapper } from './context';
64
- import { ref, } from 'vue';
61
+ import { ref } from 'vue';
65
62
  import { useLocaleReceiver } from "../LocaleReciver";
66
63
  const __sfc_main__ = Object.assign({
67
64
  name: 'JEditTableGroup'
@@ -270,7 +267,7 @@ const __sfc_main__ = Object.assign({
270
267
  _createElementVNode("span", _hoisted_3, _toDisplayString(_unref(contextLocale).Group.validate), 1 /* TEXT */)
271
268
  ]),
272
269
  default: _withCtx(() => [
273
- _hoisted_4
270
+ _cache[2] || (_cache[2] = _createElementVNode("div", { class: "jetlinks-table-group-error-target" }, null, -1 /* CACHED */))
274
271
  ]),
275
272
  _: 1 /* STABLE */
276
273
  }))
@@ -279,7 +276,7 @@ const __sfc_main__ = Object.assign({
279
276
  ]),
280
277
  _: 2 /* DYNAMIC */
281
278
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["getPopupContainer", "disabled"]))
282
- : (_openBlock(), _createElementBlock("div", _hoisted_5, [
279
+ : (_openBlock(), _createElementBlock("div", _hoisted_4, [
283
280
  _createTextVNode(_toDisplayString(item.label) + " (" + _toDisplayString(item.effective) + ") ", 1 /* TEXT */),
284
281
  (_unref(errorMap)[item.value])
285
282
  ? (_openBlock(), _createBlock(_component_a_tooltip, {
@@ -289,10 +286,10 @@ const __sfc_main__ = Object.assign({
289
286
  getContainer: popContainer
290
287
  }, {
291
288
  title: _withCtx(() => [
292
- _createElementVNode("span", _hoisted_6, _toDisplayString(_unref(contextLocale).Group.validate), 1 /* TEXT */)
289
+ _createElementVNode("span", _hoisted_5, _toDisplayString(_unref(contextLocale).Group.validate), 1 /* TEXT */)
293
290
  ]),
294
291
  default: _withCtx(() => [
295
- _hoisted_7
292
+ _cache[3] || (_cache[3] = _createElementVNode("div", { class: "jetlinks-table-group-error-target" }, null, -1 /* CACHED */))
296
293
  ]),
297
294
  _: 1 /* STABLE */
298
295
  }))
@@ -25,7 +25,7 @@ var useValidate = exports.useValidate = function useValidate(dataSource, columns
25
25
  firstFields: true,
26
26
  index: index
27
27
  }, function (err) {
28
- if (err === null || err === void 0 ? void 0 : err.length) {
28
+ if (err !== null && err !== void 0 && err.length) {
29
29
  reject(err.map(function (item) {
30
30
  return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, item), {}, {
31
31
  __serial: data.__serial,
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+
3
+ require("./index.css");
@@ -15,7 +15,7 @@ var collectValidateRules = exports.collectValidateRules = function collectValida
15
15
  var rules = {};
16
16
  columns.forEach(function (item) {
17
17
  var _item$form;
18
- if ((_item$form = item.form) === null || _item$form === void 0 ? void 0 : _item$form.rules) {
18
+ if ((_item$form = item.form) !== null && _item$form !== void 0 && _item$form.rules) {
19
19
  var currentLevel = rules; // 从最顶层开始构建
20
20
  var field = item.form.field || item.dataIndex;
21
21
  var parts = Array.isArray(field) ? field : String(field).split(',');
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+
3
+ require("./index.css");
@@ -8,8 +8,7 @@
8
8
  "y": "setup-maybe-ref"
9
9
  } */
10
10
  import { defineComponent as _defineComponent } from 'vue';
11
- import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
12
- const _withScopeId = n => (_pushScopeId("data-v-1755250731524"), n = n(), _popScopeId(), n);
11
+ import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
13
12
  const _hoisted_1 = { class: "full-page-warp-content" };
14
13
  import { ref, inject } from 'vue';
15
14
  import { useElementBounding } from '@vueuse/core';
package/lib/Icon/icon.js CHANGED
@@ -11,11 +11,10 @@ var _vue = require("vue");
11
11
  var _iconsVue = _interopRequireWildcard(require("@ant-design/icons-vue/lib/icons"));
12
12
  var aIcon = _iconsVue;
13
13
  var _constants = require("../utils/constants");
14
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
15
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
- var MyIcon = (0, _iconsVue.createFromIconfontCN)({
17
- scriptUrl: '//at.alicdn.com/t/c/font_3183515_i7oma42he.js' // 在 iconfont.cn 上生成
18
- });
14
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
15
+ var MyIcon = function MyIcon() {
16
+ return function () {};
17
+ };
19
18
  var AntdIcon = function AntdIcon(props) {
20
19
  return (0, _vue.createVNode)(aIcon[props.type]);
21
20
  };
@@ -3,14 +3,13 @@
3
3
  "provide": "setup-const",
4
4
  "reactive": "setup-const",
5
5
  "watch": "setup-const",
6
- "defineOptions": "setup-const",
7
6
  "defaultLocal": "setup-maybe-ref",
8
7
  "props": "setup-reactive-const",
9
8
  "state": "setup-reactive-const"
10
9
  } */
11
10
  import { defineComponent as _defineComponent } from 'vue';
12
11
  import { renderSlot as _renderSlot } from "vue";
13
- import { provide, reactive, watch, } from "vue";
12
+ import { provide, reactive, watch } from "vue";
14
13
  import defaultLocal from '../locale/zh-CN';
15
14
  const __sfc_main__ = _defineComponent({
16
15
  ...{
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+
3
+ require("./index.css");
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- var _typeof = require("@babel/runtime/helpers/typeof");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.destroyFns = exports.default = void 0;
8
+ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
11
11
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
@@ -21,7 +21,6 @@ var _confirm = _interopRequireDefault(require("./confirm"));
21
21
  var _constants = require("../utils/constants");
22
22
  var _LocaleReciver = require("../LocaleReciver");
23
23
  var _excluded = ["popConfirm", "tooltip", "hasPermission", "noPermissionTitle"];
24
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
25
24
  var definedProps = (0, _objectSpread2.default)({
26
25
  tooltip: {
27
26
  type: Object
@@ -84,15 +83,15 @@ var PermissionButton = (0, _vue.defineComponent)({
84
83
  noPermissionTitle = props.noPermissionTitle,
85
84
  buttonProps = (0, _objectWithoutProperties2.default)(props, _excluded);
86
85
  if (popConfirm) {
87
- buttonProps.onClick = /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
86
+ buttonProps.onClick = /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
88
87
  var _props$popConfirmBefo;
89
88
  var _popConfirm;
90
- return _regeneratorRuntime().wrap(function _callee$(_context) {
89
+ return _regenerator.default.wrap(function (_context) {
91
90
  while (1) switch (_context.prev = _context.next) {
92
91
  case 0:
93
- _context.next = 2;
92
+ _context.next = 1;
94
93
  return ((_props$popConfirmBefo = props.popConfirmBefore) === null || _props$popConfirmBefo === void 0 ? void 0 : _props$popConfirmBefo.call(props)) || popConfirm;
95
- case 2:
94
+ case 1:
96
95
  _popConfirm = _context.sent;
97
96
  if (context.components) {
98
97
  (0, _confirm.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, _popConfirm), {}, {
@@ -112,7 +111,7 @@ var PermissionButton = (0, _vue.defineComponent)({
112
111
  }
113
112
  });
114
113
  }
115
- case 4:
114
+ case 2:
116
115
  case "end":
117
116
  return _context.stop();
118
117
  }
@@ -20,11 +20,7 @@ var _RouteContext = require("../RouteContext");
20
20
  var _util = require("../util");
21
21
  var _lib = require("ant-design-vue/lib/");
22
22
  var _excluded = ["pure", "onCollapse", "onOpenKeys", "onSelect", "onMenuClick"];
23
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
24
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
25
- function _isSlot(s) {
26
- return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0, _vue.isVNode)(s);
27
- }
23
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
28
24
  var basicLayoutProps = exports.basicLayoutProps = (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, _defaultSettings.defaultSettingProps), _SiderMenu.siderMenuProps), _TopHeader.baseHeaderProps), _Header.headerViewProps), {}, {
29
25
  pure: Boolean,
30
26
  loading: Boolean,
@@ -255,7 +251,6 @@ var _default2 = exports.default = (0, _vue.defineComponent)({
255
251
  return (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
256
252
  }
257
253
  if (props.layoutType === _defaultSettings.LayoutType.LIST) {
258
- var _slot;
259
254
  var _slots$default2;
260
255
  return (0, _vue.createVNode)(_vue.Fragment, null, [(0, _vue.createVNode)("div", {
261
256
  "class": className.value
@@ -282,13 +277,13 @@ var _default2 = exports.default = (0, _vue.defineComponent)({
282
277
  "onSelect": onSelect,
283
278
  "onOpenKeys": onOpenKeys,
284
279
  "onMenuClick": onMenuClick
285
- }), null), (0, _vue.createVNode)(_lib.Layout, null, _isSlot(_slot = (0, _vue.createVNode)(_lib.LayoutContent, null, {
280
+ }), null), (0, _vue.createVNode)(_lib.Layout, null, {
286
281
  default: function _default() {
287
- return [(_slots$default2 = slots.default) === null || _slots$default2 === void 0 ? void 0 : _slots$default2.call(slots)];
288
- }
289
- })) ? _slot : {
290
- default: function _default() {
291
- return [_slot];
282
+ return [(0, _vue.createVNode)(_lib.LayoutContent, null, {
283
+ default: function _default() {
284
+ return [(_slots$default2 = slots.default) === null || _slots$default2 === void 0 ? void 0 : _slots$default2.call(slots)];
285
+ }
286
+ })];
292
287
  }
293
288
  })];
294
289
  }
@@ -335,7 +330,6 @@ var _default2 = exports.default = (0, _vue.defineComponent)({
335
330
  })]);
336
331
  } else {
337
332
  var _slots$default4;
338
- var _slot2, _slot3;
339
333
  return (0, _vue.createVNode)(_vue.Fragment, null, [(0, _vue.createVNode)("div", {
340
334
  "class": className.value
341
335
  }, [(0, _vue.createVNode)(_lib.Layout, null, {
@@ -363,32 +357,32 @@ var _default2 = exports.default = (0, _vue.defineComponent)({
363
357
  padding: 0,
364
358
  height: '40px'
365
359
  }, props.pageHeaderStyle || {})
366
- }, _isSlot(_slot2 = (0, _vue.createVNode)(_lib.Tabs, {
367
- "hide-add": true,
368
- "type": "editable-card",
369
- "class": "history-tabs",
370
- "id": 'history-route-tabs',
371
- "tabBarStyle": {
372
- margin: 0
373
- },
374
- "onTabClick": onTabClick,
375
- "onEdit": onTabEdit,
376
- "activeKey": props.historyActive,
377
- "onChange": onTabChange
378
360
  }, {
379
361
  default: function _default() {
380
- return [historyRender ? historyRender() : props.historyRoutes.map(function (item) {
381
- return (0, _vue.createVNode)(_lib.Tabs.TabPane, {
382
- "key": item.name,
383
- "tab": item.label,
384
- "closable": true
385
- }, null);
362
+ return [(0, _vue.createVNode)(_lib.Tabs, {
363
+ "hide-add": true,
364
+ "type": "editable-card",
365
+ "class": "history-tabs",
366
+ "id": "history-route-tabs",
367
+ "tabBarStyle": {
368
+ margin: 0
369
+ },
370
+ "onTabClick": onTabClick,
371
+ "onEdit": onTabEdit,
372
+ "activeKey": props.historyActive,
373
+ "onChange": onTabChange
374
+ }, {
375
+ default: function _default() {
376
+ return [historyRender ? historyRender() : props.historyRoutes.map(function (item) {
377
+ return (0, _vue.createVNode)(_lib.Tabs.TabPane, {
378
+ "key": item.name,
379
+ "tab": item.label,
380
+ "closable": true
381
+ }, null);
382
+ })];
383
+ }
386
384
  })];
387
385
  }
388
- })) ? _slot2 : {
389
- default: function _default() {
390
- return [_slot2];
391
- }
392
386
  }), (0, _vue.createVNode)(_lib.LayoutContent, {
393
387
  "style": {
394
388
  flex: '1 1 0',
@@ -402,13 +396,13 @@ var _default2 = exports.default = (0, _vue.defineComponent)({
402
396
  "style": (0, _objectSpread2.default)({
403
397
  padding: '11px 24px'
404
398
  }, props.pageFooterStyle || {})
405
- }, _isSlot(_slot3 = (0, _vue.createVNode)(_lib.Breadcrumb, {
406
- "routes": breadcrumb.value.routes
407
399
  }, {
408
- itemRender: breadcrumb.value.itemRender
409
- })) ? _slot3 : {
410
400
  default: function _default() {
411
- return [_slot3];
401
+ return [(0, _vue.createVNode)(_lib.Breadcrumb, {
402
+ "routes": breadcrumb.value.routes
403
+ }, {
404
+ itemRender: breadcrumb.value.itemRender
405
+ })];
412
406
  }
413
407
  })];
414
408
  }
@@ -13,9 +13,6 @@ var _vueTypes = _interopRequireDefault(require("ant-design-vue/lib/_util/vue-typ
13
13
  var _RouteContext = require("../RouteContext");
14
14
  var _lib = require("ant-design-vue/lib/");
15
15
  var _defaultSettings = require("../defaultSettings");
16
- function _isSlot(s) {
17
- return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0, _vue.isVNode)(s);
18
- }
19
16
  var headerViewProps = exports.headerViewProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _TopHeader.baseHeaderProps), {}, {
20
17
  headerRender: {
21
18
  type: [Object, Function, Boolean],
@@ -83,7 +80,6 @@ var _default2 = exports.default = (0, _vue.defineComponent)({
83
80
  return 0;
84
81
  });
85
82
  return function () {
86
- var _slot;
87
83
  return (0, _vue.createVNode)(_vue.Fragment, null, [needFixedHeader.value && (0, _vue.createVNode)(_lib.Layout.Header, {
88
84
  "style": {
89
85
  height: "".concat(headerHeight.value, "px"),
@@ -100,9 +96,9 @@ var _default2 = exports.default = (0, _vue.defineComponent)({
100
96
  right: right.value
101
97
  },
102
98
  "class": className.value
103
- }, _isSlot(_slot = renderContent()) ? _slot : {
99
+ }, {
104
100
  default: function _default() {
105
- return [_slot];
101
+ return [renderContent()];
106
102
  }
107
103
  })]);
108
104
  };
@@ -19,9 +19,6 @@ require("ant-design-vue/lib/_util/vue-types");
19
19
  var _defaultSettings = require("../defaultSettings");
20
20
  var _LocaleReciver = require("../../LocaleReciver");
21
21
  var _excluded = ["title", "tabList", "tabActiveKey", "content", "pageHeaderRender", "header", "extraContent", "prefixedClassName", "prefixCls", "fixedHeader", "showBack"];
22
- function _isSlot(s) {
23
- return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0, _vue.isVNode)(s);
24
- }
25
22
  var pageHeaderTabConfig = exports.pageHeaderTabConfig = {
26
23
  /**
27
24
  * @name tabs 的列表
@@ -157,7 +154,6 @@ var renderFooter = function renderFooter(props) {
157
154
  }, [item.tab]);
158
155
  };
159
156
  if (tabList && tabList.length) {
160
- var _slot;
161
157
  return (0, _vue.createVNode)(_lib.Tabs, (0, _objectSpread2.default)({
162
158
  "class": "page-container-tabs",
163
159
  "activeKey": tabActiveKey,
@@ -167,14 +163,14 @@ var renderFooter = function renderFooter(props) {
167
163
  }
168
164
  },
169
165
  "tabBarExtraContent": tabBarExtraContent
170
- }, tabProps), _isSlot(_slot = tabList.map(function (item) {
171
- return (0, _vue.createVNode)(_lib.Tabs.TabPane, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, item), {}, {
172
- "tab": tabPane(item),
173
- "key": item.key
174
- }), null);
175
- })) ? _slot : {
166
+ }, tabProps), {
176
167
  default: function _default() {
177
- return [_slot];
168
+ return [tabList.map(function (item) {
169
+ return (0, _vue.createVNode)(_lib.Tabs.TabPane, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, item), {}, {
170
+ "tab": tabPane(item),
171
+ "key": item.key
172
+ }), null);
173
+ })];
178
174
  }
179
175
  });
180
176
  }