general-basic-form 1.0.32 → 1.0.33
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 +26 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
# GeneralBasicForm
|
|
1
|
+
# GeneralBasicForm 一个兼容 Vue2 和 Vue3 的表单组件,支持typescript,vue2请使用@1版本,Vue3请使用@2版本
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
|
6
|
-
|
|
|
7
|
-
|
|
|
8
|
-
|
|
|
9
|
-
| | | |
|
|
3
|
+
| 组件\兼容性 | vue2 | vue3 |
|
|
4
|
+
| ------------------- | ---- | ---- |
|
|
5
|
+
| GeneralBasicForm | √ | √ |
|
|
6
|
+
| SearchBox | √ | |
|
|
7
|
+
| VInfiniteScrollList | | √ |
|
|
8
|
+
| VDescriptions | | √ |
|
|
10
9
|
|
|
11
10
|
示例:
|
|
12
11
|
|
|
@@ -362,9 +361,26 @@ getList会传出默认的参数,首次请求时会有页数和分页大小,重
|
|
|
362
361
|
安装:npm i general-basic-form<br/>
|
|
363
362
|
install: npm i general-basic-form
|
|
364
363
|
|
|
365
|
-
# SearchBox
|
|
364
|
+
# SearchBox 对搜索框的单独封装
|
|
366
365
|
|
|
367
366
|
```
|
|
368
|
-
import {
|
|
367
|
+
import { VSearchBox } from "general-basic-form";
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+

|
|
371
|
+
|
|
372
|
+
```
|
|
373
|
+
<VSearchBox placeholder="请输入您想搜索的商品" openHref :inputstyle="{ display: 'block', width: 'auto', margin: '0 90px' }">
|
|
374
|
+
</VSearchBox>
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
```
|
|
380
|
+
query:Object //搜索条件,会带到跳转后的路由query里
|
|
381
|
+
routePath:String //搜索后跳转路径
|
|
382
|
+
inputstyle:Object//输入框样式
|
|
383
|
+
openHref:Boolean//是否在新标签页中打开搜索结果
|
|
384
|
+
size:String//el-input的size
|
|
369
385
|
```
|
|
370
386
|
|