@tplc/business 0.5.82 → 0.5.84

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,51 @@
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.84](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.77...v0.5.84) (2025-12-09)
6
+
7
+
8
+ ### 🐛 Bug Fixes | Bug 修复
9
+
10
+ * dynamicStyleOptions 支持旧数据 ([2317541](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/23175418f5306e754ae29d58779d7d51fc507a31))
11
+
12
+
13
+ ### ✨ Features | 新功能
14
+
15
+ * wrapper 支持嵌套 ([1bed138](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/1bed138292c76209e91588b49474903d9a89b9da))
16
+ * 修改组件f ([e520b57](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/e520b578c9c79aee9304c9244b12392cb0b8ba28))
17
+ * 完成数据对接 ([3332a3d](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/3332a3d71916f237c2a2116d77bd9eac142e2f69))
18
+ * 支持页面 ([ed64824](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/ed648247161824f029876925944668d16e68bca6))
19
+ * 更新新版本 ([46680bf](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/46680bf2fdd0c7249cdcc4f69d491cd897b3b03d))
20
+ * 更新版本 ([d3789c9](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/d3789c92652c48673883f30fc928cad1804d32bf))
21
+ * 更新组件 ([a66fbd8](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/a66fbd819acbbb065299b31cbc133bd5f587bb58))
22
+ * 样式调整 ([ca05284](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/ca052842f8a46d0fd1fe097689c64f8dc5cf4625))
23
+ * 调整wot ([c8fff58](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/c8fff587f4176cfb6b672d8ac8c59c74f62d6af1))
24
+
25
+
26
+ ### 🚀 Chore | 构建/工程依赖/工具
27
+
28
+ * **release:** 0.5.78 ([90f2e4f](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/90f2e4f604ef7a81cdbc1092f08644f41491deab))
29
+ * **release:** 0.5.79 ([25fa53f](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/25fa53f0bc568c0724788083fc3256b25d44a1dd))
30
+ * **release:** 0.5.80 ([daddbf0](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/daddbf06cd12af7ea2839170761e2cd6ad4078bf))
31
+ * **release:** 0.5.81 ([2665f8e](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/2665f8e13abbecb374fe2a967fdb1230090ff05d))
32
+ * **release:** 0.5.82 ([f0f0165](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/f0f0165579962436947847327b1b2fb526d2c78c))
33
+ * **release:** 0.5.83 ([7b554a2](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/7b554a2f7b9769332cab48d45abf478179ca912a))
34
+ * **release:** 1.0.10 ([df4962a](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/df4962a8de075a75360af29f05191c61ed307732))
35
+ * **release:** 1.0.11 ([f771de5](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/f771de5465dfe1c1d7a2ffa59651ca6a724ad1a5))
36
+ * **release:** 1.0.12 ([1e3c8b1](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/1e3c8b1b0d46b8d32be6c1c7a0a228835851ed96))
37
+ * **release:** 1.0.13 ([9d07427](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/9d074276e665c18ea6ee48cde9d9a9cb6f45daa0))
38
+ * **release:** 1.0.14 ([95de480](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/95de480e4e61b07ebae3b822ba1ecf4a4e519c3f))
39
+ * **release:** 1.0.8 ([cd4c286](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/cd4c2869dfb4a207c86fff6e70584d43e0909de8))
40
+ * **release:** 1.0.9 ([55f4819](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/55f4819cd70549b5f2bdc962ddf687091df9cb3a))
41
+
42
+ ### [0.5.83](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v1.0.13...v0.5.83) (2025-12-06)
43
+
44
+
45
+ ### ✨ Features | 新功能
46
+
47
+ * 修改组件f ([e520b57](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/e520b578c9c79aee9304c9244b12392cb0b8ba28))
48
+ * 样式调整 ([ca05284](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/ca052842f8a46d0fd1fe097689c64f8dc5cf4625))
49
+
5
50
  ### [0.5.82](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v1.0.12...v0.5.82) (2025-12-06)
6
51
 
7
52
  ### [0.5.81](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.80...v0.5.81) (2025-12-06)
@@ -2,170 +2,157 @@
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
- <lcb-gap safeAreaBottom :height="200" v-if="bottomFixed" />
169
156
  <view
170
157
  :class="{ 'bottom-fixed': bottomFixed, 'mt-3': !bottomFixed }"
171
158
  v-if="submitText || agreementType"
@@ -189,7 +176,7 @@
189
176
  @click="submit"
190
177
  block
191
178
  size="large"
192
- custom-class="!w-90% mt-3"
179
+ custom-class="!w-90% mt-3 !mx-auto"
193
180
  v-if="fields && submitText"
194
181
  >
195
182
  {{ t(submitText) }}
@@ -392,7 +379,7 @@ watch(
392
379
  text-align: left !important;
393
380
  display: flex;
394
381
  flex-wrap: wrap;
395
- gap: 24rpx;
382
+ gap: 8rpx;
396
383
  // flex-direction: column;
397
384
  }
398
385
  :deep(.wd-checkbox) {
@@ -400,15 +387,15 @@ watch(
400
387
  padding: 0px !important;
401
388
  margin: 0px !important;
402
389
  }
403
- :deep(.wd-checkbox.is-button-box) {
404
- width: 32%;
405
- }
390
+ // :deep(.wd-checkbox.is-button-box) {
391
+ // width: 32%;
392
+ // }
406
393
  :deep(.wd-checkbox-group) {
407
394
  text-align: left !important;
408
395
  display: flex;
409
396
  flex-wrap: wrap;
410
- gap: 8rpx;
411
- // flex-direction: column;
397
+ gap: 8rpx !important;
398
+ // fl8x-direction: column;
412
399
  }
413
400
  :deep(.wd-picker) {
414
401
  .wd-picker__cell {
@@ -421,6 +408,17 @@ watch(
421
408
  :deep(.wd-textarea) {
422
409
  padding: 0;
423
410
  }
411
+ :deep(.wd-datetime-picker__cell) {
412
+ padding: 0;
413
+ .wd-cell__wrapper::after {
414
+ display: none !important;
415
+ }
416
+ }
417
+ :deep(.wd-picker__cell) {
418
+ .wd-cell__wrapper::after {
419
+ display: none !important;
420
+ }
421
+ }
424
422
  }
425
423
 
426
424
  .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.84",
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.14"
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=18",