@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.
@@ -1,5 +1,10 @@
1
1
  <template>
2
- <LcbBlock :marginTop :marginBottom>
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
- </LcbBlock>
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
- <LcbBlock
3
- :radius
4
- :marginTop
5
- :marginBottom
6
- :backgroundColor
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
- </LcbBlock>
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({
@@ -19,7 +19,7 @@
19
19
  :class="{
20
20
  card,
21
21
  }"
22
- class="box-border overflow-hidden"
22
+ class="box-border overflow-hidden relative"
23
23
  >
24
24
  <slot />
25
25
  </view>
@@ -1,5 +1,12 @@
1
1
  <template>
2
- <LcbBlock :marginTop :marginBottom :marginLeft="12" :marginRight="12">
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
- </LcbBlock>
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: {
@@ -48,7 +48,6 @@
48
48
 
49
49
  <script setup lang="ts">
50
50
  import { ref } from 'vue'
51
- import LcbBlock from '../lcb-block/lcb-block.vue'
52
51
  defineProps<{ marginTop?: number }>()
53
52
  const tabs = ['全部', '酒店', '民宿']
54
53
  const current = ref(0)
@@ -11,7 +11,7 @@
11
11
  </template>
12
12
 
13
13
  <script setup lang="ts">
14
- import { NavTitleProps } from './types'
14
+ import { NavTitleProps } from '../types'
15
15
 
16
16
  defineProps<NavTitleProps>()
17
17
  </script>
@@ -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
- <lcb-nav-search
47
- :searchText
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
- <lcb-nav-title v-bind="titleProps" v-else-if="topStyle !== 2" />
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
- <lcb-nav-search v-if="styleGroup === 2 && titleLocation === 'center'" :back />
58
- <lcb-nav-title
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 lcbNavTitle from './lcb-nav-title.vue'
73
- import lcbNavSearch from './lcb-nav-search.vue'
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
- <LcbBlock
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
- </LcbBlock>
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
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "keywords": [
5
- "业务组件i"
5
+ "业务组件"
6
6
  ],
7
7
  "publishConfig": {
8
8
  "access": "public",
@@ -30,8 +30,8 @@ declare const _default: import('vue').DefineComponent<
30
30
  >
31
31
  >,
32
32
  {
33
- radius: number
34
33
  styleGroup: 1 | 2
34
+ radius: number
35
35
  slidingStyle: 1 | 2
36
36
  },
37
37
  {}
@@ -30,8 +30,8 @@ declare const _default: import('vue').DefineComponent<
30
30
  >
31
31
  >,
32
32
  {
33
- radius: number
34
33
  height: number
34
+ radius: number
35
35
  cols: number
36
36
  },
37
37
  {}
@@ -1,4 +1,4 @@
1
- import { NavTitleProps } from './types'
1
+ import { NavTitleProps } from '../types'
2
2
  declare const _default: import('vue').DefineComponent<
3
3
  __VLS_TypePropsToOption<NavTitleProps>,
4
4
  {},
@@ -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
  {}