@tplc/business 0.0.8 → 0.0.10
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/components/lcb-banner/lcb-banner.vue +7 -3
- package/components/lcb-banner-block/lcb-banner-block.vue +11 -10
- package/components/lcb-block/lcb-block.vue +1 -1
- package/components/lcb-grid/lcb-grid.vue +9 -3
- package/components/lcb-home-search/lcb-home-search.vue +0 -1
- package/components/lcb-nav/{lcb-nav-title.vue → Title/index.vue} +1 -1
- package/components/lcb-nav/lcb-nav.vue +10 -11
- package/components/lcb-title/lcb-title.vue +2 -3
- package/global.d.ts +1 -0
- package/package.json +2 -2
- package/types/components/lcb-banner/lcb-banner.vue.d.ts +1 -1
- package/types/components/lcb-grid/lcb-grid.vue.d.ts +1 -1
- package/types/components/lcb-nav/{lcb-nav-title.vue.d.ts → Title/index.vue.d.ts} +1 -1
- package/types/components/lcb-nav/lcb-nav.vue.d.ts +2 -2
- package/types/components/lcb-swiper/lcb-swiper.vue.d.ts +1 -1
- /package/components/lcb-nav/{lcb-nav-search.vue → Search/index.vue} +0 -0
- /package/types/components/lcb-nav/{lcb-nav-search.vue.d.ts → Search/index.vue.d.ts} +0 -0
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<lcb-block
|
|
3
|
+
v-bind="{
|
|
4
|
+
marginTop,
|
|
5
|
+
marginBottom,
|
|
6
|
+
}"
|
|
7
|
+
>
|
|
3
8
|
<wd-swiper
|
|
4
9
|
value-key="url"
|
|
5
10
|
v-bind="{
|
|
@@ -19,13 +24,12 @@
|
|
|
19
24
|
...supplementProps,
|
|
20
25
|
}"
|
|
21
26
|
/>
|
|
22
|
-
</
|
|
27
|
+
</lcb-block>
|
|
23
28
|
</template>
|
|
24
29
|
|
|
25
30
|
<script setup lang="ts">
|
|
26
31
|
import { computed } from 'vue'
|
|
27
32
|
import { LcbBannerProps } from './types'
|
|
28
|
-
import LcbBlock from '../lcb-block/lcb-block.vue'
|
|
29
33
|
import { transformValueUnit } from '../../utils/transform'
|
|
30
34
|
defineOptions({
|
|
31
35
|
name: 'LcbBanner',
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
<lcb-block
|
|
3
|
+
v-bind="{
|
|
4
|
+
radius,
|
|
5
|
+
marginTop,
|
|
6
|
+
marginBottom,
|
|
7
|
+
backgroundColor,
|
|
8
|
+
marginLeft: 12,
|
|
9
|
+
marginRight: 12,
|
|
10
|
+
paddingBottom: styleGroup === 2 ? 0 : 24,
|
|
11
|
+
}"
|
|
7
12
|
card
|
|
8
|
-
:marginLeft="12"
|
|
9
|
-
:marginRight="12"
|
|
10
|
-
:paddingBottom="styleGroup === 2 ? 0 : 24"
|
|
11
13
|
>
|
|
12
14
|
<view
|
|
13
15
|
class="py-2 px-3 text-3.5 text-#333 flex justify-between items-center"
|
|
@@ -35,13 +37,12 @@
|
|
|
35
37
|
<view>{{ title }}</view>
|
|
36
38
|
<wd-icon name="arrow-right1" size="24" />
|
|
37
39
|
</view>
|
|
38
|
-
</
|
|
40
|
+
</lcb-block>
|
|
39
41
|
</template>
|
|
40
42
|
|
|
41
43
|
<script setup lang="ts">
|
|
42
44
|
import lcbBanner from '../lcb-banner/lcb-banner.vue'
|
|
43
45
|
import { LcbBannerListProps } from './types'
|
|
44
|
-
import LcbBlock from '../lcb-block/lcb-block.vue'
|
|
45
46
|
import { computed } from 'vue'
|
|
46
47
|
import { LcbBannerProps } from 'components/lcb-banner/types'
|
|
47
48
|
defineOptions({
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<lcb-block
|
|
3
|
+
v-bind="{
|
|
4
|
+
marginTop,
|
|
5
|
+
marginBottom,
|
|
6
|
+
marginLeft: 12,
|
|
7
|
+
marginRight: 12,
|
|
8
|
+
}"
|
|
9
|
+
>
|
|
3
10
|
<view
|
|
4
11
|
class="grid gap-2"
|
|
5
12
|
:style="{
|
|
@@ -15,12 +22,11 @@
|
|
|
15
22
|
mode="aspectFill"
|
|
16
23
|
/>
|
|
17
24
|
</view>
|
|
18
|
-
</
|
|
25
|
+
</lcb-block>
|
|
19
26
|
</template>
|
|
20
27
|
|
|
21
28
|
<script setup lang="ts">
|
|
22
29
|
import { LcbGridProps } from './types'
|
|
23
|
-
import LcbBlock from '../lcb-block/lcb-block.vue'
|
|
24
30
|
defineOptions({
|
|
25
31
|
name: 'Lcbtitle',
|
|
26
32
|
options: {
|
|
@@ -43,22 +43,21 @@
|
|
|
43
43
|
<wd-icon name="arrow-left" custom-class="arrow-left" />
|
|
44
44
|
</template>
|
|
45
45
|
<view class="ml-2" v-if="titleLocation === 'left'">
|
|
46
|
-
<
|
|
47
|
-
|
|
46
|
+
<Search
|
|
47
|
+
v-bind="{
|
|
48
|
+
searchText,
|
|
49
|
+
back,
|
|
50
|
+
}"
|
|
48
51
|
left
|
|
49
52
|
v-if="styleGroup === 2 && titleLocation === 'left'"
|
|
50
|
-
:back
|
|
51
53
|
/>
|
|
52
|
-
<
|
|
54
|
+
<Title v-bind="titleProps" v-else-if="topStyle !== 2" />
|
|
53
55
|
</view>
|
|
54
56
|
</view>
|
|
55
57
|
<!-- 中间布局 -->
|
|
56
58
|
<view class="navbar-center" v-if="topStyle === 1">
|
|
57
|
-
<
|
|
58
|
-
<
|
|
59
|
-
v-bind="titleProps"
|
|
60
|
-
v-else-if="styleGroup === 2 || titleLocation === 'center'"
|
|
61
|
-
/>
|
|
59
|
+
<Search v-if="styleGroup === 2 && titleLocation === 'center'" :back="back" />
|
|
60
|
+
<Title v-bind="titleProps" v-else-if="styleGroup === 2 || titleLocation === 'center'" />
|
|
62
61
|
</view>
|
|
63
62
|
<!-- </template> -->
|
|
64
63
|
</view>
|
|
@@ -69,8 +68,8 @@
|
|
|
69
68
|
import { addUnit } from '@tplc/wot/components/common/util'
|
|
70
69
|
import { computed, ref } from 'vue'
|
|
71
70
|
import { ICapsule, NavProps } from './types'
|
|
72
|
-
import
|
|
73
|
-
import
|
|
71
|
+
import Title from './Title/index.vue'
|
|
72
|
+
import Search from './Search/index.vue'
|
|
74
73
|
import { onPageScroll } from '@dcloudio/uni-app'
|
|
75
74
|
|
|
76
75
|
const { statusBarHeight } = uni.getSystemInfoSync()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<lcb-block
|
|
3
3
|
v-bind="{
|
|
4
4
|
...$props,
|
|
5
5
|
title: undefined,
|
|
@@ -14,12 +14,11 @@
|
|
|
14
14
|
>
|
|
15
15
|
{{ title }}
|
|
16
16
|
</text>
|
|
17
|
-
</
|
|
17
|
+
</lcb-block>
|
|
18
18
|
</template>
|
|
19
19
|
|
|
20
20
|
<script setup lang="ts">
|
|
21
21
|
import { LcbTitleProps } from './types'
|
|
22
|
-
import LcbBlock from '../lcb-block/lcb-block.vue'
|
|
23
22
|
defineOptions({
|
|
24
23
|
name: 'Lcbtitle',
|
|
25
24
|
options: {
|
package/global.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ declare module 'vue' {
|
|
|
8
8
|
'lcb-title': (typeof import('./types/components/lcb-title/lcb-title.vue'))['default']
|
|
9
9
|
'lcb-grid': (typeof import('./types/components/lcb-grid/lcb-grid.vue'))['default']
|
|
10
10
|
'lcb-home-search': (typeof import('./types/components/lcb-home-search/lcb-home-search.vue'))['default']
|
|
11
|
+
'lcb-block': (typeof import('./types/components/lcb-block/lcb-block.vue'))['default']
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
|
package/package.json
CHANGED
|
@@ -52,16 +52,16 @@ declare const _default: import('vue').DefineComponent<
|
|
|
52
52
|
>
|
|
53
53
|
>,
|
|
54
54
|
{
|
|
55
|
+
styleGroup: 1 | 2 | 3 | 4
|
|
55
56
|
fixed: boolean
|
|
56
57
|
title: string
|
|
57
|
-
styleGroup: 1 | 2 | 3 | 4
|
|
58
|
-
back: boolean
|
|
59
58
|
topStyle: 1 | 2
|
|
60
59
|
immersionMode: 1 | 2
|
|
61
60
|
colorMode: 'custom' | 'default'
|
|
62
61
|
backColor: string
|
|
63
62
|
backgroundType: 'img' | 'color'
|
|
64
63
|
contentColor: string
|
|
64
|
+
back: boolean
|
|
65
65
|
capsuleMode: 'light' | 'dark'
|
|
66
66
|
titleMode: 'text' | 'img'
|
|
67
67
|
logoImg: string
|
|
@@ -70,7 +70,6 @@ declare const _default: import('vue').DefineComponent<
|
|
|
70
70
|
>
|
|
71
71
|
>,
|
|
72
72
|
{
|
|
73
|
-
borderRadius: number
|
|
74
73
|
styleGroup: 1 | 2 | 3 | 4
|
|
75
74
|
autoplay: boolean
|
|
76
75
|
direction: 'horizontal' | 'vertical'
|
|
@@ -88,6 +87,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
88
87
|
| 'bottom-right'
|
|
89
88
|
| 'right'
|
|
90
89
|
indicator: boolean
|
|
90
|
+
borderRadius: number
|
|
91
91
|
indicatorType: 'dots' | 'dots-bar' | 'fraction'
|
|
92
92
|
},
|
|
93
93
|
{}
|
|
File without changes
|
|
File without changes
|