@jetlinks-web/components 2.0.26 → 2.0.28

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.
@@ -6,7 +6,7 @@
6
6
  } */
7
7
  import { defineComponent as _defineComponent } from 'vue';
8
8
  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";
9
- const _withScopeId = n => (_pushScopeId("data-v-1715308409364"), n = n(), _popScopeId(), n);
9
+ const _withScopeId = n => (_pushScopeId("data-v-1715680499730"), n = n(), _popScopeId(), n);
10
10
  const _hoisted_1 = { class: "full-page-warp-content" };
11
11
  import { ref } from 'vue';
12
12
  import { useElementBounding } from '@vueuse/core';
@@ -209,6 +209,7 @@ export default defineComponent({
209
209
  var subMenuItemRender = getSlot(slots, props, 'subMenuItemRender');
210
210
  var linksRender = getSlot(slots, props, 'linksRender');
211
211
  var logoRender = getSlot(slots, props, 'logoRender');
212
+ var historyRender = getSlot(slots, props, 'historyRender');
212
213
  var headerDom = computed(function () {
213
214
  return headerRender(_objectSpread(_objectSpread({}, props), {}, {
214
215
  menuItemRender: menuItemRender,
@@ -281,7 +282,7 @@ export default defineComponent({
281
282
  })])]);
282
283
  } else {
283
284
  var _slots$default3;
284
- var _slot2, _slot3, _slot4;
285
+ var _slot2, _slot3;
285
286
  return _createVNode(_Fragment, null, [_createVNode("div", {
286
287
  "class": className.value
287
288
  }, [_createVNode(Layout, null, {
@@ -309,7 +310,7 @@ export default defineComponent({
309
310
  padding: 0,
310
311
  height: '40px'
311
312
  }, props.pageHeaderStyle || {})
312
- }, _isSlot(_slot3 = _createVNode(Tabs, {
313
+ }, _isSlot(_slot2 = _createVNode(Tabs, {
313
314
  "hide-add": true,
314
315
  "type": "editable-card",
315
316
  "class": "history-tabs",
@@ -321,23 +322,23 @@ export default defineComponent({
321
322
  "onEdit": onTabEdit,
322
323
  "activeKey": props.historyActive,
323
324
  "onChange": onTabChange
324
- }, _isSlot(_slot2 = props.historyRoutes.map(function (item) {
325
- return _createVNode(Tabs.TabPane, {
326
- "key": item.name,
327
- "tab": item.label,
328
- "closable": true
329
- }, null);
330
- })) ? _slot2 : {
325
+ }, {
331
326
  default: function _default() {
332
- return [_slot2];
327
+ return [historyRender ? historyRender() : props.historyRoutes.map(function (item) {
328
+ return _createVNode(Tabs.TabPane, {
329
+ "key": item.name,
330
+ "tab": item.label,
331
+ "closable": true
332
+ }, null);
333
+ })];
333
334
  }
334
- })) ? _slot3 : {
335
+ })) ? _slot2 : {
335
336
  default: function _default() {
336
- return [_slot3];
337
+ return [_slot2];
337
338
  }
338
339
  }), _createVNode(LayoutContent, {
339
340
  "style": {
340
- height: "calc(100vh - 84px)",
341
+ flex: '1 1 0',
341
342
  overflow: 'auto'
342
343
  }
343
344
  }, {
@@ -348,13 +349,13 @@ export default defineComponent({
348
349
  "style": _objectSpread({
349
350
  padding: '11px 24px'
350
351
  }, props.pageFooterStyle || {})
351
- }, _isSlot(_slot4 = _createVNode(Breadcrumb, {
352
+ }, _isSlot(_slot3 = _createVNode(Breadcrumb, {
352
353
  "routes": breadcrumb.value.routes
353
354
  }, {
354
355
  itemRender: breadcrumb.value.itemRender
355
- })) ? _slot4 : {
356
+ })) ? _slot3 : {
356
357
  default: function _default() {
357
- return [_slot4];
358
+ return [_slot3];
358
359
  }
359
360
  })];
360
361
  }
@@ -21,7 +21,7 @@
21
21
  } */
22
22
  import { defineComponent as _defineComponent } from 'vue';
23
23
  import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
24
- const _withScopeId = n => (_pushScopeId("data-v-1715308410881"), n = n(), _popScopeId(), n);
24
+ const _withScopeId = n => (_pushScopeId("data-v-1715680502662"), n = n(), _popScopeId(), n);
25
25
  const _hoisted_1 = {
26
26
  key: 0,
27
27
  style: { "width": "240px" }
package/es/Search/Item.js CHANGED
@@ -78,7 +78,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
78
78
  } */
79
79
  import { defineComponent as _defineComponent } from 'vue';
80
80
  import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, createVNode as _createVNode, Fragment as _Fragment, normalizeStyle as _normalizeStyle, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
81
- const _withScopeId = n => (_pushScopeId("data-v-1715308410238"), n = n(), _popScopeId(), n);
81
+ const _withScopeId = n => (_pushScopeId("data-v-1715680500825"), n = n(), _popScopeId(), n);
82
82
  const _hoisted_1 = { class: "JSearch-item" };
83
83
  const _hoisted_2 = {
84
84
  key: 0,
@@ -36,7 +36,7 @@
36
36
  } */
37
37
  import { defineComponent as _defineComponent } from 'vue';
38
38
  import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, unref as _unref, withCtx as _withCtx, createBlock as _createBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
39
- const _withScopeId = n => (_pushScopeId("data-v-1715308410461"), n = n(), _popScopeId(), n);
39
+ const _withScopeId = n => (_pushScopeId("data-v-1715680501254"), n = n(), _popScopeId(), n);
40
40
  const _hoisted_1 = { class: "JSearch-content simple" };
41
41
  const _hoisted_2 = { class: "JSearch-items" };
42
42
  import { Button, Row, Col, Form, FormItemRest, } from 'ant-design-vue';
@@ -6,7 +6,7 @@
6
6
  } */
7
7
  import { defineComponent as _defineComponent } from 'vue';
8
8
  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";
9
- const _withScopeId = n => (_pushScopeId("data-v-1715308409372"), n = n(), _popScopeId(), n);
9
+ const _withScopeId = n => (_pushScopeId("data-v-1715680499744"), n = n(), _popScopeId(), n);
10
10
  const _hoisted_1 = { class: "full-page-warp-content" };
11
11
  import { ref } from 'vue';
12
12
  import { useElementBounding } from '@vueuse/core';
@@ -218,6 +218,7 @@ var _default2 = exports.default = (0, _vue.defineComponent)({
218
218
  var subMenuItemRender = (0, _util.getSlot)(slots, props, 'subMenuItemRender');
219
219
  var linksRender = (0, _util.getSlot)(slots, props, 'linksRender');
220
220
  var logoRender = (0, _util.getSlot)(slots, props, 'logoRender');
221
+ var historyRender = (0, _util.getSlot)(slots, props, 'historyRender');
221
222
  var headerDom = (0, _vue.computed)(function () {
222
223
  return headerRender((0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
223
224
  menuItemRender: menuItemRender,
@@ -290,7 +291,7 @@ var _default2 = exports.default = (0, _vue.defineComponent)({
290
291
  })])]);
291
292
  } else {
292
293
  var _slots$default3;
293
- var _slot2, _slot3, _slot4;
294
+ var _slot2, _slot3;
294
295
  return (0, _vue.createVNode)(_vue.Fragment, null, [(0, _vue.createVNode)("div", {
295
296
  "class": className.value
296
297
  }, [(0, _vue.createVNode)(_antDesignVue.Layout, null, {
@@ -318,7 +319,7 @@ var _default2 = exports.default = (0, _vue.defineComponent)({
318
319
  padding: 0,
319
320
  height: '40px'
320
321
  }, props.pageHeaderStyle || {})
321
- }, _isSlot(_slot3 = (0, _vue.createVNode)(_antDesignVue.Tabs, {
322
+ }, _isSlot(_slot2 = (0, _vue.createVNode)(_antDesignVue.Tabs, {
322
323
  "hide-add": true,
323
324
  "type": "editable-card",
324
325
  "class": "history-tabs",
@@ -330,23 +331,23 @@ var _default2 = exports.default = (0, _vue.defineComponent)({
330
331
  "onEdit": onTabEdit,
331
332
  "activeKey": props.historyActive,
332
333
  "onChange": onTabChange
333
- }, _isSlot(_slot2 = props.historyRoutes.map(function (item) {
334
- return (0, _vue.createVNode)(_antDesignVue.Tabs.TabPane, {
335
- "key": item.name,
336
- "tab": item.label,
337
- "closable": true
338
- }, null);
339
- })) ? _slot2 : {
334
+ }, {
340
335
  default: function _default() {
341
- return [_slot2];
336
+ return [historyRender ? historyRender() : props.historyRoutes.map(function (item) {
337
+ return (0, _vue.createVNode)(_antDesignVue.Tabs.TabPane, {
338
+ "key": item.name,
339
+ "tab": item.label,
340
+ "closable": true
341
+ }, null);
342
+ })];
342
343
  }
343
- })) ? _slot3 : {
344
+ })) ? _slot2 : {
344
345
  default: function _default() {
345
- return [_slot3];
346
+ return [_slot2];
346
347
  }
347
348
  }), (0, _vue.createVNode)(_antDesignVue.LayoutContent, {
348
349
  "style": {
349
- height: "calc(100vh - 84px)",
350
+ flex: '1 1 0',
350
351
  overflow: 'auto'
351
352
  }
352
353
  }, {
@@ -357,13 +358,13 @@ var _default2 = exports.default = (0, _vue.defineComponent)({
357
358
  "style": (0, _objectSpread2.default)({
358
359
  padding: '11px 24px'
359
360
  }, props.pageFooterStyle || {})
360
- }, _isSlot(_slot4 = (0, _vue.createVNode)(_antDesignVue.Breadcrumb, {
361
+ }, _isSlot(_slot3 = (0, _vue.createVNode)(_antDesignVue.Breadcrumb, {
361
362
  "routes": breadcrumb.value.routes
362
363
  }, {
363
364
  itemRender: breadcrumb.value.itemRender
364
- })) ? _slot4 : {
365
+ })) ? _slot3 : {
365
366
  default: function _default() {
366
- return [_slot4];
367
+ return [_slot3];
367
368
  }
368
369
  })];
369
370
  }
@@ -21,7 +21,7 @@
21
21
  } */
22
22
  import { defineComponent as _defineComponent } from 'vue';
23
23
  import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
24
- const _withScopeId = n => (_pushScopeId("data-v-1715308410898"), n = n(), _popScopeId(), n);
24
+ const _withScopeId = n => (_pushScopeId("data-v-1715680502627"), n = n(), _popScopeId(), n);
25
25
  const _hoisted_1 = {
26
26
  key: 0,
27
27
  style: { "width": "240px" }
@@ -78,7 +78,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
78
78
  } */
79
79
  import { defineComponent as _defineComponent } from 'vue';
80
80
  import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, createVNode as _createVNode, Fragment as _Fragment, normalizeStyle as _normalizeStyle, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
81
- const _withScopeId = n => (_pushScopeId("data-v-1715308410170"), n = n(), _popScopeId(), n);
81
+ const _withScopeId = n => (_pushScopeId("data-v-1715680500937"), n = n(), _popScopeId(), n);
82
82
  const _hoisted_1 = { class: "JSearch-item" };
83
83
  const _hoisted_2 = {
84
84
  key: 0,
@@ -36,7 +36,7 @@
36
36
  } */
37
37
  import { defineComponent as _defineComponent } from 'vue';
38
38
  import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, unref as _unref, withCtx as _withCtx, createBlock as _createBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
39
- const _withScopeId = n => (_pushScopeId("data-v-1715308410439"), n = n(), _popScopeId(), n);
39
+ const _withScopeId = n => (_pushScopeId("data-v-1715680501320"), n = n(), _popScopeId(), n);
40
40
  const _hoisted_1 = { class: "JSearch-content simple" };
41
41
  const _hoisted_2 = { class: "JSearch-items" };
42
42
  import { Button, Row, Col, Form, FormItemRest, } from 'ant-design-vue';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetlinks-web/components",
3
- "version": "2.0.26",
3
+ "version": "2.0.28",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -134,9 +134,9 @@
134
134
  "webpack-dev-server": "^4.0.0",
135
135
  "webpack-merge": "^5.0.0",
136
136
  "webpackbar": "^5.0.2",
137
+ "@jetlinks-web/utils": "^1.0.7",
137
138
  "@jetlinks-web/constants": "^1.0.2",
138
- "@jetlinks-web/hooks": "^1.0.12",
139
- "@jetlinks-web/utils": "^1.0.6"
139
+ "@jetlinks-web/hooks": "^1.0.13"
140
140
  },
141
141
  "publishConfig": {
142
142
  "registry": "https://registry.npmjs.org/",