@tplc/business 0.2.89 → 0.2.90

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.2.90](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.89...v0.2.90) (2025-01-13)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * prodcut 阴影 ([ffe2720](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ffe27203454da157efa96b4ef11389692bc17fc3))
11
+
5
12
  ### [0.2.89](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.88...v0.2.89) (2025-01-12)
6
13
 
7
14
 
@@ -9,10 +9,18 @@
9
9
  :style="{
10
10
  fontWeight,
11
11
  }"
12
- :class="{
13
- 'title-line': showTitleLine,
14
- }"
12
+ class="flex items-center"
15
13
  >
14
+ <view
15
+ v-if="showTitleLine"
16
+ class="h-90%"
17
+ :style="{
18
+ backgroundColor: lineColor || themeColor,
19
+ marginRight: transformValueUnit(lineRight),
20
+ width: transformValueUnit(lineWidth),
21
+ borderRadius: transformValueUnit(lineWidth / 2),
22
+ }"
23
+ />
16
24
  {{ title }}
17
25
  </view>
18
26
  <view
@@ -45,6 +53,8 @@
45
53
  <script setup lang="ts">
46
54
  import { LcbTitleProps } from './types'
47
55
  import { transformValueUnit } from '../../utils/transform'
56
+ import { inject } from 'vue'
57
+ const themeColor = inject('theme-color', '#3875FF')
48
58
  defineOptions({
49
59
  name: 'LcbTitle',
50
60
  options: {
@@ -67,22 +77,7 @@ withDefaults(defineProps<LcbTitleProps>(), {
67
77
  hintColor: '#666',
68
78
  hintVerticalAlign: 'end',
69
79
  showTitleLine: false,
80
+ lineRight: 12,
81
+ lineWidth: 6,
70
82
  })
71
83
  </script>
72
- <style lang="scss" scoped>
73
- @import '@tplc/wot/components/common/abstracts/variable';
74
- .title-line {
75
- position: relative;
76
- padding-left: 10rpx !important;
77
- &::after {
78
- content: '';
79
- position: absolute;
80
- top: 5%;
81
- left: 0;
82
- border-radius: 4rpx;
83
- width: 6rpx;
84
- height: 90%;
85
- background-color: $-color-theme;
86
- }
87
- }
88
- </style>
@@ -17,6 +17,9 @@ export interface LcbTitleProps extends LcbBlockProps {
17
17
  hintFontSize?: number
18
18
  hintVerticalAlign?: 'end' | 'center'
19
19
  showTitleLine?: boolean
20
+ lineRight?: number
21
+ lineColor?: string
22
+ lineWidth?: number
20
23
 
21
24
  moreColor?: string
22
25
  moreFontSize?: number
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.2.89",
3
+ "version": "0.2.90",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -16,6 +16,8 @@ declare const _default: import('vue').DefineComponent<
16
16
  hintColor: string
17
17
  hintVerticalAlign: string
18
18
  showTitleLine: boolean
19
+ lineRight: number
20
+ lineWidth: number
19
21
  }
20
22
  >,
21
23
  {},
@@ -45,6 +47,8 @@ declare const _default: import('vue').DefineComponent<
45
47
  hintColor: string
46
48
  hintVerticalAlign: string
47
49
  showTitleLine: boolean
50
+ lineRight: number
51
+ lineWidth: number
48
52
  }
49
53
  >
50
54
  >
@@ -52,6 +56,7 @@ declare const _default: import('vue').DefineComponent<
52
56
  {
53
57
  title: string
54
58
  color: string
59
+ lineWidth: number
55
60
  marginHorizontal: number
56
61
  fontSize: number
57
62
  justify:
@@ -65,6 +70,7 @@ declare const _default: import('vue').DefineComponent<
65
70
  hintFontSize: number
66
71
  hintVerticalAlign: 'end' | 'center'
67
72
  showTitleLine: boolean
73
+ lineRight: number
68
74
  moreColor: string
69
75
  moreFontSize: number
70
76
  moreVerticalAlign: 'end' | 'center'
@@ -16,6 +16,9 @@ export interface LcbTitleProps extends LcbBlockProps {
16
16
  hintFontSize?: number
17
17
  hintVerticalAlign?: 'end' | 'center'
18
18
  showTitleLine?: boolean
19
+ lineRight?: number
20
+ lineColor?: string
21
+ lineWidth?: number
19
22
  moreColor?: string
20
23
  moreFontSize?: number
21
24
  moreText?: string