@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 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
- <block v-for="field in fields" :key="field.entryFormFieldConfigId">
6
- <!-- radio -->
7
- <wd-cell
8
- :title="field.fieldCustomName"
9
- :required="field.requiredFlag"
10
- :prop="field.field"
11
- :title-width="!vertical ? '230rpx' : '100%'"
12
- :vertical="vertical"
13
- :rules="
14
- field.requiredFlag
15
- ? [
16
- {
17
- required: true,
18
- message: t('内容不能为空'),
19
- },
20
- ]
21
- : []
22
- "
23
- >
24
- <wd-input
25
- v-if="field.frontInputType === 'input'"
26
- :placeholder="field.frontPlaceholder || t('请输入') + field.fieldCustomName"
27
- v-model="form[field.field]"
28
- v-bind="field.props"
29
- no-border
30
- />
31
- <wd-textarea
32
- v-else-if="field.frontInputType === 'inputArea'"
33
- :placeholder="field.frontPlaceholder || t('请输入') + field.fieldCustomName"
34
- v-model="form[field.field]"
35
- v-bind="field.props"
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
- <wd-picker
39
- v-else-if="field.frontInputType === 'selector'"
40
- :columns="getColumns(field.frontInputContent)"
41
- v-model="form[field.field]"
42
- v-bind="field.props"
43
- />
44
- <wd-datetime-picker
45
- v-else-if="field.frontInputType === 'date'"
46
- v-model="form[field.field]"
47
- :type="getDateType(field.frontInputTypeValue)"
48
- v-bind="{
49
- ...field.props,
50
- ...getDateOptions(field.frontInputContent),
51
- }"
52
- />
53
- <wd-radio-group
54
- v-else-if="field.frontInputType === 'radio'"
55
- v-model="form[field.field]"
56
- v-bind="field.props"
57
- :inline="!vertical"
58
- shape="dot"
59
- >
60
- <wd-radio
61
- v-for="item in getColumns(field.frontInputContent)"
62
- :key="item"
63
- :value="item"
64
- >
65
- {{ item }}
66
- </wd-radio>
67
- <template v-if="field.frontInputTypeValue === '1'">
68
- <wd-radio :value="customField" key="custom">其他</wd-radio>
69
- <view class="custom-input" v-if="form[field.field] === customField">
70
- <wd-input
71
- :placeholder="`请输入自定义内容`"
72
- v-model="customInputs[field.field]"
73
- :no-border="true"
74
- />
75
- </view>
76
- </template>
77
- </wd-radio-group>
78
- <wd-radio-group
79
- v-else-if="field.frontInputType === 'radioTag'"
80
- v-model="form[field.field]"
81
- v-bind="field.props"
82
- shape="button"
83
- >
84
- <wd-radio
85
- v-for="item in getColumns(field.frontInputContent)"
86
- :key="item"
87
- :value="item"
88
- >
89
- {{ item }}
90
- </wd-radio>
91
- <template v-if="field.frontInputTypeValue === '1'">
92
- <wd-radio :value="customField" key="custom">其他</wd-radio>
93
- <view class="custom-input" v-if="form[field.field] === customField">
94
- <wd-input
95
- :placeholder="`请输入自定义内容`"
96
- v-model="customInputs[field.field]"
97
- :no-border="true"
98
- />
99
- </view>
100
- </template>
101
- </wd-radio-group>
102
- <!-- checkbox -->
103
- <wd-checkbox-group
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
- <wd-checkbox
108
- v-for="item in getColumns(field.frontInputContent)"
109
- :key="item"
110
- :modelValue="item"
111
- shape="square"
112
- >
113
- {{ item }}
114
- </wd-checkbox>
115
- <template v-if="field.frontInputTypeValue === '1'">
116
- <wd-checkbox :modelValue="customField" key="custom" shape="square">
117
- 其他
118
- </wd-checkbox>
119
- <view class="custom-input" v-if="form[field.field]?.includes(customField)">
120
- <wd-input
121
- :placeholder="`请输入自定义内容`"
122
- v-model="customInputs[field.field]"
123
- :no-border="true"
124
- />
125
- </view>
126
- </template>
127
- </wd-checkbox-group>
128
- <!-- checkboxTag -->
129
- <wd-checkbox-group
130
- v-else-if="field.frontInputType === 'checkboxTag'"
131
- v-model="form[field.field]"
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
- <wd-checkbox
137
- v-for="item in getColumns(field.frontInputContent)"
138
- :key="item"
139
- :modelValue="item"
140
- >
141
- {{ item }}
142
- </wd-checkbox>
143
- <template v-if="field.frontInputTypeValue === '1'">
144
- <wd-checkbox :modelValue="customField" key="custom" shape="square">
145
- 其他
146
- </wd-checkbox>
147
- <view class="custom-input" v-if="form[field.field]?.includes(customField)">
148
- <wd-input
149
- :placeholder="`请输入自定义内容`"
150
- v-model="customInputs[field.field]"
151
- :no-border="true"
152
- />
153
- </view>
154
- </template>
155
- </wd-checkbox-group>
156
- <wd-upload
157
- v-else-if="field.frontInputType === 'img'"
158
- :label="field.fieldCustomName"
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: 24rpx;
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
- width: 32%;
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
- // flex-direction: column;
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.82",
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.12"
14
+ "@tplc/wot": "1.0.13"
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=18",