@jetlinks-web/components 2.0.11 → 2.0.13

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-1713349160970"), n = n(), _popScopeId(), n);
9
+ const _withScopeId = n => (_pushScopeId("data-v-1713511880712"), 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';
@@ -297,11 +297,11 @@ export default defineComponent({
297
297
  }), null), _createVNode(Layout, null, {
298
298
  default: function _default() {
299
299
  return [_createVNode(Layout.Header, {
300
- "style": {
300
+ "style": _objectSpread({
301
301
  background: 'transparent',
302
302
  padding: 0,
303
303
  height: '40px'
304
- }
304
+ }, props.pageHeaderStyle || {})
305
305
  }, _isSlot(_slot3 = _createVNode(Tabs, {
306
306
  "hide-add": true,
307
307
  "type": "editable-card",
@@ -330,7 +330,8 @@ export default defineComponent({
330
330
  }
331
331
  }), _createVNode(LayoutContent, {
332
332
  "style": {
333
- height: "calc(100vh - 84px)"
333
+ height: "calc(100vh - 84px)",
334
+ overflow: 'auto'
334
335
  }
335
336
  }, {
336
337
  default: function _default() {
@@ -339,7 +340,7 @@ export default defineComponent({
339
340
  }), _createVNode(Layout.Footer, {
340
341
  "style": _objectSpread({
341
342
  padding: '11px 24px'
342
- }, props.pageFooterStyle)
343
+ }, props.pageFooterStyle || {})
343
344
  }, _isSlot(_slot4 = _createVNode(Breadcrumb, {
344
345
  "routes": props.breadcrumb.routes,
345
346
  "itemRender": props.breadcrumbRender
@@ -1,6 +1,6 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
2
2
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
3
- import { createVNode as _createVNode, resolveDirective as _resolveDirective, isVNode as _isVNode, Fragment as _Fragment } from "vue";
3
+ import { createVNode as _createVNode, resolveDirective as _resolveDirective, createTextVNode as _createTextVNode, isVNode as _isVNode, Fragment as _Fragment } from "vue";
4
4
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
5
5
  import { LayoutSider as Sider, Menu, Tooltip } from 'ant-design-vue';
6
6
  import BaseMenu, { baseMenuProps } from './BaseMenu';
@@ -87,12 +87,36 @@ export var siderMenuProps = _objectSpread(_objectSpread(_objectSpread({}, defaul
87
87
  type: Function
88
88
  }
89
89
  });
90
- export var defaultRenderLogo = function defaultRenderLogo(logo, logoStyle) {
90
+ export var defaultRenderLogo = function defaultRenderLogo(logo, logoStyle, application, onAppMenuClick) {
91
91
  if (!logo) {
92
92
  return null;
93
93
  }
94
94
  if (typeof logo === 'string') {
95
- return _createVNode("img", {
95
+ return application.length ? _createVNode(Tooltip, {
96
+ "placement": "rightTop",
97
+ "color": "#fff",
98
+ "arrowPointAtCenter": true
99
+ }, {
100
+ default: function _default() {
101
+ return [_createVNode("img", {
102
+ "src": logo,
103
+ "alt": "logo",
104
+ "style": logoStyle
105
+ }, null)];
106
+ },
107
+ title: function title() {
108
+ return application.map(function (item) {
109
+ return _createVNode("div", {
110
+ "class": "sider-app-menus"
111
+ }, [_createVNode("div", {
112
+ "class": "sider-app-menus-item",
113
+ "onClick": function onClick() {
114
+ return onAppMenuClick(item);
115
+ }
116
+ }, [item.label])]);
117
+ });
118
+ }
119
+ }) : _createVNode("img", {
96
120
  "src": logo,
97
121
  "alt": "logo",
98
122
  "style": logoStyle
@@ -113,31 +137,11 @@ export var defaultRenderLogoAndTitle = function defaultRenderLogoAndTitle(props)
113
137
  layout = props.layout,
114
138
  apps = props.apps,
115
139
  baseClassName = props.baseClassName;
116
- var logoDom = defaultRenderLogo(logo, logoStyle);
117
- var renderFunction = props[renderKey || ''];
140
+ var logoDom = defaultRenderLogo(logo, logoStyle, apps, props.onAppMenuClick);
118
141
  if (props.layoutType === LayoutType.CARD) {
119
- return _createVNode("a", null, [apps.length ? _createVNode(Tooltip, {
120
- "placement": "rightTop",
121
- "color": "#fff",
122
- "arrowPointAtCenter": true
123
- }, {
124
- default: function _default() {
125
- return [logoDom];
126
- },
127
- title: function title() {
128
- return apps.map(function (item) {
129
- return _createVNode("div", {
130
- "class": "sider-app-menus"
131
- }, [_createVNode("div", {
132
- "class": "sider-app-menus-item",
133
- "onClick": function onClick() {
134
- return props.onAppMenuClick(item);
135
- }
136
- }, [item.label])]);
137
- });
138
- }
139
- }) : logoDom]);
142
+ return _createVNode("a", null, [_createTextVNode(" "), logoDom]);
140
143
  }
144
+ var renderFunction = props[renderKey || ''];
141
145
  if (layout === 'mix' && renderFunction === false) {
142
146
  return null;
143
147
  }
@@ -93,6 +93,12 @@ export var defaultSettingProps = {
93
93
  return undefined;
94
94
  }
95
95
  },
96
+ pageHeaderStyle: {
97
+ type: Object,
98
+ default: function _default() {
99
+ return undefined;
100
+ }
101
+ },
96
102
  apps: {
97
103
  type: Array,
98
104
  default: function _default() {
@@ -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-1713349162140"), n = n(), _popScopeId(), n);
24
+ const _withScopeId = n => (_pushScopeId("data-v-1713511881052"), 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-1713349161559"), n = n(), _popScopeId(), n);
81
+ const _withScopeId = n => (_pushScopeId("data-v-1713511878778"), 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-1713349161731"), n = n(), _popScopeId(), n);
39
+ const _withScopeId = n => (_pushScopeId("data-v-1713511879380"), 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-1713349160977"), n = n(), _popScopeId(), n);
9
+ const _withScopeId = n => (_pushScopeId("data-v-1713511880704"), 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';
@@ -306,11 +306,11 @@ var _default2 = exports.default = (0, _vue.defineComponent)({
306
306
  }), null), (0, _vue.createVNode)(_antDesignVue.Layout, null, {
307
307
  default: function _default() {
308
308
  return [(0, _vue.createVNode)(_antDesignVue.Layout.Header, {
309
- "style": {
309
+ "style": (0, _objectSpread2.default)({
310
310
  background: 'transparent',
311
311
  padding: 0,
312
312
  height: '40px'
313
- }
313
+ }, props.pageHeaderStyle || {})
314
314
  }, _isSlot(_slot3 = (0, _vue.createVNode)(_antDesignVue.Tabs, {
315
315
  "hide-add": true,
316
316
  "type": "editable-card",
@@ -339,7 +339,8 @@ var _default2 = exports.default = (0, _vue.defineComponent)({
339
339
  }
340
340
  }), (0, _vue.createVNode)(_antDesignVue.LayoutContent, {
341
341
  "style": {
342
- height: "calc(100vh - 84px)"
342
+ height: "calc(100vh - 84px)",
343
+ overflow: 'auto'
343
344
  }
344
345
  }, {
345
346
  default: function _default() {
@@ -348,7 +349,7 @@ var _default2 = exports.default = (0, _vue.defineComponent)({
348
349
  }), (0, _vue.createVNode)(_antDesignVue.Layout.Footer, {
349
350
  "style": (0, _objectSpread2.default)({
350
351
  padding: '11px 24px'
351
- }, props.pageFooterStyle)
352
+ }, props.pageFooterStyle || {})
352
353
  }, _isSlot(_slot4 = (0, _vue.createVNode)(_antDesignVue.Breadcrumb, {
353
354
  "routes": props.breadcrumb.routes,
354
355
  "itemRender": props.breadcrumbRender
@@ -96,12 +96,36 @@ 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) {
99
+ var defaultRenderLogo = exports.defaultRenderLogo = function defaultRenderLogo(logo, logoStyle, application, onAppMenuClick) {
100
100
  if (!logo) {
101
101
  return null;
102
102
  }
103
103
  if (typeof logo === 'string') {
104
- return (0, _vue.createVNode)("img", {
104
+ return application.length ? (0, _vue.createVNode)(_antDesignVue.Tooltip, {
105
+ "placement": "rightTop",
106
+ "color": "#fff",
107
+ "arrowPointAtCenter": true
108
+ }, {
109
+ default: function _default() {
110
+ return [(0, _vue.createVNode)("img", {
111
+ "src": logo,
112
+ "alt": "logo",
113
+ "style": logoStyle
114
+ }, null)];
115
+ },
116
+ title: function title() {
117
+ return application.map(function (item) {
118
+ return (0, _vue.createVNode)("div", {
119
+ "class": "sider-app-menus"
120
+ }, [(0, _vue.createVNode)("div", {
121
+ "class": "sider-app-menus-item",
122
+ "onClick": function onClick() {
123
+ return onAppMenuClick(item);
124
+ }
125
+ }, [item.label])]);
126
+ });
127
+ }
128
+ }) : (0, _vue.createVNode)("img", {
105
129
  "src": logo,
106
130
  "alt": "logo",
107
131
  "style": logoStyle
@@ -122,31 +146,11 @@ var defaultRenderLogoAndTitle = exports.defaultRenderLogoAndTitle = function def
122
146
  layout = props.layout,
123
147
  apps = props.apps,
124
148
  baseClassName = props.baseClassName;
125
- var logoDom = defaultRenderLogo(logo, logoStyle);
126
- var renderFunction = props[renderKey || ''];
149
+ var logoDom = defaultRenderLogo(logo, logoStyle, apps, props.onAppMenuClick);
127
150
  if (props.layoutType === _defaultSettings.LayoutType.CARD) {
128
- return (0, _vue.createVNode)("a", null, [apps.length ? (0, _vue.createVNode)(_antDesignVue.Tooltip, {
129
- "placement": "rightTop",
130
- "color": "#fff",
131
- "arrowPointAtCenter": true
132
- }, {
133
- default: function _default() {
134
- return [logoDom];
135
- },
136
- title: function title() {
137
- return apps.map(function (item) {
138
- return (0, _vue.createVNode)("div", {
139
- "class": "sider-app-menus"
140
- }, [(0, _vue.createVNode)("div", {
141
- "class": "sider-app-menus-item",
142
- "onClick": function onClick() {
143
- return props.onAppMenuClick(item);
144
- }
145
- }, [item.label])]);
146
- });
147
- }
148
- }) : logoDom]);
151
+ return (0, _vue.createVNode)("a", null, [(0, _vue.createTextVNode)(" "), logoDom]);
149
152
  }
153
+ var renderFunction = props[renderKey || ''];
150
154
  if (layout === 'mix' && renderFunction === false) {
151
155
  return null;
152
156
  }
@@ -100,6 +100,12 @@ var defaultSettingProps = exports.defaultSettingProps = {
100
100
  return undefined;
101
101
  }
102
102
  },
103
+ pageHeaderStyle: {
104
+ type: Object,
105
+ default: function _default() {
106
+ return undefined;
107
+ }
108
+ },
103
109
  apps: {
104
110
  type: Array,
105
111
  default: function _default() {
@@ -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-1713349162154"), n = n(), _popScopeId(), n);
24
+ const _withScopeId = n => (_pushScopeId("data-v-1713511881023"), 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-1713349161627"), n = n(), _popScopeId(), n);
81
+ const _withScopeId = n => (_pushScopeId("data-v-1713511879001"), 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-1713349161709"), n = n(), _popScopeId(), n);
39
+ const _withScopeId = n => (_pushScopeId("data-v-1713511879434"), 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.11",
3
+ "version": "2.0.13",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -134,8 +134,8 @@
134
134
  "webpack-merge": "^5.0.0",
135
135
  "webpackbar": "^5.0.2",
136
136
  "@jetlinks-web/constants": "^1.0.2",
137
- "@jetlinks-web/utils": "^1.0.6",
138
- "@jetlinks-web/hooks": "^1.0.12"
137
+ "@jetlinks-web/hooks": "^1.0.12",
138
+ "@jetlinks-web/utils": "^1.0.6"
139
139
  },
140
140
  "publishConfig": {
141
141
  "registry": "https://registry.npmjs.org/",