@tplc/business 0.0.5 → 0.0.7
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.
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
class="customNavigation"
|
|
4
4
|
:class="{
|
|
5
5
|
immersiveTop: topStyle === 2,
|
|
6
|
+
fixed,
|
|
6
7
|
}"
|
|
7
8
|
:style="{
|
|
8
9
|
paddingTop,
|
|
@@ -67,6 +68,8 @@ defineOptions({
|
|
|
67
68
|
const emits = defineEmits<{ (e: 'search'): void }>()
|
|
68
69
|
|
|
69
70
|
interface NanProps {
|
|
71
|
+
/** 是否固定 */
|
|
72
|
+
fixed?: boolean
|
|
70
73
|
/** 模式 1.标题 2.搜索 3.导航 4.沉浸式 */
|
|
71
74
|
styleGroup?: 1 | 2 | 3 | 4
|
|
72
75
|
/** 方位 */
|
|
@@ -105,6 +108,7 @@ withDefaults(defineProps<NanProps>(), {
|
|
|
105
108
|
contentColor: '#000000',
|
|
106
109
|
logoImg: '',
|
|
107
110
|
searchText: '搜索',
|
|
111
|
+
fixed: false,
|
|
108
112
|
})
|
|
109
113
|
|
|
110
114
|
const paddingTop = computed(() => {
|
|
@@ -236,6 +240,12 @@ const paddingTop = computed(() => {
|
|
|
236
240
|
}
|
|
237
241
|
}
|
|
238
242
|
}
|
|
243
|
+
.fixed {
|
|
244
|
+
position: fixed;
|
|
245
|
+
z-index: 10;
|
|
246
|
+
top: 0;
|
|
247
|
+
left: 0;
|
|
248
|
+
}
|
|
239
249
|
|
|
240
250
|
.immersiveTop {
|
|
241
251
|
position: fixed;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tplc/business",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"业务组件i"
|
|
6
6
|
],
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"pnpm": ">=7.30"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
|
+
"pub": "rm -rf types && pnpm dts && pnpm publish --no-git-checks",
|
|
20
21
|
"dts": "vue-tsc",
|
|
21
22
|
"release-major": "standard-version --release-as major ",
|
|
22
23
|
"release-minor": "standard-version --release-as minor",
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
interface NanProps {
|
|
2
|
+
/** 是否固定 */
|
|
3
|
+
fixed?: boolean;
|
|
2
4
|
/** 模式 1.标题 2.搜索 3.导航 4.沉浸式 */
|
|
3
5
|
styleGroup?: 1 | 2 | 3 | 4;
|
|
4
6
|
/** 方位 */
|
|
@@ -36,6 +38,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
36
38
|
contentColor: string;
|
|
37
39
|
logoImg: string;
|
|
38
40
|
searchText: string;
|
|
41
|
+
fixed: boolean;
|
|
39
42
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
40
43
|
search: () => void;
|
|
41
44
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<NanProps>, {
|
|
@@ -50,10 +53,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
50
53
|
contentColor: string;
|
|
51
54
|
logoImg: string;
|
|
52
55
|
searchText: string;
|
|
56
|
+
fixed: boolean;
|
|
53
57
|
}>>> & {
|
|
54
58
|
onSearch?: (() => any) | undefined;
|
|
55
59
|
}, {
|
|
56
60
|
styleGroup: 1 | 2 | 3 | 4;
|
|
61
|
+
fixed: boolean;
|
|
57
62
|
title: string;
|
|
58
63
|
titleLocation: "left" | "center";
|
|
59
64
|
topStyle: 1 | 2;
|