@jetlinks-web/components 2.0.31 → 2.0.32

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-1715741796205"), n = n(), _popScopeId(), n);
9
+ const _withScopeId = n => (_pushScopeId("data-v-1716194136622"), 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';
@@ -210,6 +210,7 @@ export default defineComponent({
210
210
  var linksRender = getSlot(slots, props, 'linksRender');
211
211
  var logoRender = getSlot(slots, props, 'logoRender');
212
212
  var historyRender = getSlot(slots, props, 'historyRender');
213
+ var topHeaderMenuRender = getSlot(slots, props, 'topHeaderMenuRender');
213
214
  var headerDom = computed(function () {
214
215
  return headerRender(_objectSpread(_objectSpread({}, props), {}, {
215
216
  menuItemRender: menuItemRender,
@@ -228,6 +229,7 @@ export default defineComponent({
228
229
  headerContentRender: headerContentRender,
229
230
  logo: logoRender || props.logo,
230
231
  headerRender: customHeaderRender,
232
+ topHeaderMenuRender: topHeaderMenuRender,
231
233
  theme: (props.theme || 'dark').toLocaleLowerCase().includes('dark') ? 'dark' : 'light'
232
234
  }), props.matchMenuKeys);
233
235
  });
@@ -53,6 +53,7 @@ export default defineComponent({
53
53
  var className = computed(function () {
54
54
  return _defineProperty(_defineProperty({}, "".concat(prefixCls.value, "-fixed-header"), needFixedHeader.value), "".concat(prefixCls.value, "-top-menu"), isTop.value);
55
55
  });
56
+ var headerMenuRender = computed(function () {});
56
57
  var renderContent = function renderContent() {
57
58
  var defaultDom = _createVNode(TopNavHeader, _objectSpread(_objectSpread({
58
59
  "theme": theme.value,
@@ -39,6 +39,12 @@ export var baseHeaderProps = _objectSpread(_objectSpread({}, defaultSettingProps
39
39
  },
40
40
  menuHeaderRender: siderMenuProps.menuHeaderRender,
41
41
  menuItemRender: siderMenuProps.menuItemRender,
42
+ topHeaderMenuRender: {
43
+ type: [Function, Object, Boolean],
44
+ default: function _default() {
45
+ return undefined;
46
+ }
47
+ },
42
48
  subMenuItemRender: siderMenuProps.subMenuItemRender,
43
49
  rightContentRender: {
44
50
  type: [Object, Function],
@@ -86,6 +92,7 @@ export var TopNavHeader = function TopNavHeader(props) {
86
92
  onSelect = props.onSelect,
87
93
  contentWidth = props.contentWidth,
88
94
  rightContentRender = props.rightContentRender,
95
+ topHeaderMenuRender = props.topHeaderMenuRender,
89
96
  layout = props.layout,
90
97
  menuData = props.menuData,
91
98
  mode = props.mode;
@@ -136,7 +143,7 @@ export var TopNavHeader = function TopNavHeader(props) {
136
143
  flex: 1
137
144
  },
138
145
  "class": "".concat(prefixCls, "-menu")
139
- }, [_createVNode(BaseMenu, {
146
+ }, [topHeaderMenuRender ? topHeaderMenuRender() : _createVNode(BaseMenu, {
140
147
  "prefixCls": propPrefixCls,
141
148
  "locale": props.locale || context.locale,
142
149
  "theme": props.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-1715741797619"), n = n(), _popScopeId(), n);
24
+ const _withScopeId = n => (_pushScopeId("data-v-1716194139186"), 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-1715741797070"), n = n(), _popScopeId(), n);
81
+ const _withScopeId = n => (_pushScopeId("data-v-1716194138546"), 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-1715741797172"), n = n(), _popScopeId(), n);
39
+ const _withScopeId = n => (_pushScopeId("data-v-1716194138825"), 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-1715741796198"), n = n(), _popScopeId(), n);
9
+ const _withScopeId = n => (_pushScopeId("data-v-1716194136644"), 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';
@@ -219,6 +219,7 @@ var _default2 = exports.default = (0, _vue.defineComponent)({
219
219
  var linksRender = (0, _util.getSlot)(slots, props, 'linksRender');
220
220
  var logoRender = (0, _util.getSlot)(slots, props, 'logoRender');
221
221
  var historyRender = (0, _util.getSlot)(slots, props, 'historyRender');
222
+ var topHeaderMenuRender = (0, _util.getSlot)(slots, props, 'topHeaderMenuRender');
222
223
  var headerDom = (0, _vue.computed)(function () {
223
224
  return headerRender((0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
224
225
  menuItemRender: menuItemRender,
@@ -237,6 +238,7 @@ var _default2 = exports.default = (0, _vue.defineComponent)({
237
238
  headerContentRender: headerContentRender,
238
239
  logo: logoRender || props.logo,
239
240
  headerRender: customHeaderRender,
241
+ topHeaderMenuRender: topHeaderMenuRender,
240
242
  theme: (props.theme || 'dark').toLocaleLowerCase().includes('dark') ? 'dark' : 'light'
241
243
  }), props.matchMenuKeys);
242
244
  });
@@ -59,6 +59,7 @@ var _default2 = exports.default = (0, _vue.defineComponent)({
59
59
  var className = (0, _vue.computed)(function () {
60
60
  return (0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(prefixCls.value, "-fixed-header"), needFixedHeader.value), "".concat(prefixCls.value, "-top-menu"), isTop.value);
61
61
  });
62
+ var headerMenuRender = (0, _vue.computed)(function () {});
62
63
  var renderContent = function renderContent() {
63
64
  var defaultDom = (0, _vue.createVNode)(_TopHeader.TopNavHeader, (0, _objectSpread2.default)((0, _objectSpread2.default)({
64
65
  "theme": theme.value,
@@ -44,6 +44,12 @@ var baseHeaderProps = exports.baseHeaderProps = (0, _objectSpread2.default)((0,
44
44
  },
45
45
  menuHeaderRender: _SiderMenu.siderMenuProps.menuHeaderRender,
46
46
  menuItemRender: _SiderMenu.siderMenuProps.menuItemRender,
47
+ topHeaderMenuRender: {
48
+ type: [Function, Object, Boolean],
49
+ default: function _default() {
50
+ return undefined;
51
+ }
52
+ },
47
53
  subMenuItemRender: _SiderMenu.siderMenuProps.subMenuItemRender,
48
54
  rightContentRender: {
49
55
  type: [Object, Function],
@@ -91,6 +97,7 @@ var TopNavHeader = exports.TopNavHeader = function TopNavHeader(props) {
91
97
  onSelect = props.onSelect,
92
98
  contentWidth = props.contentWidth,
93
99
  rightContentRender = props.rightContentRender,
100
+ topHeaderMenuRender = props.topHeaderMenuRender,
94
101
  layout = props.layout,
95
102
  menuData = props.menuData,
96
103
  mode = props.mode;
@@ -141,7 +148,7 @@ var TopNavHeader = exports.TopNavHeader = function TopNavHeader(props) {
141
148
  flex: 1
142
149
  },
143
150
  "class": "".concat(prefixCls, "-menu")
144
- }, [(0, _vue.createVNode)(_BaseMenu.default, {
151
+ }, [topHeaderMenuRender ? topHeaderMenuRender() : (0, _vue.createVNode)(_BaseMenu.default, {
145
152
  "prefixCls": propPrefixCls,
146
153
  "locale": props.locale || context.locale,
147
154
  "theme": props.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-1715741797603"), n = n(), _popScopeId(), n);
24
+ const _withScopeId = n => (_pushScopeId("data-v-1716194139153"), 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-1715741797002"), n = n(), _popScopeId(), n);
81
+ const _withScopeId = n => (_pushScopeId("data-v-1716194138654"), 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-1715741797150"), n = n(), _popScopeId(), n);
39
+ const _withScopeId = n => (_pushScopeId("data-v-1716194138789"), 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.31",
3
+ "version": "2.0.32",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -134,8 +134,8 @@
134
134
  "webpack-dev-server": "^4.0.0",
135
135
  "webpack-merge": "^5.0.0",
136
136
  "webpackbar": "^5.0.2",
137
- "@jetlinks-web/hooks": "^1.0.13",
138
137
  "@jetlinks-web/constants": "^1.0.2",
138
+ "@jetlinks-web/hooks": "^1.0.13",
139
139
  "@jetlinks-web/utils": "^1.0.7"
140
140
  },
141
141
  "publishConfig": {