@tplc/business 0.5.82 → 0.5.83
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 +8 -0
- package/components/lcb-form/lcb-form.vue +165 -166
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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.5.83](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v1.0.13...v0.5.83) (2025-12-06)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 修改组件f ([e520b57](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/e520b578c9c79aee9304c9244b12392cb0b8ba28))
|
|
11
|
+
* 样式调整 ([ca05284](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/ca052842f8a46d0fd1fe097689c64f8dc5cf4625))
|
|
12
|
+
|
|
5
13
|
### [0.5.82](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v1.0.12...v0.5.82) (2025-12-06)
|
|
6
14
|
|
|
7
15
|
### [0.5.81](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.80...v0.5.81) (2025-12-06)
|
|
@@ -2,168 +2,156 @@
|
|
|
2
2
|
<lcb-block v-bind="$props">
|
|
3
3
|
<wd-form :custom-class="`lcb-form ${vertical ? 'vertical' : ''}`" ref="formRef" :model="form">
|
|
4
4
|
<wd-cell-group border>
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
5
|
+
<!-- radio -->
|
|
6
|
+
<wd-cell
|
|
7
|
+
v-for="field in fields"
|
|
8
|
+
:key="field.entryFormFieldConfigId"
|
|
9
|
+
:title="field.fieldCustomName"
|
|
10
|
+
:required="field.requiredFlag"
|
|
11
|
+
:prop="field.field"
|
|
12
|
+
:title-width="!vertical ? '230rpx' : '100%'"
|
|
13
|
+
:vertical="vertical"
|
|
14
|
+
:rules="
|
|
15
|
+
field.requiredFlag
|
|
16
|
+
? [
|
|
17
|
+
{
|
|
18
|
+
required: true,
|
|
19
|
+
message: t('内容不能为空'),
|
|
20
|
+
},
|
|
21
|
+
]
|
|
22
|
+
: []
|
|
23
|
+
"
|
|
24
|
+
>
|
|
25
|
+
<wd-input
|
|
26
|
+
v-if="field.frontInputType === 'input'"
|
|
27
|
+
:placeholder="field.frontPlaceholder || t('请输入') + field.fieldCustomName"
|
|
28
|
+
v-model="form[field.field]"
|
|
29
|
+
v-bind="field.props"
|
|
30
|
+
no-border
|
|
31
|
+
/>
|
|
32
|
+
<wd-textarea
|
|
33
|
+
v-else-if="field.frontInputType === 'inputArea'"
|
|
34
|
+
:placeholder="field.frontPlaceholder || t('请输入') + field.fieldCustomName"
|
|
35
|
+
v-model="form[field.field]"
|
|
36
|
+
v-bind="field.props"
|
|
37
|
+
/>
|
|
37
38
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
>
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
>
|
|
84
|
-
<wd-radio
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
v-else-if="field.frontInputType === 'checkbox'"
|
|
105
|
-
v-model="form[field.field]"
|
|
39
|
+
<wd-picker
|
|
40
|
+
v-else-if="field.frontInputType === 'selector'"
|
|
41
|
+
:columns="getColumns(field.frontInputContent)"
|
|
42
|
+
v-model="form[field.field]"
|
|
43
|
+
v-bind="field.props"
|
|
44
|
+
/>
|
|
45
|
+
<wd-datetime-picker
|
|
46
|
+
v-else-if="field.frontInputType === 'date'"
|
|
47
|
+
v-model="form[field.field]"
|
|
48
|
+
:type="getDateType(field.frontInputTypeValue)"
|
|
49
|
+
v-bind="{
|
|
50
|
+
...field.props,
|
|
51
|
+
...getDateOptions(field.frontInputContent),
|
|
52
|
+
}"
|
|
53
|
+
/>
|
|
54
|
+
<wd-radio-group
|
|
55
|
+
v-else-if="field.frontInputType === 'radio'"
|
|
56
|
+
v-model="form[field.field]"
|
|
57
|
+
v-bind="field.props"
|
|
58
|
+
:inline="!vertical"
|
|
59
|
+
shape="dot"
|
|
60
|
+
>
|
|
61
|
+
<wd-radio v-for="item in getColumns(field.frontInputContent)" :key="item" :value="item">
|
|
62
|
+
{{ item }}
|
|
63
|
+
</wd-radio>
|
|
64
|
+
<template v-if="field.frontInputTypeValue === '1'">
|
|
65
|
+
<wd-radio :value="customField" key="custom">其他</wd-radio>
|
|
66
|
+
<view class="custom-input" v-if="form[field.field] === customField">
|
|
67
|
+
<wd-input
|
|
68
|
+
:placeholder="`请输入自定义内容`"
|
|
69
|
+
v-model="customInputs[field.field]"
|
|
70
|
+
:no-border="true"
|
|
71
|
+
/>
|
|
72
|
+
</view>
|
|
73
|
+
</template>
|
|
74
|
+
</wd-radio-group>
|
|
75
|
+
<wd-radio-group
|
|
76
|
+
v-else-if="field.frontInputType === 'radioTag'"
|
|
77
|
+
v-model="form[field.field]"
|
|
78
|
+
v-bind="field.props"
|
|
79
|
+
shape="button"
|
|
80
|
+
>
|
|
81
|
+
<wd-radio v-for="item in getColumns(field.frontInputContent)" :key="item" :value="item">
|
|
82
|
+
{{ item }}
|
|
83
|
+
</wd-radio>
|
|
84
|
+
<template v-if="field.frontInputTypeValue === '1'">
|
|
85
|
+
<wd-radio :value="customField" key="custom">其他</wd-radio>
|
|
86
|
+
<view class="custom-input" v-if="form[field.field] === customField">
|
|
87
|
+
<wd-input
|
|
88
|
+
:placeholder="`请输入自定义内容`"
|
|
89
|
+
v-model="customInputs[field.field]"
|
|
90
|
+
:no-border="true"
|
|
91
|
+
/>
|
|
92
|
+
</view>
|
|
93
|
+
</template>
|
|
94
|
+
</wd-radio-group>
|
|
95
|
+
<!-- checkbox -->
|
|
96
|
+
<wd-checkbox-group
|
|
97
|
+
v-else-if="field.frontInputType === 'checkbox'"
|
|
98
|
+
v-model="form[field.field]"
|
|
99
|
+
>
|
|
100
|
+
<wd-checkbox
|
|
101
|
+
v-for="item in getColumns(field.frontInputContent)"
|
|
102
|
+
:key="item"
|
|
103
|
+
:modelValue="item"
|
|
104
|
+
shape="square"
|
|
106
105
|
>
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
v-bind="field.props"
|
|
133
|
-
shape="button"
|
|
134
|
-
custom-class="checkbox-group-button"
|
|
106
|
+
{{ item }}
|
|
107
|
+
</wd-checkbox>
|
|
108
|
+
<template v-if="field.frontInputTypeValue === '1'">
|
|
109
|
+
<wd-checkbox :modelValue="customField" key="custom" shape="square">其他</wd-checkbox>
|
|
110
|
+
<view class="custom-input" v-if="form[field.field]?.includes(customField)">
|
|
111
|
+
<wd-input
|
|
112
|
+
:placeholder="`请输入自定义内容`"
|
|
113
|
+
v-model="customInputs[field.field]"
|
|
114
|
+
:no-border="true"
|
|
115
|
+
/>
|
|
116
|
+
</view>
|
|
117
|
+
</template>
|
|
118
|
+
</wd-checkbox-group>
|
|
119
|
+
<!-- checkboxTag -->
|
|
120
|
+
<wd-checkbox-group
|
|
121
|
+
v-else-if="field.frontInputType === 'checkboxTag'"
|
|
122
|
+
v-model="form[field.field]"
|
|
123
|
+
v-bind="field.props"
|
|
124
|
+
shape="button"
|
|
125
|
+
custom-class="checkbox-group-button"
|
|
126
|
+
>
|
|
127
|
+
<wd-checkbox
|
|
128
|
+
v-for="item in getColumns(field.frontInputContent)"
|
|
129
|
+
:key="item"
|
|
130
|
+
:modelValue="item"
|
|
135
131
|
>
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
>
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
accept="image"
|
|
160
|
-
:limit="1"
|
|
161
|
-
v-model:file-list="imgList[field.field]"
|
|
162
|
-
:upload-method="customUpload"
|
|
163
|
-
v-bind="field.props"
|
|
164
|
-
/>
|
|
165
|
-
</wd-cell>
|
|
166
|
-
</block>
|
|
132
|
+
{{ item }}
|
|
133
|
+
</wd-checkbox>
|
|
134
|
+
<template v-if="field.frontInputTypeValue === '1'">
|
|
135
|
+
<wd-checkbox :modelValue="customField" key="custom" shape="square">其他</wd-checkbox>
|
|
136
|
+
<view class="custom-input" v-if="form[field.field]?.includes(customField)">
|
|
137
|
+
<wd-input
|
|
138
|
+
:placeholder="`请输入自定义内容`"
|
|
139
|
+
v-model="customInputs[field.field]"
|
|
140
|
+
:no-border="true"
|
|
141
|
+
/>
|
|
142
|
+
</view>
|
|
143
|
+
</template>
|
|
144
|
+
</wd-checkbox-group>
|
|
145
|
+
<wd-upload
|
|
146
|
+
v-else-if="field.frontInputType === 'img'"
|
|
147
|
+
:label="field.fieldCustomName"
|
|
148
|
+
accept="image"
|
|
149
|
+
:limit="1"
|
|
150
|
+
v-model:file-list="imgList[field.field]"
|
|
151
|
+
:upload-method="customUpload"
|
|
152
|
+
v-bind="field.props"
|
|
153
|
+
/>
|
|
154
|
+
</wd-cell>
|
|
167
155
|
</wd-cell-group>
|
|
168
156
|
<lcb-gap safeAreaBottom :height="200" v-if="bottomFixed" />
|
|
169
157
|
<view
|
|
@@ -189,7 +177,7 @@
|
|
|
189
177
|
@click="submit"
|
|
190
178
|
block
|
|
191
179
|
size="large"
|
|
192
|
-
custom-class="!w-90% mt-3"
|
|
180
|
+
custom-class="!w-90% mt-3 !mx-auto"
|
|
193
181
|
v-if="fields && submitText"
|
|
194
182
|
>
|
|
195
183
|
{{ t(submitText) }}
|
|
@@ -392,7 +380,7 @@ watch(
|
|
|
392
380
|
text-align: left !important;
|
|
393
381
|
display: flex;
|
|
394
382
|
flex-wrap: wrap;
|
|
395
|
-
gap:
|
|
383
|
+
gap: 8rpx;
|
|
396
384
|
// flex-direction: column;
|
|
397
385
|
}
|
|
398
386
|
:deep(.wd-checkbox) {
|
|
@@ -400,15 +388,15 @@ watch(
|
|
|
400
388
|
padding: 0px !important;
|
|
401
389
|
margin: 0px !important;
|
|
402
390
|
}
|
|
403
|
-
:deep(.wd-checkbox.is-button-box) {
|
|
404
|
-
|
|
405
|
-
}
|
|
391
|
+
// :deep(.wd-checkbox.is-button-box) {
|
|
392
|
+
// width: 32%;
|
|
393
|
+
// }
|
|
406
394
|
:deep(.wd-checkbox-group) {
|
|
407
395
|
text-align: left !important;
|
|
408
396
|
display: flex;
|
|
409
397
|
flex-wrap: wrap;
|
|
410
|
-
gap: 8rpx;
|
|
411
|
-
//
|
|
398
|
+
gap: 8rpx !important;
|
|
399
|
+
// fl8x-direction: column;
|
|
412
400
|
}
|
|
413
401
|
:deep(.wd-picker) {
|
|
414
402
|
.wd-picker__cell {
|
|
@@ -421,6 +409,17 @@ watch(
|
|
|
421
409
|
:deep(.wd-textarea) {
|
|
422
410
|
padding: 0;
|
|
423
411
|
}
|
|
412
|
+
:deep(.wd-datetime-picker__cell) {
|
|
413
|
+
padding: 0;
|
|
414
|
+
.wd-cell__wrapper::after {
|
|
415
|
+
display: none !important;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
:deep(.wd-picker__cell) {
|
|
419
|
+
.wd-cell__wrapper::after {
|
|
420
|
+
display: none !important;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
424
423
|
}
|
|
425
424
|
|
|
426
425
|
.vertical {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tplc/business",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.83",
|
|
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.13"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">=18",
|