@tplc/business 0.7.87 → 0.7.89
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,40 @@
|
|
|
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.7.89](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v1.0.32...v0.7.89) (2026-01-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* **lcb-calendar:** add confirmText prop and change event emission ([7448304](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/74483045706c9ff410d24376898303a3f6717b1e))
|
|
11
|
+
* **pages:** add new empty state components and update navigation titles ([679a13f](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/679a13f09ca9952e792212ca5e8d122a43fb0b9a))
|
|
12
|
+
* update lcb-map and lcb-home-search components with new computed properties and type definitions ([43e860b](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/43e860b684c6e42bbc849a5540539d47aa2064fa))
|
|
13
|
+
* **wd-calendar-view:** implement dynamic end date calculation based on defaultDays prop ([0b48f3e](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/0b48f3ee9df12b55069c24b82ab758d31260d595))
|
|
14
|
+
* 边框显隐 ([14c4a65](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/14c4a65e628c877a23a038603cf59cc7fab13b8c))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
18
|
+
|
|
19
|
+
* **release:** 0.7.84 ([cb04a38](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/cb04a38f7c3a08344a99b134480d89b4114aa29c))
|
|
20
|
+
* **release:** 0.7.85 ([990307d](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/990307d9bd2013ff50504bfaaa7044e621cd8d39))
|
|
21
|
+
* **release:** 0.7.86 ([865ba3e](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/865ba3eac1842866e6d6e3069ca39b4a5b9be34e))
|
|
22
|
+
* **release:** 0.7.87 ([4a12a29](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/4a12a290fbabfc2095e0e64ab788c1b08ec0ec7e))
|
|
23
|
+
* **release:** 0.7.88 ([442fda6](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/442fda6d0367936677e09a325abfcad3694efb67))
|
|
24
|
+
* **release:** 1.0.33 ([490af35](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/490af35666cc085f6faa73c8f7ddc8331352744d))
|
|
25
|
+
* **release:** 1.0.34 ([fc4921e](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/fc4921e526157da0f73bd8afee39637737e754b2))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### ♻️ Code Refactoring | 代码重构
|
|
29
|
+
|
|
30
|
+
* replace slot usage with lcb-render-view component in lcb-area and lcb-render-view ([e13844d](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/e13844da071827319420a00448ec1340c783dc06))
|
|
31
|
+
|
|
32
|
+
### [0.7.88](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v1.0.34...v0.7.88) (2026-01-21)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### ✨ Features | 新功能
|
|
36
|
+
|
|
37
|
+
* update lcb-map and lcb-home-search components with new computed properties and type definitions ([43e860b](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/43e860b684c6e42bbc849a5540539d47aa2064fa))
|
|
38
|
+
|
|
5
39
|
### [0.7.87](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v1.0.33...v0.7.87) (2026-01-21)
|
|
6
40
|
|
|
7
41
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
class="slot-wrapper z-1"
|
|
9
9
|
:style="getItemStyle(index)"
|
|
10
10
|
>
|
|
11
|
-
<
|
|
11
|
+
<lcb-render-view :element="item" />
|
|
12
12
|
</view>
|
|
13
13
|
</view>
|
|
14
14
|
</lcb-action-view>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
class="slot-wrapper"
|
|
20
20
|
:style="getItemStyle(index)"
|
|
21
21
|
>
|
|
22
|
-
<
|
|
22
|
+
<lcb-render-view :element="item" />
|
|
23
23
|
</view>
|
|
24
24
|
</view>
|
|
25
25
|
</lcb-block>
|
|
@@ -107,9 +107,25 @@ const spacingStyles = computed(() => {
|
|
|
107
107
|
const backgroundStyle = computed(() => {
|
|
108
108
|
const bgImage = dynamicBgImage.value
|
|
109
109
|
const bgColor = innerBackgroundColor.value || 'transparent'
|
|
110
|
-
|
|
111
|
-
//
|
|
112
|
-
|
|
110
|
+
let styles = {}
|
|
111
|
+
// 如果是小红书
|
|
112
|
+
// #ifdef MP-XHS
|
|
113
|
+
styles = {
|
|
114
|
+
backgroundImage: `url('${bgImage}')`,
|
|
115
|
+
backgroundColor: bgColor,
|
|
116
|
+
backgroundRepeat: props.backgroundRepeat || 'no-repeat',
|
|
117
|
+
backgroundPosition: props.backgroundPosition || 'center top',
|
|
118
|
+
backgroundSize: props.backgroundSize || '100% 100%',
|
|
119
|
+
}
|
|
120
|
+
// #endif
|
|
121
|
+
// #ifndef MP-XHS
|
|
122
|
+
styles = {
|
|
123
|
+
background: !bgImage
|
|
124
|
+
? bgColor
|
|
125
|
+
: `${props.backgroundPosition} / ${props.backgroundSize} ${props.backgroundRepeat} url('${bgImage}'), ${bgColor}`,
|
|
126
|
+
}
|
|
127
|
+
// #endif
|
|
128
|
+
return styles
|
|
113
129
|
})
|
|
114
130
|
|
|
115
131
|
const getFinalStyle = computed(() => {
|
|
@@ -117,15 +133,16 @@ const getFinalStyle = computed(() => {
|
|
|
117
133
|
const style: Record<string, any> = {
|
|
118
134
|
...spacingStyles.value,
|
|
119
135
|
color: props.color,
|
|
120
|
-
|
|
136
|
+
|
|
121
137
|
fontSize: transformValueUnit(props.fontSize),
|
|
122
138
|
fontWeight: props.fontWeight,
|
|
123
139
|
borderColor: props.borderColor,
|
|
124
140
|
zIndex: props.zIndex,
|
|
125
141
|
position: props.position,
|
|
126
142
|
borderWidth: transformValueUnit(props.borderWidth),
|
|
127
|
-
textAlign: props.textAlign,
|
|
128
143
|
...(props.borderVisible || {}),
|
|
144
|
+
textAlign: props.textAlign,
|
|
145
|
+
...backgroundStyle.value,
|
|
129
146
|
}
|
|
130
147
|
|
|
131
148
|
// 优化:只在需要时添加 boxShadow
|
|
@@ -27,11 +27,7 @@
|
|
|
27
27
|
v-else-if="element.moduleName === 'lcb-area'"
|
|
28
28
|
v-bind="element.props"
|
|
29
29
|
:list="element.children"
|
|
30
|
-
|
|
31
|
-
<template #default="{ item }">
|
|
32
|
-
<lcb-render-view :element="item" />
|
|
33
|
-
</template>
|
|
34
|
-
</lcb-area>
|
|
30
|
+
/>
|
|
35
31
|
<lcb-wrapper-list
|
|
36
32
|
v-else-if="element.moduleName === 'lcb-wrapper-list'"
|
|
37
33
|
v-bind="element.props"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tplc/business",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.89",
|
|
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": "1.0.
|
|
14
|
+
"@tplc/wot": "1.0.34"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">=18",
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { LcbAreaProps } from './types'
|
|
2
|
-
declare
|
|
3
|
-
default?(_: { item: LcbAreaProps }): any
|
|
4
|
-
default?(_: { item: LcbAreaProps }): any
|
|
5
|
-
}
|
|
6
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
2
|
+
declare const _default: import('vue').DefineComponent<
|
|
7
3
|
__VLS_WithDefaults<
|
|
8
4
|
__VLS_TypePropsToOption<LcbAreaProps>,
|
|
9
5
|
{
|
|
@@ -40,10 +36,6 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
40
36
|
},
|
|
41
37
|
{}
|
|
42
38
|
>
|
|
43
|
-
declare const _default: __VLS_WithTemplateSlots<
|
|
44
|
-
typeof __VLS_component,
|
|
45
|
-
ReturnType<typeof __VLS_template>
|
|
46
|
-
>
|
|
47
39
|
export default _default
|
|
48
40
|
type __VLS_WithDefaults<P, D> = {
|
|
49
41
|
[K in keyof Pick<P, keyof P>]: K extends keyof D
|
|
@@ -57,11 +49,6 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
57
49
|
type __VLS_Prettify<T> = {
|
|
58
50
|
[K in keyof T]: T[K]
|
|
59
51
|
} & {}
|
|
60
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
61
|
-
new (): {
|
|
62
|
-
$slots: S
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
52
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
66
53
|
type __VLS_TypePropsToOption<T> = {
|
|
67
54
|
[K in keyof T]-?: {} extends Pick<T, K>
|