@jetlinks-web/components 3.3.10 → 3.3.11
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/ProTable/Header.js +2 -2
- package/lib/ProTable/Header.js +2 -2
- package/package.json +2 -2
package/es/ProTable/Header.js
CHANGED
|
@@ -84,8 +84,8 @@ const __sfc_main__ = _defineComponent({
|
|
|
84
84
|
return _optionalChain([slot, 'optionalCall', _2 => _2(), 'access', _3 => _3.some, 'call', _4 => _4(isValidSlotNode)]) || false;
|
|
85
85
|
};
|
|
86
86
|
const showHeader = computed(() => {
|
|
87
|
-
const shouldHideEmptyHeader = props.initMode
|
|
88
|
-
return
|
|
87
|
+
const shouldHideEmptyHeader = !props.initMode;
|
|
88
|
+
return shouldHideEmptyHeader || hasSlotContent('headerLeftRender') || hasSlotContent('headerRightRender');
|
|
89
89
|
});
|
|
90
90
|
return (_ctx, _cache) => {
|
|
91
91
|
return (showHeader.value)
|
package/lib/ProTable/Header.js
CHANGED
|
@@ -84,8 +84,8 @@ const __sfc_main__ = _defineComponent({
|
|
|
84
84
|
return _optionalChain([slot, 'optionalCall', _2 => _2(), 'access', _3 => _3.some, 'call', _4 => _4(isValidSlotNode)]) || false;
|
|
85
85
|
};
|
|
86
86
|
const showHeader = computed(() => {
|
|
87
|
-
const shouldHideEmptyHeader = props.initMode
|
|
88
|
-
return
|
|
87
|
+
const shouldHideEmptyHeader = !props.initMode;
|
|
88
|
+
return shouldHideEmptyHeader || hasSlotContent('headerLeftRender') || hasSlotContent('headerRightRender');
|
|
89
89
|
});
|
|
90
90
|
return (_ctx, _cache) => {
|
|
91
91
|
return (showHeader.value)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetlinks-web/components",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.11",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"webpackbar": "^5.0.2",
|
|
157
157
|
"@jetlinks-web/hooks": "^1.1.2",
|
|
158
158
|
"@jetlinks-web/constants": "^1.0.9",
|
|
159
|
-
"@jetlinks-web/utils": "^1.3.
|
|
159
|
+
"@jetlinks-web/utils": "^1.3.6"
|
|
160
160
|
},
|
|
161
161
|
"publishConfig": {
|
|
162
162
|
"registry": "https://registry.npmjs.org/",
|