@tplc/business 0.0.65 → 0.0.66

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,13 @@
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.66](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.28...v0.0.66) (2024-11-21)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * wd-qr-code 新增class 调整项 ([ff1d67c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ff1d67cf638dcf29371d071203f087bdd3994282))
11
+
5
12
  ### [0.0.65](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.64...v0.0.65) (2024-11-21)
6
13
 
7
14
 
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.0.65",
3
+ "version": "0.0.66",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "peerDependencies": {
13
13
  "vue": ">=3.2.47",
14
- "@tplc/wot": "0.1.27"
14
+ "@tplc/wot": "0.1.28"
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=18",
@@ -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
  }