@tplc/business 0.0.4 → 0.0.6
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,9 @@
|
|
|
3
3
|
class="customNavigation"
|
|
4
4
|
:class="{
|
|
5
5
|
immersiveTop: topStyle === 2,
|
|
6
|
+
fixed,
|
|
7
|
+
}"
|
|
8
|
+
:style="{
|
|
6
9
|
paddingTop,
|
|
7
10
|
}"
|
|
8
11
|
>
|
|
@@ -65,6 +68,8 @@ defineOptions({
|
|
|
65
68
|
const emits = defineEmits<{ (e: 'search'): void }>()
|
|
66
69
|
|
|
67
70
|
interface NanProps {
|
|
71
|
+
/** 是否固定 */
|
|
72
|
+
fixed?: boolean
|
|
68
73
|
/** 模式 1.标题 2.搜索 3.导航 4.沉浸式 */
|
|
69
74
|
styleGroup?: 1 | 2 | 3 | 4
|
|
70
75
|
/** 方位 */
|
|
@@ -103,6 +108,7 @@ withDefaults(defineProps<NanProps>(), {
|
|
|
103
108
|
contentColor: '#000000',
|
|
104
109
|
logoImg: '',
|
|
105
110
|
searchText: '搜索',
|
|
111
|
+
fixed: true,
|
|
106
112
|
})
|
|
107
113
|
|
|
108
114
|
const paddingTop = computed(() => {
|
|
@@ -113,6 +119,7 @@ const paddingTop = computed(() => {
|
|
|
113
119
|
.customNavigation {
|
|
114
120
|
position: relative;
|
|
115
121
|
width: 100%;
|
|
122
|
+
min-height: 44px;
|
|
116
123
|
|
|
117
124
|
.header {
|
|
118
125
|
position: absolute;
|
package/global.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare module 'vue' {
|
|
2
2
|
// Helper for Volar
|
|
3
3
|
export interface GlobalComponents {
|
|
4
|
-
'lcb-img-nav': (typeof import('./types/lcb-img-nav/lcb-img-nav.vue'))['default']
|
|
5
|
-
'lcb-nav': (typeof import('./types/lcb-nav/lcb-nav.vue'))['default']
|
|
4
|
+
'lcb-img-nav': (typeof import('./types/components/lcb-img-nav/lcb-img-nav.vue'))['default']
|
|
5
|
+
'lcb-nav': (typeof import('./types/components/lcb-nav/lcb-nav.vue'))['default']
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tplc/business",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
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;
|
package/types/index.d.ts
ADDED
|
File without changes
|
|
File without changes
|