@jetlinks-web/components 2.0.6 → 2.0.7

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-1713333270029"), n = n(), _popScopeId(), n);
9
+ const _withScopeId = n => (_pushScopeId("data-v-1713344574942"), 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';
@@ -204,6 +204,7 @@ export default defineComponent({
204
204
  var menuContentRender = getSlot(slots, props, 'menuContentRender');
205
205
  var menuItemRender = getSlot(slots, props, 'menuItemRender');
206
206
  var subMenuItemRender = getSlot(slots, props, 'subMenuItemRender');
207
+ var linksRender = getSlot(slots, props, 'linksRender');
207
208
  var headerDom = computed(function () {
208
209
  return headerRender(_objectSpread(_objectSpread({}, props), {}, {
209
210
  menuItemRender: menuItemRender,
@@ -284,6 +285,7 @@ export default defineComponent({
284
285
  "headerHeight": 0,
285
286
  "menuHeaderRender": menuHeaderRender,
286
287
  "menuExtraRender": menuExtraRender,
288
+ "linksRender": linksRender,
287
289
  "menuContentRender": menuContentRender,
288
290
  "menuItemRender": menuItemRender,
289
291
  "subMenuItemRender": subMenuItemRender,
@@ -9,6 +9,7 @@ import PropTypes from 'ant-design-vue/es/_util/vue-types';
9
9
  import IconFont from '../../Icon';
10
10
  import { useRouteContext } from '../RouteContext';
11
11
  import { computed, unref } from 'vue';
12
+ import "../typings";
12
13
  function _isSlot(s) {
13
14
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !_isVNode(s);
14
15
  }
@@ -52,6 +53,12 @@ export var siderMenuProps = _objectSpread(_objectSpread(_objectSpread({}, defaul
52
53
  return undefined;
53
54
  }
54
55
  },
56
+ linksRender: {
57
+ type: [Function, Object, Boolean],
58
+ default: function _default() {
59
+ return undefined;
60
+ }
61
+ },
55
62
  breakpoint: {
56
63
  type: [Object, Boolean],
57
64
  default: function _default() {
@@ -176,6 +183,7 @@ var SiderMenu = function SiderMenu(props) {
176
183
  menuContentRender = _props$menuContentRen === void 0 ? false : _props$menuContentRen,
177
184
  _props$collapsedButto = props.collapsedButtonRender,
178
185
  collapsedButtonRender = _props$collapsedButto === void 0 ? defaultRenderCollapsedButton : _props$collapsedButto,
186
+ linksRender = props.linksRender,
179
187
  theme = props.theme;
180
188
  var context = useRouteContext();
181
189
  var getPrefixCls = context.getPrefixCls;
@@ -274,7 +282,7 @@ var SiderMenu = function SiderMenu(props) {
274
282
  "style": "flex: 1; overflow: hidden auto;"
275
283
  }, [props.layoutType === LayoutType.LIST ? menuContentRender && menuContentRender(props, defaultMenuDom) || defaultMenuDom : null]), _createVNode("div", {
276
284
  "class": "".concat(baseClassName, "-links")
277
- }, [collapsedButtonRender !== false ? _createVNode(Menu, {
285
+ }, [linksRender ? linksRender() : collapsedButtonRender !== false ? _createVNode(Menu, {
278
286
  "class": "".concat(baseClassName, "-link-menu"),
279
287
  "inlineIndent": 16,
280
288
  "theme": theme,
@@ -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-1713333272038"), n = n(), _popScopeId(), n);
24
+ const _withScopeId = n => (_pushScopeId("data-v-1713344578909"), 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-1713333270915"), n = n(), _popScopeId(), n);
81
+ const _withScopeId = n => (_pushScopeId("data-v-1713344576919"), 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-1713333271190"), n = n(), _popScopeId(), n);
39
+ const _withScopeId = n => (_pushScopeId("data-v-1713344577405"), 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-1713333270022"), n = n(), _popScopeId(), n);
9
+ const _withScopeId = n => (_pushScopeId("data-v-1713344574962"), 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';
@@ -213,6 +213,7 @@ var _default2 = exports.default = (0, _vue.defineComponent)({
213
213
  var menuContentRender = (0, _util.getSlot)(slots, props, 'menuContentRender');
214
214
  var menuItemRender = (0, _util.getSlot)(slots, props, 'menuItemRender');
215
215
  var subMenuItemRender = (0, _util.getSlot)(slots, props, 'subMenuItemRender');
216
+ var linksRender = (0, _util.getSlot)(slots, props, 'linksRender');
216
217
  var headerDom = (0, _vue.computed)(function () {
217
218
  return headerRender((0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
218
219
  menuItemRender: menuItemRender,
@@ -293,6 +294,7 @@ var _default2 = exports.default = (0, _vue.defineComponent)({
293
294
  "headerHeight": 0,
294
295
  "menuHeaderRender": menuHeaderRender,
295
296
  "menuExtraRender": menuExtraRender,
297
+ "linksRender": linksRender,
296
298
  "menuContentRender": menuContentRender,
297
299
  "menuItemRender": menuItemRender,
298
300
  "subMenuItemRender": subMenuItemRender,
@@ -16,6 +16,7 @@ var _defaultSettings = require("../defaultSettings");
16
16
  var _vueTypes = _interopRequireDefault(require("ant-design-vue/es/_util/vue-types"));
17
17
  var _Icon = _interopRequireDefault(require("../../Icon"));
18
18
  var _RouteContext = require("../RouteContext");
19
+ require("../typings");
19
20
  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); }
20
21
  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; }
21
22
  function _isSlot(s) {
@@ -61,6 +62,12 @@ var siderMenuProps = exports.siderMenuProps = (0, _objectSpread2.default)((0, _o
61
62
  return undefined;
62
63
  }
63
64
  },
65
+ linksRender: {
66
+ type: [Function, Object, Boolean],
67
+ default: function _default() {
68
+ return undefined;
69
+ }
70
+ },
64
71
  breakpoint: {
65
72
  type: [Object, Boolean],
66
73
  default: function _default() {
@@ -185,6 +192,7 @@ var SiderMenu = function SiderMenu(props) {
185
192
  menuContentRender = _props$menuContentRen === void 0 ? false : _props$menuContentRen,
186
193
  _props$collapsedButto = props.collapsedButtonRender,
187
194
  collapsedButtonRender = _props$collapsedButto === void 0 ? defaultRenderCollapsedButton : _props$collapsedButto,
195
+ linksRender = props.linksRender,
188
196
  theme = props.theme;
189
197
  var context = (0, _RouteContext.useRouteContext)();
190
198
  var getPrefixCls = context.getPrefixCls;
@@ -283,7 +291,7 @@ var SiderMenu = function SiderMenu(props) {
283
291
  "style": "flex: 1; overflow: hidden auto;"
284
292
  }, [props.layoutType === _defaultSettings.LayoutType.LIST ? menuContentRender && menuContentRender(props, defaultMenuDom) || defaultMenuDom : null]), (0, _vue.createVNode)("div", {
285
293
  "class": "".concat(baseClassName, "-links")
286
- }, [collapsedButtonRender !== false ? (0, _vue.createVNode)(_antDesignVue.Menu, {
294
+ }, [linksRender ? linksRender() : collapsedButtonRender !== false ? (0, _vue.createVNode)(_antDesignVue.Menu, {
287
295
  "class": "".concat(baseClassName, "-link-menu"),
288
296
  "inlineIndent": 16,
289
297
  "theme": theme,
@@ -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-1713333272011"), n = n(), _popScopeId(), n);
24
+ const _withScopeId = n => (_pushScopeId("data-v-1713344578885"), 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-1713333270797"), n = n(), _popScopeId(), n);
81
+ const _withScopeId = n => (_pushScopeId("data-v-1713344577199"), 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-1713333271135"), n = n(), _popScopeId(), n);
39
+ const _withScopeId = n => (_pushScopeId("data-v-1713344577491"), 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.6",
3
+ "version": "2.0.7",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",