@tplc/business 0.7.25 → 0.7.27
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 +19 -0
- package/components/lcb-action-view/lcb-action-view.vue +1 -1
- package/components/lcb-area/lcb-area.vue +7 -7
- package/components/lcb-button/components/lcb-button-action/index.vue +0 -10
- package/components/lcb-button/components/lcb-button-content/index.vue +3 -1
- package/components/lcb-button/lcb-button.vue +3 -15
- package/components/lcb-wrapper-list/lcb-wrapper-list.vue +1 -1
- package/package.json +1 -1
- package/types/components/lcb-wrapper-list/lcb-wrapper-list.vue.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
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.27](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.26...v0.7.27) (2025-12-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 修改样式兼容 ([7b286d6](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/7b286d6a299da10f79d02b9565e6e681ce61c494))
|
|
11
|
+
* 兼容area ([3974374](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/39743742aa8426e34d0bd2b321c48e2b1ef2aa37))
|
|
12
|
+
* 兼容padding ([267de42](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/267de42fc3e2f539b5fa47bd8ef2389f8eb57207))
|
|
13
|
+
* 暂时不用处理 ([5c15637](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/5c15637f45bb06a32c8e42a36b01ab98cf1d71a8))
|
|
14
|
+
* 样式调整 ([bd83b18](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/bd83b1815a283f7dcd602dc02ca7644e0c5f2d6d))
|
|
15
|
+
|
|
16
|
+
### [0.7.26](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.25...v0.7.26) (2025-12-22)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### ✨ Features | 新功能
|
|
20
|
+
|
|
21
|
+
* 修改兼容尺寸 ([9079ff7](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/9079ff74d88162468a3528b533f9492ca7c2dfaa))
|
|
22
|
+
* 新增优化版本 ([aac61bb](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/aac61bbc06a90fc8ade33c8c1765f4df5d4ba37e))
|
|
23
|
+
|
|
5
24
|
### [0.7.25](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.23...v0.7.25) (2025-12-22)
|
|
6
25
|
|
|
7
26
|
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
:submitRequestInfo="submitRequestInfo"
|
|
73
73
|
v-if="['144'].includes(getJumpType(jumpType)) && showPay && requestInfo && submitRequestInfo"
|
|
74
74
|
/>
|
|
75
|
-
<SharePopup v-model="showPoster" :params="requestParam" />
|
|
75
|
+
<SharePopup v-model="showPoster" :params="requestParam" v-if="showPoster" />
|
|
76
76
|
<CustomPopup
|
|
77
77
|
v-model="showCustomPopup"
|
|
78
78
|
v-if="['145'].includes(getJumpType(jumpType)) && showCustomPopup"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<lcb-block v-bind="$props" v-if="showArea">
|
|
2
|
+
<lcb-block v-bind="$props" :customClass="`lcb-area`" v-if="showArea">
|
|
3
3
|
<lcb-action-view v-bind="actionProps" v-if="actionProps?.jumpType">
|
|
4
4
|
<view :style="containerStyle" class="h-full">
|
|
5
5
|
<view
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<view
|
|
17
17
|
v-for="(item, index) in list"
|
|
18
18
|
:key="item.id"
|
|
19
|
-
class="slot-wrapper
|
|
19
|
+
class="slot-wrapper"
|
|
20
20
|
:style="getItemStyle(index)"
|
|
21
21
|
>
|
|
22
22
|
<slot :item="item" />
|
|
@@ -203,13 +203,13 @@ const showArea = computed(() => {
|
|
|
203
203
|
|
|
204
204
|
<style lang="scss" scoped>
|
|
205
205
|
.slot-wrapper {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
:deep(> button) {
|
|
206
|
+
// 合并公共样式,避免重复
|
|
207
|
+
:deep(> .lcb-action-btn),
|
|
208
|
+
:deep(> .lcb-button),
|
|
209
|
+
:deep(> .lcb-area) {
|
|
211
210
|
width: 100%;
|
|
212
211
|
height: auto;
|
|
212
|
+
box-sizing: border-box; // 强化布局,防止溢出
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
</style>
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
v-bind="actionProps"
|
|
4
4
|
@avatar="onAvatar"
|
|
5
5
|
@click="handleClick"
|
|
6
|
-
:customStyle="actionPaddingStyle"
|
|
7
6
|
:renderMode="!actionProps?.jumpType && mode !== 'image' ? 'noClick' : 'button'"
|
|
8
7
|
>
|
|
9
8
|
<lcb-button-content
|
|
@@ -19,7 +18,6 @@
|
|
|
19
18
|
import { LcbButtonProps } from '../../types'
|
|
20
19
|
import { computed } from 'vue'
|
|
21
20
|
import { getDynamicData } from '../../../../utils/utils'
|
|
22
|
-
import { transformValueUnit } from '../../../../utils/transform'
|
|
23
21
|
import { LcbActionViewProps } from '../../../lcb-action-view/types'
|
|
24
22
|
import LcbButtonContent from '../lcb-button-content/index.vue'
|
|
25
23
|
defineOptions({
|
|
@@ -39,14 +37,6 @@ const props = defineProps<
|
|
|
39
37
|
dynamicValue?: string
|
|
40
38
|
}
|
|
41
39
|
>()
|
|
42
|
-
// 优化: 分离 padding 计算和 block props,避免解构整个 props
|
|
43
|
-
const actionPaddingStyle = computed(() => {
|
|
44
|
-
const top = transformValueUnit(props.paddingTop || props.paddingVertical)
|
|
45
|
-
const right = transformValueUnit(props.paddingRight || props.paddingHorizontal)
|
|
46
|
-
const bottom = transformValueUnit(props.paddingBottom || props.paddingVertical)
|
|
47
|
-
const left = transformValueUnit(props.paddingLeft || props.paddingHorizontal)
|
|
48
|
-
return `width: 100%; padding:${top} ${right} ${bottom} ${left}`
|
|
49
|
-
})
|
|
50
40
|
|
|
51
41
|
const onAvatar = (headImgUrl) => {
|
|
52
42
|
props.userStore?.updateUser(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<template v-if="mode === 'noStyle'">{{ innerValue }}</template>
|
|
3
3
|
<lcb-block
|
|
4
|
-
v-bind="
|
|
5
|
-
:customClass="`${customClass} border-solid
|
|
4
|
+
v-bind="props"
|
|
5
|
+
:customClass="`${customClass} border-solid lcb-button`"
|
|
6
6
|
:customStyle="blockCustomStyle"
|
|
7
7
|
v-else-if="shouldRender"
|
|
8
8
|
>
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
:userStore="userStore"
|
|
16
16
|
:dynamicValue="dynamicValue"
|
|
17
17
|
/>
|
|
18
|
+
|
|
18
19
|
<lcb-button-content
|
|
19
20
|
v-else
|
|
20
21
|
v-bind="props"
|
|
@@ -112,19 +113,6 @@ const blockCustomStyle = computed(() => ({
|
|
|
112
113
|
...getFlexStyle(props.itemAlign),
|
|
113
114
|
...getFlexStyle(props.align),
|
|
114
115
|
}))
|
|
115
|
-
|
|
116
|
-
const blockProps = computed(() => {
|
|
117
|
-
const {
|
|
118
|
-
paddingVertical,
|
|
119
|
-
paddingHorizontal,
|
|
120
|
-
paddingTop,
|
|
121
|
-
paddingBottom,
|
|
122
|
-
paddingLeft,
|
|
123
|
-
paddingRight,
|
|
124
|
-
...other
|
|
125
|
-
} = props
|
|
126
|
-
return other
|
|
127
|
-
})
|
|
128
116
|
</script>
|
|
129
117
|
<style lang="scss" scoped>
|
|
130
118
|
@for $i from 1 through 3 {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LcbWrapperListProps } from './types'
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
|
-
default?(_: { data: unknown }): any
|
|
3
|
+
default?(_: { data: unknown; list: import('../lcb-area/types').LcbAreaProps[] | undefined }): any
|
|
4
4
|
}
|
|
5
5
|
declare const __VLS_component: import('vue').DefineComponent<
|
|
6
6
|
__VLS_WithDefaults<
|