@tplc/business 0.4.64 → 0.4.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 +10 -0
- package/components/lcb-form/lcb-form.vue +36 -22
- package/components/lcb-form/types.ts +2 -0
- package/components/lcb-product-item/components/ItemValue.vue +6 -3
- package/components/lcb-product-item/lcb-product-item.vue +1 -1
- package/package.json +2 -2
- package/types/components/lcb-form/lcb-form.vue.d.ts +3 -0
- package/types/components/lcb-form/types.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
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.4.66](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.65...v0.4.66) (2025-04-08)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* level colver ([a8cf74e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a8cf74e83723e9d5fe820ea1cd1743e439af7a46))
|
|
11
|
+
* 兼容多行文案 ([466da44](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/466da4433988e497d086c7e02c152492a49b0476))
|
|
12
|
+
|
|
13
|
+
### [0.4.65](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.79...v0.4.65) (2025-04-08)
|
|
14
|
+
|
|
5
15
|
### [0.4.64](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.78...v0.4.64) (2025-04-07)
|
|
6
16
|
|
|
7
17
|
### [0.4.63](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.62...v0.4.63) (2025-04-07)
|
|
@@ -134,30 +134,34 @@
|
|
|
134
134
|
</wd-cell>
|
|
135
135
|
</block>
|
|
136
136
|
</wd-cell-group>
|
|
137
|
-
<
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
<view
|
|
142
|
-
<
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
137
|
+
<lcb-gap safeAreaBottom :height="200" v-if="bottomFixed" />
|
|
138
|
+
<view :class="{ 'bottom-fixed': bottomFixed, 'mt-3': !bottomFixed }">
|
|
139
|
+
<view class="text-center text-3 mt-3" v-if="agreementType && fields">
|
|
140
|
+
<wd-checkbox v-model="form.agreement">
|
|
141
|
+
<view class="flex">
|
|
142
|
+
<text>{{ affirmText }}</text>
|
|
143
|
+
<view @click.stop>
|
|
144
|
+
<lcb-agreement-view :type="agreementType">
|
|
145
|
+
<template v-slot="{ text }">
|
|
146
|
+
<text class="text-primary">《{{ text }}》</text>
|
|
147
|
+
</template>
|
|
148
|
+
</lcb-agreement-view>
|
|
149
|
+
</view>
|
|
147
150
|
</view>
|
|
148
|
-
</
|
|
149
|
-
</
|
|
151
|
+
</wd-checkbox>
|
|
152
|
+
</view>
|
|
153
|
+
<wd-button
|
|
154
|
+
type="primary"
|
|
155
|
+
@click="submit"
|
|
156
|
+
block
|
|
157
|
+
size="large"
|
|
158
|
+
custom-class="!w-90% mt-3"
|
|
159
|
+
v-if="fields"
|
|
160
|
+
>
|
|
161
|
+
{{ t(submitText) }}
|
|
162
|
+
</wd-button>
|
|
163
|
+
<lcb-gap safeAreaBottom :height="24" />
|
|
150
164
|
</view>
|
|
151
|
-
<wd-button
|
|
152
|
-
type="primary"
|
|
153
|
-
@click="submit"
|
|
154
|
-
block
|
|
155
|
-
size="large"
|
|
156
|
-
custom-class="!w-90% my-3"
|
|
157
|
-
v-if="fields"
|
|
158
|
-
>
|
|
159
|
-
{{ t(submitText) }}
|
|
160
|
-
</wd-button>
|
|
161
165
|
</wd-form>
|
|
162
166
|
</lcb-block>
|
|
163
167
|
</template>
|
|
@@ -186,6 +190,7 @@ const formRef = ref()
|
|
|
186
190
|
const props = withDefaults(defineProps<LcbFormProps>(), {
|
|
187
191
|
submitText: '提交',
|
|
188
192
|
affirmText: '同意',
|
|
193
|
+
bottomFixed: true,
|
|
189
194
|
})
|
|
190
195
|
const fields = ref<LcbFormField[]>()
|
|
191
196
|
watch(
|
|
@@ -316,4 +321,13 @@ watch(
|
|
|
316
321
|
gap: 8rpx;
|
|
317
322
|
}
|
|
318
323
|
}
|
|
324
|
+
.bottom-fixed {
|
|
325
|
+
position: fixed;
|
|
326
|
+
bottom: 0;
|
|
327
|
+
left: 0;
|
|
328
|
+
right: 0;
|
|
329
|
+
background-color: #fff;
|
|
330
|
+
z-index: 1;
|
|
331
|
+
box-shadow: 0 0 10rpx rgba(0, 0, 0, 0.1);
|
|
332
|
+
}
|
|
319
333
|
</style>
|
|
@@ -143,7 +143,6 @@ const value = computed(() => {
|
|
|
143
143
|
'inline text-[32rpx] font-bold',
|
|
144
144
|
`line-clamp-${itemProps.titleLineClamp}`,
|
|
145
145
|
]"
|
|
146
|
-
class="mr-1"
|
|
147
146
|
:style="style"
|
|
148
147
|
:value="value"
|
|
149
148
|
>
|
|
@@ -152,7 +151,11 @@ const value = computed(() => {
|
|
|
152
151
|
</slot>
|
|
153
152
|
|
|
154
153
|
<slot :value="value" v-if="prop === 'level' && value && Number(value)" name="level">
|
|
155
|
-
<view
|
|
154
|
+
<view
|
|
155
|
+
:class="className"
|
|
156
|
+
:style="style"
|
|
157
|
+
class="inline-flex relative items-center ml-1 align-text-top"
|
|
158
|
+
>
|
|
156
159
|
<wd-rate
|
|
157
160
|
:model-value="Number(value)"
|
|
158
161
|
:num="Number(value)"
|
|
@@ -164,7 +167,7 @@ const value = computed(() => {
|
|
|
164
167
|
</view>
|
|
165
168
|
</slot>
|
|
166
169
|
<slot :value="value" v-if="prop === 'titleIcon'" name="titleIcon">
|
|
167
|
-
<view :class="className" :style="style" class="inline-flex
|
|
170
|
+
<view :class="className" :style="style" class="inline-flex ml-1 align-text-top">
|
|
168
171
|
<wd-img :src="itemProps.titleIcon" width="12px" height="12px" />
|
|
169
172
|
</view>
|
|
170
173
|
</slot>
|
|
@@ -140,7 +140,7 @@ const itemStyle = computed(() => {
|
|
|
140
140
|
<view class="flex flex-col flex-1 text-26rpx overflow-hidden relative">
|
|
141
141
|
<slot name="contentSection" />
|
|
142
142
|
<view class="flex flex-col gap-[5px] overflow-hidden">
|
|
143
|
-
<view
|
|
143
|
+
<view>
|
|
144
144
|
<ItemValue prop="productName">
|
|
145
145
|
<!-- <template #productName="{ value }"><slot name="productName" :value="value" /></template> -->
|
|
146
146
|
</ItemValue>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tplc/business",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.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.
|
|
14
|
+
"@tplc/wot": "0.1.79"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">=18",
|
|
@@ -5,6 +5,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
5
5
|
{
|
|
6
6
|
submitText: string
|
|
7
7
|
affirmText: string
|
|
8
|
+
bottomFixed: boolean
|
|
8
9
|
}
|
|
9
10
|
>,
|
|
10
11
|
{},
|
|
@@ -23,6 +24,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
23
24
|
{
|
|
24
25
|
submitText: string
|
|
25
26
|
affirmText: string
|
|
27
|
+
bottomFixed: boolean
|
|
26
28
|
}
|
|
27
29
|
>
|
|
28
30
|
>
|
|
@@ -30,6 +32,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
30
32
|
{
|
|
31
33
|
submitText: string
|
|
32
34
|
affirmText: string
|
|
35
|
+
bottomFixed: boolean
|
|
33
36
|
},
|
|
34
37
|
{}
|
|
35
38
|
>
|