@tplc/business 0.0.65 → 0.0.67

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/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.0.67](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.29...v0.0.67) (2024-11-21)
6
+
7
+ ### [0.0.66](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.28...v0.0.66) (2024-11-21)
8
+
9
+
10
+ ### ✨ Features | 新功能
11
+
12
+ * wd-qr-code 新增class 调整项 ([ff1d67c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ff1d67cf638dcf29371d071203f087bdd3994282))
13
+
5
14
  ### [0.0.65](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.64...v0.0.65) (2024-11-21)
6
15
 
7
16
 
package/action.d.ts CHANGED
@@ -37,6 +37,7 @@ export interface LcbGlobal {
37
37
  updateUser: (data: Record<string, any>) => void
38
38
  getUser: () => void
39
39
  }
40
+ getIsTabbar: () => boolean
40
41
  }
41
42
 
42
43
  global {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <view class="h-0 flex-1 pb-3" v-if="letterList.length">
2
+ <view class="h-full pb-3" v-if="letterList.length">
3
3
  <wd-index-bar ref="indexBarRef">
4
4
  <view v-for="item in indexBars" :key="item.categoryName">
5
5
  <wd-index-anchor
@@ -140,6 +140,7 @@ const indexBars = computed<HotAddress[]>(() => {
140
140
  </script>
141
141
  <style lang="scss" scoped>
142
142
  @import '@tplc/wot/components/common/abstracts/variable';
143
+
143
144
  .address-tag {
144
145
  background: #f7f7f7;
145
146
  height: 68rpx;
@@ -152,10 +153,12 @@ const indexBars = computed<HotAddress[]>(() => {
152
153
  text-align: center;
153
154
  overflow: hidden;
154
155
  }
156
+
155
157
  .current-address {
156
158
  color: $-color-theme;
157
159
  background: transparent;
158
160
  position: relative;
161
+
159
162
  &::after {
160
163
  content: '';
161
164
  position: absolute;
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <view class="p-3 box-border flex-1 overflow-y-auto h-0">
2
+ <view class="p-3 box-border h-full overflow-y-auto">
3
3
  <view v-for="item in list" :key="item.hotAddressId" @click="onItemClick(item)">
4
4
  <view class="flex">
5
5
  <view class="tag">{{ item.categoryName }}</view>
@@ -74,6 +74,7 @@ const onClear = () => {
74
74
  </script>
75
75
  <style lang="scss" scoped>
76
76
  @import '@tplc/wot/components/common/abstracts/variable';
77
+
77
78
  .tag {
78
79
  width: 80rpx;
79
80
  height: 34rpx;
@@ -84,6 +85,7 @@ const onClear = () => {
84
85
  border-radius: 4rpx;
85
86
  background-color: $-color-theme;
86
87
  }
88
+
87
89
  .content {
88
90
  flex: 1;
89
91
  display: flex;
@@ -94,6 +96,7 @@ const onClear = () => {
94
96
  padding-bottom: 20rpx;
95
97
  font-size: 24rpx;
96
98
  color: #999;
99
+
97
100
  > rich-text {
98
101
  &:first-child {
99
102
  font-size: 30rpx;
@@ -103,10 +106,12 @@ const onClear = () => {
103
106
  margin-bottom: 12rpx;
104
107
  }
105
108
  }
109
+
106
110
  .text-light {
107
111
  color: $-color-theme;
108
112
  }
109
113
  }
114
+
110
115
  .history-tag {
111
116
  background: #f7f7f7;
112
117
  height: 50rpx;
@@ -7,7 +7,7 @@
7
7
  position="bottom"
8
8
  @after-enter="isOver = true"
9
9
  custom-class="lcb-city__p"
10
- custom-style="height: 90vh;border-top-left-radius: 24rpx;border-top-right-radius: 24rpx;"
10
+ custom-style="height: 80vh;border-top-left-radius: 24rpx;border-top-right-radius: 24rpx;"
11
11
  :safe-area-inset-bottom="true"
12
12
  >
13
13
  <view class="flex flex-col h-full">
@@ -29,14 +29,28 @@
29
29
  @cancel="onCancel"
30
30
  />
31
31
  </view>
32
- <lcb-city-list
33
- v-show="showList"
34
- :list="lcbAddress"
35
- :keyword="searchValue"
36
- @click="onAddressClick"
37
- />
32
+ <view
33
+ :class="{
34
+ '!hidden': !showList,
35
+ }"
36
+ class="flex-1 h-0"
37
+ >
38
+ <lcb-city-list :list="lcbAddress" :keyword="searchValue" @click="onAddressClick" />
39
+ </view>
40
+ <view
41
+ :class="{
42
+ '!hidden': !(!showList && isOver),
43
+ }"
44
+ class="flex-1 h-0"
45
+ >
46
+ <lcb-city-letter v-bind="$props" v-model="modelValue" />
47
+ </view>
38
48
 
39
- <lcb-city-letter v-show="!showList && isOver" v-bind="$props" v-model="modelValue" />
49
+ <view
50
+ :style="{
51
+ height: isTabBar ? '60px' : '10px',
52
+ }"
53
+ />
40
54
  </view>
41
55
  </wd-popup>
42
56
  </template>
@@ -57,6 +71,7 @@ defineOptions({
57
71
  styleIsolation: 'shared',
58
72
  },
59
73
  })
74
+ const isTabBar = uni.$lcb.getIsTabbar()
60
75
  const props = withDefaults(defineProps<LcbCitySelectProps>(), {
61
76
  placeholder: '搜索城市/区域/景点',
62
77
  })
@@ -4,24 +4,44 @@
4
4
  ...$props,
5
5
  }"
6
6
  >
7
- <lcb-action-view :customClass="`!flex items-center ${justify}`" v-bind="action">
8
- <text
7
+ <lcb-action-view :customClass="`!flex ${justify} !leading-none`" v-bind="action">
8
+ <view
9
9
  :style="{
10
10
  fontWeight,
11
11
  }"
12
12
  >
13
13
  {{ title }}
14
- </text>
15
- <text class="text-24rpx ml-3" v-if="hint">
14
+ </view>
15
+ <view
16
+ class="ml-3"
17
+ v-if="hint"
18
+ :style="{
19
+ fontSize: transformValueUnit(hintFontSize),
20
+ color: hintColor,
21
+ alignSelf: hintVerticalAlign,
22
+ }"
23
+ >
16
24
  {{ hint }}
17
- </text>
18
- <text v-if="showMore" class="flex-1 text-end text-24rpx">更多</text>
25
+ </view>
26
+ <view
27
+ v-if="moreText"
28
+ class="flex-1 flex justify-end items-center"
29
+ :style="{
30
+ fontSize: transformValueUnit(moreFontSize),
31
+ color: moreColor,
32
+ alignSelf: moreVerticalAlign,
33
+ }"
34
+ >
35
+ 更多
36
+ <wd-icon name="xiangyou" classPrefix="lcb" :size="transformValueUnit(moreFontSize)" />
37
+ </view>
19
38
  </lcb-action-view>
20
39
  </lcb-block>
21
40
  </template>
22
41
 
23
42
  <script setup lang="ts">
24
43
  import { LcbTitleProps } from './types'
44
+ import { transformValueUnit } from '../../utils/transform'
25
45
  defineOptions({
26
46
  name: 'LcbTitle',
27
47
  options: {
@@ -37,6 +57,12 @@ withDefaults(defineProps<LcbTitleProps>(), {
37
57
  color: '#333',
38
58
  title: '标题',
39
59
  justify: 'justify-start',
60
+ moreFontSize: 24,
61
+ moreColor: '#999',
62
+ moreVerticalAlign: 'center',
63
+ hintFontSize: 24,
64
+ hintColor: '#666',
65
+ hintVerticalAlign: 'end',
40
66
  })
41
67
  </script>
42
68
  <style lang="scss" scoped></style>
@@ -1,11 +1,9 @@
1
1
  import { LcbActionViewProps } from '../lcb-action-view/types'
2
2
  import { LcbBlockProps } from '../lcb-block/types'
3
3
  export interface LcbTitleProps extends LcbBlockProps {
4
- title: string
5
4
  /** 副标题 */
6
- hint?: string
5
+ title: string
7
6
  fontWeight?: number
8
- showMore?: boolean
9
7
  action?: LcbActionViewProps
10
8
  justify?:
11
9
  | 'justify-start'
@@ -13,4 +11,14 @@ export interface LcbTitleProps extends LcbBlockProps {
13
11
  | 'justify-center'
14
12
  | 'justify-between'
15
13
  | 'justify-around'
14
+
15
+ hint?: string
16
+ hintColor?: string
17
+ hintFontSize?: number
18
+ hintVerticalAlign?: 'end' | 'center'
19
+
20
+ moreColor?: string
21
+ moreFontSize?: number
22
+ moreText?: string
23
+ moreVerticalAlign?: 'end' | 'center'
16
24
  }
package/package.json CHANGED
@@ -1,17 +1,26 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.0.65",
3
+ "version": "0.0.67",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
7
7
  "type": "module",
8
+ "scripts": {
9
+ "pub": "pnpm dts && pnpm publish --no-git-checks",
10
+ "dts": "rm -rf types && vue-tsc --project ./tsconfig.dts.json && pnpm prettier --write types",
11
+ "release-major": "standard-version --release-as major ",
12
+ "release-minor": "standard-version --release-as minor",
13
+ "release-patch": "standard-version --release-as patch ",
14
+ "generateComponent": "node ./scripts/createComponent.mjs",
15
+ "generateGlobalDts": "node ./scripts/generateGlobalDts.mjs"
16
+ },
8
17
  "publishConfig": {
9
18
  "access": "public",
10
19
  "registry": "https://registry.npmjs.org/"
11
20
  },
12
21
  "peerDependencies": {
13
- "vue": ">=3.2.47",
14
- "@tplc/wot": "0.1.27"
22
+ "@tplc/wot": "workspace:*",
23
+ "vue": ">=3.2.47"
15
24
  },
16
25
  "engines": {
17
26
  "node": ">=18",
@@ -21,14 +30,5 @@
21
30
  "mp-html": "^2.5.0",
22
31
  "qs": "6.5.3",
23
32
  "uview-plus": "^3.3.9"
24
- },
25
- "scripts": {
26
- "pub": "pnpm dts && pnpm publish --no-git-checks",
27
- "dts": "rm -rf types && vue-tsc --project ./tsconfig.dts.json && pnpm prettier --write types",
28
- "release-major": "standard-version --release-as major ",
29
- "release-minor": "standard-version --release-as minor",
30
- "release-patch": "standard-version --release-as patch ",
31
- "generateComponent": "node ./scripts/createComponent.mjs",
32
- "generateGlobalDts": "node ./scripts/generateGlobalDts.mjs"
33
33
  }
34
- }
34
+ }
@@ -9,6 +9,12 @@ declare const _default: import('vue').DefineComponent<
9
9
  color: string
10
10
  title: string
11
11
  justify: string
12
+ moreFontSize: number
13
+ moreColor: string
14
+ moreVerticalAlign: string
15
+ hintFontSize: number
16
+ hintColor: string
17
+ hintVerticalAlign: string
12
18
  }
13
19
  >,
14
20
  {},
@@ -31,6 +37,12 @@ declare const _default: import('vue').DefineComponent<
31
37
  color: string
32
38
  title: string
33
39
  justify: string
40
+ moreFontSize: number
41
+ moreColor: string
42
+ moreVerticalAlign: string
43
+ hintFontSize: number
44
+ hintColor: string
45
+ hintVerticalAlign: string
34
46
  }
35
47
  >
36
48
  >
@@ -47,6 +59,12 @@ declare const _default: import('vue').DefineComponent<
47
59
  | 'justify-between'
48
60
  | 'justify-around'
49
61
  fontWeight: number
62
+ hintColor: string
63
+ hintFontSize: number
64
+ hintVerticalAlign: 'end' | 'center'
65
+ moreColor: string
66
+ moreFontSize: number
67
+ moreVerticalAlign: 'end' | 'center'
50
68
  },
51
69
  {}
52
70
  >
@@ -1,11 +1,9 @@
1
1
  import { LcbActionViewProps } from '../lcb-action-view/types'
2
2
  import { LcbBlockProps } from '../lcb-block/types'
3
3
  export interface LcbTitleProps extends LcbBlockProps {
4
- title: string
5
4
  /** 副标题 */
6
- hint?: string
5
+ title: string
7
6
  fontWeight?: number
8
- showMore?: boolean
9
7
  action?: LcbActionViewProps
10
8
  justify?:
11
9
  | 'justify-start'
@@ -13,4 +11,12 @@ export interface LcbTitleProps extends LcbBlockProps {
13
11
  | 'justify-center'
14
12
  | 'justify-between'
15
13
  | 'justify-around'
14
+ hint?: string
15
+ hintColor?: string
16
+ hintFontSize?: number
17
+ hintVerticalAlign?: 'end' | 'center'
18
+ moreColor?: string
19
+ moreFontSize?: number
20
+ moreText?: string
21
+ moreVerticalAlign?: 'end' | 'center'
16
22
  }