@jetlinks-web/components 2.0.24 → 2.0.26
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.
- package/es/FullPage/FullPage.js +1 -1
- package/es/ProLayout/Basic/BasicLayout.js +4 -0
- package/es/ProLayout/PageContainer/index.js +0 -1
- package/es/ProLayout/SiderMenu/SiderMenu.js +7 -7
- package/es/Search/Advanced/SaveHistory.js +1 -1
- package/es/Search/Item.js +1 -1
- package/es/Search/Search.js +1 -1
- package/lib/FullPage/FullPage.js +1 -1
- package/lib/ProLayout/Basic/BasicLayout.js +4 -0
- package/lib/ProLayout/PageContainer/index.js +0 -1
- package/lib/ProLayout/SiderMenu/SiderMenu.js +7 -7
- package/lib/Search/Advanced/SaveHistory.js +1 -1
- package/lib/Search/Item.js +1 -1
- package/lib/Search/Search.js +1 -1
- package/package.json +1 -1
package/es/FullPage/FullPage.js
CHANGED
|
@@ -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-
|
|
9
|
+
const _withScopeId = n => (_pushScopeId("data-v-1715308409364"), 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';
|
|
@@ -208,6 +208,7 @@ export default defineComponent({
|
|
|
208
208
|
var menuItemRender = getSlot(slots, props, 'menuItemRender');
|
|
209
209
|
var subMenuItemRender = getSlot(slots, props, 'subMenuItemRender');
|
|
210
210
|
var linksRender = getSlot(slots, props, 'linksRender');
|
|
211
|
+
var logoRender = getSlot(slots, props, 'logoRender');
|
|
211
212
|
var headerDom = computed(function () {
|
|
212
213
|
return headerRender(_objectSpread(_objectSpread({}, props), {}, {
|
|
213
214
|
menuItemRender: menuItemRender,
|
|
@@ -224,6 +225,7 @@ export default defineComponent({
|
|
|
224
225
|
menuExtraRender: menuExtraRender,
|
|
225
226
|
menuContentRender: menuContentRender,
|
|
226
227
|
headerContentRender: headerContentRender,
|
|
228
|
+
logo: logoRender || props.logo,
|
|
227
229
|
headerRender: customHeaderRender,
|
|
228
230
|
theme: (props.theme || 'dark').toLocaleLowerCase().includes('dark') ? 'dark' : 'light'
|
|
229
231
|
}), props.matchMenuKeys);
|
|
@@ -253,6 +255,7 @@ export default defineComponent({
|
|
|
253
255
|
}, {
|
|
254
256
|
default: function _default() {
|
|
255
257
|
return [!isTop.value && _createVNode(SiderMenu, _objectSpread(_objectSpread({}, restProps), {}, {
|
|
258
|
+
"logo": logoRender || restProps.logo,
|
|
256
259
|
"menuHeaderRender": menuHeaderRender,
|
|
257
260
|
"menuExtraRender": menuExtraRender,
|
|
258
261
|
"menuContentRender": menuContentRender,
|
|
@@ -284,6 +287,7 @@ export default defineComponent({
|
|
|
284
287
|
}, [_createVNode(Layout, null, {
|
|
285
288
|
default: function _default() {
|
|
286
289
|
return [_createVNode(SiderMenu, _objectSpread(_objectSpread({}, restProps), {}, {
|
|
290
|
+
"logo": logoRender || restProps.logo,
|
|
287
291
|
"siderWidth": props.cardSiderWidth,
|
|
288
292
|
"headerHeight": 0,
|
|
289
293
|
"menuHeaderRender": menuHeaderRender,
|
|
@@ -237,7 +237,6 @@ var ProPageHeader = function ProPageHeader(props) {
|
|
|
237
237
|
(_value$back = value.back) === null || _value$back === void 0 ? void 0 : _value$back.call(value);
|
|
238
238
|
};
|
|
239
239
|
}
|
|
240
|
-
console.log(props, pageHeaderTitle, value, tabList);
|
|
241
240
|
var styles = value.layoutType === LayoutType.CARD ? {
|
|
242
241
|
padding: props.extra || props.subTitle || pageHeaderTitle || tabList || props.extraContent || props.showBack || props.title ? '16px 24px' : '0px'
|
|
243
242
|
} : {};
|
|
@@ -87,10 +87,14 @@ export var siderMenuProps = _objectSpread(_objectSpread(_objectSpread({}, defaul
|
|
|
87
87
|
type: Function
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
|
-
export var defaultRenderLogo = function defaultRenderLogo(logo, logoStyle, application,
|
|
90
|
+
export var defaultRenderLogo = function defaultRenderLogo(logo, logoStyle, application, props) {
|
|
91
91
|
if (!logo) {
|
|
92
92
|
return null;
|
|
93
93
|
}
|
|
94
|
+
if (typeof logo === 'function') {
|
|
95
|
+
// @ts-ignore
|
|
96
|
+
return logo();
|
|
97
|
+
}
|
|
94
98
|
if (typeof logo === 'string') {
|
|
95
99
|
return application.length ? _createVNode(Tooltip, {
|
|
96
100
|
"placement": "rightTop",
|
|
@@ -111,7 +115,7 @@ export var defaultRenderLogo = function defaultRenderLogo(logo, logoStyle, appli
|
|
|
111
115
|
}, [_createVNode("div", {
|
|
112
116
|
"class": "sider-app-menus-item",
|
|
113
117
|
"onClick": function onClick() {
|
|
114
|
-
return onAppMenuClick(item);
|
|
118
|
+
return props.onAppMenuClick(item);
|
|
115
119
|
}
|
|
116
120
|
}, [item.label])]);
|
|
117
121
|
});
|
|
@@ -122,10 +126,6 @@ export var defaultRenderLogo = function defaultRenderLogo(logo, logoStyle, appli
|
|
|
122
126
|
"style": logoStyle
|
|
123
127
|
}, null);
|
|
124
128
|
}
|
|
125
|
-
if (typeof logo === 'function') {
|
|
126
|
-
// @ts-ignore
|
|
127
|
-
return logo();
|
|
128
|
-
}
|
|
129
129
|
return logo;
|
|
130
130
|
};
|
|
131
131
|
export var defaultRenderLogoAndTitle = function defaultRenderLogoAndTitle(props) {
|
|
@@ -137,7 +137,7 @@ export var defaultRenderLogoAndTitle = function defaultRenderLogoAndTitle(props)
|
|
|
137
137
|
layout = props.layout,
|
|
138
138
|
apps = props.apps,
|
|
139
139
|
baseClassName = props.baseClassName;
|
|
140
|
-
var logoDom = defaultRenderLogo(logo, logoStyle, apps, props
|
|
140
|
+
var logoDom = defaultRenderLogo(logo, logoStyle, apps, props);
|
|
141
141
|
if (props.layoutType === LayoutType.CARD) {
|
|
142
142
|
return _createVNode("a", null, [_createTextVNode(" "), logoDom]);
|
|
143
143
|
}
|
|
@@ -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-
|
|
24
|
+
const _withScopeId = n => (_pushScopeId("data-v-1715308410881"), 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-
|
|
81
|
+
const _withScopeId = n => (_pushScopeId("data-v-1715308410238"), n = n(), _popScopeId(), n);
|
|
82
82
|
const _hoisted_1 = { class: "JSearch-item" };
|
|
83
83
|
const _hoisted_2 = {
|
|
84
84
|
key: 0,
|
package/es/Search/Search.js
CHANGED
|
@@ -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-
|
|
39
|
+
const _withScopeId = n => (_pushScopeId("data-v-1715308410461"), 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/lib/FullPage/FullPage.js
CHANGED
|
@@ -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-
|
|
9
|
+
const _withScopeId = n => (_pushScopeId("data-v-1715308409372"), 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';
|
|
@@ -217,6 +217,7 @@ var _default2 = exports.default = (0, _vue.defineComponent)({
|
|
|
217
217
|
var menuItemRender = (0, _util.getSlot)(slots, props, 'menuItemRender');
|
|
218
218
|
var subMenuItemRender = (0, _util.getSlot)(slots, props, 'subMenuItemRender');
|
|
219
219
|
var linksRender = (0, _util.getSlot)(slots, props, 'linksRender');
|
|
220
|
+
var logoRender = (0, _util.getSlot)(slots, props, 'logoRender');
|
|
220
221
|
var headerDom = (0, _vue.computed)(function () {
|
|
221
222
|
return headerRender((0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
222
223
|
menuItemRender: menuItemRender,
|
|
@@ -233,6 +234,7 @@ var _default2 = exports.default = (0, _vue.defineComponent)({
|
|
|
233
234
|
menuExtraRender: menuExtraRender,
|
|
234
235
|
menuContentRender: menuContentRender,
|
|
235
236
|
headerContentRender: headerContentRender,
|
|
237
|
+
logo: logoRender || props.logo,
|
|
236
238
|
headerRender: customHeaderRender,
|
|
237
239
|
theme: (props.theme || 'dark').toLocaleLowerCase().includes('dark') ? 'dark' : 'light'
|
|
238
240
|
}), props.matchMenuKeys);
|
|
@@ -262,6 +264,7 @@ var _default2 = exports.default = (0, _vue.defineComponent)({
|
|
|
262
264
|
}, {
|
|
263
265
|
default: function _default() {
|
|
264
266
|
return [!isTop.value && (0, _vue.createVNode)(_SiderMenu.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, restProps), {}, {
|
|
267
|
+
"logo": logoRender || restProps.logo,
|
|
265
268
|
"menuHeaderRender": menuHeaderRender,
|
|
266
269
|
"menuExtraRender": menuExtraRender,
|
|
267
270
|
"menuContentRender": menuContentRender,
|
|
@@ -293,6 +296,7 @@ var _default2 = exports.default = (0, _vue.defineComponent)({
|
|
|
293
296
|
}, [(0, _vue.createVNode)(_antDesignVue.Layout, null, {
|
|
294
297
|
default: function _default() {
|
|
295
298
|
return [(0, _vue.createVNode)(_SiderMenu.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, restProps), {}, {
|
|
299
|
+
"logo": logoRender || restProps.logo,
|
|
296
300
|
"siderWidth": props.cardSiderWidth,
|
|
297
301
|
"headerHeight": 0,
|
|
298
302
|
"menuHeaderRender": menuHeaderRender,
|
|
@@ -240,7 +240,6 @@ var ProPageHeader = function ProPageHeader(props) {
|
|
|
240
240
|
(_value$back = value.back) === null || _value$back === void 0 ? void 0 : _value$back.call(value);
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
|
-
console.log(props, pageHeaderTitle, value, tabList);
|
|
244
243
|
var styles = value.layoutType === _defaultSettings.LayoutType.CARD ? {
|
|
245
244
|
padding: props.extra || props.subTitle || pageHeaderTitle || tabList || props.extraContent || props.showBack || props.title ? '16px 24px' : '0px'
|
|
246
245
|
} : {};
|
|
@@ -96,10 +96,14 @@ var siderMenuProps = exports.siderMenuProps = (0, _objectSpread2.default)((0, _o
|
|
|
96
96
|
type: Function
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
|
-
var defaultRenderLogo = exports.defaultRenderLogo = function defaultRenderLogo(logo, logoStyle, application,
|
|
99
|
+
var defaultRenderLogo = exports.defaultRenderLogo = function defaultRenderLogo(logo, logoStyle, application, props) {
|
|
100
100
|
if (!logo) {
|
|
101
101
|
return null;
|
|
102
102
|
}
|
|
103
|
+
if (typeof logo === 'function') {
|
|
104
|
+
// @ts-ignore
|
|
105
|
+
return logo();
|
|
106
|
+
}
|
|
103
107
|
if (typeof logo === 'string') {
|
|
104
108
|
return application.length ? (0, _vue.createVNode)(_antDesignVue.Tooltip, {
|
|
105
109
|
"placement": "rightTop",
|
|
@@ -120,7 +124,7 @@ var defaultRenderLogo = exports.defaultRenderLogo = function defaultRenderLogo(l
|
|
|
120
124
|
}, [(0, _vue.createVNode)("div", {
|
|
121
125
|
"class": "sider-app-menus-item",
|
|
122
126
|
"onClick": function onClick() {
|
|
123
|
-
return onAppMenuClick(item);
|
|
127
|
+
return props.onAppMenuClick(item);
|
|
124
128
|
}
|
|
125
129
|
}, [item.label])]);
|
|
126
130
|
});
|
|
@@ -131,10 +135,6 @@ var defaultRenderLogo = exports.defaultRenderLogo = function defaultRenderLogo(l
|
|
|
131
135
|
"style": logoStyle
|
|
132
136
|
}, null);
|
|
133
137
|
}
|
|
134
|
-
if (typeof logo === 'function') {
|
|
135
|
-
// @ts-ignore
|
|
136
|
-
return logo();
|
|
137
|
-
}
|
|
138
138
|
return logo;
|
|
139
139
|
};
|
|
140
140
|
var defaultRenderLogoAndTitle = exports.defaultRenderLogoAndTitle = function defaultRenderLogoAndTitle(props) {
|
|
@@ -146,7 +146,7 @@ var defaultRenderLogoAndTitle = exports.defaultRenderLogoAndTitle = function def
|
|
|
146
146
|
layout = props.layout,
|
|
147
147
|
apps = props.apps,
|
|
148
148
|
baseClassName = props.baseClassName;
|
|
149
|
-
var logoDom = defaultRenderLogo(logo, logoStyle, apps, props
|
|
149
|
+
var logoDom = defaultRenderLogo(logo, logoStyle, apps, props);
|
|
150
150
|
if (props.layoutType === _defaultSettings.LayoutType.CARD) {
|
|
151
151
|
return (0, _vue.createVNode)("a", null, [(0, _vue.createTextVNode)(" "), logoDom]);
|
|
152
152
|
}
|
|
@@ -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-
|
|
24
|
+
const _withScopeId = n => (_pushScopeId("data-v-1715308410898"), n = n(), _popScopeId(), n);
|
|
25
25
|
const _hoisted_1 = {
|
|
26
26
|
key: 0,
|
|
27
27
|
style: { "width": "240px" }
|
package/lib/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-
|
|
81
|
+
const _withScopeId = n => (_pushScopeId("data-v-1715308410170"), n = n(), _popScopeId(), n);
|
|
82
82
|
const _hoisted_1 = { class: "JSearch-item" };
|
|
83
83
|
const _hoisted_2 = {
|
|
84
84
|
key: 0,
|
package/lib/Search/Search.js
CHANGED
|
@@ -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-
|
|
39
|
+
const _withScopeId = n => (_pushScopeId("data-v-1715308410439"), 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';
|