general-basic-form 2.0.44 → 2.0.46

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/README.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  ## 一个兼容 Vue2 、Vue3 和 React(未来实现) 的表单组件,支持typescript,vue2请使用@1版本,Vue3请使用@2版本
4
4
 
5
+ | 组件\兼容性 | vue2 | vue3 | Ant Design Vue | Element Plus | Element(ui) |
6
+ | ------------------- | ---- | ---- | ---- | ---- | ---- |
7
+ | VGeneralBasicForm | √ | √ | | √ | √ |
8
+ | VSearchBox | √ | | | | √ |
9
+ | VInfiniteScrollList | | √ | | √ | |
10
+ | VDescriptions | | √ | | √ | |
11
+ | VInputMobilecVerification | | √ | √ | √ | |
12
+ | VInputGraphicVerification | | √ | √ | √ | |
13
+
5
14
  示例:
6
15
 
7
16
  因为兼容性问题,目前只能使用完整引入
@@ -132,7 +141,7 @@ getList会传出默认的参数,首次请求时会有页数和分页大小,重
132
141
  label: '',
133
142
  prop: 'bsName35',
134
143
  type: 'divider',
135
- dividerSetting: {
144
+ setting: {
136
145
  },
137
146
  template: {
138
147
  default: () => {
@@ -143,7 +152,7 @@ getList会传出默认的参数,首次请求时会有页数和分页大小,重
143
152
  { label: "款式名称",
144
153
  prop: "bsName",
145
154
  type: "input",
146
- inputSetting: {
155
+ setting: {
147
156
  placeholder: '请输入手机验证码',
148
157
  style: 'width: 100%'
149
158
  },
@@ -166,8 +175,7 @@ getList会传出默认的参数,首次请求时会有页数和分页大小,重
166
175
  label: "二次工艺",
167
176
  prop: "spName",
168
177
  type: "select",
169
- multiple:true, //多选
170
- selectSetting:{},
178
+ setting:{ multiple:true, //多选},
171
179
  option: [
172
180
  { value: "3", label: "满印" },
173
181
  { value: "1", label: "区域印花" },
@@ -178,7 +186,7 @@ getList会传出默认的参数,首次请求时会有页数和分页大小,重
178
186
  label: "创建时间",
179
187
  prop: "create_time",
180
188
  type: "date-picker",
181
- datePackerSetting: {
189
+ setting: {
182
190
  "range-separator": "至",
183
191
  }
184
192
  },
@@ -200,7 +208,7 @@ getList会传出默认的参数,首次请求时会有页数和分页大小,重
200
208
  label: '',
201
209
  prop: 'bsName2',
202
210
  type: 'input-graphic-verification',
203
- inputSetting: {
211
+ setting: {
204
212
  placeholder: '请输入图形验证码',
205
213
  style: 'width: 100%'
206
214
  },
@@ -218,7 +226,7 @@ getList会传出默认的参数,首次请求时会有页数和分页大小,重
218
226
  label: '',
219
227
  prop: 'bsName3',
220
228
  type: 'input-mobile-verification',
221
- inputSetting: {
229
+ setting: {
222
230
  placeholder: '请输入手机验证码',
223
231
  style: 'width: 100%'
224
232
  },
@@ -227,14 +235,14 @@ getList会传出默认的参数,首次请求时会有页数和分页大小,重
227
235
  message: '请输入手机验证码',
228
236
  trigger: 'blur'
229
237
  }
230
- ]
238
+ ],
231
239
  getSmscode,// 获取验证码的回调函数,获取失败必须返回false,否则计时器不会重新计算
232
240
  },
233
241
  {
234
242
  label: '是否必填',
235
243
  prop: 'is_optional',
236
244
  type: 'radio',
237
- radioGroupSetting: {
245
+ setting: {
238
246
  disabled: true
239
247
  },
240
248
  option: [
@@ -253,7 +261,7 @@ getList会传出默认的参数,首次请求时会有页数和分页大小,重
253
261
  label: '多选',
254
262
  prop: 'is_multi',
255
263
  type: 'checkbox',
256
- checkboxGroupSetting: {
264
+ setting: {
257
265
  },
258
266
  option: [
259
267
  { value: '是', label: 'true' },
@@ -280,7 +288,7 @@ getList会传出默认的参数,首次请求时会有页数和分页大小,重
280
288
  label: "分类",
281
289
  prop: "分类",
282
290
  type: "cascader",
283
- selectSetting:{},
291
+ setting:{},
284
292
  options: [
285
293
  {
286
294
  value: "zhinan",
@@ -448,7 +456,7 @@ getList会传出默认的参数,首次请求时会有页数和分页大小,重
448
456
 
449
457
 
450
458
 
451
- ## 对虚拟滚动列表+接口的封装
459
+ # VInfiniteScrollList对虚拟滚动列表+接口的封装
452
460
 
453
461
 
454
462
 
@@ -494,7 +502,7 @@ defaultSelection:包含数据key值的对象数组或者直接传入key值数
494
502
  InfiniteScrollListRef?.value?.ifbottom:是否到底部
495
503
  ```
496
504
 
497
- ## 对展示描述列表的封装
505
+ # VDescriptions对展示描述列表的封装
498
506
 
499
507
  ![image-20231208182455415](https://raw.githubusercontent.com/Alan1034/PicturesServer/main/PicGo_imgs/202312081824708.png)
500
508
 
@@ -529,5 +537,19 @@ formItem:[ {
529
537
  descriptionsItemProps:el-descriptions-item的配置
530
538
  ```
531
539
 
540
+ # VInputMobilecVerification,VInputGraphicVerification表单里的图形验证码、手机验证码组件,可以单独引入
541
+
542
+ ```
543
+ <VInputGraphicVerification class="VInputGraphicVerification" :item="{同表单}" componentType="Ant Design Vue" :loading="loading"></VInputGraphicVerification>
544
+ <VInputMobilecVerification class="VInputGraphicVerification" :item="{同表单}" componentType="Ant Design Vue"></VInputMobilecVerification>
545
+ ```
546
+
547
+ componentType:
548
+
549
+ "Ant Design Vue"
550
+
551
+ "Element Plus" (默认)
552
+
532
553
  安装:npm i general-basic-form<br/>
533
554
  install: npm i general-basic-form
555
+