@jetlinks-web/components 3.3.2 → 3.3.3

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.
@@ -10,7 +10,7 @@ import { defaultSettingProps, LayoutType } from '../defaultSettings';
10
10
  import { baseHeaderProps } from '../TopHeader';
11
11
  import Header, { headerViewProps } from './Header';
12
12
  import useConfigInject from "ant-design-vue/es/config-provider/hooks/useConfigInject";
13
- import { pick } from 'lodash-es';
13
+ import { pick, isObject } from 'lodash-es';
14
14
  import { defaultRouteContext, routeContextInjectKey } from '../RouteContext';
15
15
  import { getMenuFirstChildren, getSlot } from '../util';
16
16
  import { Layout, LayoutContent, Breadcrumb, Tabs } from 'ant-design-vue';
@@ -164,8 +164,7 @@ export default defineComponent({
164
164
  return "".concat(props.prefixCls, "-basicLayout");
165
165
  });
166
166
  var className = computed(function () {
167
- var isObject = isObject(props.classNames);
168
- return _objectSpread(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, baseClassName.value, true), "".concat(baseClassName.value, "-top-menu"), isTop.value), "".concat(baseClassName.value, "-is-children"), props.isChildrenLayout), "".concat(baseClassName.value, "-fix-siderbar"), props.fixSiderbar), "".concat(baseClassName.value, "-").concat(props.layout), props.layout), "".concat(baseClassName.value, "-").concat(props.layoutType), props.layoutType), hashId.value, true), isObject ? props.classNames || {} : {});
167
+ return _objectSpread(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, baseClassName.value, true), "".concat(baseClassName.value, "-top-menu"), isTop.value), "".concat(baseClassName.value, "-is-children"), props.isChildrenLayout), "".concat(baseClassName.value, "-fix-siderbar"), props.fixSiderbar), "".concat(baseClassName.value, "-").concat(props.layout), props.layout), "".concat(baseClassName.value, "-").concat(props.layoutType), props.layoutType), hashId.value, true), isObject(props.classNames) ? props.classNames || {} : {});
169
168
  });
170
169
  var genLayoutStyle = reactive({
171
170
  position: 'relative'
@@ -172,8 +172,7 @@ var _default2 = exports.default = (0, _vue.defineComponent)({
172
172
  return "".concat(props.prefixCls, "-basicLayout");
173
173
  });
174
174
  var className = (0, _vue.computed)(function () {
175
- var isObject = isObject(props.classNames);
176
- return (0, _objectSpread3.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, baseClassName.value, true), "".concat(baseClassName.value, "-top-menu"), isTop.value), "".concat(baseClassName.value, "-is-children"), props.isChildrenLayout), "".concat(baseClassName.value, "-fix-siderbar"), props.fixSiderbar), "".concat(baseClassName.value, "-").concat(props.layout), props.layout), "".concat(baseClassName.value, "-").concat(props.layoutType), props.layoutType), hashId.value, true), isObject ? props.classNames || {} : {});
175
+ return (0, _objectSpread3.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, baseClassName.value, true), "".concat(baseClassName.value, "-top-menu"), isTop.value), "".concat(baseClassName.value, "-is-children"), props.isChildrenLayout), "".concat(baseClassName.value, "-fix-siderbar"), props.fixSiderbar), "".concat(baseClassName.value, "-").concat(props.layout), props.layout), "".concat(baseClassName.value, "-").concat(props.layoutType), props.layoutType), hashId.value, true), (0, _lodashEs.isObject)(props.classNames) ? props.classNames || {} : {});
177
176
  });
178
177
  var genLayoutStyle = (0, _vue.reactive)({
179
178
  position: 'relative'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetlinks-web/components",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -155,8 +155,8 @@
155
155
  "webpack-merge": "^5.0.0",
156
156
  "webpackbar": "^5.0.2",
157
157
  "@jetlinks-web/constants": "^1.0.9",
158
- "@jetlinks-web/utils": "^1.3.3",
159
- "@jetlinks-web/hooks": "^1.1.1"
158
+ "@jetlinks-web/hooks": "^1.1.1",
159
+ "@jetlinks-web/utils": "^1.3.3"
160
160
  },
161
161
  "publishConfig": {
162
162
  "registry": "https://registry.npmjs.org/",